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

OpenStudio simulation failed to run, with exit code 1. Unable to locate the error.

asked 2023-04-18 22:08:32 -0600

AXW's avatar

updated 2023-04-19 09:15:56 -0600

Hello! I'm trying to figure out how to simulate a one-story model with OpenStudio, but it always gets crashed when I run the simulation. I've been looking it up and tried to check my model on Youtube but could not find any solution yet. Can someone help to locate the errors in my simulation and tell me what to do? Many thanks!

I, [2023-04-19T10:48:49.447723 #11696]  INFO -- : CLI Parsed Inputs: ["--verbose"] "run" ["-s", "64340", "-w", "C:/Users/?????/AppData/Local/Temp/osmodel-1681871678-0\\resources\\workflow.osw"]
D, [2023-04-19T10:48:49.447837 #11696] DEBUG -- : Main arguments are ["--verbose"]
D, [2023-04-19T10:48:49.447869 #11696] DEBUG -- : Sub-command is run
D, [2023-04-19T10:48:49.447910 #11696] DEBUG -- : Sub-arguments are ["-s", "64340", "-w", "C:/Users/?????/AppData/Local/Temp/osmodel-1681871678-0\\resources\\workflow.osw"]
D, [2023-04-19T10:48:49.448100 #11696] DEBUG -- : Parsing main_args ["--verbose"]
D, [2023-04-19T10:48:49.753462 #11696] DEBUG -- : Adding dependency on jaro_winkler '~> 1.5.4'
D, [2023-04-19T10:48:49.753590 #11696] DEBUG -- : Adding dependency on pycall '~> 1.2.1'
D, [2023-04-19T10:48:49.753633 #11696] DEBUG -- : Adding dependency on sqlite3 '~> 1.3.13.20180326210955'
D, [2023-04-19T10:48:49.753669 #11696] DEBUG -- : Adding dependency on tbd '~> 3.0.3'
D, [2023-04-19T10:48:49.753701 #11696] DEBUG -- : Adding dependency on addressable '~> 2.8.1'
D, [2023-04-19T10:48:49.754203 #11696] DEBUG -- : Adding dependency on ansi '~> 1.5.0'
D, [2023-04-19T10:48:49.754247 #11696] DEBUG -- : Adding dependency on ast '~> 2.4.2'
D, [2023-04-19T10:48:49.754284 #11696] DEBUG -- : Adding dependency on bcl '~> 0.7.1'
D, [2023-04-19T10:48:49.754314 #11696] DEBUG -- : Adding dependency on builder '~> 3.2.4'
D, [2023-04-19T10:48:49.754343 #11696] DEBUG -- : Adding dependency on bundler '~> 2.1.4'
D, [2023-04-19T10:48:49.754370 #11696] DEBUG -- : Adding dependency on docile '~> 1.4.0'
D, [2023-04-19T10:48:49.754397 #11696] DEBUG -- : Adding dependency on faraday '~> 1.0.1'
D, [2023-04-19T10:48:49.754423 #11696] DEBUG -- : Adding dependency on git '~> 1.12.0'
D, [2023-04-19T10:48:49.754453 #11696] DEBUG -- : Adding dependency on json-schema '~> 2.7.0'
D, [2023-04-19T10:48:49.754482 #11696] DEBUG -- : Adding dependency on macaddr '~> 1.7.2'
D, [2023-04-19T10:48:49.754511 #11696] DEBUG -- : Adding dependency on matrix '~> 0.4.2'
D, [2023-04-19T10:48:49.754538 #11696] DEBUG -- : Adding dependency on minitar '~> 0.9'
D, [2023-04-19T10:48:49.754566 #11696] DEBUG -- : Adding dependency on minitest '~> 5.14.4'
D, [2023-04-19T10:48:49.754593 #11696] DEBUG -- : Adding dependency on minitest-reporters '~> 1.4.3'
D, [2023-04-19T10:48:49.754619 #11696] DEBUG -- : Adding dependency on msgpack '~> 1.4.2'
D, [2023-04-19T10:48:49.755203 #11696] DEBUG -- : Adding dependency on multipart-post '~> 2.2.3'
D, [2023-04-19T10:48:49.755239 #11696] DEBUG -- : Adding dependency on octokit '~> 4.18.0'
D, [2023-04-19T10:48:49.755270 #11696] DEBUG -- : Adding dependency on oga '~> 3.2'
D, [2023-04-19T10:48:49.755299 #11696] DEBUG -- : Adding dependency on openstudio-extension '~> 0.6.0'
D ...
(more)
edit retag flag offensive close merge delete

Comments

@AXW it looks like the OpenStudio CLI is trying to use the path C:/Users/?????, which is likely not correct and should be your user name. Can you share how you're using the OpenStudio CLI (through a script, directly in a terminal or command window, etc.) and what the command is that you're entering?

Aaron Boranian's avatar Aaron Boranian  ( 2023-04-19 09:17:41 -0600 )edit

My guess is that OpenStudio can't find the OSW because the path has a mix of forward and backward slashes. (It's always safest to use forward slashes, since backward slashes can be misinterpreted as escaping characters.)

shorowit's avatar shorowit  ( 2023-04-19 11:04:57 -0600 )edit

I run the simulation with openstudio sketchup plug-in. I guess I did't enter a command specially, it was the plug-in system that did all the job for me. So I'm not quite sure how to change the path or where to add a new piece of code to run the simulation. Can you help to give me some detailed information?

AXW's avatar AXW  ( 2023-04-20 22:16:33 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-04-19 18:28:28 -0600

I think you entered the path of osm and osw incorrectly or you entered the openstudio cli startup command incorrectly, you can use this piece of code to start the simulation.

OpenStudio.WorkflowJSON workflowJSON = new OpenStudio.WorkflowJSON(); workflowJSON.setSeedFile(new OpenStudio.Path(OpenStudio.OpenStudioUtilitiesCore.toPath(OsmPath))); workflowJSON.setWeatherFile(new OpenStudio.Path(OpenStudio.OpenStudioUtilitiesCore.toPath("D:\\Pluginet\\Chiral\\Chiral\\WeatherFile\\IRN_Shiraz.408480_ITMY.epw"))); workflowJSON.saveAs(new OpenStudio.Path(OpenStudio.OpenStudioUtilitiesCore.toPath(OswPath))); System.Diagnostics.Process.Start("cmd.exe", "/C openstudio.exe run -w " + OswPath);
edit flag offensive delete link more

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2023-04-18 22:08:32 -0600

Seen: 192 times

Last updated: Jun 08 '23