openstudio losing weather file and measures
I have been having problem with openstudio that it just "randomly" (random as I couldn't figure out why and couldn't find any specific thing I do related to this issue) goes straight into error after starting a run. The log file shows the weather file and measures are not there, thus the error. But these are in the model when I first open the file. At some point (when i click run?), they are just gone. Then I need to restart the program (it won't let me select the weather file within the same session), select the weather file and add back in all the measures.
I'm not sure if anyone else has the same problem. Is it a computer setting (I use windows 10) or something. It happen quite often on my machine. I have had this issue with earlier versions of openstudio as well as the more recent v2.8.1.
Edit: Here's the error i got from the log file.
[17:03:16.817547 ERROR] Found error in state 'reporting_measures' with message ["Cannot find SetOutputTableToIPunits::/ruby/2.2.0/gems/openstudio-workflow-1.3.3/lib/openstudio/workflow/util/measure.rb:45:in `block in apply_measures'\n:/ruby/2.2.0/gems/openstudio-workflow-1.3.3/lib/openstudio/workflow/util/measure.rb:32:in `each_index'\n:/ruby/2.2.0/gems/openstudio-workflow-1.3.3/lib/openstudio/workflow/util/measure.rb:32:in `apply_measures'\n:/ruby/2.2.0/gems/openstudio-workflow-1.3.3/lib/openstudio/workflow/jobs/run_reporting_measures.rb:85:in `perform'\n:/ruby/2.2.0/gems/openstudio-workflow-1.3.3/lib/openstudio/workflow/run.rb:269:in `step'\n:/ruby/2.2.0/gems/openstudio-workflow-1.3.3/lib/openstudio/workflow/run.rb:216:in `run'\n:/openstudio_cli.rb:975:in `execute'\n:/openstudio_cli.rb:763:in `execute'\n:/openstudio_cli.rb:1746:in `<main>'\neval:110:in `eval'\neval:110:in `require_embedded_absolute'\neval:95:in `block in require'\neval:89:in `each'\neval:89:in `require'\neval:3:in `<main>'"]}
When this error occurs, the "file", "measures", and "reports" folders disappear. The "run" folder stays.
Do your issues happen when you have the OSM companion directory open in Windows Explorer? If so, you might be seeing this issue which has been fixed and will be available in the next OpenStudio Application release.
is the OSM companion directory the folder where i save the osm file? or the file output folder?
I tried open the file output folder and the run folder in windows explorer, the error didn't occur. Seems not related to this issue.
Can you paste the file path and file name of one of your failing models? I wonder if unicode characters in the path is an issue? Also, is your issue possibly related to https://unmethours.com/question/46424... ?
typical path and file name i use, C:\Users\xchen\Desktop\local_files\ms\os\5zone_senVAV_v281_dhw.osm. I don't use the openstudio measure. But I always have the SI to IP measure (energyplus) added.