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

Error encountered due to Baseline measure

asked 2019-11-04 07:14:39 -0500

RabindraKumar's avatar


While applying base line measure to a 12 storey building it create an unexpected error in ruby file. I couldn't rectifying this error which I enclosed in attachment. I don't know where exactly made mistake in modeling. Here there is no errors & warning in message. Please suggest me to encounter the issue of one error while running Baseline measure.image description

edit retag flag offensive close merge delete



1) you are running an old version of openstudio-standards (v0.2.2). Please download a newer version of OpenStudio and update your model to that version, and make sure that your BCL measures are updated as well.

2) The measure is failing on this line: minz = z_points.min + space.zOrigin This appears to be a missing .zOrigin. Can you check that your spaces all have defined surfaces?

mdahlhausen's avatar mdahlhausen  ( 2019-11-04 11:45:55 -0500 )edit

when I look into ashrae_90_1_2013.Model.rb file it creates only for 10 storey building. But I made this building about 12 storey for which it will create this kind of error?

RabindraKumar's avatar RabindraKumar  ( 2019-11-04 23:56:23 -0500 )edit

I tried in openstudio-2.9.0, still it could not solved.

RabindraKumar's avatar RabindraKumar  ( 2019-11-05 06:51:21 -0500 )edit

copy a link to your model. I'm guessing that issue 2) in my comment above applies - you have a space with missing surfaces.

mdahlhausen's avatar mdahlhausen  ( 2019-11-05 09:53:30 -0500 )edit

Dear Mdahlhausen,

Thanks a lot!

How to check where is that missing surface? Is there any way to figure out the missing surface?

Here I attached the OSM file link

RabindraKumar's avatar RabindraKumar  ( 2019-11-05 22:56:05 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-11-06 10:49:11 -0500

The method is failing at this line:

minz = z_points.min + space.zOrigin

In this piece of code:

z_points = []
space.surfaces.each do |surface|
  surface.vertices.each do |vertex|
    z_points << vertex.z
minz = z_points.min + space.zOrigin

z_points.min is nil, which means the were no z_points for a surface. Running this check on the model shows that space 'Space 150_Non' doesn't have any surfaces.

You need to simplify the model geometry. You have 667 spaces over 46 thermal zones and 8025 surfaces. This will take a while to run and render, and makes debugging in the OS App nearly impossible. Try reducing the number of spaces down to as close to 46 as possible. EnergyPlus simulates at the thermal zone level with a mixed air model anyways, so separating out this many spaces doesn't increase model fidelity. You can keep separate spaces in the same thermal zone if the two spaces have different internal loads.

edit flag offensive delete link more


Dear Mdahlhausen,

Thank you very much!

1)Can you suggest How could I reduce the 667 spaces to 46?

2) Can you guide how do you rectify it. Space 150_Non doesn't have any surface?

3) After removing this space Space 150_Non from the geometry & apply same measure for Base line . It had come with another error as I attached here link.

It would be more appreciate if you could suggest how to encounter this type of error.

RabindraKumar's avatar RabindraKumar  ( 2019-11-06 23:34:41 -0500 )edit

Hope I would getting some idea to handle while running this baseline measure!

RabindraKumar's avatar RabindraKumar  ( 2019-11-06 23:37:11 -0500 )edit

combine spaces. delete Space 150_non from your model. text editor is fastest. post the other error.

mdahlhausen's avatar mdahlhausen  ( 2019-11-07 13:15:52 -0500 )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: 2019-11-04 07:14:39 -0500

Seen: 328 times

Last updated: Nov 06 '19