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

Unmet Load Hours Troubleshoot measure failure

asked 2017-04-16 15:57:52 -0600

updated 2017-08-05 08:00:42 -0600

I've been attempting to run the 'Unmet Load Hours Troubleshoot' measure, but it keeps failing. I've already seen this answer and have edited my measure so that those lines are now updated. I get the following errors in the simulation run:

"Processing Reporting Measures.

Applying UnmetLoadHoursTroubleshooting

Result: Fail

Error: Optional not initialized

C:/Users/User/AppData/Local/Temp/OpenStudioApp.eE9596/resources/measures/UnmetLoadHoursTroubleshooting 1 1 1/measure.rb:638:in `get'

C:/Users/User/AppData/Local/Temp/OpenStudioApp.eE9596/resources/measures/UnmetLoadHoursTroubleshooting 1 1 1/measure.rb:638:in `getAbruptScheduleChanges'

C:/Users/User/AppData/Local/Temp/OpenStudioApp.eE9596/resources/measures/UnmetLoadHoursTroubleshooting 1 1 1/measure.rb:204:in `thermostat_setpoints_for_underperforming'

C:/Users/User/AppData/Local/Temp/OpenStudioApp.eE9596/resources/measures/UnmetLoadHoursTroubleshooting 1 1 1/measure.rb:502:in `block in run'

C:/Users/User/AppData/Local/Temp/OpenStudioApp.eE9596/resources/measures/UnmetLoadHoursTroubleshooting 1 1 1/measure.rb:494:in `each'

C:/Users/User/AppData/Local/Temp/OpenStudioApp.eE9596/resources/measures/UnmetLoadHoursTroubleshooting 1 1 1/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."

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-04-17 00:51:53 -0600

updated 2017-04-17 00:56:52 -0600

I've figured out how to fix the problem. It appears that the zone thermostat schedules needs to come from Ruleset Schedules and not Compact Schedules. I don't know why this works (I don't speak Ruby yet), but I suspect that it might have something to do with the measure looking for the thermostat schedule, but not finding it because it needs to be a Ruleset Schedule for some reason.

Before: image description

After: image description

edit flag offensive delete link more

Comments

1

You sir are correct. There are a few lines such as #640 that get the model object as a Schedule:Ruleset...

defaultProfile = schedule.to_ScheduleRuleset.get.defaultDaySchedule
Adam Hilton's avatar Adam Hilton  ( 2017-04-17 07:45:30 -0600 )edit

Awesome! Good way to start off the week.

Jonny K's avatar Jonny K  ( 2017-04-17 08:52:40 -0600 )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

Careers

Question Tools

1 follower

Stats

Asked: 2017-04-16 15:57:52 -0600

Seen: 294 times

Last updated: Apr 17 '17