Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.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.Machines.TestWaterPumpCharacteristics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 107.3 kB / 16.42 MB, free: 5.973 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.001176/0.001176, allocations: 191.3 kB / 17.36 MB, free: 5.566 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.247/1.247, 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.1511/0.1511, allocations: 38 MB / 308.6 MB, free: 5.984 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.48e-05/1.48e-05, allocations: 2.281 kB / 433.6 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics): time 0.05809/0.05811, allocations: 72.45 MB / 0.4942 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2265/0.2847, allocations: 23.38 MB / 0.517 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001521/0.2862, allocations: 35.03 kB / 0.5171 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002062/0.2883, allocations: 0.9023 MB / 0.518 GB, free: 3.734 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/Fluid/TestComponents/Machines/TestWaterPumpCharacteristics.mo:24:15-26:68:writable] Warning: Pure function 'ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pump.flowCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/Fluid/TestComponents/Machines/TestWaterPumpCharacteristics.mo:46:15-48:67:writable] Warning: Pure function 'ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pumpPolynomial.flowCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/Fluid/TestComponents/Machines/TestWaterPumpCharacteristics.mo:55:15-57:70:writable] Warning: Pure function 'ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pumpQuadraticLinear.flowCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/Fluid/TestComponents/Machines/TestWaterPumpCharacteristics.mo:68:15-70:59:writable] Warning: Pure function 'ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pumpLinear.flowCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. Notification: Performance of NFTyping.typeBindings: time 0.01505/0.3034, allocations: 6.41 MB / 0.5242 GB, free: 3.707 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Machines.mo:335:17-340:42:writable] Warning: Pure function 'ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pump.powerCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Machines.mo:335:17-340:42:writable] Warning: Pure function 'ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pumpPolynomial.powerCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Machines.mo:335:17-340:42:writable] Warning: Pure function 'ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pumpQuadraticLinear.powerCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Machines.mo:335:17-340:42:writable] Warning: Pure function 'ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pumpLinear.powerCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. Notification: Performance of NFTyping.typeClassSections: time 0.008604/0.312, allocations: 3.824 MB / 0.528 GB, free: 3.621 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004709/0.3167, allocations: 3.898 MB / 0.5318 GB, free: 3.566 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001228/0.3179, allocations: 0.9782 MB / 0.5327 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002977/0.3209, allocations: 1.56 MB / 0.5342 GB, free: 3.484 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01414/0.3351, allocations: 7.42 MB / 0.5415 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004533/0.3356, allocations: 129.5 kB / 0.5416 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01536/0.3509, allocations: 8.055 MB / 0.5495 GB, free: 12 kB / 398.1 MB Notification: Performance of combineBinaries: time 0.003025/0.354, allocations: 2.886 MB / 0.5523 GB, free: 14.5 MB / 414.1 MB Notification: Performance of replaceArrayConstructors: time 0.001343/0.3554, allocations: 1.853 MB / 0.5541 GB, free: 13.36 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006945/0.3561, allocations: 281.9 kB / 0.5544 GB, free: 13.31 MB / 414.1 MB Notification: Performance of FrontEnd: time 0.0002769/0.3564, allocations: 36.81 kB / 0.5544 GB, free: 13.3 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: 324 (264) * Number of variables: 324 (306) Notification: Performance of Bindings: time 0.006908/0.3633, allocations: 8.527 MB / 0.5627 GB, free: 7.527 MB / 414.1 MB Notification: Performance of FunctionAlias: time 0.0006424/0.3639, allocations: 0.7471 MB / 0.5635 GB, free: 7.152 MB / 414.1 MB Notification: Performance of Early Inline: time 0.003898/0.3678, allocations: 4.136 MB / 0.5675 GB, free: 4.305 MB / 414.1 MB Notification: Performance of simplify1: time 0.0002672/0.3681, allocations: 268.9 kB / 0.5678 GB, free: 4.055 MB / 414.1 MB Notification: Performance of Alias: time 0.004408/0.3725, allocations: 4.511 MB / 0.5722 GB, free: 15.12 MB / 430.1 MB Notification: Performance of simplify2: time 0.0002515/0.3728, allocations: 269.5 kB / 0.5724 GB, free: 14.87 MB / 430.1 MB Notification: Performance of Events: time 0.001177/0.374, allocations: 1.116 MB / 0.5735 GB, free: 13.74 MB / 430.1 MB Notification: Performance of Detect States: time 0.0009665/0.3749, allocations: 1.056 MB / 0.5745 GB, free: 12.68 MB / 430.1 MB Notification: Performance of Partitioning: time 0.001813/0.3768, allocations: 1.768 MB / 0.5763 GB, free: 10.72 MB / 430.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency pump.heatTransfer.states.T could not be divided by the body size 5 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (5) pump.heatTransfer.states = {pump.medium.state} ($RES_BND_278) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (243/261) **************************** (1) [ALGB] (1) Real Source.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (2) [DISC] (1) final input Integer pumpQuadraticLinear.monitoring.state.phase = pumpQuadraticLinear.medium.state.phase (min = 0, max = 2) (3) [DISC] (1) Boolean $SEV_28 (4) [ALGB] (1) flow Real[1] pumpPolynomial.heatTransfer.heatPorts.Q_flow (5) [ALGB] (1) Real pumpQuadraticLinear.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (6) [DISC] (1) Boolean $SEV_25 (7) [ALGB] (1) Real pumpPolynomial.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (8) [ALGB] (1) Real pumpPolynomial.m_flow_single = pumpPolynomial.m_flow / pumpPolynomial.nParallel (9) [DISC] (1) Boolean $SEV_22 (10) [DISC] (1) final input Integer[1, 1] pumpLinear.heatTransfer.states.phase = {pumpLinear.medium.state.phase} (min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (11) [DISC] (1) Boolean $SEV_21 (12) [DISC] (1) Boolean $SEV_20 (13) [ALGB] (1) Real pumpPolynomial.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (14) [ALGB] (1) Real pumpQuadraticLinear.m (min = 0.0) (15) [ALGB] (1) Real pumpLinear.rho = pumpLinear.rho (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (16) [ALGB] (1) Real[1] pump.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}) (17) [ALGB] (4) flow Real[4] Sink.ports.m_flow (min = {-1e60 for $ports1 in 1:4}, max = {1e60 for $ports1 in 1:4}) (18) [ALGB] (1) final input Real[1, 1] pump.heatTransfer.states.T = {pump.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}) (19) [DISC] (1) Integer pumpQuadraticLinear.medium.phase (fixed = false, start = 1, min = 0, max = 2) (20) [DISC] (1) Boolean $TEV_1 (21) [DISC] (1) Boolean $TEV_0 (22) [ALGB] (1) Real pumpPolynomial.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (23) [ALGB] (1) Real[1] pumpLinear.heatTransfer.Q_flows (24) [ALGB] (1) final input Real[1, 1] pump.heatTransfer.states.d = {pump.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}) (25) [DISC] (1) Integer Sink.medium.phase (fixed = false, start = 1, min = 0, max = 2) (26) [DISC] (1) Boolean $SEV_19 (27) [ALGB] (1) final input Real[1, 1] pump.heatTransfer.states.h = {pump.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}) (28) [ALGB] (1) Real pumpQuadraticLinear.U (29) [ALGB] (1) Real pump.m_flow = pump.m_flow (30) [ALGB] (1) Real pumpLinear.Wb_flow (31) [DISC] (1) Boolean $SEV_16 (32) [DISC] (1) final input Integer[1, 1] pumpQuadraticLinear.heatTransfer.states.phase = {pumpQuadraticLinear.medium.state.phase} (min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (33) [DISC] (1) Boolean $SEV_15 (34) [DISC] (1) Boolean $SEV_14 (35) [DISC] (1) Boolean $SEV_13 (36) [ALGB] (1) stream Real pumpLinear.port_b.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (37) [ALGB] (1) Real pumpQuadraticLinear.N (start = pumpQuadraticLinear.N_nominal) (38) [DISC] (1) Boolean $SEV_10 (39) [ALGB] (1) final input Real[1, 1] pump.heatTransfer.states.p = {pump.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}) (40) [ALGB] (1) final input Real pumpQuadraticLinear.monitoring.state.p = pumpQuadraticLinear.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (41) [DISC] (1) Integer pumpLinear.medium.state.phase (min = 0, max = 2) (42) [ALGB] (1) Real pumpQuadraticLinear.dp_pump = 99999.99999999999 * pumpQuadraticLinear.medium.p_bar - pumpQuadraticLinear.port_a.p (43) [ALGB] (1) Real pumpQuadraticLinear.m_flow_single = pumpQuadraticLinear.m_flow / pumpQuadraticLinear.nParallel (44) [ALGB] (1) Real pumpQuadraticLinear.Qb_flow (45) [ALGB] (1) final input Real pumpQuadraticLinear.monitoring.state.h = pumpQuadraticLinear.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (46) [ALGB] (1) Real pumpPolynomial.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (47) [ALGB] (1) Real pump.medium.sat.Tsat (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (48) [ALGB] (1) final input Real pumpQuadraticLinear.monitoring.state.d = pumpQuadraticLinear.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (49) [DISC] (1) final input Integer pumpPolynomial.monitoring.state.phase = pumpPolynomial.medium.state.phase (min = 0, max = 2) (50) [ALGB] (1) Real pumpLinear.Hb_flow (51) [DISC] (1) Integer Sink.medium.state.phase (min = 0, max = 2) (52) [ALGB] (1) Real pumpQuadraticLinear.V_flow (53) [ALGB] (1) final input Real pumpPolynomial.monitoring.state_in.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (54) [ALGB] (1) Real Sink.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (55) [ALGB] (1) Real Source.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (56) [ALGB] (1) Real pump.head = pump.dp_pump / (pump.g * pump.rho) (57) [DISC] (1) Integer pumpPolynomial.medium.phase (fixed = false, start = 1, min = 0, max = 2) (58) [ALGB] (1) Real Source.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (59) [ALGB] (1) Real pumpLinear.head = pumpLinear.dp_pump / (pumpLinear.g * pumpLinear.rho) (60) [DISC] (1) final input Integer pumpLinear.monitoring.state.phase = pumpLinear.medium.state.phase (min = 0, max = 2) (61) [ALGB] (1) Real Sink.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - Sink.medium.T_degC)) (62) [ALGB] (1) final input Real pump.monitoring.state_in.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (63) [ALGB] (1) final input Real pumpQuadraticLinear.monitoring.state.T = pumpQuadraticLinear.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (64) [ALGB] (1) Real pumpPolynomial.m_flow = pumpPolynomial.m_flow (65) [ALGB] (1) flow Real[1] pumpLinear.heatTransfer.heatPorts.Q_flow (66) [ALGB] (1) Real[1] pumpPolynomial.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}) (67) [DISC] (1) Integer pumpQuadraticLinear.medium.state.phase (min = 0, max = 2) (68) [ALGB] (1) Real pumpPolynomial.V_flow_single (start = pumpPolynomial.m_flow_start / (pumpPolynomial.nParallel * pumpPolynomial.rho_nominal)) (69) [ALGB] (1) Real[1] pumpQuadraticLinear.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}) (70) [ALGB] (1) final input Real pumpPolynomial.monitoring.state_in.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (71) [ALGB] (1) Real Source.medium.h (StateSelect = default) (72) [ALGB] (1) Real Sink.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (73) [ALGB] (1) final input Real pumpLinear.monitoring.state.T = pumpLinear.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (74) [ALGB] (1) stream Real pumpQuadraticLinear.port_b.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (75) [ALGB] (1) final input Real pumpPolynomial.monitoring.state_in.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (76) [ALGB] (1) Real Source.medium.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0, StateSelect = default) (77) [ALGB] (1) flow Real pumpPolynomial.port_b.m_flow (start = -pumpPolynomial.m_flow_start, min = -1e5, max = 1e60) (78) [ALGB] (1) Real Sink.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (79) [ALGB] (1) Real pump.dp_pump = 99999.99999999999 * pump.medium.p_bar - pump.port_a.p (80) [ALGB] (1) stream Real pump.port_b.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (81) [ALGB] (1) Real pump.V_flow_single (start = pump.m_flow_start / (pump.nParallel * pump.rho_nominal)) (82) [ALGB] (1) Real pumpLinear.V_flow (83) [ALGB] (1) Real $FUN_4 (84) [ALGB] (1) Real pumpPolynomial.Hb_flow (85) [ALGB] (1) Real pumpLinear.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (86) [ALGB] (1) Real pumpLinear.V_flow_single (start = pumpLinear.m_flow_start / (pumpLinear.nParallel * pumpLinear.rho_nominal)) (87) [ALGB] (1) Real $FUN_3 (88) [ALGB] (1) Real pump.Qb_flow (89) [ALGB] (1) Real $FUN_2 (90) [ALGB] (1) final input Real pump.monitoring.state_in.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (91) [ALGB] (1) stream Real pumpPolynomial.port_b.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (92) [ALGB] (1) Real $FUN_1 (93) [ALGB] (1) final input Real[1, 1] pumpPolynomial.heatTransfer.states.p = {pumpPolynomial.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}) (94) [ALGB] (1) final input Real pumpPolynomial.monitoring.state_in.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (95) [ALGB] (1) Real Sink.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (96) [ALGB] (1) final input Real pump.monitoring.state_in.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (97) [ALGB] (1) Real[1] pumpQuadraticLinear.heatTransfer.Ts = {ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pumpQuadraticLinear.heatTransfer.Medium.temperature(pumpQuadraticLinear.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}) (98) [ALGB] (1) Real pump.eta (99) [ALGB] (1) Real pumpQuadraticLinear.Wb_flow (100) [DISC] (1) Integer pump.medium.phase (fixed = false, start = 1, min = 0, max = 2) (101) [ALGB] (1) Real[1] pump.heatTransfer.Ts = {ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pump.heatTransfer.Medium.temperature(pump.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}) (102) [ALGB] (1) Real[1] pumpLinear.heatTransfer.Ts = {ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pumpLinear.heatTransfer.Medium.temperature(pumpLinear.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}) (103) [ALGB] (1) final input Real pumpLinear.monitoring.state.d = pumpLinear.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (104) [ALGB] (1) final input Real[1, 1] pumpPolynomial.heatTransfer.states.h = {pumpPolynomial.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}) (105) [ALGB] (1) Real pumpPolynomial.port_a.p (start = pumpPolynomial.p_a_start, min = 611.657, max = 1e8, nominal = 1e6) (106) [ALGB] (1) final input Real pump.monitoring.state_in.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (107) [ALGB] (1) final input Real pumpLinear.monitoring.state.h = pumpLinear.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (108) [ALGB] (1) final input Real[1, 1] pumpPolynomial.heatTransfer.states.d = {pumpPolynomial.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}) (109) [ALGB] (1) Real pumpQuadraticLinear.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (110) [DISC] (1) final input Integer[1, 1] pumpPolynomial.heatTransfer.states.phase = {pumpPolynomial.medium.state.phase} (min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (111) [ALGB] (1) Real pumpLinear.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * pumpLinear.medium.p_bar) (112) [ALGB] (1) Real[1] pump.heatTransfer.Q_flows (113) [ALGB] (1) Real pumpPolynomial.Wb_flow (114) [ALGB] (1) Real pump.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (115) [ALGB] (1) Real pump.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - pump.medium.T_degC)) (116) [ALGB] (1) final input Real pumpLinear.monitoring.state.p = pumpLinear.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (117) [ALGB] (1) Real pumpPolynomial.head = pumpPolynomial.dp_pump / (pumpPolynomial.g * pumpPolynomial.rho) (118) [ALGB] (1) final input Real[1, 1] pumpLinear.heatTransfer.states.T = {pumpLinear.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}) (119) [ALGB] (1) Real pumpPolynomial.eta (120) [ALGB] (1) Real pumpPolynomial.m (min = 0.0) (121) [ALGB] (1) Real[1] pumpQuadraticLinear.heatTransfer.Q_flows (122) [ALGB] (1) Real pumpLinear.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (123) [ALGB] (1) Real pumpQuadraticLinear.Hb_flow (124) [ALGB] (1) Real pumpQuadraticLinear.medium.sat.Tsat (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (125) [ALGB] (1) final input Real[1, 1] pumpPolynomial.heatTransfer.states.T = {pumpPolynomial.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}) (126) [ALGB] (1) Real pumpQuadraticLinear.V_flow_single (start = pumpQuadraticLinear.m_flow_start / (pumpQuadraticLinear.nParallel * pumpQuadraticLinear.rho_nominal)) (127) [ALGB] (1) Real pumpLinear.W_single (128) [ALGB] (4) Real[4] Source.ports.p (start = {5e6 for $i1 in 1:4}, min = {611.657 for $i1 in 1:4}, max = {1e8 for $i1 in 1:4}, nominal = {1e6 for $i1 in 1:4}) (129) [ALGB] (1) final input Real[1, 1] pumpLinear.heatTransfer.states.d = {pumpLinear.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}) (130) [ALGB] (1) flow Real pumpLinear.port_b.m_flow (start = -pumpLinear.m_flow_start, min = -1e5, max = 1e60) (131) [DISC] (1) Integer pump.medium.state.phase (min = 0, max = 2) (132) [ALGB] (1) Real pump.Wb_flow (133) [ALGB] (1) final input Real[1, 1] pumpLinear.heatTransfer.states.h = {pumpLinear.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}) (134) [DISC] (1) Boolean $SEV_9 (135) [DISC] (1) Boolean $SEV_8 (136) [ALGB] (1) final input Real pump.monitoring.state.T = pump.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (137) [ALGB] (1) Real pumpPolynomial.medium.sat.Tsat (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (138) [DISC] (1) Boolean $SEV_7 (139) [ALGB] (1) Real pump.m (min = 0.0) (140) [ALGB] (1) Real pump.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (141) [ALGB] (1) Real pumpPolynomial.U (142) [ALGB] (1) Real[1] pumpLinear.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}) (143) [DISC] (1) Boolean $SEV_4 (144) [ALGB] (1) final input Real[1, 1] pumpLinear.heatTransfer.states.p = {pumpLinear.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}) (145) [DISC] (1) Boolean $SEV_3 (146) [ALGB] (1) final input Real[1, 1] pumpQuadraticLinear.heatTransfer.states.T = {pumpQuadraticLinear.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}) (147) [DISC] (1) Boolean $SEV_2 (148) [ALGB] (1) Real pumpPolynomial.V_flow (149) [ALGB] (1) Real pumpQuadraticLinear.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * pumpQuadraticLinear.medium.p_bar) (150) [DISC] (1) Boolean $SEV_1 (151) [ALGB] (1) Real pumpQuadraticLinear.W_single (152) [DISC] (1) Boolean $SEV_0 (153) [ALGB] (1) Real pump.m_flow_single = pump.m_flow / pump.nParallel (154) [ALGB] (1) Real pumpQuadraticLinear.eta (155) [ALGB] (1) Real pump.W_single (156) [ALGB] (1) Real pumpPolynomial.N (start = pumpPolynomial.N_nominal) (157) [ALGB] (1) Real pump.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (158) [ALGB] (1) flow Real[1] pumpQuadraticLinear.heatTransfer.heatPorts.Q_flow (159) [ALGB] (1) Real[1] pumpPolynomial.heatTransfer.Q_flows (160) [ALGB] (1) final input Real pump.monitoring.state.d = pump.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (161) [ALGB] (1) Real pumpPolynomial.Qb_flow (162) [ALGB] (1) Real pumpLinear.m_flow = pumpLinear.m_flow (163) [ALGB] (1) Real pump.Hb_flow (164) [ALGB] (1) Real pump.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (165) [ALGB] (1) Real pumpPolynomial.dp_pump = 99999.99999999999 * pumpPolynomial.medium.p_bar - pumpPolynomial.port_a.p (166) [ALGB] (1) final input Real pump.monitoring.state.h = pump.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (167) [DISC] (1) final input Integer[1, 1] pump.heatTransfer.states.phase = {pump.medium.state.phase} (min = {0 for $i1 in 1:1}, max = {2 for $i1 in 1:1}) (168) [ALGB] (1) final input Real[1, 1] pumpQuadraticLinear.heatTransfer.states.d = {pumpQuadraticLinear.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}) (169) [ALGB] (1) Real pump.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (170) [ALGB] (1) Real pumpLinear.m_flow_single = pumpLinear.m_flow / pumpLinear.nParallel (171) [ALGB] (1) Real[1] pumpPolynomial.heatTransfer.Ts = {ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pumpPolynomial.heatTransfer.Medium.temperature(pumpPolynomial.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}) (172) [ALGB] (1) Real pump.U (173) [ALGB] (1) final input Real[1, 1] pumpQuadraticLinear.heatTransfer.states.h = {pumpQuadraticLinear.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}) (174) [ALGB] (1) Real pumpLinear.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (175) [ALGB] (1) final input Real pump.monitoring.state.p = pump.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (176) [ALGB] (1) Real pumpPolynomial.W_single (177) [ALGB] (1) Real Sink.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * Sink.medium.p_bar) (178) [ALGB] (1) Real pumpLinear.eta (179) [ALGB] (1) Real pump.N (start = pump.N_nominal) (180) [ALGB] (1) final input Real[1, 1] pumpQuadraticLinear.heatTransfer.states.p = {pumpQuadraticLinear.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}) (181) [ALGB] (1) final input Real pumpLinear.monitoring.state_in.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (182) [ALGB] (1) Real Sink.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (183) [ALGB] (1) Real pumpLinear.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (184) [ALGB] (1) flow Real pumpQuadraticLinear.port_b.m_flow (start = -pumpQuadraticLinear.m_flow_start, min = -1e5, max = 1e60) (185) [ALGB] (1) Real pump.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (186) [ALGB] (1) Real pumpLinear.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (187) [ALGB] (1) Real Sink.medium.sat.Tsat (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (188) [ALGB] (1) Real pumpQuadraticLinear.head = pumpQuadraticLinear.dp_pump / (pumpQuadraticLinear.g * pumpQuadraticLinear.rho) (189) [ALGB] (1) Real Sink.medium.h (StateSelect = default) (190) [ALGB] (1) final input Real pumpLinear.monitoring.state_in.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (191) [ALGB] (1) Real Sink.medium.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0, StateSelect = default) (192) [ALGB] (1) final input Real pumpLinear.monitoring.state_in.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (193) [ALGB] (1) Real pumpLinear.port_a.p (start = pumpLinear.p_a_start, min = 611.657, max = 1e8, nominal = 1e6) (194) [ALGB] (1) Real pumpLinear.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (195) [ALGB] (1) Real pumpPolynomial.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * pumpPolynomial.medium.p_bar) (196) [ALGB] (1) Real pumpLinear.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - pumpLinear.medium.T_degC)) (197) [ALGB] (1) Real pumpLinear.medium.sat.Tsat (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (198) [ALGB] (1) final input Real pumpLinear.monitoring.state_in.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (199) [ALGB] (1) final input Real pumpQuadraticLinear.monitoring.state_in.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (200) [ALGB] (1) Real pumpLinear.N (start = pumpLinear.N_nominal) (201) [ALGB] (1) Real pump.rho = pump.rho (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (202) [ALGB] (1) Real pumpQuadraticLinear.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (203) [ALGB] (1) final input Real pumpPolynomial.monitoring.state.p = pumpPolynomial.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (204) [ALGB] (4) stream Real[4] Sink.ports.h_outflow (start = {1e5 for $i1 in 1:4}, min = {-1e10 for $i1 in 1:4}, max = {1e10 for $i1 in 1:4}, nominal = {5e5 for $i1 in 1:4}) (205) [ALGB] (1) Real pumpPolynomial.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (206) [ALGB] (1) Real pumpLinear.U (207) [ALGB] (1) flow Real pump.port_b.m_flow (start = -pump.m_flow_start, min = -1e5, max = 1e60) (208) [ALGB] (1) final input Real pumpPolynomial.monitoring.state.h = pumpPolynomial.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (209) [ALGB] (1) Real pumpQuadraticLinear.port_a.p (start = pumpQuadraticLinear.p_a_start, min = 611.657, max = 1e8, nominal = 1e6) (210) [ALGB] (1) Real pump.port_a.p (start = pump.p_a_start, min = 611.657, max = 1e8, nominal = 1e6) (211) [ALGB] (1) final input Real pumpPolynomial.monitoring.state.d = pumpPolynomial.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (212) [ALGB] (1) final input Real pumpQuadraticLinear.monitoring.state_in.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (213) [DISC] (1) Integer Source.medium.phase (fixed = false, start = 1, min = 0, max = 2) (214) [ALGB] (1) Real pumpPolynomial.rho = pumpPolynomial.rho (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (215) [ALGB] (1) final input Real pumpQuadraticLinear.monitoring.state_in.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (216) [ALGB] (1) final input Real pumpQuadraticLinear.monitoring.state_in.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (217) [DISC] (1) Integer Source.medium.state.phase (min = 0, max = 2) (218) [ALGB] (1) final input Real pumpPolynomial.monitoring.state.T = pumpPolynomial.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (219) [ALGB] (1) Real pump.V_flow (220) [ALGB] (1) Real pumpLinear.m (min = 0.0) (221) [ALGB] (1) Real pump.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * pump.medium.p_bar) (222) [ALGB] (4) Real[4] Sink.ports.p (start = {5e6 for $i1 in 1:4}, min = {611.657 for $i1 in 1:4}, max = {1e8 for $i1 in 1:4}, nominal = {1e6 for $i1 in 1:4}) (223) [DISC] (1) Integer pumpLinear.medium.phase (fixed = false, start = 1, min = 0, max = 2) (224) [ALGB] (4) flow Real[4] Source.ports.m_flow (min = {-1e60 for $ports1 in 1:4}, max = {1e60 for $ports1 in 1:4}) (225) [DISC] (1) Integer pumpPolynomial.medium.state.phase (min = 0, max = 2) (226) [ALGB] (1) Real pumpPolynomial.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - pumpPolynomial.medium.T_degC)) (227) [ALGB] (1) flow Real[1] pump.heatTransfer.heatPorts.Q_flow (228) [ALGB] (1) Real pumpQuadraticLinear.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (229) [DISC] (1) Boolean $SEV_31 (230) [ALGB] (1) Real pumpQuadraticLinear.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - pumpQuadraticLinear.medium.T_degC)) (231) [ALGB] (1) Real Source.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (232) [DISC] (1) final input Integer pump.monitoring.state.phase = pump.medium.state.phase (min = 0, max = 2) (233) [ALGB] (1) Real pumpQuadraticLinear.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (234) [ALGB] (4) stream Real[4] Source.ports.h_outflow (start = {1e5 for $i1 in 1:4}, min = {-1e10 for $i1 in 1:4}, max = {1e10 for $i1 in 1:4}, nominal = {5e5 for $i1 in 1:4}) (235) [ALGB] (1) Real pumpQuadraticLinear.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (236) [ALGB] (1) Real pumpQuadraticLinear.rho = pumpQuadraticLinear.rho (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (237) [ALGB] (1) Real Source.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - Source.medium.T_degC)) (238) [ALGB] (1) Real pumpLinear.dp_pump = 99999.99999999999 * pumpLinear.medium.p_bar - pumpLinear.port_a.p (239) [ALGB] (1) Real pumpPolynomial.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (240) [ALGB] (1) Real pumpLinear.Qb_flow (241) [ALGB] (1) Real pumpQuadraticLinear.m_flow = pumpQuadraticLinear.m_flow (242) [ALGB] (1) Real Source.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (243) [ALGB] (1) Real Sink.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) System Equations (217/261) **************************** (1) [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_204) (2) [SCAL] (1) pumpPolynomial.Wb_flow = pumpPolynomial.W_single * pumpPolynomial.nParallel ($RES_BND_255) (3) [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_205) (4) [SCAL] (1) pumpPolynomial.U = pumpPolynomial.m * pumpPolynomial.medium.u ($RES_SIM_80) (5) [SCAL] (1) pump.m = 0.0 ($RES_SIM_120) (6) [SCAL] (1) Source.medium.phase = if $SEV_31 then 1 else 2 ($RES_SIM_206) (7) [SCAL] (1) pumpPolynomial.m = 0.0 ($RES_SIM_81) (8) [SCAL] (1) 0.0 = pump.m_flow + pump.port_b.m_flow ($RES_SIM_121) (9) [SCAL] (1) 0.0 = pumpPolynomial.m_flow + pumpPolynomial.port_b.m_flow ($RES_SIM_82) (10) [SCAL] (1) pumpLinear.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_208) (11) [SCAL] (1) pumpLinear.port_b.m_flow + Sink.ports[4].m_flow = 0.0 ($RES_SIM_209) (12) [SCAL] (1) pump.Hb_flow = smooth(0, pump.m_flow * (if $SEV_20 then Source.ports[1].h_outflow else pump.port_b.h_outflow)) + smooth(0, pump.port_b.m_flow * (if $SEV_21 then Sink.ports[1].h_outflow else pump.port_b.h_outflow)) ($RES_SIM_125) (13) [SCAL] (1) pumpPolynomial.Hb_flow = smooth(0, pumpPolynomial.m_flow * (if $SEV_14 then Source.ports[2].h_outflow else pumpPolynomial.port_b.h_outflow)) + smooth(0, pumpPolynomial.port_b.m_flow * (if $SEV_15 then Sink.ports[2].h_outflow else pumpPolynomial.port_b.h_outflow)) ($RES_SIM_86) (14) [SCAL] (1) pump.Qb_flow = pump.heatTransfer.Q_flows[1] ($RES_SIM_126) (15) [SCAL] (1) pumpPolynomial.Qb_flow = pumpPolynomial.heatTransfer.Q_flows[1] ($RES_SIM_87) (16) [SCAL] (1) pump.W_single = homotopy((pump.V_flow_single * pump.dp_pump) / pump.eta, (pump.V_flow_single_init * pump.dp_pump) / pump.eta) ($RES_SIM_128) (17) [SCAL] (1) pumpPolynomial.W_single = homotopy((pumpPolynomial.V_flow_single * pumpPolynomial.dp_pump) / pumpPolynomial.eta, (pumpPolynomial.V_flow_single_init * pumpPolynomial.dp_pump) / pumpPolynomial.eta) ($RES_SIM_89) (18) [SCAL] (1) pump.eta = homotopy(0.8, 0.8) ($RES_SIM_129) (19) [SCAL] (1) pumpLinear.Hb_flow = smooth(0, pumpLinear.m_flow * (if $SEV_2 then Source.ports[4].h_outflow else pumpLinear.port_b.h_outflow)) + smooth(0, pumpLinear.port_b.m_flow * (if $SEV_3 then Sink.ports[4].h_outflow else pumpLinear.port_b.h_outflow)) ($RES_SIM_10) (20) [SCAL] (1) pumpLinear.Qb_flow = pumpLinear.heatTransfer.Q_flows[1] ($RES_SIM_11) (21) [ARRY] (1) pumpQuadraticLinear.heatTransfer.Ts = {pumpQuadraticLinear.heatTransfer.states.h} ($RES_BND_260) (22) [SCAL] (1) pumpQuadraticLinear.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_210) (23) [SCAL] (1) pumpQuadraticLinear.port_b.m_flow + Sink.ports[3].m_flow = 0.0 ($RES_SIM_211) (24) [SCAL] (1) pumpLinear.W_single = homotopy((pumpLinear.V_flow_single * pumpLinear.dp_pump) / pumpLinear.eta, (pumpLinear.V_flow_single_init * pumpLinear.dp_pump) / pumpLinear.eta) ($RES_SIM_13) (25) [SCAL] (1) pumpQuadraticLinear.dp_pump = 99999.99999999999 * pumpQuadraticLinear.medium.p_bar - pumpQuadraticLinear.port_a.p ($RES_BND_262) (26) [SCAL] (1) pumpPolynomial.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_212) (27) [SCAL] (1) pumpLinear.eta = homotopy(0.8, 0.8) ($RES_SIM_14) (28) [SCAL] (1) pumpQuadraticLinear.head = pumpQuadraticLinear.dp_pump / (pumpQuadraticLinear.g * pumpQuadraticLinear.rho) ($RES_BND_263) (29) [SCAL] (1) pumpPolynomial.port_b.m_flow + Sink.ports[2].m_flow = 0.0 ($RES_SIM_213) (30) [SCAL] (1) pump.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_214) (31) [SCAL] (1) pumpLinear.head = homotopy((pumpLinear.N / pumpLinear.N_nominal) ^ 2.0 * ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pumpLinear.flowCharacteristic((pumpLinear.N_nominal * pumpLinear.V_flow_single) / pumpLinear.N, {0.0, 0.0015}, {100.0, 0.0}), (pumpLinear.N / pumpLinear.N_nominal) * (ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pumpLinear.flowCharacteristic(pumpLinear.V_flow_single_init, {0.0, 0.0015}, {100.0, 0.0}) + (pumpLinear.V_flow_single - pumpLinear.V_flow_single_init) * noEvent(if $SEV_4 then (10.0 * pumpLinear.delta_head_init) / pumpLinear.V_flow_single_init else 0.0))) ($RES_SIM_16) (32) [SCAL] (1) pumpQuadraticLinear.m_flow_single = pumpQuadraticLinear.m_flow / pumpQuadraticLinear.nParallel ($RES_BND_265) (33) [SCAL] (1) pump.port_b.m_flow + Sink.ports[1].m_flow = 0.0 ($RES_SIM_215) (34) [SCAL] (1) pumpPolynomial.eta = homotopy(0.8, 0.8) ($RES_SIM_90) (35) [SCAL] (1) pumpLinear.V_flow_single = pumpLinear.V_flow / pumpLinear.nParallel ($RES_SIM_17) (36) [SCAL] (1) pumpQuadraticLinear.Wb_flow = pumpQuadraticLinear.W_single * pumpQuadraticLinear.nParallel ($RES_BND_266) (37) [SCAL] (1) pump.head = homotopy((pump.N / pump.N_nominal) ^ 2.0 * ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pump.flowCharacteristic((pump.N_nominal * pump.V_flow_single) / pump.N, {0.0, 0.001, 0.0015}, {100.0, 50.0, 0.0}), (pump.N / pump.N_nominal) * (ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pump.flowCharacteristic(pump.V_flow_single_init, {0.0, 0.001, 0.0015}, {100.0, 50.0, 0.0}) + (pump.V_flow_single - pump.V_flow_single_init) * noEvent(if $SEV_22 then (10.0 * pump.delta_head_init) / pump.V_flow_single_init else 0.0))) ($RES_SIM_131) (38) [SCAL] (1) pumpLinear.m_flow + Source.ports[4].m_flow = 0.0 ($RES_SIM_216) (39) [SCAL] (1) pumpLinear.V_flow = homotopy(pumpLinear.m_flow / pumpLinear.rho, pumpLinear.m_flow / pumpLinear.rho_nominal) ($RES_SIM_18) (40) [SCAL] (1) pumpQuadraticLinear.m_flow + Source.ports[3].m_flow = 0.0 ($RES_SIM_217) (41) [SCAL] (1) pumpPolynomial.head = homotopy((pumpPolynomial.N / pumpPolynomial.N_nominal) ^ 2.0 * ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pumpPolynomial.flowCharacteristic((pumpPolynomial.N_nominal * pumpPolynomial.V_flow_single) / pumpPolynomial.N, {0.0, 0.001, 0.0015}, {100.0, 50.0, 0.0}), (pumpPolynomial.N / pumpPolynomial.N_nominal) * (ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pumpPolynomial.flowCharacteristic(pumpPolynomial.V_flow_single_init, {0.0, 0.001, 0.0015}, {100.0, 50.0, 0.0}) + (pumpPolynomial.V_flow_single - pumpPolynomial.V_flow_single_init) * noEvent(if $SEV_16 then (10.0 * pumpPolynomial.delta_head_init) / pumpPolynomial.V_flow_single_init else 0.0))) ($RES_SIM_92) (42) [SCAL] (1) pump.V_flow_single = pump.V_flow / pump.nParallel ($RES_SIM_132) (43) [SCAL] (1) pumpLinear.N = max(pumpLinear.N_const, 0.001) ($RES_SIM_19) (44) [SCAL] (1) pumpPolynomial.m_flow + Source.ports[2].m_flow = 0.0 ($RES_SIM_218) (45) [SCAL] (1) pumpPolynomial.V_flow_single = pumpPolynomial.V_flow / pumpPolynomial.nParallel ($RES_SIM_93) (46) [SCAL] (1) pump.V_flow = homotopy(pump.m_flow / pump.rho, pump.m_flow / pump.rho_nominal) ($RES_SIM_133) (47) [SCAL] (1) pump.m_flow + Source.ports[1].m_flow = 0.0 ($RES_SIM_219) (48) [SCAL] (1) pumpPolynomial.V_flow = homotopy(pumpPolynomial.m_flow / pumpPolynomial.rho, pumpPolynomial.m_flow / pumpPolynomial.rho_nominal) ($RES_SIM_94) (49) [SCAL] (1) pump.N = max(pump.N_const, 0.001) ($RES_SIM_134) (50) [SCAL] (1) pumpPolynomial.N = max(pumpPolynomial.N_const, 0.001) ($RES_SIM_95) (51) [ARRY] (1) pump.heatTransfer.Q_flows = pump.heatTransfer.heatPorts.Q_flow ($RES_SIM_136) (52) [ARRY] (1) pumpPolynomial.heatTransfer.Q_flows = pumpPolynomial.heatTransfer.heatPorts.Q_flow ($RES_SIM_97) (53) [ARRY] (1) pump.heatTransfer.Ts = pump.heatTransfer.heatPorts.T ($RES_SIM_137) (54) [SCAL] (1) pumpLinear.monitoring.state_in.h = Source.ports[4].h_outflow ($RES_SIM_295) (55) [ARRY] (1) pumpPolynomial.heatTransfer.Ts = pumpPolynomial.heatTransfer.heatPorts.T ($RES_SIM_98) (56) [SCAL] (1) pumpLinear.monitoring.state_in.d = Modelica.Media.Water.IF97_Utilities.rho_ph(pumpLinear.port_a.p, Source.ports[4].h_outflow, 0, 0) ($RES_SIM_296) (57) [SCAL] (1) pumpLinear.monitoring.state_in.T = Modelica.Media.Water.IF97_Utilities.T_ph(pumpLinear.port_a.p, Source.ports[4].h_outflow, 0, 0) ($RES_SIM_297) (58) [SCAL] (1) pumpLinear.monitoring.state_in.p = pumpLinear.port_a.p ($RES_SIM_298) (59) [SCAL] (1) pumpQuadraticLinear.monitoring.state_in.h = Source.ports[3].h_outflow ($RES_SIM_300) (60) [SCAL] (1) pumpQuadraticLinear.monitoring.state_in.d = Modelica.Media.Water.IF97_Utilities.rho_ph(pumpQuadraticLinear.port_a.p, Source.ports[3].h_outflow, 0, 0) ($RES_SIM_301) (61) [SCAL] (1) pumpQuadraticLinear.monitoring.state_in.T = Modelica.Media.Water.IF97_Utilities.T_ph(pumpQuadraticLinear.port_a.p, Source.ports[3].h_outflow, 0, 0) ($RES_SIM_302) (62) [SCAL] (1) pumpQuadraticLinear.monitoring.state_in.p = pumpQuadraticLinear.port_a.p ($RES_SIM_303) (63) [ARRY] (1) pumpLinear.heatTransfer.Q_flows = pumpLinear.heatTransfer.heatPorts.Q_flow ($RES_SIM_21) (64) [SCAL] (1) 99999.99999999999 * pumpLinear.medium.p_bar = Sink.ports[4].p ($RES_SIM_220) (65) [ARRY] (1) pumpLinear.heatTransfer.Ts = pumpLinear.heatTransfer.heatPorts.T ($RES_SIM_22) (66) [ARRY] (1) pumpLinear.heatTransfer.Ts = {pumpLinear.heatTransfer.states.h} ($RES_BND_271) (67) [SCAL] (1) pumpPolynomial.monitoring.state_in.h = Source.ports[2].h_outflow ($RES_SIM_305) (68) [SCAL] (1) Source.ports[4].p = pumpLinear.port_a.p ($RES_SIM_221) (69) [SCAL] (1) pumpPolynomial.monitoring.state_in.d = Modelica.Media.Water.IF97_Utilities.rho_ph(pumpPolynomial.port_a.p, Source.ports[2].h_outflow, 0, 0) ($RES_SIM_306) (70) [SCAL] (1) 99999.99999999999 * pumpQuadraticLinear.medium.p_bar = Sink.ports[3].p ($RES_SIM_222) (71) [SCAL] (1) pumpLinear.dp_pump = 99999.99999999999 * pumpLinear.medium.p_bar - pumpLinear.port_a.p ($RES_BND_273) (72) [SCAL] (1) pumpPolynomial.monitoring.state_in.T = Modelica.Media.Water.IF97_Utilities.T_ph(pumpPolynomial.port_a.p, Source.ports[2].h_outflow, 0, 0) ($RES_SIM_307) (73) [SCAL] (1) 99999.99999999999 * pumpPolynomial.medium.p_bar = Sink.ports[2].p ($RES_SIM_223) (74) [SCAL] (1) pumpLinear.head = pumpLinear.dp_pump / (pumpLinear.g * pumpLinear.rho) ($RES_BND_274) (75) [SCAL] (1) pumpPolynomial.monitoring.state_in.p = pumpPolynomial.port_a.p ($RES_SIM_308) (76) [SCAL] (1) Source.ports[3].p = pumpQuadraticLinear.port_a.p ($RES_SIM_224) (77) [SCAL] (1) Source.ports[2].p = pumpPolynomial.port_a.p ($RES_SIM_225) (78) [SCAL] (1) pumpLinear.medium.phase = pumpLinear.medium.state.phase ($RES_SIM_27) (79) [SCAL] (1) pumpLinear.m_flow_single = pumpLinear.m_flow / pumpLinear.nParallel ($RES_BND_276) (80) [SCAL] (1) 99999.99999999999 * pump.medium.p_bar = Sink.ports[1].p ($RES_SIM_226) (81) [SCAL] (1) pumpLinear.rho = pumpLinear.medium.state.d ($RES_SIM_28) (82) [SCAL] (1) pumpLinear.Wb_flow = pumpLinear.W_single * pumpLinear.nParallel ($RES_BND_277) (83) [SCAL] (1) pump.medium.phase = pump.medium.state.phase ($RES_SIM_142) (84) [SCAL] (1) -((-273.15) - pumpLinear.medium.T_degC) = pumpLinear.medium.state.T ($RES_SIM_29) (85) [ARRY] (5) pump.heatTransfer.states = {pump.medium.state} ($RES_BND_278) (86) [SCAL] (1) Source.ports[1].p = pump.port_a.p ($RES_SIM_228) (87) [SCAL] (1) pump.rho = pump.medium.state.d ($RES_SIM_143) (88) [SCAL] (1) -((-273.15) - pump.medium.T_degC) = pump.medium.state.T ($RES_SIM_144) (89) [SCAL] (1) 99999.99999999999 * pump.medium.p_bar = pump.medium.state.p ($RES_SIM_145) (90) [SCAL] (1) pump.port_b.h_outflow = pump.medium.state.h ($RES_SIM_146) (91) [SCAL] (1) pump.medium.u = pump.port_b.h_outflow - (99999.99999999999 * pump.medium.p_bar) / pump.rho ($RES_SIM_148) (92) [SCAL] (1) pump.medium.sat.psat = 99999.99999999999 * pump.medium.p_bar ($RES_SIM_149) (93) [SCAL] (1) pump.monitoring.state_in.h = Source.ports[1].h_outflow ($RES_SIM_310) (94) [SCAL] (1) pump.monitoring.state_in.d = Modelica.Media.Water.IF97_Utilities.rho_ph(pump.port_a.p, Source.ports[1].h_outflow, 0, 0) ($RES_SIM_311) (95) [SCAL] (1) pump.monitoring.state_in.T = Modelica.Media.Water.IF97_Utilities.T_ph(pump.port_a.p, Source.ports[1].h_outflow, 0, 0) ($RES_SIM_312) (96) [SCAL] (1) 99999.99999999999 * pumpLinear.medium.p_bar = pumpLinear.medium.state.p ($RES_SIM_30) (97) [SCAL] (1) pump.monitoring.state_in.p = pump.port_a.p ($RES_SIM_313) (98) [SCAL] (1) pumpLinear.port_b.h_outflow = pumpLinear.medium.state.h ($RES_SIM_31) (99) [RECD] (5) pump.monitoring.state = pump.medium.state ($RES_BND_280) (100) [ARRY] (5) pumpPolynomial.heatTransfer.states = {pumpPolynomial.medium.state} ($RES_BND_281) (101) [SCAL] (1) pumpLinear.medium.u = pumpLinear.port_b.h_outflow - (99999.99999999999 * pumpLinear.medium.p_bar) / pumpLinear.rho ($RES_SIM_33) (102) [SCAL] (1) pumpLinear.medium.sat.psat = 99999.99999999999 * pumpLinear.medium.p_bar ($RES_SIM_34) (103) [RECD] (5) pumpPolynomial.monitoring.state = pumpPolynomial.medium.state ($RES_BND_283) (104) [SCAL] (1) pumpLinear.medium.sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(99999.99999999999 * pumpLinear.medium.p_bar) ($RES_SIM_35) (105) [ARRY] (5) pumpQuadraticLinear.heatTransfer.states = {pumpQuadraticLinear.medium.state} ($RES_BND_284) (106) [SCAL] (1) -((-273.15) - pumpLinear.medium.T_degC) = Modelica.Media.Water.IF97_Utilities.T_props_ph(99999.99999999999 * pumpLinear.medium.p_bar, pumpLinear.port_b.h_outflow, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * pumpLinear.medium.p_bar, pumpLinear.port_b.h_outflow, pumpLinear.medium.phase, 0)) ($RES_SIM_36) (107) [SCAL] (1) pumpLinear.rho = Modelica.Media.Water.IF97_Utilities.rho_props_ph(99999.99999999999 * pumpLinear.medium.p_bar, pumpLinear.port_b.h_outflow, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * pumpLinear.medium.p_bar, pumpLinear.port_b.h_outflow, pumpLinear.medium.phase, 0)) ($RES_SIM_37) (108) [SCAL] (1) pump.medium.sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(99999.99999999999 * pump.medium.p_bar) ($RES_SIM_150) (109) [RECD] (5) pumpQuadraticLinear.monitoring.state = pumpQuadraticLinear.medium.state ($RES_BND_286) (110) [SCAL] (1) pumpLinear.medium.phase = if $SEV_7 then 1 else 2 ($RES_SIM_38) (111) [SCAL] (1) -((-273.15) - pump.medium.T_degC) = Modelica.Media.Water.IF97_Utilities.T_props_ph(99999.99999999999 * pump.medium.p_bar, pump.port_b.h_outflow, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * pump.medium.p_bar, pump.port_b.h_outflow, pump.medium.phase, 0)) ($RES_SIM_151) (112) [ARRY] (5) pumpLinear.heatTransfer.states = {pumpLinear.medium.state} ($RES_BND_287) (113) [SCAL] (1) pump.rho = Modelica.Media.Water.IF97_Utilities.rho_props_ph(99999.99999999999 * pump.medium.p_bar, pump.port_b.h_outflow, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * pump.medium.p_bar, pump.port_b.h_outflow, pump.medium.phase, 0)) ($RES_SIM_152) (114) [SCAL] (1) pump.medium.phase = if $SEV_25 then 1 else 2 ($RES_SIM_153) (115) [RECD] (5) pumpLinear.monitoring.state = pumpLinear.medium.state ($RES_BND_289) (116) [FOR-] (4) ($RES_SIM_155) (116) [----] for $i1 in 1:4 loop (116) [----] [SCAL] (1) Sink.ports[$i1].p = 99999.99999999999 * Sink.medium.p_bar ($RES_SIM_156) (116) [----] end for; (117) [FOR-] (4) ($RES_SIM_157) (117) [----] for $i1 in 1:4 loop (117) [----] [SCAL] (1) Sink.ports[$i1].h_outflow = Sink.medium.h ($RES_SIM_158) (117) [----] end for; (118) [SCAL] (1) Sink.medium.h = Modelica.Media.Water.IF97_Utilities.h_pT(99999.99999999999 * Sink.medium.p_bar, Sink.T, 0) ($RES_SIM_159) (119) [SCAL] (1) 0.0 = pumpQuadraticLinear.Qb_flow + pumpQuadraticLinear.Hb_flow + pumpQuadraticLinear.Wb_flow ($RES_SIM_41) (120) [SCAL] (1) pumpQuadraticLinear.U = pumpQuadraticLinear.m * pumpQuadraticLinear.medium.u ($RES_SIM_42) (121) [SCAL] (1) pumpQuadraticLinear.m = 0.0 ($RES_SIM_43) (122) [SCAL] (1) 0.0 = pumpQuadraticLinear.m_flow + pumpQuadraticLinear.port_b.m_flow ($RES_SIM_44) (123) [SCAL] (1) pumpQuadraticLinear.Hb_flow = smooth(0, pumpQuadraticLinear.m_flow * (if $SEV_8 then Source.ports[3].h_outflow else pumpQuadraticLinear.port_b.h_outflow)) + smooth(0, pumpQuadraticLinear.port_b.m_flow * (if $SEV_9 then Sink.ports[3].h_outflow else pumpQuadraticLinear.port_b.h_outflow)) ($RES_SIM_48) (124) [SCAL] (1) pumpQuadraticLinear.Qb_flow = pumpQuadraticLinear.heatTransfer.Q_flows[1] ($RES_SIM_49) (125) [SCAL] (1) Sink.medium.phase = Sink.medium.state.phase ($RES_SIM_168) (126) [SCAL] (1) Sink.medium.d = Sink.medium.state.d ($RES_SIM_169) (127) [SCAL] (1) $TEV_0 = time < downstreamPressure.startTime ($RES_EVT_332) (128) [SCAL] (1) $TEV_1 = time < (downstreamPressure.startTime + downstreamPressure.duration) ($RES_EVT_333) (129) [SCAL] (1) $SEV_0 = pumpQuadraticLinear.m_flow - pumpLinear.m_flow < 1e-10 ($RES_EVT_334) (130) [SCAL] (1) $SEV_1 = pump.m_flow - pumpPolynomial.m_flow < 1e-10 ($RES_EVT_335) (131) [SCAL] (1) $SEV_2 = pumpLinear.m_flow > 0.0 ($RES_EVT_336) (132) [SCAL] (1) $SEV_3 = pumpLinear.port_b.m_flow > 0.0 ($RES_EVT_337) (133) [SCAL] (1) $SEV_4 = $FUN_4 > 0.0 ($RES_EVT_338) (134) [SCAL] (1) pumpQuadraticLinear.W_single = homotopy((pumpQuadraticLinear.V_flow_single * pumpQuadraticLinear.dp_pump) / pumpQuadraticLinear.eta, (pumpQuadraticLinear.V_flow_single_init * pumpQuadraticLinear.dp_pump) / pumpQuadraticLinear.eta) ($RES_SIM_51) (135) [SCAL] (1) pumpQuadraticLinear.eta = homotopy(0.8, 0.8) ($RES_SIM_52) (136) [SCAL] (1) pumpQuadraticLinear.head = homotopy((pumpQuadraticLinear.N / pumpQuadraticLinear.N_nominal) ^ 2.0 * ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pumpQuadraticLinear.flowCharacteristic((pumpQuadraticLinear.N_nominal * pumpQuadraticLinear.V_flow_single) / pumpQuadraticLinear.N, {0.0, 7.5e-4, 0.0015}, {100.0, 50.0, 0.0}), (pumpQuadraticLinear.N / pumpQuadraticLinear.N_nominal) * (ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pumpQuadraticLinear.flowCharacteristic(pumpQuadraticLinear.V_flow_single_init, {0.0, 7.5e-4, 0.0015}, {100.0, 50.0, 0.0}) + (pumpQuadraticLinear.V_flow_single - pumpQuadraticLinear.V_flow_single_init) * noEvent(if $SEV_10 then (10.0 * pumpQuadraticLinear.delta_head_init) / pumpQuadraticLinear.V_flow_single_init else 0.0))) ($RES_SIM_54) (137) [SCAL] (1) pumpQuadraticLinear.V_flow_single = pumpQuadraticLinear.V_flow / pumpQuadraticLinear.nParallel ($RES_SIM_55) (138) [SCAL] (1) pumpQuadraticLinear.V_flow = homotopy(pumpQuadraticLinear.m_flow / pumpQuadraticLinear.rho, pumpQuadraticLinear.m_flow / pumpQuadraticLinear.rho_nominal) ($RES_SIM_56) (139) [SCAL] (1) pumpQuadraticLinear.N = max(pumpQuadraticLinear.N_const, 0.001) ($RES_SIM_57) (140) [SCAL] (1) -((-273.15) - Sink.medium.T_degC) = Sink.medium.state.T ($RES_SIM_170) (141) [SCAL] (1) 0.0 = pumpLinear.m_flow + pumpLinear.port_b.m_flow ($RES_SIM_6) (142) [SCAL] (1) 99999.99999999999 * Sink.medium.p_bar = Sink.medium.state.p ($RES_SIM_171) (143) [SCAL] (1) pumpLinear.m = 0.0 ($RES_SIM_5) (144) [ARRY] (1) pumpQuadraticLinear.heatTransfer.Q_flows = pumpQuadraticLinear.heatTransfer.heatPorts.Q_flow ($RES_SIM_59) (145) [SCAL] (1) Sink.medium.h = Sink.medium.state.h ($RES_SIM_172) (146) [SCAL] (1) pumpLinear.U = pumpLinear.m * pumpLinear.medium.u ($RES_SIM_4) (147) [SCAL] (1) 0.0 = pumpLinear.Qb_flow + pumpLinear.Hb_flow + pumpLinear.Wb_flow ($RES_SIM_3) (148) [SCAL] (1) Sink.medium.u = Sink.medium.h - (99999.99999999999 * Sink.medium.p_bar) / Sink.medium.d ($RES_SIM_174) (149) [SCAL] (1) Sink.medium.sat.psat = 99999.99999999999 * Sink.medium.p_bar ($RES_SIM_175) (150) [SCAL] (1) Sink.medium.sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(99999.99999999999 * Sink.medium.p_bar) ($RES_SIM_176) (151) [SCAL] (1) -((-273.15) - Sink.medium.T_degC) = Modelica.Media.Water.IF97_Utilities.T_props_ph(99999.99999999999 * Sink.medium.p_bar, Sink.medium.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * Sink.medium.p_bar, Sink.medium.h, Sink.medium.phase, 0)) ($RES_SIM_177) (152) [SCAL] (1) Sink.medium.d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(99999.99999999999 * Sink.medium.p_bar, Sink.medium.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * Sink.medium.p_bar, Sink.medium.h, Sink.medium.phase, 0)) ($RES_SIM_178) (153) [SCAL] (1) Sink.medium.phase = if $SEV_28 then 1 else 2 ($RES_SIM_179) (154) [SCAL] (1) $SEV_7 = (pumpLinear.port_b.h_outflow < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pumpLinear.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(pumpLinear.medium.sat.psat)) or pumpLinear.port_b.h_outflow > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pumpLinear.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(pumpLinear.medium.sat.psat))) or 99999.99999999999 * pumpLinear.medium.p_bar > 2.2064e7 ($RES_EVT_341) (155) [SCAL] (1) $SEV_8 = pumpQuadraticLinear.m_flow > 0.0 ($RES_EVT_342) (156) [SCAL] (1) $SEV_9 = pumpQuadraticLinear.port_b.m_flow > 0.0 ($RES_EVT_343) (157) [SCAL] (1) $SEV_10 = $FUN_3 > 0.0 ($RES_EVT_344) (158) [SCAL] (1) $SEV_13 = (pumpQuadraticLinear.port_b.h_outflow < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pumpQuadraticLinear.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(pumpQuadraticLinear.medium.sat.psat)) or pumpQuadraticLinear.port_b.h_outflow > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pumpQuadraticLinear.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(pumpQuadraticLinear.medium.sat.psat))) or 99999.99999999999 * pumpQuadraticLinear.medium.p_bar > 2.2064e7 ($RES_EVT_347) (159) [SCAL] (1) $SEV_14 = pumpPolynomial.m_flow > 0.0 ($RES_EVT_348) (160) [SCAL] (1) $SEV_15 = pumpPolynomial.port_b.m_flow > 0.0 ($RES_EVT_349) (161) [ARRY] (1) pumpQuadraticLinear.heatTransfer.Ts = pumpQuadraticLinear.heatTransfer.heatPorts.T ($RES_SIM_60) (162) [ARRY] (1) pump.heatTransfer.Ts = {pump.heatTransfer.states.h} ($RES_BND_238) (163) [SCAL] (1) pumpPolynomial.medium.phase = pumpPolynomial.medium.state.phase ($RES_SIM_103) (164) [SCAL] (1) pumpPolynomial.rho = pumpPolynomial.medium.state.d ($RES_SIM_104) (165) [SCAL] (1) pumpQuadraticLinear.medium.phase = pumpQuadraticLinear.medium.state.phase ($RES_SIM_65) (166) [SCAL] (1) -((-273.15) - pumpPolynomial.medium.T_degC) = pumpPolynomial.medium.state.T ($RES_SIM_105) (167) [SCAL] (1) pumpQuadraticLinear.rho = pumpQuadraticLinear.medium.state.d ($RES_SIM_66) (168) [SCAL] (1) 99999.99999999999 * pumpPolynomial.medium.p_bar = pumpPolynomial.medium.state.p ($RES_SIM_106) (169) [SCAL] (1) -((-273.15) - pumpQuadraticLinear.medium.T_degC) = pumpQuadraticLinear.medium.state.T ($RES_SIM_67) (170) [SCAL] (1) pumpPolynomial.port_b.h_outflow = pumpPolynomial.medium.state.h ($RES_SIM_107) (171) [SCAL] (1) 99999.99999999999 * pumpQuadraticLinear.medium.p_bar = pumpQuadraticLinear.medium.state.p ($RES_SIM_68) (172) [FOR-] (4) ($RES_SIM_181) (172) [----] for $i1 in 1:4 loop (172) [----] [SCAL] (1) Source.ports[$i1].p = Source.p ($RES_SIM_182) (172) [----] end for; (173) [SCAL] (1) pumpQuadraticLinear.port_b.h_outflow = pumpQuadraticLinear.medium.state.h ($RES_SIM_69) (174) [SCAL] (1) pumpPolynomial.medium.u = pumpPolynomial.port_b.h_outflow - (99999.99999999999 * pumpPolynomial.medium.p_bar) / pumpPolynomial.rho ($RES_SIM_109) (175) [FOR-] (4) ($RES_SIM_183) (175) [----] for $i1 in 1:4 loop (175) [----] [SCAL] (1) Source.ports[$i1].h_outflow = Source.medium.h ($RES_SIM_184) (175) [----] end for; (176) [SCAL] (1) Source.medium.h = Modelica.Media.Water.IF97_Utilities.h_pT(Source.p, Source.T, 0) ($RES_SIM_185) (177) [SCAL] (1) $SEV_16 = $FUN_2 > 0.0 ($RES_EVT_350) (178) [SCAL] (1) $SEV_19 = (pumpPolynomial.port_b.h_outflow < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pumpPolynomial.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(pumpPolynomial.medium.sat.psat)) or pumpPolynomial.port_b.h_outflow > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pumpPolynomial.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(pumpPolynomial.medium.sat.psat))) or 99999.99999999999 * pumpPolynomial.medium.p_bar > 2.2064e7 ($RES_EVT_353) (179) [SCAL] (1) $SEV_20 = pump.m_flow > 0.0 ($RES_EVT_354) (180) [SCAL] (1) $SEV_21 = pump.port_b.m_flow > 0.0 ($RES_EVT_355) (181) [SCAL] (1) $SEV_22 = $FUN_1 > 0.0 ($RES_EVT_356) (182) [SCAL] (1) $SEV_25 = (pump.port_b.h_outflow < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pump.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(pump.medium.sat.psat)) or pump.port_b.h_outflow > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pump.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(pump.medium.sat.psat))) or 99999.99999999999 * pump.medium.p_bar > 2.2064e7 ($RES_EVT_359) (183) [SCAL] (1) pump.dp_pump = 99999.99999999999 * pump.medium.p_bar - pump.port_a.p ($RES_BND_240) (184) [SCAL] (1) pump.head = pump.dp_pump / (pump.g * pump.rho) ($RES_BND_241) (185) [SCAL] (1) pump.m_flow_single = pump.m_flow / pump.nParallel ($RES_BND_243) (186) [SCAL] (1) pump.Wb_flow = pump.W_single * pump.nParallel ($RES_BND_244) (187) [SCAL] (1) pumpPolynomial.medium.sat.psat = 99999.99999999999 * pumpPolynomial.medium.p_bar ($RES_SIM_110) (188) [SCAL] (1) pumpQuadraticLinear.medium.u = pumpQuadraticLinear.port_b.h_outflow - (99999.99999999999 * pumpQuadraticLinear.medium.p_bar) / pumpQuadraticLinear.rho ($RES_SIM_71) (189) [SCAL] (1) pumpPolynomial.medium.sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(99999.99999999999 * pumpPolynomial.medium.p_bar) ($RES_SIM_111) (190) [SCAL] (1) pumpQuadraticLinear.medium.sat.psat = 99999.99999999999 * pumpQuadraticLinear.medium.p_bar ($RES_SIM_72) (191) [SCAL] (1) -((-273.15) - pumpPolynomial.medium.T_degC) = Modelica.Media.Water.IF97_Utilities.T_props_ph(99999.99999999999 * pumpPolynomial.medium.p_bar, pumpPolynomial.port_b.h_outflow, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * pumpPolynomial.medium.p_bar, pumpPolynomial.port_b.h_outflow, pumpPolynomial.medium.phase, 0)) ($RES_SIM_112) (192) [SCAL] (1) pumpQuadraticLinear.medium.sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(99999.99999999999 * pumpQuadraticLinear.medium.p_bar) ($RES_SIM_73) (193) [SCAL] (1) pumpPolynomial.rho = Modelica.Media.Water.IF97_Utilities.rho_props_ph(99999.99999999999 * pumpPolynomial.medium.p_bar, pumpPolynomial.port_b.h_outflow, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * pumpPolynomial.medium.p_bar, pumpPolynomial.port_b.h_outflow, pumpPolynomial.medium.phase, 0)) ($RES_SIM_113) (194) [ARRY] (1) pumpPolynomial.heatTransfer.Ts = {pumpPolynomial.heatTransfer.states.h} ($RES_BND_249) (195) [SCAL] (1) -((-273.15) - pumpQuadraticLinear.medium.T_degC) = Modelica.Media.Water.IF97_Utilities.T_props_ph(99999.99999999999 * pumpQuadraticLinear.medium.p_bar, pumpQuadraticLinear.port_b.h_outflow, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * pumpQuadraticLinear.medium.p_bar, pumpQuadraticLinear.port_b.h_outflow, pumpQuadraticLinear.medium.phase, 0)) ($RES_SIM_74) (196) [SCAL] (1) pumpPolynomial.medium.phase = if $SEV_19 then 1 else 2 ($RES_SIM_114) (197) [SCAL] (1) pumpQuadraticLinear.rho = Modelica.Media.Water.IF97_Utilities.rho_props_ph(99999.99999999999 * pumpQuadraticLinear.medium.p_bar, pumpQuadraticLinear.port_b.h_outflow, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * pumpQuadraticLinear.medium.p_bar, pumpQuadraticLinear.port_b.h_outflow, pumpQuadraticLinear.medium.phase, 0)) ($RES_SIM_75) (198) [SCAL] (1) pumpQuadraticLinear.medium.phase = if $SEV_13 then 1 else 2 ($RES_SIM_76) (199) [SCAL] (1) 99999.99999999999 * Sink.medium.p_bar = downstreamPressure.offset + (if $TEV_0 then 0.0 else if $TEV_1 then (downstreamPressure.height * (time - downstreamPressure.startTime)) / downstreamPressure.duration else downstreamPressure.height) ($RES_SIM_116) (200) [SCAL] (1) 0.0 = pump.Qb_flow + pump.Hb_flow + pump.Wb_flow ($RES_SIM_118) (201) [SCAL] (1) $FUN_1 = abs(pump.V_flow_single_init) ($RES_$AUX_293) (202) [SCAL] (1) 0.0 = pumpPolynomial.Qb_flow + pumpPolynomial.Hb_flow + pumpPolynomial.Wb_flow ($RES_SIM_79) (203) [SCAL] (1) pump.U = pump.m * pump.medium.u ($RES_SIM_119) (204) [SCAL] (1) $FUN_2 = abs(pumpPolynomial.V_flow_single_init) ($RES_$AUX_292) (205) [SCAL] (1) $FUN_3 = abs(pumpQuadraticLinear.V_flow_single_init) ($RES_$AUX_291) (206) [SCAL] (1) $FUN_4 = abs(pumpLinear.V_flow_single_init) ($RES_$AUX_290) (207) [SCAL] (1) Source.medium.phase = Source.medium.state.phase ($RES_SIM_195) (208) [SCAL] (1) Source.medium.d = Source.medium.state.d ($RES_SIM_196) (209) [SCAL] (1) -((-273.15) - Source.medium.T_degC) = Source.medium.state.T ($RES_SIM_197) (210) [SCAL] (1) Source.medium.h = Source.medium.state.h ($RES_SIM_199) (211) [SCAL] (1) $SEV_28 = (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 99999.99999999999 * Sink.medium.p_bar > 2.2064e7 ($RES_EVT_362) (212) [SCAL] (1) $SEV_31 = (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_365) (213) [SCAL] (1) pumpPolynomial.dp_pump = 99999.99999999999 * pumpPolynomial.medium.p_bar - pumpPolynomial.port_a.p ($RES_BND_251) (214) [SCAL] (1) Source.medium.u = Source.medium.h - Source.p / Source.medium.d ($RES_SIM_201) (215) [SCAL] (1) pumpPolynomial.head = pumpPolynomial.dp_pump / (pumpPolynomial.g * pumpPolynomial.rho) ($RES_BND_252) (216) [SCAL] (1) Source.medium.sat.psat = Source.p ($RES_SIM_202) (217) [SCAL] (1) pumpPolynomial.m_flow_single = pumpPolynomial.m_flow / pumpPolynomial.nParallel ($RES_BND_254)