Hi all!
I'm running into an issue getting the “Create ASHRAE 90.1-2019 PRM Model” measure to run in OpenStudio. It keeps failing right at the beginning of the run, with the following error:
[14:41:51.180563 ERROR] undefined method 'fanEfficiency' for #<OpenStudio::Model::HVACComponent:0x0000018b3bfb7558>
I've been attempting to run the measure by adding it to the model in the Measures tab and then running the model, but I've also tried using "Apply Measure Now" and run into the same issues. And I'm currently using OpenStudio v3.7.0 with OpenStudioApplication v1.7.2 and openstudio-standards v0.5.0 gem. (I tried using the newest version of the openstudio-standards gem (v0.8.4), but still had the same issue.)
I tried a bit of troubleshooting on my own based on the error details (see below), and found that this error seems to stem from the #air_loop_hvac_get_supply_fan(air_loop) object located in the ./openstudio-standards-0.5.0/lib/openstudio-standards/standards/Standards.AirLoopHVAC.rb ruby file, which doesn't include an option for the FanSystemFan fan type, only for FanConstantVolume, FanOnOff, FanVariableVolume (See the gemdocs info on the method here: [https://gemdocs.org/gems/openstudio-standards/0.8.4/Standard.html#air_loop_hvac_get_supply_fan-instance_method]).
Is it possible that the measure doesn't work because my fan type isn't compatible, or is there something I'm missing/should be doing differently to get the measure to work?
A longer section of the run.log file with the error I keep getting is included below in case it helps. Let me know if I can clarify anything, and thanks in advance for any help or direction you can give!
[14:41:51.180563 ERROR] undefined method 'fanEfficiency' for #<OpenStudio::Model::HVACComponent:0x0000018b3bfb7558>
C:/Users/.../Downloads/openstudio-standards-0.8.4/openstudio-standards-0.8.4/lib/openstudio-standards/standards/Standards.Fan.rb:111:in 'fan_fanpower'
C:/Users/.../Downloads/openstudio-standards-0.8.4/openstudio-standards-0.8.4/lib/openstudio-standards/standards/Standards.AirLoopHVAC.rb:3793:in 'air_loop_hvac_get_supply_fan_power'
C:/Users/.../Downloads/openstudio-standards-0.8.4/openstudio-standards-0.8.4/lib/openstudio-standards/standards/Standards.Model.rb:321:in 'block (2 levels) in model_create_prm_any_baseline_building'
C:/Users/.../Downloads/openstudio-standards-0.8.4/openstudio-standards-0.8.4/lib/openstudio-standards/standards/Standards.Model.rb:320:in 'each'
C:/Users/.../Downloads/openstudio-standards-0.8.4/openstudio-standards-0.8.4/lib/openstudio-standards/standards/Standards.Model.rb:320:in 'block in model_create_prm_any_baseline_building'
C:/Users/.../Downloads/openstudio-standards-0.8.4/openstudio-standards-0.8.4/lib/openstudio-standards/standards/Standards.Model.rb:161:in 'each'
C:/Users/.../Downloads/openstudio-standards-0.8.4/openstudio-standards-0.8.4/lib/openstudio-standards/standards/Standards.Model.rb:161:in 'block in model_create_prm_any_baseline_building'
C:/Users/.../Downloads/openstudio-standards-0.8.4/openstudio-standards-0.8.4/lib/openstudio-standards/standards/Standards.Model.rb:164:in 'model_create_prm_any_baseline_building'
C:/Users/.../AppData/Local/Temp/osmodel-bf5d-3f80-be08-369c-1764726226-0/resources/measures/PerformanceRatingMethod/measure.rb:421:in 'run'
:/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/util/measure.rb:517:in 'apply_measure'
:/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/util/measure.rb:114:in 'block in apply_measures'
:/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/util/measure.rb:67:in 'each_index'
:/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/util/measure.rb:67:in 'apply_measures'
:/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/jobs/run_os_measures.rb:70:in 'perform'
:/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/run.rb:291:in 'step'
:/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/run.rb:233:in 'run'
:/openstudio_cli.rb:1190:in 'execute'
:/openstudio_cli.rb:820:in 'execute'
:/openstudio_cli.rb:1987:in '<main>'
eval:193:in 'eval'
eval:193:in 'require_embedded_absolute'
eval:178:in 'block in require_embedded'
eval:172:in 'each'
eval:172:in 'require_embedded'
eval:131:in 'require'
eval:3:in '<main>'



