NREL / OpenStudio

OpenStudio is a cross-platform collection of software tools to support whole building energy modeling using EnergyPlus and advanced daylight analysis using Radiance.
https://www.openstudio.net/
Other
486 stars 186 forks source link

Removal of HVAC in osm is causing Segmentation fault in Prototype.utilities.rb #5124

Open antonszilasi opened 4 months ago

antonszilasi commented 4 months ago

Issue overview

Upon attempting to call standard.remove_hvac(model) (where standard is OpenStudio-standards ) on a particular osm with (2 ERVs and 2 PTHPs) in a single zone.

I received a Segmentation fault in Prototype.utilities.rb of OpenStudio-standards. While this initially appeared to be a OpenStudio-standards error after further digging it appears that this is not the case hence, I am reporting it here.

image

image image

Steps to Reproduce

I have attached the osm in question along with a small script to load it and call standard.remove_hvac(model) to reproduce the error in a zipped directory here.

Since this issue was originally reported on OpenStudio-standards @mdahlhausen kindly provided minimal steps to reproduce the issue here.

Remove HVAC system segmentation fault.zip

Environment

OpenStudio 3.6.1 and 3.7, and OpenStudio standards 0.4 and 0.5