2

Unmet Load Hours Troubleshoot measure failure

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."

Jonny K's avatar
554
Jonny K
asked 2017-04-16 15:57:52 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2017-08-05 08:00:42 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

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

Jonny K's avatar
554
Jonny K
answered 2017-04-17 00:51:53 -0500, updated 2017-04-17 00:56:52 -0500
edit flag offensive 0 remove flag delete link

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 -0500) edit

Awesome! Good way to start off the week.

Jonny K's avatar Jonny K (2017-04-17 08:52:40 -0500) edit
add a comment see more comments