Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.SeriesPipes2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 104.2 kB / 16.42 MB, free: 6.512 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.001071/0.001071, allocations: 188.3 kB / 17.36 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.228/1.228, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.1619/0.1619, allocations: 38 MB / 308.6 MB, free: 5.984 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.342e-05/1.343e-05, allocations: 2.281 kB / 433.6 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2): time 0.05215/0.05217, allocations: 65.73 MB / 499.3 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2207/0.2729, allocations: 29.62 MB / 0.5166 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001838/0.2748, allocations: 65.81 kB / 0.5166 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002446/0.2772, allocations: 0.8347 MB / 0.5174 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01821/0.2955, allocations: 6.548 MB / 0.5238 GB, free: 3.59 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01771/0.3132, allocations: 7.157 MB / 0.5308 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007656/0.3209, allocations: 5.407 MB / 0.5361 GB, free: 3.289 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001816/0.3227, allocations: 1.018 MB / 0.5371 GB, free: 3.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003825/0.3265, allocations: 2.145 MB / 0.5392 GB, free: 3.223 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01687/0.3434, allocations: 8.078 MB / 0.5471 GB, free: 60 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008011/0.3442, allocations: 145.2 kB / 0.5472 GB, free: 60 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01805/0.3623, allocations: 9.063 MB / 0.5561 GB, free: 13.02 MB / 414.1 MB Notification: Performance of combineBinaries: time 0.004613/0.367, allocations: 3.431 MB / 0.5594 GB, free: 10.2 MB / 414.1 MB Notification: Performance of replaceArrayConstructors: time 0.002034/0.369, allocations: 2.235 MB / 0.5616 GB, free: 8.262 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008418/0.3699, allocations: 274 kB / 0.5619 GB, free: 8.062 MB / 414.1 MB Notification: Performance of FrontEnd: time 0.0002712/0.3702, allocations: 48.19 kB / 0.5619 GB, free: 8.023 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 (232) * Number of variables: 362 (275) Notification: Performance of Bindings: time 0.01039/0.3806, allocations: 9.672 MB / 0.5714 GB, free: 372 kB / 414.1 MB Notification: Performance of FunctionAlias: time 0.001581/0.3822, allocations: 1.324 MB / 0.5726 GB, free: 15.05 MB / 430.1 MB Notification: Performance of Early Inline: time 0.006028/0.3882, allocations: 5.02 MB / 0.5776 GB, free: 10.12 MB / 430.1 MB Notification: Performance of simplify1: time 0.0006267/0.3888, allocations: 332.9 kB / 0.5779 GB, free: 9.816 MB / 430.1 MB Notification: Performance of Alias: time 0.004299/0.3932, allocations: 3.644 MB / 0.5814 GB, free: 5.996 MB / 430.1 MB Notification: Performance of simplify2: time 0.0005324/0.3937, allocations: 317 kB / 0.5817 GB, free: 5.711 MB / 430.1 MB Notification: Performance of Events: time 0.001342/0.3951, allocations: 1.193 MB / 0.5829 GB, free: 4.512 MB / 430.1 MB Notification: Performance of Detect States: time 0.00134/0.3964, allocations: 1.243 MB / 0.5841 GB, free: 3.289 MB / 430.1 MB Notification: Performance of Partitioning: time 0.00223/0.3987, allocations: 1.957 MB / 0.586 GB, free: 1.098 MB / 430.1 MB Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (257/344) **************************** (1) [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}) (2) [DER-] (1) Real[1] $DER.pipe3.ms (3) [ALGB] (1) final Real[1] pipe1.fluidVolumes = {pipe1.crossAreas[1] * 10.0} .* pipe1.nParallel (4) [ALGB] (1) final Real[1] pipe3.fluidVolumes = {pipe3.crossAreas[1] * 10.0} .* pipe3.nParallel (5) [DISC] (1) Boolean $SEV_29 (6) [DISC] (1) Boolean $SEV_28 (7) [DISC] (1) Boolean $SEV_27 (8) [ALGB] (1) Real[1] pipe3.Hb_flows (9) [DISC] (1) Boolean $SEV_26 (10) [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}) (11) [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}) (12) [DISC] (1) Boolean $SEV_23 (13) [DISC] (1) Boolean $SEV_20 (14) [ALGB] (2) protected Real[2] pipe3.roughnessesFM (min = {0.0 for $i1 in 1:2}) (15) [DISC] (1) Integer[1] pipe3.mediums.state.phase (min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (16) [ALGB] (1) Real valveIncompressible1.dp_turbulent = max(valveIncompressible1.dp_small, ((ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.valveIncompressible1.Medium.dynamicViscosity(valveIncompressible1.state_a) + ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.valveIncompressible1.Medium.dynamicViscosity(valveIncompressible1.state_b)) ^ 2.0 * 3.141592653589793 * 1.6e7) / (8.0 * valveIncompressible1.Av * max(valveIncompressible1.relativeFlowCoefficient, 0.001) * (ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.valveIncompressible1.Medium.density(valveIncompressible1.state_b) + ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.valveIncompressible1.Medium.density(valveIncompressible1.state_a)))) (min = 0.0, nominal = 1e5) (17) [DISC] (1) Boolean $TEV_0 (18) [ALGB] (1) Real[1] pipe1.heatTransfer.Q_flows (19) [ALGB] (1) Real[1] pipe3.flowModel.Res_turbulent_internal = pipe3.flowModel.Re_turbulent * {1.0 for $i1 in 1:1} (20) [ALGB] (2) Real[2] pipe1.flowModel.mus = {ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe1.flowModel.Medium.dynamicViscosity(pipe1.flowModel.states[$i1]) for $i1 in 1:2} (start = {0.001 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {0.001 for $i1 in 1:2}) (21) [ALGB] (1) Real sink.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (22) [ALGB] (2) Real[2] pipe3.flowModel.mus = {ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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}) (23) [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}) (24) [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) (25) [DISC] (1) Boolean $SEV_16 (26) [DISC] (1) Boolean $SEV_15 (27) [DISC] (1) Boolean $SEV_14 (28) [ALGB] (1) stream Real[1] sink.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}) (29) [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 (30) [DISC] (1) Boolean $SEV_13 (31) [DISC] (1) Boolean $SEV_12 (32) [DISC] (1) Boolean $SEV_11 (33) [ALGB] (1) final Real[1] pipe1.heatTransfer.vs = pipe1.vs (34) [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}) (35) [DISC] (1) protected Integer valveOpening1.last (start = 1) (36) [DISC] (1) Boolean $SEV_10 (37) [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}) (38) [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}) (39) [ALGB] (2) protected Real[2] pipe3.vsFM (40) [DISC] (1) protected Integer valveIncompressible1.state_b.phase (min = 0, max = 2) (41) [ALGB] (1) flow Real valveIncompressible1.port_b.m_flow (min = -1e5, max = 1e60) (42) [ALGB] (1) Real pipe3.port_b.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (43) [ALGB] (1) Real[1] pipe3.flowModel.Ib_flows (44) [ALGB] (1) Real[1] pipe1.flowModel.pathLengths_internal = pipe1.flowModel.pathLengths (45) [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}) (46) [DISC] (1) Boolean[1] $SEV_5[$i1] (47) [DISC] (4) Integer[2, 2] pipe1.statesFM.phase (min = {0 for $i1 in 1:2}, max = {2 for $i1 in 1:2}) (48) [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}) (49) [ALGB] (1) protected Real valveIncompressible1.relativeFlowCoefficient (50) [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}) (51) [ALGB] (1) Real[1] pipe3.Qb_flows (52) [DISC] (1) protected discrete Real valveOpening1.nextEventScaled (fixed = true, start = 0.0) (53) [ALGB] (1) Real[1] pipe1.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}) (54) [DER-] (1) Real[1] $DER.pipe1.Us (55) [DISC] (1) Integer[1] pipe1.mediums.state.phase (min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (56) [ALGB] (2) final Real[2] pipe3.flowModel.dimensions = pipe3.dimensionsFM (57) [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}) (58) [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}) (59) [ALGB] (1) Real[1] pipe1.Hb_flows (60) [ALGB] (1) stream Real pipe1.port_a.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (61) [ALGB] (1) Real pipe1.state_b.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (62) [ALGB] (1) Real[1] pipe1.flowModel.Fs_fg (63) [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}) (64) [DISC] (1) Integer source.medium.state.phase (min = 0, max = 2) (65) [ALGB] (1) Real[1] pipe1.flowModel.Res_turbulent_internal = pipe1.flowModel.Re_turbulent * {1.0 for $i1 in 1:1} (66) [ALGB] (1) Real $FUN_9 (67) [ALGB] (1) Real $FUN_8 (68) [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}) (69) [DISC] (1) protected discrete Real valveOpening1.nextEvent (fixed = true, start = 0.0) (70) [ALGB] (1) Real $FUN_7 (71) [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}) (72) [ALGB] (1) Real $FUN_6 (73) [ALGB] (1) Real[1] pipe1.flowModel.mus_act (start = {0.001 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {0.001 for $i1 in 1:1}) (74) [ALGB] (1) Real pipe1.state_b.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (75) [ALGB] (1) Real $FUN_5 (76) [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}) (77) [ALGB] (1) Real $FUN_4 (78) [DER-] (1) Real[1] $DER.pipe1.ms (79) [ALGB] (1) flow Real pipe1.port_a.m_flow (min = -1e60, max = 1e5) (80) [ALGB] (1) Real $FUN_3 (81) [ALGB] (1) protected Real[1] pipe1.dheightsFM (82) [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}) (83) [ALGB] (1) Real $FUN_2 (84) [ALGB] (1) Real pipe1.state_b.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (85) [ALGB] (1) Real $FUN_1 (86) [ALGB] (1) final Real[1] pipe1.flowModel.dheights = pipe1.dheightsFM (87) [ALGB] (1) stream Real pipe1.port_b.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (88) [ALGB] (1) Real[1] pipe1.flowModel.m_flows (start = {0.0 for $i1 in 1:1}, min = {-1e60 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, StateSelect = default) (89) [ALGB] (1) Real sink.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (90) [DISC] (1) protected Integer valveIncompressible1.state_a.phase (min = 0, max = 2) (91) [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}) (92) [ALGB] (1) Real sink.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (93) [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}) (94) [ALGB] (1) protected Real[1] pipe1.pathLengths (95) [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}) (96) [DISC] (4) Integer[2, 2] pipe3.statesFM.phase (min = {0 for $i1 in 1:2}, max = {2 for $i1 in 1:2}) (97) [ALGB] (1) Real pipe1.state_b.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (98) [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}) (99) [ALGB] (1) Real[1] pipe3.flowModel.dps_fg (start = {pipe3.flowModel.p_a_start - pipe3.flowModel.p_b_start for $i1 in 1:1}) (100) [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}) (101) [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}) (102) [ALGB] (1) Real valveOpening1.y (103) [ALGB] (1) Real[1] pipe1.mediums.p_bar = {Modelica.SIunits.Conversions.to_bar(pipe1.mediums[1].p)} (104) [ALGB] (1) Real pipe3.state_b.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (105) [ALGB] (1) Real sink.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (106) [ALGB] (1) protected Real[1] pipe3.pathLengths (107) [ALGB] (2) final Real[2] pipe3.flowModel.roughnesses = pipe3.roughnessesFM (min = {0.0 for $i1 in 1:2}) (108) [ALGB] (1) protected Real valveIncompressible1.minLimiter.y (109) [ALGB] (1) stream Real valveIncompressible1.port_b.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (110) [ALGB] (1) Real pipe1.port_b.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (111) [ALGB] (1) Real[1] pipe3.mb_flows (min = {-1e5 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}) (112) [ALGB] (1) protected Real[1] pipe3.flowModel.diameters = 0.5 * (pipe3.flowModel.dimensions[2:2] + pipe3.flowModel.dimensions[1:1]) (113) [ALGB] (1) Real pipe3.state_b.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (114) [ALGB] (1) Real $FUN_15 (115) [ALGB] (2) final Real[2] pipe1.flowModel.dimensions = pipe1.dimensionsFM (116) [ALGB] (1) Real $FUN_13 (117) [DISC] (1) Integer $FUN_12 (118) [ALGB] (1) Real[1] pipe1.mediums.T_degC = {Modelica.SIunits.Conversions.to_degC(pipe1.mediums[1].T)} (119) [ALGB] (1) Real pipe3.state_b.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (120) [ALGB] (2) final Real[2] pipe3.flowModel.crossAreas = pipe3.crossAreasFM (121) [ALGB] (1) Real[1] pipe3.flowModel.pathLengths_internal = pipe3.flowModel.pathLengths (122) [ALGB] (1) Real $FUN_11 (123) [ALGB] (1) flow Real[1] pipe1.heatTransfer.heatPorts.Q_flow (124) [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}) (125) [ALGB] (1) Real $FUN_10 (126) [DER-] (2) Real[2] $DER.valveIncompressible1.filter.x (127) [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}) (128) [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}) (129) [ALGB] (1) Real[1] pipe3.heatTransfer.Ts = {ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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}) (130) [ALGB] (1) Real[1] pipe1.Qb_flows (131) [DISC] (4) final input Integer[2, 2] pipe1.flowModel.states.phase = {pipe1.statesFM[1].phase, pipe1.statesFM[2].phase} (min = {0 for $i1 in 1:2}, max = {2 for $i1 in 1:2}) (132) [ALGB] (1) Real[1] pipe1.flowModel.Fs_p (133) [ALGB] (1) stream Real valveIncompressible1.port_a.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (134) [DISC] (1) protected Real valveOpening1.b (135) [DISC] (1) Boolean $SEV_7 (136) [DISC] (1) protected Real valveOpening1.a (137) [ALGB] (1) Real[1] pipe1.heatTransfer.Ts = {ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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}) (138) [ALGB] (1) Real pipe1.state_a.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (139) [DISC] (1) Boolean $SEV_4 (140) [ALGB] (1) Real[1] pipe3.mediums.p_bar = {Modelica.SIunits.Conversions.to_bar(pipe3.mediums[1].p)} (141) [ALGB] (4) Real[2, 2] pipe1.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}) (142) [ALGB] (1) Real pipe3.state_b.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (143) [ALGB] (1) Real pipe1.state_a.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (144) [ALGB] (4) Real[2, 2] pipe1.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}) (145) [ALGB] (1) Real valveIncompressible1.port_a_T = Modelica.Fluid.Utilities.regStep(-valveIncompressible1.port_b.m_flow, ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.valveIncompressible1.Medium.temperature(valveIncompressible1.state_a), ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.valveIncompressible1.Medium.temperature(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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) (146) [ALGB] (1) Real pipe1.state_a.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (147) [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}) (148) [ALGB] (1) Real[1] pipe1.flowModel.Is (149) [ALGB] (1) Real[1] pipe3.flowModel.Is (150) [ALGB] (4) Real[2, 2] pipe1.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}) (151) [ALGB] (1) protected Real valveIncompressible1.state_b.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (152) [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}) (153) [ALGB] (1) Real[1] pipe1.flowModel.dps_fg (start = {pipe1.flowModel.p_a_start - pipe1.flowModel.p_b_start for $i1 in 1:1}) (154) [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}) (155) [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) (156) [ALGB] (1) final Real[1] pipe3.flowModel.pathLengths = pipe3.pathLengths (157) [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}) (158) [ALGB] (2) Real[2] pipe1.flowModel.rhos = {ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe1.flowModel.Medium.density(pipe1.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}) (159) [ALGB] (1) protected Real valveIncompressible1.state_b.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (160) [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}) (161) [ALGB] (1) Real[1] pipe1.mediums.h (start = {pipe1.h_start}, StateSelect = prefer) (162) [ALGB] (1) Real valveIncompressible1.port_b.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (163) [ALGB] (1) protected Real valveIncompressible1.state_b.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (164) [ALGB] (1) Real pipe1.state_a.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (165) [ALGB] (1) Real source.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (166) [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}) (167) [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) (168) [ALGB] (4) Real[2, 2] pipe1.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}) (169) [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}) (170) [ALGB] (1) Real pipe3.state_a.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (171) [ALGB] (4) final input Real[2, 2] pipe1.flowModel.states.p = {pipe1.statesFM[1].p, pipe1.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}) (172) [ALGB] (1) Real source.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (173) [ALGB] (1) Real pipe1.port_a.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (174) [ALGB] (1) final Real[1] pipe3.flowModel.dheights = pipe3.dheightsFM (175) [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}) (176) [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}) (177) [ALGB] (1) protected Real valveIncompressible1.state_b.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (178) [ALGB] (2) final Real[2] pipe1.flowModel.crossAreas = pipe1.crossAreasFM (179) [ALGB] (1) Real pipe3.state_a.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (180) [ALGB] (1) Real source.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (181) [ALGB] (4) final input Real[2, 2] pipe1.flowModel.states.h = {pipe1.statesFM[1].h, pipe1.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}) (182) [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}) (183) [ALGB] (1) Real[1] pipe3.Wb_flows (184) [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) (185) [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}) (186) [ALGB] (1) Real pipe3.state_a.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (187) [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}) (188) [ALGB] (2) protected Real[2] pipe1.crossAreasFM (189) [ALGB] (1) Real source.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (190) [ALGB] (4) final input Real[2, 2] pipe1.flowModel.states.d = {pipe1.statesFM[1].d, pipe1.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}) (191) [ALGB] (1) stream Real pipe3.port_a.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (192) [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}) (193) [ALGB] (1) Real[1] pipe3.flowModel.Fs_fg (194) [ALGB] (2) Real[2] pipe3.flowModel.rhos = {ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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}) (195) [ALGB] (2) protected Real[2] pipe3.crossAreasFM (196) [ALGB] (2) protected Real[2] pipe1.dimensionsFM (197) [ALGB] (2) protected Real[2] pipe3.dimensionsFM (198) [ALGB] (1) Real[1] pipe1.mb_flows (min = {-1e5 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}) (199) [ALGB] (2) final Real[2] pipe1.flowModel.roughnesses = pipe1.roughnessesFM (min = {0.0 for $i1 in 1:2}) (200) [ALGB] (1) Real source.medium.h (StateSelect = default) (201) [ALGB] (3) protected Real[3] valveIncompressible1.filter.uu (202) [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) (203) [ALGB] (1) Real sink.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - sink.medium.T_degC)) (204) [ALGB] (1) Real source.medium.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0, StateSelect = default) (205) [ALGB] (1) flow Real pipe1.port_b.m_flow (min = -1e5, max = 1e60) (206) [ALGB] (2) protected Real[2] pipe1.vsFM (207) [ALGB] (1) Real[1] pipe3.mediums.h (start = {pipe3.h_start}, StateSelect = prefer) (208) [ALGB] (1) Real source.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (209) [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}) (210) [ALGB] (1) Real pipe3.state_a.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (211) [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}) (212) [ALGB] (4) final input Real[2, 2] pipe1.flowModel.states.T = {pipe1.statesFM[1].T, pipe1.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}) (213) [ALGB] (1) flow Real[1] source.ports.m_flow (min = {-1e60}, max = {1e60}) (214) [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) (215) [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}) (216) [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}) (217) [ALGB] (2) final Real[2] pipe1.flowModel.vs = pipe1.vsFM (218) [ALGB] (2) final Real[2] pipe3.flowModel.vs = pipe3.vsFM (219) [ALGB] (1) flow Real[1] sink.ports.m_flow (min = {-1e60}, max = {1e60}) (220) [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 (221) [ALGB] (1) Real valveIncompressible1.port_b_T = Modelica.Fluid.Utilities.regStep(valveIncompressible1.port_b.m_flow, ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.valveIncompressible1.Medium.temperature(valveIncompressible1.state_b), ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.valveIncompressible1.Medium.temperature(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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) (222) [ALGB] (1) Real[1] pipe3.flowModel.Fs_p (223) [ALGB] (1) protected Real pipe1.flowModel.dp_fric_nominal = sum({ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe1.flowModel.WallFriction.pressureLoss_m_flow(pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel, pipe1.flowModel.rho_nominal, pipe1.flowModel.rho_nominal, pipe1.flowModel.mu_nominal, pipe1.flowModel.mu_nominal, pipe1.flowModel.pathLengths_internal[1], pipe1.flowModel.diameters[1], ((pipe1.flowModel.crossAreas[2:2] + pipe1.flowModel.crossAreas[1:1]) / 2.0)[1], ((pipe1.flowModel.roughnesses[2:2] + pipe1.flowModel.roughnesses[1:1]) / 2.0)[1], pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[1])}) (min = 0.0, nominal = 1e5) (224) [ALGB] (1) Real source.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - source.medium.T_degC)) (225) [ALGB] (1) Real valveIncompressible1.V_flow = (-valveIncompressible1.port_b.m_flow) / Modelica.Fluid.Utilities.regStep(-valveIncompressible1.port_b.m_flow, ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.valveIncompressible1.Medium.density(valveIncompressible1.state_a), ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.valveIncompressible1.Medium.density(valveIncompressible1.state_b), valveIncompressible1.m_flow_small) (226) [ALGB] (1) protected Real valveIncompressible1.state_a.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (227) [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}) (228) [DISC] (1) Integer sink.medium.state.phase (min = 0, max = 2) (229) [ALGB] (1) protected Real[1] pipe1.flowModel.diameters = 0.5 * (pipe1.flowModel.dimensions[2:2] + pipe1.flowModel.dimensions[1:1]) (230) [DISC] (1) Integer source.medium.phase (fixed = false, start = 1, min = 0, max = 2) (231) [ALGB] (1) Real[1] pipe1.flowModel.Ib_flows (232) [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) (233) [ALGB] (1) Real[1] pipe3.mediums.T_degC = {Modelica.SIunits.Conversions.to_degC(pipe3.mediums[1].T)} (234) [ALGB] (1) final Real[1] pipe3.heatTransfer.vs = pipe3.vs (235) [ALGB] (1) protected Real valveIncompressible1.state_a.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (236) [ALGB] (1) Real[1] pipe3.heatTransfer.Q_flows (237) [ALGB] (1) Real sink.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (238) [ALGB] (1) protected Real valveIncompressible1.state_a.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (239) [DISC] (1) Integer sink.medium.phase (fixed = false, start = 1, min = 0, max = 2) (240) [ALGB] (1) Real valveIncompressible1.dp (start = 4e5) (241) [ALGB] (1) final Real[1] pipe1.flowModel.pathLengths = pipe1.pathLengths (242) [DISC] (1) Boolean $SEV_31 (243) [DISC] (1) Integer pipe3.state_a.phase (min = 0, max = 2) (244) [DISC] (1) Boolean $SEV_30 (245) [DISC] (1) Integer pipe1.state_a.phase (min = 0, max = 2) (246) [DER-] (1) Real[1] $DER.pipe3.Us (247) [ALGB] (1) Real sink.medium.h (StateSelect = default) (248) [ALGB] (1) Real[1] sink.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}) (249) [ALGB] (2) protected Real[2] pipe1.roughnessesFM (min = {0.0 for $i1 in 1:2}) (250) [ALGB] (1) flow Real[1] pipe3.heatTransfer.heatPorts.Q_flow (251) [ALGB] (1) protected Real valveIncompressible1.state_a.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (252) [ALGB] (1) protected Real pipe3.flowModel.dp_fric_nominal = sum({ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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) (253) [ALGB] (1) Real sink.medium.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0, StateSelect = default) (254) [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}) (255) [ALGB] (1) protected Real[1] pipe3.dheightsFM (256) [DISC] (1) Boolean[1] $SEV_21[$i1] (257) [ALGB] (1) Real[1] pipe1.Wb_flows System Equations (235/304) **************************** (1) [SCAL] (1) source.ports[1].p = pipe1.port_a.p ($RES_SIM_204) (2) [SCAL] (1) pipe3.flowModel.Res_turbulent_internal[1] = pipe3.flowModel.Re_turbulent ($RES_BND_255) (3) [SCAL] (1) pipe1.vsFM[1] = ((pipe1.m_flows[1] / pipe1.state_a.d) / pipe1.crossAreas[1]) / pipe1.nParallel ($RES_SIM_120) (4) [ARRY] (1) pipe3.flowModel.diameters = 0.5 * (pipe3.flowModel.dimensions[2:2] + pipe3.flowModel.dimensions[1:1]) ($RES_BND_256) (5) [ARRY] (1) pipe1.m_flows[1:1] = pipe1.flowModel.m_flows[:] ($RES_SIM_121) (6) [SCAL] (1) sink.medium.phase = sink.medium.state.phase ($RES_SIM_82) (7) [ARRY] (5) pipe1.statesFM[2:2] = pipe1.mediums[:].state ($RES_SIM_122) (8) [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_258) (9) [SCAL] (1) sink.medium.d = sink.medium.state.d ($RES_SIM_83) (10) [RECD] (5) pipe1.statesFM[1] = pipe1.state_a ($RES_SIM_123) (11) [SCAL] (1) -((-273.15) - sink.medium.T_degC) = sink.medium.state.T ($RES_SIM_84) (12) [SCAL] (1) sink.medium.h = sink.medium.state.h ($RES_SIM_86) (13) [SCAL] (1) pipe1.port_b.h_outflow = pipe1.mediums[1].h ($RES_SIM_126) (14) [SCAL] (1) pipe1.port_a.h_outflow = pipe1.mediums[1].h ($RES_SIM_127) (15) [SCAL] (1) sink.medium.u = sink.medium.h - sink.p / sink.medium.d ($RES_SIM_88) (16) [SCAL] (1) pipe1.port_b.m_flow = -pipe1.m_flows[2] ($RES_SIM_128) (17) [SCAL] (1) sink.medium.sat.psat = sink.p ($RES_SIM_89) (18) [SCAL] (1) pipe1.port_a.m_flow = pipe1.m_flows[1] ($RES_SIM_129) (19) [SCAL] (1) pipe1.state_a.phase = 0 ($RES_SIM_287) (20) [SCAL] (1) $FUN_1 = ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe1.flowModel.WallFriction.massFlowRate_dp_staticHead(pipe1.flowModel.dps_fg[1], pipe1.flowModel.rhos[1], pipe1.flowModel.rhos[2], pipe1.flowModel.mus[1], pipe1.flowModel.mus[2], pipe1.flowModel.pathLengths_internal[1], pipe1.flowModel.diameters[1], (pipe1.flowModel.g * pipe1.flowModel.dheights)[1], (0.5 .* (pipe1.flowModel.crossAreas[1:1] + pipe1.flowModel.crossAreas[2:2]))[1], (0.5 .* (pipe1.flowModel.roughnesses[1:1] + pipe1.flowModel.roughnesses[2:2]))[1], pipe1.flowModel.dp_small, pipe1.flowModel.Res_turbulent_internal[1]) ($RES_$AUX_281) (21) [SCAL] (1) pipe1.state_a.h = source.ports[1].h_outflow ($RES_SIM_288) (22) [SCAL] (1) $FUN_2 = sum(pipe1.flowModel.dps_fg) ($RES_$AUX_280) (23) [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_289) (24) [ARRY] (1) pipe3.heatTransfer.Ts = {pipe3.heatTransfer.states.h} ($RES_BND_260) (25) [ALGO] (5) ($RES_SIM_12) (25) [----] 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); (25) [----] when {time >= $PRE.valveOpening1.nextEvent, initial()} then (25) [----] (valveOpening1.a, valveOpening1.b, valveOpening1.nextEventScaled, valveOpening1.last) := ($FUN_9, $FUN_10, $FUN_11, $FUN_12); (25) [----] valveOpening1.nextEvent := valveOpening1.nextEventScaled; (25) [----] end when; (26) [ARRY] (1) pipe3.heatTransfer.vs = pipe3.vs ($RES_BND_261) (27) [SCAL] (1) valveOpening1.y = valveOpening1.a * time + valveOpening1.b ($RES_SIM_13) (28) [SCAL] (1) $DER.pipe3.ms[1] = pipe3.mb_flows[1] ($RES_SIM_15) (29) [SCAL] (1) $DER.pipe3.Us[1] = pipe3.Wb_flows[1] + pipe3.Hb_flows[1] + pipe3.Qb_flows[1] ($RES_SIM_16) (30) [ARRY] (10) pipe1.flowModel.states = pipe1.statesFM ($RES_BND_265) (31) [SCAL] (1) pipe1.H_flows[2] = -$FUN_4 ($RES_SIM_130) (32) [SCAL] (1) pipe3.ms[1] = pipe3.fluidVolumes[1] * pipe3.mediums[1].d ($RES_SIM_17) (33) [ARRY] (5) pipe1.heatTransfer.states = pipe1.mediums.state ($RES_BND_266) (34) [SCAL] (1) pipe1.H_flows[1] = $FUN_3 ($RES_SIM_131) (35) [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_91) (36) [SCAL] (1) pipe3.Us[1] = pipe3.ms[1] * pipe3.mediums[1].u ($RES_SIM_18) (37) [ARRY] (10) pipe3.flowModel.states = pipe3.statesFM ($RES_BND_267) (38) [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_92) (39) [SCAL] (1) pipe3.port_b.p = pipe3.mediums[1].p ($RES_SIM_19) (40) [SCAL] (1) pipe1.mb_flows[1] = pipe1.m_flows[1] - pipe1.m_flows[2] ($RES_SIM_132) (41) [ARRY] (5) pipe3.heatTransfer.states = pipe3.mediums.state ($RES_BND_268) (42) [SCAL] (1) $FUN_3 = semiLinear(pipe1.port_a.m_flow, source.ports[1].h_outflow, pipe1.mediums[1].h) ($RES_$AUX_279) (43) [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_290) (44) [SCAL] (1) sink.medium.phase = if $SEV_10 then 1 else 2 ($RES_SIM_93) (45) [SCAL] (1) pipe1.Hb_flows[1] = pipe1.H_flows[1] - pipe1.H_flows[2] ($RES_SIM_133) (46) [SCAL] (1) $FUN_4 = semiLinear(pipe1.port_b.m_flow, pipe3.port_a.h_outflow, pipe1.mediums[1].h) ($RES_$AUX_278) (47) [SCAL] (1) pipe1.state_a.p = pipe1.port_a.p ($RES_SIM_291) (48) [ARRY] (2) pipe1.roughnessesFM[:] = {pipe1.roughnesses[1], pipe1.roughnesses[1]} ($RES_SIM_134) (49) [SCAL] (1) $FUN_5 = ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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_277) (50) [ARRY] (2) pipe1.dimensionsFM[:] = {pipe1.dimensions[1], pipe1.dimensions[1]} ($RES_SIM_135) (51) [SCAL] (1) $FUN_6 = sum(pipe3.flowModel.dps_fg) ($RES_$AUX_276) (52) [SCAL] (1) pipe1.state_b.h = pipe3.port_a.h_outflow ($RES_SIM_293) (53) [ARRY] (2) pipe1.crossAreasFM[:] = {pipe1.crossAreas[1], pipe1.crossAreas[1]} ($RES_SIM_136) (54) [SCAL] (1) $FUN_7 = semiLinear(-pipe1.port_b.m_flow, pipe1.port_b.h_outflow, pipe3.mediums[1].h) ($RES_$AUX_275) (55) [SCAL] (1) pipe1.state_b.d = Modelica.Media.Water.IF97_Utilities.rho_ph(pipe1.port_b.p, pipe3.port_a.h_outflow, 0, 0) ($RES_SIM_294) (56) [SCAL] (1) valveIncompressible1.dp = pipe3.port_b.p - valveIncompressible1.port_b.p ($RES_SIM_97) (57) [ARRY] (1) pipe1.dheightsFM[:] = {0.0} ($RES_SIM_137) (58) [SCAL] (1) $FUN_8 = semiLinear(valveIncompressible1.port_b.m_flow, valveIncompressible1.port_a.h_outflow, pipe3.mediums[1].h) ($RES_$AUX_274) (59) [SCAL] (1) pipe1.state_b.T = Modelica.Media.Water.IF97_Utilities.T_ph(pipe1.port_b.p, pipe3.port_a.h_outflow, 0, 0) ($RES_SIM_295) (60) [ARRY] (1) pipe1.pathLengths[:] = {10.0} ($RES_SIM_138) (61) [TUPL] (4) ($FUN_9, $FUN_10, $FUN_11, $FUN_12) = ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.valveOpening1.getInterpolationCoefficients(valveOpening1.table, valveOpening1.offset, valveOpening1.startTime, time, valveOpening1.last, 1e-13, valveOpening1.shiftTime) ($RES_$AUX_273) (62) [SCAL] (1) pipe1.state_b.p = pipe1.port_b.p ($RES_SIM_296) (63) [ARRY] (1) pipe1.Wb_flows = (pipe1.crossAreas * pipe1.vs * (($FUN_2 + pipe1.port_b.p) - ((system.g * {0.0}) / pipe1.mediums.d + pipe1.port_a.p))) / ({1.0} * {1.0}) .* {1.0} .* pipe1.nParallel ($RES_SIM_139) (64) [SCAL] (1) $FUN_13 = ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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_272) (65) [SCAL] (1) valveIncompressible1.state_a.phase = 0 ($RES_SIM_297) (66) [SCAL] (1) pipe3.flowModel.dp_fric_nominal = sum({$FUN_13}) ($RES_$AUX_271) (67) [SCAL] (1) valveIncompressible1.state_a.h = valveIncompressible1.port_b.h_outflow ($RES_SIM_298) (68) [SCAL] (1) $FUN_15 = ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe1.flowModel.WallFriction.pressureLoss_m_flow(pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel, pipe1.flowModel.rho_nominal, pipe1.flowModel.rho_nominal, pipe1.flowModel.mu_nominal, pipe1.flowModel.mu_nominal, pipe1.flowModel.pathLengths_internal[1], pipe1.flowModel.diameters[1], (0.5 .* (pipe1.flowModel.crossAreas[2:2] + pipe1.flowModel.crossAreas[1:1]))[1], (0.5 .* (pipe1.flowModel.roughnesses[2:2] + pipe1.flowModel.roughnesses[1:1]))[1], pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[1]) ($RES_$AUX_270) (69) [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_299) (70) [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_300) (71) [SCAL] (1) valveIncompressible1.state_a.p = pipe3.port_b.p ($RES_SIM_301) (72) [SCAL] (1) valveIncompressible1.state_b.phase = 0 ($RES_SIM_302) (73) [ARRY] (1) pipe3.vsFM[2:2] = pipe3.vs ($RES_SIM_20) (74) [SCAL] (1) valveIncompressible1.state_b.h = sink.ports[1].h_outflow ($RES_SIM_303) (75) [SCAL] (1) pipe3.vsFM[1] = ((pipe3.m_flows[1] / pipe3.state_a.d) / pipe3.crossAreas[1]) / pipe3.nParallel ($RES_SIM_21) (76) [SCAL] (1) valveIncompressible1.state_b.d = Modelica.Media.Water.IF97_Utilities.rho_ph(valveIncompressible1.port_b.p, sink.ports[1].h_outflow, 0, 0) ($RES_SIM_304) (77) [ARRY] (1) pipe3.m_flows[1:1] = pipe3.flowModel.m_flows[:] ($RES_SIM_22) (78) [SCAL] (1) valveIncompressible1.state_b.T = Modelica.Media.Water.IF97_Utilities.T_ph(valveIncompressible1.port_b.p, sink.ports[1].h_outflow, 0, 0) ($RES_SIM_305) (79) [ARRY] (5) pipe3.statesFM[2:2] = pipe3.mediums[:].state ($RES_SIM_23) (80) [SCAL] (1) valveIncompressible1.state_b.p = valveIncompressible1.port_b.p ($RES_SIM_306) (81) [RECD] (5) pipe3.statesFM[1] = pipe3.state_a ($RES_SIM_24) (82) [SCAL] (1) pipe3.state_a.phase = 0 ($RES_SIM_307) (83) [SCAL] (1) pipe3.state_a.h = pipe1.port_b.h_outflow ($RES_SIM_308) (84) [SCAL] (1) pipe3.state_a.d = Modelica.Media.Water.IF97_Utilities.rho_ph(pipe1.port_b.p, pipe1.port_b.h_outflow, 0, 0) ($RES_SIM_309) (85) [SCAL] (1) valveIncompressible1.port_b.h_outflow = pipe3.mediums[1].h ($RES_SIM_27) (86) [ARRY] (1) pipe1.Qb_flows = pipe1.heatTransfer.Q_flows ($RES_SIM_140) (87) [SCAL] (1) pipe3.port_a.h_outflow = pipe3.mediums[1].h ($RES_SIM_28) (88) [ARRY] (1) pipe1.heatTransfer.Q_flows = pipe1.heatTransfer.heatPorts.Q_flow ($RES_SIM_141) (89) [SCAL] (1) valveIncompressible1.port_b.m_flow = -pipe3.m_flows[2] ($RES_SIM_29) (90) [ARRY] (1) pipe1.heatTransfer.Ts = pipe1.heatTransfer.heatPorts.T ($RES_SIM_142) (91) [SCAL] (1) pipe1.flowModel.dp_fric_nominal = sum({$FUN_15}) ($RES_$AUX_269) (92) [ARRY] (1) {0.0} = pipe1.flowModel.Ib_flows - (pipe1.flowModel.Fs_fg + pipe1.flowModel.Fs_p) ($RES_SIM_143) (93) [ARRY] (1) pipe1.flowModel.Is = {pipe1.flowModel.m_flows[1] * pipe1.flowModel.pathLengths[1]} ($RES_SIM_144) (94) [ARRY] (1) pipe1.flowModel.dps_fg = {(2.0 * (pipe1.flowModel.Fs_fg[1] / pipe1.flowModel.nParallel)) / (pipe1.flowModel.crossAreas[1] + pipe1.flowModel.crossAreas[2])} ($RES_SIM_145) (95) [ARRY] (1) pipe1.flowModel.Fs_p = pipe1.flowModel.nParallel * {0.5 * (pipe1.flowModel.crossAreas[1] + pipe1.flowModel.crossAreas[2]) * (pipe1.flowModel.states.phase - pipe1.flowModel.states.phase)} ($RES_SIM_146) (96) [ARRY] (1) pipe1.flowModel.Ib_flows = {0.0} ($RES_SIM_147) (97) [SCAL] (1) pipe1.flowModel.rhos_act[1] = noEvent(if $SEV_20 then pipe1.flowModel.rhos[1] else pipe1.flowModel.rhos[2]) ($RES_SIM_148) (98) [SCAL] (1) pipe1.flowModel.mus_act[1] = noEvent(if $SEV_20 then pipe1.flowModel.mus[1] else pipe1.flowModel.mus[2]) ($RES_SIM_149) (99) [SCAL] (1) pipe3.state_a.T = Modelica.Media.Water.IF97_Utilities.T_ph(pipe1.port_b.p, pipe1.port_b.h_outflow, 0, 0) ($RES_SIM_310) (100) [SCAL] (1) pipe3.state_a.p = pipe1.port_b.p ($RES_SIM_311) (101) [SCAL] (1) -pipe1.port_b.m_flow = pipe3.m_flows[1] ($RES_SIM_30) (102) [SCAL] (1) pipe3.state_b.h = valveIncompressible1.port_a.h_outflow ($RES_SIM_313) (103) [SCAL] (1) pipe3.H_flows[2] = -$FUN_8 ($RES_SIM_31) (104) [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_314) (105) [SCAL] (1) pipe3.H_flows[1] = $FUN_7 ($RES_SIM_32) (106) [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_315) (107) [SCAL] (1) pipe3.mb_flows[1] = pipe3.m_flows[1] - pipe3.m_flows[2] ($RES_SIM_33) (108) [SCAL] (1) pipe3.state_b.p = pipe3.port_b.p ($RES_SIM_316) (109) [SCAL] (1) pipe3.Hb_flows[1] = pipe3.H_flows[1] - pipe3.H_flows[2] ($RES_SIM_34) (110) [ARRY] (2) pipe3.roughnessesFM[:] = {pipe3.roughnesses[1], pipe3.roughnesses[1]} ($RES_SIM_35) (111) [ARRY] (2) pipe3.dimensionsFM[:] = {pipe3.dimensions[1], pipe3.dimensions[1]} ($RES_SIM_36) (112) [ARRY] (2) pipe3.crossAreasFM[:] = {pipe3.crossAreas[1], pipe3.crossAreas[1]} ($RES_SIM_37) (113) [ARRY] (1) pipe1.flowModel.m_flows = {homotopy(({$FUN_1} .* pipe1.flowModel.nParallel)[1], (pipe1.flowModel.m_flow_nominal / pipe1.flowModel.dp_nominal * (pipe1.flowModel.dps_fg - (pipe1.flowModel.g * pipe1.flowModel.dheights) .* pipe1.flowModel.rho_nominal))[1])} ($RES_SIM_150) (114) [ARRY] (1) pipe3.dheightsFM[:] = {0.0} ($RES_SIM_38) (115) [ARRY] (1) pipe3.pathLengths[:] = {10.0} ($RES_SIM_39) (116) [ARRY] (1) pipe1.mediums.phase = pipe1.mediums.state.phase ($RES_SIM_156) (117) [ARRY] (1) pipe1.mediums.d = pipe1.mediums.state.d ($RES_SIM_157) (118) [ARRY] (1) pipe1.mediums.T = pipe1.mediums.state.T ($RES_SIM_158) (119) [ARRY] (1) pipe1.mediums.p = pipe1.mediums.state.p ($RES_SIM_159) (120) [SCAL] (1) $TEV_0 = $PRE.valveOpening1.nextEvent ($RES_EVT_320) (121) [SCAL] (1) $SEV_4 = pipe3.flowModel.m_flows[1] > 0.0 ($RES_EVT_321) (122) [SCAL] (1) $SEV_5[1] = pipe3.mediums[1].p >= 0.0 ($RES_EVT_322) (123) [SCAL] (1) $SEV_7 = (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_324) (124) [SCAL] (1) $SEV_10 = (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_327) (125) [SCAL] (1) $SEV_11 = valveIncompressible1.dp >= valveIncompressible1.dp_turbulent ($RES_EVT_328) (126) [SCAL] (1) $SEV_12 = valveIncompressible1.state_a.d > 0.0 ($RES_EVT_329) (127) [ARRY] (1) pipe1.fluidVolumes = {10.0 * pipe1.crossAreas[1]} .* pipe1.nParallel ($RES_BND_211) (128) [ARRY] (1) pipe1.mediums.p_bar = {1e-5 * pipe1.mediums[1].p} ($RES_BND_212) (129) [ARRY] (1) pipe1.mediums.T_degC = {(-273.15) + pipe1.mediums[1].T} ($RES_BND_213) (130) [ARRY] (2) pipe1.flowModel.vs = pipe1.vsFM ($RES_BND_214) (131) [ARRY] (2) pipe1.flowModel.crossAreas = pipe1.crossAreasFM ($RES_BND_215) (132) [ARRY] (1) pipe3.Wb_flows = (pipe3.crossAreas * pipe3.vs * (($FUN_6 + pipe3.port_b.p) - ((system.g * {0.0}) / pipe3.mediums.d + pipe1.port_b.p))) / ({1.0} * {1.0}) .* {1.0} .* pipe3.nParallel ($RES_SIM_40) (133) [ARRY] (2) pipe1.flowModel.dimensions = pipe1.dimensionsFM ($RES_BND_216) (134) [ARRY] (1) pipe3.Qb_flows = pipe3.heatTransfer.Q_flows ($RES_SIM_41) (135) [ARRY] (2) pipe1.flowModel.roughnesses = pipe1.roughnessesFM ($RES_BND_217) (136) [ARRY] (1) pipe3.heatTransfer.Q_flows = pipe3.heatTransfer.heatPorts.Q_flow ($RES_SIM_42) (137) [ARRY] (1) pipe1.flowModel.dheights = pipe1.dheightsFM ($RES_BND_218) (138) [ARRY] (1) pipe3.heatTransfer.Ts = pipe3.heatTransfer.heatPorts.T ($RES_SIM_43) (139) [ARRY] (1) pipe1.flowModel.pathLengths = pipe1.pathLengths ($RES_BND_219) (140) [ARRY] (1) {0.0} = pipe3.flowModel.Ib_flows - (pipe3.flowModel.Fs_fg + pipe3.flowModel.Fs_p) ($RES_SIM_44) (141) [ARRY] (1) pipe3.flowModel.Is = {pipe3.flowModel.m_flows[1] * pipe3.flowModel.pathLengths[1]} ($RES_SIM_45) (142) [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_46) (143) [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_47) (144) [ARRY] (1) pipe1.mediums.h = pipe1.mediums.state.h ($RES_SIM_160) (145) [ARRY] (1) pipe3.flowModel.Ib_flows = {0.0} ($RES_SIM_48) (146) [SCAL] (1) pipe3.flowModel.rhos_act[1] = noEvent(if $SEV_4 then pipe3.flowModel.rhos[1] else pipe3.flowModel.rhos[2]) ($RES_SIM_49) (147) [SCAL] (1) pipe1.mediums[1].u = pipe1.mediums[1].h - pipe1.mediums[1].p / pipe1.mediums[1].d ($RES_SIM_162) (148) [ARRY] (1) pipe1.mediums.sat.psat = pipe1.mediums.p ($RES_SIM_163) (149) [SCAL] (1) pipe1.mediums[1].sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(pipe1.mediums[1].p) ($RES_SIM_164) (150) [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_165) (151) [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_166) (152) [SCAL] (1) pipe1.mediums[1].phase = if $SEV_23 then 1 else 2 ($RES_SIM_167) (153) [SCAL] (1) source.ports[1].p = source.p ($RES_SIM_169) (154) [SCAL] (1) $SEV_13 = valveIncompressible1.dp <= (-valveIncompressible1.dp_turbulent) ($RES_EVT_330) (155) [SCAL] (1) $SEV_14 = valveIncompressible1.state_b.d > 0.0 ($RES_EVT_331) (156) [SCAL] (1) $SEV_15 = valveIncompressible1.state_a.d >= valveIncompressible1.state_b.d ($RES_EVT_332) (157) [SCAL] (1) $SEV_16 = valveOpening1.y < valveIncompressible1.minLimiter.uMin ($RES_EVT_333) (158) [SCAL] (1) $SEV_20 = pipe1.flowModel.m_flows[1] > 0.0 ($RES_EVT_337) (159) [SCAL] (1) $SEV_21[1] = pipe1.mediums[1].p >= 0.0 ($RES_EVT_338) (160) [FOR-] (2) ($RES_BND_220) (160) [----] for $i1 in 1:2 loop (160) [----] [SCAL] (1) pipe1.flowModel.rhos[$i1] = pipe1.flowModel.states.d ($RES_BND_221) (160) [----] end for; (161) [FOR-] (2) ($RES_BND_222) (161) [----] for $i1 in 1:2 loop (161) [----] [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_223) (161) [----] end for; (162) [ARRY] (1) pipe1.flowModel.pathLengths_internal = pipe1.flowModel.pathLengths ($RES_BND_224) (163) [SCAL] (1) pipe1.flowModel.Res_turbulent_internal[1] = pipe1.flowModel.Re_turbulent ($RES_BND_225) (164) [SCAL] (1) pipe3.flowModel.mus_act[1] = noEvent(if $SEV_4 then pipe3.flowModel.mus[1] else pipe3.flowModel.mus[2]) ($RES_SIM_50) (165) [ARRY] (1) pipe1.flowModel.diameters = 0.5 * (pipe1.flowModel.dimensions[2:2] + pipe1.flowModel.dimensions[1:1]) ($RES_BND_226) (166) [ARRY] (1) pipe3.flowModel.m_flows = {homotopy(({$FUN_5} .* 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_51) (167) [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_228) (168) [ARRY] (1) pipe3.mediums.phase = pipe3.mediums.state.phase ($RES_SIM_57) (169) [SCAL] (1) source.ports[1].h_outflow = source.medium.h ($RES_SIM_170) (170) [ARRY] (1) pipe3.mediums.d = pipe3.mediums.state.d ($RES_SIM_58) (171) [SCAL] (1) source.medium.h = Modelica.Media.Water.IF97_Utilities.h_pT(source.p, source.T, 0) ($RES_SIM_171) (172) [ARRY] (1) pipe3.mediums.T = pipe3.mediums.state.T ($RES_SIM_59) (173) [SCAL] (1) $SEV_23 = (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_340) (174) [SCAL] (1) $SEV_26 = (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_343) (175) [SCAL] (1) $SEV_27 = valveIncompressible1.port_b.m_flow > valveIncompressible1.m_flow_small ($RES_EVT_344) (176) [SCAL] (1) $SEV_28 = valveIncompressible1.port_b.m_flow < (-valveIncompressible1.m_flow_small) ($RES_EVT_345) (177) [SCAL] (1) $SEV_29 = valveIncompressible1.m_flow_small > 0.0 ($RES_EVT_346) (178) [SCAL] (1) $SEV_30 = (-valveIncompressible1.port_b.m_flow) > valveIncompressible1.m_flow_small ($RES_EVT_347) (179) [SCAL] (1) $SEV_31 = (-valveIncompressible1.port_b.m_flow) < (-valveIncompressible1.m_flow_small) ($RES_EVT_348) (180) [ARRY] (1) pipe1.heatTransfer.Ts = {pipe1.heatTransfer.states.h} ($RES_BND_230) (181) [ARRY] (1) pipe1.heatTransfer.vs = pipe1.vs ($RES_BND_231) (182) [SCAL] (1) valveIncompressible1.V_flow = -valveIncompressible1.port_b.m_flow / smooth(1, if $SEV_30 then valveIncompressible1.state_a.d else if $SEV_31 then valveIncompressible1.state_b.d else if $SEV_29 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_235) (183) [ARRY] (1) pipe3.mediums.p = pipe3.mediums.state.p ($RES_SIM_60) (184) [SCAL] (1) valveIncompressible1.port_a_T = smooth(1, if $SEV_30 then valveIncompressible1.state_a.T else if $SEV_31 then Modelica.Media.Water.IF97_Utilities.T_ph(pipe3.port_b.p, valveIncompressible1.port_a.h_outflow, 0, 0) else if $SEV_29 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_236) (185) [ARRY] (1) pipe3.mediums.h = pipe3.mediums.state.h ($RES_SIM_61) (186) [SCAL] (1) valveIncompressible1.port_a.h_outflow = sink.ports[1].h_outflow ($RES_SIM_101) (187) [SCAL] (1) valveIncompressible1.port_b_T = smooth(1, if $SEV_27 then valveIncompressible1.state_b.T else if $SEV_28 then Modelica.Media.Water.IF97_Utilities.T_ph(valveIncompressible1.port_b.p, valveIncompressible1.port_b.h_outflow, 0, 0) else if $SEV_29 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_237) (188) [SCAL] (1) -valveIncompressible1.port_b.m_flow = homotopy(valveIncompressible1.Av * valveIncompressible1.relativeFlowCoefficient * smooth(2, if $SEV_11 then (if $SEV_12 then sqrt(valveIncompressible1.state_a.d) else 0.0) * sqrt(valveIncompressible1.dp) else if $SEV_13 then -(if $SEV_14 then sqrt(valveIncompressible1.state_b.d) else 0.0) * sqrt(abs(valveIncompressible1.dp)) else if $SEV_15 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_102) (189) [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_238) (190) [SCAL] (1) pipe3.mediums[1].u = pipe3.mediums[1].h - pipe3.mediums[1].p / pipe3.mediums[1].d ($RES_SIM_63) (191) [ARRY] (1) pipe3.mediums.sat.psat = pipe3.mediums.p ($RES_SIM_64) (192) [SCAL] (1) valveIncompressible1.minLimiter.y = smooth(0, noEvent(if $SEV_16 then valveIncompressible1.minLimiter.uMin else valveOpening1.y)) ($RES_SIM_104) (193) [SCAL] (1) pipe3.mediums[1].sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(pipe3.mediums[1].p) ($RES_SIM_65) (194) [SCAL] (1) valveIncompressible1.relativeFlowCoefficient = valveIncompressible1.filter.u_nominal * valveIncompressible1.filter.gain * valveIncompressible1.filter.uu[3] ($RES_SIM_105) (195) [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_66) (196) [FOR-] (2) ($RES_SIM_106) (196) [----] for $i1 in 1:2 loop (196) [----] [SCAL] (1) valveIncompressible1.filter.uu[$i1 + 1] = valveIncompressible1.filter.x[$i1] ($RES_SIM_107) (196) [----] end for; (197) [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_67) (198) [SCAL] (1) pipe3.mediums[1].phase = if $SEV_7 then 1 else 2 ($RES_SIM_68) (199) [SCAL] (1) source.medium.phase = source.medium.state.phase ($RES_SIM_181) (200) [FOR-] (2) ($RES_SIM_108) (200) [----] for $i1 in 1:2 loop (200) [----] [SCAL] (1) $DER.valveIncompressible1.filter.x[$i1] = valveIncompressible1.filter.r[$i1] * (valveIncompressible1.filter.x[$i1] - valveIncompressible1.filter.uu[$i1]) ($RES_SIM_109) (200) [----] end for; (201) [SCAL] (1) source.medium.d = source.medium.state.d ($RES_SIM_182) (202) [SCAL] (1) -((-273.15) - source.medium.T_degC) = source.medium.state.T ($RES_SIM_183) (203) [SCAL] (1) source.medium.h = source.medium.state.h ($RES_SIM_185) (204) [SCAL] (1) source.medium.u = source.medium.h - source.p / source.medium.d ($RES_SIM_187) (205) [SCAL] (1) source.medium.sat.psat = source.p ($RES_SIM_188) (206) [ARRY] (1) pipe3.fluidVolumes = {10.0 * pipe3.crossAreas[1]} .* pipe3.nParallel ($RES_BND_241) (207) [ARRY] (1) pipe3.mediums.p_bar = {1e-5 * pipe3.mediums[1].p} ($RES_BND_242) (208) [ARRY] (1) pipe3.mediums.T_degC = {(-273.15) + pipe3.mediums[1].T} ($RES_BND_243) (209) [ARRY] (2) pipe3.flowModel.vs = pipe3.vsFM ($RES_BND_244) (210) [ARRY] (2) pipe3.flowModel.crossAreas = pipe3.crossAreasFM ($RES_BND_245) (211) [SCAL] (1) sink.ports[1].p = sink.p ($RES_SIM_70) (212) [SCAL] (1) valveIncompressible1.filter.uu[1] = valveIncompressible1.minLimiter.y / valveIncompressible1.filter.u_nominal ($RES_SIM_110) (213) [ARRY] (2) pipe3.flowModel.dimensions = pipe3.dimensionsFM ($RES_BND_246) (214) [SCAL] (1) sink.ports[1].h_outflow = sink.medium.h ($RES_SIM_71) (215) [ARRY] (2) pipe3.flowModel.roughnesses = pipe3.roughnessesFM ($RES_BND_247) (216) [SCAL] (1) sink.medium.h = Modelica.Media.Water.IF97_Utilities.h_pT(sink.p, sink.T, 0) ($RES_SIM_72) (217) [ARRY] (1) pipe3.flowModel.dheights = pipe3.dheightsFM ($RES_BND_248) (218) [ARRY] (1) pipe3.flowModel.pathLengths = pipe3.pathLengths ($RES_BND_249) (219) [SCAL] (1) $DER.pipe1.ms[1] = pipe1.mb_flows[1] ($RES_SIM_114) (220) [SCAL] (1) $DER.pipe1.Us[1] = pipe1.Wb_flows[1] + pipe1.Hb_flows[1] + pipe1.Qb_flows[1] ($RES_SIM_115) (221) [SCAL] (1) pipe1.ms[1] = pipe1.fluidVolumes[1] * pipe1.mediums[1].d ($RES_SIM_116) (222) [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_190) (223) [SCAL] (1) pipe1.Us[1] = pipe1.ms[1] * pipe1.mediums[1].u ($RES_SIM_117) (224) [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_191) (225) [SCAL] (1) pipe1.port_b.p = pipe1.mediums[1].p ($RES_SIM_118) (226) [SCAL] (1) source.medium.phase = if $SEV_26 then 1 else 2 ($RES_SIM_192) (227) [ARRY] (1) pipe1.vsFM[2:2] = pipe1.vs ($RES_SIM_119) (228) [SCAL] (1) pipe3.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_194) (229) [SCAL] (1) valveIncompressible1.port_b.m_flow + sink.ports[1].m_flow = 0.0 ($RES_SIM_196) (230) [SCAL] (1) pipe1.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_197) (231) [FOR-] (2) ($RES_BND_250) (231) [----] for $i1 in 1:2 loop (231) [----] [SCAL] (1) pipe3.flowModel.rhos[$i1] = pipe3.flowModel.states.d ($RES_BND_251) (231) [----] end for; (232) [FOR-] (2) ($RES_BND_252) (232) [----] for $i1 in 1:2 loop (232) [----] [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_253) (232) [----] end for; (233) [SCAL] (1) valveIncompressible1.port_b.p = sink.ports[1].p ($RES_SIM_202) (234) [SCAL] (1) pipe1.port_a.m_flow + source.ports[1].m_flow = 0.0 ($RES_SIM_203) (235) [ARRY] (1) pipe3.flowModel.pathLengths_internal = pipe3.flowModel.pathLengths ($RES_BND_254)