OpenStudio reporting measures crashing

asked 2017-06-19 08:38:14 -0600

OS-user-AT gravatar image

updated 2017-06-27 11:52:41 -0600

I have tried to run OS simulations with the following reporting measures, each of them crashing:

UPDATE: The report measures also fail, if simulation is run for a weather file period, e.g. full year.

(1) Unmethours Troubleshooting Report with error messages as follows:

Applying UnmetLoadHoursTroubleshooting
 Result: Fail   Error: invalid null
 reference Expected argument 1 of type
 std::string const &, but got NilClass
 nil    in SWIG method "timeSeries"
    C:/Users/user1/AppData/Local/Temp/OpenStudioApp.ud5752/resources/measures/UnmetLoadHoursTroubleshooting/measure.rb:680:in
 "timeSeries"
    C:/Users/user1/AppData/Local/Temp/OpenStudioApp.ud5752/resources/measures/UnmetLoadHoursTroubleshooting/measure.rb:680:in
 "getTimeSeries"
    C:/Users/user1/AppData/Local/Temp/OpenStudioApp.ud5752/resources/measures/UnmetLoadHoursTroubleshooting/measure.rb:577:in
 "initZoneMetrics"
    C:/Users/user1/AppData/Local/Temp/OpenStudioApp.ud5752/resources/measures/UnmetLoadHoursTroubleshooting/measure.rb:496:in
 "block in run"
    C:/Users/user1/AppData/Local/Temp/OpenStudioApp.ud5752/resources/measures/UnmetLoadHoursTroubleshooting/measure.rb:494:in
 "each"
    C:/Users/user1/AppData/Local/Temp/OpenStudioApp.ud5752/resources/measures/UnmetLoadHoursTroubleshooting/measure.rb:494:in
 "run"
    :/ruby/2.2.0/gems/openstudio-workflow-1.2.1/lib/openstudio/workflow/util/measure.rb:441:in
 "apply_measure"
    :/ruby/2.2.0/gems/openstudio-workflow-1.2.1/lib/openstudio/workflow/util/measure.rb:67:in
 "block in apply_measures"
    :/ruby/2.2.0/gems/openstudio-workflow-1.2.1/lib/openstudio/workflow/util/measure.rb:31:in
 "each_index"
    :/ruby/2.2.0/gems/openstudio-workflow-1.2.1/lib/openstudio/workflow/util/measure.rb:31:in
 "apply_measures"
    :/ruby/2.2.0/gems/openstudio-workflow-1.2.1/lib/openstudio/workflow/jobs/run_reporting_measures.rb:81:in
 "perform"
    :/ruby/2.2.0/gems/openstudio-workflow-1.2.1/lib/openstudio/workflow/run.rb:256:in
 "step"
    :/ruby/2.2.0/gems/openstudio-workflow-1.2.1/lib/openstudio/workflow/run.rb:210:in
 "run"  :/openstudio_cli.rb:802:in
 "execute"  :/openstudio_cli.rb:620:in
 "execute"  :/openstudio_cli.rb:1515:in
 "<main"    eval:85:in "eval"
    eval:85:in
 "require_embedded_absolute"
    eval:70:in "block in require"
    eval:64:in "each"   eval:64:in
 "require"  eval:2:in "<main" Failed.

Similarly (2) Ventilation Report with error messages as follows:

Applying VentilationQAQC
  Result: Fail
  Error: invalid null reference Expected argument 1 of type std::string const &, but got NilClass nil
    in SWIG method "timeSeries"
    C:/Users/user1/AppData/Local/Temp/OpenStudioApp.ud5752/resources/measures/VentilationQAQC 1/measure.rb:342:in "timeSeries" ......

(3) Failure Messages after simulating a weather file period:

Applying VentilationQAQC
  Result: Fail
  Error: undefined method "map" for nil:NilClass
    C:/Users/OS-user/AppData/Local/Temp/OpenStudioApp.ud4468/resources/measures/VentilationQAQC 1 1/measure.rb:139:in "block in run"
    C:/Users/OS-user/AppData/Local/Temp/OpenStudioApp.ud4468/resources/measures/VentilationQAQC 1 1/measure.rb:112:in "each"
    C:/Users/OS-user/AppData/Local/Temp/OpenStudioApp.ud4468/resources/measures/VentilationQAQC 1 1/measure.rb:112:in "run"
    :/ruby/2.2.0/gems/openstudio-workflow-1.2.1/lib/openstudio/workflow/util/measure.rb:441:in "apply_measure"
    :/ruby/2.2.0/gems/openstudio-workflow-1.2.1/lib/openstudio/workflow/util/measure.rb:67:in "block in apply_measures"
    :/ruby/2.2.0/gems/openstudio-workflow-1.2.1/lib/openstudio/workflow ...
(more)
edit retag flag offensive close merge delete

Comments

Are you running the measures on a model that is set to 'Run Simulation for Weather File Run Periods'? Those errors look like what you'd see if you are just running the simulation for sizing periods.

Eric Ringold gravatar imageEric Ringold ( 2017-06-19 10:40:33 -0600 )edit

I have been running the simulation only for the sizing periods because a full year simulation would take 2 hours. Nevertheless I would consider this a bug, if the measures don't work after simulation for design days only.

OS-user-AT gravatar imageOS-user-AT ( 2017-06-19 11:51:49 -0600 )edit
1

You could set your weather file run period to be less than a full year, which would reduce the simulation time. But since those measures both report for weather file run periods and you're interested in sizing periods, that wouldn't be much help.

Eric Ringold gravatar imageEric Ringold ( 2017-06-19 12:07:49 -0600 )edit

Ok now I think your problem is in the workflow gem, perhaps something like this, since your errors are happening when the sql file is queried. Elevating this to @macumber.

Eric Ringold gravatar imageEric Ringold ( 2017-06-27 12:15:40 -0600 )edit

@David Goldwasser and @aparker are the primary author's of those measures. Without looking at the measures in detail I would assume they need some additional error checking

macumber gravatar imagemacumber ( 2017-06-30 15:10:40 -0600 )edit