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

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

asked 7 years ago

ethankheil's avatar

updated 7 years ago

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 `'

Preview: (hide)

Comments

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's avatar aparker  ( 7 years ago )

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

ethankheil's avatar ethankheil  ( 7 years ago )

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

aparker's avatar aparker  ( 7 years ago )

I sent it last night, sorry for the delay

ethankheil's avatar ethankheil  ( 7 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 6 years ago

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.

Preview: (hide)
link

Comments

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

Tim Johnson's avatar Tim Johnson  ( 6 years ago )

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

aparker's avatar aparker  ( 6 years ago )

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

Tim Johnson's avatar Tim Johnson  ( 6 years ago )

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's avatar aparker  ( 6 years ago )

@aparker, if you are interested in investigating my model, I would love to hear what you find. You can find the model here: https://www.dropbox.com/sh/xsvqm0bvse....

Tim Johnson's avatar Tim Johnson  ( 6 years ago )

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

2 followers

Stats

Asked: 7 years ago

Seen: 532 times

Last updated: May 10 '18