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

I am trying to troubleshoot a failed simulation

asked 2024-01-11 18:31:59 -0600

MaRe's avatar

updated 2024-10-28 14:58:31 -0600

sashadf1's avatar

Hi, I am doing an energy simulation using OpenStudio. I have worked the geometry using Sketchup OpenStudio plug-in, where I created thermal zones, and added all the information related to space types. Then, I brought the osm model created in Sketchup to OpenStudio application where I try to run the simulation. However, an error occurred right after running the simulation. It says that it can’t load a file, a temp one. See below.

I tried to check the err file that is inside the run folder, but this file wasn’t there. I don’t know where to look to troubleshoot this. I appreciate any help.

A part of the error showed in the "run simulation" tab is:

[18:25:04.025972 ERROR] Found error in state 'preprocess' with message [":/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/util/measure.rb failed with message cannot load such file -- C:/Users/Mauricio/AppData/Local/Temp/osmodel-1705015040-7/resources/measures/OpenStudioResults/resources/Siz.Model in eval:134:in `require

I'd like to add this. After uploaded the osm model in OpenStudio and doing some changes like apply the "ideal loads" option and the thermostats schedules to every thermal zone while having also the sketchup app open, I tried to run the model but a message appeared saying that:

"Failed to save model, make sure that you don't have the location open and that you have correct write access".

Then I tried to close the sketchup application while I was working on OpenStudio and it worked because the simulation run, but when I did a change (adding a bcl measure) and I tried to rerun the simulation, the above message appeared again.

After that, I closed OpenStudio and open it again and tried to run the simulation and the first error message (about the temp file) appeared again.

edit retag flag offensive close merge delete

Comments

What happens when you:

  1. remove the OpenStudioResults Measure
  2. then run a simulation?
Denis Bourgeois's avatar Denis Bourgeois  ( 2024-01-17 09:07:38 -0600 )edit

Hi Denis, thank you for your comment. I removed the OpenStudioResults measure as you said and it run well. Then, I tried to add another measure (adding overhangs) and run the simulation. It didn't run because the message saying that I have the location open appears again. Then I removed the measure and tried to run but it continues showing same mistake. So, for running the model, I have to restart the model and remove the measure and dont add any other measure.

MaRe's avatar MaRe  ( 2024-01-17 17:43:20 -0600 )edit

You may want to look up this post. To narrow down the issue, what happens when you:

  1. copy/paste your .osm file (not its accompanying folder) to a temp folder
  2. close any apps linking the file (eg text editor, SketchUp, Explorer)
  3. open the file with the OpenStudio Application
  4. run a simulation
  5. if successful, add a measure, and repeat.
Denis Bourgeois's avatar Denis Bourgeois  ( 2024-01-18 06:53:20 -0600 )edit
1

Hi Denis, I read the post and I applied the sugested solution of shorten the file name and it did work. Also, I applied other measures (the one which creates overhangs) and the simulation run well. I think the issue is solved. I appreciate your collaboration. Thank you.

MaRe's avatar MaRe  ( 2024-01-18 10:29:32 -0600 )edit

Great. You should summarize your solution (1 or 2 lines) as an answer. And click on the checkmark (i.e. accept your own answer).

Denis Bourgeois's avatar Denis Bourgeois  ( 2024-01-18 13:43:01 -0600 )edit

1 Answer

Sort by » oldest newest most voted
3

answered 2024-01-18 15:02:03 -0600

MaRe's avatar

I could resolve this issue using all the advice received in the comments in this post, finding that I should have a osm file name shorter than it previously had. I did it and the model run successfully.

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: 2024-01-11 18:31:59 -0600

Seen: 827 times

Last updated: Oct 28