Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 107.2 kB / 16.42 MB, free: 5.504 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.001288/0.001288, allocations: 190.4 kB / 17.35 MB, free: 5.176 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.228/1.228, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.1648/0.1648, allocations: 37.99 MB / 308.6 MB, free: 5.984 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.966e-05/1.966e-05, allocations: 9.734 kB / 433.6 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17): time 0.427/0.427, allocations: 260.3 MB / 0.6777 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02668/0.4537, allocations: 19.33 MB / 0.6965 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002256/0.456, allocations: 99.44 kB / 0.6966 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002231/0.4583, allocations: 0.9861 MB / 0.6976 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01191/0.4702, allocations: 5.475 MB / 0.7029 GB, free: 5.188 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.01119/0.4814, allocations: 5.332 MB / 0.7081 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.009033/0.4905, allocations: 8.156 MB / 0.7161 GB, free: 7.668 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002401/0.4929, allocations: 1.681 MB / 0.7177 GB, free: 5.957 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005027/0.4979, allocations: 3.135 MB / 0.7208 GB, free: 2.812 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003858/0.5018, allocations: 2.484 MB / 0.7232 GB, free: 328 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0005103/0.5023, allocations: 224 kB / 0.7234 GB, free: 104 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2879/0.7903, allocations: 4.737 MB / 0.7281 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of combineBinaries: time 0.006401/0.7967, allocations: 4.901 MB / 0.7329 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of replaceArrayConstructors: time 0.003368/0.8001, allocations: 3.082 MB / 0.7359 GB, free: 8.562 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001232/0.8013, allocations: 418.4 kB / 0.7363 GB, free: 8.484 MB / 0.5294 GB Notification: Performance of FrontEnd: time 0.000484/0.8018, allocations: 70.2 kB / 0.7363 GB, free: 8.473 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 452 (361) * Number of variables: 492 (375) Notification: Performance of Bindings: time 0.01208/0.8139, allocations: 12.9 MB / 0.7489 GB, free: 4.129 MB / 0.5294 GB Notification: Performance of FunctionAlias: time 0.00165/0.8156, allocations: 1.853 MB / 0.7507 GB, free: 3.793 MB / 0.5294 GB Notification: Performance of Early Inline: time 0.006508/0.8221, allocations: 7.284 MB / 0.7579 GB, free: 3.465 MB / 0.5294 GB Notification: Performance of simplify1: time 0.000764/0.8229, allocations: 0.5721 MB / 0.7584 GB, free: 3.465 MB / 0.5294 GB Notification: Performance of Alias: time 0.006314/0.8292, allocations: 5.947 MB / 0.7642 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of simplify2: time 0.0009462/0.8302, allocations: 0.523 MB / 0.7647 GB, free: 1.848 MB / 0.5294 GB Notification: Performance of Events: time 0.001789/0.832, allocations: 1.817 MB / 0.7665 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of Detect States: time 0.001627/0.8336, allocations: 1.852 MB / 0.7683 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of Partitioning: time 0.002758/0.8364, allocations: 2.714 MB / 0.771 GB, free: 356 kB / 0.5294 GB Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (338/460) **************************** (1) [ALGB] (1) Real[1] pipe2.mb_flows (min = {-1e5 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}) (2) [ALGB] (1) protected Real valve1.state_b.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (3) [ALGB] (1) Real[1] pipe2.mediums.T (start = {pipe2.T_start}, min = {200.0 for $i1 in 1:1}, max = {6000.0 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}, StateSelect = prefer) (4) [ALGB] (1) Real[1] pipe2.mediums.R (start = {1000.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e7 for $i1 in 1:1}, nominal = {1000.0 for $i1 in 1:1}) (5) [ALGB] (2) Real[2] pipe3.H_flows (min = {-1e8 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1000.0 for $i1 in 1:2}) (6) [ALGB] (1) protected Real[1] pipe3.dheightsFM (7) [DISC] (1) protected Real valveOpening1.b (8) [DISC] (1) protected Real valveOpening1.a (9) [ALGB] (2) Real[2] pipe2.H_flows (min = {-1e8 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1000.0 for $i1 in 1:2}) (10) [ALGB] (1) final Real[1] pipe3.flowModel.dheights = pipe3.dheightsFM (11) [ALGB] (2) Real[2] pipe1.H_flows (min = {-1e8 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1000.0 for $i1 in 1:2}) (12) [DISC] (1) protected discrete Real valveOpening1.nextEvent (fixed = true, start = 0.0) (13) [ALGB] (2) final Real[2] pipe1.flowModel.dheights = pipe1.dheightsFM (14) [ALGB] (1) Real pipe2.state_b.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (15) [ALGB] (1) protected Real valve1.state_b.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (16) [ALGB] (1) stream Real pipe1.port_b.h_outflow (start = 298609.6803431054, min = -1e10, max = 1e10, nominal = 1e5) (17) [DER-] (1) Real[1] $DER.pipe3.Us (18) [ALGB] (1) Real[1] pipe2.mediums.T_degC = {Modelica.SIunits.Conversions.to_degC(pipe2.mediums[1].T)} (19) [ALGB] (1) Real[1] pipe3.mediums.T_degC = {Modelica.SIunits.Conversions.to_degC(pipe3.mediums[1].T)} (20) [ALGB] (1) Real junctionVolume.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * junctionVolume.medium.p_bar) (21) [ALGB] (3) final Real[3] pipe1.flowModel.crossAreas = pipe1.crossAreasFM (22) [ALGB] (3) final Real[3] pipe1.flowModel.dimensions = pipe1.dimensionsFM (23) [ALGB] (1) Real valve2.V_flow = valve2.m_flow / Modelica.Fluid.Utilities.regStep(valve2.m_flow, ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.density(valve2.state_a), ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.density(valve2.state_b), valve2.m_flow_small) (24) [ALGB] (1) Real[1] pipe1.Qb_flows (25) [ALGB] (1) stream Real junctionIdeal.port_3.h_outflow (start = 298609.6803431054, min = -1e10, max = 1e10, nominal = 1e5) (26) [ALGB] (1) Real pipe3.port_b.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (27) [ALGB] (1) Real pipe2.state_a.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (28) [DISC] (1) Boolean[1] $SEV_32[$i1] (29) [ALGB] (1) final input Real[1, 1] pipe2.heatTransfer.states.T = {pipe2.mediums[1].state.T} (start = {500.0 for $i1 in 1:1}, min = {200.0 for $i1 in 1:1}, max = {6000.0 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (30) [DER-] (1) Real[1] $DER.pipe2.Us (31) [ALGB] (1) Real valve1.m_flow (start = valve1.m_flow_start, min = -1e60, max = 1e5) (32) [ALGB] (1) protected Real valve1.state_a.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (33) [ALGB] (1) Real[1] pipe1.mediums.state.T (start = {500.0 for $i1 in 1:1}, min = {200.0 for $i1 in 1:1}, max = {6000.0 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (34) [DER-] (1) Real[1] $DER.pipe1.Us (35) [ALGB] (2) Real[2] pipe2.flowModel.mus = {pipe2.flowModel.mu_nominal 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}) (36) [ALGB] (2) final Real[2] pipe2.flowModel.roughnesses = pipe2.roughnessesFM (min = {0.0 for $i1 in 1:2}) (37) [ALGB] (1) final Real[1] pipe2.fluidVolumes = {pipe2.crossAreas[1] * 10.0} .* pipe2.nParallel (38) [ALGB] (1) protected Real[1] pipe2.pathLengths (39) [ALGB] (1) Real pipe2.state_a.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (40) [ALGB] (1) protected Real[1] pipe2.dheightsFM (41) [ALGB] (1) final input Real[1, 1] pipe2.heatTransfer.states.p = {pipe2.mediums[1].state.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}) (42) [ALGB] (1) final input Real[1, 1] pipe3.heatTransfer.states.p = {pipe3.mediums[1].state.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}) (43) [ALGB] (1) flow Real pipe1.port_a.m_flow (min = -1e60, max = 1e5) (44) [ALGB] (1) protected Real valve1.state_a.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (45) [DISC] (3) Boolean[3] $SEV_4[$i1] (46) [ALGB] (1) Real[1] pipe1.mediums.state.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}) (47) [ALGB] (1) Real[1] pipe1.Hb_flows (48) [ALGB] (1) Real[1] pipe2.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}) (49) [ALGB] (2) final Real[2] pipe3.flowModel.crossAreas = pipe3.crossAreasFM (50) [ALGB] (2) final Real[2] pipe3.flowModel.dimensions = pipe3.dimensionsFM (51) [ALGB] (1) Real valve1.V_flow = valve1.m_flow / Modelica.Fluid.Utilities.regStep(valve1.m_flow, ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.density(valve1.state_a), ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.density(valve1.state_b), valve1.m_flow_small) (52) [ALGB] (1) final input Real[1, 1] pipe3.heatTransfer.states.T = {pipe3.mediums[1].state.T} (start = {500.0 for $i1 in 1:1}, min = {200.0 for $i1 in 1:1}, max = {6000.0 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (53) [ALGB] (1) Real[1] pipe3.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}) (54) [ALGB] (1) stream Real valve2.port_b.h_outflow (start = 298609.6803431054, min = -1e10, max = 1e10, nominal = 1e5) (55) [DER-] (1) Real $DER.junctionIdeal.U (56) [ALGB] (2) Real[2] pipe1.flowModel.Fs_fg (57) [ALGB] (1) Real valve2.port_b_T = Modelica.Fluid.Utilities.regStep(-valve2.m_flow, ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.temperature(valve2.state_b), ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.temperature(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.setState_phX(99999.99999999999 * junctionVolume.medium.p_bar, valve2.port_b.h_outflow, {})), valve2.m_flow_small) (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (58) [ALGB] (1) Real[1] pipe2.flowModel.Ib_flows (59) [ALGB] (2) Real[2] pipe3.m_flows (start = {0.0 for $i1 in 1:2}, min = {-1e60 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}) (60) [ALGB] (1) Real[1] pipe2.heatTransfer.Q_flows (61) [DISC] (1) Boolean[1] $SEV_30[$i1] (62) [ALGB] (2) protected Real[2] pipe1.dheightsFM (63) [ALGB] (2) Real[2] pipe2.m_flows (start = {0.0 for $i1 in 1:2}, min = {-1e60 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}) (64) [ALGB] (1) Real[1] pipe2.flowModel.Is (65) [DER-] (1) Real $DER.junctionIdeal.m (66) [ALGB] (2) Real[2] pipe1.m_flows (start = {0.0 for $i1 in 1:2}, min = {-1e60 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}) (67) [ALGB] (1) flow Real pipe1.port_b.m_flow (min = -1e5, max = 1e60) (68) [ALGB] (1) Real[1] pipe3.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) [DISC] (1) Boolean $TEV_1 (70) [ALGB] (1) Real[1] pipe1.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}) (71) [DISC] (1) Boolean $TEV_0 (72) [ALGB] (2) protected Real[2] pipe1.pathLengths (73) [ALGB] (2) Real[2] pipe1.flowModel.rhos_act (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}) (74) [ALGB] (1) Real[1] pipe1.mediums.T_degC = {Modelica.SIunits.Conversions.to_degC(pipe1.mediums[1].T)} (75) [DISC] (1) Boolean[1] $SEV_28[$i1] (76) [ALGB] (1) Real valve2.port_a_T = Modelica.Fluid.Utilities.regStep(valve2.m_flow, ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.temperature(valve2.state_a), ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.temperature(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.setState_phX(pipe3.port_b.p, junctionVolume.port_3.h_outflow, {})), valve2.m_flow_small) (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (77) [ALGB] (1) flow Real pipe3.port_a.m_flow (min = -1e60, max = 1e5) (78) [ALGB] (1) Real[1] pipe3.mb_flows (min = {-1e5 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}) (79) [ALGB] (4) final input Real[2, 2] pipe2.flowModel.states.T = {pipe2.statesFM[1].T, pipe2.statesFM[2].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}) (80) [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) (81) [ALGB] (2) protected Real[2] pipe2.dimensionsFM (82) [ALGB] (2) protected Real[2] pipe2.crossAreasFM (83) [ALGB] (1) protected Real[1] pipe3.pathLengths (84) [ALGB] (1) stream Real junctionVolume.port_3.h_outflow (start = 298609.6803431054, min = -1e10, max = 1e10, nominal = 1e5) (85) [ALGB] (1) Real junctionIdeal.Hb_flow (86) [ALGB] (9) final input Real[3, 3] pipe1.flowModel.states.p = {pipe1.statesFM[1].p, pipe1.statesFM[2].p, pipe1.statesFM[3].p} (start = {1e6 for $i1 in 1:3}, min = {0.0 for $i1 in 1:3}, max = {1e8 for $i1 in 1:3}, nominal = {1e6 for $i1 in 1:3}) (87) [ALGB] (4) Real[2, 2] pipe3.statesFM.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}) (88) [ALGB] (1) Real[1] pipe1.Wb_flows (89) [ALGB] (1) Real junctionVolume.medium.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (90) [ALGB] (1) Real[1] pipe2.flowModel.Fs_fg (91) [ALGB] (1) Real[1] pipe1.vs = {(0.5 * (pipe1.m_flows[2] + pipe1.m_flows[1])) / (pipe1.crossAreas[1] * pipe1.mediums[1].d)} / pipe1.nParallel (92) [ALGB] (1) Real valve1.xs (93) [ALGB] (4) final input Real[2, 2] pipe2.flowModel.states.p = {pipe2.statesFM[1].p, pipe2.statesFM[2].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}) (94) [ALGB] (1) flow Real[1] pipe3.heatTransfer.heatPorts.Q_flow (95) [ALGB] (1) Real junctionVolume.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (96) [ALGB] (1) protected Real valve1.minLimiter.y (97) [ALGB] (1) Real[1] pipe2.Qb_flows (98) [ALGB] (9) final input Real[3, 3] pipe1.flowModel.states.T = {pipe1.statesFM[1].T, pipe1.statesFM[2].T, pipe1.statesFM[3].T} (start = {500.0 for $i1 in 1:3}, min = {200.0 for $i1 in 1:3}, max = {6000.0 for $i1 in 1:3}, nominal = {500.0 for $i1 in 1:3}) (99) [ALGB] (1) Real[1] pipe2.vs = {(0.5 * (pipe2.m_flows[2] + pipe2.m_flows[1])) / (pipe2.crossAreas[1] * pipe2.mediums[1].d)} / pipe2.nParallel (100) [ALGB] (1) Real valve2.xs (101) [ALGB] (1) Real[1] pipe3.mediums.u (min = {-1e8 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (102) [ALGB] (4) Real[2, 2] pipe3.statesFM.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}) (103) [DISC] (2) Boolean[2] $SEV_1[$i1] (104) [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}) (105) [ALGB] (2) final Real[2] pipe2.flowModel.vs = pipe2.vsFM (106) [ALGB] (1) Real[1] pipe3.mediums.state.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}) (107) [ALGB] (1) Real[1] pipe3.mediums.p (start = {pipe3.ps_start[1]}, min = {0.0 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}, StateSelect = prefer) (108) [ALGB] (1) Real[1] pipe2.flowModel.pathLengths_internal = pipe2.flowModel.pathLengths (109) [ALGB] (1) final Real[1] pipe1.heatTransfer.vs = pipe1.vs (110) [ALGB] (1) Real[1] pipe3.vs = {(0.5 * (pipe3.m_flows[2] + pipe3.m_flows[1])) / (pipe3.crossAreas[1] * pipe3.mediums[1].d)} / pipe3.nParallel (111) [ALGB] (1) Real[1] pipe3.mediums.h (start = {pipe3.h_start}) (112) [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}) (113) [ALGB] (1) Real junctionVolume.Hb_flow (114) [ALGB] (2) Real[2] pipe3.flowModel.rhos = {ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe3.flowModel.Medium.density(pipe3.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}) (115) [ALGB] (1) Real[1] pipe3.mediums.d (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}) (116) [ALGB] (1) Real pipe3.state_b.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (117) [ALGB] (1) Real[1] pipe3.flowModel.Fs_p (118) [ALGB] (2) Real[2] pipe1.flowModel.Res_turbulent_internal = pipe1.flowModel.Re_turbulent * {1.0 for $i1 in 1:2} (119) [DER-] (1) Real $DER.junctionVolume.U (120) [DISC] (1) protected Integer valveOpening2.last (start = 1) (121) [ALGB] (1) protected Real valve2.state_b.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (122) [ALGB] (4) Real[2, 2] pipe2.statesFM.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}) (123) [ALGB] (1) Real[1] pipe3.mediums.state.T (start = {500.0 for $i1 in 1:1}, min = {200.0 for $i1 in 1:1}, max = {6000.0 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (124) [ALGB] (1) Real[1] pipe3.mediums.T (start = {pipe3.T_start}, min = {200.0 for $i1 in 1:1}, max = {6000.0 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}, StateSelect = prefer) (125) [ALGB] (1) Real[1] pipe3.mediums.R (start = {1000.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e7 for $i1 in 1:1}, nominal = {1000.0 for $i1 in 1:1}) (126) [ALGB] (1) flow Real junctionVolume.port_3.m_flow (min = -1e60, max = 1e60) (127) [ALGB] (1) protected Real[1] pipe2.flowModel.diameters = 0.5 * (pipe2.flowModel.dimensions[2:2] + pipe2.flowModel.dimensions[1:1]) (128) [DISC] (1) Boolean[1] $SEV_26[$i1] (129) [ALGB] (1) Real[1] pipe2.Hb_flows (130) [ALGB] (2) Real[2] pipe1.flowModel.Ib_flows (131) [DISC] (2) Boolean[2] $SEV_0[$i1] (132) [ALGB] (1) Real[1] pipe2.flowModel.Res_turbulent_internal = pipe2.flowModel.Re_turbulent * {1.0 for $i1 in 1:1} (133) [DER-] (1) Real $DER.junctionVolume.m (134) [ALGB] (1) Real pipe3.state_b.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (135) [ALGB] (1) Real[1] pipe1.mediums.u (min = {-1e8 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (136) [ALGB] (1) Real[1] pipe1.mediums.p (start = {pipe1.ps_start[1]}, min = {0.0 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}, StateSelect = prefer) (137) [ALGB] (1) Real valve2.dp_turbulent = max(valve2.dp_small, ((ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.dynamicViscosity(valve2.state_a) + ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.dynamicViscosity(valve2.state_b)) ^ 2.0 * 3.141592653589793 * 1.6e7) / (8.0 * valve2.Y * max(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.valveCharacteristic(valveOpening2.y), 0.001) * valve2.Av * (ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.density(valve2.state_b) + ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.density(valve2.state_a)))) (min = 0.0, nominal = 1e5) (138) [ALGB] (1) protected Real valve2.state_b.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (139) [ALGB] (1) Real[1] pipe3.heatTransfer.Ts = {ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe3.heatTransfer.Medium.temperature(pipe3.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}) (140) [ALGB] (4) Real[2, 2] pipe2.statesFM.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}) (141) [ALGB] (1) Real[1] pipe1.heatTransfer.Q_flows (142) [ALGB] (3) protected Real[3] pipe1.roughnessesFM (min = {0.0 for $i1 in 1:3}) (143) [ALGB] (1) flow Real[1] source.ports.m_flow (min = {-1e60}, max = {1e60}) (144) [ALGB] (1) Real[1] pipe1.mediums.h (start = {pipe1.h_start}) (145) [ALGB] (1) Real source.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (146) [ALGB] (1) Real pipe3.state_a.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (147) [ALGB] (1) Real[1] pipe1.mediums.d (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}) (148) [ALGB] (1) Real pipe1.port_a.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (149) [DISC] (1) protected Integer valveOpening1.last (start = 1) (150) [ALGB] (1) Real[1] pipe3.flowModel.dps_fg (start = {pipe3.flowModel.p_a_start - pipe3.flowModel.p_b_start for $i1 in 1:1}) (151) [ALGB] (1) Real pipe1.state_b.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (152) [ALGB] (1) final Real[1] pipe3.fluidVolumes = {pipe3.crossAreas[1] * 10.0} .* pipe3.nParallel (153) [ALGB] (2) protected Real[2] pipe1.flowModel.diameters = 0.5 * (pipe1.flowModel.dimensions[2:3] + pipe1.flowModel.dimensions[1:2]) (154) [ALGB] (1) protected Real valve2.state_a.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (155) [ALGB] (1) Real[1] pipe3.flowModel.pathLengths_internal = pipe3.flowModel.pathLengths (156) [ALGB] (1) Real source.medium.h (157) [DISC] (1) protected discrete Real valveOpening1.nextEventScaled (fixed = true, start = 0.0) (158) [ALGB] (3) protected Real[3] pipe1.vsFM (159) [ALGB] (2) Real[2] pipe1.flowModel.m_flows (start = {0.0 for $i1 in 1:2}, min = {-1e60 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}, StateSelect = default) (160) [ALGB] (1) Real[1] pipe1.mediums.T (start = {pipe1.T_start}, min = {200.0 for $i1 in 1:1}, max = {6000.0 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}, StateSelect = prefer) (161) [DISC] (1) Boolean $SEV_64 (162) [DISC] (1) Boolean $SEV_63 (163) [ALGB] (1) Real[1] pipe1.mediums.R (start = {1000.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e7 for $i1 in 1:1}, nominal = {1000.0 for $i1 in 1:1}) (164) [ALGB] (2) protected Real[2] pipe2.roughnessesFM (min = {0.0 for $i1 in 1:2}) (165) [DISC] (1) Boolean $SEV_62 (166) [ALGB] (1) Real junctionIdeal.mb_flow (167) [DISC] (1) Boolean $SEV_61 (168) [DISC] (1) Boolean $SEV_60 (169) [ALGB] (1) Real[1] pipe1.heatTransfer.Ts = {ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe1.heatTransfer.Medium.temperature(pipe1.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}) (170) [ALGB] (9) Real[3, 3] pipe1.statesFM.p (start = {1e6 for $i1 in 1:3}, min = {0.0 for $i1 in 1:3}, max = {1e8 for $i1 in 1:3}, nominal = {1e6 for $i1 in 1:3}) (171) [ALGB] (1) Real pipe3.state_a.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (172) [DER-] (1) Real[1] $DER.pipe3.ms (173) [DISC] (1) protected discrete Real valveOpening2.nextEvent (fixed = true, start = 0.0) (174) [ALGB] (1) Real pipe1.state_b.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (175) [ALGB] (1) Real[1] pipe3.flowModel.Ib_flows (176) [ALGB] (1) stream Real pipe2.port_a.h_outflow (start = 298609.6803431054, min = -1e10, max = 1e10, nominal = 1e5) (177) [ALGB] (1) protected Real valve2.state_a.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (178) [ALGB] (1) Real sink.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (179) [ALGB] (2) final Real[2] pipe3.flowModel.roughnesses = pipe3.roughnessesFM (min = {0.0 for $i1 in 1:2}) (180) [DER-] (1) Real[1] $DER.pipe2.ms (181) [ALGB] (1) Real junctionVolume.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - junctionVolume.medium.T_degC)) (182) [ALGB] (1) stream Real pipe1.port_a.h_outflow (start = 298609.6803431054, min = -1e10, max = 1e10, nominal = 1e5) (183) [DISC] (1) Boolean $SEV_59 (184) [DISC] (1) Boolean $SEV_58 (185) [DISC] (1) Boolean $SEV_57 (186) [DISC] (1) Boolean $SEV_56 (187) [DISC] (1) Boolean $SEV_55 (188) [ALGB] (1) Real sink.medium.h (189) [ALGB] (1) Real[1] pipe2.mediums.state.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}) (190) [ALGB] (1) Real pipe1.state_a.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (191) [ALGB] (1) Real[1] pipe3.heatTransfer.Q_flows (192) [ALGB] (9) Real[3, 3] pipe1.statesFM.T (start = {500.0 for $i1 in 1:3}, min = {200.0 for $i1 in 1:3}, max = {6000.0 for $i1 in 1:3}, nominal = {500.0 for $i1 in 1:3}) (193) [DER-] (1) Real[1] $DER.pipe1.ms (194) [ALGB] (2) Real[2] pipe1.flowModel.mus_act (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}) (195) [ALGB] (2) protected Real[2] pipe2.vsFM (196) [ALGB] (1) Real valve1.dp (start = 10.0) (197) [ALGB] (2) protected Real[2] pipe3.roughnessesFM (min = {0.0 for $i1 in 1:2}) (198) [ALGB] (1) Real junctionVolume.mb_flow (199) [ALGB] (1) Real[1] pipe2.heatTransfer.Ts = {ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe2.heatTransfer.Medium.temperature(pipe2.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}) (200) [ALGB] (1) Real[1] pipe2.Wb_flows (201) [ALGB] (1) final Real[1] pipe3.heatTransfer.vs = pipe3.vs (202) [ALGB] (1) Real[1] pipe3.flowModel.Is (203) [ALGB] (1) Real valve2.dp (start = valve2.dp_start) (204) [ALGB] (1) Real[1] pipe2.flowModel.dps_fg (start = {pipe2.flowModel.p_a_start - pipe2.flowModel.p_b_start for $i1 in 1:1}) (205) [ALGB] (1) Real[1] pipe2.mediums.state.T (start = {500.0 for $i1 in 1:1}, min = {200.0 for $i1 in 1:1}, max = {6000.0 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (206) [ALGB] (1) final Real[1] pipe2.flowModel.dheights = pipe2.dheightsFM (207) [ALGB] (1) Real junctionIdeal.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - junctionIdeal.medium.T_degC)) (208) [ALGB] (1) Real pipe1.state_a.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (209) [ALGB] (4) final input Real[2, 2] pipe3.flowModel.states.T = {pipe3.statesFM[1].T, pipe3.statesFM[2].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}) (210) [DISC] (1) Boolean $SEV_47 (211) [DISC] (1) Boolean $SEV_46 (212) [DISC] (1) Boolean $SEV_45 (213) [ALGB] (1) Real[1] pipe1.mb_flows (min = {-1e5 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}) (214) [DISC] (1) Boolean $SEV_44 (215) [DISC] (1) Boolean $SEV_43 (216) [DISC] (1) Boolean $SEV_42 (217) [DISC] (1) Boolean $SEV_41 (218) [DISC] (1) Boolean $SEV_40 (219) [ALGB] (2) final Real[2] pipe2.flowModel.dimensions = pipe2.dimensionsFM (220) [ALGB] (2) final Real[2] pipe2.flowModel.crossAreas = pipe2.crossAreasFM (221) [DISC] (1) protected discrete Real valveOpening2.nextEventScaled (fixed = true, start = 0.0) (222) [ALGB] (1) Real[1] pipe3.Qb_flows (223) [ALGB] (1) Real $FUN_9 (224) [ALGB] (1) Real $FUN_8 (225) [ALGB] (1) Real $FUN_27 (226) [ALGB] (1) protected Real pipe3.flowModel.dp_fric_nominal = sum({ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe3.flowModel.WallFriction.pressureLoss_m_flow(pipe3.flowModel.m_flow_nominal / pipe3.flowModel.nParallel, pipe3.flowModel.rho_nominal, pipe3.flowModel.rho_nominal, pipe3.flowModel.mu_nominal, pipe3.flowModel.mu_nominal, pipe3.flowModel.pathLengths_internal[1], pipe3.flowModel.diameters[1], ((pipe3.flowModel.crossAreas[2:2] + pipe3.flowModel.crossAreas[1:1]) / 2.0)[1], ((pipe3.flowModel.roughnesses[2:2] + pipe3.flowModel.roughnesses[1:1]) / 2.0)[1], pipe3.flowModel.m_flow_small / pipe3.flowModel.nParallel, pipe3.flowModel.Res_turbulent_internal[1])}) (min = 0.0, nominal = 1e5) (227) [ALGB] (1) Real $FUN_7 (228) [ALGB] (1) Real $FUN_6 (229) [ALGB] (1) Real $FUN_25 (230) [ALGB] (1) final Real[1] pipe1.fluidVolumes = {pipe1.crossAreas[1] * 10.0} .* pipe1.nParallel (231) [ALGB] (1) Real $FUN_5 (232) [DISC] (1) Boolean[1] $SEV_51[$i1] (233) [ALGB] (1) Real $FUN_4 (234) [ALGB] (1) Real $FUN_23 (235) [ALGB] (1) Real $FUN_3 (236) [DISC] (1) Integer $FUN_22 (237) [ALGB] (2) protected Real[2] pipe3.vsFM (238) [ALGB] (1) Real $FUN_2 (239) [ALGB] (1) Real $FUN_21 (240) [ALGB] (1) Real $FUN_1 (241) [ALGB] (1) Real $FUN_20 (242) [ALGB] (4) final input Real[2, 2] pipe3.flowModel.states.p = {pipe3.statesFM[1].p, pipe3.statesFM[2].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}) (243) [ALGB] (2) protected Real[2] pipe3.dimensionsFM (244) [ALGB] (2) protected Real[2] pipe3.crossAreasFM (245) [ALGB] (1) Real junctionVolume.medium.state.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (246) [DISC] (1) Boolean $SEV_39 (247) [DISC] (1) Boolean $SEV_38 (248) [DISC] (1) Boolean $SEV_37 (249) [DISC] (1) Boolean $SEV_36 (250) [ALGB] (1) Real junctionIdeal.medium.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (251) [ALGB] (1) Real[1] sink.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}) (252) [ALGB] (1) Real pipe2.port_b.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (253) [ALGB] (1) flow Real pipe2.port_a.m_flow (min = -1e60, max = 1e5) (254) [ALGB] (1) Real $FUN_19 (255) [ALGB] (1) Real junctionIdeal.medium.state.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (256) [DISC] (1) Integer $FUN_18 (257) [ALGB] (1) Real $FUN_17 (258) [ALGB] (1) Real $FUN_16 (259) [ALGB] (1) Real $FUN_15 (260) [ALGB] (1) Real[1] pipe3.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}) (261) [ALGB] (1) Real $FUN_14 (262) [DISC] (1) Boolean[1] $SEV_49[$i1] (263) [ALGB] (1) Real $FUN_13 (264) [ALGB] (1) Real $FUN_12 (265) [ALGB] (1) Real junctionIdeal.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (266) [ALGB] (1) Real $FUN_11 (267) [ALGB] (1) Real $FUN_10 (268) [ALGB] (1) final Real[1] pipe3.flowModel.pathLengths = pipe3.pathLengths (269) [ALGB] (1) Real junctionVolume.medium.state.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (270) [ALGB] (1) Real[1] pipe3.Hb_flows (271) [ALGB] (3) final Real[3] pipe1.flowModel.roughnesses = pipe1.roughnessesFM (min = {0.0 for $i1 in 1:3}) (272) [ALGB] (3) Real[3] pipe1.flowModel.mus = {pipe1.flowModel.mu_nominal for $i1 in 1:3} (start = {0.001 for $i1 in 1:3}, min = {0.0 for $i1 in 1:3}, max = {1e8 for $i1 in 1:3}, nominal = {0.001 for $i1 in 1:3}) (273) [ALGB] (1) stream Real pipe3.port_a.h_outflow (start = 298609.6803431054, min = -1e10, max = 1e10, nominal = 1e5) (274) [DISC] (1) Boolean $SEV_29 (275) [ALGB] (1) final Real[1] pipe2.heatTransfer.vs = pipe2.vs (276) [DISC] (1) Boolean $SEV_25 (277) [ALGB] (2) final Real[2] pipe3.flowModel.vs = pipe3.vsFM (278) [DISC] (1) Boolean $SEV_21 (279) [ALGB] (1) protected Real pipe1.flowModel.dp_fric_nominal = sum(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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[$i1], pipe1.flowModel.diameters[$i1], ((pipe1.flowModel.crossAreas[2:3] + pipe1.flowModel.crossAreas[1:2]) / 2.0)[$i1], ((pipe1.flowModel.roughnesses[2:3] + pipe1.flowModel.roughnesses[1:2]) / 2.0)[$i1], pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[$i1]) for $i1 in 1:2) (min = 0.0, nominal = 1e5) (280) [DISC] (1) Boolean $SEV_20 (281) [ALGB] (1) flow Real[1] sink.ports.m_flow (min = {-1e60}, max = {1e60}) (282) [ALGB] (1) Real junctionIdeal.medium.state.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (283) [ALGB] (1) Real valve2.x (284) [ALGB] (1) Real[1] pipe3.flowModel.Res_turbulent_internal = pipe3.flowModel.Re_turbulent * {1.0 for $i1 in 1:1} (285) [ALGB] (2) Real[2] pipe1.flowModel.Is (286) [ALGB] (1) Real valve2.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (287) [ALGB] (1) Real[1] pipe3.mediums.p_bar = {Modelica.SIunits.Conversions.to_bar(pipe3.mediums[1].p)} (288) [ALGB] (1) stream Real[1] sink.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}) (289) [ALGB] (1) Real junctionIdeal.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * junctionIdeal.medium.p_bar) (290) [DISC] (2) Boolean[2] $SEV_48[$i1] (291) [ALGB] (1) Real[1] pipe3.flowModel.Fs_fg (292) [DISC] (1) Boolean $SEV_19 (293) [DISC] (1) Boolean $SEV_15 (294) [ALGB] (2) Real[2] pipe1.flowModel.dps_fg (start = {(pipe1.flowModel.p_a_start - pipe1.flowModel.p_b_start) / 2.0 for $i1 in 1:2}) (295) [DISC] (1) Boolean $SEV_14 (296) [DISC] (1) Boolean $SEV_13 (297) [ALGB] (1) Real valveOpening2.y (298) [ALGB] (1) Real valve2.Y (299) [ALGB] (1) Real valve1.port_b_T = Modelica.Fluid.Utilities.regStep(-valve1.m_flow, ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.temperature(valve1.state_b), ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.temperature(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.setState_phX(99999.99999999999 * junctionVolume.medium.p_bar, valve1.port_b.h_outflow, {})), valve1.m_flow_small) (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (300) [ALGB] (1) stream Real[1] source.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}) (301) [ALGB] (3) protected Real[3] pipe1.dimensionsFM (302) [ALGB] (3) protected Real[3] pipe1.crossAreasFM (303) [ALGB] (1) Real valve1.dp_turbulent = max(valve1.dp_small, ((ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.dynamicViscosity(valve1.state_a) + ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.dynamicViscosity(valve1.state_b)) ^ 2.0 * 3.141592653589793 * 1.6e7) / (8.0 * valve1.Y * max(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.valveCharacteristic(valveOpening1.y), 0.001) * valve1.Av * (ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.density(valve1.state_b) + ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.density(valve1.state_a)))) (min = 0.0, nominal = 1e5) (304) [ALGB] (1) flow Real[1] pipe1.heatTransfer.heatPorts.Q_flow (305) [ALGB] (1) Real[1] pipe2.flowModel.Fs_p (306) [ALGB] (2) Real[2] pipe1.flowModel.Fs_p (307) [ALGB] (1) Real valve1.x (308) [ALGB] (1) Real[1] pipe3.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}) (309) [ALGB] (1) final Real[1] pipe2.flowModel.pathLengths = pipe2.pathLengths (310) [DISC] (1) protected Real valveOpening2.b (311) [DISC] (1) protected Real valveOpening2.a (312) [ALGB] (1) Real[1] pipe2.mediums.p_bar = {Modelica.SIunits.Conversions.to_bar(pipe2.mediums[1].p)} (313) [ALGB] (2) Real[2] pipe2.flowModel.rhos = {ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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}) (314) [ALGB] (3) Real[3] pipe1.flowModel.rhos = {ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe1.flowModel.Medium.density(pipe1.flowModel.states[$i1]) for $i1 in 1:3} (start = {10.0 for $i1 in 1:3}, min = {0.0 for $i1 in 1:3}, max = {1e5 for $i1 in 1:3}, nominal = {10.0 for $i1 in 1:3}) (315) [ALGB] (1) Real valve1.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (316) [ALGB] (1) Real[1] pipe2.mediums.u (min = {-1e8 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (317) [ALGB] (1) protected Real pipe2.flowModel.dp_fric_nominal = sum({ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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) (318) [ALGB] (1) final input Real[1, 1] pipe1.heatTransfer.states.p = {pipe1.mediums[1].state.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}) (319) [ALGB] (1) Real[1] source.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}) (320) [ALGB] (1) Real[1] pipe2.mediums.p (start = {pipe2.ps_start[1]}, min = {0.0 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}, StateSelect = prefer) (321) [ALGB] (1) protected Real[1] pipe3.flowModel.diameters = 0.5 * (pipe3.flowModel.dimensions[2:2] + pipe3.flowModel.dimensions[1:1]) (322) [ALGB] (2) Real[2] pipe3.flowModel.mus = {pipe3.flowModel.mu_nominal 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}) (323) [ALGB] (1) Real valve2.m_flow (start = valve2.m_flow_start, min = -1e60, max = 1e5) (324) [ALGB] (1) flow Real[1] pipe2.heatTransfer.heatPorts.Q_flow (325) [ALGB] (1) Real[1] pipe2.mediums.h (start = {pipe2.h_start}) (326) [ALGB] (1) protected Real valve2.minLimiter.y (327) [ALGB] (1) Real[1] pipe2.mediums.d (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}) (328) [ALGB] (1) Real[1] pipe3.Wb_flows (329) [ALGB] (1) Real valveOpening1.y (330) [ALGB] (2) final Real[2] pipe1.flowModel.pathLengths = pipe1.pathLengths (331) [ALGB] (1) Real[1] pipe1.mediums.p_bar = {Modelica.SIunits.Conversions.to_bar(pipe1.mediums[1].p)} (332) [ALGB] (1) Real pipe2.state_b.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (333) [ALGB] (1) Real valve1.Y (334) [ALGB] (3) final Real[3] pipe1.flowModel.vs = pipe1.vsFM (335) [ALGB] (2) Real[2] pipe1.flowModel.pathLengths_internal = pipe1.flowModel.pathLengths (336) [ALGB] (1) Real valve1.port_a_T = Modelica.Fluid.Utilities.regStep(valve1.m_flow, ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.temperature(valve1.state_a), ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.temperature(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.setState_phX(pipe2.port_b.p, junctionVolume.port_3.h_outflow, {})), valve1.m_flow_small) (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (337) [ALGB] (1) stream Real valve1.port_b.h_outflow (start = 298609.6803431054, min = -1e10, max = 1e10, nominal = 1e5) (338) [ALGB] (1) final input Real[1, 1] pipe1.heatTransfer.states.T = {pipe1.mediums[1].state.T} (start = {500.0 for $i1 in 1:1}, min = {200.0 for $i1 in 1:1}, max = {6000.0 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) System Equations (328/420) **************************** (1) [SCAL] (1) pipe1.port_b.m_flow = -pipe1.m_flows[2] ($RES_SIM_254) (2) [SCAL] (1) $SEV_51[1] = pipe1.mediums[1].T >= 200.0 and pipe1.mediums[1].T <= 6000.0 ($RES_EVT_550) (3) [SCAL] (1) pipe1.port_a.m_flow = pipe1.m_flows[1] ($RES_SIM_255) (4) [ARRY] (2) pipe2.flowModel.vs = pipe2.vsFM ($RES_BND_380) (5) [SCAL] (1) pipe1.H_flows[2] = -$FUN_4 ($RES_SIM_256) (6) [ARRY] (2) pipe2.flowModel.crossAreas = pipe2.crossAreasFM ($RES_BND_381) (7) [SCAL] (1) pipe1.H_flows[1] = $FUN_3 ($RES_SIM_257) (8) [ARRY] (2) pipe2.flowModel.dimensions = pipe2.dimensionsFM ($RES_BND_382) (9) [SCAL] (1) pipe1.mb_flows[1] = pipe1.m_flows[1] - pipe1.m_flows[2] ($RES_SIM_258) (10) [ARRY] (2) pipe2.flowModel.roughnesses = pipe2.roughnessesFM ($RES_BND_383) (11) [SCAL] (1) $SEV_55 = (-valve2.m_flow) > valve2.m_flow_small ($RES_EVT_554) (12) [SCAL] (1) pipe1.Hb_flows[1] = pipe1.H_flows[1] - pipe1.H_flows[2] ($RES_SIM_259) (13) [ARRY] (1) pipe2.flowModel.dheights = pipe2.dheightsFM ($RES_BND_384) (14) [SCAL] (1) $SEV_56 = (-valve2.m_flow) < (-valve2.m_flow_small) ($RES_EVT_555) (15) [ARRY] (1) pipe2.flowModel.pathLengths = pipe2.pathLengths ($RES_BND_385) (16) [SCAL] (1) $SEV_57 = valve2.m_flow_small > 0.0 ($RES_EVT_556) (17) [FOR-] (2) ($RES_BND_386) (17) [----] for $i1 in 1:2 loop (17) [----] [SCAL] (1) pipe2.flowModel.rhos[$i1] = (0.0034836987724536205 * pipe2.flowModel.states.T) / pipe2.flowModel.states.p ($RES_BND_387) (17) [----] end for; (18) [SCAL] (1) $SEV_58 = valve2.m_flow > valve2.m_flow_small ($RES_EVT_557) (19) [SCAL] (1) $SEV_59 = valve2.m_flow < (-valve2.m_flow_small) ($RES_EVT_558) (20) [FOR-] (2) ($RES_BND_388) (20) [----] for $i1 in 1:2 loop (20) [----] [SCAL] (1) pipe2.flowModel.mus[$i1] = pipe2.flowModel.mu_nominal ($RES_BND_389) (20) [----] end for; (21) [SCAL] (1) $SEV_60 = (-valve1.m_flow) > valve1.m_flow_small ($RES_EVT_559) (22) [ARRY] (1) pipe2.flowModel.Is = {pipe2.flowModel.m_flows[1] * pipe2.flowModel.pathLengths[1]} ($RES_SIM_170) (23) [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_171) (24) [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_172) (25) [ARRY] (1) pipe2.flowModel.Ib_flows = {0.0} ($RES_SIM_173) (26) [SCAL] (1) pipe2.flowModel.rhos_act[1] = noEvent(if $SEV_29 then pipe2.flowModel.rhos[1] else pipe2.flowModel.rhos[2]) ($RES_SIM_174) (27) [SCAL] (1) pipe2.flowModel.mus_act[1] = noEvent(if $SEV_29 then pipe2.flowModel.mus[1] else pipe2.flowModel.mus[2]) ($RES_SIM_175) (28) [ARRY] (1) pipe2.flowModel.m_flows = {homotopy(({$FUN_7} .* 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_176) (29) [ARRY] (3) pipe1.roughnessesFM[:] = {pipe1.roughnesses[1], pipe1.roughnesses[1], pipe1.roughnesses[1]} ($RES_SIM_260) (30) [ARRY] (3) pipe1.dimensionsFM[:] = {pipe1.dimensions[1], pipe1.dimensions[1], pipe1.dimensions[1]} ($RES_SIM_261) (31) [ARRY] (3) pipe1.crossAreasFM[:] = {pipe1.crossAreas[1], pipe1.crossAreas[1], pipe1.crossAreas[1]} ($RES_SIM_262) (32) [ARRY] (2) pipe1.dheightsFM[:] = {0.0, 0.0} ($RES_SIM_263) (33) [ARRY] (2) pipe1.pathLengths[:] = {5.0, 5.0} ($RES_SIM_264) (34) [SCAL] (1) $SEV_61 = (-valve1.m_flow) < (-valve1.m_flow_small) ($RES_EVT_560) (35) [ARRY] (1) pipe1.Wb_flows = (pipe1.crossAreas * pipe1.vs * (($FUN_2 + 99999.99999999999 * junctionIdeal.medium.p_bar) - ((system.g * {0.0}) / pipe1.mediums.d + pipe1.port_a.p))) / ({1.0} * {1.0}) .* {1.0} .* pipe1.nParallel ($RES_SIM_265) (36) [ARRY] (1) pipe2.flowModel.pathLengths_internal = pipe2.flowModel.pathLengths ($RES_BND_390) (37) [SCAL] (1) $SEV_62 = valve1.m_flow_small > 0.0 ($RES_EVT_561) (38) [ARRY] (1) pipe1.Qb_flows = pipe1.heatTransfer.Q_flows ($RES_SIM_266) (39) [SCAL] (1) pipe2.flowModel.Res_turbulent_internal[1] = pipe2.flowModel.Re_turbulent ($RES_BND_391) (40) [SCAL] (1) $SEV_63 = valve1.m_flow > valve1.m_flow_small ($RES_EVT_562) (41) [ARRY] (1) pipe1.heatTransfer.Q_flows = pipe1.heatTransfer.heatPorts.Q_flow ($RES_SIM_267) (42) [ARRY] (1) pipe2.flowModel.diameters = 0.5 * (pipe2.flowModel.dimensions[2:2] + pipe2.flowModel.dimensions[1:1]) ($RES_BND_392) (43) [SCAL] (1) $SEV_64 = valve1.m_flow < (-valve1.m_flow_small) ($RES_EVT_563) (44) [ARRY] (1) pipe1.heatTransfer.Ts = pipe1.heatTransfer.heatPorts.T ($RES_SIM_268) (45) [ARRY] (2) {0.0 for $i1 in 1:2} = pipe1.flowModel.Ib_flows - (pipe1.flowModel.Fs_fg + pipe1.flowModel.Fs_p) ($RES_SIM_269) (46) [ARRY] (1) pipe2.vs = {(0.5 * (pipe2.m_flows[2] + pipe2.m_flows[1])) / (pipe2.crossAreas[1] * pipe2.mediums[1].d)} / pipe2.nParallel ($RES_BND_394) (47) [ARRY] (1) pipe2.heatTransfer.Ts = {pipe2.heatTransfer.states.p} ($RES_BND_396) (48) [ARRY] (1) pipe2.heatTransfer.vs = pipe2.vs ($RES_BND_397) (49) [ARRY] (1) pipe2.mediums.state.p = pipe2.mediums.p ($RES_SIM_182) (50) [ARRY] (1) pipe2.mediums.state.T = pipe2.mediums.T ($RES_SIM_183) (51) [SCAL] (1) pipe2.mediums[1].d = pipe2.mediums[1].p / (pipe2.mediums[1].T * pipe2.mediums[1].R) ($RES_SIM_184) (52) [SCAL] (1) pipe2.mediums[1].u = pipe2.mediums[1].h - pipe2.mediums[1].R * pipe2.mediums[1].T ($RES_SIM_185) (53) [SCAL] (1) pipe2.mediums[1].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), pipe2.mediums[1].T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_SIM_186) (54) [ARRY] (1) pipe2.mediums.R = {287.0512249529787} ($RES_SIM_187) (55) [ARRY] (2) pipe1.flowModel.Is = {pipe1.flowModel.m_flows[i] * pipe1.flowModel.pathLengths[i] for i in 1:2} ($RES_SIM_270) (56) [ARRY] (2) pipe1.flowModel.dps_fg = {pipe1.flowModel.Fs_fg[i] / pipe1.flowModel.nParallel * 2.0 / (pipe1.flowModel.crossAreas[i] + pipe1.flowModel.crossAreas[i + 1]) for i in 1:2} ($RES_SIM_271) (57) [ARRY] (2) pipe1.flowModel.Fs_p = pipe1.flowModel.nParallel * {0.0 for i in 1:2} ($RES_SIM_272) (58) [ARRY] (2) pipe1.flowModel.Ib_flows = {0.0 for $i1 in 1:2} ($RES_SIM_273) (59) [FOR-] (2) ($RES_SIM_274) (59) [----] for $i1 in 1:2 loop (59) [----] [SCAL] (1) pipe1.flowModel.rhos_act[$i1] = noEvent(if $SEV_48[$i1] then pipe1.flowModel.rhos[$i1] else pipe1.flowModel.rhos[$i1 + 1]) ($RES_SIM_275) (59) [----] end for; (60) [FOR-] (2) ($RES_SIM_276) (60) [----] for $i1 in 1:2 loop (60) [----] [SCAL] (1) pipe1.flowModel.mus_act[$i1] = noEvent(if $SEV_48[$i1] then pipe1.flowModel.mus[$i1] else pipe1.flowModel.mus[$i1 + 1]) ($RES_SIM_277) (60) [----] end for; (61) [ARRY] (2) pipe1.flowModel.m_flows = {homotopy(({$FUN_1 for $i1 in 1:2} .* pipe1.flowModel.nParallel)[$i1], (pipe1.flowModel.m_flow_nominal / pipe1.flowModel.dp_nominal * (pipe1.flowModel.dps_fg - pipe1.flowModel.g * pipe1.flowModel.dheights .* pipe1.flowModel.rho_nominal))[$i1]) for $i1 in 1:2} ($RES_SIM_278) (62) [SCAL] (1) sink.ports[1].p = sink.p ($RES_SIM_191) (63) [SCAL] (1) sink.ports[1].h_outflow = sink.medium.h ($RES_SIM_192) (64) [ARRY] (1) pipe1.mediums.state.p = pipe1.mediums.p ($RES_SIM_284) (65) [ARRY] (1) pipe1.mediums.state.T = pipe1.mediums.T ($RES_SIM_285) (66) [SCAL] (1) pipe1.mediums[1].d = pipe1.mediums[1].p / (pipe1.mediums[1].T * pipe1.mediums[1].R) ($RES_SIM_286) (67) [SCAL] (1) pipe1.mediums[1].u = pipe1.mediums[1].h - pipe1.mediums[1].R * pipe1.mediums[1].T ($RES_SIM_287) (68) [SCAL] (1) pipe1.mediums[1].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), pipe1.mediums[1].T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_SIM_288) (69) [ARRY] (1) pipe1.mediums.R = {287.0512249529787} ($RES_SIM_289) (70) [SCAL] (1) pipe1.state_a.p = pipe1.port_a.p ($RES_SIM_466) (71) [SCAL] (1) pipe1.state_a.T = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe1.Medium.T_h.Internal.solve(source.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_SIM_467) (72) [SCAL] (1) source.ports[1].p = source.p ($RES_SIM_293) (73) [SCAL] (1) pipe1.state_b.p = 99999.99999999999 * junctionIdeal.medium.p_bar ($RES_SIM_468) (74) [SCAL] (1) source.ports[1].h_outflow = source.medium.h ($RES_SIM_294) (75) [SCAL] (1) pipe1.state_b.T = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe1.Medium.T_h.Internal.solve(junctionIdeal.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_SIM_469) (76) [SCAL] (1) valve1.state_a.p = pipe2.port_b.p ($RES_SIM_470) (77) [SCAL] (1) valve1.state_a.T = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.T_h.Internal.solve(valve1.port_b.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_SIM_471) (78) [SCAL] (1) valve1.state_b.p = 99999.99999999999 * junctionVolume.medium.p_bar ($RES_SIM_472) (79) [SCAL] (1) valve1.state_b.T = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.T_h.Internal.solve(junctionVolume.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_SIM_473) (80) [SCAL] (1) valve2.state_a.p = pipe3.port_b.p ($RES_SIM_474) (81) [SCAL] (1) valve2.state_a.T = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.T_h.Internal.solve(valve2.port_b.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_SIM_475) (82) [SCAL] (1) valve2.state_b.p = 99999.99999999999 * junctionVolume.medium.p_bar ($RES_SIM_476) (83) [SCAL] (1) valve2.state_b.T = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.T_h.Internal.solve(junctionVolume.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_SIM_477) (84) [SCAL] (1) pipe2.state_a.p = 99999.99999999999 * junctionIdeal.medium.p_bar ($RES_SIM_478) (85) [SCAL] (1) pipe2.state_a.T = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe2.Medium.T_h.Internal.solve(junctionIdeal.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_SIM_479) (86) [SCAL] (1) pipe2.state_b.p = pipe2.port_b.p ($RES_SIM_480) (87) [SCAL] (1) pipe2.state_b.T = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe2.Medium.T_h.Internal.solve(junctionVolume.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_SIM_481) (88) [SCAL] (1) pipe3.state_a.p = 99999.99999999999 * junctionIdeal.medium.p_bar ($RES_SIM_482) (89) [SCAL] (1) pipe3.state_a.T = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe3.Medium.T_h.Internal.solve(junctionIdeal.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_SIM_483) (90) [SCAL] (1) pipe3.state_b.p = pipe3.port_b.p ($RES_SIM_484) (91) [SCAL] (1) pipe3.state_b.T = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe3.Medium.T_h.Internal.solve(junctionVolume.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_SIM_485) (92) [ALGO] (5) ($RES_SIM_31) (92) [----] assert(not (valveOpening2.table[1, 1] > 0.0 or valveOpening2.table[1, 1] < 0.0), "The first point in time has to be set to 0, but is table[1,1] = " + String(valveOpening2.table[1, 1], 6, 0, true), AssertionLevel.error); (92) [----] when {time >= $PRE.valveOpening2.nextEvent, initial()} then (92) [----] (valveOpening2.a, valveOpening2.b, valveOpening2.nextEventScaled, valveOpening2.last) := ($FUN_19, $FUN_20, $FUN_21, $FUN_22); (92) [----] valveOpening2.nextEvent := valveOpening2.nextEventScaled; (92) [----] end when; (93) [ALGO] (5) ($RES_SIM_32) (93) [----] assert(not (valveOpening1.table[1, 1] > 0.0 or valveOpening1.table[1, 1] < 0.0), "The first point in time has to be set to 0, but is table[1,1] = " + String(valveOpening1.table[1, 1], 6, 0, true), AssertionLevel.error); (93) [----] when {time >= $PRE.valveOpening1.nextEvent, initial()} then (93) [----] (valveOpening1.a, valveOpening1.b, valveOpening1.nextEventScaled, valveOpening1.last) := ($FUN_15, $FUN_16, $FUN_17, $FUN_18); (93) [----] valveOpening1.nextEvent := valveOpening1.nextEventScaled; (93) [----] end when; (94) [SCAL] (1) $DER.junctionVolume.m = junctionVolume.mb_flow ($RES_SIM_33) (95) [SCAL] (1) $DER.junctionVolume.U = junctionVolume.Hb_flow ($RES_SIM_34) (96) [SCAL] (1) junctionVolume.U = junctionVolume.m * junctionVolume.medium.u ($RES_SIM_35) (97) [SCAL] (1) junctionVolume.m = junctionVolume.V * junctionVolume.medium.d ($RES_SIM_36) (98) [SCAL] (1) junctionVolume.Hb_flow = smooth(0, valve1.m_flow * (if $SEV_13 then valve1.port_b.h_outflow else junctionVolume.port_3.h_outflow)) + smooth(0, valve2.m_flow * (if $SEV_14 then valve2.port_b.h_outflow else junctionVolume.port_3.h_outflow)) + smooth(0, junctionVolume.port_3.m_flow * (if $SEV_15 then sink.ports[1].h_outflow else junctionVolume.port_3.h_outflow)) ($RES_SIM_39) (99) [SCAL] (1) junctionVolume.mb_flow = valve1.m_flow + valve2.m_flow + junctionVolume.port_3.m_flow ($RES_SIM_43) (100) [SCAL] (1) junctionVolume.medium.state.p = 99999.99999999999 * junctionVolume.medium.p_bar ($RES_SIM_51) (101) [SCAL] (1) junctionVolume.medium.state.T = -((-273.15) - junctionVolume.medium.T_degC) ($RES_SIM_52) (102) [SCAL] (1) junctionVolume.medium.d = -(0.0034836987724536205 * (99999.99999999999 * junctionVolume.medium.p_bar)) / ((-273.15) - junctionVolume.medium.T_degC) ($RES_SIM_53) (103) [SCAL] (1) junctionVolume.medium.u = 287.0512249529787 * ((-273.15) - junctionVolume.medium.T_degC) + junctionVolume.port_3.h_outflow ($RES_SIM_54) (104) [SCAL] (1) junctionVolume.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) - junctionVolume.medium.T_degC), true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_SIM_55) (105) [SCAL] (1) $DER.junctionIdeal.m = junctionIdeal.mb_flow ($RES_SIM_59) (106) [ARRY] (1) pipe3.fluidVolumes = {10.0 * pipe3.crossAreas[1]} .* pipe3.nParallel ($RES_BND_401) (107) [SCAL] (1) valve2.port_b.h_outflow = pipe3.mediums[1].h ($RES_SIM_101) (108) [ARRY] (1) pipe3.mediums.p_bar = {1e-5 * pipe3.mediums[1].p} ($RES_BND_402) (109) [SCAL] (1) pipe3.port_a.h_outflow = pipe3.mediums[1].h ($RES_SIM_102) (110) [ARRY] (1) pipe3.mediums.T_degC = {(-273.15) + pipe3.mediums[1].T} ($RES_BND_403) (111) [SCAL] (1) -valve2.m_flow = -pipe3.m_flows[2] ($RES_SIM_103) (112) [ARRY] (2) pipe3.flowModel.vs = pipe3.vsFM ($RES_BND_404) (113) [SCAL] (1) pipe3.port_a.m_flow = pipe3.m_flows[1] ($RES_SIM_104) (114) [ARRY] (2) pipe3.flowModel.crossAreas = pipe3.crossAreasFM ($RES_BND_405) (115) [SCAL] (1) pipe3.H_flows[2] = -$FUN_14 ($RES_SIM_105) (116) [ARRY] (2) pipe3.flowModel.dimensions = pipe3.dimensionsFM ($RES_BND_406) (117) [SCAL] (1) pipe3.H_flows[1] = $FUN_13 ($RES_SIM_106) (118) [ARRY] (2) pipe3.flowModel.roughnesses = pipe3.roughnessesFM ($RES_BND_407) (119) [SCAL] (1) pipe3.mb_flows[1] = pipe3.m_flows[1] - pipe3.m_flows[2] ($RES_SIM_107) (120) [ARRY] (1) pipe3.flowModel.dheights = pipe3.dheightsFM ($RES_BND_408) (121) [SCAL] (1) pipe3.Hb_flows[1] = pipe3.H_flows[1] - pipe3.H_flows[2] ($RES_SIM_108) (122) [ARRY] (1) pipe3.flowModel.pathLengths = pipe3.pathLengths ($RES_BND_409) (123) [ARRY] (2) pipe3.roughnessesFM[:] = {pipe3.roughnesses[1], pipe3.roughnesses[1]} ($RES_SIM_109) (124) [SCAL] (1) $DER.junctionIdeal.U = junctionIdeal.Hb_flow ($RES_SIM_60) (125) [SCAL] (1) junctionIdeal.U = junctionIdeal.m * junctionIdeal.medium.u ($RES_SIM_61) (126) [SCAL] (1) junctionIdeal.m = junctionIdeal.V * junctionIdeal.medium.d ($RES_SIM_62) (127) [SCAL] (1) junctionIdeal.Hb_flow = smooth(0, -pipe2.port_a.m_flow * (if $SEV_19 then pipe2.port_a.h_outflow else junctionIdeal.port_3.h_outflow)) + smooth(0, -pipe3.port_a.m_flow * (if $SEV_20 then pipe3.port_a.h_outflow else junctionIdeal.port_3.h_outflow)) + smooth(0, -pipe1.port_b.m_flow * (if $SEV_21 then pipe1.port_b.h_outflow else junctionIdeal.port_3.h_outflow)) ($RES_SIM_65) (128) [SCAL] (1) junctionIdeal.mb_flow = -(pipe2.port_a.m_flow + pipe3.port_a.m_flow + pipe1.port_b.m_flow) ($RES_SIM_69) (129) [FOR-] (2) ($RES_BND_410) (129) [----] for $i1 in 1:2 loop (129) [----] [SCAL] (1) pipe3.flowModel.rhos[$i1] = (0.0034836987724536205 * pipe3.flowModel.states.T) / pipe3.flowModel.states.p ($RES_BND_411) (129) [----] end for; (130) [ARRY] (2) pipe3.dimensionsFM[:] = {pipe3.dimensions[1], pipe3.dimensions[1]} ($RES_SIM_110) (131) [ARRY] (2) pipe3.crossAreasFM[:] = {pipe3.crossAreas[1], pipe3.crossAreas[1]} ($RES_SIM_111) (132) [FOR-] (2) ($RES_BND_412) (132) [----] for $i1 in 1:2 loop (132) [----] [SCAL] (1) pipe3.flowModel.mus[$i1] = pipe3.flowModel.mu_nominal ($RES_BND_413) (132) [----] end for; (133) [ARRY] (1) pipe3.dheightsFM[:] = {0.0} ($RES_SIM_112) (134) [ARRY] (1) pipe3.pathLengths[:] = {10.0} ($RES_SIM_113) (135) [ARRY] (1) pipe3.flowModel.pathLengths_internal = pipe3.flowModel.pathLengths ($RES_BND_414) (136) [ARRY] (1) pipe3.Wb_flows = (pipe3.crossAreas * pipe3.vs * (($FUN_12 + pipe3.port_b.p) - ((system.g * {0.0}) / pipe3.mediums.d + 99999.99999999999 * junctionIdeal.medium.p_bar))) / ({1.0} * {1.0}) .* {1.0} .* pipe3.nParallel ($RES_SIM_114) (137) [SCAL] (1) pipe3.flowModel.Res_turbulent_internal[1] = pipe3.flowModel.Re_turbulent ($RES_BND_415) (138) [ARRY] (1) pipe3.Qb_flows = pipe3.heatTransfer.Q_flows ($RES_SIM_115) (139) [ARRY] (1) pipe3.flowModel.diameters = 0.5 * (pipe3.flowModel.dimensions[2:2] + pipe3.flowModel.dimensions[1:1]) ($RES_BND_416) (140) [ARRY] (1) pipe3.heatTransfer.Q_flows = pipe3.heatTransfer.heatPorts.Q_flow ($RES_SIM_116) (141) [ARRY] (1) pipe3.heatTransfer.Ts = pipe3.heatTransfer.heatPorts.T ($RES_SIM_117) (142) [ARRY] (1) pipe3.vs = {(0.5 * (pipe3.m_flows[2] + pipe3.m_flows[1])) / (pipe3.crossAreas[1] * pipe3.mediums[1].d)} / pipe3.nParallel ($RES_BND_418) (143) [ARRY] (1) {0.0} = pipe3.flowModel.Ib_flows - (pipe3.flowModel.Fs_fg + pipe3.flowModel.Fs_p) ($RES_SIM_118) (144) [ARRY] (1) pipe3.flowModel.Is = {pipe3.flowModel.m_flows[1] * pipe3.flowModel.pathLengths[1]} ($RES_SIM_119) (145) [SCAL] (1) junctionIdeal.medium.state.p = 99999.99999999999 * junctionIdeal.medium.p_bar ($RES_SIM_77) (146) [SCAL] (1) $TEV_0 = $PRE.valveOpening2.nextEvent ($RES_EVT_501) (147) [SCAL] (1) junctionIdeal.medium.state.T = -((-273.15) - junctionIdeal.medium.T_degC) ($RES_SIM_78) (148) [SCAL] (1) sink.medium.u = sink.medium.h - 287.0512249529787 * sink.T ($RES_SIM_206) (149) [SCAL] (1) $TEV_1 = $PRE.valveOpening1.nextEvent ($RES_EVT_502) (150) [SCAL] (1) junctionIdeal.medium.d = -(0.0034836987724536205 * (99999.99999999999 * junctionIdeal.medium.p_bar)) / ((-273.15) - junctionIdeal.medium.T_degC) ($RES_SIM_79) (151) [SCAL] (1) sink.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), sink.T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_SIM_207) (152) [FOR-] (2) ($RES_EVT_503) (152) [----] for $i1 in 1:2 loop (152) [----] [SCAL] (1) $SEV_0[$i1] = abs(pipe3.flowModel.crossAreas[$i1] - 0.7853981633974483 * pipe3.flowModel.dimensions[$i1] ^ 2.0) < 1e-10 * pipe3.flowModel.crossAreas[$i1] ($RES_EVT_504) (152) [----] end for; (153) [FOR-] (2) ($RES_EVT_505) (153) [----] for $i1 in 1:2 loop (153) [----] [SCAL] (1) $SEV_1[$i1] = abs(pipe2.flowModel.crossAreas[$i1] - 0.7853981633974483 * pipe2.flowModel.dimensions[$i1] ^ 2.0) < 1e-10 * pipe2.flowModel.crossAreas[$i1] ($RES_EVT_506) (153) [----] end for; (154) [FOR-] (3) ($RES_EVT_509) (154) [----] for $i1 in 1:3 loop (154) [----] [SCAL] (1) $SEV_4[$i1] = abs(pipe1.flowModel.crossAreas[$i1] - 0.7853981633974483 * pipe1.flowModel.dimensions[$i1] ^ 2.0) < 1e-10 * pipe1.flowModel.crossAreas[$i1] ($RES_EVT_510) (154) [----] end for; (155) [ARRY] (1) pipe3.heatTransfer.Ts = {pipe3.heatTransfer.states.p} ($RES_BND_420) (156) [ARRY] (1) pipe3.flowModel.dps_fg = {(2.0 * (pipe3.flowModel.Fs_fg[1] / pipe3.flowModel.nParallel)) / (pipe3.flowModel.crossAreas[1] + pipe3.flowModel.crossAreas[2])} ($RES_SIM_120) (157) [ARRY] (1) pipe3.heatTransfer.vs = pipe3.vs ($RES_BND_421) (158) [ARRY] (1) pipe3.flowModel.Fs_p = pipe3.flowModel.nParallel * {0.5 * (pipe3.flowModel.crossAreas[1] + pipe3.flowModel.crossAreas[2]) * (pipe3.flowModel.states.T - pipe3.flowModel.states.T)} ($RES_SIM_121) (159) [ARRY] (1) pipe3.flowModel.Ib_flows = {0.0} ($RES_SIM_122) (160) [SCAL] (1) pipe3.flowModel.rhos_act[1] = noEvent(if $SEV_25 then pipe3.flowModel.rhos[1] else pipe3.flowModel.rhos[2]) ($RES_SIM_123) (161) [SCAL] (1) pipe3.flowModel.mus_act[1] = noEvent(if $SEV_25 then pipe3.flowModel.mus[1] else pipe3.flowModel.mus[2]) ($RES_SIM_124) (162) [ARRY] (1) pipe3.flowModel.m_flows = {homotopy(({$FUN_11} .* pipe3.flowModel.nParallel)[1], (pipe3.flowModel.m_flow_nominal / pipe3.flowModel.dp_nominal * (pipe3.flowModel.dps_fg - (pipe3.flowModel.g * pipe3.flowModel.dheights) .* pipe3.flowModel.rho_nominal))[1])} ($RES_SIM_125) (163) [SCAL] (1) junctionIdeal.medium.u = 287.0512249529787 * ((-273.15) - junctionIdeal.medium.T_degC) + junctionIdeal.port_3.h_outflow ($RES_SIM_80) (164) [SCAL] (1) junctionIdeal.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) - junctionIdeal.medium.T_degC), true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_SIM_81) (165) [SCAL] (1) valve2.dp = pipe3.port_b.p - 99999.99999999999 * junctionVolume.medium.p_bar ($RES_SIM_213) (166) [SCAL] (1) valveOpening2.y = valveOpening2.a * time + valveOpening2.b ($RES_SIM_85) (167) [SCAL] (1) valveOpening1.y = valveOpening1.a * time + valveOpening1.b ($RES_SIM_87) (168) [SCAL] (1) $SEV_13 = valve1.m_flow > 0.0 ($RES_EVT_511) (169) [SCAL] (1) $SEV_14 = valve2.m_flow > 0.0 ($RES_EVT_512) (170) [ARRY] (1) pipe1.fluidVolumes = {10.0 * pipe1.crossAreas[1]} .* pipe1.nParallel ($RES_BND_342) (171) [SCAL] (1) $DER.pipe3.ms[1] = pipe3.mb_flows[1] ($RES_SIM_89) (172) [SCAL] (1) $SEV_15 = junctionVolume.port_3.m_flow > 0.0 ($RES_EVT_513) (173) [SCAL] (1) valve2.m_flow = homotopy(valve2.Y * valve2.Av * valveOpening2.y * smooth(2, if $SEV_36 then (if $SEV_37 then sqrt((0.0034836987724536205 * valve2.state_a.p) / valve2.state_a.T) else 0.0) * sqrt(valve2.xs * valve2.p) else if $SEV_38 then -(if $SEV_39 then sqrt((0.0034836987724536205 * valve2.state_b.p) / valve2.state_b.T) else 0.0) * sqrt(abs(valve2.xs * valve2.p)) else if $SEV_40 then Modelica.Fluid.Utilities.regRoot2.regRoot2_utility(valve2.xs * valve2.p, valve2.dp_turbulent, (0.0034836987724536205 * valve2.state_a.p) / valve2.state_a.T, (0.0034836987724536205 * valve2.state_b.p) / valve2.state_b.T, false, 1.0) else -Modelica.Fluid.Utilities.regRoot2.regRoot2_utility(-valve2.xs * valve2.p, valve2.dp_turbulent, (0.0034836987724536205 * valve2.state_b.p) / valve2.state_b.T, (0.0034836987724536205 * valve2.state_a.p) / valve2.state_a.T, false, 1.0)), (valve2.dp * valve2.m_flow_nominal * valveOpening2.y) / valve2.dp_nominal) ($RES_SIM_218) (174) [ARRY] (1) pipe1.mediums.p_bar = {1e-5 * pipe1.mediums[1].p} ($RES_BND_343) (175) [SCAL] (1) valve2.Y = 1.0 - (0.3333333333333333 * $FUN_6) / valve2.Fxt_full ($RES_SIM_219) (176) [ARRY] (1) pipe1.mediums.T_degC = {(-273.15) + pipe1.mediums[1].T} ($RES_BND_344) (177) [ARRY] (3) pipe1.flowModel.vs = pipe1.vsFM ($RES_BND_345) (178) [ARRY] (3) pipe1.flowModel.crossAreas = pipe1.crossAreasFM ($RES_BND_346) (179) [SCAL] (1) $SEV_19 = (-pipe2.port_a.m_flow) > 0.0 ($RES_EVT_517) (180) [ARRY] (3) pipe1.flowModel.dimensions = pipe1.dimensionsFM ($RES_BND_347) (181) [SCAL] (1) $SEV_20 = (-pipe3.port_a.m_flow) > 0.0 ($RES_EVT_518) (182) [ARRY] (3) pipe1.flowModel.roughnesses = pipe1.roughnessesFM ($RES_BND_348) (183) [SCAL] (1) $SEV_21 = (-pipe1.port_b.m_flow) > 0.0 ($RES_EVT_519) (184) [ARRY] (2) pipe1.flowModel.dheights = pipe1.dheightsFM ($RES_BND_349) (185) [ARRY] (6) pipe1.flowModel.states = pipe1.statesFM ($RES_BND_431) (186) [ARRY] (1) pipe3.mediums.state.p = pipe3.mediums.p ($RES_SIM_131) (187) [ARRY] (2) pipe1.heatTransfer.states = pipe1.mediums.state ($RES_BND_432) (188) [ARRY] (1) pipe3.mediums.state.T = pipe3.mediums.T ($RES_SIM_132) (189) [SCAL] (1) source.medium.u = source.medium.h - 287.0512249529787 * source.T ($RES_SIM_308) (190) [ARRY] (4) pipe2.flowModel.states = pipe2.statesFM ($RES_BND_433) (191) [SCAL] (1) pipe3.mediums[1].d = pipe3.mediums[1].p / (pipe3.mediums[1].T * pipe3.mediums[1].R) ($RES_SIM_133) (192) [SCAL] (1) source.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), source.T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_SIM_309) (193) [ARRY] (2) pipe2.heatTransfer.states = pipe2.mediums.state ($RES_BND_434) (194) [SCAL] (1) pipe3.mediums[1].u = pipe3.mediums[1].h - pipe3.mediums[1].R * pipe3.mediums[1].T ($RES_SIM_134) (195) [ARRY] (4) pipe3.flowModel.states = pipe3.statesFM ($RES_BND_435) (196) [SCAL] (1) pipe3.mediums[1].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), pipe3.mediums[1].T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_SIM_135) (197) [ARRY] (2) pipe3.heatTransfer.states = pipe3.mediums.state ($RES_BND_436) (198) [ARRY] (1) pipe3.mediums.R = {287.0512249529787} ($RES_SIM_136) (199) [SCAL] (1) $DER.pipe3.Us[1] = pipe3.Wb_flows[1] + pipe3.Hb_flows[1] + pipe3.Qb_flows[1] ($RES_SIM_90) (200) [SCAL] (1) pipe3.ms[1] = pipe3.fluidVolumes[1] * pipe3.mediums[1].d ($RES_SIM_91) (201) [SCAL] (1) valve2.xs = max(-valve2.Fxt_full, min(valve2.x, valve2.Fxt_full)) ($RES_SIM_220) (202) [SCAL] (1) pipe3.Us[1] = pipe3.ms[1] * pipe3.mediums[1].u ($RES_SIM_92) (203) [SCAL] (1) valve2.x = valve2.dp / valve2.p ($RES_SIM_221) (204) [SCAL] (1) pipe3.port_b.p = pipe3.mediums[1].p ($RES_SIM_93) (205) [ARRY] (1) pipe3.vsFM[2:2] = pipe3.vs ($RES_SIM_94) (206) [SCAL] (1) valve2.p = max(pipe3.port_b.p, 99999.99999999999 * junctionVolume.medium.p_bar) ($RES_SIM_223) (207) [SCAL] (1) pipe3.vsFM[1] = ((pipe3.m_flows[1] / ((0.0034836987724536205 * pipe3.state_a.p) / pipe3.state_a.T)) / pipe3.crossAreas[1]) / pipe3.nParallel ($RES_SIM_95) (208) [SCAL] (1) valve2.minLimiter.y = smooth(0, noEvent(if $SEV_41 then valve2.minLimiter.uMin else valveOpening2.y)) ($RES_SIM_224) (209) [ARRY] (1) pipe3.m_flows[1:1] = pipe3.flowModel.m_flows[:] ($RES_SIM_96) (210) [ARRY] (2) pipe1.flowModel.pathLengths = pipe1.pathLengths ($RES_BND_350) (211) [ARRY] (2) pipe3.statesFM[2:2] = pipe3.mediums[:].state ($RES_SIM_97) (212) [FOR-] (3) ($RES_BND_351) (212) [----] for $i1 in 1:3 loop (212) [----] [SCAL] (1) pipe1.flowModel.rhos[$i1] = (0.0034836987724536205 * pipe1.flowModel.states.T) / pipe1.flowModel.states.p ($RES_BND_352) (212) [----] end for; (213) [RECD] (2) pipe3.statesFM[1] = pipe3.state_a ($RES_SIM_98) (214) [SCAL] (1) valve1.dp = pipe2.port_b.p - 99999.99999999999 * junctionVolume.medium.p_bar ($RES_SIM_227) (215) [SCAL] (1) $SEV_25 = pipe3.flowModel.m_flows[1] > 0.0 ($RES_EVT_523) (216) [FOR-] (3) ($RES_BND_353) (216) [----] for $i1 in 1:3 loop (216) [----] [SCAL] (1) pipe1.flowModel.mus[$i1] = pipe1.flowModel.mu_nominal ($RES_BND_354) (216) [----] end for; (217) [SCAL] (1) $SEV_26[1] = pipe3.mediums[1].p >= 0.0 ($RES_EVT_524) (218) [ARRY] (2) pipe1.flowModel.pathLengths_internal = pipe1.flowModel.pathLengths ($RES_BND_355) (219) [SCAL] (1) $SEV_28[1] = pipe3.mediums[1].T >= 200.0 and pipe3.mediums[1].T <= 6000.0 ($RES_EVT_526) (220) [FOR-] (2) ($RES_BND_356) (220) [----] for $i1 in 1:2 loop (220) [----] [SCAL] (1) pipe1.flowModel.Res_turbulent_internal[$i1] = pipe1.flowModel.Re_turbulent ($RES_BND_357) (220) [----] end for; (221) [SCAL] (1) $SEV_29 = pipe2.flowModel.m_flows[1] > 0.0 ($RES_EVT_527) (222) [SCAL] (1) $SEV_30[1] = pipe2.mediums[1].p >= 0.0 ($RES_EVT_528) (223) [ARRY] (2) pipe1.flowModel.diameters = 0.5 * (pipe1.flowModel.dimensions[2:3] + pipe1.flowModel.dimensions[1:2]) ($RES_BND_358) (224) [SCAL] (1) junctionVolume.port_3.m_flow + sink.ports[1].m_flow = 0.0 ($RES_SIM_313) (225) [SCAL] (1) pipe3.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_315) (226) [SCAL] (1) $DER.pipe2.ms[1] = pipe2.mb_flows[1] ($RES_SIM_140) (227) [SCAL] (1) $DER.pipe2.Us[1] = pipe2.Wb_flows[1] + pipe2.Hb_flows[1] + pipe2.Qb_flows[1] ($RES_SIM_141) (228) [SCAL] (1) pipe2.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_317) (229) [SCAL] (1) pipe2.ms[1] = pipe2.fluidVolumes[1] * pipe2.mediums[1].d ($RES_SIM_142) (230) [SCAL] (1) pipe2.Us[1] = pipe2.ms[1] * pipe2.mediums[1].u ($RES_SIM_143) (231) [SCAL] (1) pipe2.port_b.p = pipe2.mediums[1].p ($RES_SIM_144) (232) [ARRY] (1) pipe2.vsFM[2:2] = pipe2.vs ($RES_SIM_145) (233) [SCAL] (1) pipe2.vsFM[1] = ((pipe2.m_flows[1] / ((0.0034836987724536205 * pipe2.state_a.p) / pipe2.state_a.T)) / pipe2.crossAreas[1]) / pipe2.nParallel ($RES_SIM_146) (234) [ARRY] (1) pipe2.m_flows[1:1] = pipe2.flowModel.m_flows[:] ($RES_SIM_147) (235) [ARRY] (2) pipe2.statesFM[2:2] = pipe2.mediums[:].state ($RES_SIM_148) (236) [RECD] (2) pipe2.statesFM[1] = pipe2.state_a ($RES_SIM_149) (237) [SCAL] (1) $FUN_1 = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe1.flowModel.WallFriction.massFlowRate_dp_staticHead(pipe1.flowModel.dps_fg[$i1], pipe1.flowModel.rhos[(1:2)[$i1]], pipe1.flowModel.rhos[(2:3)[$i1]], pipe1.flowModel.mus[(1:2)[$i1]], pipe1.flowModel.mus[(2:3)[$i1]], pipe1.flowModel.pathLengths_internal[$i1], pipe1.flowModel.diameters[$i1], (pipe1.flowModel.g * pipe1.flowModel.dheights)[$i1], ((pipe1.flowModel.crossAreas[1:2] + pipe1.flowModel.crossAreas[2:3]) / 2.0)[$i1], ((pipe1.flowModel.roughnesses[1:2] + pipe1.flowModel.roughnesses[2:3]) / 2.0)[$i1], pipe1.flowModel.dp_small / 2.0, pipe1.flowModel.Res_turbulent_internal[$i1]) ($RES_$AUX_458) (238) [SCAL] (1) $FUN_2 = sum(pipe1.flowModel.dps_fg) ($RES_$AUX_457) (239) [SCAL] (1) $FUN_3 = semiLinear(pipe1.port_a.m_flow, source.ports[1].h_outflow, pipe1.mediums[1].h) ($RES_$AUX_456) (240) [SCAL] (1) $FUN_4 = semiLinear(pipe1.port_b.m_flow, junctionIdeal.port_3.h_outflow, pipe1.mediums[1].h) ($RES_$AUX_455) (241) [SCAL] (1) $FUN_5 = abs(valve1.xs) ($RES_$AUX_454) (242) [SCAL] (1) $FUN_6 = abs(valve2.xs) ($RES_$AUX_453) (243) [SCAL] (1) valve1.m_flow = homotopy(valve1.Y * valve1.Av * valveOpening1.y * smooth(2, if $SEV_42 then (if $SEV_43 then sqrt((0.0034836987724536205 * valve1.state_a.p) / valve1.state_a.T) else 0.0) * sqrt(valve1.xs * valve1.p) else if $SEV_44 then -(if $SEV_45 then sqrt((0.0034836987724536205 * valve1.state_b.p) / valve1.state_b.T) else 0.0) * sqrt(abs(valve1.xs * valve1.p)) else if $SEV_46 then Modelica.Fluid.Utilities.regRoot2.regRoot2_utility(valve1.xs * valve1.p, valve1.dp_turbulent, (0.0034836987724536205 * valve1.state_a.p) / valve1.state_a.T, (0.0034836987724536205 * valve1.state_b.p) / valve1.state_b.T, false, 1.0) else -Modelica.Fluid.Utilities.regRoot2.regRoot2_utility(-valve1.xs * valve1.p, valve1.dp_turbulent, (0.0034836987724536205 * valve1.state_b.p) / valve1.state_b.T, (0.0034836987724536205 * valve1.state_a.p) / valve1.state_a.T, false, 1.0)), (valve1.dp * valve1.m_flow_nominal * valveOpening1.y) / valve1.dp_nominal) ($RES_SIM_232) (244) [SCAL] (1) $FUN_7 = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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_452) (245) [SCAL] (1) valve1.Y = 1.0 - (0.3333333333333333 * $FUN_5) / valve1.Fxt_full ($RES_SIM_233) (246) [SCAL] (1) $FUN_8 = sum(pipe2.flowModel.dps_fg) ($RES_$AUX_451) (247) [SCAL] (1) valve1.xs = max(-valve1.Fxt_full, min(valve1.x, valve1.Fxt_full)) ($RES_SIM_234) (248) [SCAL] (1) $SEV_32[1] = pipe2.mediums[1].T >= 200.0 and pipe2.mediums[1].T <= 6000.0 ($RES_EVT_530) (249) [SCAL] (1) $FUN_9 = semiLinear(pipe2.port_a.m_flow, junctionIdeal.port_3.h_outflow, pipe2.mediums[1].h) ($RES_$AUX_450) (250) [SCAL] (1) valve1.x = valve1.dp / valve1.p ($RES_SIM_235) (251) [ARRY] (1) pipe1.vs = {(0.5 * (pipe1.m_flows[2] + pipe1.m_flows[1])) / (pipe1.crossAreas[1] * pipe1.mediums[1].d)} / pipe1.nParallel ($RES_BND_360) (252) [SCAL] (1) valve1.p = max(pipe2.port_b.p, 99999.99999999999 * junctionVolume.medium.p_bar) ($RES_SIM_237) (253) [ARRY] (1) pipe1.heatTransfer.Ts = {pipe1.heatTransfer.states.p} ($RES_BND_362) (254) [SCAL] (1) valve1.minLimiter.y = smooth(0, noEvent(if $SEV_47 then valve1.minLimiter.uMin else valveOpening1.y)) ($RES_SIM_238) (255) [ARRY] (1) pipe1.heatTransfer.vs = pipe1.vs ($RES_BND_363) (256) [SCAL] (1) $SEV_36 = valve2.xs * valve2.p >= valve2.dp_turbulent ($RES_EVT_534) (257) [SCAL] (1) $DER.pipe1.ms[1] = pipe1.mb_flows[1] ($RES_SIM_239) (258) [SCAL] (1) $SEV_37 = (0.0034836987724536205 * valve2.state_a.p) / valve2.state_a.T > 0.0 ($RES_EVT_535) (259) [SCAL] (1) $SEV_38 = valve2.xs * valve2.p <= (-valve2.dp_turbulent) ($RES_EVT_536) (260) [SCAL] (1) $SEV_39 = (0.0034836987724536205 * valve2.state_b.p) / valve2.state_b.T > 0.0 ($RES_EVT_537) (261) [SCAL] (1) valve1.V_flow = valve1.m_flow / smooth(1, if $SEV_63 then (0.0034836987724536205 * valve1.state_a.p) / valve1.state_a.T else if $SEV_64 then (0.0034836987724536205 * valve1.state_b.p) / valve1.state_b.T else if $SEV_62 then 0.25 * ((0.0034836987724536205 * valve1.state_b.p) / valve1.state_b.T - (0.0034836987724536205 * valve1.state_a.p) / valve1.state_a.T) * ((-3.0) + (valve1.m_flow / valve1.m_flow_small) ^ 2.0) * (valve1.m_flow / valve1.m_flow_small) + 0.5 * ((0.0034836987724536205 * valve1.state_a.p) / valve1.state_a.T + (0.0034836987724536205 * valve1.state_b.p) / valve1.state_b.T) else 0.5 * ((0.0034836987724536205 * valve1.state_a.p) / valve1.state_a.T + (0.0034836987724536205 * valve1.state_b.p) / valve1.state_b.T)) ($RES_BND_367) (262) [SCAL] (1) $SEV_40 = (0.0034836987724536205 * valve2.state_a.p) / valve2.state_a.T >= (0.0034836987724536205 * valve2.state_b.p) / valve2.state_b.T ($RES_EVT_538) (263) [SCAL] (1) valve1.port_a_T = smooth(1, if $SEV_63 then valve1.state_a.T else if $SEV_64 then ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.T_h.Internal.solve(junctionVolume.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) else if $SEV_62 then 0.25 * (ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.T_h.Internal.solve(junctionVolume.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) - valve1.state_a.T) * ((-3.0) + (valve1.m_flow / valve1.m_flow_small) ^ 2.0) * (valve1.m_flow / valve1.m_flow_small) + 0.5 * (valve1.state_a.T + ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.T_h.Internal.solve(junctionVolume.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)) else 0.5 * (valve1.state_a.T + ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.T_h.Internal.solve(junctionVolume.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_368) (264) [SCAL] (1) $SEV_41 = valveOpening2.y < valve2.minLimiter.uMin ($RES_EVT_539) (265) [SCAL] (1) valve1.port_b_T = smooth(1, if $SEV_60 then valve1.state_b.T else if $SEV_61 then ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.T_h.Internal.solve(valve1.port_b.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) else if $SEV_62 then 0.5 * (valve1.state_b.T + ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.T_h.Internal.solve(valve1.port_b.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)) - 0.25 * (ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.T_h.Internal.solve(valve1.port_b.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) - valve1.state_b.T) * ((-3.0) + (valve1.m_flow / (-valve1.m_flow_small)) ^ 2.0) * (valve1.m_flow / valve1.m_flow_small) else 0.5 * (valve1.state_b.T + ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve1.Medium.T_h.Internal.solve(valve1.port_b.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_369) (266) [SCAL] (1) pipe1.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_322) (267) [SCAL] (1) 99999.99999999999 * junctionVolume.medium.p_bar = sink.ports[1].p ($RES_SIM_326) (268) [SCAL] (1) valve1.port_b.h_outflow = pipe2.mediums[1].h ($RES_SIM_152) (269) [SCAL] (1) pipe2.port_a.h_outflow = pipe2.mediums[1].h ($RES_SIM_153) (270) [SCAL] (1) -valve1.m_flow = -pipe2.m_flows[2] ($RES_SIM_154) (271) [SCAL] (1) pipe2.port_a.m_flow = pipe2.m_flows[1] ($RES_SIM_155) (272) [SCAL] (1) pipe2.H_flows[2] = -$FUN_10 ($RES_SIM_156) (273) [SCAL] (1) pipe2.H_flows[1] = $FUN_9 ($RES_SIM_157) (274) [SCAL] (1) pipe2.mb_flows[1] = pipe2.m_flows[1] - pipe2.m_flows[2] ($RES_SIM_158) (275) [SCAL] (1) pipe2.Hb_flows[1] = pipe2.H_flows[1] - pipe2.H_flows[2] ($RES_SIM_159) (276) [SCAL] (1) $FUN_10 = semiLinear(-valve1.m_flow, junctionVolume.port_3.h_outflow, pipe2.mediums[1].h) ($RES_$AUX_449) (277) [SCAL] (1) $FUN_11 = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe3.flowModel.WallFriction.massFlowRate_dp_staticHead(pipe3.flowModel.dps_fg[1], pipe3.flowModel.rhos[1], pipe3.flowModel.rhos[2], pipe3.flowModel.mus[1], pipe3.flowModel.mus[2], pipe3.flowModel.pathLengths_internal[1], pipe3.flowModel.diameters[1], (pipe3.flowModel.g * pipe3.flowModel.dheights)[1], (0.5 .* (pipe3.flowModel.crossAreas[1:1] + pipe3.flowModel.crossAreas[2:2]))[1], (0.5 .* (pipe3.flowModel.roughnesses[1:1] + pipe3.flowModel.roughnesses[2:2]))[1], pipe3.flowModel.dp_small, pipe3.flowModel.Res_turbulent_internal[1]) ($RES_$AUX_448) (278) [SCAL] (1) $FUN_12 = sum(pipe3.flowModel.dps_fg) ($RES_$AUX_447) (279) [SCAL] (1) $FUN_13 = semiLinear(pipe3.port_a.m_flow, junctionIdeal.port_3.h_outflow, pipe3.mediums[1].h) ($RES_$AUX_446) (280) [SCAL] (1) $DER.pipe1.Us[1] = pipe1.Wb_flows[1] + pipe1.Hb_flows[1] + pipe1.Qb_flows[1] ($RES_SIM_240) (281) [SCAL] (1) $FUN_14 = semiLinear(-valve2.m_flow, junctionVolume.port_3.h_outflow, pipe3.mediums[1].h) ($RES_$AUX_445) (282) [SCAL] (1) pipe1.ms[1] = pipe1.fluidVolumes[1] * pipe1.mediums[1].d ($RES_SIM_241) (283) [TUPL] (4) ($FUN_15, $FUN_16, $FUN_17, $FUN_18) = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valveOpening1.getInterpolationCoefficients(valveOpening1.table, valveOpening1.offset, valveOpening1.startTime, time, valveOpening1.last, 1e-13, valveOpening1.shiftTime) ($RES_$AUX_444) (284) [SCAL] (1) pipe1.Us[1] = pipe1.ms[1] * pipe1.mediums[1].u ($RES_SIM_242) (285) [TUPL] (4) ($FUN_19, $FUN_20, $FUN_21, $FUN_22) = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valveOpening2.getInterpolationCoefficients(valveOpening2.table, valveOpening2.offset, valveOpening2.startTime, time, valveOpening2.last, 1e-13, valveOpening2.shiftTime) ($RES_$AUX_443) (286) [SCAL] (1) pipe1.vsFM[3] = ((pipe1.m_flows[2] / ((0.0034836987724536205 * pipe1.state_b.p) / pipe1.state_b.T)) / pipe1.crossAreas[1]) / pipe1.nParallel ($RES_SIM_243) (287) [SCAL] (1) $FUN_23 = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe3.flowModel.WallFriction.pressureLoss_m_flow(pipe3.flowModel.m_flow_nominal / pipe3.flowModel.nParallel, pipe3.flowModel.rho_nominal, pipe3.flowModel.rho_nominal, pipe3.flowModel.mu_nominal, pipe3.flowModel.mu_nominal, pipe3.flowModel.pathLengths_internal[1], pipe3.flowModel.diameters[1], (0.5 .* (pipe3.flowModel.crossAreas[2:2] + pipe3.flowModel.crossAreas[1:1]))[1], (0.5 .* (pipe3.flowModel.roughnesses[2:2] + pipe3.flowModel.roughnesses[1:1]))[1], pipe3.flowModel.m_flow_small / pipe3.flowModel.nParallel, pipe3.flowModel.Res_turbulent_internal[1]) ($RES_$AUX_442) (288) [ARRY] (1) pipe1.vsFM[2:2] = pipe1.vs ($RES_SIM_244) (289) [SCAL] (1) pipe3.flowModel.dp_fric_nominal = sum({$FUN_23}) ($RES_$AUX_441) (290) [SCAL] (1) $SEV_42 = valve1.xs * valve1.p >= valve1.dp_turbulent ($RES_EVT_540) (291) [SCAL] (1) pipe1.vsFM[1] = ((pipe1.m_flows[1] / ((0.0034836987724536205 * pipe1.state_a.p) / pipe1.state_a.T)) / pipe1.crossAreas[1]) / pipe1.nParallel ($RES_SIM_245) (292) [SCAL] (1) valve1.dp_turbulent = max(valve1.dp_small, (6.283185307179586e6 * (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) + valve1.state_a.T) + 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) + valve1.state_b.T)) ^ 2.0) / (valve1.Y * max(valveOpening1.y, 0.001) * valve1.Av * ((0.0034836987724536205 * valve1.state_b.p) / valve1.state_b.T + (0.0034836987724536205 * valve1.state_a.p) / valve1.state_a.T))) ($RES_BND_370) (293) [SCAL] (1) $FUN_25 = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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_440) (294) [SCAL] (1) $SEV_43 = (0.0034836987724536205 * valve1.state_a.p) / valve1.state_a.T > 0.0 ($RES_EVT_541) (295) [ARRY] (2) pipe1.m_flows[:] = pipe1.flowModel.m_flows[:] ($RES_SIM_246) (296) [SCAL] (1) valve2.V_flow = valve2.m_flow / smooth(1, if $SEV_58 then (0.0034836987724536205 * valve2.state_a.p) / valve2.state_a.T else if $SEV_59 then (0.0034836987724536205 * valve2.state_b.p) / valve2.state_b.T else if $SEV_57 then 0.25 * ((0.0034836987724536205 * valve2.state_b.p) / valve2.state_b.T - (0.0034836987724536205 * valve2.state_a.p) / valve2.state_a.T) * ((-3.0) + (valve2.m_flow / valve2.m_flow_small) ^ 2.0) * (valve2.m_flow / valve2.m_flow_small) + 0.5 * ((0.0034836987724536205 * valve2.state_a.p) / valve2.state_a.T + (0.0034836987724536205 * valve2.state_b.p) / valve2.state_b.T) else 0.5 * ((0.0034836987724536205 * valve2.state_a.p) / valve2.state_a.T + (0.0034836987724536205 * valve2.state_b.p) / valve2.state_b.T)) ($RES_BND_371) (297) [SCAL] (1) $SEV_44 = valve1.xs * valve1.p <= (-valve1.dp_turbulent) ($RES_EVT_542) (298) [RECD] (2) pipe1.statesFM[3] = pipe1.state_b ($RES_SIM_247) (299) [SCAL] (1) valve2.port_a_T = smooth(1, if $SEV_58 then valve2.state_a.T else if $SEV_59 then ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.T_h.Internal.solve(junctionVolume.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) else if $SEV_57 then 0.25 * (ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.T_h.Internal.solve(junctionVolume.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) - valve2.state_a.T) * ((-3.0) + (valve2.m_flow / valve2.m_flow_small) ^ 2.0) * (valve2.m_flow / valve2.m_flow_small) + 0.5 * (valve2.state_a.T + ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.T_h.Internal.solve(junctionVolume.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)) else 0.5 * (valve2.state_a.T + ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.T_h.Internal.solve(junctionVolume.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_372) (300) [SCAL] (1) $SEV_45 = (0.0034836987724536205 * valve1.state_b.p) / valve1.state_b.T > 0.0 ($RES_EVT_543) (301) [ARRY] (2) pipe1.statesFM[2:2] = pipe1.mediums[:].state ($RES_SIM_248) (302) [SCAL] (1) valve2.port_b_T = smooth(1, if $SEV_55 then valve2.state_b.T else if $SEV_56 then ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.T_h.Internal.solve(valve2.port_b.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) else if $SEV_57 then 0.5 * (valve2.state_b.T + ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.T_h.Internal.solve(valve2.port_b.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)) - 0.25 * (ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.T_h.Internal.solve(valve2.port_b.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) - valve2.state_b.T) * ((-3.0) + (valve2.m_flow / (-valve2.m_flow_small)) ^ 2.0) * (valve2.m_flow / valve2.m_flow_small) else 0.5 * (valve2.state_b.T + ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.valve2.Medium.T_h.Internal.solve(valve2.port_b.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_373) (303) [SCAL] (1) $SEV_46 = (0.0034836987724536205 * valve1.state_a.p) / valve1.state_a.T >= (0.0034836987724536205 * valve1.state_b.p) / valve1.state_b.T ($RES_EVT_544) (304) [RECD] (2) pipe1.statesFM[1] = pipe1.state_a ($RES_SIM_249) (305) [SCAL] (1) valve2.dp_turbulent = max(valve2.dp_small, (6.283185307179586e6 * (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) + valve2.state_a.T) + 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) + valve2.state_b.T)) ^ 2.0) / (valve2.Y * max(valveOpening2.y, 0.001) * valve2.Av * ((0.0034836987724536205 * valve2.state_b.p) / valve2.state_b.T + (0.0034836987724536205 * valve2.state_a.p) / valve2.state_a.T))) ($RES_BND_374) (306) [SCAL] (1) $SEV_47 = valveOpening1.y < valve1.minLimiter.uMin ($RES_EVT_545) (307) [FOR-] (2) ($RES_EVT_546) (307) [----] for $i1 in 1:2 loop (307) [----] [SCAL] (1) $SEV_48[$i1] = pipe1.flowModel.m_flows[$i1] > 0.0 ($RES_EVT_547) (307) [----] end for; (308) [ARRY] (1) pipe2.fluidVolumes = {10.0 * pipe2.crossAreas[1]} .* pipe2.nParallel ($RES_BND_377) (309) [SCAL] (1) $SEV_49[1] = pipe1.mediums[1].p >= 0.0 ($RES_EVT_548) (310) [ARRY] (1) pipe2.mediums.p_bar = {1e-5 * pipe2.mediums[1].p} ($RES_BND_378) (311) [ARRY] (1) pipe2.mediums.T_degC = {(-273.15) + pipe2.mediums[1].T} ($RES_BND_379) (312) [SCAL] (1) pipe1.port_a.m_flow + source.ports[1].m_flow = 0.0 ($RES_SIM_334) (313) [SCAL] (1) source.ports[1].p = pipe1.port_a.p ($RES_SIM_335) (314) [ARRY] (2) pipe2.roughnessesFM[:] = {pipe2.roughnesses[1], pipe2.roughnesses[1]} ($RES_SIM_160) (315) [ARRY] (2) pipe2.dimensionsFM[:] = {pipe2.dimensions[1], pipe2.dimensions[1]} ($RES_SIM_161) (316) [ARRY] (2) pipe2.crossAreasFM[:] = {pipe2.crossAreas[1], pipe2.crossAreas[1]} ($RES_SIM_162) (317) [ARRY] (1) pipe2.dheightsFM[:] = {0.0} ($RES_SIM_163) (318) [ARRY] (1) pipe2.pathLengths[:] = {10.0} ($RES_SIM_164) (319) [ARRY] (1) pipe2.Wb_flows = (pipe2.crossAreas * pipe2.vs * (($FUN_8 + pipe2.port_b.p) - ((system.g * {0.0}) / pipe2.mediums.d + 99999.99999999999 * junctionIdeal.medium.p_bar))) / ({1.0} * {1.0}) .* {1.0} .* pipe2.nParallel ($RES_SIM_165) (320) [ARRY] (1) pipe2.Qb_flows = pipe2.heatTransfer.Q_flows ($RES_SIM_166) (321) [ARRY] (1) pipe2.heatTransfer.Q_flows = pipe2.heatTransfer.heatPorts.Q_flow ($RES_SIM_167) (322) [ARRY] (1) pipe2.heatTransfer.Ts = pipe2.heatTransfer.heatPorts.T ($RES_SIM_168) (323) [ARRY] (1) {0.0} = pipe2.flowModel.Ib_flows - (pipe2.flowModel.Fs_fg + pipe2.flowModel.Fs_p) ($RES_SIM_169) (324) [SCAL] (1) pipe2.flowModel.dp_fric_nominal = sum({$FUN_25}) ($RES_$AUX_439) (325) [SCAL] (1) $FUN_27 = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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[$i1], pipe1.flowModel.diameters[$i1], (0.5 .* (pipe1.flowModel.crossAreas[2:3] + pipe1.flowModel.crossAreas[1:2]))[$i1], (0.5 .* (pipe1.flowModel.roughnesses[2:3] + pipe1.flowModel.roughnesses[1:2]))[$i1], pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[$i1]) ($RES_$AUX_438) (326) [SCAL] (1) pipe1.flowModel.dp_fric_nominal = sum($FUN_27 for $i1 in 1:2) ($RES_$AUX_437) (327) [SCAL] (1) pipe1.port_b.h_outflow = pipe1.mediums[1].h ($RES_SIM_252) (328) [SCAL] (1) pipe1.port_a.h_outflow = pipe1.mediums[1].h ($RES_SIM_253)