Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2") 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: 109.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.001104/0.001104, allocations: 189.9 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.226/1.226, 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.156/0.156, allocations: 38 MB / 308.6 MB, free: 5.996 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.369e-05/2.37e-05, allocations: 6.219 kB / 433.6 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2): time 0.05872/0.05875, allocations: 75.18 MB / 0.4969 GB, free: 3.039 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2242/0.283, allocations: 33.46 MB / 0.5296 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001537/0.2845, allocations: 40.03 kB / 0.5296 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00201/0.2866, allocations: 1.04 MB / 0.5306 GB, free: 3.59 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/Fluid/TestComponents/Sensors/TestTemperature2.mo:86:3-86:124:writable] Warning: Conditional component 'm_flow_in' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.01114/0.2977, allocations: 5.091 MB / 0.5356 GB, free: 3.527 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01428/0.312, allocations: 6.328 MB / 0.5418 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00583/0.3179, allocations: 4.987 MB / 0.5466 GB, free: 3.242 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001751/0.3197, allocations: 1.287 MB / 0.5479 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01015/0.3298, allocations: 5.497 MB / 0.5533 GB, free: 1.375 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002754/0.3326, allocations: 1.499 MB / 0.5547 GB, free: 0.957 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003658/0.333, allocations: 168.9 kB / 0.5549 GB, free: 0.957 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01218/0.3452, allocations: 6.783 MB / 0.5615 GB, free: 15.36 MB / 414.1 MB Notification: Performance of combineBinaries: time 0.002842/0.348, allocations: 3.219 MB / 0.5646 GB, free: 12.8 MB / 414.1 MB Notification: Performance of replaceArrayConstructors: time 0.001252/0.3493, allocations: 2.018 MB / 0.5666 GB, free: 10.96 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004877/0.3498, allocations: 296.7 kB / 0.5669 GB, free: 10.74 MB / 414.1 MB Notification: Performance of FrontEnd: time 0.0002516/0.3501, allocations: 52.69 kB / 0.5669 GB, free: 10.69 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: 441 (335) * Number of variables: 441 (333) Notification: Performance of Bindings: time 0.00822/0.3583, allocations: 9.757 MB / 0.5765 GB, free: 2.113 MB / 414.1 MB Notification: Performance of FunctionAlias: time 0.0009202/0.3592, allocations: 1.021 MB / 0.5775 GB, free: 1.094 MB / 414.1 MB Notification: Performance of Early Inline: time 0.005358/0.3646, allocations: 5.57 MB / 0.5829 GB, free: 11.61 MB / 430.1 MB Notification: Performance of simplify1: time 0.0003541/0.365, allocations: 293.6 kB / 0.5832 GB, free: 11.34 MB / 430.1 MB Notification: Performance of Alias: time 0.004992/0.37, allocations: 4.864 MB / 0.5879 GB, free: 5.996 MB / 430.1 MB Notification: Performance of simplify2: time 0.0003438/0.3703, allocations: 287.9 kB / 0.5882 GB, free: 5.73 MB / 430.1 MB Notification: Performance of Events: time 0.001817/0.3721, allocations: 1.706 MB / 0.5899 GB, free: 4.035 MB / 430.1 MB Notification: Performance of Detect States: time 0.001374/0.3735, allocations: 1.563 MB / 0.5914 GB, free: 2.484 MB / 430.1 MB Notification: Performance of Partitioning: time 0.002403/0.3759, allocations: 2.551 MB / 0.5939 GB, free: 15.45 MB / 446.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency volume1_1.heatTransfer.states.h could not be divided by the body size 5 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (5) volume1_1.heatTransfer.states = {volume1_1.medium.state} ($RES_BND_442) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (254/356) **************************** (1) [ALGB] (1) Real source1.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (2) [ALGB] (1) Real[1] sink1.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}) (3) [DISC] (1) Boolean $SEV_29 (4) [DISC] (1) Boolean $SEV_28 (5) [DISC] (1) Integer volume1_1.medium.phase (fixed = false, start = 1, min = 0, max = 2) (6) [DISC] (1) Integer volume1_2.medium.phase (fixed = false, start = 1, min = 0, max = 2) (7) [ALGB] (1) Real[1] volume1_1.heatTransfer.Ts = {ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.volume1_1.heatTransfer.Medium.temperature(volume1_1.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}) (8) [ALGB] (1) Real source2.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (9) [ALGB] (1) Real source2.medium.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0, StateSelect = default) (10) [DISC] (3) protected Boolean[3] volume1_2.inFlow (start = {false for $i1 in 1:3}) (11) [DISC] (1) Boolean $SEV_22 (12) [DISC] (1) Integer volume2_1.medium.phase (fixed = false, start = 1, min = 0, max = 2) (13) [DISC] (1) Integer volume2_2.medium.phase (fixed = false, start = 1, min = 0, max = 2) (14) [ALGB] (1) Real volume2_2.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (15) [DISC] (1) Integer source1.medium.state.phase (min = 0, max = 2) (16) [ALGB] (3) Real[3] volume1_1.portVelocities (17) [DER-] (1) Real $DER.volume1_2.m (18) [DISC] (1) Boolean $TEV_1 (19) [DISC] (1) Boolean $TEV_0 (20) [ALGB] (3) Real[3] volume1_2.portInDensities (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}) (21) [ALGB] (3) Real[3] volume1_2.s (start = {volume1_2.fluidLevel_max for $i1 in 1:3}) (22) [ALGB] (2) flow Real[2] volume2_1.ports.m_flow (min = {-1e5 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}) (23) [ALGB] (2) stream Real[2] volume2_1.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}) (24) [ALGB] (2) flow Real[2] volume2_2.ports.m_flow (min = {-1e5 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}) (25) [ALGB] (1) Real Tmix1_2.T (min = 0.0) (26) [ALGB] (1) final input Real[1, 1] volume2_1.heatTransfer.states.T = {volume2_1.medium.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}) (27) [DISC] (3) Boolean[3] $SEV_58[$i1] (28) [ALGB] (1) Real volume1_1.medium.sat.Tsat (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (29) [ALGB] (1) Real volume2_2.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (30) [ALGB] (1) protected Real Tmix2.T_b_inflow (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (31) [DISC] (1) Boolean $SEV_19 (32) [ALGB] (1) Real[1] sink2.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}) (33) [DISC] (1) Boolean $SEV_18 (34) [ALGB] (1) Real[1] volume2_1.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}) (35) [DISC] (2) protected Boolean[2] volume2_2.regularFlow (start = {true for $i1 in 1:2}) (36) [DISC] (2) Boolean[2] $SEV_25[$i1] (37) [ALGB] (2) stream Real[2] volume2_2.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}) (38) [ALGB] (1) final input Real[1, 1] volume2_2.heatTransfer.states.p = {volume2_2.medium.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}) (39) [DISC] (3) Boolean[3] $SEV_42[$i1] (40) [DISC] (1) Boolean $SEV_13 (41) [ALGB] (1) Real source1.m_flow_in (42) [ALGB] (1) Real volume1_1.mb_flow (43) [DISC] (1) Boolean $SEV_12 (44) [ALGB] (1) Real source1.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * source1.medium.p_bar) (45) [ALGB] (1) Real source2.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * source2.medium.p_bar) (46) [ALGB] (3) Real[3] volume1_2.ports_E_flow (47) [ALGB] (3) Real[3] volume1_1.ports_E_flow (48) [ALGB] (1) final input Real[1, 1] volume2_1.heatTransfer.states.d = {volume2_1.medium.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}) (49) [ALGB] (1) Real volume2_2.medium.h (start = volume2_2.h_start, StateSelect = prefer) (50) [ALGB] (1) final input Real[1, 1] volume2_2.heatTransfer.states.h = {volume2_2.medium.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}) (51) [ALGB] (1) final input Real[1, 1] volume2_1.heatTransfer.states.h = {volume2_1.medium.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}) (52) [ALGB] (1) Real volume2_2.medium.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0, StateSelect = default) (53) [ALGB] (1) final input Real[1, 1] volume2_2.heatTransfer.states.d = {volume2_2.medium.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}) (54) [DER-] (1) Real $DER.volume2_1.U (55) [ALGB] (3) Real[3] volume1_1.ports.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}) (56) [ALGB] (1) final input Real[1, 1] volume2_1.heatTransfer.states.p = {volume2_1.medium.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) Real volume2_1.mb_flow (58) [ALGB] (3) Real[3] volume1_1.vessel_ps_static (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}) (59) [DISC] (2) protected Boolean[2] volume2_1.inFlow (start = {false for $i1 in 1:2}) (60) [ALGB] (2) Real[2] volume2_1.ports_H_flow (min = {-1e8 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1000.0 for $i1 in 1:2}) (61) [ALGB] (2) Real[2] volume2_2.ports_H_flow (min = {-1e8 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1000.0 for $i1 in 1:2}) (62) [ALGB] (1) final input Real[1, 1] volume2_2.heatTransfer.states.T = {volume2_2.medium.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}) (63) [ALGB] (1) Real volume1_1.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (64) [ALGB] (1) Real Tmix1_2.port.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (65) [ALGB] (1) Real source1.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (66) [ALGB] (1) Real volume2_1.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (67) [ALGB] (2) Real[2] volume2_1.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}) (68) [ALGB] (1) Real volume1_2.mb_flow (69) [ALGB] (3) protected Real[3] volume1_2.portsData_height (70) [DER-] (1) Real $DER.volume2_1.m (71) [ALGB] (1) Real $FUN_9 (72) [DISC] (3) Boolean[3] $SEV_57[$i1] (73) [ALGB] (1) Real $FUN_7 (74) [ALGB] (2) Real[2] volume2_1.s (start = {volume2_1.fluidLevel_max for $i1 in 1:2}) (75) [ALGB] (1) Real[1] volume1_1.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}) (76) [ALGB] (1) Real $FUN_6 (77) [ALGB] (1) Real volume1_1.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (78) [ALGB] (1) Real $FUN_3 (79) [ALGB] (1) Real $FUN_2 (80) [ALGB] (1) Real volume2_1.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (81) [ALGB] (1) Real volume1_1.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (82) [ALGB] (2) Real[2] volume2_2.portVelocities (83) [ALGB] (1) Real Tmix1_1.T (min = 0.0) (84) [ALGB] (3) Real[3] volume1_2.ports.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}) (85) [ALGB] (1) Real volume2_2.medium.sat.Tsat (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (86) [DISC] (2) Boolean[2] $SEV_24[$i1] (87) [ALGB] (1) Real volume2_1.medium.sat.Tsat (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (88) [ALGB] (1) Real volume1_1.Hb_flow (89) [ALGB] (1) Real volume2_1.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (90) [ALGB] (1) Real volume2_2.mb_flow (91) [DISC] (3) Boolean[3] $SEV_41[$i1] (92) [ALGB] (1) Real volume1_1.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (93) [DISC] (2) Boolean[2] $SEV_9[$i1] (94) [ALGB] (3) stream Real[3] volume1_1.ports.h_outflow (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}) (95) [ALGB] (1) Real volume2_1.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (96) [ALGB] (2) Real[2] volume2_2.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}) (97) [ALGB] (1) Real volume2_1.Hb_flow (98) [ALGB] (1) stream Real[1] sink2.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 volume1_1.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (100) [ALGB] (2) Real[2] volume2_2.vessel_ps_static (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}) (101) [DISC] (1) final input Integer[1, 1] volume2_2.heatTransfer.states.phase = {volume2_2.medium.state.phase} (min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (102) [DER-] (1) Real $DER.volume2_2.U (103) [ALGB] (2) Real[2] volume2_1.vessel_ps_static (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}) (104) [ALGB] (1) Real[1] volume2_1.heatTransfer.Ts = {ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.volume2_1.heatTransfer.Medium.temperature(volume2_1.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}) (105) [ALGB] (1) Real $FUN_14 (106) [ALGB] (1) Real $FUN_13 (107) [ALGB] (1) Real volume1_2.Hb_flow (108) [ALGB] (1) Real $FUN_10 (109) [ALGB] (1) Real volume1_1.medium.h (start = volume1_1.h_start, StateSelect = prefer) (110) [ALGB] (1) Real[1] volume2_2.heatTransfer.Q_flows (111) [DISC] (1) Boolean $SEV_66 (112) [DISC] (1) Boolean $SEV_65 (113) [ALGB] (1) Real source2.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (114) [ALGB] (1) Real volume1_1.medium.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0, StateSelect = default) (115) [ALGB] (1) Real volume2_1.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * volume2_1.medium.p_bar) (116) [ALGB] (1) Real volume2_2.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * volume2_2.medium.p_bar) (117) [DISC] (3) Boolean[3] $SEV_39[$i1] (118) [ALGB] (1) Real source2.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - source2.medium.T_degC)) (119) [ALGB] (1) Real volume2_2.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (120) [DISC] (1) Boolean $SEV_60 (121) [DISC] (3) Boolean[3] $SEV_56[$i1] (122) [ALGB] (1) Real volume1_2.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (123) [ALGB] (1) Real volume1_1.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * volume1_1.medium.p_bar) (124) [ALGB] (1) Real volume1_2.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (125) [ALGB] (1) Real volume1_2.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * volume1_2.medium.p_bar) (126) [ALGB] (1) Real volume2_2.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - volume2_2.medium.T_degC)) (127) [DISC] (1) Boolean $SEV_3 (128) [DISC] (1) Boolean $SEV_2 (129) [DER-] (1) Real $DER.volume2_2.m (130) [DISC] (1) Boolean $SEV_1 (131) [ALGB] (1) Real volume2_2.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (132) [DISC] (1) Boolean $SEV_0 (133) [ALGB] (1) Real volume2_2.Hb_flow (134) [DISC] (2) Boolean[2] $SEV_23[$i1] (135) [ALGB] (2) Real[2] volume2_2.s (start = {volume2_2.fluidLevel_max for $i1 in 1:2}) (136) [ALGB] (2) Real[2] volume2_1.portVelocities (137) [ALGB] (1) Real volume1_2.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (138) [ALGB] (1) Real volume2_2.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (139) [DISC] (3) Boolean[3] $SEV_40[$i1] (140) [ALGB] (2) Real[2] volume2_2.portInDensities (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}) (141) [ALGB] (1) Real Tmix2.T (min = 0.0) (142) [ALGB] (1) flow Real[1] source1.ports.m_flow (min = {-1e60}, max = {1e60}) (143) [ALGB] (1) Real volume1_2.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (144) [ALGB] (1) flow Real[1] source2.ports.m_flow (min = {-1e60}, max = {1e60}) (145) [ALGB] (1) flow Real Tmix2.port_b.m_flow (min = -1e5, max = 1e60) (146) [DISC] (2) Boolean[2] $SEV_8[$i1] (147) [ALGB] (1) Real source1.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (148) [ALGB] (1) Real source1.medium.sat.Tsat (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (149) [ALGB] (1) Real[1] volume1_2.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}) (150) [DISC] (3) protected Boolean[3] volume1_1.regularFlow (start = {true for $i1 in 1:3}) (151) [ALGB] (1) Real volume1_1.Qb_flow (152) [DISC] (3) protected Boolean[3] volume1_1.inFlow (start = {false for $i1 in 1:3}) (153) [DISC] (1) Boolean $SEV_59 (154) [ALGB] (1) Real[1] volume2_1.heatTransfer.Q_flows (155) [ALGB] (3) Real[3] volume1_2.portVelocities (156) [DISC] (1) Integer volume1_2.medium.state.phase (min = 0, max = 2) (157) [ALGB] (1) Real volume2_2.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (158) [DISC] (1) Boolean $SEV_53 (159) [ALGB] (1) Real volume1_2.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (160) [DISC] (1) Integer source1.medium.phase (fixed = false, start = 1, min = 0, max = 2) (161) [ALGB] (1) final input Real[1, 1] volume1_2.heatTransfer.states.T = {volume1_2.medium.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}) (162) [DISC] (1) Integer source2.medium.phase (fixed = false, start = 1, min = 0, max = 2) (163) [ALGB] (1) flow Real[1] volume2_2.heatTransfer.heatPorts.Q_flow (164) [DISC] (1) Boolean $SEV_50 (165) [ALGB] (3) stream Real[3] volume1_2.ports.h_outflow (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}) (166) [ALGB] (1) Real source1.medium.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0, StateSelect = default) (167) [DISC] (2) protected Boolean[2] volume2_2.inFlow (start = {false for $i1 in 1:2}) (168) [ALGB] (1) Real volume2_1.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (169) [ALGB] (1) Real volume2_1.Qb_flow (170) [ALGB] (1) flow Real[1] volume2_1.heatTransfer.heatPorts.Q_flow (171) [ALGB] (2) Real[2] volume2_1.portInDensities (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}) (172) [ALGB] (1) stream Real[1] source2.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}) (173) [ALGB] (1) Real Tmix1_1.port.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (174) [DISC] (1) final input Integer[1, 1] volume1_2.heatTransfer.states.phase = {volume1_2.medium.state.phase} (min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (175) [ALGB] (1) final input Real[1, 1] volume1_2.heatTransfer.states.d = {volume1_2.medium.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}) (176) [ALGB] (1) protected Real Tmix2.T_a_inflow (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (177) [DISC] (1) Integer volume2_2.medium.state.phase (min = 0, max = 2) (178) [ALGB] (1) Real volume1_1.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - volume1_1.medium.T_degC)) (179) [DISC] (3) Boolean[3] $SEV_38[$i1] (180) [ALGB] (1) final input Real[1, 1] volume1_2.heatTransfer.states.h = {volume1_2.medium.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}) (181) [DISC] (1) Integer source2.medium.state.phase (min = 0, max = 2) (182) [DISC] (3) Boolean[3] $SEV_55[$i1] (183) [DISC] (2) Boolean[2] $SEV_27[$i1] (184) [DER-] (1) Real $DER.volume1_1.U (185) [ALGB] (1) Real volume1_2.Qb_flow (186) [DISC] (1) Boolean $SEV_49 (187) [ALGB] (3) Real[3] volume1_2.vessel_ps_static (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}) (188) [ALGB] (1) final input Real[1, 1] volume1_2.heatTransfer.states.p = {volume1_2.medium.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}) (189) [ALGB] (1) Real volume2_1.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (190) [ALGB] (1) Real volume1_2.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - volume1_2.medium.T_degC)) (191) [ALGB] (1) stream Real Tmix2.port_b.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (192) [DISC] (1) Boolean $SEV_44 (193) [DISC] (1) Boolean $SEV_43 (194) [DISC] (2) Boolean[2] $SEV_11[$i1] (195) [ALGB] (3) Real[3] volume1_2.ports_H_flow (min = {-1e8 for $i1 in 1:3}, max = {1e8 for $i1 in 1:3}, nominal = {1000.0 for $i1 in 1:3}) (196) [ALGB] (3) Real[3] volume1_1.ports_H_flow (min = {-1e8 for $i1 in 1:3}, max = {1e8 for $i1 in 1:3}, nominal = {1000.0 for $i1 in 1:3}) (197) [ALGB] (1) Real[1] volume2_2.heatTransfer.Ts = {ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.volume2_2.heatTransfer.Medium.temperature(volume2_2.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}) (198) [ALGB] (3) protected Real[3] volume1_1.portsData_height (199) [DISC] (2) Boolean[2] $SEV_7[$i1] (200) [ALGB] (1) Real[1] volume1_2.heatTransfer.Ts = {ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.volume1_2.heatTransfer.Medium.temperature(volume1_2.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}) (201) [ALGB] (1) Real volume1_1.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (202) [ALGB] (3) Real[3] volume1_1.portInDensities (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}) (203) [ALGB] (1) Real Tmix2.port_a.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (204) [ALGB] (1) Real Tdiff = if source1.m_flow_in > 0.0 then Tmix2.T - Tmix1_1.T else Tmix2.T - Tmix1_2.T (205) [ALGB] (1) Real volume2_1.medium.h (start = volume2_1.h_start, StateSelect = prefer) (206) [ALGB] (1) Real volume2_2.Qb_flow (207) [ALGB] (1) Real volume1_2.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (208) [ALGB] (1) Real[1] source1.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}) (209) [ALGB] (1) stream Real[1] sink1.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}) (210) [ALGB] (1) Real volume2_1.medium.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0, StateSelect = default) (211) [ALGB] (1) Real source2.medium.sat.Tsat (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (212) [DER-] (1) Real $DER.volume1_1.m (213) [DISC] (3) protected Boolean[3] volume1_2.regularFlow (start = {true for $i1 in 1:3}) (214) [ALGB] (1) final input Real[1, 1] volume1_1.heatTransfer.states.p = {volume1_1.medium.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}) (215) [ALGB] (1) stream Real Tmix2.port_a.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (216) [DISC] (1) Integer volume1_1.medium.state.phase (min = 0, max = 2) (217) [ALGB] (1) Real[1] volume1_1.heatTransfer.Q_flows (218) [ALGB] (1) Real volume1_2.medium.sat.Tsat (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (219) [ALGB] (3) Real[3] volume1_1.s (start = {volume1_1.fluidLevel_max for $i1 in 1:3}) (220) [ALGB] (1) flow Real[1] volume1_1.heatTransfer.heatPorts.Q_flow (221) [ALGB] (1) Real volume1_2.medium.h (start = volume1_2.h_start, StateSelect = prefer) (222) [ALGB] (1) final input Real[1, 1] volume1_1.heatTransfer.states.h = {volume1_1.medium.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}) (223) [ALGB] (1) Real[1] volume2_2.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}) (224) [DISC] (2) protected Boolean[2] volume2_1.regularFlow (start = {true for $i1 in 1:2}) (225) [ALGB] (1) flow Real[1] volume1_2.heatTransfer.heatPorts.Q_flow (226) [ALGB] (1) Real volume1_2.medium.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0, StateSelect = default) (227) [ALGB] (1) final input Real[1, 1] volume1_1.heatTransfer.states.d = {volume1_1.medium.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}) (228) [ALGB] (2) Real[2] volume2_1.ports_E_flow (229) [ALGB] (2) Real[2] volume2_2.ports_E_flow (230) [ALGB] (1) Real source1.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (231) [ALGB] (2) protected Real[2] volume2_2.portsData_height (232) [DISC] (1) final input Integer[1, 1] volume1_1.heatTransfer.states.phase = {volume1_1.medium.state.phase} (min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (233) [DISC] (1) Boolean $SEV_34 (234) [ALGB] (2) protected Real[2] volume2_1.portsData_height (235) [ALGB] (1) stream Real[1] source1.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}) (236) [ALGB] (1) Real source2.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (237) [DISC] (1) final input Integer[1, 1] volume2_1.heatTransfer.states.phase = {volume2_1.medium.state.phase} (min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (238) [DISC] (3) Boolean[3] $SEV_54[$i1] (239) [ALGB] (1) final input Real[1, 1] volume1_1.heatTransfer.states.T = {volume1_1.medium.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}) (240) [DISC] (2) Boolean[2] $SEV_26[$i1] (241) [ALGB] (1) Real[1] source2.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}) (242) [ALGB] (1) Real volume2_1.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - volume2_1.medium.T_degC)) (243) [ALGB] (3) flow Real[3] volume1_2.ports.m_flow (min = {-1e5 for $i1 in 1:3}, max = {1e5 for $i1 in 1:3}) (244) [ALGB] (1) Real source1.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (245) [ALGB] (3) flow Real[3] volume1_1.ports.m_flow (min = {-1e5 for $i1 in 1:3}, max = {1e5 for $i1 in 1:3}) (246) [ALGB] (1) Real source1.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - source1.medium.T_degC)) (247) [ALGB] (1) Real source2.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (248) [ALGB] (1) Real source2.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (249) [DER-] (1) Real $DER.volume1_2.U (250) [ALGB] (1) flow Real[1] sink1.ports.m_flow (min = {-1e60}, max = {1e60}) (251) [ALGB] (1) flow Real[1] sink2.ports.m_flow (min = {-1e60}, max = {1e60}) (252) [ALGB] (1) Real[1] volume1_2.heatTransfer.Q_flows (253) [DISC] (1) Integer volume2_1.medium.state.phase (min = 0, max = 2) (254) [DISC] (2) Boolean[2] $SEV_10[$i1] System Equations (256/356) **************************** (1) [SCAL] (1) volume1_1.medium.phase = volume1_1.medium.state.phase ($RES_SIM_362) (2) [SCAL] (1) volume1_1.medium.d = volume1_1.medium.state.d ($RES_SIM_363) (3) [SCAL] (1) -((-273.15) - source2.medium.T_degC) = source2.medium.state.T ($RES_SIM_120) (4) [SCAL] (1) -((-273.15) - volume1_1.medium.T_degC) = volume1_1.medium.state.T ($RES_SIM_364) (5) [SCAL] (1) 99999.99999999999 * source2.medium.p_bar = source2.medium.state.p ($RES_SIM_121) (6) [SCAL] (1) volume2_2.Qb_flow = volume2_2.heatTransfer.Q_flows[1] ($RES_SIM_81) (7) [SCAL] (1) 99999.99999999999 * volume1_1.medium.p_bar = volume1_1.medium.state.p ($RES_SIM_365) (8) [SCAL] (1) volume1_2.medium.sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(99999.99999999999 * volume1_2.medium.p_bar) ($RES_SIM_280) (9) [SCAL] (1) volume2_2.Hb_flow = $FUN_13 + $FUN_14 ($RES_SIM_82) (10) [SCAL] (1) volume1_1.medium.h = volume1_1.medium.state.h ($RES_SIM_366) (11) [SCAL] (1) -((-273.15) - volume1_2.medium.T_degC) = Modelica.Media.Water.IF97_Utilities.T_props_ph(99999.99999999999 * volume1_2.medium.p_bar, volume1_2.medium.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * volume1_2.medium.p_bar, volume1_2.medium.h, volume1_2.medium.phase, 0)) ($RES_SIM_281) (12) [SCAL] (1) volume1_2.medium.d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(99999.99999999999 * volume1_2.medium.p_bar, volume1_2.medium.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * volume1_2.medium.p_bar, volume1_2.medium.h, volume1_2.medium.phase, 0)) ($RES_SIM_282) (13) [SCAL] (1) source2.medium.u = source2.h - (99999.99999999999 * source2.medium.p_bar) / source2.medium.d ($RES_SIM_124) (14) [FOR-] (2) ($RES_SIM_84) (14) [----] for $i1 in 1:2 loop (14) [----] [SCAL] (1) volume2_2.vessel_ps_static[$i1] = 99999.99999999999 * volume2_2.medium.p_bar ($RES_SIM_85) (14) [----] end for; (15) [SCAL] (1) volume1_1.medium.u = volume1_1.medium.h - (99999.99999999999 * volume1_1.medium.p_bar) / volume1_1.medium.d ($RES_SIM_368) (16) [SCAL] (1) volume1_2.medium.phase = if $SEV_49 then 1 else 2 ($RES_SIM_283) (17) [SCAL] (1) source2.medium.sat.psat = 99999.99999999999 * source2.medium.p_bar ($RES_SIM_125) (18) [SCAL] (1) volume1_1.medium.sat.psat = 99999.99999999999 * volume1_1.medium.p_bar ($RES_SIM_369) (19) [SCAL] (1) source2.medium.sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(99999.99999999999 * source2.medium.p_bar) ($RES_SIM_126) (20) [FOR-] (3) ($RES_EVT_530) (20) [----] for $i1 in 1:3 loop (20) [----] [SCAL] (1) $SEV_41[$i1] = $SEV_39[$i1] or $SEV_40[$i1] ($RES_EVT_531) (20) [----] end for; (21) [SCAL] (1) source1.ports[1].p = 99999.99999999999 * source1.medium.p_bar ($RES_SIM_285) (22) [SCAL] (1) -((-273.15) - source2.medium.T_degC) = Modelica.Media.Water.IF97_Utilities.T_props_ph(99999.99999999999 * source2.medium.p_bar, source2.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * source2.medium.p_bar, source2.h, source2.medium.phase, 0)) ($RES_SIM_127) (23) [ARRY] (1) volume2_2.heatTransfer.Q_flows = volume2_2.heatTransfer.heatPorts.Q_flow ($RES_SIM_87) (24) [SCAL] (1) source1.ports[1].h_outflow = source1.h ($RES_SIM_286) (25) [SCAL] (1) source2.medium.d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(99999.99999999999 * source2.medium.p_bar, source2.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * source2.medium.p_bar, source2.h, source2.medium.phase, 0)) ($RES_SIM_128) (26) [ARRY] (1) volume2_2.heatTransfer.Ts = volume2_2.heatTransfer.heatPorts.T ($RES_SIM_88) (27) [FOR-] (3) ($RES_EVT_532) (27) [----] for $i1 in 1:3 loop (27) [----] [SCAL] (1) $SEV_42[$i1] = not volume1_2.regularFlow[$i1] and $SEV_41[$i1] ($RES_EVT_533) (27) [----] end for; (28) [SCAL] (1) source2.medium.phase = if $SEV_22 then 1 else 2 ($RES_SIM_129) (29) [SCAL] (1) $SEV_43 = volume1_2.ports[2].m_flow > 0.0 ($RES_EVT_534) (30) [SCAL] (1) $SEV_44 = volume1_2.ports[1].m_flow > 0.0 ($RES_EVT_535) (31) [SCAL] (1) -source1.m_flow_in = sum(source2.ports.m_flow) ($RES_$AUX_449) (32) [SCAL] (1) volume2_2.mb_flow = sum(volume2_2.ports.m_flow) ($RES_$AUX_448) (33) [SCAL] (1) $FUN_13 = sum(volume2_2.ports_H_flow) ($RES_$AUX_447) (34) [SCAL] (1) $FUN_14 = sum(volume2_2.ports_E_flow) ($RES_$AUX_446) (35) [ARRY] (1) volume2_1.heatTransfer.Ts = {volume2_1.heatTransfer.states.h} ($RES_BND_425) (36) [SCAL] (1) Tmix2.T_b_inflow = Modelica.Media.Water.IF97_Utilities.T_ph(Tmix2.port_a.p, Tmix2.port_a.h_outflow, 0, 0) ($RES_SIM_10) (37) [SCAL] (1) Tmix2.T_a_inflow = Modelica.Media.Water.IF97_Utilities.T_ph(Tmix2.port_a.p, Tmix2.port_b.h_outflow, 0, 0) ($RES_SIM_11) (38) [SCAL] (1) volume1_1.medium.sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(99999.99999999999 * volume1_1.medium.p_bar) ($RES_SIM_370) (39) [SCAL] (1) Tmix1_2.T = Modelica.Media.Water.IF97_Utilities.T_ph(Tmix1_2.port.p, volume1_2.ports[3].h_outflow, 0, 0) ($RES_SIM_14) (40) [SCAL] (1) -((-273.15) - volume1_1.medium.T_degC) = Modelica.Media.Water.IF97_Utilities.T_props_ph(99999.99999999999 * volume1_1.medium.p_bar, volume1_1.medium.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * volume1_1.medium.p_bar, volume1_1.medium.h, volume1_1.medium.phase, 0)) ($RES_SIM_371) (41) [SCAL] (1) volume1_1.medium.d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(99999.99999999999 * volume1_1.medium.p_bar, volume1_1.medium.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * volume1_1.medium.p_bar, volume1_1.medium.h, volume1_1.medium.phase, 0)) ($RES_SIM_372) (42) [SCAL] (1) volume1_1.medium.phase = if $SEV_65 then 1 else 2 ($RES_SIM_373) (43) [SCAL] (1) Tmix1_1.T = Modelica.Media.Water.IF97_Utilities.T_ph(Tmix1_1.port.p, volume1_1.ports[3].h_outflow, 0, 0) ($RES_SIM_17) (44) [SCAL] (1) $DER.volume2_1.m = volume2_1.mb_flow ($RES_SIM_131) (45) [SCAL] (1) sink2.ports[1].p = sink2.p ($RES_SIM_18) (46) [SCAL] (1) Tmix2.port_b.m_flow + volume2_2.ports[2].m_flow = 0.0 ($RES_SIM_375) (47) [SCAL] (1) $DER.volume2_1.U = volume2_1.Qb_flow + volume2_1.Hb_flow ($RES_SIM_132) (48) [SCAL] (1) sink2.ports[1].h_outflow = sink2.h ($RES_SIM_19) (49) [SCAL] (1) volume1_2.ports[3].m_flow = 0.0 ($RES_SIM_376) (50) [SCAL] (1) volume2_1.U = volume2_1.m * volume2_1.medium.u ($RES_SIM_133) (51) [SCAL] (1) volume2_2.medium.phase = volume2_2.medium.state.phase ($RES_SIM_93) (52) [SCAL] (1) volume1_1.ports[3].m_flow = 0.0 ($RES_SIM_377) (53) [SCAL] (1) volume2_1.m = volume2_1.V * volume2_1.medium.d ($RES_SIM_134) (54) [SCAL] (1) volume2_2.medium.d = volume2_2.medium.state.d ($RES_SIM_94) (55) [SCAL] (1) volume2_2.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_378) (56) [FOR-] (2) ($RES_SIM_135) (56) [----] for $i1 in 1:2 loop (56) [----] [SCAL] (1) volume2_1.portVelocities[$i1] = 0.0 ($RES_SIM_136) (56) [----] end for; (57) [SCAL] (1) -((-273.15) - volume2_2.medium.T_degC) = volume2_2.medium.state.T ($RES_SIM_95) (58) [SCAL] (1) volume2_2.ports[1].m_flow + sink2.ports[1].m_flow = 0.0 ($RES_SIM_379) (59) [SCAL] (1) 99999.99999999999 * volume2_2.medium.p_bar = volume2_2.medium.state.p ($RES_SIM_96) (60) [SCAL] (1) $SEV_49 = (volume1_2.medium.h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(volume1_2.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(volume1_2.medium.sat.psat)) or volume1_2.medium.h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(volume1_2.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(volume1_2.medium.sat.psat))) or 99999.99999999999 * volume1_2.medium.p_bar > 2.2064e7 ($RES_EVT_540) (61) [SCAL] (1) volume2_2.medium.h = volume2_2.medium.state.h ($RES_SIM_97) (62) [SCAL] (1) $SEV_50 = abs(sum({abs(source1.ports[1].m_flow)}) - abs(source1.ports[1].m_flow)) <= 1e-60 ($RES_EVT_541) (63) [SCAL] (1) source1.medium.phase = source1.medium.state.phase ($RES_SIM_297) (64) [SCAL] (1) volume2_2.medium.u = volume2_2.medium.h - (99999.99999999999 * volume2_2.medium.p_bar) / volume2_2.medium.d ($RES_SIM_99) (65) [SCAL] (1) source1.medium.d = source1.medium.state.d ($RES_SIM_298) (66) [SCAL] (1) $SEV_53 = (source1.h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(source1.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(source1.medium.sat.psat)) or source1.h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(source1.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(source1.medium.sat.psat))) or 99999.99999999999 * source1.medium.p_bar > 2.2064e7 ($RES_EVT_544) (67) [SCAL] (1) -((-273.15) - source1.medium.T_degC) = source1.medium.state.T ($RES_SIM_299) (68) [FOR-] (3) ($RES_EVT_545) (68) [----] for $i1 in 1:3 loop (68) [----] [SCAL] (1) $SEV_54[$i1] = 0.0 >= volume1_1.portsData_height[$i1] ($RES_EVT_546) (68) [----] end for; (69) [FOR-] (3) ($RES_EVT_547) (69) [----] for $i1 in 1:3 loop (69) [----] [SCAL] (1) $SEV_55[$i1] = volume1_1.s[$i1] > 0.0 ($RES_EVT_548) (69) [----] end for; (70) [FOR-] (3) ($RES_EVT_549) (70) [----] for $i1 in 1:3 loop (70) [----] [SCAL] (1) $SEV_56[$i1] = volume1_1.portsData_height[$i1] >= volume1_1.fluidLevel_max ($RES_EVT_550) (70) [----] end for; (71) [ARRY] (1) volume2_2.heatTransfer.Ts = {volume2_2.heatTransfer.states.h} ($RES_BND_435) (72) [SCAL] (1) 99999.99999999999 * source1.medium.p_bar = source1.medium.state.p ($RES_SIM_300) (73) [SCAL] (1) source1.medium.u = source1.h - (99999.99999999999 * source1.medium.p_bar) / source1.medium.d ($RES_SIM_303) (74) [SCAL] (1) source1.medium.sat.psat = 99999.99999999999 * source1.medium.p_bar ($RES_SIM_304) (75) [SCAL] (1) source1.medium.sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(99999.99999999999 * source1.medium.p_bar) ($RES_SIM_305) (76) [SCAL] (1) $DER.volume1_2.m = volume1_2.mb_flow ($RES_SIM_220) (77) [SCAL] (1) -((-273.15) - source1.medium.T_degC) = Modelica.Media.Water.IF97_Utilities.T_props_ph(99999.99999999999 * source1.medium.p_bar, source1.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * source1.medium.p_bar, source1.h, source1.medium.phase, 0)) ($RES_SIM_306) (78) [SCAL] (1) $DER.volume1_2.U = volume1_2.Qb_flow + volume1_2.Hb_flow ($RES_SIM_221) (79) [SCAL] (1) volume2_1.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_380) (80) [SCAL] (1) source1.medium.d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(99999.99999999999 * source1.medium.p_bar, source1.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * source1.medium.p_bar, source1.h, source1.medium.phase, 0)) ($RES_SIM_307) (81) [SCAL] (1) volume1_2.U = volume1_2.m * volume1_2.medium.u ($RES_SIM_222) (82) [SCAL] (1) volume2_1.ports[2].m_flow - Tmix2.port_b.m_flow = 0.0 ($RES_SIM_381) (83) [SCAL] (1) source1.medium.phase = if $SEV_53 then 1 else 2 ($RES_SIM_308) (84) [SCAL] (1) volume1_2.m = volume1_2.V * volume1_2.medium.d ($RES_SIM_223) (85) [SCAL] (1) volume1_2.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_382) (86) [FOR-] (3) ($RES_SIM_224) (86) [----] for $i1 in 1:3 loop (86) [----] [SCAL] (1) volume1_2.portVelocities[$i1] = 0.0 ($RES_SIM_225) (86) [----] end for; (87) [SCAL] (1) volume1_2.ports[1].m_flow + sink1.ports[1].m_flow = 0.0 ($RES_SIM_383) (88) [SCAL] (1) volume1_1.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_384) (89) [FOR-] (2) ($RES_SIM_141) (89) [----] for $i1 in 1:2 loop (89) [----] [SCAL] (1) volume2_1.regularFlow[$i1] = $SEV_23[$i1] ($RES_SIM_142) (89) [----] end for; (90) [SCAL] (1) volume1_2.ports[2].m_flow + volume1_1.ports[2].m_flow = 0.0 ($RES_SIM_385) (91) [SCAL] (1) Tmix1_2.port.p = volume1_2.ports[3].p ($RES_SIM_386) (92) [FOR-] (2) ($RES_SIM_143) (92) [----] for $i1 in 1:2 loop (92) [----] [SCAL] (1) volume2_1.inFlow[$i1] = $SEV_27[$i1] ($RES_SIM_144) (92) [----] end for; (93) [SCAL] (1) Tmix1_1.port.p = volume1_1.ports[3].p ($RES_SIM_387) (94) [SCAL] (1) volume2_2.ports[1].p = sink2.ports[1].p ($RES_SIM_388) (95) [FOR-] (2) ($RES_SIM_145) (95) [----] for $i1 in 1:2 loop (95) [----] [-IF-] (1)if volume2_1.regularFlow[$i1] then (95) [----] [----] [SCAL] (1) volume2_1.ports[$i1].p = volume2_1.vessel_ps_static[$i1] ($RES_SIM_147) (95) [----] [----] elseif volume2_1.inFlow[$i1] then (95) [----] [----] [SCAL] (1) volume2_1.ports[$i1].p = volume2_1.vessel_ps_static[$i1] ($RES_SIM_148) (95) [----] [----] else (95) [----] [----] [SCAL] (1) volume2_1.ports[$i1].m_flow = 0.0 ($RES_SIM_149) (95) [----] [----] end if; (95) [----] end for; (96) [SCAL] (1) Tmix2.port_a.p = volume2_2.ports[2].p ($RES_SIM_389) (97) [FOR-] (3) ($RES_EVT_551) (97) [----] for $i1 in 1:3 loop (97) [----] [SCAL] (1) $SEV_57[$i1] = $SEV_55[$i1] or $SEV_56[$i1] ($RES_EVT_552) (97) [----] end for; (98) [FOR-] (3) ($RES_EVT_553) (98) [----] for $i1 in 1:3 loop (98) [----] [SCAL] (1) $SEV_58[$i1] = not volume1_1.regularFlow[$i1] and $SEV_57[$i1] ($RES_EVT_554) (98) [----] end for; (99) [SCAL] (1) $SEV_59 = volume1_1.ports[2].m_flow > 0.0 ($RES_EVT_555) (100) [SCAL] (1) $SEV_60 = volume1_1.ports[1].m_flow > 0.0 ($RES_EVT_556) (101) [SCAL] (1) $TEV_0 = time < ramp.startTime ($RES_EVT_474) (102) [SCAL] (1) $TEV_1 = time < (ramp.startTime + ramp.duration) ($RES_EVT_475) (103) [SCAL] (1) $SEV_0 = 0.02 * abs(Tdiff) < 0.001 ($RES_EVT_476) (104) [SCAL] (1) Tdiff = if $SEV_66 then Tmix2.T - Tmix1_1.T else Tmix2.T - Tmix1_2.T ($RES_BND_441) (105) [SCAL] (1) $SEV_1 = (-Tmix2.port_b.m_flow) > Tmix2.m_flow_small ($RES_EVT_477) (106) [ARRY] (5) volume1_1.heatTransfer.states = {volume1_1.medium.state} ($RES_BND_442) (107) [SCAL] (1) $SEV_2 = (-Tmix2.port_b.m_flow) < (-Tmix2.m_flow_small) ($RES_EVT_478) (108) [ARRY] (5) volume1_2.heatTransfer.states = {volume1_2.medium.state} ($RES_BND_443) (109) [SCAL] (1) $SEV_3 = Tmix2.m_flow_small > 0.0 ($RES_EVT_479) (110) [ARRY] (5) volume2_1.heatTransfer.states = {volume2_1.medium.state} ($RES_BND_444) (111) [ARRY] (5) volume2_2.heatTransfer.states = {volume2_2.medium.state} ($RES_BND_445) (112) [SCAL] (1) $DER.volume1_1.m = volume1_1.mb_flow ($RES_SIM_310) (113) [SCAL] (1) $DER.volume1_1.U = volume1_1.Qb_flow + volume1_1.Hb_flow ($RES_SIM_311) (114) [SCAL] (1) volume1_1.U = volume1_1.m * volume1_1.medium.u ($RES_SIM_312) (115) [SCAL] (1) volume1_1.m = volume1_1.V * volume1_1.medium.d ($RES_SIM_313) (116) [FOR-] (3) ($RES_SIM_314) (116) [----] for $i1 in 1:3 loop (116) [----] [SCAL] (1) volume1_1.portVelocities[$i1] = 0.0 ($RES_SIM_315) (116) [----] end for; (117) [FOR-] (3) ($RES_SIM_230) (117) [----] for $i1 in 1:3 loop (117) [----] [SCAL] (1) volume1_2.regularFlow[$i1] = $SEV_38[$i1] ($RES_SIM_231) (117) [----] end for; (118) [SCAL] (1) volume2_1.ports[2].p = Tmix2.port_a.p ($RES_SIM_390) (119) [FOR-] (3) ($RES_SIM_232) (119) [----] for $i1 in 1:3 loop (119) [----] [SCAL] (1) volume1_2.inFlow[$i1] = $SEV_42[$i1] ($RES_SIM_233) (119) [----] end for; (120) [SCAL] (1) volume2_1.ports[1].m_flow + source2.ports[1].m_flow = 0.0 ($RES_SIM_391) (121) [SCAL] (1) source2.ports[1].p = volume2_1.ports[1].p ($RES_SIM_392) (122) [FOR-] (3) ($RES_SIM_234) (122) [----] for $i1 in 1:3 loop (122) [----] [-IF-] (1)if volume1_2.regularFlow[$i1] then (122) [----] [----] [SCAL] (1) volume1_2.ports[$i1].p = volume1_2.vessel_ps_static[$i1] ($RES_SIM_236) (122) [----] [----] elseif volume1_2.inFlow[$i1] then (122) [----] [----] [SCAL] (1) volume1_2.ports[$i1].p = volume1_2.vessel_ps_static[$i1] ($RES_SIM_237) (122) [----] [----] else (122) [----] [----] [SCAL] (1) volume1_2.ports[$i1].m_flow = 0.0 ($RES_SIM_238) (122) [----] [----] end if; (122) [----] end for; (123) [SCAL] (1) volume1_2.ports[1].p = sink1.ports[1].p ($RES_SIM_393) (124) [FOR-] (2) ($RES_SIM_150) (124) [----] for $i1 in 1:2 loop (124) [----] [-IF-] (1)if volume2_1.regularFlow[$i1] then (124) [----] [----] [SCAL] (1) volume2_1.s[$i1] = 0.0 - volume2_1.portsData_height[$i1] ($RES_SIM_152) (124) [----] [----] elseif volume2_1.inFlow[$i1] then (124) [----] [----] [SCAL] (1) volume2_1.s[$i1] = volume2_1.ports[$i1].m_flow ($RES_SIM_153) (124) [----] [----] else (124) [----] [----] [SCAL] (1) volume2_1.s[$i1] = ((volume2_1.ports[$i1].p - volume2_1.vessel_ps_static[$i1]) / 101325.0) * (volume2_1.portsData_height[$i1] - 0.0) ($RES_SIM_154) (124) [----] [----] end if; (124) [----] end for; (125) [SCAL] (1) volume1_1.ports[2].p = volume1_2.ports[2].p ($RES_SIM_394) (126) [SCAL] (1) volume1_1.ports[1].m_flow + source1.ports[1].m_flow = 0.0 ($RES_SIM_395) (127) [SCAL] (1) source1.ports[1].p = volume1_1.ports[1].p ($RES_SIM_396) (128) [FOR-] (3) ($RES_SIM_239) (128) [----] for $i1 in 1:3 loop (128) [----] [-IF-] (1)if volume1_2.regularFlow[$i1] then (128) [----] [----] [SCAL] (1) volume1_2.s[$i1] = 0.0 - volume1_2.portsData_height[$i1] ($RES_SIM_241) (128) [----] [----] elseif volume1_2.inFlow[$i1] then (128) [----] [----] [SCAL] (1) volume1_2.s[$i1] = volume1_2.ports[$i1].m_flow ($RES_SIM_242) (128) [----] [----] else (128) [----] [----] [SCAL] (1) volume1_2.s[$i1] = ((volume1_2.ports[$i1].p - volume1_2.vessel_ps_static[$i1]) / 101325.0) * (volume1_2.portsData_height[$i1] - 0.0) ($RES_SIM_243) (128) [----] [----] end if; (128) [----] end for; (129) [FOR-] (2) ($RES_SIM_155) (129) [----] for $i1 in 1:2 loop (129) [----] [SCAL] (1) volume2_1.ports[$i1].h_outflow = volume2_1.medium.h ($RES_SIM_156) (129) [----] end for; (130) [FOR-] (2) ($RES_SIM_157) (130) [----] for $i1 in 1:2 loop (130) [----] [SCAL] (1) volume2_1.ports_E_flow[$i1] = volume2_1.ports[$i1].m_flow * (volume2_1.portVelocities[$i1] * 0.5 * volume2_1.portVelocities[$i1] + system.g * volume2_1.portsData_height[$i1]) ($RES_SIM_158) (130) [----] end for; (131) [SCAL] (1) $SEV_65 = (volume1_1.medium.h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(volume1_1.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(volume1_1.medium.sat.psat)) or volume1_1.medium.h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(volume1_1.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(volume1_1.medium.sat.psat))) or 99999.99999999999 * volume1_1.medium.p_bar > 2.2064e7 ($RES_EVT_561) (132) [SCAL] (1) $SEV_66 = source1.m_flow_in > 0.0 ($RES_EVT_562) (133) [SCAL] (1) volume2_1.ports_H_flow[2] = smooth(0, volume2_1.ports[2].m_flow * (if $SEV_28 then Tmix2.port_a.h_outflow else volume2_1.ports[2].h_outflow)) ($RES_SIM_159) (134) [FOR-] (2) ($RES_EVT_483) (134) [----] for $i1 in 1:2 loop (134) [----] [SCAL] (1) $SEV_7[$i1] = 0.0 >= volume2_2.portsData_height[$i1] ($RES_EVT_484) (134) [----] end for; (135) [FOR-] (2) ($RES_EVT_485) (135) [----] for $i1 in 1:2 loop (135) [----] [SCAL] (1) $SEV_8[$i1] = volume2_2.s[$i1] > 0.0 ($RES_EVT_486) (135) [----] end for; (136) [FOR-] (2) ($RES_EVT_487) (136) [----] for $i1 in 1:2 loop (136) [----] [SCAL] (1) $SEV_9[$i1] = volume2_2.portsData_height[$i1] >= volume2_2.fluidLevel_max ($RES_EVT_488) (136) [----] end for; (137) [FOR-] (2) ($RES_EVT_489) (137) [----] for $i1 in 1:2 loop (137) [----] [SCAL] (1) $SEV_10[$i1] = $SEV_8[$i1] or $SEV_9[$i1] ($RES_EVT_490) (137) [----] end for; (138) [FOR-] (3) ($RES_SIM_320) (138) [----] for $i1 in 1:3 loop (138) [----] [SCAL] (1) volume1_1.regularFlow[$i1] = $SEV_54[$i1] ($RES_SIM_321) (138) [----] end for; (139) [FOR-] (3) ($RES_SIM_322) (139) [----] for $i1 in 1:3 loop (139) [----] [SCAL] (1) volume1_1.inFlow[$i1] = $SEV_58[$i1] ($RES_SIM_323) (139) [----] end for; (140) [FOR-] (3) ($RES_SIM_324) (140) [----] for $i1 in 1:3 loop (140) [----] [-IF-] (1)if volume1_1.regularFlow[$i1] then (140) [----] [----] [SCAL] (1) volume1_1.ports[$i1].p = volume1_1.vessel_ps_static[$i1] ($RES_SIM_326) (140) [----] [----] elseif volume1_1.inFlow[$i1] then (140) [----] [----] [SCAL] (1) volume1_1.ports[$i1].p = volume1_1.vessel_ps_static[$i1] ($RES_SIM_327) (140) [----] [----] else (140) [----] [----] [SCAL] (1) volume1_1.ports[$i1].m_flow = 0.0 ($RES_SIM_328) (140) [----] [----] end if; (140) [----] end for; (141) [SCAL] (1) $DER.volume2_2.m = volume2_2.mb_flow ($RES_SIM_43) (142) [SCAL] (1) $DER.volume2_2.U = volume2_2.Qb_flow + volume2_2.Hb_flow ($RES_SIM_44) (143) [SCAL] (1) volume2_2.U = volume2_2.m * volume2_2.medium.u ($RES_SIM_45) (144) [FOR-] (3) ($RES_SIM_329) (144) [----] for $i1 in 1:3 loop (144) [----] [-IF-] (1)if volume1_1.regularFlow[$i1] then (144) [----] [----] [SCAL] (1) volume1_1.s[$i1] = 0.0 - volume1_1.portsData_height[$i1] ($RES_SIM_331) (144) [----] [----] elseif volume1_1.inFlow[$i1] then (144) [----] [----] [SCAL] (1) volume1_1.s[$i1] = volume1_1.ports[$i1].m_flow ($RES_SIM_332) (144) [----] [----] else (144) [----] [----] [SCAL] (1) volume1_1.s[$i1] = ((volume1_1.ports[$i1].p - volume1_1.vessel_ps_static[$i1]) / 101325.0) * (volume1_1.portsData_height[$i1] - 0.0) ($RES_SIM_333) (144) [----] [----] end if; (144) [----] end for; (145) [FOR-] (3) ($RES_SIM_244) (145) [----] for $i1 in 1:3 loop (145) [----] [SCAL] (1) volume1_2.ports[$i1].h_outflow = volume1_2.medium.h ($RES_SIM_245) (145) [----] end for; (146) [SCAL] (1) volume2_2.m = volume2_2.V * volume2_2.medium.d ($RES_SIM_46) (147) [SCAL] (1) volume2_1.portInDensities[2] = Modelica.Media.Water.IF97_Utilities.rho_ph(volume2_1.vessel_ps_static[2], Tmix2.port_a.h_outflow, 0, 0) ($RES_SIM_160) (148) [FOR-] (2) ($RES_SIM_47) (148) [----] for $i1 in 1:2 loop (148) [----] [SCAL] (1) volume2_2.portVelocities[$i1] = 0.0 ($RES_SIM_48) (148) [----] end for; (149) [FOR-] (3) ($RES_SIM_246) (149) [----] for $i1 in 1:3 loop (149) [----] [SCAL] (1) volume1_2.ports_E_flow[$i1] = volume1_2.ports[$i1].m_flow * (volume1_2.portVelocities[$i1] * 0.5 * volume1_2.portVelocities[$i1] + system.g * volume1_2.portsData_height[$i1]) ($RES_SIM_247) (149) [----] end for; (150) [SCAL] (1) volume2_1.ports_H_flow[1] = smooth(0, volume2_1.ports[1].m_flow * (if $SEV_29 then source2.ports[1].h_outflow else volume2_1.ports[1].h_outflow)) ($RES_SIM_161) (151) [SCAL] (1) volume2_1.portInDensities[1] = Modelica.Media.Water.IF97_Utilities.rho_ph(volume2_1.vessel_ps_static[1], source2.ports[1].h_outflow, 0, 0) ($RES_SIM_162) (152) [SCAL] (1) volume1_2.ports_H_flow[3] = smooth(0, volume1_2.ports[3].m_flow * volume1_2.ports[3].h_outflow) ($RES_SIM_248) (153) [SCAL] (1) volume1_2.portInDensities[3] = Modelica.Media.Water.IF97_Utilities.rho_ph(volume1_2.vessel_ps_static[3], volume1_2.ports[3].h_outflow, 0, 0) ($RES_SIM_249) (154) [ARRY] (2) volume2_1.portsData_height = {0.0 for $i1 in 1:2} ($RES_SIM_165) (155) [SCAL] (1) volume2_1.Qb_flow = volume2_1.heatTransfer.Q_flows[1] ($RES_SIM_169) (156) [FOR-] (2) ($RES_EVT_491) (156) [----] for $i1 in 1:2 loop (156) [----] [SCAL] (1) $SEV_11[$i1] = not volume2_2.regularFlow[$i1] and $SEV_10[$i1] ($RES_EVT_492) (156) [----] end for; (157) [SCAL] (1) $SEV_12 = volume2_2.ports[2].m_flow > 0.0 ($RES_EVT_493) (158) [SCAL] (1) $SEV_13 = volume2_2.ports[1].m_flow > 0.0 ($RES_EVT_494) (159) [SCAL] (1) $SEV_18 = (volume2_2.medium.h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(volume2_2.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(volume2_2.medium.sat.psat)) or volume2_2.medium.h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(volume2_2.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(volume2_2.medium.sat.psat))) or 99999.99999999999 * volume2_2.medium.p_bar > 2.2064e7 ($RES_EVT_499) (160) [FOR-] (3) ($RES_SIM_334) (160) [----] for $i1 in 1:3 loop (160) [----] [SCAL] (1) volume1_1.ports[$i1].h_outflow = volume1_1.medium.h ($RES_SIM_335) (160) [----] end for; (161) [SCAL] (1) volume1_2.ports_H_flow[2] = smooth(0, volume1_2.ports[2].m_flow * (if $SEV_43 then volume1_1.ports[2].h_outflow else volume1_2.ports[2].h_outflow)) ($RES_SIM_250) (162) [FOR-] (3) ($RES_SIM_336) (162) [----] for $i1 in 1:3 loop (162) [----] [SCAL] (1) volume1_1.ports_E_flow[$i1] = volume1_1.ports[$i1].m_flow * (volume1_1.portVelocities[$i1] * 0.5 * volume1_1.portVelocities[$i1] + system.g * volume1_1.portsData_height[$i1]) ($RES_SIM_337) (162) [----] end for; (163) [SCAL] (1) volume1_2.portInDensities[2] = Modelica.Media.Water.IF97_Utilities.rho_ph(volume1_2.vessel_ps_static[2], volume1_1.ports[2].h_outflow, 0, 0) ($RES_SIM_251) (164) [FOR-] (2) ($RES_SIM_53) (164) [----] for $i1 in 1:2 loop (164) [----] [SCAL] (1) volume2_2.regularFlow[$i1] = $SEV_7[$i1] ($RES_SIM_54) (164) [----] end for; (165) [SCAL] (1) volume1_2.ports_H_flow[1] = smooth(0, volume1_2.ports[1].m_flow * (if $SEV_44 then sink1.ports[1].h_outflow else volume1_2.ports[1].h_outflow)) ($RES_SIM_252) (166) [SCAL] (1) Tmix2.T = smooth(1, if $SEV_1 then Tmix2.T_a_inflow else if $SEV_2 then Tmix2.T_b_inflow else if $SEV_3 then 0.5 * (Tmix2.T_a_inflow + Tmix2.T_b_inflow) - 0.25 * (Tmix2.T_b_inflow - Tmix2.T_a_inflow) * ((-3.0) + (Tmix2.port_b.m_flow / (-Tmix2.m_flow_small)) ^ 2.0) * (Tmix2.port_b.m_flow / Tmix2.m_flow_small) else 0.5 * (Tmix2.T_a_inflow + Tmix2.T_b_inflow)) ($RES_SIM_9) (167) [SCAL] (1) volume1_1.ports_H_flow[3] = smooth(0, volume1_1.ports[3].m_flow * volume1_1.ports[3].h_outflow) ($RES_SIM_338) (168) [SCAL] (1) volume1_2.portInDensities[1] = Modelica.Media.Water.IF97_Utilities.rho_ph(volume1_2.vessel_ps_static[1], sink1.ports[1].h_outflow, 0, 0) ($RES_SIM_253) (169) [FOR-] (2) ($RES_SIM_55) (169) [----] for $i1 in 1:2 loop (169) [----] [SCAL] (1) volume2_2.inFlow[$i1] = $SEV_11[$i1] ($RES_SIM_56) (169) [----] end for; (170) [SCAL] (1) volume1_1.portInDensities[3] = Modelica.Media.Water.IF97_Utilities.rho_ph(volume1_1.vessel_ps_static[3], volume1_1.ports[3].h_outflow, 0, 0) ($RES_SIM_339) (171) [SCAL] (1) $SEV_19 = abs(sum({abs(source2.ports[1].m_flow)}) - abs(source2.ports[1].m_flow)) <= 1e-60 ($RES_EVT_500) (172) [SCAL] (1) volume2_1.Hb_flow = $FUN_9 + $FUN_10 ($RES_SIM_170) (173) [FOR-] (2) ($RES_SIM_57) (173) [----] for $i1 in 1:2 loop (173) [----] [-IF-] (1)if volume2_2.regularFlow[$i1] then (173) [----] [----] [SCAL] (1) volume2_2.ports[$i1].p = volume2_2.vessel_ps_static[$i1] ($RES_SIM_59) (173) [----] [----] elseif volume2_2.inFlow[$i1] then (173) [----] [----] [SCAL] (1) volume2_2.ports[$i1].p = volume2_2.vessel_ps_static[$i1] ($RES_SIM_60) (173) [----] [----] else (173) [----] [----] [SCAL] (1) volume2_2.ports[$i1].m_flow = 0.0 ($RES_SIM_61) (173) [----] [----] end if; (173) [----] end for; (174) [SCAL] (1) Tmix2.port_a.h_outflow = volume2_2.ports[2].h_outflow ($RES_SIM_6) (175) [ARRY] (3) volume1_2.portsData_height = {0.0 for $i1 in 1:3} ($RES_SIM_256) (176) [SCAL] (1) Tmix2.port_b.h_outflow = volume2_1.ports[2].h_outflow ($RES_SIM_5) (177) [FOR-] (2) ($RES_SIM_172) (177) [----] for $i1 in 1:2 loop (177) [----] [SCAL] (1) volume2_1.vessel_ps_static[$i1] = 99999.99999999999 * volume2_1.medium.p_bar ($RES_SIM_173) (177) [----] end for; (178) [SCAL] (1) $SEV_22 = (source2.h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(source2.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(source2.medium.sat.psat)) or source2.h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(source2.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(source2.medium.sat.psat))) or 99999.99999999999 * source2.medium.p_bar > 2.2064e7 ($RES_EVT_503) (179) [FOR-] (2) ($RES_EVT_504) (179) [----] for $i1 in 1:2 loop (179) [----] [SCAL] (1) $SEV_23[$i1] = 0.0 >= volume2_1.portsData_height[$i1] ($RES_EVT_505) (179) [----] end for; (180) [ARRY] (1) volume2_1.heatTransfer.Q_flows = volume2_1.heatTransfer.heatPorts.Q_flow ($RES_SIM_175) (181) [FOR-] (2) ($RES_EVT_506) (181) [----] for $i1 in 1:2 loop (181) [----] [SCAL] (1) $SEV_24[$i1] = volume2_1.s[$i1] > 0.0 ($RES_EVT_507) (181) [----] end for; (182) [ARRY] (1) volume2_1.heatTransfer.Ts = volume2_1.heatTransfer.heatPorts.T ($RES_SIM_176) (183) [FOR-] (2) ($RES_EVT_508) (183) [----] for $i1 in 1:2 loop (183) [----] [SCAL] (1) $SEV_25[$i1] = volume2_1.portsData_height[$i1] >= volume2_1.fluidLevel_max ($RES_EVT_509) (183) [----] end for; (184) [SCAL] (1) volume1_1.ports_H_flow[2] = smooth(0, volume1_1.ports[2].m_flow * (if $SEV_59 then volume1_2.ports[2].h_outflow else volume1_1.ports[2].h_outflow)) ($RES_SIM_340) (185) [SCAL] (1) volume1_1.portInDensities[2] = Modelica.Media.Water.IF97_Utilities.rho_ph(volume1_1.vessel_ps_static[2], volume1_2.ports[2].h_outflow, 0, 0) ($RES_SIM_341) (186) [SCAL] (1) volume1_1.ports_H_flow[1] = smooth(0, volume1_1.ports[1].m_flow * (if $SEV_60 then source1.ports[1].h_outflow else volume1_1.ports[1].h_outflow)) ($RES_SIM_342) (187) [SCAL] (1) volume1_1.portInDensities[1] = Modelica.Media.Water.IF97_Utilities.rho_ph(volume1_1.vessel_ps_static[1], source1.ports[1].h_outflow, 0, 0) ($RES_SIM_343) (188) [SCAL] (1) volume2_2.medium.sat.psat = 99999.99999999999 * volume2_2.medium.p_bar ($RES_SIM_100) (189) [SCAL] (1) volume2_2.medium.sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(99999.99999999999 * volume2_2.medium.p_bar) ($RES_SIM_101) (190) [SCAL] (1) volume1_2.Qb_flow = volume1_2.heatTransfer.Q_flows[1] ($RES_SIM_260) (191) [SCAL] (1) -((-273.15) - volume2_2.medium.T_degC) = Modelica.Media.Water.IF97_Utilities.T_props_ph(99999.99999999999 * volume2_2.medium.p_bar, volume2_2.medium.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * volume2_2.medium.p_bar, volume2_2.medium.h, volume2_2.medium.phase, 0)) ($RES_SIM_102) (192) [FOR-] (2) ($RES_SIM_62) (192) [----] for $i1 in 1:2 loop (192) [----] [-IF-] (1)if volume2_2.regularFlow[$i1] then (192) [----] [----] [SCAL] (1) volume2_2.s[$i1] = 0.0 - volume2_2.portsData_height[$i1] ($RES_SIM_64) (192) [----] [----] elseif volume2_2.inFlow[$i1] then (192) [----] [----] [SCAL] (1) volume2_2.s[$i1] = volume2_2.ports[$i1].m_flow ($RES_SIM_65) (192) [----] [----] else (192) [----] [----] [SCAL] (1) volume2_2.s[$i1] = ((volume2_2.ports[$i1].p - volume2_2.vessel_ps_static[$i1]) / 101325.0) * (volume2_2.portsData_height[$i1] - 0.0) ($RES_SIM_66) (192) [----] [----] end if; (192) [----] end for; (193) [ARRY] (3) volume1_1.portsData_height = {0.0 for $i1 in 1:3} ($RES_SIM_346) (194) [SCAL] (1) volume1_2.Hb_flow = $FUN_6 + $FUN_7 ($RES_SIM_261) (195) [SCAL] (1) volume2_2.medium.d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(99999.99999999999 * volume2_2.medium.p_bar, volume2_2.medium.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * volume2_2.medium.p_bar, volume2_2.medium.h, volume2_2.medium.phase, 0)) ($RES_SIM_103) (196) [SCAL] (1) volume2_2.medium.phase = if $SEV_18 then 1 else 2 ($RES_SIM_104) (197) [FOR-] (3) ($RES_SIM_263) (197) [----] for $i1 in 1:3 loop (197) [----] [SCAL] (1) volume1_2.vessel_ps_static[$i1] = 99999.99999999999 * volume1_2.medium.p_bar ($RES_SIM_264) (197) [----] end for; (198) [SCAL] (1) source2.ports[1].p = 99999.99999999999 * source2.medium.p_bar ($RES_SIM_106) (199) [FOR-] (2) ($RES_EVT_510) (199) [----] for $i1 in 1:2 loop (199) [----] [SCAL] (1) $SEV_26[$i1] = $SEV_24[$i1] or $SEV_25[$i1] ($RES_EVT_511) (199) [----] end for; (200) [SCAL] (1) source2.ports[1].h_outflow = source2.h ($RES_SIM_107) (201) [FOR-] (2) ($RES_SIM_67) (201) [----] for $i1 in 1:2 loop (201) [----] [SCAL] (1) volume2_2.ports[$i1].h_outflow = volume2_2.medium.h ($RES_SIM_68) (201) [----] end for; (202) [ARRY] (1) volume1_2.heatTransfer.Q_flows = volume1_2.heatTransfer.heatPorts.Q_flow ($RES_SIM_266) (203) [SCAL] (1) volume2_1.medium.phase = volume2_1.medium.state.phase ($RES_SIM_181) (204) [FOR-] (2) ($RES_EVT_512) (204) [----] for $i1 in 1:2 loop (204) [----] [SCAL] (1) $SEV_27[$i1] = not volume2_1.regularFlow[$i1] and $SEV_26[$i1] ($RES_EVT_513) (204) [----] end for; (205) [ARRY] (1) volume1_2.heatTransfer.Ts = volume1_2.heatTransfer.heatPorts.T ($RES_SIM_267) (206) [SCAL] (1) volume2_1.medium.d = volume2_1.medium.state.d ($RES_SIM_182) (207) [FOR-] (2) ($RES_SIM_69) (207) [----] for $i1 in 1:2 loop (207) [----] [SCAL] (1) volume2_2.ports_E_flow[$i1] = volume2_2.ports[$i1].m_flow * (volume2_2.portVelocities[$i1] * 0.5 * volume2_2.portVelocities[$i1] + system.g * volume2_2.portsData_height[$i1]) ($RES_SIM_70) (207) [----] end for; (208) [SCAL] (1) -((-273.15) - volume2_1.medium.T_degC) = volume2_1.medium.state.T ($RES_SIM_183) (209) [SCAL] (1) $SEV_28 = volume2_1.ports[2].m_flow > 0.0 ($RES_EVT_514) (210) [SCAL] (1) 99999.99999999999 * volume2_1.medium.p_bar = volume2_1.medium.state.p ($RES_SIM_184) (211) [SCAL] (1) $SEV_29 = volume2_1.ports[1].m_flow > 0.0 ($RES_EVT_515) (212) [SCAL] (1) volume2_1.medium.h = volume2_1.medium.state.h ($RES_SIM_185) (213) [SCAL] (1) volume2_1.medium.u = volume2_1.medium.h - (99999.99999999999 * volume2_1.medium.p_bar) / volume2_1.medium.d ($RES_SIM_187) (214) [SCAL] (1) volume2_1.medium.sat.psat = 99999.99999999999 * volume2_1.medium.p_bar ($RES_SIM_188) (215) [SCAL] (1) volume2_1.medium.sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(99999.99999999999 * volume2_1.medium.p_bar) ($RES_SIM_189) (216) [ARRY] (1) volume1_1.heatTransfer.Ts = {volume1_1.heatTransfer.states.h} ($RES_BND_405) (217) [SCAL] (1) volume1_1.Qb_flow = volume1_1.heatTransfer.Q_flows[1] ($RES_SIM_350) (218) [SCAL] (1) volume1_1.Hb_flow = $FUN_2 + $FUN_3 ($RES_SIM_351) (219) [FOR-] (3) ($RES_SIM_353) (219) [----] for $i1 in 1:3 loop (219) [----] [SCAL] (1) volume1_1.vessel_ps_static[$i1] = 99999.99999999999 * volume1_1.medium.p_bar ($RES_SIM_354) (219) [----] end for; (220) [SCAL] (1) volume2_2.ports_H_flow[2] = smooth(0, volume2_2.ports[2].m_flow * (if $SEV_12 then Tmix2.port_b.h_outflow else volume2_2.ports[2].h_outflow)) ($RES_SIM_71) (221) [SCAL] (1) volume2_2.portInDensities[2] = Modelica.Media.Water.IF97_Utilities.rho_ph(volume2_2.vessel_ps_static[2], Tmix2.port_b.h_outflow, 0, 0) ($RES_SIM_72) (222) [ARRY] (1) volume1_1.heatTransfer.Q_flows = volume1_1.heatTransfer.heatPorts.Q_flow ($RES_SIM_356) (223) [SCAL] (1) volume2_2.ports_H_flow[1] = smooth(0, volume2_2.ports[1].m_flow * (if $SEV_13 then sink2.ports[1].h_outflow else volume2_2.ports[1].h_outflow)) ($RES_SIM_73) (224) [ARRY] (1) volume1_1.heatTransfer.Ts = volume1_1.heatTransfer.heatPorts.T ($RES_SIM_357) (225) [SCAL] (1) volume1_2.medium.phase = volume1_2.medium.state.phase ($RES_SIM_272) (226) [SCAL] (1) volume2_2.portInDensities[1] = Modelica.Media.Water.IF97_Utilities.rho_ph(volume2_2.vessel_ps_static[1], sink2.ports[1].h_outflow, 0, 0) ($RES_SIM_74) (227) [SCAL] (1) volume1_2.medium.d = volume1_2.medium.state.d ($RES_SIM_273) (228) [SCAL] (1) -((-273.15) - volume1_2.medium.T_degC) = volume1_2.medium.state.T ($RES_SIM_274) (229) [SCAL] (1) $SEV_34 = (volume2_1.medium.h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(volume2_1.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(volume2_1.medium.sat.psat)) or volume2_1.medium.h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(volume2_1.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(volume2_1.medium.sat.psat))) or 99999.99999999999 * volume2_1.medium.p_bar > 2.2064e7 ($RES_EVT_520) (230) [SCAL] (1) 99999.99999999999 * volume1_2.medium.p_bar = volume1_2.medium.state.p ($RES_SIM_275) (231) [SCAL] (1) -((-273.15) - volume2_1.medium.T_degC) = Modelica.Media.Water.IF97_Utilities.T_props_ph(99999.99999999999 * volume2_1.medium.p_bar, volume2_1.medium.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * volume2_1.medium.p_bar, volume2_1.medium.h, volume2_1.medium.phase, 0)) ($RES_SIM_190) (232) [ARRY] (2) volume2_2.portsData_height = {0.0 for $i1 in 1:2} ($RES_SIM_77) (233) [SCAL] (1) volume1_2.medium.h = volume1_2.medium.state.h ($RES_SIM_276) (234) [SCAL] (1) volume2_1.medium.d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(99999.99999999999 * volume2_1.medium.p_bar, volume2_1.medium.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * volume2_1.medium.p_bar, volume2_1.medium.h, volume2_1.medium.phase, 0)) ($RES_SIM_191) (235) [SCAL] (1) source2.medium.phase = source2.medium.state.phase ($RES_SIM_118) (236) [SCAL] (1) volume2_1.medium.phase = if $SEV_34 then 1 else 2 ($RES_SIM_192) (237) [SCAL] (1) source2.medium.d = source2.medium.state.d ($RES_SIM_119) (238) [SCAL] (1) volume1_2.medium.u = volume1_2.medium.h - (99999.99999999999 * volume1_2.medium.p_bar) / volume1_2.medium.d ($RES_SIM_278) (239) [FOR-] (3) ($RES_EVT_524) (239) [----] for $i1 in 1:3 loop (239) [----] [SCAL] (1) $SEV_38[$i1] = 0.0 >= volume1_2.portsData_height[$i1] ($RES_EVT_525) (239) [----] end for; (240) [SCAL] (1) volume1_2.medium.sat.psat = 99999.99999999999 * volume1_2.medium.p_bar ($RES_SIM_279) (241) [SCAL] (1) source1.m_flow_in = ramp.offset + (if $TEV_0 then 0.0 else if $TEV_1 then (ramp.height * (time - ramp.startTime)) / ramp.duration else ramp.height) ($RES_SIM_194) (242) [SCAL] (1) sink1.ports[1].p = sink1.p ($RES_SIM_195) (243) [SCAL] (1) volume1_1.mb_flow = sum(volume1_1.ports.m_flow) ($RES_$AUX_459) (244) [FOR-] (3) ($RES_EVT_526) (244) [----] for $i1 in 1:3 loop (244) [----] [SCAL] (1) $SEV_39[$i1] = volume1_2.s[$i1] > 0.0 ($RES_EVT_527) (244) [----] end for; (245) [SCAL] (1) sink1.ports[1].h_outflow = sink1.h ($RES_SIM_196) (246) [SCAL] (1) $FUN_2 = sum(volume1_1.ports_H_flow) ($RES_$AUX_458) (247) [SCAL] (1) $FUN_3 = sum(volume1_1.ports_E_flow) ($RES_$AUX_457) (248) [FOR-] (3) ($RES_EVT_528) (248) [----] for $i1 in 1:3 loop (248) [----] [SCAL] (1) $SEV_40[$i1] = volume1_2.portsData_height[$i1] >= volume1_2.fluidLevel_max ($RES_EVT_529) (248) [----] end for; (249) [SCAL] (1) -source1.m_flow_in = sum(source1.ports.m_flow) ($RES_$AUX_456) (250) [SCAL] (1) volume1_2.mb_flow = sum(volume1_2.ports.m_flow) ($RES_$AUX_455) (251) [SCAL] (1) $FUN_6 = sum(volume1_2.ports_H_flow) ($RES_$AUX_454) (252) [SCAL] (1) $FUN_7 = sum(volume1_2.ports_E_flow) ($RES_$AUX_453) (253) [SCAL] (1) volume2_1.mb_flow = sum(volume2_1.ports.m_flow) ($RES_$AUX_452) (254) [SCAL] (1) $FUN_9 = sum(volume2_1.ports_H_flow) ($RES_$AUX_451) (255) [SCAL] (1) $FUN_10 = sum(volume2_1.ports_E_flow) ($RES_$AUX_450) (256) [ARRY] (1) volume1_2.heatTransfer.Ts = {volume1_2.heatTransfer.states.h} ($RES_BND_415)