Error using ComStock create_typical_building_from_model measure
I ran into the following error while using the ComStock create_typical_building_from_model
measure with the ashrae_90_1_2016 template. I get the same error with ashrae_90_1_2019. Can anyone suggest where I should look to troubleshoot?
Failed to run workflow. Last Error:
Found error in state 'OpenStudioMeasures' with message: 'Runner error: Measure '/~ ... /measures/create_typical_building_from_model/measure.rb' reported an error with [SWIG director method error. ArgumentError: comparison of Float with nil failed
Traceback (most recent call last):
:/ruby/2.7.0/gems/openstudio-standards-0.5.0/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.PumpVariableSpeed.rb:138:in `>'
:/ruby/2.7.0/gems/openstudio-standards-0.5.0/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.PumpVariableSpeed.rb:138:in `pump_variable_speed_get_control_type'
:/ruby/2.7.0/gems/openstudio-standards-0.5.0/lib/openstudio-standards/prototypes/common/objects/Prototype.PumpVariableSpeed.rb:31:in `pump_variable_speed_control_type'
:/ruby/2.7.0/gems/openstudio-standards-0.5.0/lib/openstudio-standards/prototypes/common/objects/Prototype.Model.rb:1794:in `block in model_apply_prototype_hvac_assumptions'
:/ruby/2.7.0/gems/openstudio-standards-0.5.0/lib/openstudio-standards/prototypes/common/objects/Prototype.Model.rb:1794:in `each'
:/ruby/2.7.0/gems/openstudio-standards-0.5.0/lib/openstudio-standards/prototypes/common/objects/Prototype.Model.rb:1794:in `model_apply_prototype_hvac_assumptions'
@James_BC can you share the workflow (.osw file) that produces this error?
Hi Eric, Sorry, I don't think I can share the osw file publicly. But I think I fixed the source of the problem. I'm still running some simulations to see if they work, but so far so good.
On line 338 of the ComStock
ChangeBuildingLocation
measure I made this change:From:
climateZones.setClimateZone('ASHRAE', args['climate_zone'].gsub('ASHRAE 169-2006-', ''))
To:
climateZones.setClimateZone('ASHRAE', args['climate_zone'].gsub('ASHRAE 169-2013-', ''))
Thanks, that reminds me there's an open issue for this.
Thanks Eric, I think my fix in
ChangeBuildingLocation
worked. I'm no longer getting that error, but my simulation failed at a later step in the workflow. I'll start a new question about it.