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

Error running "Create Baseline Building" Measure in OS 2.3+

asked 2018-03-02 17:27:01 -0600

ethankheil gravatar image

updated 2018-03-11 10:54:36 -0600

I am having trouble executing the "Create Baseline Building" measure on a number of OpenStudio models in versions 2.3 and 2.4. Previous iterations of these models (e.g., based on OS version 1.14) seemed to execute the "Create Baseline Building" measure just fine. I have tried differeing Building Types (e.g., Small, Medium, Large Office) and different Standards (2007, 2010, and 2013) without any luck.

An example of the error message I receive is as follows:

[15:25:11.592781 ERROR] Optional not initialized :/ruby/2.2.0/gems/openstudio-standards-0.1.15/lib/openstudio-standards/standards/Standards.AirLoopHVAC.rb:290:in get' :/ruby/2.2.0/gems/openstudio-standards-0.1.15/lib/openstudio-standards/standards/Standards.AirLoopHVAC.rb:290:inallowable_system_brake_horsepower' :/ruby/2.2.0/gems/openstudio-standards-0.1.15/lib/openstudio-standards/standards/Standards.AirLoopHVAC.rb:201:in apply_prm_baseline_fan_power' :/ruby/2.2.0/gems/openstudio-standards-0.1.15/lib/openstudio-standards/standards/Standards.Model.rb:266:inblock in create_prm_baseline_building' :/ruby/2.2.0/gems/openstudio-standards-0.1.15/lib/openstudio-standards/standards/Standards.Model.rb:265:in each' :/ruby/2.2.0/gems/openstudio-standards-0.1.15/lib/openstudio-standards/standards/Standards.Model.rb:265:increate_prm_baseline_building' C:/Users/ethan/BCL/4de56e21-b6cd-45d9-8466-862507d228b2/46ca3be9-a702-4955-b5b9-36bd9ca703dc/measure.rb:190:in run' :/ruby/2.2.0/gems/openstudio-workflow-1.3.1/lib/openstudio/workflow/util/measure.rb:450:inapply_measure' :/ruby/2.2.0/gems/openstudio-workflow-1.3.1/lib/openstudio/workflow/util/measure.rb:74:in block in apply_measures' :/ruby/2.2.0/gems/openstudio-workflow-1.3.1/lib/openstudio/workflow/util/measure.rb:32:ineach_index' :/ruby/2.2.0/gems/openstudio-workflow-1.3.1/lib/openstudio/workflow/util/measure.rb:32:in apply_measures' :/ruby/2.2.0/gems/openstudio-workflow-1.3.1/lib/openstudio/workflow/jobs/run_os_measures.rb:52:inperform' :/ruby/2.2.0/gems/openstudio-workflow-1.3.1/lib/openstudio/workflow/run.rb:261:in step' :/ruby/2.2.0/gems/openstudio-workflow-1.3.1/lib/openstudio/workflow/run.rb:210:inrun' :/openstudio_cli.rb:821:in execute' :/openstudio_cli.rb:620:inexecute' :/openstudio_cli.rb:1547:in ' eval:85:ineval' eval:85:in require_embedded_absolute' eval:70:inblock in require' eval:64:in each' eval:64:inrequire' eval:2:in `'

edit retag flag offensive close merge delete


This looks like a bug. I'm working on the openstudio-standards gem now. Could you email me one of the test models that you are running that is failing?

aparker gravatar imageaparker ( 2018-03-07 22:00:38 -0600 )edit

Thanks for your help, Andrew. What's your email address?

ethankheil gravatar imageethankheil ( 2018-03-08 12:49:00 -0600 )edit
aparker gravatar imageaparker ( 2018-03-12 09:23:13 -0600 )edit

@ethankheil did you send me the model? I want to make sure it didn't get stuck in a spam filter.

aparker gravatar imageaparker ( 2018-03-14 11:53:43 -0600 )edit

I sent it last night, sorry for the delay

ethankheil gravatar imageethankheil ( 2018-03-19 12:29:57 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-05-10 18:06:43 -0600

In case anyone else hits this same error, the problem was that one of the Thermal Zones in the model had a " (quotation mark) character in the name. This extra symbol broke the equipment sizing query that was extracting the HVAC airflows and capacities from the sql file.

edit flag offensive delete link more


Interesting. Are there other characters that might cause this? The only special characters I have are colons and dashes.

Tim Johnson gravatar imageTim Johnson ( 2018-05-11 12:16:36 -0600 )edit

I'd have to think about it more, but mainly just ' and " marks, because those have special meaning in SQL queries.

aparker gravatar imageaparker ( 2018-05-11 13:37:56 -0600 )edit

Interesting. I guess mine is a different issue. I'll post the solution if I figure it out.

Tim Johnson gravatar imageTim Johnson ( 2018-05-11 15:27:42 -0600 )edit

If you have a different failure email me your model if you don't mind. Id like this to be robust, so files that don't work help find issues

aparker gravatar imageaparker ( 2018-05-11 18:51:30 -0600 )edit

@aparker, if you are interested in investigating my model, I would love to hear what you find. You can find the model here:

Tim Johnson gravatar imageTim Johnson ( 2018-05-14 17:50:39 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer


Question Tools



Asked: 2018-03-02 17:27:01 -0600

Seen: 153 times

Last updated: May 10 '18