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

OpenStudio models keeps failing on line 1992 in ThermalZone.cpp?

asked 2024-08-05 15:24:05 -0500

DariusLuo's avatar

updated 2024-08-09 16:14:41 -0500

Hello,

I have received the same error message across multiple OpenStudio models of varying complexity. Please follow this link for my .osm file with simple geometry that has the following error message.

Beginning the translation to IDF
Assertion pl failed on line 1992 of class openstudio::model::PortList __cdecl openstudio::model::detail::ThermalZone_Impl::inletPortList(void) const in file D:\OSN\src\model\ThermalZone.cpp.
stderr: [BOOST_ASSERT] <2> Assertion pl failed on line 1992 of class openstudio::model::PortList __cdecl openstudio::model::detail::ThermalZone_Impl::inletPortList(void) const in file D:\OSN\src\model\ThermalZone.cpp.
onRunProcessErrored: Simulation failed to run, QProcess::ProcessError: 1
Simulation failed to run, with exit code -1073741819

I have already run the OSM Diagnostics Script and Remove Unused ThermalZones.

I tried adding a report measure of “Add Output Diagnostics” to try and diagnose the issue, but receive an error message that says "Measure Manager has crashed, attempting to restart. Do you want to reset Measure Manager settings?" And when I hit “Restore Defaults,” the program crashes.

The program also crashes when I attempt to view the geometry from the OpenStudio main interface, so perhaps it has something to do with the geometry I created in SketchUp?

I appreciate any insight others can provide! Thank you so much.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2024-08-10 08:01:05 -0500

updated 2024-08-10 11:31:18 -0500

The OS:ThermalZone objects (3x) in your OSM file have missing zone air port lists (i.e. Inlet, Exhaust and Return), e.g.:

OS:ThermalZone,
  {40fec67b-206e-4fb3-a3fc-687b921adfb0}, !- Handle
  Thermal Zone: LivingArea,               !- Name
  ,                                       !- Multiplier
  ,                                       !- Ceiling Height {m}
  ,                                       !- Volume {m3}
  ,                                       !- Floor Area {m2}
  ,                                       !- Zone Inside Convection Algorithm
  ,                                       !- Zone Outside Convection Algorithm
  ,                                       !- Zone Conditioning Equipment List Name
  ,                                       !- Zone Air Inlet Port List
  ,                                       !- Zone Air Exhaust Port List
  {a90b38cb-18e2-4057-bbb9-ada1a5857136}, !- Zone Air Node Name
  ,                                       !- Zone Return Air Port List
  ,                                       !- Primary Daylighting Control Name
  ,                                       !- Fraction of Zone Controlled by Primary D...
  ,                                       !- Secondary Daylighting Control Name
  ,                                       !- Fraction of Zone Controlled by Secondary D...
  ,                                       !- Illuminance Map Name
  {e8ffdf51-9252-4f2e-8cbe-b07e379b82f3}, !- Group Rendering Name
  {95aa2a88-908d-46ed-a196-8a29cddd3f0b}, !- Thermostat Name
  Yes;                                    !- Use Ideal Air Loads

It is indeed crashing at line 1992 here, as there is no Zone Air Inlet Port List object to assert (the existence of). Could the OpenStudio API feedback be more informative? Sure. Regardless, something went wrong when initializing those thermal zone objects. By default, when an OS:ThermalZone object is initialized, all 3 port list objects are automatically generated, along with the other required thermal zone objects:

These objects are indeed required, even if they're initially circular (i.e. they initially refer back to each thermal zone without valid HVAC components to connect). Any chance you've saved a preliminary version of the model before adding thermal zones?

If not, the safest for you would be to purge the model of all 3 thermal zone objects (and their aforementioned zone-related objects), then re-add thermal zones (the other objects should be auto-generated). Yet after several tries I can't edit/correct your model without crashing the OpenStudioApplication, and so can't help in guiding you towards a quick fix. This would be fairly straightforward using an API script (e.g. Ruby, Python). Somewhat more hazardous to do by hand, yet this may be your only option (if you're not comfortable interacting with the API). Fortunately, your model holds exactly 3 instances of each object (i.e. 3 nodes, 3 connections, 3 sizing objects, 3 equipment lists), one for each thermal zone. So maybe make a copy of your model, delete all of these objects and restart from there.

There may be something else wrong with your model (which may be crashing the App), yet hard to say before fixing this stuff first.

edit flag offensive delete link more

Comments

1

Thank you for your answer! I did not save a preliminary version without thermal zones, but I unassigned, removed, and then re-added the three thermal zones and that did the trick! For anyone else having similar issues, this also stopped the program from crashing every time I tried accessing the Thermal Zones tab in the main interface.

DariusLuo's avatar DariusLuo  ( 2024-08-12 07:00:02 -0500 )edit

Your Answer

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

Add Answer

Careers

Question Tools

1 follower

Stats

Asked: 2024-08-05 14:26:58 -0500

Seen: 219 times

Last updated: Aug 12