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

OpenStudio Crashes while selecting plant loop

asked 2018-05-01 17:06:08 -0600

rkbest's avatar

I noticed this on multiple OSM files recently that openstudio just crashes when I select to open the plant loop or condenser loop. Earlier I had to abandon and start with the new OSM file because of this issue. But even this OSM file started crashing. I am assuming it is due to some wrong entries but it could be a bug not letting fix it? I am sharing the txt version of the file for the experts to review https://paste2.org/hVMKnzFP

edit retag flag offensive close merge delete

Comments

what version of openstudio are you using? And did you edit anything in the .osm file with a text editor before it crashed in the app?

mdahlhausen's avatar mdahlhausen  ( 2018-05-01 19:40:08 -0600 )edit

@mdahlhausen The model is OS 2.5.0 and crashes also in OS 2.4.0

Avi's avatar Avi  ( 2018-05-02 01:09:27 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
4

answered 2018-05-02 06:46:43 -0600

Avi's avatar

updated 2018-05-02 06:48:53 -0600

As @mdahlhausen implied and also answered here you probably edited the text of the OSM file so you ended up with pretty messed model.

After tracing down your model I ended up with this scheme:

image description

So you have unconnected branch on the demand side of the Plant loop. To get rid of that you will need to remove the following lines:

OS:Node,
  {a1c6291b-1ab6-4ab1-9542-ca4892bdd7dd}, !- Handle
  Node 92,                                !- Name
  {6dfc6c0d-1f37-4c90-8f1b-9f22cd0f2008}, !- Inlet Port
  {3e60f614-05d0-4942-80df-ffaf00b94916}; !- Outlet Port

OS:Connection,
  {6dfc6c0d-1f37-4c90-8f1b-9f22cd0f2008}, !- Handle
  {f0cf240d-e9ae-425d-8700-99d6439aa8b0}, !- Name
  {6ebeeab5-5330-4cf0-adab-cece92e5f071}, !- Source Object
  5,                                      !- Outlet Port
  {a1c6291b-1ab6-4ab1-9542-ca4892bdd7dd}, !- Target Object
  2;                                      !- Inlet Port

OS:Node,
  {b5c1a43e-d9d5-4b87-bfc7-70c373e330c4}, !- Handle
  Node 93,                                !- Name
  {e57a154d-d3ee-4951-a827-fe6d107a274b}, !- Inlet Port
  {df4adad3-6152-431c-a2dd-d5e9ead14e60}; !- Outlet Port

OS:Connection,
  {3e60f614-05d0-4942-80df-ffaf00b94916}, !- Handle
  {01a0d5de-c795-4a0a-a3be-77543fedbbbf}, !- Name
  {a1c6291b-1ab6-4ab1-9542-ca4892bdd7dd}, !- Source Object
  3,                                      !- Outlet Port
  ,                                       !- Target Object
  17;                                     !- Inlet Port

Also in the demand side splitter and mixer you will need to remove the last branches to make it look like that:

OS:Connector:Mixer,
  {9ecc0c57-3935-43b8-bc4f-0a4c6d1306a3}, !- Handle
  Connector Mixer 4,                      !- Name
  {87a5a557-9b3b-4223-acfd-90eaa137f0cc}, !- Outlet Branch Name
  {5c0c5e8d-13dc-472c-baea-8a6be6f600b2}, !- Inlet Branch Name 1
  {2a0024f6-6bfd-469c-8cb6-8d224c15fa30}; !- Inlet Branch Name 2


OS:Connector:Splitter,
  {6ebeeab5-5330-4cf0-adab-cece92e5f071}, !- Handle
  Connector Splitter 5,                   !- Name
  {0469213a-f90d-46f7-b239-ad91a99ab439}, !- Inlet Branch Name
  {dc4386eb-f5ed-49d2-a0dd-5fa69fbc21f0}, !- Outlet Branch Name 1
  {86d5babc-b434-459d-b75f-36a827985fe0}; !- Outlet Branch Name 2

Finally you have four orphan nodes you need to remove:

OS:Node,
  {f0757780-5dba-4f2b-a542-a63b095bb5b1}, !- Handle
  Node 25,                                !- Name
  ,                                       !- Inlet Port
  ;                                       !- Outlet Port

OS:Node,
  {00871ffa-f98d-43c7-8808-df2d714d49e6}, !- Handle
  Node 31,                                !- Name
  ,                                       !- Inlet Port
  ;                                       !- Outlet Port

OS:Node,
  {5dbd6b2c-36a9-44eb-82df-bcfd789744cd}, !- Handle
  Node 48,                                !- Name
  ,                                       !- Inlet Port
  ;                                       !- Outlet Port

OS:Node,
  {5fb16528-a4cd-46b5-a95d-c5a1d56375a2}, !- Handle
  Node 56,                                !- Name
  ,                                       !- Inlet Port
  ;                                       !- Outlet Port

Once you do that you will be able to open the condenser loop:

image description

edit flag offensive delete link more

Comments

Great detective work @Avi!

Julien Marrec's avatar Julien Marrec  ( 2018-05-02 07:39:17 -0600 )edit

Thanks a ton @Avi . Yes, I did edit to resolve some error warnings I was getting earlier. And the model ran completely after the fix. I assumed that was enough and OpenStudio will alert for any new issues. lol.

rkbest's avatar rkbest  ( 2018-05-02 08:14:05 -0600 )edit

@Avi Did you manually locate the error while going through the file or you used some diagnostic script to locate the issues? After modifying the OSM file, I am getting these errors and the file fails to open:

*Model with Version 2.5.0 IDD is not valid to draft strictness level. The collection is INVALID at strictness level 'Draft', because of the errors: Commented Mixer 4 and Splitter 5 and so the file opened but crashed with condenser loop. Steps of how you located the error causing nodes and object will help to fix the rest.

rkbest's avatar rkbest  ( 2018-05-02 08:25:36 -0600 )edit

@rkbest I did it manually though I am thinking of writing a measure to do that. Did you make sure that you added ; at the end of the mixer splitter objects? Here is a link to the corrected model though I use OS 2.4.0.

Avi's avatar Avi  ( 2018-05-02 09:05:41 -0600 )edit

I missed the ; . Forgot all the Eplus editing rules as i havent been workinng with E+ lately. Now the model runs complete. @Avi

rkbest's avatar rkbest  ( 2018-05-02 10:45:21 -0600 )edit
1

answered 2018-05-02 07:35:54 -0600

I think you're hitting a bug in the GridItem.cpp, I have opened a Github issue here where I also include the backtrace I got after producing a crash using a 'Debug' build of current develop (2.5.1).

edit flag offensive delete link more

Comments

@rkbest: of course that is an actual bug only and only if you didn't edit manually the .osm file. Did you?

Julien Marrec's avatar Julien Marrec  ( 2018-05-02 07:36:53 -0600 )edit

@Julien Marrec The funny thing about that is that the model runs without any warnings regarding that plantloop. I believe that it shouldn't be to hard to check for that and eliminate that at opening time.

Avi's avatar Avi  ( 2018-05-02 07:41:09 -0600 )edit

This is because the orphaned branches likely get "deleted" (as in not translated) during forward translation.

Julien Marrec's avatar Julien Marrec  ( 2018-05-02 07:42:31 -0600 )edit

Thanks @Julien Marrec for taking it forward. But, I did edit the model.

rkbest's avatar rkbest  ( 2018-05-02 08:15:02 -0600 )edit

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

1 follower

Stats

Asked: 2018-05-01 17:06:08 -0600

Seen: 226 times

Last updated: May 02 '18