Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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.BranchingPipes4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 104.5 kB / 16.42 MB, free: 6.492 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.001135/0.001135, allocations: 192.2 kB / 17.35 MB, free: 5.754 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.246/1.246, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1548/0.1548, allocations: 38 MB / 308.6 MB, free: 6.004 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.799e-05/1.8e-05, allocations: 2.281 kB / 433.6 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4): time 0.2866/0.2866, allocations: 101.8 MB / 0.5229 GB, free: 4.359 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03982/0.3264, allocations: 39.05 MB / 0.561 GB, free: 3.539 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002602/0.3291, allocations: 96.53 kB / 0.5611 GB, free: 3.539 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002708/0.3318, allocations: 1.235 MB / 0.5623 GB, free: 3.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01917/0.351, allocations: 8.254 MB / 0.5704 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01784/0.3689, allocations: 8.07 MB / 0.5783 GB, free: 12.39 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009336/0.3783, allocations: 8.335 MB / 0.5864 GB, free: 5.434 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002148/0.3804, allocations: 1.579 MB / 0.588 GB, free: 3.871 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004624/0.3851, allocations: 3.207 MB / 0.5911 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02298/0.4081, allocations: 12.14 MB / 0.603 GB, free: 4.926 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007164/0.4088, allocations: 224 kB / 0.6032 GB, free: 4.707 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01919/0.428, allocations: 10.03 MB / 0.613 GB, free: 10.84 MB / 446.1 MB Notification: Performance of combineBinaries: time 0.00541/0.4334, allocations: 5.175 MB / 0.618 GB, free: 5.918 MB / 446.1 MB Notification: Performance of replaceArrayConstructors: time 0.002432/0.4359, allocations: 3.353 MB / 0.6213 GB, free: 2.699 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007132/0.4366, allocations: 426.8 kB / 0.6217 GB, free: 2.281 MB / 446.1 MB Notification: Performance of FrontEnd: time 0.0003787/0.437, allocations: 59.75 kB / 0.6218 GB, free: 2.223 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 (362) * Number of variables: 636 (432) Notification: Performance of Bindings: time 0.01351/0.4505, allocations: 15.2 MB / 0.6366 GB, free: 2.914 MB / 462.1 MB Notification: Performance of FunctionAlias: time 0.001558/0.4521, allocations: 1.594 MB / 0.6382 GB, free: 1.348 MB / 462.1 MB Notification: Performance of Early Inline: time 0.007905/0.46, allocations: 8.024 MB / 0.646 GB, free: 9.555 MB / 478.1 MB Notification: Performance of simplify1: time 0.0007611/0.4608, allocations: 0.5267 MB / 0.6465 GB, free: 9.066 MB / 478.1 MB Notification: Performance of Alias: time 0.006122/0.4669, allocations: 5.877 MB / 0.6522 GB, free: 2.906 MB / 478.1 MB Notification: Performance of simplify2: time 0.0005852/0.4675, allocations: 0.5071 MB / 0.6527 GB, free: 2.434 MB / 478.1 MB Notification: Performance of Events: time 0.001668/0.4692, allocations: 1.803 MB / 0.6545 GB, free: 0.6641 MB / 478.1 MB Notification: Performance of Detect States: time 0.001671/0.4709, allocations: 1.945 MB / 0.6564 GB, free: 14.76 MB / 494.1 MB Notification: Performance of Partitioning: time 0.003093/0.474, allocations: 3.021 MB / 0.6593 GB, free: 11.46 MB / 494.1 MB Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (409/614) **************************** (1) [ALGB] (1) Real pipe2.state_b.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (2) [ALGB] (1) Real[1] pipe2.mb_flows (min = {-1e5 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}) (3) [DISC] (1) Integer sink.medium.phase (fixed = false, start = 1, min = 0, max = 2) (4) [ALGB] (1) protected Real valveIncompressible1.state_a.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (5) [ALGB] (1) Real[1] pipe2.mediums.T (start = {pipe2.T_start}, min = {273.15 for $i1 in 1:1}, max = {2273.15 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}, StateSelect = default) (6) [ALGB] (1) Real pipe2.state_b.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (7) [DISC] (9) Integer[3, 3] pipe1.statesFM.phase (min = {0 for $i1 in 1:3}, max = {2 for $i1 in 1:3}) (8) [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}) (9) [DISC] (4) Integer[2, 2] pipe2.statesFM.phase (min = {0 for $i1 in 1:2}, max = {2 for $i1 in 1:2}) (10) [ALGB] (1) protected Real[1] pipe3.dheightsFM (11) [DISC] (1) final input Integer[1, 1] pipe3.heatTransfer.states.phase = {pipe3.mediums[1].state.phase} (min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (12) [DISC] (1) protected Real valveOpening1.b (13) [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}) (14) [DISC] (1) protected Real valveOpening1.a (15) [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}) (16) [DISC] (1) Integer[1] pipe3.mediums.phase (fixed = {false for $i1 in 1:1}, start = {1 for $i1 in 1:1}, min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (17) [ALGB] (1) final Real[1] pipe3.flowModel.dheights = pipe3.dheightsFM (18) [DISC] (1) protected discrete Real valveOpening1.nextEvent (fixed = true, start = 0.0) (19) [ALGB] (2) final Real[2] pipe1.flowModel.dheights = pipe1.dheightsFM (20) [ALGB] (1) Real pipe2.state_b.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (21) [DER-] (1) Real $DER.splitter.U (22) [ALGB] (1) stream Real pipe1.port_b.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (23) [DER-] (1) Real[1] $DER.pipe3.Us (24) [ALGB] (1) Real[1] pipe2.mediums.T_degC = {Modelica.SIunits.Conversions.to_degC(pipe2.mediums[1].T)} (25) [ALGB] (1) Real[1] pipe3.mediums.T_degC = {Modelica.SIunits.Conversions.to_degC(pipe3.mediums[1].T)} (26) [ALGB] (3) final Real[3] pipe1.flowModel.crossAreas = pipe1.crossAreasFM (27) [ALGB] (3) final Real[3] pipe1.flowModel.dimensions = pipe1.dimensionsFM (28) [ALGB] (1) Real[1] pipe1.Qb_flows (29) [ALGB] (1) Real pipe3.port_b.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (30) [ALGB] (1) Real pipe2.state_a.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (31) [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 = {273.15 for $i1 in 1:1}, max = {2273.15 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (32) [ALGB] (1) Real splitter.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (33) [DER-] (1) Real[1] $DER.pipe2.Us (34) [ALGB] (1) Real pipe2.state_a.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (35) [DISC] (9) final input Integer[3, 3] pipe1.flowModel.states.phase = {pipe1.statesFM[1].phase, pipe1.statesFM[2].phase, pipe1.statesFM[3].phase} (min = {0 for $i1 in 1:3}, max = {2 for $i1 in 1:3}) (36) [DER-] (1) Real $DER.splitter.m (37) [ALGB] (1) Real[1] pipe1.mediums.state.T (start = {500.0 for $i1 in 1:1}, min = {273.15 for $i1 in 1:1}, max = {2273.15 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (38) [ALGB] (1) Real pipe2.state_a.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (39) [ALGB] (1) Real[1] pipe2.mediums.sat.Tsat (start = {500.0 for $i1 in 1:1}, min = {273.15 for $i1 in 1:1}, max = {2273.15 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (40) [ALGB] (1) Real valveIncompressible1.port_a_T = Modelica.Fluid.Utilities.regStep(-valveIncompressible1.port_b.m_flow, ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible1.Medium.temperature(valveIncompressible1.state_a), ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible1.Medium.temperature(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible1.Medium.setState_phX(pipe3.port_b.p, valveIncompressible1.port_a.h_outflow, {}, 0, 0)), valveIncompressible1.m_flow_small) (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (41) [DER-] (1) Real[1] $DER.pipe1.Us (42) [ALGB] (1) stream Real valveIncompressible.port_b.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (43) [ALGB] (1) final input Real[1, 1] pipe2.heatTransfer.states.d = {pipe2.mediums[1].state.d} (start = {150.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (44) [DISC] (1) Integer[1] pipe2.mediums.phase (fixed = {false for $i1 in 1:1}, start = {1 for $i1 in 1:1}, min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (45) [ALGB] (2) Real[2] pipe2.flowModel.mus = {ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe2.flowModel.Medium.dynamicViscosity(pipe2.flowModel.states[$i1]) for $i1 in 1:2} (start = {0.001 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {0.001 for $i1 in 1:2}) (46) [ALGB] (2) final Real[2] pipe2.flowModel.roughnesses = pipe2.roughnessesFM (min = {0.0 for $i1 in 1:2}) (47) [ALGB] (1) final input Real[1, 1] pipe2.heatTransfer.states.h = {pipe2.mediums[1].state.h} (start = {1e5 for $i1 in 1:1}, min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {5e5 for $i1 in 1:1}) (48) [DISC] (1) Integer[1] pipe2.mediums.state.phase (min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (49) [ALGB] (1) final Real[1] pipe2.fluidVolumes = {pipe2.crossAreas[1] * 10.0} .* pipe2.nParallel (50) [ALGB] (1) protected Real[1] pipe2.pathLengths (51) [ALGB] (1) Real[1] pipe1.mediums.state.d (start = {150.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (52) [ALGB] (1) Real pipe2.state_a.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (53) [DISC] (1) Integer pipe2.state_a.phase (min = 0, max = 2) (54) [ALGB] (1) protected Real[1] pipe2.dheightsFM (55) [ALGB] (1) Real[1] pipe1.mediums.state.h (start = {1e5 for $i1 in 1:1}, min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {5e5 for $i1 in 1:1}) (56) [ALGB] (1) final input Real[1, 1] pipe2.heatTransfer.states.p = {pipe2.mediums[1].state.p} (start = {5e6 for $i1 in 1:1}, min = {611.657 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (57) [ALGB] (1) protected Real valveIncompressible.state_a.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (58) [ALGB] (1) final input Real[1, 1] pipe3.heatTransfer.states.p = {pipe3.mediums[1].state.p} (start = {5e6 for $i1 in 1:1}, min = {611.657 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (59) [ALGB] (1) Real valveIncompressible1.port_b.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (60) [DISC] (1) protected Integer valveIncompressible1.state_a.phase (min = 0, max = 2) (61) [ALGB] (1) flow Real pipe1.port_a.m_flow (min = -1e60, max = 1e5) (62) [ALGB] (1) Real[1] pipe1.mediums.state.p (start = {5e6 for $i1 in 1:1}, min = {611.657 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (63) [ALGB] (1) final input Real[1, 1] pipe3.heatTransfer.states.h = {pipe3.mediums[1].state.h} (start = {1e5 for $i1 in 1:1}, min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {5e5 for $i1 in 1:1}) (64) [ALGB] (1) Real[1] pipe1.Hb_flows (65) [ALGB] (1) final input Real[1, 1] pipe3.heatTransfer.states.d = {pipe3.mediums[1].state.d} (start = {150.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (66) [ALGB] (1) protected Real valveIncompressible.state_a.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (67) [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}) (68) [ALGB] (1) protected Real valveIncompressible.state_a.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (69) [ALGB] (1) protected Real valveIncompressible1.relativeFlowCoefficient (70) [ALGB] (2) final Real[2] pipe3.flowModel.crossAreas = pipe3.crossAreasFM (71) [ALGB] (2) final Real[2] pipe3.flowModel.dimensions = pipe3.dimensionsFM (72) [DISC] (1) Integer source.medium.state.phase (min = 0, max = 2) (73) [ALGB] (1) protected Real valveIncompressible.state_a.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (74) [ALGB] (1) Real valveIncompressible1.port_b_T = Modelica.Fluid.Utilities.regStep(valveIncompressible1.port_b.m_flow, ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible1.Medium.temperature(valveIncompressible1.state_b), ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible1.Medium.temperature(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible1.Medium.setState_phX(valveIncompressible1.port_b.p, valveIncompressible1.port_b.h_outflow, {}, 0, 0)), valveIncompressible1.m_flow_small) (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (75) [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 = {273.15 for $i1 in 1:1}, max = {2273.15 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (76) [ALGB] (1) Real source.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - source.medium.T_degC)) (77) [DISC] (1) Integer[1] pipe1.mediums.state.phase (min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (78) [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}) (79) [DISC] (1) protected Integer valveIncompressible.state_a.phase (min = 0, max = 2) (80) [ALGB] (2) Real[2] pipe1.flowModel.Fs_fg (81) [ALGB] (1) Real source.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (82) [ALGB] (1) protected Real valveIncompressible.state_b.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (83) [ALGB] (1) Real valveIncompressible1.dp_turbulent = max(valveIncompressible1.dp_small, ((ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible1.Medium.dynamicViscosity(valveIncompressible1.state_a) + ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible1.Medium.dynamicViscosity(valveIncompressible1.state_b)) ^ 2.0 * 3.141592653589793 * 1.6e7) / (8.0 * valveIncompressible1.Av * max(valveIncompressible1.relativeFlowCoefficient, 0.001) * (ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible1.Medium.density(valveIncompressible1.state_b) + ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible1.Medium.density(valveIncompressible1.state_a)))) (min = 0.0, nominal = 1e5) (84) [ALGB] (1) Real valveIncompressible.dp_turbulent = max(valveIncompressible.dp_small, ((ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible.Medium.dynamicViscosity(valveIncompressible.state_a) + ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible.Medium.dynamicViscosity(valveIncompressible.state_b)) ^ 2.0 * 3.141592653589793 * 1.6e7) / (8.0 * valveIncompressible.Av * max(valveIncompressible.relativeFlowCoefficient, 0.001) * (ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible.Medium.density(valveIncompressible.state_b) + ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible.Medium.density(valveIncompressible.state_a)))) (min = 0.0, nominal = 1e5) (85) [DISC] (1) Integer sink.medium.state.phase (min = 0, max = 2) (86) [ALGB] (1) Real[1] pipe2.flowModel.Ib_flows (87) [ALGB] (1) Real valveIncompressible.dp (start = valveIncompressible.dp_start) (88) [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}) (89) [ALGB] (1) Real[1] pipe2.heatTransfer.Q_flows (90) [ALGB] (2) protected Real[2] pipe1.dheightsFM (91) [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}) (92) [ALGB] (1) Real[1] pipe2.flowModel.Is (93) [ALGB] (1) Real source.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (94) [ALGB] (1) protected Real valveIncompressible.state_b.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (95) [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}) (96) [ALGB] (1) Real source.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (97) [ALGB] (1) protected Real valveIncompressible.state_b.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (98) [ALGB] (1) flow Real pipe1.port_b.m_flow (min = -1e5, max = 1e60) (99) [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) (100) [DISC] (1) Boolean $TEV_1 (101) [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}) (102) [DISC] (1) Boolean $TEV_0 (103) [DISC] (1) Boolean[1] $SEV_15[$i1] (104) [ALGB] (1) protected Real valveIncompressible.state_b.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (105) [ALGB] (1) flow Real valveIncompressible1.port_b.m_flow (min = -1e5, max = 1e60) (106) [ALGB] (2) protected Real[2] pipe1.pathLengths (107) [ALGB] (2) Real[2] pipe1.flowModel.rhos_act (start = {150.0 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}, nominal = {500.0 for $i1 in 1:2}) (108) [ALGB] (1) Real[1] pipe1.mediums.T_degC = {Modelica.SIunits.Conversions.to_degC(pipe1.mediums[1].T)} (109) [DISC] (1) Integer[1] pipe3.mediums.state.phase (min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (110) [ALGB] (1) Real[1] pipe1.mediums.sat.psat (start = {5e6 for $i1 in 1:1}, min = {611.657 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (111) [ALGB] (1) flow Real pipe3.port_a.m_flow (min = -1e60, max = 1e5) (112) [ALGB] (1) Real[1] pipe3.mb_flows (min = {-1e5 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}) (113) [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 = {273.15 for $i1 in 1:2}, max = {2273.15 for $i1 in 1:2}, nominal = {500.0 for $i1 in 1:2}) (114) [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) (115) [ALGB] (2) protected Real[2] pipe2.dimensionsFM (116) [ALGB] (2) protected Real[2] pipe2.crossAreasFM (117) [ALGB] (1) Real splitter.medium.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0, StateSelect = default) (118) [ALGB] (1) protected Real[1] pipe3.pathLengths (119) [ALGB] (1) stream Real valveIncompressible1.port_b.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (120) [ALGB] (9) final input Real[3, 3] pipe1.flowModel.states.p = {pipe1.statesFM[1].p, pipe1.statesFM[2].p, pipe1.statesFM[3].p} (start = {5e6 for $i1 in 1:3}, min = {611.657 for $i1 in 1:3}, max = {1e8 for $i1 in 1:3}, nominal = {1e6 for $i1 in 1:3}) (121) [ALGB] (1) flow Real valveIncompressible.port_b.m_flow (min = -1e5, max = 1e60) (122) [ALGB] (4) Real[2, 2] pipe3.statesFM.p (start = {5e6 for $i1 in 1:2}, min = {611.657 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (123) [ALGB] (1) Real[1] pipe1.Wb_flows (124) [ALGB] (9) final input Real[3, 3] pipe1.flowModel.states.h = {pipe1.statesFM[1].h, pipe1.statesFM[2].h, pipe1.statesFM[3].h} (start = {1e5 for $i1 in 1:3}, min = {-1e10 for $i1 in 1:3}, max = {1e10 for $i1 in 1:3}, nominal = {5e5 for $i1 in 1:3}) (125) [ALGB] (4) final input Real[2, 2] pipe2.flowModel.states.d = {pipe2.statesFM[1].d, pipe2.statesFM[2].d} (start = {150.0 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}, nominal = {500.0 for $i1 in 1:2}) (126) [ALGB] (1) Real[1] pipe2.flowModel.Fs_fg (127) [ALGB] (4) Real[2, 2] pipe3.statesFM.h (start = {1e5 for $i1 in 1:2}, min = {-1e10 for $i1 in 1:2}, max = {1e10 for $i1 in 1:2}, nominal = {5e5 for $i1 in 1:2}) (128) [ALGB] (1) Real splitter.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (129) [ALGB] (9) final input Real[3, 3] pipe1.flowModel.states.d = {pipe1.statesFM[1].d, pipe1.statesFM[2].d, pipe1.statesFM[3].d} (start = {150.0 for $i1 in 1:3}, min = {0.0 for $i1 in 1:3}, max = {1e5 for $i1 in 1:3}, nominal = {500.0 for $i1 in 1:3}) (130) [ALGB] (4) final input Real[2, 2] pipe2.flowModel.states.h = {pipe2.statesFM[1].h, pipe2.statesFM[2].h} (start = {1e5 for $i1 in 1:2}, min = {-1e10 for $i1 in 1:2}, max = {1e10 for $i1 in 1:2}, nominal = {5e5 for $i1 in 1:2}) (131) [ALGB] (4) Real[2, 2] pipe3.statesFM.d (start = {150.0 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}, nominal = {500.0 for $i1 in 1:2}) (132) [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 (133) [ALGB] (1) Real splitter.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - splitter.medium.T_degC)) (134) [ALGB] (4) final input Real[2, 2] pipe2.flowModel.states.p = {pipe2.statesFM[1].p, pipe2.statesFM[2].p} (start = {5e6 for $i1 in 1:2}, min = {611.657 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (135) [ALGB] (1) flow Real[1] pipe3.heatTransfer.heatPorts.Q_flow (136) [ALGB] (1) Real source.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (137) [DISC] (1) final input Integer[1, 1] pipe2.heatTransfer.states.phase = {pipe2.mediums[1].state.phase} (min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (138) [ALGB] (1) Real[1] pipe2.Qb_flows (139) [ALGB] (1) Real splitter.mb_flow (140) [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 = {273.15 for $i1 in 1:3}, max = {2273.15 for $i1 in 1:3}, nominal = {500.0 for $i1 in 1:3}) (141) [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 (142) [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}) (143) [ALGB] (4) Real[2, 2] pipe3.statesFM.T (start = {500.0 for $i1 in 1:2}, min = {273.15 for $i1 in 1:2}, max = {2273.15 for $i1 in 1:2}, nominal = {500.0 for $i1 in 1:2}) (144) [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}) (145) [ALGB] (2) final Real[2] pipe2.flowModel.vs = pipe2.vsFM (146) [ALGB] (1) Real[1] pipe3.mediums.state.p (start = {5e6 for $i1 in 1:1}, min = {611.657 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (147) [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) (148) [ALGB] (1) Real[1] pipe2.flowModel.pathLengths_internal = pipe2.flowModel.pathLengths (149) [ALGB] (1) final Real[1] pipe1.heatTransfer.vs = pipe1.vs (150) [ALGB] (1) Real valveIncompressible.V_flow = (-valveIncompressible.port_b.m_flow) / Modelica.Fluid.Utilities.regStep(-valveIncompressible.port_b.m_flow, ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible.Medium.density(valveIncompressible.state_a), ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible.Medium.density(valveIncompressible.state_b), valveIncompressible.m_flow_small) (151) [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 (152) [ALGB] (1) Real[1] pipe3.mediums.state.h (start = {1e5 for $i1 in 1:1}, min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {5e5 for $i1 in 1:1}) (153) [ALGB] (1) Real[1] pipe3.mediums.h (start = {pipe3.h_start}, StateSelect = prefer) (154) [ALGB] (1) Real[1] pipe2.flowModel.rhos_act (start = {150.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (155) [ALGB] (2) Real[2] pipe3.flowModel.rhos = {ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe3.flowModel.Medium.density(pipe3.flowModel.states[$i1]) for $i1 in 1:2} (start = {150.0 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}, nominal = {500.0 for $i1 in 1:2}) (156) [ALGB] (1) Real[1] pipe3.mediums.state.d (start = {150.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (157) [ALGB] (1) Real[1] pipe3.mediums.d (start = {150.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}, StateSelect = default) (158) [ALGB] (1) Real sink.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - sink.medium.T_degC)) (159) [ALGB] (1) Real pipe3.state_b.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (160) [ALGB] (1) Real[1] pipe3.flowModel.Fs_p (161) [ALGB] (1) protected Real valveIncompressible.relativeFlowCoefficient (162) [ALGB] (2) Real[2] pipe1.flowModel.Res_turbulent_internal = pipe1.flowModel.Re_turbulent * {1.0 for $i1 in 1:2} (163) [DISC] (1) protected Integer valveOpening2.last (start = 1) (164) [ALGB] (1) Real pipe3.state_b.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (165) [ALGB] (4) Real[2, 2] pipe2.statesFM.p (start = {5e6 for $i1 in 1:2}, min = {611.657 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (166) [ALGB] (1) Real[1] pipe3.mediums.state.T (start = {500.0 for $i1 in 1:1}, min = {273.15 for $i1 in 1:1}, max = {2273.15 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (167) [ALGB] (1) Real[1] pipe3.mediums.T (start = {pipe3.T_start}, min = {273.15 for $i1 in 1:1}, max = {2273.15 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}, StateSelect = default) (168) [ALGB] (1) Real pipe3.state_b.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (169) [ALGB] (1) protected Real[1] pipe2.flowModel.diameters = 0.5 * (pipe2.flowModel.dimensions[2:2] + pipe2.flowModel.dimensions[1:1]) (170) [ALGB] (4) Real[2, 2] pipe2.statesFM.h (start = {1e5 for $i1 in 1:2}, min = {-1e10 for $i1 in 1:2}, max = {1e10 for $i1 in 1:2}, nominal = {5e5 for $i1 in 1:2}) (171) [ALGB] (1) Real[1] pipe2.Hb_flows (172) [ALGB] (2) Real[2] pipe1.flowModel.Ib_flows (173) [ALGB] (4) Real[2, 2] pipe2.statesFM.d (start = {150.0 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}, nominal = {500.0 for $i1 in 1:2}) (174) [ALGB] (1) Real[1] pipe2.flowModel.Res_turbulent_internal = pipe2.flowModel.Re_turbulent * {1.0 for $i1 in 1:1} (175) [ALGB] (1) Real pipe3.state_b.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (176) [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}) (177) [ALGB] (1) Real sink.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (178) [DISC] (1) Boolean $SEV_9 (179) [DISC] (1) Boolean $SEV_8 (180) [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) (181) [DISC] (1) Integer splitter.medium.state.phase (min = 0, max = 2) (182) [ALGB] (1) Real[1] pipe3.heatTransfer.Ts = {ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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}) (183) [ALGB] (4) Real[2, 2] pipe2.statesFM.T (start = {500.0 for $i1 in 1:2}, min = {273.15 for $i1 in 1:2}, max = {2273.15 for $i1 in 1:2}, nominal = {500.0 for $i1 in 1:2}) (184) [ALGB] (1) Real[1] pipe1.heatTransfer.Q_flows (185) [ALGB] (3) protected Real[3] pipe1.roughnessesFM (min = {0.0 for $i1 in 1:3}) (186) [ALGB] (1) flow Real[1] source.ports.m_flow (min = {-1e60}, max = {1e60}) (187) [ALGB] (1) Real[1] pipe1.mediums.h (start = {pipe1.h_start}, StateSelect = prefer) (188) [ALGB] (1) Real source.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (189) [ALGB] (1) Real pipe3.state_a.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (190) [ALGB] (1) Real[1] pipe1.mediums.d (start = {150.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}, StateSelect = default) (191) [ALGB] (1) Real pipe1.port_a.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (192) [DISC] (1) protected Integer valveOpening1.last (start = 1) (193) [ALGB] (1) Real pipe1.state_b.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (194) [ALGB] (1) Real[1] pipe3.flowModel.dps_fg (start = {pipe3.flowModel.p_a_start - pipe3.flowModel.p_b_start for $i1 in 1:1}) (195) [ALGB] (1) final Real[1] pipe3.fluidVolumes = {pipe3.crossAreas[1] * 10.0} .* pipe3.nParallel (196) [ALGB] (1) Real[1] pipe3.mediums.sat.psat (start = {5e6 for $i1 in 1:1}, min = {611.657 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (197) [ALGB] (2) protected Real[2] pipe1.flowModel.diameters = 0.5 * (pipe1.flowModel.dimensions[2:3] + pipe1.flowModel.dimensions[1:2]) (198) [ALGB] (1) Real pipe3.state_a.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (199) [ALGB] (1) Real[1] pipe3.flowModel.pathLengths_internal = pipe3.flowModel.pathLengths (200) [ALGB] (1) Real pipe1.state_b.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (201) [ALGB] (1) Real pipe3.state_a.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (202) [DISC] (1) Integer splitter.medium.phase (fixed = false, start = 1, min = 0, max = 2) (203) [ALGB] (1) Real source.medium.h (StateSelect = default) (204) [DISC] (1) protected discrete Real valveOpening1.nextEventScaled (fixed = true, start = 0.0) (205) [ALGB] (1) stream Real splitter.port_3.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (206) [ALGB] (3) protected Real[3] pipe1.vsFM (207) [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) (208) [ALGB] (1) Real[1] pipe1.mediums.T (start = {pipe1.T_start}, min = {273.15 for $i1 in 1:1}, max = {2273.15 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}, StateSelect = default) (209) [ALGB] (1) Real pipe1.state_b.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (210) [ALGB] (1) Real source.medium.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0, StateSelect = default) (211) [ALGB] (2) protected Real[2] pipe2.roughnessesFM (min = {0.0 for $i1 in 1:2}) (212) [ALGB] (1) stream Real valveIncompressible.port_a.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (213) [ALGB] (1) Real[1] pipe1.heatTransfer.Ts = {ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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}) (214) [ALGB] (9) Real[3, 3] pipe1.statesFM.p (start = {5e6 for $i1 in 1:3}, min = {611.657 for $i1 in 1:3}, max = {1e8 for $i1 in 1:3}, nominal = {1e6 for $i1 in 1:3}) (215) [ALGB] (1) Real pipe3.state_a.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (216) [DER-] (1) Real[1] $DER.pipe3.ms (217) [DISC] (1) protected discrete Real valveOpening2.nextEvent (fixed = true, start = 0.0) (218) [DISC] (1) Boolean[1] $SEV_38[$i1] (219) [ALGB] (9) Real[3, 3] pipe1.statesFM.h (start = {1e5 for $i1 in 1:3}, min = {-1e10 for $i1 in 1:3}, max = {1e10 for $i1 in 1:3}, nominal = {5e5 for $i1 in 1:3}) (220) [ALGB] (1) Real pipe1.state_b.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (221) [ALGB] (1) Real[1] pipe3.flowModel.Ib_flows (222) [ALGB] (1) stream Real pipe2.port_a.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (223) [ALGB] (9) Real[3, 3] pipe1.statesFM.d (start = {150.0 for $i1 in 1:3}, min = {0.0 for $i1 in 1:3}, max = {1e5 for $i1 in 1:3}, nominal = {500.0 for $i1 in 1:3}) (224) [ALGB] (1) Real sink.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (225) [ALGB] (2) final Real[2] pipe3.flowModel.roughnesses = pipe3.roughnessesFM (min = {0.0 for $i1 in 1:2}) (226) [DER-] (1) Real[1] $DER.pipe2.ms (227) [ALGB] (1) stream Real pipe1.port_a.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (228) [ALGB] (1) Real splitter.Hb_flow (229) [DISC] (4) Integer[2, 2] pipe3.statesFM.phase (min = {0 for $i1 in 1:2}, max = {2 for $i1 in 1:2}) (230) [DISC] (4) final input Integer[2, 2] pipe3.flowModel.states.phase = {pipe3.statesFM[1].phase, pipe3.statesFM[2].phase} (min = {0 for $i1 in 1:2}, max = {2 for $i1 in 1:2}) (231) [DISC] (1) Boolean $SEV_53 (232) [ALGB] (1) Real sink.medium.h (StateSelect = default) (233) [ALGB] (1) Real[1] pipe2.mediums.state.p (start = {5e6 for $i1 in 1:1}, min = {611.657 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (234) [ALGB] (1) Real pipe1.state_a.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (235) [DISC] (1) Boolean $SEV_52 (236) [ALGB] (9) Real[3, 3] pipe1.statesFM.T (start = {500.0 for $i1 in 1:3}, min = {273.15 for $i1 in 1:3}, max = {2273.15 for $i1 in 1:3}, nominal = {500.0 for $i1 in 1:3}) (237) [ALGB] (1) Real[1] pipe3.heatTransfer.Q_flows (238) [DISC] (1) Boolean $SEV_51 (239) [DER-] (1) Real[1] $DER.pipe1.ms (240) [DISC] (1) Boolean $SEV_50 (241) [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}) (242) [ALGB] (1) Real sink.medium.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0, StateSelect = default) (243) [ALGB] (2) protected Real[2] pipe2.vsFM (244) [ALGB] (1) Real[1] pipe2.mediums.state.h (start = {1e5 for $i1 in 1:1}, min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {5e5 for $i1 in 1:1}) (245) [ALGB] (1) Real pipe1.state_a.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (246) [ALGB] (2) protected Real[2] pipe3.roughnessesFM (min = {0.0 for $i1 in 1:2}) (247) [ALGB] (1) Real[1] pipe2.mediums.state.d (start = {150.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (248) [ALGB] (1) Real pipe1.state_a.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (249) [ALGB] (1) Real[1] pipe2.heatTransfer.Ts = {ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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}) (250) [ALGB] (1) Real[1] pipe2.Wb_flows (251) [ALGB] (1) Real[1] pipe3.flowModel.Is (252) [ALGB] (1) final Real[1] pipe3.heatTransfer.vs = pipe3.vs (253) [ALGB] (1) Real[1] pipe1.mediums.sat.Tsat (start = {500.0 for $i1 in 1:1}, min = {273.15 for $i1 in 1:1}, max = {2273.15 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (254) [DISC] (2) Boolean[2] $SEV_37[$i1] (255) [ALGB] (1) Real[1] pipe2.flowModel.dps_fg (start = {pipe2.flowModel.p_a_start - pipe2.flowModel.p_b_start for $i1 in 1:1}) (256) [DISC] (1) Integer pipe1.state_b.phase (min = 0, max = 2) (257) [DISC] (1) Boolean $SEV_49 (258) [DISC] (1) Boolean $SEV_48 (259) [ALGB] (1) Real[1] pipe2.mediums.state.T (start = {500.0 for $i1 in 1:1}, min = {273.15 for $i1 in 1:1}, max = {2273.15 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (260) [ALGB] (1) final Real[1] pipe2.flowModel.dheights = pipe2.dheightsFM (261) [ALGB] (1) Real pipe1.state_a.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (262) [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 = {273.15 for $i1 in 1:2}, max = {2273.15 for $i1 in 1:2}, nominal = {500.0 for $i1 in 1:2}) (263) [DISC] (1) Boolean $SEV_47 (264) [DISC] (1) Boolean $SEV_46 (265) [DISC] (1) Boolean $SEV_45 (266) [ALGB] (1) Real[1] pipe1.mb_flows (min = {-1e5 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}) (267) [DISC] (1) Boolean $SEV_44 (268) [DISC] (1) Boolean $SEV_43 (269) [DISC] (1) Boolean $SEV_40 (270) [ALGB] (2) final Real[2] pipe2.flowModel.dimensions = pipe2.dimensionsFM (271) [ALGB] (2) final Real[2] pipe2.flowModel.crossAreas = pipe2.crossAreasFM (272) [DISC] (1) protected discrete Real valveOpening2.nextEventScaled (fixed = true, start = 0.0) (273) [ALGB] (1) protected Real valveIncompressible.minLimiter.y (274) [DISC] (1) Integer source.medium.phase (fixed = false, start = 1, min = 0, max = 2) (275) [ALGB] (1) Real[1] pipe3.Qb_flows (276) [ALGB] (1) Real $FUN_9 (277) [ALGB] (4) final input Real[2, 2] pipe3.flowModel.states.d = {pipe3.statesFM[1].d, pipe3.statesFM[2].d} (start = {150.0 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}, nominal = {500.0 for $i1 in 1:2}) (278) [ALGB] (1) Real $FUN_8 (279) [ALGB] (1) protected Real pipe3.flowModel.dp_fric_nominal = sum({ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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) (280) [ALGB] (1) Real $FUN_7 (281) [ALGB] (1) Real $FUN_6 (282) [ALGB] (1) Real $FUN_25 (283) [ALGB] (1) final Real[1] pipe1.fluidVolumes = {pipe1.crossAreas[1] * 10.0} .* pipe1.nParallel (284) [ALGB] (1) Real $FUN_5 (285) [ALGB] (4) final input Real[2, 2] pipe3.flowModel.states.h = {pipe3.statesFM[1].h, pipe3.statesFM[2].h} (start = {1e5 for $i1 in 1:2}, min = {-1e10 for $i1 in 1:2}, max = {1e10 for $i1 in 1:2}, nominal = {5e5 for $i1 in 1:2}) (286) [ALGB] (1) Real $FUN_4 (287) [ALGB] (1) Real $FUN_23 (288) [ALGB] (1) Real $FUN_3 (289) [ALGB] (2) protected Real[2] pipe3.vsFM (290) [ALGB] (1) Real $FUN_2 (291) [ALGB] (1) Real $FUN_21 (292) [ALGB] (1) Real $FUN_1 (293) [DISC] (1) Integer $FUN_20 (294) [ALGB] (1) Real splitter.medium.sat.Tsat (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (295) [ALGB] (4) final input Real[2, 2] pipe3.flowModel.states.p = {pipe3.statesFM[1].p, pipe3.statesFM[2].p} (start = {5e6 for $i1 in 1:2}, min = {611.657 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (296) [ALGB] (1) Real splitter.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * splitter.medium.p_bar) (297) [DISC] (4) final input Integer[2, 2] pipe2.flowModel.states.phase = {pipe2.statesFM[1].phase, pipe2.statesFM[2].phase} (min = {0 for $i1 in 1:2}, max = {2 for $i1 in 1:2}) (298) [ALGB] (2) protected Real[2] pipe3.crossAreasFM (299) [ALGB] (2) protected Real[2] pipe3.dimensionsFM (300) [ALGB] (1) Real[1] pipe2.mediums.sat.psat (start = {5e6 for $i1 in 1:1}, min = {611.657 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (301) [DISC] (1) Boolean $SEV_36 (302) [DISC] (1) Boolean $SEV_35 (303) [DISC] (1) Boolean $SEV_34 (304) [DISC] (1) Boolean $SEV_33 (305) [DISC] (1) Boolean $SEV_32 (306) [DISC] (1) Boolean $SEV_31 (307) [ALGB] (2) Real[2] sink.ports.p (start = {5e6 for $i1 in 1:2}, min = {611.657 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (308) [DISC] (1) Boolean $SEV_30 (309) [ALGB] (1) Real pipe2.port_b.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (310) [ALGB] (1) protected Real valveIncompressible1.minLimiter.y (311) [ALGB] (1) flow Real pipe2.port_a.m_flow (min = -1e60, max = 1e5) (312) [ALGB] (1) Real $FUN_19 (313) [ALGB] (1) Real $FUN_18 (314) [ALGB] (1) Real $FUN_17 (315) [DISC] (1) Integer $FUN_16 (316) [ALGB] (1) Real $FUN_15 (317) [ALGB] (1) Real[1] pipe3.flowModel.rhos_act (start = {150.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (318) [ALGB] (1) Real $FUN_14 (319) [ALGB] (1) Real $FUN_13 (320) [ALGB] (1) stream Real valveIncompressible1.port_a.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (321) [ALGB] (1) Real $FUN_12 (322) [ALGB] (1) Real sink.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (323) [ALGB] (1) Real $FUN_11 (324) [DISC] (1) Integer pipe3.state_a.phase (min = 0, max = 2) (325) [ALGB] (1) Real $FUN_10 (326) [ALGB] (1) final Real[1] pipe3.flowModel.pathLengths = pipe3.pathLengths (327) [ALGB] (1) Real sink.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (328) [ALGB] (1) Real[1] pipe3.Hb_flows (329) [ALGB] (3) final Real[3] pipe1.flowModel.roughnesses = pipe1.roughnessesFM (min = {0.0 for $i1 in 1:3}) (330) [ALGB] (3) Real[3] pipe1.flowModel.mus = {ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe1.flowModel.Medium.dynamicViscosity(pipe1.flowModel.states[$i1]) 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}) (331) [ALGB] (1) Real splitter.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (332) [DISC] (1) Integer[1] pipe1.mediums.phase (fixed = {false for $i1 in 1:1}, start = {1 for $i1 in 1:1}, min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (333) [ALGB] (1) stream Real pipe3.port_a.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (334) [DISC] (1) Boolean $SEV_29 (335) [DISC] (1) Boolean $SEV_28 (336) [ALGB] (1) final Real[1] pipe2.heatTransfer.vs = pipe2.vs (337) [DISC] (1) Boolean $SEV_27 (338) [DISC] (1) Boolean $SEV_26 (339) [DISC] (1) Boolean $SEV_25 (340) [DISC] (1) Boolean $SEV_24 (341) [ALGB] (2) final Real[2] pipe3.flowModel.vs = pipe3.vsFM (342) [ALGB] (1) Real splitter.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (343) [ALGB] (1) Real valveIncompressible.port_a_T = Modelica.Fluid.Utilities.regStep(-valveIncompressible.port_b.m_flow, ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible.Medium.temperature(valveIncompressible.state_a), ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible.Medium.temperature(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible.Medium.setState_phX(pipe2.port_b.p, valveIncompressible.port_a.h_outflow, {}, 0, 0)), valveIncompressible.m_flow_small) (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (344) [DISC] (1) Boolean $SEV_21 (345) [ALGB] (1) protected Real pipe1.flowModel.dp_fric_nominal = sum(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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) (346) [ALGB] (1) Real splitter.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (347) [ALGB] (2) flow Real[2] sink.ports.m_flow (min = {-1e60 for $ports1 in 1:2}, max = {1e60 for $ports1 in 1:2}) (348) [ALGB] (1) Real sink.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (349) [ALGB] (1) Real[1] pipe3.flowModel.Res_turbulent_internal = pipe3.flowModel.Re_turbulent * {1.0 for $i1 in 1:1} (350) [ALGB] (2) Real[2] pipe1.flowModel.Is (351) [DISC] (1) final input Integer[1, 1] pipe1.heatTransfer.states.phase = {pipe1.mediums[1].state.phase} (min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (352) [ALGB] (1) Real[1] pipe3.mediums.p_bar = {Modelica.SIunits.Conversions.to_bar(pipe3.mediums[1].p)} (353) [ALGB] (2) stream Real[2] sink.ports.h_outflow (start = {1e5 for $i1 in 1:2}, min = {-1e10 for $i1 in 1:2}, max = {1e10 for $i1 in 1:2}, nominal = {5e5 for $i1 in 1:2}) (354) [ALGB] (1) Real splitter.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (355) [ALGB] (1) Real valveIncompressible.port_b.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (356) [ALGB] (1) protected Real valveIncompressible1.state_b.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (357) [ALGB] (1) Real[1] pipe3.flowModel.Fs_fg (358) [DISC] (1) Boolean $SEV_18 (359) [DISC] (1) protected Integer valveIncompressible1.state_b.phase (min = 0, max = 2) (360) [DISC] (1) Boolean $SEV_17 (361) [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}) (362) [DISC] (1) Boolean $SEV_14 (363) [DISC] (1) Boolean $SEV_13 (364) [ALGB] (1) protected Real valveIncompressible1.state_b.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (365) [DISC] (1) Boolean $SEV_10 (366) [ALGB] (1) protected Real valveIncompressible1.state_b.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (367) [ALGB] (1) Real[1] pipe3.mediums.sat.Tsat (start = {500.0 for $i1 in 1:1}, min = {273.15 for $i1 in 1:1}, max = {2273.15 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (368) [ALGB] (1) Real valveIncompressible.port_b_T = Modelica.Fluid.Utilities.regStep(valveIncompressible.port_b.m_flow, ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible.Medium.temperature(valveIncompressible.state_b), ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible.Medium.temperature(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible.Medium.setState_phX(valveIncompressible.port_b.p, valveIncompressible.port_b.h_outflow, {}, 0, 0)), valveIncompressible.m_flow_small) (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (369) [ALGB] (1) stream Real[1] source.ports.h_outflow (start = {1e5 for $i1 in 1:1}, min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {5e5 for $i1 in 1:1}) (370) [ALGB] (3) protected Real[3] pipe1.dimensionsFM (371) [ALGB] (3) protected Real[3] pipe1.crossAreasFM (372) [ALGB] (1) protected Real valveIncompressible1.state_b.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (373) [DISC] (1) protected Integer valveIncompressible.state_b.phase (min = 0, max = 2) (374) [ALGB] (1) flow Real[1] pipe1.heatTransfer.heatPorts.Q_flow (375) [ALGB] (1) Real[1] pipe2.flowModel.Fs_p (376) [ALGB] (2) Real[2] pipe1.flowModel.Fs_p (377) [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}) (378) [ALGB] (1) final Real[1] pipe2.flowModel.pathLengths = pipe2.pathLengths (379) [DISC] (1) protected Real valveOpening2.b (380) [ALGB] (1) Real[1] pipe2.mediums.p_bar = {Modelica.SIunits.Conversions.to_bar(pipe2.mediums[1].p)} (381) [DISC] (1) protected Real valveOpening2.a (382) [ALGB] (2) Real[2] pipe2.flowModel.rhos = {ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe2.flowModel.Medium.density(pipe2.flowModel.states[$i1]) for $i1 in 1:2} (start = {150.0 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}, nominal = {500.0 for $i1 in 1:2}) (383) [ALGB] (3) Real[3] pipe1.flowModel.rhos = {ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe1.flowModel.Medium.density(pipe1.flowModel.states[$i1]) for $i1 in 1:3} (start = {150.0 for $i1 in 1:3}, min = {0.0 for $i1 in 1:3}, max = {1e5 for $i1 in 1:3}, nominal = {500.0 for $i1 in 1:3}) (384) [ALGB] (1) Real valveIncompressible1.V_flow = (-valveIncompressible1.port_b.m_flow) / Modelica.Fluid.Utilities.regStep(-valveIncompressible1.port_b.m_flow, ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible1.Medium.density(valveIncompressible1.state_a), ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveIncompressible1.Medium.density(valveIncompressible1.state_b), valveIncompressible1.m_flow_small) (385) [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}) (386) [ALGB] (1) protected Real pipe2.flowModel.dp_fric_nominal = sum({ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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) (387) [ALGB] (1) final input Real[1, 1] pipe1.heatTransfer.states.p = {pipe1.mediums[1].state.p} (start = {5e6 for $i1 in 1:1}, min = {611.657 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (388) [DISC] (1) Boolean[1] $SEV_19[$i1] (389) [DISC] (1) Integer pipe1.state_a.phase (min = 0, max = 2) (390) [ALGB] (1) protected Real valveIncompressible1.state_a.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (391) [ALGB] (1) Real[1] source.ports.p (start = {5e6 for $i1 in 1:1}, min = {611.657 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (392) [ALGB] (1) Real valveIncompressible1.dp (start = valveIncompressible1.dp_start) (393) [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) (394) [ALGB] (1) final input Real[1, 1] pipe1.heatTransfer.states.h = {pipe1.mediums[1].state.h} (start = {1e5 for $i1 in 1:1}, min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {5e5 for $i1 in 1:1}) (395) [ALGB] (1) protected Real[1] pipe3.flowModel.diameters = 0.5 * (pipe3.flowModel.dimensions[2:2] + pipe3.flowModel.dimensions[1:1]) (396) [ALGB] (2) Real[2] pipe3.flowModel.mus = {ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe3.flowModel.Medium.dynamicViscosity(pipe3.flowModel.states[$i1]) for $i1 in 1:2} (start = {0.001 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {0.001 for $i1 in 1:2}) (397) [ALGB] (1) protected Real valveIncompressible1.state_a.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (398) [ALGB] (1) final input Real[1, 1] pipe1.heatTransfer.states.d = {pipe1.mediums[1].state.d} (start = {150.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (399) [ALGB] (1) flow Real[1] pipe2.heatTransfer.heatPorts.Q_flow (400) [ALGB] (1) Real[1] pipe2.mediums.h (start = {pipe2.h_start}, StateSelect = prefer) (401) [ALGB] (1) protected Real valveIncompressible1.state_a.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (402) [ALGB] (1) Real[1] pipe2.mediums.d (start = {150.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}, StateSelect = default) (403) [ALGB] (1) Real[1] pipe3.Wb_flows (404) [ALGB] (2) final Real[2] pipe1.flowModel.pathLengths = pipe1.pathLengths (405) [ALGB] (1) Real[1] pipe1.mediums.p_bar = {Modelica.SIunits.Conversions.to_bar(pipe1.mediums[1].p)} (406) [ALGB] (1) Real pipe2.state_b.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (407) [ALGB] (3) final Real[3] pipe1.flowModel.vs = pipe1.vsFM (408) [ALGB] (2) Real[2] pipe1.flowModel.pathLengths_internal = pipe1.flowModel.pathLengths (409) [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 = {273.15 for $i1 in 1:1}, max = {2273.15 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) System Equations (373/514) **************************** (1) [SCAL] (1) $FUN_1 = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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_431) (2) [ARRY] (1) pipe1.mediums.phase = pipe1.mediums.state.phase ($RES_SIM_255) (3) [ARRY] (1) pipe3.mediums.p_bar = {1e-5 * pipe3.mediums[1].p} ($RES_BND_380) (4) [SCAL] (1) $FUN_2 = sum(pipe1.flowModel.dps_fg) ($RES_$AUX_430) (5) [ARRY] (1) pipe1.mediums.d = pipe1.mediums.state.d ($RES_SIM_256) (6) [ARRY] (1) pipe3.mediums.T_degC = {(-273.15) + pipe3.mediums[1].T} ($RES_BND_381) (7) [ARRY] (1) pipe1.mediums.T = pipe1.mediums.state.T ($RES_SIM_257) (8) [ARRY] (2) pipe3.flowModel.vs = pipe3.vsFM ($RES_BND_382) (9) [ARRY] (1) pipe1.mediums.p = pipe1.mediums.state.p ($RES_SIM_258) (10) [ARRY] (2) pipe3.flowModel.crossAreas = pipe3.crossAreasFM ($RES_BND_383) (11) [ARRY] (1) pipe1.mediums.h = pipe1.mediums.state.h ($RES_SIM_259) (12) [ARRY] (2) pipe3.flowModel.dimensions = pipe3.dimensionsFM ($RES_BND_384) (13) [ARRY] (2) pipe3.flowModel.roughnesses = pipe3.roughnessesFM ($RES_BND_385) (14) [ARRY] (1) pipe3.flowModel.dheights = pipe3.dheightsFM ($RES_BND_386) (15) [ARRY] (1) pipe3.flowModel.pathLengths = pipe3.pathLengths ($RES_BND_387) (16) [FOR-] (2) ($RES_BND_388) (16) [----] for $i1 in 1:2 loop (16) [----] [SCAL] (1) pipe3.flowModel.rhos[$i1] = pipe3.flowModel.states.d ($RES_BND_389) (16) [----] end for; (17) [SCAL] (1) sink.medium.phase = sink.medium.state.phase ($RES_SIM_177) (18) [SCAL] (1) sink.medium.d = sink.medium.state.d ($RES_SIM_178) (19) [SCAL] (1) -((-273.15) - sink.medium.T_degC) = sink.medium.state.T ($RES_SIM_179) (20) [SCAL] (1) $FUN_3 = semiLinear(pipe1.port_a.m_flow, source.ports[1].h_outflow, pipe1.mediums[1].h) ($RES_$AUX_429) (21) [SCAL] (1) $FUN_4 = semiLinear(pipe1.port_b.m_flow, splitter.port_3.h_outflow, pipe1.mediums[1].h) ($RES_$AUX_428) (22) [SCAL] (1) $FUN_5 = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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_427) (23) [SCAL] (1) $FUN_6 = sum(pipe2.flowModel.dps_fg) ($RES_$AUX_426) (24) [SCAL] (1) $FUN_7 = semiLinear(pipe2.port_a.m_flow, splitter.port_3.h_outflow, pipe2.mediums[1].h) ($RES_$AUX_425) (25) [SCAL] (1) pipe1.mediums[1].u = pipe1.mediums[1].h - pipe1.mediums[1].p / pipe1.mediums[1].d ($RES_SIM_261) (26) [SCAL] (1) $FUN_8 = semiLinear(valveIncompressible.port_b.m_flow, valveIncompressible.port_a.h_outflow, pipe2.mediums[1].h) ($RES_$AUX_424) (27) [ARRY] (1) pipe1.mediums.sat.psat = pipe1.mediums.p ($RES_SIM_262) (28) [SCAL] (1) $FUN_9 = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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_423) (29) [SCAL] (1) pipe1.state_a.phase = 0 ($RES_SIM_437) (30) [SCAL] (1) pipe1.mediums[1].sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(pipe1.mediums[1].p) ($RES_SIM_263) (31) [SCAL] (1) $FUN_10 = sum(pipe3.flowModel.dps_fg) ($RES_$AUX_422) (32) [SCAL] (1) pipe1.state_a.h = source.ports[1].h_outflow ($RES_SIM_438) (33) [SCAL] (1) pipe1.mediums[1].T = Modelica.Media.Water.IF97_Utilities.T_props_ph(pipe1.mediums[1].p, pipe1.mediums[1].h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pipe1.mediums[1].p, pipe1.mediums[1].h, pipe1.mediums[1].phase, 0)) ($RES_SIM_264) (34) [SCAL] (1) $FUN_11 = semiLinear(pipe3.port_a.m_flow, splitter.port_3.h_outflow, pipe3.mediums[1].h) ($RES_$AUX_421) (35) [SCAL] (1) pipe1.state_a.d = Modelica.Media.Water.IF97_Utilities.rho_ph(pipe1.port_a.p, source.ports[1].h_outflow, 0, 0) ($RES_SIM_439) (36) [SCAL] (1) pipe1.mediums[1].d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(pipe1.mediums[1].p, pipe1.mediums[1].h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pipe1.mediums[1].p, pipe1.mediums[1].h, pipe1.mediums[1].phase, 0)) ($RES_SIM_265) (37) [FOR-] (2) ($RES_BND_390) (37) [----] for $i1 in 1:2 loop (37) [----] [SCAL] (1) pipe3.flowModel.mus[$i1] = Modelica.Media.Water.IF97_Utilities.dynamicViscosity(pipe3.flowModel.states.d, pipe3.flowModel.states.h, pipe3.flowModel.states.phase, pipe3.flowModel.states.p) ($RES_BND_391) (37) [----] end for; (38) [SCAL] (1) $FUN_12 = semiLinear(valveIncompressible1.port_b.m_flow, valveIncompressible1.port_a.h_outflow, pipe3.mediums[1].h) ($RES_$AUX_420) (39) [SCAL] (1) pipe1.mediums[1].phase = if $SEV_40 then 1 else 2 ($RES_SIM_266) (40) [ARRY] (1) pipe3.flowModel.pathLengths_internal = pipe3.flowModel.pathLengths ($RES_BND_392) (41) [SCAL] (1) source.ports[1].p = source.p ($RES_SIM_268) (42) [SCAL] (1) pipe3.flowModel.Res_turbulent_internal[1] = pipe3.flowModel.Re_turbulent ($RES_BND_393) (43) [SCAL] (1) source.ports[1].h_outflow = source.medium.h ($RES_SIM_269) (44) [ARRY] (1) pipe3.flowModel.diameters = 0.5 * (pipe3.flowModel.dimensions[2:2] + pipe3.flowModel.dimensions[1:1]) ($RES_BND_394) (45) [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_396) (46) [ARRY] (1) pipe3.heatTransfer.Ts = {pipe3.heatTransfer.states.h} ($RES_BND_398) (47) [ARRY] (1) pipe3.heatTransfer.vs = pipe3.vs ($RES_BND_399) (48) [SCAL] (1) sink.medium.h = sink.medium.state.h ($RES_SIM_181) (49) [SCAL] (1) sink.medium.u = sink.medium.h - sink.p / sink.medium.d ($RES_SIM_183) (50) [SCAL] (1) sink.medium.sat.psat = sink.p ($RES_SIM_184) (51) [SCAL] (1) -((-273.15) - sink.medium.T_degC) = Modelica.Media.Water.IF97_Utilities.T_props_ph(sink.p, sink.medium.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(sink.p, sink.medium.h, sink.medium.phase, 0)) ($RES_SIM_186) (52) [SCAL] (1) sink.medium.d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(sink.p, sink.medium.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(sink.p, sink.medium.h, sink.medium.phase, 0)) ($RES_SIM_187) (53) [SCAL] (1) sink.medium.phase = if $SEV_24 then 1 else 2 ($RES_SIM_188) (54) [SCAL] (1) pipe1.state_a.T = Modelica.Media.Water.IF97_Utilities.T_ph(pipe1.port_a.p, source.ports[1].h_outflow, 0, 0) ($RES_SIM_440) (55) [TUPL] (4) ($FUN_13, $FUN_14, $FUN_15, $FUN_16) = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveOpening1.getInterpolationCoefficients(valveOpening1.table, valveOpening1.offset, valveOpening1.startTime, time, valveOpening1.last, 1e-13, valveOpening1.shiftTime) ($RES_$AUX_419) (56) [SCAL] (1) pipe1.state_a.p = pipe1.port_a.p ($RES_SIM_441) (57) [TUPL] (4) ($FUN_17, $FUN_18, $FUN_19, $FUN_20) = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.valveOpening2.getInterpolationCoefficients(valveOpening2.table, valveOpening2.offset, valveOpening2.startTime, time, valveOpening2.last, 1e-13, valveOpening2.shiftTime) ($RES_$AUX_418) (58) [SCAL] (1) pipe1.state_b.phase = 0 ($RES_SIM_442) (59) [SCAL] (1) $FUN_21 = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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_417) (60) [SCAL] (1) pipe1.state_b.h = splitter.port_3.h_outflow ($RES_SIM_443) (61) [SCAL] (1) pipe3.flowModel.dp_fric_nominal = sum({$FUN_21}) ($RES_$AUX_416) (62) [SCAL] (1) pipe1.state_b.d = Modelica.Media.Water.IF97_Utilities.rho_ph(99999.99999999999 * splitter.medium.p_bar, splitter.port_3.h_outflow, 0, 0) ($RES_SIM_444) (63) [SCAL] (1) source.medium.h = Modelica.Media.Water.IF97_Utilities.h_pT(source.p, source.T, 0) ($RES_SIM_270) (64) [SCAL] (1) $FUN_23 = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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_415) (65) [SCAL] (1) pipe1.state_b.T = Modelica.Media.Water.IF97_Utilities.T_ph(99999.99999999999 * splitter.medium.p_bar, splitter.port_3.h_outflow, 0, 0) ($RES_SIM_445) (66) [SCAL] (1) pipe2.flowModel.dp_fric_nominal = sum({$FUN_23}) ($RES_$AUX_414) (67) [SCAL] (1) pipe1.state_b.p = 99999.99999999999 * splitter.medium.p_bar ($RES_SIM_446) (68) [SCAL] (1) $FUN_25 = ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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_413) (69) [SCAL] (1) valveIncompressible.state_a.phase = 0 ($RES_SIM_447) (70) [SCAL] (1) pipe1.flowModel.dp_fric_nominal = sum($FUN_25 for $i1 in 1:2) ($RES_$AUX_412) (71) [SCAL] (1) valveIncompressible.state_a.h = valveIncompressible.port_b.h_outflow ($RES_SIM_448) (72) [SCAL] (1) valveIncompressible.state_a.d = Modelica.Media.Water.IF97_Utilities.rho_ph(pipe2.port_b.p, valveIncompressible.port_b.h_outflow, 0, 0) ($RES_SIM_449) (73) [SCAL] (1) valveIncompressible1.dp = pipe3.port_b.p - valveIncompressible1.port_b.p ($RES_SIM_192) (74) [SCAL] (1) valveIncompressible1.port_a.h_outflow = sink.ports[2].h_outflow ($RES_SIM_196) (75) [SCAL] (1) -valveIncompressible1.port_b.m_flow = homotopy(valveIncompressible1.Av * valveIncompressible1.relativeFlowCoefficient * smooth(2, if $SEV_25 then (if $SEV_26 then sqrt(valveIncompressible1.state_a.d) else 0.0) * sqrt(valveIncompressible1.dp) else if $SEV_27 then -(if $SEV_28 then sqrt(valveIncompressible1.state_b.d) else 0.0) * sqrt(abs(valveIncompressible1.dp)) else if $SEV_29 then Modelica.Fluid.Utilities.regRoot2.regRoot2_utility(valveIncompressible1.dp, valveIncompressible1.dp_turbulent, valveIncompressible1.state_a.d, valveIncompressible1.state_b.d, false, 1.0) else -Modelica.Fluid.Utilities.regRoot2.regRoot2_utility(-valveIncompressible1.dp, valveIncompressible1.dp_turbulent, valveIncompressible1.state_b.d, valveIncompressible1.state_a.d, false, 1.0)), (valveIncompressible1.dp * valveIncompressible1.m_flow_nominal * valveIncompressible1.relativeFlowCoefficient) / valveIncompressible1.dp_nominal) ($RES_SIM_197) (76) [SCAL] (1) valveIncompressible1.minLimiter.y = smooth(0, noEvent(if $SEV_30 then valveIncompressible1.minLimiter.uMin else valveIncompressible1.relativeFlowCoefficient)) ($RES_SIM_199) (77) [SCAL] (1) valveIncompressible.state_a.T = Modelica.Media.Water.IF97_Utilities.T_ph(pipe2.port_b.p, valveIncompressible.port_b.h_outflow, 0, 0) ($RES_SIM_450) (78) [SCAL] (1) valveIncompressible.state_a.p = pipe2.port_b.p ($RES_SIM_451) (79) [SCAL] (1) valveIncompressible.state_b.phase = 0 ($RES_SIM_452) (80) [SCAL] (1) $TEV_0 = $PRE.valveOpening2.nextEvent ($RES_EVT_497) (81) [SCAL] (1) valveIncompressible.state_b.h = sink.ports[1].h_outflow ($RES_SIM_453) (82) [SCAL] (1) $TEV_1 = $PRE.valveOpening1.nextEvent ($RES_EVT_498) (83) [SCAL] (1) valveIncompressible.state_b.d = Modelica.Media.Water.IF97_Utilities.rho_ph(valveIncompressible.port_b.p, sink.ports[1].h_outflow, 0, 0) ($RES_SIM_454) (84) [SCAL] (1) $SEV_8 = (-pipe2.port_a.m_flow) > 0.0 ($RES_EVT_499) (85) [SCAL] (1) source.medium.phase = source.medium.state.phase ($RES_SIM_280) (86) [SCAL] (1) valveIncompressible.state_b.T = Modelica.Media.Water.IF97_Utilities.T_ph(valveIncompressible.port_b.p, sink.ports[1].h_outflow, 0, 0) ($RES_SIM_455) (87) [SCAL] (1) source.medium.d = source.medium.state.d ($RES_SIM_281) (88) [SCAL] (1) valveIncompressible.state_b.p = valveIncompressible.port_b.p ($RES_SIM_456) (89) [SCAL] (1) -((-273.15) - source.medium.T_degC) = source.medium.state.T ($RES_SIM_282) (90) [SCAL] (1) valveIncompressible1.state_a.phase = 0 ($RES_SIM_457) (91) [SCAL] (1) valveIncompressible1.state_a.h = valveIncompressible1.port_b.h_outflow ($RES_SIM_458) (92) [SCAL] (1) source.medium.h = source.medium.state.h ($RES_SIM_284) (93) [SCAL] (1) valveIncompressible1.state_a.d = Modelica.Media.Water.IF97_Utilities.rho_ph(pipe3.port_b.p, valveIncompressible1.port_b.h_outflow, 0, 0) ($RES_SIM_459) (94) [SCAL] (1) source.medium.u = source.medium.h - source.p / source.medium.d ($RES_SIM_286) (95) [SCAL] (1) source.medium.sat.psat = source.p ($RES_SIM_287) (96) [SCAL] (1) -((-273.15) - source.medium.T_degC) = Modelica.Media.Water.IF97_Utilities.T_props_ph(source.p, source.medium.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(source.p, source.medium.h, source.medium.phase, 0)) ($RES_SIM_289) (97) [SCAL] (1) valveIncompressible1.state_a.T = Modelica.Media.Water.IF97_Utilities.T_ph(pipe3.port_b.p, valveIncompressible1.port_b.h_outflow, 0, 0) ($RES_SIM_460) (98) [SCAL] (1) valveIncompressible1.state_a.p = pipe3.port_b.p ($RES_SIM_461) (99) [SCAL] (1) valveIncompressible1.state_b.phase = 0 ($RES_SIM_462) (100) [SCAL] (1) valveIncompressible1.state_b.h = sink.ports[2].h_outflow ($RES_SIM_463) (101) [SCAL] (1) valveIncompressible1.state_b.d = Modelica.Media.Water.IF97_Utilities.rho_ph(valveIncompressible1.port_b.p, sink.ports[2].h_outflow, 0, 0) ($RES_SIM_464) (102) [SCAL] (1) source.medium.d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(source.p, source.medium.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(source.p, source.medium.h, source.medium.phase, 0)) ($RES_SIM_290) (103) [SCAL] (1) valveIncompressible1.state_b.T = Modelica.Media.Water.IF97_Utilities.T_ph(valveIncompressible1.port_b.p, sink.ports[2].h_outflow, 0, 0) ($RES_SIM_465) (104) [SCAL] (1) source.medium.phase = if $SEV_43 then 1 else 2 ($RES_SIM_291) (105) [SCAL] (1) valveIncompressible1.state_b.p = valveIncompressible1.port_b.p ($RES_SIM_466) (106) [SCAL] (1) pipe2.state_a.phase = 0 ($RES_SIM_467) (107) [SCAL] (1) pipe2.state_a.h = splitter.port_3.h_outflow ($RES_SIM_468) (108) [SCAL] (1) pipe3.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_294) (109) [SCAL] (1) pipe2.state_a.d = Modelica.Media.Water.IF97_Utilities.rho_ph(99999.99999999999 * splitter.medium.p_bar, splitter.port_3.h_outflow, 0, 0) ($RES_SIM_469) (110) [SCAL] (1) pipe2.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_296) (111) [SCAL] (1) sink.ports[2].m_flow + valveIncompressible1.port_b.m_flow = 0.0 ($RES_SIM_299) (112) [SCAL] (1) pipe2.state_a.T = Modelica.Media.Water.IF97_Utilities.T_ph(99999.99999999999 * splitter.medium.p_bar, splitter.port_3.h_outflow, 0, 0) ($RES_SIM_470) (113) [SCAL] (1) pipe2.state_a.p = 99999.99999999999 * splitter.medium.p_bar ($RES_SIM_471) (114) [ALGO] (5) ($RES_SIM_16) (114) [----] 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); (114) [----] when {time >= $PRE.valveOpening2.nextEvent, initial()} then (114) [----] (valveOpening2.a, valveOpening2.b, valveOpening2.nextEventScaled, valveOpening2.last) := ($FUN_17, $FUN_18, $FUN_19, $FUN_20); (114) [----] valveOpening2.nextEvent := valveOpening2.nextEventScaled; (114) [----] end when; (115) [ALGO] (5) ($RES_SIM_17) (115) [----] 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); (115) [----] when {time >= $PRE.valveOpening1.nextEvent, initial()} then (115) [----] (valveOpening1.a, valveOpening1.b, valveOpening1.nextEventScaled, valveOpening1.last) := ($FUN_13, $FUN_14, $FUN_15, $FUN_16); (115) [----] valveOpening1.nextEvent := valveOpening1.nextEventScaled; (115) [----] end when; (116) [SCAL] (1) pipe2.state_b.h = valveIncompressible.port_a.h_outflow ($RES_SIM_473) (117) [SCAL] (1) $DER.splitter.m = splitter.mb_flow ($RES_SIM_18) (118) [SCAL] (1) pipe2.state_b.d = Modelica.Media.Water.IF97_Utilities.rho_ph(pipe2.port_b.p, valveIncompressible.port_a.h_outflow, 0, 0) ($RES_SIM_474) (119) [SCAL] (1) $DER.splitter.U = splitter.Hb_flow ($RES_SIM_19) (120) [SCAL] (1) pipe2.state_b.T = Modelica.Media.Water.IF97_Utilities.T_ph(pipe2.port_b.p, valveIncompressible.port_a.h_outflow, 0, 0) ($RES_SIM_475) (121) [SCAL] (1) pipe2.state_b.p = pipe2.port_b.p ($RES_SIM_476) (122) [SCAL] (1) pipe3.state_a.phase = 0 ($RES_SIM_477) (123) [SCAL] (1) pipe3.state_a.h = splitter.port_3.h_outflow ($RES_SIM_478) (124) [SCAL] (1) pipe3.state_a.d = Modelica.Media.Water.IF97_Utilities.rho_ph(99999.99999999999 * splitter.medium.p_bar, splitter.port_3.h_outflow, 0, 0) ($RES_SIM_479) (125) [SCAL] (1) splitter.U = splitter.m * splitter.medium.u ($RES_SIM_20) (126) [SCAL] (1) splitter.m = splitter.V * splitter.medium.d ($RES_SIM_21) (127) [SCAL] (1) splitter.Hb_flow = smooth(0, -pipe2.port_a.m_flow * (if $SEV_8 then pipe2.port_a.h_outflow else splitter.port_3.h_outflow)) + smooth(0, -pipe3.port_a.m_flow * (if $SEV_9 then pipe3.port_a.h_outflow else splitter.port_3.h_outflow)) + smooth(0, -pipe1.port_b.m_flow * (if $SEV_10 then pipe1.port_b.h_outflow else splitter.port_3.h_outflow)) ($RES_SIM_24) (128) [SCAL] (1) pipe3.state_a.T = Modelica.Media.Water.IF97_Utilities.T_ph(99999.99999999999 * splitter.medium.p_bar, splitter.port_3.h_outflow, 0, 0) ($RES_SIM_480) (129) [SCAL] (1) pipe3.state_a.p = 99999.99999999999 * splitter.medium.p_bar ($RES_SIM_481) (130) [SCAL] (1) pipe3.state_b.h = valveIncompressible1.port_a.h_outflow ($RES_SIM_483) (131) [SCAL] (1) splitter.mb_flow = -(pipe2.port_a.m_flow + pipe3.port_a.m_flow + pipe1.port_b.m_flow) ($RES_SIM_28) (132) [SCAL] (1) pipe3.state_b.d = Modelica.Media.Water.IF97_Utilities.rho_ph(pipe3.port_b.p, valveIncompressible1.port_a.h_outflow, 0, 0) ($RES_SIM_484) (133) [SCAL] (1) pipe3.state_b.T = Modelica.Media.Water.IF97_Utilities.T_ph(pipe3.port_b.p, valveIncompressible1.port_a.h_outflow, 0, 0) ($RES_SIM_485) (134) [SCAL] (1) pipe3.state_b.p = pipe3.port_b.p ($RES_SIM_486) (135) [SCAL] (1) splitter.medium.phase = splitter.medium.state.phase ($RES_SIM_36) (136) [SCAL] (1) splitter.medium.d = splitter.medium.state.d ($RES_SIM_37) (137) [SCAL] (1) -((-273.15) - splitter.medium.T_degC) = splitter.medium.state.T ($RES_SIM_38) (138) [SCAL] (1) 99999.99999999999 * splitter.medium.p_bar = splitter.medium.state.p ($RES_SIM_39) (139) [SCAL] (1) splitter.port_3.h_outflow = splitter.medium.state.h ($RES_SIM_40) (140) [SCAL] (1) splitter.medium.u = splitter.port_3.h_outflow - (99999.99999999999 * splitter.medium.p_bar) / splitter.medium.d ($RES_SIM_42) (141) [SCAL] (1) splitter.medium.sat.psat = 99999.99999999999 * splitter.medium.p_bar ($RES_SIM_43) (142) [SCAL] (1) splitter.medium.sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(99999.99999999999 * splitter.medium.p_bar) ($RES_SIM_44) (143) [SCAL] (1) -((-273.15) - splitter.medium.T_degC) = Modelica.Media.Water.IF97_Utilities.T_props_ph(99999.99999999999 * splitter.medium.p_bar, splitter.port_3.h_outflow, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * splitter.medium.p_bar, splitter.port_3.h_outflow, splitter.medium.phase, 0)) ($RES_SIM_45) (144) [SCAL] (1) splitter.medium.d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(99999.99999999999 * splitter.medium.p_bar, splitter.port_3.h_outflow, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * splitter.medium.p_bar, splitter.port_3.h_outflow, splitter.medium.phase, 0)) ($RES_SIM_46) (145) [SCAL] (1) splitter.medium.phase = if $SEV_13 then 1 else 2 ($RES_SIM_47) (146) [SCAL] (1) valveIncompressible1.relativeFlowCoefficient = valveOpening2.a * time + valveOpening2.b ($RES_SIM_49) (147) [SCAL] (1) valveIncompressible.relativeFlowCoefficient = valveOpening1.a * time + valveOpening1.b ($RES_SIM_51) (148) [SCAL] (1) $DER.pipe3.ms[1] = pipe3.mb_flows[1] ($RES_SIM_53) (149) [SCAL] (1) $DER.pipe3.Us[1] = pipe3.Wb_flows[1] + pipe3.Hb_flows[1] + pipe3.Qb_flows[1] ($RES_SIM_54) (150) [SCAL] (1) pipe3.ms[1] = pipe3.fluidVolumes[1] * pipe3.mediums[1].d ($RES_SIM_55) (151) [SCAL] (1) pipe3.Us[1] = pipe3.ms[1] * pipe3.mediums[1].u ($RES_SIM_56) (152) [SCAL] (1) pipe3.port_b.p = pipe3.mediums[1].p ($RES_SIM_57) (153) [ARRY] (1) pipe3.vsFM[2:2] = pipe3.vs ($RES_SIM_58) (154) [SCAL] (1) pipe3.vsFM[1] = ((pipe3.m_flows[1] / pipe3.state_a.d) / pipe3.crossAreas[1]) / pipe3.nParallel ($RES_SIM_59) (155) [SCAL] (1) pipe3.mediums[1].u = pipe3.mediums[1].h - pipe3.mediums[1].p / pipe3.mediums[1].d ($RES_SIM_101) (156) [ARRY] (1) pipe3.mediums.sat.psat = pipe3.mediums.p ($RES_SIM_102) (157) [SCAL] (1) pipe3.mediums[1].sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(pipe3.mediums[1].p) ($RES_SIM_103) (158) [SCAL] (1) pipe3.mediums[1].T = Modelica.Media.Water.IF97_Utilities.T_props_ph(pipe3.mediums[1].p, pipe3.mediums[1].h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pipe3.mediums[1].p, pipe3.mediums[1].h, pipe3.mediums[1].phase, 0)) ($RES_SIM_104) (159) [SCAL] (1) pipe3.mediums[1].d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(pipe3.mediums[1].p, pipe3.mediums[1].h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pipe3.mediums[1].p, pipe3.mediums[1].h, pipe3.mediums[1].phase, 0)) ($RES_SIM_105) (160) [SCAL] (1) pipe3.mediums[1].phase = if $SEV_17 then 1 else 2 ($RES_SIM_106) (161) [ARRY] (15) pipe1.flowModel.states = pipe1.statesFM ($RES_BND_406) (162) [ARRY] (5) pipe1.heatTransfer.states = pipe1.mediums.state ($RES_BND_407) (163) [SCAL] (1) $DER.pipe2.ms[1] = pipe2.mb_flows[1] ($RES_SIM_108) (164) [ARRY] (10) pipe2.flowModel.states = pipe2.statesFM ($RES_BND_408) (165) [SCAL] (1) $DER.pipe2.Us[1] = pipe2.Wb_flows[1] + pipe2.Hb_flows[1] + pipe2.Qb_flows[1] ($RES_SIM_109) (166) [ARRY] (5) pipe2.heatTransfer.states = pipe2.mediums.state ($RES_BND_409) (167) [ARRY] (1) pipe3.m_flows[1:1] = pipe3.flowModel.m_flows[:] ($RES_SIM_60) (168) [ARRY] (5) pipe3.statesFM[2:2] = pipe3.mediums[:].state ($RES_SIM_61) (169) [RECD] (5) pipe3.statesFM[1] = pipe3.state_a ($RES_SIM_62) (170) [SCAL] (1) valveIncompressible1.port_b.h_outflow = pipe3.mediums[1].h ($RES_SIM_65) (171) [SCAL] (1) pipe3.port_a.h_outflow = pipe3.mediums[1].h ($RES_SIM_66) (172) [SCAL] (1) valveIncompressible1.port_b.m_flow = -pipe3.m_flows[2] ($RES_SIM_67) (173) [ARRY] (1) pipe1.fluidVolumes = {10.0 * pipe1.crossAreas[1]} .* pipe1.nParallel ($RES_BND_320) (174) [SCAL] (1) pipe3.port_a.m_flow = pipe3.m_flows[1] ($RES_SIM_68) (175) [ARRY] (1) pipe1.mediums.p_bar = {1e-5 * pipe1.mediums[1].p} ($RES_BND_321) (176) [ARRY] (1) pipe1.mediums.T_degC = {(-273.15) + pipe1.mediums[1].T} ($RES_BND_322) (177) [SCAL] (1) pipe3.H_flows[2] = -$FUN_12 ($RES_SIM_69) (178) [ARRY] (3) pipe1.flowModel.vs = pipe1.vsFM ($RES_BND_323) (179) [ARRY] (3) pipe1.flowModel.crossAreas = pipe1.crossAreasFM ($RES_BND_324) (180) [ARRY] (3) pipe1.flowModel.dimensions = pipe1.dimensionsFM ($RES_BND_325) (181) [ARRY] (3) pipe1.flowModel.roughnesses = pipe1.roughnessesFM ($RES_BND_326) (182) [ARRY] (2) pipe1.flowModel.dheights = pipe1.dheightsFM ($RES_BND_327) (183) [ARRY] (2) pipe1.flowModel.pathLengths = pipe1.pathLengths ($RES_BND_328) (184) [FOR-] (3) ($RES_BND_329) (184) [----] for $i1 in 1:3 loop (184) [----] [SCAL] (1) pipe1.flowModel.rhos[$i1] = pipe1.flowModel.states.d ($RES_BND_330) (184) [----] end for; (185) [SCAL] (1) pipe2.ms[1] = pipe2.fluidVolumes[1] * pipe2.mediums[1].d ($RES_SIM_110) (186) [ARRY] (10) pipe3.flowModel.states = pipe3.statesFM ($RES_BND_410) (187) [SCAL] (1) pipe2.Us[1] = pipe2.ms[1] * pipe2.mediums[1].u ($RES_SIM_111) (188) [ARRY] (5) pipe3.heatTransfer.states = pipe3.mediums.state ($RES_BND_411) (189) [SCAL] (1) pipe2.port_b.p = pipe2.mediums[1].p ($RES_SIM_112) (190) [ARRY] (1) pipe2.vsFM[2:2] = pipe2.vs ($RES_SIM_113) (191) [SCAL] (1) pipe2.vsFM[1] = ((pipe2.m_flows[1] / pipe2.state_a.d) / pipe2.crossAreas[1]) / pipe2.nParallel ($RES_SIM_114) (192) [ARRY] (1) pipe2.m_flows[1:1] = pipe2.flowModel.m_flows[:] ($RES_SIM_115) (193) [ARRY] (5) pipe2.statesFM[2:2] = pipe2.mediums[:].state ($RES_SIM_116) (194) [RECD] (5) pipe2.statesFM[1] = pipe2.state_a ($RES_SIM_117) (195) [SCAL] (1) pipe3.H_flows[1] = $FUN_11 ($RES_SIM_70) (196) [SCAL] (1) pipe3.mb_flows[1] = pipe3.m_flows[1] - pipe3.m_flows[2] ($RES_SIM_71) (197) [SCAL] (1) pipe3.Hb_flows[1] = pipe3.H_flows[1] - pipe3.H_flows[2] ($RES_SIM_72) (198) [ARRY] (2) pipe3.roughnessesFM[:] = {pipe3.roughnesses[1], pipe3.roughnesses[1]} ($RES_SIM_73) (199) [SCAL] (1) valveIncompressible.dp = pipe2.port_b.p - valveIncompressible.port_b.p ($RES_SIM_202) (200) [ARRY] (2) pipe3.dimensionsFM[:] = {pipe3.dimensions[1], pipe3.dimensions[1]} ($RES_SIM_74) (201) [ARRY] (2) pipe3.crossAreasFM[:] = {pipe3.crossAreas[1], pipe3.crossAreas[1]} ($RES_SIM_75) (202) [ARRY] (1) pipe3.dheightsFM[:] = {0.0} ($RES_SIM_76) (203) [SCAL] (1) $SEV_9 = (-pipe3.port_a.m_flow) > 0.0 ($RES_EVT_500) (204) [ARRY] (1) pipe3.pathLengths[:] = {10.0} ($RES_SIM_77) (205) [SCAL] (1) $SEV_10 = (-pipe1.port_b.m_flow) > 0.0 ($RES_EVT_501) (206) [FOR-] (3) ($RES_BND_331) (206) [----] for $i1 in 1:3 loop (206) [----] [SCAL] (1) pipe1.flowModel.mus[$i1] = Modelica.Media.Water.IF97_Utilities.dynamicViscosity(pipe1.flowModel.states.d, pipe1.flowModel.states.h, pipe1.flowModel.states.phase, pipe1.flowModel.states.p) ($RES_BND_332) (206) [----] end for; (207) [ARRY] (1) pipe3.Wb_flows = (pipe3.crossAreas * pipe3.vs * (($FUN_10 + pipe3.port_b.p) - ((system.g * {0.0}) / pipe3.mediums.d + 99999.99999999999 * splitter.medium.p_bar))) / ({1.0} * {1.0}) .* {1.0} .* pipe3.nParallel ($RES_SIM_78) (208) [SCAL] (1) valveIncompressible.port_a.h_outflow = sink.ports[1].h_outflow ($RES_SIM_206) (209) [ARRY] (1) pipe3.Qb_flows = pipe3.heatTransfer.Q_flows ($RES_SIM_79) (210) [SCAL] (1) -valveIncompressible.port_b.m_flow = homotopy(valveIncompressible.Av * valveIncompressible.relativeFlowCoefficient * smooth(2, if $SEV_31 then (if $SEV_32 then sqrt(valveIncompressible.state_a.d) else 0.0) * sqrt(valveIncompressible.dp) else if $SEV_33 then -(if $SEV_34 then sqrt(valveIncompressible.state_b.d) else 0.0) * sqrt(abs(valveIncompressible.dp)) else if $SEV_35 then Modelica.Fluid.Utilities.regRoot2.regRoot2_utility(valveIncompressible.dp, valveIncompressible.dp_turbulent, valveIncompressible.state_a.d, valveIncompressible.state_b.d, false, 1.0) else -Modelica.Fluid.Utilities.regRoot2.regRoot2_utility(-valveIncompressible.dp, valveIncompressible.dp_turbulent, valveIncompressible.state_b.d, valveIncompressible.state_a.d, false, 1.0)), (valveIncompressible.dp * valveIncompressible.m_flow_nominal * valveIncompressible.relativeFlowCoefficient) / valveIncompressible.dp_nominal) ($RES_SIM_207) (211) [ARRY] (2) pipe1.flowModel.pathLengths_internal = pipe1.flowModel.pathLengths ($RES_BND_333) (212) [SCAL] (1) $SEV_13 = (splitter.port_3.h_outflow < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(splitter.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(splitter.medium.sat.psat)) or splitter.port_3.h_outflow > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(splitter.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(splitter.medium.sat.psat))) or 99999.99999999999 * splitter.medium.p_bar > 2.2064e7 ($RES_EVT_504) (213) [FOR-] (2) ($RES_BND_334) (213) [----] for $i1 in 1:2 loop (213) [----] [SCAL] (1) pipe1.flowModel.Res_turbulent_internal[$i1] = pipe1.flowModel.Re_turbulent ($RES_BND_335) (213) [----] end for; (214) [SCAL] (1) valveIncompressible.minLimiter.y = smooth(0, noEvent(if $SEV_36 then valveIncompressible.minLimiter.uMin else valveIncompressible.relativeFlowCoefficient)) ($RES_SIM_209) (215) [SCAL] (1) $SEV_14 = pipe3.flowModel.m_flows[1] > 0.0 ($RES_EVT_505) (216) [SCAL] (1) $SEV_15[1] = pipe3.mediums[1].p >= 0.0 ($RES_EVT_506) (217) [ARRY] (2) pipe1.flowModel.diameters = 0.5 * (pipe1.flowModel.dimensions[2:3] + pipe1.flowModel.dimensions[1:2]) ($RES_BND_336) (218) [SCAL] (1) $SEV_17 = (pipe3.mediums[1].h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pipe3.mediums.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(pipe3.mediums.sat.psat)) or pipe3.mediums[1].h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pipe3.mediums.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(pipe3.mediums.sat.psat))) or pipe3.mediums[1].p > 2.2064e7 ($RES_EVT_508) (219) [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_338) (220) [SCAL] (1) $SEV_18 = pipe2.flowModel.m_flows[1] > 0.0 ($RES_EVT_509) (221) [SCAL] (1) valveIncompressible.port_b.h_outflow = pipe2.mediums[1].h ($RES_SIM_120) (222) [SCAL] (1) pipe2.port_a.h_outflow = pipe2.mediums[1].h ($RES_SIM_121) (223) [SCAL] (1) valveIncompressible.port_b.m_flow = -pipe2.m_flows[2] ($RES_SIM_122) (224) [SCAL] (1) pipe2.port_a.m_flow = pipe2.m_flows[1] ($RES_SIM_123) (225) [SCAL] (1) pipe2.H_flows[2] = -$FUN_8 ($RES_SIM_124) (226) [SCAL] (1) pipe2.H_flows[1] = $FUN_7 ($RES_SIM_125) (227) [SCAL] (1) pipe2.mb_flows[1] = pipe2.m_flows[1] - pipe2.m_flows[2] ($RES_SIM_126) (228) [SCAL] (1) pipe2.Hb_flows[1] = pipe2.H_flows[1] - pipe2.H_flows[2] ($RES_SIM_127) (229) [ARRY] (2) pipe2.roughnessesFM[:] = {pipe2.roughnesses[1], pipe2.roughnesses[1]} ($RES_SIM_128) (230) [ARRY] (2) pipe2.dimensionsFM[:] = {pipe2.dimensions[1], pipe2.dimensions[1]} ($RES_SIM_129) (231) [ARRY] (1) pipe3.heatTransfer.Q_flows = pipe3.heatTransfer.heatPorts.Q_flow ($RES_SIM_80) (232) [ARRY] (1) pipe3.heatTransfer.Ts = pipe3.heatTransfer.heatPorts.T ($RES_SIM_81) (233) [SCAL] (1) $DER.pipe1.ms[1] = pipe1.mb_flows[1] ($RES_SIM_210) (234) [ARRY] (1) {0.0} = pipe3.flowModel.Ib_flows - (pipe3.flowModel.Fs_fg + pipe3.flowModel.Fs_p) ($RES_SIM_82) (235) [SCAL] (1) $DER.pipe1.Us[1] = pipe1.Wb_flows[1] + pipe1.Hb_flows[1] + pipe1.Qb_flows[1] ($RES_SIM_211) (236) [ARRY] (1) pipe3.flowModel.Is = {pipe3.flowModel.m_flows[1] * pipe3.flowModel.pathLengths[1]} ($RES_SIM_83) (237) [SCAL] (1) pipe1.ms[1] = pipe1.fluidVolumes[1] * pipe1.mediums[1].d ($RES_SIM_212) (238) [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_84) (239) [SCAL] (1) pipe1.Us[1] = pipe1.ms[1] * pipe1.mediums[1].u ($RES_SIM_213) (240) [ARRY] (1) pipe3.flowModel.Fs_p = pipe3.flowModel.nParallel * {0.5 * (pipe3.flowModel.crossAreas[1] + pipe3.flowModel.crossAreas[2]) * (pipe3.flowModel.states.phase - pipe3.flowModel.states.phase)} ($RES_SIM_85) (241) [SCAL] (1) pipe1.vsFM[3] = ((pipe1.m_flows[2] / pipe1.state_b.d) / pipe1.crossAreas[1]) / pipe1.nParallel ($RES_SIM_214) (242) [ARRY] (1) pipe3.flowModel.Ib_flows = {0.0} ($RES_SIM_86) (243) [SCAL] (1) $SEV_19[1] = pipe2.mediums[1].p >= 0.0 ($RES_EVT_510) (244) [ARRY] (1) pipe1.vsFM[2:2] = pipe1.vs ($RES_SIM_215) (245) [ARRY] (1) pipe1.heatTransfer.Ts = {pipe1.heatTransfer.states.h} ($RES_BND_340) (246) [SCAL] (1) pipe3.flowModel.rhos_act[1] = noEvent(if $SEV_14 then pipe3.flowModel.rhos[1] else pipe3.flowModel.rhos[2]) ($RES_SIM_87) (247) [SCAL] (1) pipe1.vsFM[1] = ((pipe1.m_flows[1] / pipe1.state_a.d) / pipe1.crossAreas[1]) / pipe1.nParallel ($RES_SIM_216) (248) [ARRY] (1) pipe1.heatTransfer.vs = pipe1.vs ($RES_BND_341) (249) [SCAL] (1) pipe3.flowModel.mus_act[1] = noEvent(if $SEV_14 then pipe3.flowModel.mus[1] else pipe3.flowModel.mus[2]) ($RES_SIM_88) (250) [SCAL] (1) $SEV_21 = (pipe2.mediums[1].h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pipe2.mediums.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(pipe2.mediums.sat.psat)) or pipe2.mediums[1].h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pipe2.mediums.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(pipe2.mediums.sat.psat))) or pipe2.mediums[1].p > 2.2064e7 ($RES_EVT_512) (251) [ARRY] (2) pipe1.m_flows[:] = pipe1.flowModel.m_flows[:] ($RES_SIM_217) (252) [ARRY] (1) pipe3.flowModel.m_flows = {homotopy(({$FUN_9} .* 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_89) (253) [RECD] (5) pipe1.statesFM[3] = pipe1.state_b ($RES_SIM_218) (254) [ARRY] (5) pipe1.statesFM[2:2] = pipe1.mediums[:].state ($RES_SIM_219) (255) [SCAL] (1) $SEV_24 = (sink.medium.h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(sink.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(sink.medium.sat.psat)) or sink.medium.h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(sink.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(sink.medium.sat.psat))) or sink.p > 2.2064e7 ($RES_EVT_515) (256) [SCAL] (1) valveIncompressible.V_flow = -valveIncompressible.port_b.m_flow / smooth(1, if $SEV_52 then valveIncompressible.state_a.d else if $SEV_53 then valveIncompressible.state_b.d else if $SEV_51 then 0.5 * (valveIncompressible.state_a.d + valveIncompressible.state_b.d) - 0.25 * (valveIncompressible.state_b.d - valveIncompressible.state_a.d) * ((-3.0) + (valveIncompressible.port_b.m_flow / (-valveIncompressible.m_flow_small)) ^ 2.0) * (valveIncompressible.port_b.m_flow / valveIncompressible.m_flow_small) else 0.5 * (valveIncompressible.state_a.d + valveIncompressible.state_b.d)) ($RES_BND_345) (257) [SCAL] (1) $SEV_25 = valveIncompressible1.dp >= valveIncompressible1.dp_turbulent ($RES_EVT_516) (258) [SCAL] (1) valveIncompressible.port_a_T = smooth(1, if $SEV_52 then valveIncompressible.state_a.T else if $SEV_53 then Modelica.Media.Water.IF97_Utilities.T_ph(pipe2.port_b.p, valveIncompressible.port_a.h_outflow, 0, 0) else if $SEV_51 then 0.5 * (valveIncompressible.state_a.T + Modelica.Media.Water.IF97_Utilities.T_ph(pipe2.port_b.p, valveIncompressible.port_a.h_outflow, 0, 0)) - 0.25 * (Modelica.Media.Water.IF97_Utilities.T_ph(pipe2.port_b.p, valveIncompressible.port_a.h_outflow, 0, 0) - valveIncompressible.state_a.T) * ((-3.0) + (valveIncompressible.port_b.m_flow / (-valveIncompressible.m_flow_small)) ^ 2.0) * (valveIncompressible.port_b.m_flow / valveIncompressible.m_flow_small) else 0.5 * (valveIncompressible.state_a.T + Modelica.Media.Water.IF97_Utilities.T_ph(pipe2.port_b.p, valveIncompressible.port_a.h_outflow, 0, 0))) ($RES_BND_346) (259) [SCAL] (1) $SEV_26 = valveIncompressible1.state_a.d > 0.0 ($RES_EVT_517) (260) [SCAL] (1) valveIncompressible.port_b_T = smooth(1, if $SEV_49 then valveIncompressible.state_b.T else if $SEV_50 then Modelica.Media.Water.IF97_Utilities.T_ph(valveIncompressible.port_b.p, valveIncompressible.port_b.h_outflow, 0, 0) else if $SEV_51 then 0.25 * (Modelica.Media.Water.IF97_Utilities.T_ph(valveIncompressible.port_b.p, valveIncompressible.port_b.h_outflow, 0, 0) - valveIncompressible.state_b.T) * ((-3.0) + (valveIncompressible.port_b.m_flow / valveIncompressible.m_flow_small) ^ 2.0) * (valveIncompressible.port_b.m_flow / valveIncompressible.m_flow_small) + 0.5 * (valveIncompressible.state_b.T + Modelica.Media.Water.IF97_Utilities.T_ph(valveIncompressible.port_b.p, valveIncompressible.port_b.h_outflow, 0, 0)) else 0.5 * (valveIncompressible.state_b.T + Modelica.Media.Water.IF97_Utilities.T_ph(valveIncompressible.port_b.p, valveIncompressible.port_b.h_outflow, 0, 0))) ($RES_BND_347) (261) [SCAL] (1) $SEV_27 = valveIncompressible1.dp <= (-valveIncompressible1.dp_turbulent) ($RES_EVT_518) (262) [SCAL] (1) valveIncompressible.dp_turbulent = max(valveIncompressible.dp_small, (6.283185307179586e6 * (Modelica.Media.Water.IF97_Utilities.dynamicViscosity(valveIncompressible.state_a.d, valveIncompressible.state_a.T, valveIncompressible.state_a.p, valveIncompressible.state_a.phase) + Modelica.Media.Water.IF97_Utilities.dynamicViscosity(valveIncompressible.state_b.d, valveIncompressible.state_b.T, valveIncompressible.state_b.p, valveIncompressible.state_b.phase)) ^ 2.0) / (valveIncompressible.Av * max(valveIncompressible.relativeFlowCoefficient, 0.001) * (valveIncompressible.state_b.d + valveIncompressible.state_a.d))) ($RES_BND_348) (263) [SCAL] (1) $SEV_28 = valveIncompressible1.state_b.d > 0.0 ($RES_EVT_519) (264) [SCAL] (1) sink.ports[1].m_flow + valveIncompressible.port_b.m_flow = 0.0 ($RES_SIM_300) (265) [SCAL] (1) valveIncompressible1.V_flow = -valveIncompressible1.port_b.m_flow / smooth(1, if $SEV_47 then valveIncompressible1.state_a.d else if $SEV_48 then valveIncompressible1.state_b.d else if $SEV_46 then 0.5 * (valveIncompressible1.state_a.d + valveIncompressible1.state_b.d) - 0.25 * (valveIncompressible1.state_b.d - valveIncompressible1.state_a.d) * ((-3.0) + (valveIncompressible1.port_b.m_flow / (-valveIncompressible1.m_flow_small)) ^ 2.0) * (valveIncompressible1.port_b.m_flow / valveIncompressible1.m_flow_small) else 0.5 * (valveIncompressible1.state_a.d + valveIncompressible1.state_b.d)) ($RES_BND_349) (266) [SCAL] (1) pipe1.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_301) (267) [ARRY] (2) pipe2.crossAreasFM[:] = {pipe2.crossAreas[1], pipe2.crossAreas[1]} ($RES_SIM_130) (268) [ARRY] (1) pipe2.dheightsFM[:] = {0.0} ($RES_SIM_131) (269) [ARRY] (1) pipe2.pathLengths[:] = {10.0} ($RES_SIM_132) (270) [ARRY] (1) pipe2.Wb_flows = (pipe2.crossAreas * pipe2.vs * (($FUN_6 + pipe2.port_b.p) - ((system.g * {0.0}) / pipe2.mediums.d + 99999.99999999999 * splitter.medium.p_bar))) / ({1.0} * {1.0}) .* {1.0} .* pipe2.nParallel ($RES_SIM_133) (271) [ARRY] (1) pipe2.Qb_flows = pipe2.heatTransfer.Q_flows ($RES_SIM_134) (272) [ARRY] (1) pipe2.heatTransfer.Q_flows = pipe2.heatTransfer.heatPorts.Q_flow ($RES_SIM_135) (273) [ARRY] (1) pipe2.heatTransfer.Ts = pipe2.heatTransfer.heatPorts.T ($RES_SIM_136) (274) [ARRY] (1) {0.0} = pipe2.flowModel.Ib_flows - (pipe2.flowModel.Fs_fg + pipe2.flowModel.Fs_p) ($RES_SIM_137) (275) [ARRY] (1) pipe2.flowModel.Is = {pipe2.flowModel.m_flows[1] * pipe2.flowModel.pathLengths[1]} ($RES_SIM_138) (276) [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_139) (277) [RECD] (5) pipe1.statesFM[1] = pipe1.state_a ($RES_SIM_220) (278) [SCAL] (1) pipe1.port_b.h_outflow = pipe1.mediums[1].h ($RES_SIM_223) (279) [ARRY] (1) pipe3.mediums.phase = pipe3.mediums.state.phase ($RES_SIM_95) (280) [SCAL] (1) pipe1.port_a.h_outflow = pipe1.mediums[1].h ($RES_SIM_224) (281) [ARRY] (1) pipe3.mediums.d = pipe3.mediums.state.d ($RES_SIM_96) (282) [SCAL] (1) $SEV_29 = valveIncompressible1.state_a.d >= valveIncompressible1.state_b.d ($RES_EVT_520) (283) [SCAL] (1) pipe1.port_b.m_flow = -pipe1.m_flows[2] ($RES_SIM_225) (284) [SCAL] (1) valveIncompressible1.port_a_T = smooth(1, if $SEV_47 then valveIncompressible1.state_a.T else if $SEV_48 then Modelica.Media.Water.IF97_Utilities.T_ph(pipe3.port_b.p, valveIncompressible1.port_a.h_outflow, 0, 0) else if $SEV_46 then 0.5 * (valveIncompressible1.state_a.T + Modelica.Media.Water.IF97_Utilities.T_ph(pipe3.port_b.p, valveIncompressible1.port_a.h_outflow, 0, 0)) - 0.25 * (Modelica.Media.Water.IF97_Utilities.T_ph(pipe3.port_b.p, valveIncompressible1.port_a.h_outflow, 0, 0) - valveIncompressible1.state_a.T) * ((-3.0) + (valveIncompressible1.port_b.m_flow / (-valveIncompressible1.m_flow_small)) ^ 2.0) * (valveIncompressible1.port_b.m_flow / valveIncompressible1.m_flow_small) else 0.5 * (valveIncompressible1.state_a.T + Modelica.Media.Water.IF97_Utilities.T_ph(pipe3.port_b.p, valveIncompressible1.port_a.h_outflow, 0, 0))) ($RES_BND_350) (285) [ARRY] (1) pipe3.mediums.T = pipe3.mediums.state.T ($RES_SIM_97) (286) [SCAL] (1) $SEV_30 = valveIncompressible1.relativeFlowCoefficient < valveIncompressible1.minLimiter.uMin ($RES_EVT_521) (287) [SCAL] (1) pipe1.port_a.m_flow = pipe1.m_flows[1] ($RES_SIM_226) (288) [SCAL] (1) valveIncompressible1.port_b_T = smooth(1, if $SEV_44 then valveIncompressible1.state_b.T else if $SEV_45 then Modelica.Media.Water.IF97_Utilities.T_ph(valveIncompressible1.port_b.p, valveIncompressible1.port_b.h_outflow, 0, 0) else if $SEV_46 then 0.25 * (Modelica.Media.Water.IF97_Utilities.T_ph(valveIncompressible1.port_b.p, valveIncompressible1.port_b.h_outflow, 0, 0) - valveIncompressible1.state_b.T) * ((-3.0) + (valveIncompressible1.port_b.m_flow / valveIncompressible1.m_flow_small) ^ 2.0) * (valveIncompressible1.port_b.m_flow / valveIncompressible1.m_flow_small) + 0.5 * (valveIncompressible1.state_b.T + Modelica.Media.Water.IF97_Utilities.T_ph(valveIncompressible1.port_b.p, valveIncompressible1.port_b.h_outflow, 0, 0)) else 0.5 * (valveIncompressible1.state_b.T + Modelica.Media.Water.IF97_Utilities.T_ph(valveIncompressible1.port_b.p, valveIncompressible1.port_b.h_outflow, 0, 0))) ($RES_BND_351) (289) [ARRY] (1) pipe3.mediums.p = pipe3.mediums.state.p ($RES_SIM_98) (290) [SCAL] (1) $SEV_31 = valveIncompressible.dp >= valveIncompressible.dp_turbulent ($RES_EVT_522) (291) [SCAL] (1) pipe1.H_flows[2] = -$FUN_4 ($RES_SIM_227) (292) [SCAL] (1) valveIncompressible1.dp_turbulent = max(valveIncompressible1.dp_small, (6.283185307179586e6 * (Modelica.Media.Water.IF97_Utilities.dynamicViscosity(valveIncompressible1.state_a.d, valveIncompressible1.state_a.T, valveIncompressible1.state_a.p, valveIncompressible1.state_a.phase) + Modelica.Media.Water.IF97_Utilities.dynamicViscosity(valveIncompressible1.state_b.d, valveIncompressible1.state_b.T, valveIncompressible1.state_b.p, valveIncompressible1.state_b.phase)) ^ 2.0) / (valveIncompressible1.Av * max(valveIncompressible1.relativeFlowCoefficient, 0.001) * (valveIncompressible1.state_b.d + valveIncompressible1.state_a.d))) ($RES_BND_352) (293) [ARRY] (1) pipe3.mediums.h = pipe3.mediums.state.h ($RES_SIM_99) (294) [SCAL] (1) $SEV_32 = valveIncompressible.state_a.d > 0.0 ($RES_EVT_523) (295) [SCAL] (1) pipe1.H_flows[1] = $FUN_3 ($RES_SIM_228) (296) [SCAL] (1) $SEV_33 = valveIncompressible.dp <= (-valveIncompressible.dp_turbulent) ($RES_EVT_524) (297) [SCAL] (1) pipe1.mb_flows[1] = pipe1.m_flows[1] - pipe1.m_flows[2] ($RES_SIM_229) (298) [SCAL] (1) $SEV_34 = valveIncompressible.state_b.d > 0.0 ($RES_EVT_525) (299) [ARRY] (1) pipe2.fluidVolumes = {10.0 * pipe2.crossAreas[1]} .* pipe2.nParallel ($RES_BND_355) (300) [SCAL] (1) $SEV_35 = valveIncompressible.state_a.d >= valveIncompressible.state_b.d ($RES_EVT_526) (301) [ARRY] (1) pipe2.mediums.p_bar = {1e-5 * pipe2.mediums[1].p} ($RES_BND_356) (302) [SCAL] (1) $SEV_36 = valveIncompressible.relativeFlowCoefficient < valveIncompressible.minLimiter.uMin ($RES_EVT_527) (303) [ARRY] (1) pipe2.mediums.T_degC = {(-273.15) + pipe2.mediums[1].T} ($RES_BND_357) (304) [FOR-] (2) ($RES_EVT_528) (304) [----] for $i1 in 1:2 loop (304) [----] [SCAL] (1) $SEV_37[$i1] = pipe1.flowModel.m_flows[$i1] > 0.0 ($RES_EVT_529) (304) [----] end for; (305) [ARRY] (2) pipe2.flowModel.vs = pipe2.vsFM ($RES_BND_358) (306) [SCAL] (1) valveIncompressible.port_b.p = sink.ports[1].p ($RES_SIM_310) (307) [ARRY] (2) pipe2.flowModel.crossAreas = pipe2.crossAreasFM ($RES_BND_359) (308) [SCAL] (1) valveIncompressible1.port_b.p = sink.ports[2].p ($RES_SIM_311) (309) [SCAL] (1) pipe1.port_a.m_flow + source.ports[1].m_flow = 0.0 ($RES_SIM_312) (310) [SCAL] (1) source.ports[1].p = pipe1.port_a.p ($RES_SIM_313) (311) [ARRY] (1) pipe2.flowModel.Fs_p = pipe2.flowModel.nParallel * {0.5 * (pipe2.flowModel.crossAreas[1] + pipe2.flowModel.crossAreas[2]) * (pipe2.flowModel.states.phase - pipe2.flowModel.states.phase)} ($RES_SIM_140) (312) [ARRY] (1) pipe2.flowModel.Ib_flows = {0.0} ($RES_SIM_141) (313) [SCAL] (1) pipe2.flowModel.rhos_act[1] = noEvent(if $SEV_18 then pipe2.flowModel.rhos[1] else pipe2.flowModel.rhos[2]) ($RES_SIM_142) (314) [SCAL] (1) pipe2.flowModel.mus_act[1] = noEvent(if $SEV_18 then pipe2.flowModel.mus[1] else pipe2.flowModel.mus[2]) ($RES_SIM_143) (315) [ARRY] (1) pipe2.flowModel.m_flows = {homotopy(({$FUN_5} .* 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_144) (316) [SCAL] (1) pipe1.Hb_flows[1] = pipe1.H_flows[1] - pipe1.H_flows[2] ($RES_SIM_230) (317) [ARRY] (3) pipe1.roughnessesFM[:] = {pipe1.roughnesses[1], pipe1.roughnesses[1], pipe1.roughnesses[1]} ($RES_SIM_231) (318) [ARRY] (3) pipe1.dimensionsFM[:] = {pipe1.dimensions[1], pipe1.dimensions[1], pipe1.dimensions[1]} ($RES_SIM_232) (319) [ARRY] (3) pipe1.crossAreasFM[:] = {pipe1.crossAreas[1], pipe1.crossAreas[1], pipe1.crossAreas[1]} ($RES_SIM_233) (320) [ARRY] (2) pipe1.dheightsFM[:] = {0.0, 0.0} ($RES_SIM_234) (321) [SCAL] (1) $SEV_38[1] = pipe1.mediums[1].p >= 0.0 ($RES_EVT_530) (322) [ARRY] (2) pipe1.pathLengths[:] = {5.0, 5.0} ($RES_SIM_235) (323) [ARRY] (2) pipe2.flowModel.dimensions = pipe2.dimensionsFM ($RES_BND_360) (324) [ARRY] (1) pipe1.Wb_flows = (pipe1.crossAreas * pipe1.vs * (($FUN_2 + 99999.99999999999 * splitter.medium.p_bar) - ((system.g * {0.0}) / pipe1.mediums.d + pipe1.port_a.p))) / ({1.0} * {1.0}) .* {1.0} .* pipe1.nParallel ($RES_SIM_236) (325) [ARRY] (2) pipe2.flowModel.roughnesses = pipe2.roughnessesFM ($RES_BND_361) (326) [SCAL] (1) $SEV_40 = (pipe1.mediums[1].h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pipe1.mediums.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(pipe1.mediums.sat.psat)) or pipe1.mediums[1].h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pipe1.mediums.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(pipe1.mediums.sat.psat))) or pipe1.mediums[1].p > 2.2064e7 ($RES_EVT_532) (327) [ARRY] (1) pipe1.Qb_flows = pipe1.heatTransfer.Q_flows ($RES_SIM_237) (328) [ARRY] (1) pipe2.flowModel.dheights = pipe2.dheightsFM ($RES_BND_362) (329) [ARRY] (1) pipe1.heatTransfer.Q_flows = pipe1.heatTransfer.heatPorts.Q_flow ($RES_SIM_238) (330) [ARRY] (1) pipe2.flowModel.pathLengths = pipe2.pathLengths ($RES_BND_363) (331) [ARRY] (1) pipe1.heatTransfer.Ts = pipe1.heatTransfer.heatPorts.T ($RES_SIM_239) (332) [FOR-] (2) ($RES_BND_364) (332) [----] for $i1 in 1:2 loop (332) [----] [SCAL] (1) pipe2.flowModel.rhos[$i1] = pipe2.flowModel.states.d ($RES_BND_365) (332) [----] end for; (333) [SCAL] (1) $SEV_43 = (source.medium.h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(source.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(source.medium.sat.psat)) or source.medium.h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(source.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(source.medium.sat.psat))) or source.p > 2.2064e7 ($RES_EVT_535) (334) [SCAL] (1) $SEV_44 = valveIncompressible1.port_b.m_flow > valveIncompressible1.m_flow_small ($RES_EVT_536) (335) [FOR-] (2) ($RES_BND_366) (335) [----] for $i1 in 1:2 loop (335) [----] [SCAL] (1) pipe2.flowModel.mus[$i1] = Modelica.Media.Water.IF97_Utilities.dynamicViscosity(pipe2.flowModel.states.d, pipe2.flowModel.states.h, pipe2.flowModel.states.phase, pipe2.flowModel.states.p) ($RES_BND_367) (335) [----] end for; (336) [SCAL] (1) $SEV_45 = valveIncompressible1.port_b.m_flow < (-valveIncompressible1.m_flow_small) ($RES_EVT_537) (337) [SCAL] (1) $SEV_46 = valveIncompressible1.m_flow_small > 0.0 ($RES_EVT_538) (338) [ARRY] (1) pipe2.flowModel.pathLengths_internal = pipe2.flowModel.pathLengths ($RES_BND_368) (339) [SCAL] (1) $SEV_47 = (-valveIncompressible1.port_b.m_flow) > valveIncompressible1.m_flow_small ($RES_EVT_539) (340) [SCAL] (1) pipe2.flowModel.Res_turbulent_internal[1] = pipe2.flowModel.Re_turbulent ($RES_BND_369) (341) [ARRY] (1) pipe2.mediums.phase = pipe2.mediums.state.phase ($RES_SIM_150) (342) [ARRY] (1) pipe2.mediums.d = pipe2.mediums.state.d ($RES_SIM_151) (343) [ARRY] (1) pipe2.mediums.T = pipe2.mediums.state.T ($RES_SIM_152) (344) [ARRY] (1) pipe2.mediums.p = pipe2.mediums.state.p ($RES_SIM_153) (345) [ARRY] (1) pipe2.mediums.h = pipe2.mediums.state.h ($RES_SIM_154) (346) [SCAL] (1) pipe2.mediums[1].u = pipe2.mediums[1].h - pipe2.mediums[1].p / pipe2.mediums[1].d ($RES_SIM_156) (347) [ARRY] (1) pipe2.mediums.sat.psat = pipe2.mediums.p ($RES_SIM_157) (348) [SCAL] (1) pipe2.mediums[1].sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(pipe2.mediums[1].p) ($RES_SIM_158) (349) [SCAL] (1) pipe2.mediums[1].T = Modelica.Media.Water.IF97_Utilities.T_props_ph(pipe2.mediums[1].p, pipe2.mediums[1].h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pipe2.mediums[1].p, pipe2.mediums[1].h, pipe2.mediums[1].phase, 0)) ($RES_SIM_159) (350) [ARRY] (2) {0.0 for $i1 in 1:2} = pipe1.flowModel.Ib_flows - (pipe1.flowModel.Fs_fg + pipe1.flowModel.Fs_p) ($RES_SIM_240) (351) [ARRY] (2) pipe1.flowModel.Is = {pipe1.flowModel.m_flows[i] * pipe1.flowModel.pathLengths[i] for i in 1:2} ($RES_SIM_241) (352) [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_242) (353) [ARRY] (2) pipe1.flowModel.Fs_p = pipe1.flowModel.nParallel * {0.0 for i in 1:2} ($RES_SIM_243) (354) [ARRY] (2) pipe1.flowModel.Ib_flows = {0.0 for $i1 in 1:2} ($RES_SIM_244) (355) [SCAL] (1) $SEV_48 = (-valveIncompressible1.port_b.m_flow) < (-valveIncompressible1.m_flow_small) ($RES_EVT_540) (356) [FOR-] (2) ($RES_SIM_245) (356) [----] for $i1 in 1:2 loop (356) [----] [SCAL] (1) pipe1.flowModel.rhos_act[$i1] = noEvent(if $SEV_37[$i1] then pipe1.flowModel.rhos[$i1] else pipe1.flowModel.rhos[$i1 + 1]) ($RES_SIM_246) (356) [----] end for; (357) [ARRY] (1) pipe2.flowModel.diameters = 0.5 * (pipe2.flowModel.dimensions[2:2] + pipe2.flowModel.dimensions[1:1]) ($RES_BND_370) (358) [SCAL] (1) $SEV_49 = valveIncompressible.port_b.m_flow > valveIncompressible.m_flow_small ($RES_EVT_541) (359) [SCAL] (1) $SEV_50 = valveIncompressible.port_b.m_flow < (-valveIncompressible.m_flow_small) ($RES_EVT_542) (360) [FOR-] (2) ($RES_SIM_247) (360) [----] for $i1 in 1:2 loop (360) [----] [SCAL] (1) pipe1.flowModel.mus_act[$i1] = noEvent(if $SEV_37[$i1] then pipe1.flowModel.mus[$i1] else pipe1.flowModel.mus[$i1 + 1]) ($RES_SIM_248) (360) [----] end for; (361) [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_372) (362) [SCAL] (1) $SEV_51 = valveIncompressible.m_flow_small > 0.0 ($RES_EVT_543) (363) [SCAL] (1) $SEV_52 = (-valveIncompressible.port_b.m_flow) > valveIncompressible.m_flow_small ($RES_EVT_544) (364) [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_249) (365) [ARRY] (1) pipe2.heatTransfer.Ts = {pipe2.heatTransfer.states.h} ($RES_BND_374) (366) [SCAL] (1) $SEV_53 = (-valveIncompressible.port_b.m_flow) < (-valveIncompressible.m_flow_small) ($RES_EVT_545) (367) [ARRY] (1) pipe2.heatTransfer.vs = pipe2.vs ($RES_BND_375) (368) [ARRY] (1) pipe3.fluidVolumes = {10.0 * pipe3.crossAreas[1]} .* pipe3.nParallel ($RES_BND_379) (369) [SCAL] (1) pipe2.mediums[1].d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(pipe2.mediums[1].p, pipe2.mediums[1].h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pipe2.mediums[1].p, pipe2.mediums[1].h, pipe2.mediums[1].phase, 0)) ($RES_SIM_160) (370) [SCAL] (1) pipe2.mediums[1].phase = if $SEV_21 then 1 else 2 ($RES_SIM_161) (371) [FOR-] (2) ($RES_SIM_163) (371) [----] for $i1 in 1:2 loop (371) [----] [SCAL] (1) sink.ports[$i1].p = sink.p ($RES_SIM_164) (371) [----] end for; (372) [FOR-] (2) ($RES_SIM_165) (372) [----] for $i1 in 1:2 loop (372) [----] [SCAL] (1) sink.ports[$i1].h_outflow = sink.medium.h ($RES_SIM_166) (372) [----] end for; (373) [SCAL] (1) sink.medium.h = Modelica.Media.Water.IF97_Utilities.h_pT(sink.p, sink.T, 0) ($RES_SIM_167)