Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.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.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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.Vessels.TestInitialization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization") translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009589/0.0009589, allocations: 105.8 kB / 16.42 MB, free: 6.461 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.0009116/0.0009117, allocations: 189.9 kB / 17.36 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.284/1.284, 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.2+maint.om/package.mo): time 0.1803/0.1803, allocations: 39.96 MB / 310.6 MB, free: 4.023 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.253e-05/1.254e-05, allocations: 6.219 kB / 436.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization): time 0.3257/0.3258, allocations: 152 MB / 0.5746 GB, free: 12.45 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01099/0.3368, allocations: 10.39 MB / 0.5848 GB, free: 9.383 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007039/0.3375, allocations: 29.72 kB / 0.5848 GB, free: 9.371 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009879/0.3385, allocations: 404.9 kB / 0.5852 GB, free: 9.062 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003133/0.3417, allocations: 1.443 MB / 0.5866 GB, free: 8.176 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006199/0.348, allocations: 2.712 MB / 0.5892 GB, free: 6.586 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003073/0.351, allocations: 2.846 MB / 0.592 GB, free: 4.648 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008714/0.3519, allocations: 0.7384 MB / 0.5927 GB, free: 3.91 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001363/0.3533, allocations: 1.137 MB / 0.5938 GB, free: 2.844 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001184/0.3545, allocations: 1.035 MB / 0.5949 GB, free: 1.887 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001452/0.3546, allocations: 100 kB / 0.595 GB, free: 1.789 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003881/0.3585, allocations: 2.034 MB / 0.5969 GB, free: 15.87 MB / 430.1 MB Notification: Performance of combineBinaries: time 0.00153/0.3601, allocations: 1.967 MB / 0.5989 GB, free: 13.97 MB / 430.1 MB Notification: Performance of replaceArrayConstructors: time 0.0007602/0.3608, allocations: 1.169 MB / 0.6 GB, free: 12.84 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002088/0.3611, allocations: 163.5 kB / 0.6002 GB, free: 12.68 MB / 430.1 MB Notification: Performance of FrontEnd: time 0.0001628/0.3612, allocations: 35.86 kB / 0.6002 GB, free: 12.64 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 179 (143) * Number of variables: 187 (141) Notification: Performance of Bindings: time 0.004539/0.3658, allocations: 5.149 MB / 0.6052 GB, free: 7.395 MB / 430.1 MB Notification: Performance of FunctionAlias: time 0.0005444/0.3663, allocations: 0.5307 MB / 0.6057 GB, free: 6.871 MB / 430.1 MB Notification: Performance of Early Inline: time 0.003032/0.3694, allocations: 3.213 MB / 0.6089 GB, free: 3.68 MB / 430.1 MB Notification: Performance of simplify1: time 0.0002508/0.3696, allocations: 205.8 kB / 0.6091 GB, free: 3.488 MB / 430.1 MB Notification: Performance of Alias: time 0.002555/0.3722, allocations: 2.532 MB / 0.6115 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of simplify2: time 0.0001872/0.3724, allocations: 197.1 kB / 0.6117 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of Events: time 0.0007078/0.3731, allocations: 0.6745 MB / 0.6124 GB, free: 15.93 MB / 446.1 MB Notification: Performance of Detect States: time 0.0006941/0.3738, allocations: 0.7795 MB / 0.6132 GB, free: 15.15 MB / 446.1 MB Notification: Performance of Partitioning: time 0.001093/0.3749, allocations: 1.17 MB / 0.6143 GB, free: 13.8 MB / 446.1 MB Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (120/177) **************************** (1) [DER-] (1) Real $DER.vol1.m (2) [ALGB] (1) Real vol1.mb_flow (3) [ALGB] (1) protected Real[1] pipe2.flowModel.diameters = 0.5 * (pipe2.flowModel.dimensions[2:2] + pipe2.flowModel.dimensions[1:1]) (4) [ALGB] (2) final Real[2] pipe1.flowModel.roughnesses = {pipe1.roughness, pipe1.roughness} (min = {0.0 for $i1 in 1:2}) (5) [ALGB] (2) protected Real[2] vol1.portsData_zeta_in (6) [ALGB] (1) flow Real pipe1.port_b.m_flow (min = -1e5, max = 1e60) (7) [ALGB] (2) Real[2] vol1.ports_E_flow (8) [DISC] (2) Boolean[2] $SEV_0[$i1] (9) [ALGB] (1) Real[1] pipe2.flowModel.Is (10) [ALGB] (2) final Real[2] pipe2.flowModel.roughnesses = {pipe2.roughness, pipe2.roughness} (min = {0.0 for $i1 in 1:2}) (11) [ALGB] (2) Real[2] vol1.s (start = {vol1.fluidLevel_max for $i1 in 1:2}) (12) [ALGB] (2) protected Real[2] vol1.portsData_diameter (13) [ALGB] (2) final Real[2] pipe1.flowModel.dimensions = {(4.0 * pipe1.crossArea) / pipe1.perimeter, (4.0 * pipe1.crossArea) / pipe1.perimeter} (14) [ALGB] (1) final Real[1] pipe1.flowModel.dheights = {pipe1.height_ab} (15) [DISC] (2) protected Boolean[2] vol1.inFlow (start = {false for $i1 in 1:2}) (16) [ALGB] (2) Real[2] vol1.ports_H_flow (min = {-1e8 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1000.0 for $i1 in 1:2}) (17) [ALGB] (1) Real pipe2.port_b.p (start = 1e5, min = 0.0, max = 1e8, nominal = 1e5) (18) [ALGB] (1) stream Real[1] sin1.ports.h_outflow (min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (19) [ALGB] (1) Real[1] pipe2.flowModel.Fs_p (20) [DISC] (2) Boolean[2] $SEV_3[$i1] (21) [ALGB] (1) Real[1] sou1.ports.p (start = {1e5 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (22) [ALGB] (2) Real[2] vol1.ports_penetration (23) [ALGB] (2) Real[2] vol1.m_flow_turbulent (24) [ALGB] (1) Real pipe1.port_a.p (start = 1e5, min = 0.0, max = 1e8, nominal = 1e5) (25) [ALGB] (1) Real[1] pipe2.flowModel.Fs_fg (26) [ALGB] (2) Real[2] vol1.portInDensities (start = {1.0 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}, nominal = {1.0 for $i1 in 1:2}) (27) [ALGB] (2) protected Real[2] vol1.portsData_zeta_in_internal = vol1.portsData.zeta_in (28) [ALGB] (1) Real[1] pipe2.flowModel.pathLengths_internal = pipe2.flowModel.pathLengths (29) [ALGB] (1) stream Real pipe2.port_b.h_outflow (min = -1e10, max = 1e10, nominal = 1e6) (30) [DISC] (2) Boolean[2] $SEV_6[$i1] (31) [ALGB] (1) stream Real pipe1.port_a.h_outflow (min = -1e10, max = 1e10, nominal = 1e6) (32) [ALGB] (1) final Real[1] pipe2.flowModel.pathLengths = {pipe2.length} (33) [ALGB] (1) Real $FUN_8 (34) [ALGB] (1) flow Real pipe2.port_b.m_flow (min = -1e5, max = 1e60) (35) [ALGB] (2) final Real[2] pipe2.flowModel.dimensions = {(4.0 * pipe2.crossArea) / pipe2.perimeter, (4.0 * pipe2.crossArea) / pipe2.perimeter} (36) [ALGB] (1) Real vol1.medium.state.T (start = 288.15, min = 273.15, max = 373.15, nominal = 300.0) (37) [ALGB] (1) Real $FUN_6 (38) [DISC] (1) Boolean $SEV_21 (39) [ALGB] (1) Real $FUN_5 (40) [ALGB] (4) input Real[2, 2] pipe1.flowModel.states.p (start = {1e5 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e5 for $i1 in 1:2}) (41) [ALGB] (1) Real vol1.Hb_flow (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_2 (45) [ALGB] (1) Real $FUN_1 (46) [ALGB] (1) Real vol1.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - vol1.medium.T_degC)) (47) [ALGB] (2) Real[2] vol1.ports.p (start = {1e5 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e5 for $i1 in 1:2}) (48) [DISC] (2) Boolean[2] $SEV_9[$i1] (49) [ALGB] (1) flow Real[1] sin1.ports.m_flow (min = {-1e60}, max = {1e60}) (50) [ALGB] (2) Real[2] pipe2.flowModel.vs = {(-pipe2.port_b.m_flow) / (pipe2.flowModel.crossAreas[1] * ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe2.Medium.density(pipe2.flowModel.states[1])), -pipe2.port_b.m_flow / (ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe2.Medium.density(pipe2.flowModel.states[2]) * pipe2.flowModel.crossAreas[2])} / pipe2.nParallel (51) [ALGB] (1) Real[1] pipe1.flowModel.Fs_p (52) [ALGB] (2) stream Real[2] vol1.ports.h_outflow (min = {-1e10 for $i1 in 1:2}, max = {1e10 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (53) [ALGB] (1) Real[1] vol1.heatTransfer.Ts = {ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.vol1.heatTransfer.Medium.temperature(vol1.heatTransfer.states[1])} (start = {288.15 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, nominal = {300.0 for $i1 in 1:1}) (54) [ALGB] (1) Real[1] vol1.heatTransfer.Q_flows (55) [DISC] (2) Boolean[2] $SEV_10[$i1] (56) [ALGB] (1) Real vol1.Qb_flow (57) [DISC] (2) Boolean[2] $SEV_2[$i1] (58) [ALGB] (1) final input Real[1, 1] vol1.heatTransfer.states.p = {vol1.medium.state.p} (start = {1e5 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (59) [ALGB] (2) protected Real[2] vol1.portsData_diameter_internal = vol1.portsData.diameter (60) [ALGB] (1) Real[1] pipe2.flowModel.Ib_flows (61) [ALGB] (1) Real[1] sin1.ports.p (start = {1e5 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (62) [ALGB] (1) Real[1] pipe1.flowModel.rhos_act (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, nominal = {1.0 for $i1 in 1:1}) (63) [DISC] (1) Boolean $SEV_19 (64) [ALGB] (4) input Real[2, 2] pipe2.flowModel.states.T (start = {288.15 for $i1 in 1:2}, min = {273.15 for $states1 in 1:2}, max = {373.15 for $states1 in 1:2}, nominal = {300.0 for $i1 in 1:2}) (65) [ALGB] (1) Real vol1.medium.state.p (start = 1e5, min = 0.0, max = 1e8, nominal = 1e5) (66) [ALGB] (2) final Real[2] pipe1.flowModel.crossAreas = {pipe1.crossArea, pipe1.crossArea} (67) [ALGB] (1) Real[1] pipe1.flowModel.Fs_fg (68) [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) (69) [ALGB] (4) input Real[2, 2] pipe1.flowModel.states.T (start = {288.15 for $i1 in 1:2}, min = {273.15 for $states1 in 1:2}, max = {373.15 for $states1 in 1:2}, nominal = {300.0 for $i1 in 1:2}) (70) [ALGB] (1) Real[1] pipe1.flowModel.Is (71) [DISC] (1) Boolean $SEV_12 (72) [ALGB] (1) Real[1] pipe2.flowModel.rhos_act (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, nominal = {1.0 for $i1 in 1:1}) (73) [ALGB] (1) flow Real[1] vol1.heatTransfer.heatPorts.Q_flow (74) [DISC] (1) Boolean $SEV_11 (75) [DISC] (2) Boolean[2] $SEV_5[$i1] (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.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) (78) [ALGB] (1) Real[1] pipe1.flowModel.Ib_flows (79) [ALGB] (1) flow Real[1] sou1.ports.m_flow (min = {-1e60}, max = {1e60}) (80) [ALGB] (2) protected Real[2] vol1.portsData_height (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] (1) stream Real[1] sou1.ports.h_outflow (min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (83) [ALGB] (2) Real[2] pipe2.flowModel.rhos = {ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe2.flowModel.Medium.density(pipe2.flowModel.states[$i1]) for $i1 in 1:2} (start = {1.0 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}, nominal = {1.0 for $i1 in 1:2}) (84) [ALGB] (1) Real pipe1.port_b.p (start = 1e5, min = 0.0, max = 1e8, nominal = 1e5) (85) [ALGB] (2) Real[2] pipe2.flowModel.mus = {ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.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] (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}) (87) [ALGB] (2) Real[2] vol1.portAreas = {0.7853981633974483 * vol1.portsData_diameter[i] ^ 2.0 for i in 1:2} (88) [DISC] (2) Boolean[2] $SEV_8[$i1] (89) [ALGB] (1) Real vol1.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * vol1.medium.p_bar) (90) [ALGB] (2) Real[2] vol1.vessel_ps_static (start = {1e5 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e5 for $i1 in 1:2}) (91) [ALGB] (2) Real[2] pipe1.flowModel.mus = {ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.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}) (92) [ALGB] (1) final input Real[1, 1] vol1.heatTransfer.states.T = {vol1.medium.state.T} (start = {288.15 for $i1 in 1:1}, min = {273.15}, max = {373.15}, nominal = {300.0 for $i1 in 1:1}) (93) [DISC] (2) protected Boolean[2] vol1.regularFlow (start = {true for $i1 in 1:2}) (94) [ALGB] (1) Real vol1.medium.d (start = 1.0, min = 0.0, max = 1e5, nominal = 1.0) (95) [ALGB] (2) protected Real[2] vol1.portsData_zeta_out_internal = vol1.portsData.zeta_out (96) [ALGB] (1) Real pipe2.port_a.p (start = 1e5, min = 0.0, max = 1e8, nominal = 1e5) (97) [ALGB] (4) input Real[2, 2] pipe2.flowModel.states.p (start = {1e5 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e5 for $i1 in 1:2}) (98) [DISC] (2) Boolean[2] $SEV_1[$i1] (99) [ALGB] (2) protected Real[2] vol1.portsData_height_internal = vol1.portsData.height (100) [DER-] (1) Real $DER.vol1.U (101) [ALGB] (1) Real[1] pipe1.flowModel.dps_fg (start = {pipe1.flowModel.p_a_start - pipe1.flowModel.p_b_start for $i1 in 1:1}) (102) [ALGB] (1) final Real[1] pipe1.flowModel.pathLengths = {pipe1.length} (103) [ALGB] (2) Real[2] vol1.portVelocities (104) [ALGB] (1) Real vol1.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (105) [ALGB] (1) Real[1] pipe1.flowModel.Res_turbulent_internal = pipe1.flowModel.Re_turbulent * {1.0 for $i1 in 1:1} (106) [ALGB] (2) Real[2] pipe1.flowModel.vs = {(-pipe1.port_b.m_flow) / (pipe1.flowModel.crossAreas[1] * ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe1.Medium.density(pipe1.flowModel.states[1])), -pipe1.port_b.m_flow / (ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe1.Medium.density(pipe1.flowModel.states[2]) * pipe1.flowModel.crossAreas[2])} / pipe1.nParallel (107) [ALGB] (2) protected Real[2] vol1.portsData_zeta_out (108) [DISC] (2) Boolean[2] $SEV_4[$i1] (109) [ALGB] (2) Real[2] pipe1.flowModel.rhos = {ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe1.flowModel.Medium.density(pipe1.flowModel.states[$i1]) for $i1 in 1:2} (start = {1.0 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}, nominal = {1.0 for $i1 in 1:2}) (110) [ALGB] (2) final Real[2] pipe2.flowModel.crossAreas = {pipe2.crossArea, pipe2.crossArea} (111) [ALGB] (1) stream Real pipe2.port_a.h_outflow (min = -1e10, max = 1e10, nominal = 1e6) (112) [ALGB] (2) flow Real[2] vol1.ports.m_flow (min = {-1e5 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}) (113) [ALGB] (1) stream Real pipe1.port_b.h_outflow (min = -1e10, max = 1e10, nominal = 1e6) (114) [ALGB] (1) protected Real pipe1.flowModel.dp_fric_nominal = sum({ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.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) (115) [ALGB] (1) final Real[1] pipe2.flowModel.dheights = {pipe2.height_ab} (116) [ALGB] (1) Real[1] vol1.heatTransfer.heatPorts.T (start = {288.15 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, nominal = {300.0 for $i1 in 1:1}) (117) [ALGB] (1) protected Real pipe2.flowModel.dp_fric_nominal = sum({ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.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[1] pipe1.flowModel.pathLengths_internal = pipe1.flowModel.pathLengths (119) [ALGB] (1) Real[1] pipe2.flowModel.Res_turbulent_internal = pipe2.flowModel.Re_turbulent * {1.0 for $i1 in 1:1} (120) [DISC] (2) Boolean[2] $SEV_7[$i1] System Equations (122/169) **************************** (1) [SCAL] (1) pipe1.port_b.p = vol1.ports[1].p ($RES_SIM_132) (2) [ARRY] (2) vol1.portsData_height_internal = vol1.portsData.height ($RES_BND_180) (3) [ARRY] (2) pipe1.flowModel.dimensions = {(4.0 * pipe1.crossArea) / pipe1.perimeter, (4.0 * pipe1.crossArea) / pipe1.perimeter} ($RES_BND_145) (4) [SCAL] (1) sou1.ports[1].m_flow - pipe1.port_b.m_flow = 0.0 ($RES_SIM_133) (5) [FOR-] (2) ($RES_SIM_16) (5) [----] for $i1 in 1:2 loop (5) [----] [-IF-] (1)if vol1.regularFlow[$i1] then (5) [----] [----] [SCAL] (1) vol1.ports[$i1].p = vol1.vessel_ps_static[$i1] + (0.5 / vol1.portAreas[$i1] ^ 2.0) * smooth(2, if $SEV_8[$i1] then (vol1.ports_penetration[$i1] * ((-1.0) + vol1.portAreas[$i1] ^ 2.0 / vol1.vesselArea ^ 2.0 + vol1.portsData_zeta_in[$i1]) * vol1.ports[$i1].m_flow ^ 2.0) / vol1.portInDensities[$i1] else if $SEV_9[$i1] then -(((1.0 + vol1.portsData_zeta_out[$i1]) - vol1.portAreas[$i1] ^ 2.0 / vol1.vesselArea ^ 2.0) * vol1.ports[$i1].m_flow ^ 2.0) / (vol1.ports_penetration[$i1] * vol1.medium.d) else if $SEV_10[$i1] then Modelica.Fluid.Utilities.regSquare2.regSquare2_utility(vol1.ports[$i1].m_flow, vol1.m_flow_turbulent[$i1], (vol1.ports_penetration[$i1] * ((-1.0) + vol1.portAreas[$i1] ^ 2.0 / vol1.vesselArea ^ 2.0 + vol1.portsData_zeta_in[$i1])) / vol1.portInDensities[$i1], ((1.0 + vol1.portsData_zeta_out[$i1]) - vol1.portAreas[$i1] ^ 2.0 / vol1.vesselArea ^ 2.0) / (vol1.ports_penetration[$i1] * vol1.medium.d), false, 1.0) else -Modelica.Fluid.Utilities.regSquare2.regSquare2_utility(-vol1.ports[$i1].m_flow, vol1.m_flow_turbulent[$i1], ((1.0 + vol1.portsData_zeta_out[$i1]) - vol1.portAreas[$i1] ^ 2.0 / vol1.vesselArea ^ 2.0) / (vol1.ports_penetration[$i1] * vol1.medium.d), (vol1.ports_penetration[$i1] * ((-1.0) + vol1.portAreas[$i1] ^ 2.0 / vol1.vesselArea ^ 2.0 + vol1.portsData_zeta_in[$i1])) / vol1.portInDensities[$i1], false, 1.0)) ($RES_SIM_18) (5) [----] [----] elseif vol1.inFlow[$i1] then (5) [----] [----] [SCAL] (1) vol1.ports[$i1].p = vol1.vessel_ps_static[$i1] ($RES_SIM_19) (5) [----] [----] else (5) [----] [----] [SCAL] (1) vol1.ports[$i1].m_flow = 0.0 ($RES_SIM_20) (5) [----] [----] end if; (5) [----] end for; (6) [ARRY] (2) vol1.portsData_zeta_in_internal = vol1.portsData.zeta_in ($RES_BND_181) (7) [ARRY] (2) pipe1.flowModel.roughnesses = {pipe1.roughness, pipe1.roughness} ($RES_BND_146) (8) [SCAL] (1) sou1.ports[1].p = pipe1.port_a.p ($RES_SIM_134) (9) [SCAL] (1) vol1.medium.state.p = 99999.99999999999 * vol1.medium.p_bar ($RES_SIM_52) (10) [ARRY] (2) vol1.portsData_zeta_out_internal = vol1.portsData.zeta_out ($RES_BND_182) (11) [ARRY] (1) pipe1.flowModel.dheights = {pipe1.height_ab} ($RES_BND_147) (12) [ARRY] (2) vol1.portsData_zeta_out = vol1.portsData_zeta_out_internal ($RES_SIM_135) (13) [SCAL] (1) vol1.medium.state.T = -((-273.15) - vol1.medium.T_degC) ($RES_SIM_53) (14) [ARRY] (1) pipe1.flowModel.pathLengths = {pipe1.length} ($RES_BND_148) (15) [ARRY] (4) pipe1.flowModel.states = {ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe1.Medium.ThermodynamicState(pipe1.port_a.p, 298.15 + 9.945795414988312e-4 * sou1.ports[1].h_outflow), ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe1.Medium.ThermodynamicState(pipe1.port_b.p, 298.15 + 9.945795414988312e-4 * vol1.ports[1].h_outflow)} ($RES_BND_183) (16) [ARRY] (2) vol1.portsData_zeta_in = vol1.portsData_zeta_in_internal ($RES_SIM_136) (17) [FOR-] (2) ($RES_BND_149) (17) [----] for $i1 in 1:2 loop (17) [----] [SCAL] (1) pipe1.flowModel.rhos[$i1] = (0.003483703884165752 * pipe1.flowModel.states.T) / pipe1.flowModel.states.p ($RES_BND_150) (17) [----] end for; (18) [ARRY] (4) pipe2.flowModel.states = {ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe2.Medium.ThermodynamicState(pipe2.port_a.p, 298.15 + 9.945795414988312e-4 * vol1.ports[2].h_outflow), ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe2.Medium.ThermodynamicState(pipe2.port_b.p, 298.15 + 9.945795414988312e-4 * sin1.ports[1].h_outflow)} ($RES_BND_184) (19) [ARRY] (2) vol1.portsData_height = vol1.portsData_height_internal ($RES_SIM_137) (20) [SCAL] (1) vol1.medium.d = -(0.003483703884165752 * (99999.99999999999 * vol1.medium.p_bar)) / ((-273.15) - vol1.medium.T_degC) ($RES_SIM_55) (21) [ARRY] (2) vol1.heatTransfer.states = {vol1.medium.state} ($RES_BND_185) (22) [ARRY] (2) vol1.portsData_diameter = vol1.portsData_diameter_internal ($RES_SIM_138) (23) [SCAL] (1) vol1.medium.u = 287.0508037566665 * ((-273.15) - vol1.medium.T_degC) + 1005.45 * ((-298.15) - ((-273.15) - vol1.medium.T_degC)) ($RES_SIM_57) (24) [FOR-] (2) ($RES_EVT_210) (24) [----] for $i1 in 1:2 loop (24) [----] [SCAL] (1) $SEV_5[$i1] = vol1.portsData_height[$i1] >= vol1.fluidLevel_max ($RES_EVT_211) (24) [----] end for; (25) [FOR-] (2) ($RES_EVT_212) (25) [----] for $i1 in 1:2 loop (25) [----] [SCAL] (1) $SEV_6[$i1] = $SEV_4[$i1] or $SEV_5[$i1] ($RES_EVT_213) (25) [----] end for; (26) [FOR-] (2) ($RES_EVT_214) (26) [----] for $i1 in 1:2 loop (26) [----] [SCAL] (1) $SEV_7[$i1] = not vol1.regularFlow[$i1] and $SEV_6[$i1] ($RES_EVT_215) (26) [----] end for; (27) [FOR-] (2) ($RES_EVT_216) (27) [----] for $i1 in 1:2 loop (27) [----] [SCAL] (1) $SEV_8[$i1] = vol1.ports[$i1].m_flow >= vol1.m_flow_turbulent[$i1] ($RES_EVT_217) (27) [----] end for; (28) [FOR-] (2) ($RES_EVT_218) (28) [----] for $i1 in 1:2 loop (28) [----] [SCAL] (1) $SEV_9[$i1] = vol1.ports[$i1].m_flow <= (-vol1.m_flow_turbulent[$i1]) ($RES_EVT_219) (28) [----] end for; (29) [FOR-] (2) ($RES_SIM_21) (29) [----] for $i1 in 1:2 loop (29) [----] [-IF-] (1)if vol1.regularFlow[$i1] then (29) [----] [----] [SCAL] (1) vol1.s[$i1] = 0.0 - vol1.portsData_height[$i1] ($RES_SIM_23) (29) [----] [----] elseif vol1.inFlow[$i1] then (29) [----] [----] [SCAL] (1) vol1.s[$i1] = vol1.ports[$i1].m_flow ($RES_SIM_24) (29) [----] [----] else (29) [----] [----] [SCAL] (1) vol1.s[$i1] = ((vol1.ports[$i1].p - vol1.vessel_ps_static[$i1]) / 101325.0) * (vol1.portsData_height[$i1] - 0.0) ($RES_SIM_25) (29) [----] [----] end if; (29) [----] end for; (30) [FOR-] (2) ($RES_BND_151) (30) [----] for $i1 in 1:2 loop (30) [----] [SCAL] (1) pipe1.flowModel.mus[$i1] = 1.82e-5 ($RES_BND_152) (30) [----] end for; (31) [ARRY] (1) pipe1.flowModel.pathLengths_internal = pipe1.flowModel.pathLengths ($RES_BND_153) (32) [SCAL] (1) sou1.ports[1].p = sou1.p ($RES_SIM_106) (33) [SCAL] (1) pipe1.flowModel.Res_turbulent_internal[1] = pipe1.flowModel.Re_turbulent ($RES_BND_154) (34) [SCAL] (1) sou1.ports[1].h_outflow = 1005.45 * ((-298.15) + sou1.T) ($RES_SIM_107) (35) [ARRY] (1) pipe1.flowModel.diameters = 0.5 * (pipe1.flowModel.dimensions[2:2] + pipe1.flowModel.dimensions[1:1]) ($RES_BND_155) (36) [SCAL] (1) pipe2.port_a.h_outflow = sin1.ports[1].h_outflow + system.g * pipe2.height_ab ($RES_SIM_61) (37) [FOR-] (2) ($RES_SIM_26) (37) [----] for $i1 in 1:2 loop (37) [----] [SCAL] (1) vol1.ports[$i1].h_outflow = 1005.45 * ((-298.15) - ((-273.15) - vol1.medium.T_degC)) ($RES_SIM_27) (37) [----] end for; (38) [SCAL] (1) pipe2.port_b.h_outflow = vol1.ports[2].h_outflow - system.g * pipe2.height_ab ($RES_SIM_62) (39) [ARRY] (2) pipe2.flowModel.vs = {-pipe2.port_b.m_flow / (pipe2.flowModel.crossAreas[1] * ((0.003483703884165752 * pipe2.flowModel.states.T) / pipe2.flowModel.states.p)), -pipe2.port_b.m_flow / (((0.003483703884165752 * pipe2.flowModel.states.T) / pipe2.flowModel.states.p) * pipe2.flowModel.crossAreas[2])} / pipe2.nParallel ($RES_BND_157) (40) [FOR-] (2) ($RES_SIM_28) (40) [----] for $i1 in 1:2 loop (40) [----] [SCAL] (1) vol1.ports_E_flow[$i1] = vol1.ports[$i1].m_flow * (vol1.portVelocities[$i1] * 0.5 * vol1.portVelocities[$i1] + system.g * vol1.portsData_height[$i1]) ($RES_SIM_29) (40) [----] end for; (41) [ARRY] (2) pipe2.flowModel.crossAreas = {pipe2.crossArea, pipe2.crossArea} ($RES_BND_158) (42) [SCAL] (1) -pipe2.port_b.m_flow = pipe2.flowModel.m_flows[1] ($RES_SIM_64) (43) [ARRY] (2) pipe2.flowModel.dimensions = {(4.0 * pipe2.crossArea) / pipe2.perimeter, (4.0 * pipe2.crossArea) / pipe2.perimeter} ($RES_BND_159) (44) [ARRY] (1) {0.0} = pipe2.flowModel.Ib_flows - (pipe2.flowModel.Fs_fg + pipe2.flowModel.Fs_p) ($RES_SIM_65) (45) [ARRY] (1) pipe2.flowModel.Is = {pipe2.flowModel.m_flows[1] * pipe2.flowModel.pathLengths[1]} ($RES_SIM_66) (46) [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_67) (47) [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_68) (48) [ARRY] (1) pipe2.flowModel.Ib_flows = {0.0} ($RES_SIM_69) (49) [FOR-] (2) ($RES_EVT_220) (49) [----] for $i1 in 1:2 loop (49) [----] [SCAL] (1) $SEV_10[$i1] = (vol1.ports_penetration[$i1] * ((-1.0) + vol1.portAreas[$i1] ^ 2.0 / vol1.vesselArea ^ 2.0 + vol1.portsData_zeta_in[$i1])) / vol1.portInDensities[$i1] >= ((1.0 + vol1.portsData_zeta_out[$i1]) - vol1.portAreas[$i1] ^ 2.0 / vol1.vesselArea ^ 2.0) / (vol1.ports_penetration[$i1] * vol1.medium.d) ($RES_EVT_221) (49) [----] end for; (50) [SCAL] (1) $SEV_11 = vol1.ports[2].m_flow > 0.0 ($RES_EVT_222) (51) [SCAL] (1) $SEV_12 = vol1.ports[1].m_flow > 0.0 ($RES_EVT_223) (52) [SCAL] (1) vol1.ports_H_flow[2] = smooth(0, vol1.ports[2].m_flow * (if $SEV_11 then pipe2.port_a.h_outflow else vol1.ports[2].h_outflow)) ($RES_SIM_30) (53) [ARRY] (2) pipe2.flowModel.roughnesses = {pipe2.roughness, pipe2.roughness} ($RES_BND_160) (54) [SCAL] (1) vol1.m_flow_turbulent[2] = max(vol1.m_flow_small, 0.0014294246573833558 * vol1.portsData_diameter[2]) ($RES_SIM_31) (55) [ARRY] (1) pipe2.flowModel.dheights = {pipe2.height_ab} ($RES_BND_161) (56) [SCAL] (1) vol1.portVelocities[2] = smooth(0, (vol1.ports[2].m_flow / vol1.portAreas[2]) / ((0.003483703884165752 * vol1.vessel_ps_static[2]) / (298.15 + 9.945795414988312e-4 * (if $SEV_11 then pipe2.port_a.h_outflow else vol1.ports[2].h_outflow)))) ($RES_SIM_32) (57) [ARRY] (1) pipe2.flowModel.pathLengths = {pipe2.length} ($RES_BND_162) (58) [SCAL] (1) vol1.portInDensities[2] = (0.003483703884165752 * vol1.vessel_ps_static[2]) / (298.15 + 9.945795414988312e-4 * pipe2.port_a.h_outflow) ($RES_SIM_33) (59) [FOR-] (2) ($RES_BND_163) (59) [----] for $i1 in 1:2 loop (59) [----] [SCAL] (1) pipe2.flowModel.rhos[$i1] = (0.003483703884165752 * pipe2.flowModel.states.T) / pipe2.flowModel.states.p ($RES_BND_164) (59) [----] end for; (60) [SCAL] (1) vol1.ports_H_flow[1] = smooth(0, vol1.ports[1].m_flow * (if $SEV_12 then pipe1.port_b.h_outflow else vol1.ports[1].h_outflow)) ($RES_SIM_34) (61) [SCAL] (1) pipe2.flowModel.rhos_act[1] = noEvent(if $SEV_19 then pipe2.flowModel.rhos[1] else pipe2.flowModel.rhos[2]) ($RES_SIM_70) (62) [SCAL] (1) vol1.m_flow_turbulent[1] = max(vol1.m_flow_small, 0.0014294246573833558 * vol1.portsData_diameter[1]) ($RES_SIM_35) (63) [FOR-] (2) ($RES_BND_165) (63) [----] for $i1 in 1:2 loop (63) [----] [SCAL] (1) pipe2.flowModel.mus[$i1] = 1.82e-5 ($RES_BND_166) (63) [----] end for; (64) [SCAL] (1) pipe2.flowModel.mus_act[1] = noEvent(if $SEV_19 then pipe2.flowModel.mus[1] else pipe2.flowModel.mus[2]) ($RES_SIM_71) (65) [SCAL] (1) vol1.portVelocities[1] = smooth(0, (vol1.ports[1].m_flow / vol1.portAreas[1]) / ((0.003483703884165752 * vol1.vessel_ps_static[1]) / (298.15 + 9.945795414988312e-4 * (if $SEV_12 then pipe1.port_b.h_outflow else vol1.ports[1].h_outflow)))) ($RES_SIM_36) (66) [ARRY] (1) pipe2.flowModel.m_flows = {homotopy(({$FUN_2} .* 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_72) (67) [SCAL] (1) vol1.portInDensities[1] = (0.003483703884165752 * vol1.vessel_ps_static[1]) / (298.15 + 9.945795414988312e-4 * pipe1.port_b.h_outflow) ($RES_SIM_37) (68) [ARRY] (1) pipe2.flowModel.pathLengths_internal = pipe2.flowModel.pathLengths ($RES_BND_167) (69) [SCAL] (1) pipe2.flowModel.Res_turbulent_internal[1] = pipe2.flowModel.Re_turbulent ($RES_BND_168) (70) [SCAL] (1) pipe1.port_a.h_outflow = vol1.ports[1].h_outflow + system.g * pipe1.height_ab ($RES_SIM_74) (71) [ARRY] (1) pipe2.flowModel.diameters = 0.5 * (pipe2.flowModel.dimensions[2:2] + pipe2.flowModel.dimensions[1:1]) ($RES_BND_169) (72) [SCAL] (1) pipe1.port_b.h_outflow = sou1.ports[1].h_outflow - system.g * pipe1.height_ab ($RES_SIM_75) (73) [SCAL] (1) -pipe1.port_b.m_flow = pipe1.flowModel.m_flows[1] ($RES_SIM_77) (74) [ARRY] (1) {0.0} = pipe1.flowModel.Ib_flows - (pipe1.flowModel.Fs_fg + pipe1.flowModel.Fs_p) ($RES_SIM_78) (75) [ARRY] (1) pipe1.flowModel.Is = {pipe1.flowModel.m_flows[1] * pipe1.flowModel.pathLengths[1]} ($RES_SIM_79) (76) [SCAL] (1) $SEV_19 = pipe2.flowModel.m_flows[1] > 0.0 ($RES_EVT_230) (77) [SCAL] (1) $SEV_21 = pipe1.flowModel.m_flows[1] > 0.0 ($RES_EVT_232) (78) [SCAL] (1) $FUN_1 = ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.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_194) (79) [SCAL] (1) $FUN_2 = ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.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_193) (80) [SCAL] (1) vol1.mb_flow = sum(vol1.ports.m_flow) ($RES_$AUX_192) (81) [SCAL] (1) $FUN_4 = sum(vol1.ports_H_flow) ($RES_$AUX_191) (82) [SCAL] (1) $FUN_5 = sum(vol1.ports_E_flow) ($RES_$AUX_190) (83) [SCAL] (1) vol1.Qb_flow = vol1.heatTransfer.Q_flows[1] ($RES_SIM_40) (84) [SCAL] (1) vol1.Hb_flow = $FUN_4 + $FUN_5 ($RES_SIM_41) (85) [FOR-] (2) ($RES_SIM_43) (85) [----] for $i1 in 1:2 loop (85) [----] [SCAL] (1) vol1.vessel_ps_static[$i1] = 99999.99999999999 * vol1.medium.p_bar ($RES_SIM_44) (85) [----] end for; (86) [SCAL] (1) vol1.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_126) (87) [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_80) (88) [SCAL] (1) vol1.ports[2].m_flow - pipe2.port_b.m_flow = 0.0 ($RES_SIM_127) (89) [ARRY] (1) vol1.heatTransfer.Ts = {vol1.heatTransfer.states.p} ($RES_BND_175) (90) [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_81) (91) [ARRY] (1) vol1.heatTransfer.Q_flows = vol1.heatTransfer.heatPorts.Q_flow ($RES_SIM_46) (92) [SCAL] (1) pipe2.port_b.m_flow + sin1.ports[1].m_flow = 0.0 ($RES_SIM_128) (93) [FOR-] (2) ($RES_BND_176) (93) [----] for $i1 in 1:2 loop (93) [----] [SCAL] (1) vol1.portAreas[$i1] = 0.7853981633974483 * vol1.portsData_diameter[$i1] ^ 2.0 ($RES_BND_177) (93) [----] end for; (94) [ARRY] (1) pipe1.flowModel.Ib_flows = {0.0} ($RES_SIM_82) (95) [ARRY] (1) vol1.heatTransfer.Ts = vol1.heatTransfer.heatPorts.T ($RES_SIM_47) (96) [SCAL] (1) vol1.ports[1].m_flow + pipe1.port_b.m_flow = 0.0 ($RES_SIM_129) (97) [SCAL] (1) pipe1.flowModel.rhos_act[1] = noEvent(if $SEV_21 then pipe1.flowModel.rhos[1] else pipe1.flowModel.rhos[2]) ($RES_SIM_83) (98) [SCAL] (1) pipe1.flowModel.mus_act[1] = noEvent(if $SEV_21 then pipe1.flowModel.mus[1] else pipe1.flowModel.mus[2]) ($RES_SIM_84) (99) [ARRY] (2) vol1.portsData_diameter_internal = vol1.portsData.diameter ($RES_BND_179) (100) [ARRY] (1) pipe1.flowModel.m_flows = {homotopy(({$FUN_1} .* 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_85) (101) [SCAL] (1) sin1.ports[1].p = sin1.p ($RES_SIM_86) (102) [SCAL] (1) sin1.ports[1].h_outflow = 1005.45 * ((-298.15) + sin1.T) ($RES_SIM_87) (103) [FOR-] (2) ($RES_EVT_200) (103) [----] for $i1 in 1:2 loop (103) [----] [SCAL] (1) $SEV_0[$i1] = 0.0 - (vol1.portsData_height[$i1] + 0.1 * vol1.portsData_diameter[$i1]) > 0.1 * vol1.portsData_diameter[$i1] ($RES_EVT_201) (103) [----] end for; (104) [FOR-] (2) ($RES_EVT_202) (104) [----] for $i1 in 1:2 loop (104) [----] [SCAL] (1) $SEV_1[$i1] = 0.0 - (vol1.portsData_height[$i1] + 0.1 * vol1.portsData_diameter[$i1]) < (-0.1 * vol1.portsData_diameter[$i1]) ($RES_EVT_203) (104) [----] end for; (105) [SCAL] (1) vol1.m = vol1.V * vol1.medium.d ($RES_SIM_9) (106) [FOR-] (2) ($RES_EVT_204) (106) [----] for $i1 in 1:2 loop (106) [----] [SCAL] (1) $SEV_2[$i1] = 0.1 * vol1.portsData_diameter[$i1] > 0.0 ($RES_EVT_205) (106) [----] end for; (107) [SCAL] (1) vol1.U = vol1.m * vol1.medium.u ($RES_SIM_8) (108) [SCAL] (1) $DER.vol1.U = vol1.Qb_flow + vol1.Hb_flow ($RES_SIM_7) (109) [FOR-] (2) ($RES_EVT_206) (109) [----] for $i1 in 1:2 loop (109) [----] [SCAL] (1) $SEV_3[$i1] = 0.0 >= vol1.portsData_height[$i1] ($RES_EVT_207) (109) [----] end for; (110) [SCAL] (1) $DER.vol1.m = vol1.mb_flow ($RES_SIM_6) (111) [FOR-] (2) ($RES_EVT_208) (111) [----] for $i1 in 1:2 loop (111) [----] [SCAL] (1) $SEV_4[$i1] = vol1.s[$i1] > 0.0 ($RES_EVT_209) (111) [----] end for; (112) [SCAL] (1) $FUN_6 = ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.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_189) (113) [SCAL] (1) pipe2.flowModel.dp_fric_nominal = sum({$FUN_6}) ($RES_$AUX_188) (114) [SCAL] (1) $FUN_8 = ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.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_187) (115) [SCAL] (1) pipe1.flowModel.dp_fric_nominal = sum({$FUN_8}) ($RES_$AUX_186) (116) [FOR-] (2) ($RES_SIM_10) (116) [----] for $i1 in 1:2 loop (116) [----] [SCAL] (1) vol1.ports_penetration[$i1] = smooth(1, if $SEV_0[$i1] then 1.0 else if $SEV_1[$i1] then 0.001 else if $SEV_2[$i1] then 0.5005 - 0.24975 * ((-3.0) + ((0.0 - (0.1 * vol1.portsData_diameter[$i1] + vol1.portsData_height[$i1])) / (0.1 * vol1.portsData_diameter[$i1])) ^ 2.0) * ((10.0 * (0.0 - (vol1.portsData_height[$i1] + 0.1 * vol1.portsData_diameter[$i1]))) / vol1.portsData_diameter[$i1]) else 0.5005) ($RES_SIM_11) (116) [----] end for; (117) [FOR-] (2) ($RES_SIM_12) (117) [----] for $i1 in 1:2 loop (117) [----] [SCAL] (1) vol1.regularFlow[$i1] = $SEV_3[$i1] ($RES_SIM_13) (117) [----] end for; (118) [SCAL] (1) pipe2.port_b.p = sin1.ports[1].p ($RES_SIM_130) (119) [ARRY] (2) pipe1.flowModel.vs = {-pipe1.port_b.m_flow / (pipe1.flowModel.crossAreas[1] * ((0.003483703884165752 * pipe1.flowModel.states.T) / pipe1.flowModel.states.p)), -pipe1.port_b.m_flow / (((0.003483703884165752 * pipe1.flowModel.states.T) / pipe1.flowModel.states.p) * pipe1.flowModel.crossAreas[2])} / pipe1.nParallel ($RES_BND_143) (120) [SCAL] (1) vol1.ports[2].p = pipe2.port_a.p ($RES_SIM_131) (121) [FOR-] (2) ($RES_SIM_14) (121) [----] for $i1 in 1:2 loop (121) [----] [SCAL] (1) vol1.inFlow[$i1] = $SEV_7[$i1] ($RES_SIM_15) (121) [----] end for; (122) [ARRY] (2) pipe1.flowModel.crossAreas = {pipe1.crossArea, pipe1.crossArea} ($RES_BND_144)