Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

How to run openstudio model using CMD

asked 2023-04-03 23:58:49 -0500

Rocker's avatar

I am using command prompt on a windows system to run openstudio model but it gives a error token Command > openstudio run -w "D:\Code_output\Conference_room_copy.osm" Error executing argv: ["run", "-w", "D:\Code_output\Conference_room_copy.osm"] Error: 783: unexpected token at 'OS:Version,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2023-04-04 08:02:29 -0500

You need an OpenStudio Workflow (OSW) to run a model from command line. Using the OpenStudioApplication is the simplest to create one with measures etc (if your model is at /path/to/mymodel.osm, then at /path/to/mymodel/in.osw you have the workflow file).

The simplest one would look like this:

  "weather_file": "myweatherfile.epw",
  "seed_file": "mymodel.osm",
edit flag offensive delete link more



I think the OSW file from the OS App gets named workflow.osw instead of in.osw. Totally agree with Julien on the rest.

Craig Simmons's avatar Craig Simmons  ( 2023-04-05 08:19:45 -0500 )edit

Thank you Julien and Craig!!

Rocker's avatar Rocker  ( 2023-04-06 07:53:00 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops


Question Tools

1 follower


Asked: 2023-04-03 23:58:49 -0500

Seen: 95 times

Last updated: Apr 04 '23