Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 107.6 kB / 16.42 MB, free: 6.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 188.3 kB / 17.35 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.181/1.181, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1662/0.1662, allocations: 38 MB / 308.6 MB, free: 5.98 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.801e-05/2.801e-05, allocations: 6.219 kB / 433.6 MB, free: 14.62 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume): time 0.3732/0.3732, allocations: 209.9 MB / 0.6284 GB, free: 1.781 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01654/0.3898, allocations: 13.63 MB / 0.6418 GB, free: 4.117 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001345/0.3912, allocations: 39.75 kB / 0.6418 GB, free: 4.078 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001199/0.3924, allocations: 484.8 kB / 0.6423 GB, free: 3.602 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007536/0.4, allocations: 3.158 MB / 0.6453 GB, free: 460 kB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007012/0.407, allocations: 3.364 MB / 0.6486 GB, free: 13.08 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.004022/0.411, allocations: 3.518 MB / 0.6521 GB, free: 9.555 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00102/0.412, allocations: 0.8332 MB / 0.6529 GB, free: 8.711 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001821/0.4139, allocations: 1.371 MB / 0.6542 GB, free: 7.336 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001538/0.4154, allocations: 1.223 MB / 0.6554 GB, free: 6.109 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001547/0.4156, allocations: 112 kB / 0.6555 GB, free: 6 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005623/0.4212, allocations: 3.377 MB / 0.6588 GB, free: 2.617 MB / 478.1 MB Notification: Performance of combineBinaries: time 0.001839/0.4231, allocations: 2.338 MB / 0.6611 GB, free: 264 kB / 478.1 MB Notification: Performance of replaceArrayConstructors: time 0.0009215/0.424, allocations: 1.401 MB / 0.6625 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003001/0.4243, allocations: 203.4 kB / 0.6627 GB, free: 14.64 MB / 494.1 MB Notification: Performance of FrontEnd: time 0.0002201/0.4245, allocations: 39.81 kB / 0.6627 GB, free: 14.6 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 (165) * Number of variables: 204 (168) Notification: Performance of Bindings: time 0.005169/0.4297, allocations: 5.917 MB / 0.6685 GB, free: 8.5 MB / 494.1 MB Notification: Performance of FunctionAlias: time 0.0005363/0.4303, allocations: 0.5311 MB / 0.669 GB, free: 7.969 MB / 494.1 MB Notification: Performance of Early Inline: time 0.002908/0.4332, allocations: 3.045 MB / 0.672 GB, free: 4.887 MB / 494.1 MB Notification: Performance of simplify1: time 0.000274/0.4335, allocations: 255.7 kB / 0.6722 GB, free: 4.637 MB / 494.1 MB Notification: Performance of Alias: time 0.003228/0.4367, allocations: 3.105 MB / 0.6752 GB, free: 1.285 MB / 494.1 MB Notification: Performance of simplify2: time 0.0002395/0.437, allocations: 227.7 kB / 0.6755 GB, free: 1.062 MB / 494.1 MB Notification: Performance of Events: time 0.0006244/0.4376, allocations: 0.5573 MB / 0.676 GB, free: 500 kB / 494.1 MB Notification: Performance of Detect States: time 0.0007676/0.4384, allocations: 0.7622 MB / 0.6767 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of Partitioning: time 0.001141/0.4395, allocations: 1.155 MB / 0.6779 GB, free: 14.35 MB / 0.4981 GB Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (121/157) **************************** (1) [ALGB] (1) Real source1.medium.h (2) [ALGB] (1) stream Real pipe.port_a.h_outflow (start = 298609.6803431054, min = -1e10, max = 1e10, nominal = 1e5) (3) [ALGB] (1) Real source3.medium.h (4) [ALGB] (1) Real[1] pipe.flowModel.Ib_flows (5) [ALGB] (1) Real source1.medium.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (6) [ALGB] (1) protected Real[1] pipe2.flowModel.diameters = 0.5 * (pipe2.flowModel.dimensions[2:2] + pipe2.flowModel.dimensions[1:1]) (7) [ALGB] (1) protected Real pipe.flowModel.dp_fric_nominal = sum({ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe.flowModel.WallFriction.pressureLoss_m_flow(pipe.flowModel.m_flow_nominal / pipe.flowModel.nParallel, pipe.flowModel.rho_nominal, pipe.flowModel.rho_nominal, pipe.flowModel.mu_nominal, pipe.flowModel.mu_nominal, pipe.flowModel.pathLengths_internal[1], pipe.flowModel.diameters[1], ((pipe.flowModel.crossAreas[2:2] + pipe.flowModel.crossAreas[1:1]) / 2.0)[1], ((pipe.flowModel.roughnesses[2:2] + pipe.flowModel.roughnesses[1:1]) / 2.0)[1], pipe.flowModel.m_flow_small / pipe.flowModel.nParallel, pipe.flowModel.Res_turbulent_internal[1])}) (min = 0.0, nominal = 1e5) (8) [ALGB] (2) final Real[2] pipe1.flowModel.roughnesses = {pipe1.roughness, pipe1.roughness} (min = {0.0 for $i1 in 1:2}) (9) [ALGB] (1) flow Real pipe1.port_b.m_flow (min = -1e5, max = 1e60) (10) [ALGB] (1) Real junction.Hb_flow (11) [ALGB] (1) protected Real[1] pipe.flowModel.diameters = 0.5 * (pipe.flowModel.dimensions[2:2] + pipe.flowModel.dimensions[1:1]) (12) [ALGB] (2) Real[2] pipe.flowModel.vs = {pipe.port_a.m_flow / (pipe.flowModel.crossAreas[1] * ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe.Medium.density(pipe.flowModel.states[1])), -(-pipe.port_a.m_flow) / (ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe.Medium.density(pipe.flowModel.states[2]) * pipe.flowModel.crossAreas[2])} / pipe.nParallel (13) [ALGB] (1) Real[1] source2.ports.p (start = {1e6 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (14) [ALGB] (1) Real[1] pipe2.flowModel.Is (15) [ALGB] (2) Real[2] pipe.flowModel.mus = {ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe.flowModel.Medium.dynamicViscosity(pipe.flowModel.states[$i1]) for $i1 in 1:2} (start = {0.001 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {0.001 for $i1 in 1:2}) (16) [ALGB] (1) Real junction.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (17) [ALGB] (2) final Real[2] pipe2.flowModel.roughnesses = {pipe2.roughness, pipe2.roughness} (min = {0.0 for $i1 in 1:2}) (18) [DER-] (1) Real $DER.junction.medium.p_bar (19) [ALGB] (2) final Real[2] pipe1.flowModel.dimensions = {(4.0 * pipe1.crossArea) / pipe1.perimeter, (4.0 * pipe1.crossArea) / pipe1.perimeter} (20) [ALGB] (1) stream Real[1] source3.ports.h_outflow (start = {298609.6803431054}, min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (21) [ALGB] (1) final Real[1] pipe1.flowModel.dheights = {pipe1.height_ab} (22) [ALGB] (1) stream Real junction.port_3.h_outflow (start = 298609.6803431054, min = -1e10, max = 1e10, nominal = 1e5) (23) [ALGB] (1) Real pipe2.port_b.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (24) [DER-] (1) Real $DER.junction.U (25) [ALGB] (1) Real[1] pipe2.flowModel.Fs_p (26) [ALGB] (1) Real[1] pipe2.flowModel.Fs_fg (27) [ALGB] (1) Real junction.medium.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (28) [ALGB] (1) Real[1] source1.ports.p (start = {1e6 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (29) [ALGB] (1) flow Real[1] source2.ports.m_flow (min = {-1e60}, max = {1e60}) (30) [ALGB] (1) Real[1] pipe2.flowModel.pathLengths_internal = pipe2.flowModel.pathLengths (31) [ALGB] (1) Real[1] pipe.flowModel.pathLengths_internal = pipe.flowModel.pathLengths (32) [ALGB] (1) stream Real pipe2.port_b.h_outflow (start = 298609.6803431054, min = -1e10, max = 1e10, nominal = 1e5) (33) [ALGB] (1) Real junction.medium.state.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (34) [ALGB] (1) stream Real pipe1.port_a.h_outflow (start = 298609.6803431054, min = -1e10, max = 1e10, nominal = 1e5) (35) [ALGB] (2) final Real[2] pipe.flowModel.dimensions = {(4.0 * pipe.crossArea) / pipe.perimeter, (4.0 * pipe.crossArea) / pipe.perimeter} (36) [ALGB] (1) final Real[1] pipe2.flowModel.pathLengths = {pipe2.length} (37) [ALGB] (1) Real $FUN_8 (38) [ALGB] (1) flow Real pipe2.port_b.m_flow (min = -1e5, max = 1e60) (39) [ALGB] (2) final Real[2] pipe2.flowModel.dimensions = {(4.0 * pipe2.crossArea) / pipe2.perimeter, (4.0 * pipe2.crossArea) / pipe2.perimeter} (40) [ALGB] (1) Real $FUN_6 (41) [ALGB] (4) input Real[2, 2] pipe1.flowModel.states.p (start = {1e6 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (42) [ALGB] (1) Real $FUN_4 (43) [ALGB] (1) protected Real[1] pipe1.flowModel.diameters = 0.5 * (pipe1.flowModel.dimensions[2:2] + pipe1.flowModel.dimensions[1:1]) (44) [ALGB] (1) Real $FUN_3 (45) [ALGB] (1) Real[1] pipe.flowModel.Fs_p (46) [ALGB] (1) Real $FUN_2 (47) [ALGB] (1) Real $FUN_1 (48) [DER-] (1) Real $DER.junction.m (49) [ALGB] (1) Real source2.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (50) [ALGB] (1) Real junction.mb_flow (51) [ALGB] (1) Real[1] pipe.flowModel.m_flows (start = {0.0 for $i1 in 1:1}, min = {-1e60 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, StateSelect = default) (52) [ALGB] (1) Real source1.medium.state.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (53) [ALGB] (2) Real[2] pipe2.flowModel.vs = {(-pipe2.port_b.m_flow) / (pipe2.flowModel.crossAreas[1] * ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe2.Medium.density(pipe2.flowModel.states[1])), -pipe2.port_b.m_flow / (ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe2.Medium.density(pipe2.flowModel.states[2]) * pipe2.flowModel.crossAreas[2])} / pipe2.nParallel (54) [ALGB] (1) Real[1] pipe1.flowModel.Fs_p (55) [ALGB] (2) final Real[2] pipe.flowModel.roughnesses = {pipe.roughness, pipe.roughness} (min = {0.0 for $i1 in 1:2}) (56) [ALGB] (1) Real[1] pipe.flowModel.dps_fg (start = {pipe.flowModel.p_a_start - pipe.flowModel.p_b_start for $i1 in 1:1}) (57) [ALGB] (1) Real[1] pipe.flowModel.mus_act (start = {0.001 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {0.001 for $i1 in 1:1}) (58) [ALGB] (1) Real source2.medium.h (59) [ALGB] (1) Real[1] pipe2.flowModel.Ib_flows (60) [ALGB] (1) Real junction.medium.state.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (61) [ALGB] (1) Real[1] pipe1.flowModel.rhos_act (start = {10.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, nominal = {10.0 for $i1 in 1:1}) (62) [ALGB] (1) stream Real[1] source1.ports.h_outflow (start = {298609.6803431054}, min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (63) [ALGB] (4) input Real[2, 2] pipe2.flowModel.states.T (start = {500.0 for $i1 in 1:2}, min = {200.0 for $i1 in 1:2}, max = {6000.0 for $i1 in 1:2}, nominal = {500.0 for $i1 in 1:2}) (64) [DISC] (1) Boolean $SEV_17 (65) [DISC] (1) Boolean $SEV_16 (66) [ALGB] (1) Real[1] pipe.flowModel.Res_turbulent_internal = pipe.flowModel.Re_turbulent * {1.0 for $i1 in 1:1} (67) [DISC] (1) Boolean $SEV_15 (68) [ALGB] (2) final Real[2] pipe1.flowModel.crossAreas = {pipe1.crossArea, pipe1.crossArea} (69) [ALGB] (4) input Real[2, 2] pipe1.flowModel.states.T (start = {500.0 for $i1 in 1:2}, min = {200.0 for $i1 in 1:2}, max = {6000.0 for $i1 in 1:2}, nominal = {500.0 for $i1 in 1:2}) (70) [ALGB] (1) Real[1] pipe1.flowModel.Fs_fg (71) [ALGB] (1) Real[1] pipe2.flowModel.m_flows (start = {0.0 for $i1 in 1:1}, min = {-1e60 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, StateSelect = default) (72) [ALGB] (1) final Real[1] pipe.flowModel.dheights = {pipe.height_ab} (73) [ALGB] (1) Real[1] pipe1.flowModel.Is (74) [ALGB] (1) Real[1] pipe2.flowModel.rhos_act (start = {10.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, nominal = {10.0 for $i1 in 1:1}) (75) [ALGB] (1) Real[1] pipe1.flowModel.m_flows (start = {0.0 for $i1 in 1:1}, min = {-1e60 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, StateSelect = default) (76) [ALGB] (1) Real[1] pipe2.flowModel.dps_fg (start = {pipe2.flowModel.p_a_start - pipe2.flowModel.p_b_start for $i1 in 1:1}) (77) [ALGB] (1) Real[1] pipe1.flowModel.Ib_flows (78) [ALGB] (1) final Real[1] pipe.flowModel.pathLengths = {pipe.length} (79) [ALGB] (1) stream Real pipe.port_b.h_outflow (start = 298609.6803431054, min = -1e10, max = 1e10, nominal = 1e5) (80) [ALGB] (1) Real pipe.port_a.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (81) [ALGB] (1) Real[1] pipe2.flowModel.mus_act (start = {0.001 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {0.001 for $i1 in 1:1}) (82) [ALGB] (2) Real[2] pipe2.flowModel.rhos = {ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe2.flowModel.Medium.density(pipe2.flowModel.states[$i1]) for $i1 in 1:2} (start = {10.0 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}, nominal = {10.0 for $i1 in 1:2}) (83) [ALGB] (1) Real pipe1.port_b.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (84) [ALGB] (1) Real[1] pipe1.flowModel.mus_act (start = {0.001 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {0.001 for $i1 in 1:1}) (85) [ALGB] (2) Real[2] pipe2.flowModel.mus = {ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe2.flowModel.Medium.dynamicViscosity(pipe2.flowModel.states[$i1]) for $i1 in 1:2} (start = {0.001 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {0.001 for $i1 in 1:2}) (86) [ALGB] (2) Real[2] pipe1.flowModel.mus = {ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe1.flowModel.Medium.dynamicViscosity(pipe1.flowModel.states[$i1]) for $i1 in 1:2} (start = {0.001 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {0.001 for $i1 in 1:2}) (87) [DISC] (1) Boolean $SEV_5 (88) [ALGB] (1) flow Real[1] source1.ports.m_flow (min = {-1e60}, max = {1e60}) (89) [ALGB] (1) Real[1] pipe.flowModel.Is (90) [DER-] (1) Real $DER.junction.medium.T_degC (91) [ALGB] (4) input Real[2, 2] pipe.flowModel.states.p (start = {1e6 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (92) [ALGB] (4) input Real[2, 2] pipe2.flowModel.states.p (start = {1e6 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (93) [DISC] (1) Boolean $SEV_3 (94) [DISC] (1) Boolean $SEV_1 (95) [ALGB] (1) flow Real[1] source3.ports.m_flow (min = {-1e60}, max = {1e60}) (96) [DISC] (1) Boolean $TEV_1 (97) [DISC] (1) Boolean $TEV_0 (98) [ALGB] (1) Real[1] pipe1.flowModel.dps_fg (start = {pipe1.flowModel.p_a_start - pipe1.flowModel.p_b_start for $i1 in 1:1}) (99) [ALGB] (1) stream Real[1] source2.ports.h_outflow (start = {298609.6803431054}, min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (100) [ALGB] (1) final Real[1] pipe1.flowModel.pathLengths = {pipe1.length} (101) [ALGB] (1) Real[1] pipe.flowModel.Fs_fg (102) [ALGB] (1) Real[1] pipe1.flowModel.Res_turbulent_internal = pipe1.flowModel.Re_turbulent * {1.0 for $i1 in 1:1} (103) [ALGB] (2) Real[2] pipe1.flowModel.vs = {(-pipe1.port_b.m_flow) / (pipe1.flowModel.crossAreas[1] * ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe1.Medium.density(pipe1.flowModel.states[1])), -pipe1.port_b.m_flow / (ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe1.Medium.density(pipe1.flowModel.states[2]) * pipe1.flowModel.crossAreas[2])} / pipe1.nParallel (104) [ALGB] (1) Real[1] source3.ports.p (start = {1e6 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (105) [ALGB] (2) final Real[2] pipe.flowModel.crossAreas = {pipe.crossArea, pipe.crossArea} (106) [ALGB] (2) Real[2] pipe.flowModel.rhos = {ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe.flowModel.Medium.density(pipe.flowModel.states[$i1]) for $i1 in 1:2} (start = {10.0 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}, nominal = {10.0 for $i1 in 1:2}) (107) [ALGB] (1) Real source1.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (108) [ALGB] (2) Real[2] pipe1.flowModel.rhos = {ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe1.flowModel.Medium.density(pipe1.flowModel.states[$i1]) for $i1 in 1:2} (start = {10.0 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}, nominal = {10.0 for $i1 in 1:2}) (109) [ALGB] (1) Real source3.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (110) [ALGB] (2) final Real[2] pipe2.flowModel.crossAreas = {pipe2.crossArea, pipe2.crossArea} (111) [ALGB] (1) stream Real pipe2.port_a.h_outflow (start = 298609.6803431054, min = -1e10, max = 1e10, nominal = 1e5) (112) [ALGB] (1) flow Real pipe.port_a.m_flow (min = -1e60, max = 1e5) (113) [ALGB] (1) stream Real pipe1.port_b.h_outflow (start = 298609.6803431054, min = -1e10, max = 1e10, nominal = 1e5) (114) [ALGB] (1) Real[1] pipe.flowModel.rhos_act (start = {10.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, nominal = {10.0 for $i1 in 1:1}) (115) [ALGB] (1) protected Real pipe1.flowModel.dp_fric_nominal = sum({ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe1.flowModel.WallFriction.pressureLoss_m_flow(pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel, pipe1.flowModel.rho_nominal, pipe1.flowModel.rho_nominal, pipe1.flowModel.mu_nominal, pipe1.flowModel.mu_nominal, pipe1.flowModel.pathLengths_internal[1], pipe1.flowModel.diameters[1], ((pipe1.flowModel.crossAreas[2:2] + pipe1.flowModel.crossAreas[1:1]) / 2.0)[1], ((pipe1.flowModel.roughnesses[2:2] + pipe1.flowModel.roughnesses[1:1]) / 2.0)[1], pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[1])}) (min = 0.0, nominal = 1e5) (116) [ALGB] (1) final Real[1] pipe2.flowModel.dheights = {pipe2.height_ab} (117) [ALGB] (1) protected Real pipe2.flowModel.dp_fric_nominal = sum({ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe2.flowModel.WallFriction.pressureLoss_m_flow(pipe2.flowModel.m_flow_nominal / pipe2.flowModel.nParallel, pipe2.flowModel.rho_nominal, pipe2.flowModel.rho_nominal, pipe2.flowModel.mu_nominal, pipe2.flowModel.mu_nominal, pipe2.flowModel.pathLengths_internal[1], pipe2.flowModel.diameters[1], ((pipe2.flowModel.crossAreas[2:2] + pipe2.flowModel.crossAreas[1:1]) / 2.0)[1], ((pipe2.flowModel.roughnesses[2:2] + pipe2.flowModel.roughnesses[1:1]) / 2.0)[1], pipe2.flowModel.m_flow_small / pipe2.flowModel.nParallel, pipe2.flowModel.Res_turbulent_internal[1])}) (min = 0.0, nominal = 1e5) (118) [ALGB] (1) Real source1.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * source1.medium.p_bar) (119) [ALGB] (1) Real[1] pipe1.flowModel.pathLengths_internal = pipe1.flowModel.pathLengths (120) [ALGB] (4) input Real[2, 2] pipe.flowModel.states.T (start = {500.0 for $i1 in 1:2}, min = {200.0 for $i1 in 1:2}, max = {6000.0 for $i1 in 1:2}, nominal = {500.0 for $i1 in 1:2}) (121) [ALGB] (1) Real[1] pipe2.flowModel.Res_turbulent_internal = pipe2.flowModel.Re_turbulent * {1.0 for $i1 in 1:1} System Equations (118/145) **************************** (1) [ARRY] (1) pipe2.flowModel.dps_fg = {(2.0 * (pipe2.flowModel.Fs_fg[1] / pipe2.flowModel.nParallel)) / (pipe2.flowModel.crossAreas[1] + pipe2.flowModel.crossAreas[2])} ($RES_SIM_15) (2) [ARRY] (1) pipe1.flowModel.pathLengths_internal = pipe1.flowModel.pathLengths ($RES_BND_180) (3) [SCAL] (1) pipe2.port_b.m_flow + source3.ports[1].m_flow = 0.0 ($RES_SIM_133) (4) [ARRY] (1) pipe2.flowModel.Fs_p = pipe2.flowModel.nParallel * {0.5 * (pipe2.flowModel.crossAreas[1] + pipe2.flowModel.crossAreas[2]) * (pipe2.flowModel.states.T - pipe2.flowModel.states.T)} ($RES_SIM_16) (5) [SCAL] (1) pipe1.flowModel.Res_turbulent_internal[1] = pipe1.flowModel.Re_turbulent ($RES_BND_181) (6) [ARRY] (1) pipe2.flowModel.Ib_flows = {0.0} ($RES_SIM_17) (7) [ARRY] (1) pipe1.flowModel.diameters = 0.5 * (pipe1.flowModel.dimensions[2:2] + pipe1.flowModel.dimensions[1:1]) ($RES_BND_182) (8) [SCAL] (1) pipe1.port_b.m_flow + source2.ports[1].m_flow = 0.0 ($RES_SIM_135) (9) [SCAL] (1) pipe2.flowModel.rhos_act[1] = noEvent(if $SEV_1 then pipe2.flowModel.rhos[1] else pipe2.flowModel.rhos[2]) ($RES_SIM_18) (10) [SCAL] (1) pipe2.flowModel.mus_act[1] = noEvent(if $SEV_1 then pipe2.flowModel.mus[1] else pipe2.flowModel.mus[2]) ($RES_SIM_19) (11) [ARRY] (2) pipe2.flowModel.vs = {-pipe2.port_b.m_flow / (pipe2.flowModel.crossAreas[1] * ((0.0034836987724536205 * pipe2.flowModel.states.T) / pipe2.flowModel.states.p)), -pipe2.port_b.m_flow / (((0.0034836987724536205 * pipe2.flowModel.states.T) / pipe2.flowModel.states.p) * pipe2.flowModel.crossAreas[2])} / pipe2.nParallel ($RES_BND_184) (12) [ARRY] (2) pipe2.flowModel.crossAreas = {pipe2.crossArea, pipe2.crossArea} ($RES_BND_185) (13) [ARRY] (2) pipe2.flowModel.dimensions = {(4.0 * pipe2.crossArea) / pipe2.perimeter, (4.0 * pipe2.crossArea) / pipe2.perimeter} ($RES_BND_186) (14) [SCAL] (1) pipe2.port_b.p = source3.ports[1].p ($RES_SIM_139) (15) [ARRY] (2) pipe2.flowModel.roughnesses = {pipe2.roughness, pipe2.roughness} ($RES_BND_187) (16) [ARRY] (1) pipe2.flowModel.dheights = {pipe2.height_ab} ($RES_BND_188) (17) [SCAL] (1) source1.medium.state.p = 99999.99999999999 * source1.medium.p_bar ($RES_SIM_59) (18) [ARRY] (1) pipe2.flowModel.pathLengths = {pipe2.length} ($RES_BND_189) (19) [ARRY] (1) pipe2.flowModel.m_flows = {homotopy(({$FUN_3} .* pipe2.flowModel.nParallel)[1], (pipe2.flowModel.m_flow_nominal / pipe2.flowModel.dp_nominal * (pipe2.flowModel.dps_fg - (pipe2.flowModel.g * pipe2.flowModel.dheights) .* pipe2.flowModel.rho_nominal))[1])} ($RES_SIM_20) (20) [SCAL] (1) source2.medium.u = source2.medium.h - 287.0512249529787 * source2.T ($RES_SIM_102) (21) [SCAL] (1) source2.medium.h = Modelica.Media.IdealGases.Common.Functions.h_T(Modelica.Media.IdealGases.Common.DataRecord("Air", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), source2.T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_SIM_103) (22) [SCAL] (1) pipe1.port_a.h_outflow = source2.ports[1].h_outflow + system.g * pipe1.height_ab ($RES_SIM_22) (23) [SCAL] (1) pipe1.port_b.h_outflow = junction.port_3.h_outflow - system.g * pipe1.height_ab ($RES_SIM_23) (24) [SCAL] (1) pipe1.port_b.p = source2.ports[1].p ($RES_SIM_141) (25) [SCAL] (1) -pipe1.port_b.m_flow = pipe1.flowModel.m_flows[1] ($RES_SIM_25) (26) [SCAL] (1) $DER.junction.m = junction.mb_flow ($RES_SIM_107) (27) [FOR-] (2) ($RES_BND_190) (27) [----] for $i1 in 1:2 loop (27) [----] [SCAL] (1) pipe2.flowModel.rhos[$i1] = (0.0034836987724536205 * pipe2.flowModel.states.T) / pipe2.flowModel.states.p ($RES_BND_191) (27) [----] end for; (28) [SCAL] (1) source1.medium.d = (0.0034836987724536205 * (99999.99999999999 * source1.medium.p_bar)) / source1.T ($RES_SIM_61) (29) [ARRY] (1) {0.0} = pipe1.flowModel.Ib_flows - (pipe1.flowModel.Fs_fg + pipe1.flowModel.Fs_p) ($RES_SIM_26) (30) [SCAL] (1) pipe.port_a.m_flow + source1.ports[1].m_flow = 0.0 ($RES_SIM_143) (31) [SCAL] (1) $DER.junction.U = junction.Hb_flow ($RES_SIM_108) (32) [ARRY] (2) pipe.flowModel.vs = {pipe.port_a.m_flow / (pipe.flowModel.crossAreas[1] * ((0.0034836987724536205 * pipe.flowModel.states.T) / pipe.flowModel.states.p)), pipe.port_a.m_flow / (((0.0034836987724536205 * pipe.flowModel.states.T) / pipe.flowModel.states.p) * pipe.flowModel.crossAreas[2])} / pipe.nParallel ($RES_BND_156) (33) [SCAL] (1) source1.medium.u = source1.medium.h - 287.0512249529787 * source1.T ($RES_SIM_62) (34) [ARRY] (1) pipe1.flowModel.Is = {pipe1.flowModel.m_flows[1] * pipe1.flowModel.pathLengths[1]} ($RES_SIM_27) (35) [SCAL] (1) source1.ports[1].p = pipe.port_a.p ($RES_SIM_144) (36) [SCAL] (1) junction.U = junction.m * junction.medium.u ($RES_SIM_109) (37) [FOR-] (2) ($RES_BND_192) (37) [----] for $i1 in 1:2 loop (37) [----] [SCAL] (1) pipe2.flowModel.mus[$i1] = 1e-6 * Modelica.Media.Incompressible.TableBased.Polynomials_Temp.evaluateWithRange({9.739110288630587e-15, -3.1353724870333906e-11, 4.3004876595642225e-8, -3.822801629175824e-5, 0.05042787436718076, 17.23926013924253}, -149.99999999999997, 1000.0000000000001, (-273.15) + pipe2.flowModel.states.p) ($RES_BND_193) (37) [----] end for; (38) [ARRY] (2) pipe.flowModel.crossAreas = {pipe.crossArea, pipe.crossArea} ($RES_BND_157) (39) [SCAL] (1) source1.medium.h = Modelica.Media.IdealGases.Common.Functions.h_T(Modelica.Media.IdealGases.Common.DataRecord("Air", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), source1.T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_SIM_63) (40) [ARRY] (1) pipe1.flowModel.dps_fg = {(2.0 * (pipe1.flowModel.Fs_fg[1] / pipe1.flowModel.nParallel)) / (pipe1.flowModel.crossAreas[1] + pipe1.flowModel.crossAreas[2])} ($RES_SIM_28) (41) [ARRY] (2) pipe.flowModel.dimensions = {(4.0 * pipe.crossArea) / pipe.perimeter, (4.0 * pipe.crossArea) / pipe.perimeter} ($RES_BND_158) (42) [ARRY] (1) pipe1.flowModel.Fs_p = pipe1.flowModel.nParallel * {0.5 * (pipe1.flowModel.crossAreas[1] + pipe1.flowModel.crossAreas[2]) * (pipe1.flowModel.states.T - pipe1.flowModel.states.T)} ($RES_SIM_29) (43) [ARRY] (1) pipe2.flowModel.pathLengths_internal = pipe2.flowModel.pathLengths ($RES_BND_194) (44) [ARRY] (2) pipe.flowModel.roughnesses = {pipe.roughness, pipe.roughness} ($RES_BND_159) (45) [SCAL] (1) pipe2.flowModel.Res_turbulent_internal[1] = pipe2.flowModel.Re_turbulent ($RES_BND_195) (46) [ARRY] (1) pipe2.flowModel.diameters = 0.5 * (pipe2.flowModel.dimensions[2:2] + pipe2.flowModel.dimensions[1:1]) ($RES_BND_196) (47) [SCAL] (1) source3.ports[1].p = source3.p ($RES_SIM_67) (48) [SCAL] (1) source3.ports[1].h_outflow = source3.medium.h ($RES_SIM_68) (49) [ARRY] (4) pipe.flowModel.states = {ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe.Medium.ThermodynamicState(pipe.port_a.p, ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe.Medium.T_h.Internal.solve(source1.ports[1].h_outflow, 200.0, 6000.0, 1e5, {1.0}, Modelica.Media.IdealGases.Common.DataRecord("Air", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), 1e-13)), ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe.Medium.ThermodynamicState(99999.99999999999 * junction.medium.p_bar, ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe.Medium.T_h.Internal.solve(junction.port_3.h_outflow, 200.0, 6000.0, 1e5, {1.0}, Modelica.Media.IdealGases.Common.DataRecord("Air", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), 1e-13))} ($RES_BND_198) (50) [ARRY] (4) pipe1.flowModel.states = {ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe1.Medium.ThermodynamicState(99999.99999999999 * junction.medium.p_bar, ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe1.Medium.T_h.Internal.solve(junction.port_3.h_outflow, 200.0, 6000.0, 1e5, {1.0}, Modelica.Media.IdealGases.Common.DataRecord("Air", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), 1e-13)), ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe1.Medium.ThermodynamicState(pipe1.port_b.p, ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe1.Medium.T_h.Internal.solve(source2.ports[1].h_outflow, 200.0, 6000.0, 1e5, {1.0}, Modelica.Media.IdealGases.Common.DataRecord("Air", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), 1e-13))} ($RES_BND_199) (51) [SCAL] (1) $TEV_0 = time < ramp.startTime ($RES_EVT_222) (52) [SCAL] (1) $TEV_1 = time < (ramp.startTime + ramp.duration) ($RES_EVT_223) (53) [SCAL] (1) $SEV_1 = pipe2.flowModel.m_flows[1] > 0.0 ($RES_EVT_225) (54) [SCAL] (1) $FUN_1 = ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe.flowModel.WallFriction.massFlowRate_dp_staticHead(pipe.flowModel.dps_fg[1], pipe.flowModel.rhos[1], pipe.flowModel.rhos[2], pipe.flowModel.mus[1], pipe.flowModel.mus[2], pipe.flowModel.pathLengths_internal[1], pipe.flowModel.diameters[1], (pipe.flowModel.g * pipe.flowModel.dheights)[1], (0.5 .* (pipe.flowModel.crossAreas[1:1] + pipe.flowModel.crossAreas[2:2]))[1], (0.5 .* (pipe.flowModel.roughnesses[1:1] + pipe.flowModel.roughnesses[2:2]))[1], pipe.flowModel.dp_small, pipe.flowModel.Res_turbulent_internal[1]) ($RES_$AUX_209) (55) [SCAL] (1) $SEV_3 = pipe1.flowModel.m_flows[1] > 0.0 ($RES_EVT_227) (56) [SCAL] (1) $FUN_2 = ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe1.flowModel.WallFriction.massFlowRate_dp_staticHead(pipe1.flowModel.dps_fg[1], pipe1.flowModel.rhos[1], pipe1.flowModel.rhos[2], pipe1.flowModel.mus[1], pipe1.flowModel.mus[2], pipe1.flowModel.pathLengths_internal[1], pipe1.flowModel.diameters[1], (pipe1.flowModel.g * pipe1.flowModel.dheights)[1], (0.5 .* (pipe1.flowModel.crossAreas[1:1] + pipe1.flowModel.crossAreas[2:2]))[1], (0.5 .* (pipe1.flowModel.roughnesses[1:1] + pipe1.flowModel.roughnesses[2:2]))[1], pipe1.flowModel.dp_small, pipe1.flowModel.Res_turbulent_internal[1]) ($RES_$AUX_208) (57) [SCAL] (1) $FUN_3 = ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe2.flowModel.WallFriction.massFlowRate_dp_staticHead(pipe2.flowModel.dps_fg[1], pipe2.flowModel.rhos[1], pipe2.flowModel.rhos[2], pipe2.flowModel.mus[1], pipe2.flowModel.mus[2], pipe2.flowModel.pathLengths_internal[1], pipe2.flowModel.diameters[1], (pipe2.flowModel.g * pipe2.flowModel.dheights)[1], (0.5 .* (pipe2.flowModel.crossAreas[1:1] + pipe2.flowModel.crossAreas[2:2]))[1], (0.5 .* (pipe2.flowModel.roughnesses[1:1] + pipe2.flowModel.roughnesses[2:2]))[1], pipe2.flowModel.dp_small, pipe2.flowModel.Res_turbulent_internal[1]) ($RES_$AUX_207) (58) [SCAL] (1) $SEV_5 = pipe.flowModel.m_flows[1] > 0.0 ($RES_EVT_229) (59) [SCAL] (1) $FUN_4 = ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe2.flowModel.WallFriction.pressureLoss_m_flow(pipe2.flowModel.m_flow_nominal / pipe2.flowModel.nParallel, pipe2.flowModel.rho_nominal, pipe2.flowModel.rho_nominal, pipe2.flowModel.mu_nominal, pipe2.flowModel.mu_nominal, pipe2.flowModel.pathLengths_internal[1], pipe2.flowModel.diameters[1], (0.5 .* (pipe2.flowModel.crossAreas[2:2] + pipe2.flowModel.crossAreas[1:1]))[1], (0.5 .* (pipe2.flowModel.roughnesses[2:2] + pipe2.flowModel.roughnesses[1:1]))[1], pipe2.flowModel.m_flow_small / pipe2.flowModel.nParallel, pipe2.flowModel.Res_turbulent_internal[1]) ($RES_$AUX_206) (60) [SCAL] (1) pipe2.flowModel.dp_fric_nominal = sum({$FUN_4}) ($RES_$AUX_205) (61) [SCAL] (1) junction.m = junction.V * junction.medium.d ($RES_SIM_110) (62) [SCAL] (1) $FUN_6 = ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe1.flowModel.WallFriction.pressureLoss_m_flow(pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel, pipe1.flowModel.rho_nominal, pipe1.flowModel.rho_nominal, pipe1.flowModel.mu_nominal, pipe1.flowModel.mu_nominal, pipe1.flowModel.pathLengths_internal[1], pipe1.flowModel.diameters[1], (0.5 .* (pipe1.flowModel.crossAreas[2:2] + pipe1.flowModel.crossAreas[1:1]))[1], (0.5 .* (pipe1.flowModel.roughnesses[2:2] + pipe1.flowModel.roughnesses[1:1]))[1], pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[1]) ($RES_$AUX_204) (63) [SCAL] (1) pipe1.flowModel.dp_fric_nominal = sum({$FUN_6}) ($RES_$AUX_203) (64) [ARRY] (1) pipe1.flowModel.Ib_flows = {0.0} ($RES_SIM_30) (65) [ARRY] (1) pipe.flowModel.dheights = {pipe.height_ab} ($RES_BND_160) (66) [SCAL] (1) $FUN_8 = ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe.flowModel.WallFriction.pressureLoss_m_flow(pipe.flowModel.m_flow_nominal / pipe.flowModel.nParallel, pipe.flowModel.rho_nominal, pipe.flowModel.rho_nominal, pipe.flowModel.mu_nominal, pipe.flowModel.mu_nominal, pipe.flowModel.pathLengths_internal[1], pipe.flowModel.diameters[1], (0.5 .* (pipe.flowModel.crossAreas[2:2] + pipe.flowModel.crossAreas[1:1]))[1], (0.5 .* (pipe.flowModel.roughnesses[2:2] + pipe.flowModel.roughnesses[1:1]))[1], pipe.flowModel.m_flow_small / pipe.flowModel.nParallel, pipe.flowModel.Res_turbulent_internal[1]) ($RES_$AUX_202) (67) [SCAL] (1) junction.Hb_flow = smooth(0, pipe1.port_b.m_flow * (if $SEV_15 then pipe1.port_a.h_outflow else junction.port_3.h_outflow)) + smooth(0, pipe.port_a.m_flow * (if $SEV_16 then pipe.port_b.h_outflow else junction.port_3.h_outflow)) + smooth(0, pipe2.port_b.m_flow * (if $SEV_17 then pipe2.port_a.h_outflow else junction.port_3.h_outflow)) ($RES_SIM_113) (68) [SCAL] (1) pipe1.flowModel.rhos_act[1] = noEvent(if $SEV_3 then pipe1.flowModel.rhos[1] else pipe1.flowModel.rhos[2]) ($RES_SIM_31) (69) [ARRY] (1) pipe.flowModel.pathLengths = {pipe.length} ($RES_BND_161) (70) [SCAL] (1) pipe.flowModel.dp_fric_nominal = sum({$FUN_8}) ($RES_$AUX_201) (71) [SCAL] (1) pipe1.flowModel.mus_act[1] = noEvent(if $SEV_3 then pipe1.flowModel.mus[1] else pipe1.flowModel.mus[2]) ($RES_SIM_32) (72) [FOR-] (2) ($RES_BND_162) (72) [----] for $i1 in 1:2 loop (72) [----] [SCAL] (1) pipe.flowModel.rhos[$i1] = (0.0034836987724536205 * pipe.flowModel.states.T) / pipe.flowModel.states.p ($RES_BND_163) (72) [----] end for; (73) [ARRY] (4) pipe2.flowModel.states = {ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe2.Medium.ThermodynamicState(99999.99999999999 * junction.medium.p_bar, ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe2.Medium.T_h.Internal.solve(junction.port_3.h_outflow, 200.0, 6000.0, 1e5, {1.0}, Modelica.Media.IdealGases.Common.DataRecord("Air", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), 1e-13)), ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe2.Medium.ThermodynamicState(pipe2.port_b.p, ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionVolume.pipe2.Medium.T_h.Internal.solve(source3.ports[1].h_outflow, 200.0, 6000.0, 1e5, {1.0}, Modelica.Media.IdealGases.Common.DataRecord("Air", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), 1e-13))} ($RES_BND_200) (74) [ARRY] (1) pipe1.flowModel.m_flows = {homotopy(({$FUN_2} .* pipe1.flowModel.nParallel)[1], (pipe1.flowModel.m_flow_nominal / pipe1.flowModel.dp_nominal * (pipe1.flowModel.dps_fg - (pipe1.flowModel.g * pipe1.flowModel.dheights) .* pipe1.flowModel.rho_nominal))[1])} ($RES_SIM_33) (75) [FOR-] (2) ($RES_BND_164) (75) [----] for $i1 in 1:2 loop (75) [----] [SCAL] (1) pipe.flowModel.mus[$i1] = 1e-6 * Modelica.Media.Incompressible.TableBased.Polynomials_Temp.evaluateWithRange({9.739110288630587e-15, -3.1353724870333906e-11, 4.3004876595642225e-8, -3.822801629175824e-5, 0.05042787436718076, 17.23926013924253}, -149.99999999999997, 1000.0000000000001, (-273.15) + pipe.flowModel.states.p) ($RES_BND_165) (75) [----] end for; (76) [SCAL] (1) junction.mb_flow = pipe1.port_b.m_flow + pipe.port_a.m_flow + pipe2.port_b.m_flow ($RES_SIM_117) (77) [SCAL] (1) pipe.port_a.h_outflow = junction.port_3.h_outflow + system.g * pipe.height_ab ($RES_SIM_35) (78) [SCAL] (1) pipe.port_b.h_outflow = source1.ports[1].h_outflow - system.g * pipe.height_ab ($RES_SIM_36) (79) [ARRY] (1) pipe.flowModel.pathLengths_internal = pipe.flowModel.pathLengths ($RES_BND_166) (80) [SCAL] (1) pipe.flowModel.Res_turbulent_internal[1] = pipe.flowModel.Re_turbulent ($RES_BND_167) (81) [SCAL] (1) pipe.port_a.m_flow = pipe.flowModel.m_flows[1] ($RES_SIM_38) (82) [ARRY] (1) pipe.flowModel.diameters = 0.5 * (pipe.flowModel.dimensions[2:2] + pipe.flowModel.dimensions[1:1]) ($RES_BND_168) (83) [ARRY] (1) {0.0} = pipe.flowModel.Ib_flows - (pipe.flowModel.Fs_fg + pipe.flowModel.Fs_p) ($RES_SIM_39) (84) [SCAL] (1) $SEV_15 = pipe1.port_b.m_flow > 0.0 ($RES_EVT_239) (85) [ARRY] (1) pipe.flowModel.Is = {pipe.flowModel.m_flows[1] * pipe.flowModel.pathLengths[1]} ($RES_SIM_40) (86) [ARRY] (2) pipe1.flowModel.vs = {-pipe1.port_b.m_flow / (pipe1.flowModel.crossAreas[1] * ((0.0034836987724536205 * pipe1.flowModel.states.T) / pipe1.flowModel.states.p)), -pipe1.port_b.m_flow / (((0.0034836987724536205 * pipe1.flowModel.states.T) / pipe1.flowModel.states.p) * pipe1.flowModel.crossAreas[2])} / pipe1.nParallel ($RES_BND_170) (87) [ARRY] (1) pipe.flowModel.dps_fg = {(2.0 * (pipe.flowModel.Fs_fg[1] / pipe.flowModel.nParallel)) / (pipe.flowModel.crossAreas[1] + pipe.flowModel.crossAreas[2])} ($RES_SIM_41) (88) [ARRY] (2) pipe1.flowModel.crossAreas = {pipe1.crossArea, pipe1.crossArea} ($RES_BND_171) (89) [ARRY] (1) pipe.flowModel.Fs_p = pipe.flowModel.nParallel * {0.5 * (pipe.flowModel.crossAreas[1] + pipe.flowModel.crossAreas[2]) * (pipe.flowModel.states.T - pipe.flowModel.states.T)} ($RES_SIM_42) (90) [ARRY] (2) pipe1.flowModel.dimensions = {(4.0 * pipe1.crossArea) / pipe1.perimeter, (4.0 * pipe1.crossArea) / pipe1.perimeter} ($RES_BND_172) (91) [ARRY] (1) pipe.flowModel.Ib_flows = {0.0} ($RES_SIM_43) (92) [SCAL] (1) junction.medium.state.p = 99999.99999999999 * junction.medium.p_bar ($RES_SIM_125) (93) [ARRY] (2) pipe1.flowModel.roughnesses = {pipe1.roughness, pipe1.roughness} ($RES_BND_173) (94) [SCAL] (1) pipe.flowModel.rhos_act[1] = noEvent(if $SEV_5 then pipe.flowModel.rhos[1] else pipe.flowModel.rhos[2]) ($RES_SIM_44) (95) [SCAL] (1) junction.medium.state.T = -((-273.15) - junction.medium.T_degC) ($RES_SIM_126) (96) [ARRY] (1) pipe1.flowModel.dheights = {pipe1.height_ab} ($RES_BND_174) (97) [SCAL] (1) pipe.flowModel.mus_act[1] = noEvent(if $SEV_5 then pipe.flowModel.mus[1] else pipe.flowModel.mus[2]) ($RES_SIM_45) (98) [SCAL] (1) junction.medium.d = -(0.0034836987724536205 * (99999.99999999999 * junction.medium.p_bar)) / ((-273.15) - junction.medium.T_degC) ($RES_SIM_127) (99) [ARRY] (1) pipe1.flowModel.pathLengths = {pipe1.length} ($RES_BND_175) (100) [ARRY] (1) pipe.flowModel.m_flows = {homotopy(({$FUN_1} .* pipe.flowModel.nParallel)[1], (pipe.flowModel.m_flow_nominal / pipe.flowModel.dp_nominal * (pipe.flowModel.dps_fg - (pipe.flowModel.g * pipe.flowModel.dheights) .* pipe.flowModel.rho_nominal))[1])} ($RES_SIM_46) (101) [SCAL] (1) junction.medium.u = 287.0512249529787 * ((-273.15) - junction.medium.T_degC) + junction.port_3.h_outflow ($RES_SIM_128) (102) [FOR-] (2) ($RES_BND_176) (102) [----] for $i1 in 1:2 loop (102) [----] [SCAL] (1) pipe1.flowModel.rhos[$i1] = (0.0034836987724536205 * pipe1.flowModel.states.T) / pipe1.flowModel.states.p ($RES_BND_177) (102) [----] end for; (103) [SCAL] (1) source3.medium.u = source3.medium.h - 287.0512249529787 * source3.T ($RES_SIM_82) (104) [SCAL] (1) 99999.99999999999 * source1.medium.p_bar = ramp.offset + (if $TEV_0 then 0.0 else if $TEV_1 then (ramp.height * (time - ramp.startTime)) / ramp.duration else ramp.height) ($RES_SIM_47) (105) [SCAL] (1) junction.port_3.h_outflow = Modelica.Media.IdealGases.Common.Functions.h_T(Modelica.Media.IdealGases.Common.DataRecord("Air", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), -((-273.15) - junction.medium.T_degC), true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_SIM_129) (106) [SCAL] (1) source3.medium.h = Modelica.Media.IdealGases.Common.Functions.h_T(Modelica.Media.IdealGases.Common.DataRecord("Air", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), source3.T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_SIM_83) (107) [SCAL] (1) source1.ports[1].p = 99999.99999999999 * source1.medium.p_bar ($RES_SIM_48) (108) [FOR-] (2) ($RES_BND_178) (108) [----] for $i1 in 1:2 loop (108) [----] [SCAL] (1) pipe1.flowModel.mus[$i1] = 1e-6 * Modelica.Media.Incompressible.TableBased.Polynomials_Temp.evaluateWithRange({9.739110288630587e-15, -3.1353724870333906e-11, 4.3004876595642225e-8, -3.822801629175824e-5, 0.05042787436718076, 17.23926013924253}, -149.99999999999997, 1000.0000000000001, (-273.15) + pipe1.flowModel.states.p) ($RES_BND_179) (108) [----] end for; (109) [SCAL] (1) source1.ports[1].h_outflow = source1.medium.h ($RES_SIM_49) (110) [SCAL] (1) source2.ports[1].p = source2.p ($RES_SIM_87) (111) [SCAL] (1) source2.ports[1].h_outflow = source2.medium.h ($RES_SIM_88) (112) [SCAL] (1) pipe2.port_a.h_outflow = source3.ports[1].h_outflow + system.g * pipe2.height_ab ($RES_SIM_9) (113) [SCAL] (1) $SEV_16 = pipe.port_a.m_flow > 0.0 ($RES_EVT_240) (114) [SCAL] (1) $SEV_17 = pipe2.port_b.m_flow > 0.0 ($RES_EVT_241) (115) [SCAL] (1) pipe2.port_b.h_outflow = junction.port_3.h_outflow - system.g * pipe2.height_ab ($RES_SIM_10) (116) [SCAL] (1) -pipe2.port_b.m_flow = pipe2.flowModel.m_flows[1] ($RES_SIM_12) (117) [ARRY] (1) {0.0} = pipe2.flowModel.Ib_flows - (pipe2.flowModel.Fs_fg + pipe2.flowModel.Fs_p) ($RES_SIM_13) (118) [ARRY] (1) pipe2.flowModel.Is = {pipe2.flowModel.m_flows[1] * pipe2.flowModel.pathLengths[1]} ($RES_SIM_14)