Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.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.TestWaterPumpDCMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 104 kB / 16.42 MB, free: 6.469 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.001145/0.001145, allocations: 192.3 kB / 17.36 MB, free: 5.707 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.225/1.225, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.1598/0.1598, allocations: 38.01 MB / 308.6 MB, free: 5.977 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.733e-05/1.734e-05, allocations: 2.281 kB / 433.6 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor): time 0.03767/0.03769, allocations: 46.75 MB / 480.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02648/0.0642, allocations: 21.29 MB / 0.4899 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001261/0.0655, allocations: 39.81 kB / 0.4899 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001812/0.06732, allocations: 0.7218 MB / 0.4907 GB, free: 9.426 MB / 382.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/TestWaterPumpDCMotor.mo:20:15-22:68:writable] Warning: Pure function 'ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pump.flowCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. Notification: Performance of NFTyping.typeBindings: time 0.01707/0.0844, allocations: 5.5 MB / 0.496 GB, free: 3.914 MB / 382.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.TestWaterPumpDCMotor.pump.powerCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. Notification: Performance of NFTyping.typeClassSections: time 0.007843/0.09227, allocations: 2.588 MB / 0.4986 GB, free: 1.316 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003651/0.09593, allocations: 3.062 MB / 0.5015 GB, free: 14.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001568/0.09751, allocations: 1.148 MB / 0.5027 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001858/0.09938, allocations: 1.179 MB / 0.5038 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007641/0.107, allocations: 4.101 MB / 0.5078 GB, free: 7.738 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002203/0.1073, allocations: 152 kB / 0.508 GB, free: 7.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2058/0.3131, allocations: 7.635 MB / 0.5154 GB, free: 20.02 MB / 398.1 MB Notification: Performance of combineBinaries: time 0.003543/0.3167, allocations: 2.81 MB / 0.5182 GB, free: 19.15 MB / 398.1 MB Notification: Performance of replaceArrayConstructors: time 0.001637/0.3184, allocations: 1.771 MB / 0.5199 GB, free: 18.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006289/0.319, allocations: 301 kB / 0.5202 GB, free: 17.99 MB / 398.1 MB Notification: Performance of FrontEnd: time 0.000325/0.3193, allocations: 49.88 kB / 0.5202 GB, free: 17.98 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 331 (311) * Number of variables: 331 (331) Notification: Performance of Bindings: time 0.005979/0.3253, allocations: 8.889 MB / 0.5289 GB, free: 14.48 MB / 398.1 MB Notification: Performance of FunctionAlias: time 0.0005327/0.3259, allocations: 0.6789 MB / 0.5296 GB, free: 14.39 MB / 398.1 MB Notification: Performance of Early Inline: time 0.005434/0.3313, allocations: 4.744 MB / 0.5342 GB, free: 14.09 MB / 398.1 MB Notification: Performance of simplify1: time 0.0004158/0.3317, allocations: 329.2 kB / 0.5345 GB, free: 14.08 MB / 398.1 MB Notification: Performance of Alias: time 0.008516/0.3403, allocations: 7.044 MB / 0.5414 GB, free: 11.96 MB / 398.1 MB Notification: Performance of simplify2: time 0.0003461/0.3406, allocations: 214.8 kB / 0.5416 GB, free: 11.96 MB / 398.1 MB Notification: Performance of Events: time 0.0006586/0.3413, allocations: 0.6282 MB / 0.5422 GB, free: 11.82 MB / 398.1 MB Notification: Performance of Detect States: time 0.0007852/0.3421, allocations: 0.8689 MB / 0.5431 GB, free: 11.71 MB / 398.1 MB Notification: Performance of Partitioning: time 0.001351/0.3435, allocations: 1.316 MB / 0.5443 GB, free: 11.27 MB / 398.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_322) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (171/171) **************************** (1) [ALGB] (1) Real Source.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (2) [ALGB] (1) final output Real motor.powerBalance.lossPowerCore = -motor.core.heatPort.Q_flow (3) [DISC] (1) Boolean $SEV_24 (4) [DISC] (1) Boolean $SEV_23 (5) [DISC] (1) Boolean $SEV_22 (6) [DISC] (1) Boolean $SEV_21 (7) [DISC] (1) Boolean $SEV_20 (8) [DER-] (1) Real $DER.pump.phi (9) [ALGB] (1) protected Real Valve.state_a.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (10) [ALGB] (1) final Real motor.thermalAmbient.Q_flowCore = motor.thermalAmbient.Q_flowCore (11) [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}) (12) [ALGB] (1) Real stepVoltage.p.v (13) [ALGB] (1) flow Real[1] Sink.ports.m_flow (min = {-1e60}, max = {1e60}) (14) [DER-] (1) Real $DER.motor.inertiaStator.w (15) [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}) (16) [ALGB] (1) Real motor.airGapDC.pin_ep.v (17) [DISC] (1) Boolean $TEV_1 (18) [DISC] (1) Boolean $TEV_0 (19) [ALGB] (1) flow Real motor.brush.heatPort.Q_flow = -(-motor.brush.heatPort.Q_flow) (20) [ALGB] (1) final output Real motor.powerBalance.powerArmature = motor.va * motor.ia (21) [ALGB] (1) final Real motor.thermalAmbient.Q_flowArmature = motor.thermalAmbient.Q_flowArmature (22) [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}) (23) [DISC] (1) Integer Sink.medium.phase (fixed = false, start = 1, min = 0, max = 2) (24) [DISC] (1) Boolean $SEV_19 (25) [DER-] (1) Real $DER.motor.phiMechanical (26) [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}) (27) [ALGB] (1) protected Real Valve.relativeFlowCoefficient (28) [ALGB] (1) Real pump.m_flow = pump.m_flow (29) [DISC] (1) Boolean $SEV_16 (30) [DISC] (1) Boolean $SEV_13 (31) [DISC] (1) Boolean $SEV_10 (32) [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}) (33) [ALGB] (1) Real motor.strayLoad.n.v (34) [ALGB] (1) final Real motor.thermalAmbient.Q_flowTotal = motor.thermalAmbient.Q_flowBrush + motor.thermalAmbient.Q_flowStrayLoad + motor.thermalAmbient.Q_flowArmature + motor.thermalAmbient.Q_flowCore + motor.thermalAmbient.Q_flowFriction + 0.0 (35) [ALGB] (1) Real Valve.V_flow = (-Valve.port_b.m_flow) / Modelica.Fluid.Utilities.regStep(-Valve.port_b.m_flow, ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.Valve.Medium.density(Valve.state_a), ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.Valve.Medium.density(Valve.state_b), Valve.m_flow_small) (36) [ALGB] (1) flow Real motor.friction.heatPort.Q_flow = -(-motor.friction.heatPort.Q_flow) (37) [ALGB] (1) Real motor.ra.n.v (38) [ALGB] (1) Real Valve.port_a_T = Modelica.Fluid.Utilities.regStep(-Valve.port_b.m_flow, ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.Valve.Medium.temperature(Valve.state_a), ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.Valve.Medium.temperature(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.Valve.Medium.setState_phX(99999.99999999999 * pump.medium.p_bar, Valve.port_a.h_outflow, {}, 0, 0)), Valve.m_flow_small) (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (39) [DER-] (1) Real $DER.motor.friction.phi (40) [ALGB] (1) flow Real motor.strayLoad.heatPort.Q_flow = -(-motor.strayLoad.heatPort.Q_flow) (41) [ALGB] (1) Real motor.strayLoad.w (42) [ALGB] (1) stream Real Valve.port_a.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (43) [ALGB] (1) Real pump.medium.sat.Tsat (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (44) [DISC] (1) Integer Sink.medium.state.phase (min = 0, max = 2) (45) [ALGB] (1) Real Valve.port_b.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (46) [ALGB] (1) Real motor.airGapDC.vai (47) [DER-] (1) Real $DER.motor.strayLoad.phi (48) [ALGB] (1) Real Sink.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (49) [ALGB] (1) Real Source.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (50) [ALGB] (1) Real pump.head = pump.dp_pump / (pump.g * pump.rho) (51) [ALGB] (1) Real motor.ra.R_actual (52) [ALGB] (1) final output Real motor.powerBalance.lossPowerPermanentMagnet = 0.0 (53) [ALGB] (1) Real motor.airGapDC.pin_an.v (54) [ALGB] (1) Real Source.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (55) [ALGB] (1) stream Real Valve.port_b.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (56) [ALGB] (1) flow Real motor.inertiaStator.flange_a.tau (57) [ALGB] (1) Real Sink.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - Sink.medium.T_degC)) (58) [ALGB] (1) Real stepVoltage.v (59) [ALGB] (1) final output Real motor.powerBalance.lossPowerStrayLoad = -motor.strayLoad.heatPort.Q_flow (60) [ALGB] (1) final input Real pump.monitoring.state_in.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (61) [ALGB] (1) Real motor.ie.v (62) [ALGB] (1) Real Source.medium.h (StateSelect = default) (63) [ALGB] (1) Real Sink.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (64) [ALGB] (1) final output Real motor.powerBalance.lossPowerBrush = -motor.brush.heatPort.Q_flow (65) [ALGB] (1) Real Source.medium.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0, StateSelect = default) (66) [ALGB] (1) Real Sink.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (67) [ALGB] (1) Real pump.dp_pump = 99999.99999999999 * pump.medium.p_bar - pump.port_a.p (68) [ALGB] (1) Real pump.V_flow_single (start = pump.m_flow_start / (pump.nParallel * pump.rho_nominal)) (69) [ALGB] (1) Real pump.Qb_flow (70) [ALGB] (1) flow Real ground.p.i (71) [ALGB] (1) Real $FUN_2 (72) [DER-] (1) Real $DER.motor.airGapDC.psi_e (73) [ALGB] (1) final input Real pump.monitoring.state_in.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (74) [ALGB] (1) Real motor.inertiaStator.a (75) [ALGB] (1) Real $FUN_1 (76) [ALGB] (1) final input Real pump.monitoring.state_in.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (77) [ALGB] (1) Real Valve.dp (start = Valve.dp_start) (78) [ALGB] (1) Real pump.eta (79) [DISC] (1) Integer pump.medium.phase (fixed = false, start = 1, min = 0, max = 2) (80) [ALGB] (1) flow Real motor.inertiaRotor.flange_b.tau (81) [ALGB] (1) Real[1] pump.heatTransfer.Ts = {ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.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}) (82) [ALGB] (1) Real motor.brush.i (83) [ALGB] (1) final input Real pump.monitoring.state_in.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (84) [ALGB] (1) protected Real motor.core.wLimit = noEvent(max(noEvent(abs(motor.core.w)), motor.core.coreParameters.wMin)) (85) [ALGB] (1) Real[1] pump.heatTransfer.Q_flows (86) [ALGB] (1) Real pump.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (87) [ALGB] (1) Real Valve.port_b_T = Modelica.Fluid.Utilities.regStep(Valve.port_b.m_flow, ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.Valve.Medium.temperature(Valve.state_b), ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.Valve.Medium.temperature(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.Valve.Medium.setState_phX(Valve.port_b.p, Valve.port_b.h_outflow, {}, 0, 0)), Valve.m_flow_small) (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (88) [ALGB] (1) Real pump.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - pump.medium.T_degC)) (89) [ALGB] (1) flow Real motor.core.heatPort.Q_flow = -(-motor.core.heatPort.Q_flow) (90) [ALGB] (1) Real motor.core.v (91) [ALGB] (1) final Real motor.core.w = motor.core.w (92) [ALGB] (1) final output Real motor.powerBalance.lossPowerFriction = -motor.friction.heatPort.Q_flow (93) [ALGB] (1) Real[1] Source.ports.p (start = {5e6 for $i1 in 1:1}, min = {611.657 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (94) [ALGB] (1) Real motor.friction.w (95) [DISC] (1) Integer pump.medium.state.phase (min = 0, max = 2) (96) [ALGB] (1) Real pump.Wb_flow (97) [ALGB] (1) flow Real motor.fixed.flange.tau (98) [DISC] (1) Boolean $SEV_9 (99) [DISC] (1) Boolean $SEV_8 (100) [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) (101) [DISC] (1) Boolean $SEV_7 (102) [ALGB] (1) Real pump.m (min = 0.0) (103) [DISC] (1) Boolean $SEV_6 (104) [DISC] (1) Boolean $SEV_5 (105) [ALGB] (1) Real pump.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (106) [DISC] (1) Boolean $SEV_4 (107) [DISC] (1) Boolean $SEV_3 (108) [DISC] (1) Boolean $SEV_2 (109) [ALGB] (1) Real pump.m_flow_single = pump.m_flow / pump.nParallel (110) [ALGB] (1) Real motor.tauElectrical = motor.tauElectrical (111) [ALGB] (1) Real pump.W_single (112) [ALGB] (1) Real pump.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (113) [ALGB] (1) protected Real Valve.minLimiter.y (114) [ALGB] (1) Real motor.ia = motor.ia (fixed = true, start = 0.0) (115) [ALGB] (1) final input Real pump.monitoring.state.d = pump.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (116) [ALGB] (1) Real pump.Hb_flow (117) [ALGB] (1) Real pump.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (118) [ALGB] (1) final Real motor.thermalAmbient.Q_flowBrush = motor.thermalAmbient.Q_flowBrush (119) [ALGB] (1) final input Real pump.monitoring.state.h = pump.medium.state.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (120) [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}) (121) [ALGB] (1) Real pump.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (122) [ALGB] (1) Real pump.U (123) [ALGB] (1) final input Real pump.monitoring.state.p = pump.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (124) [ALGB] (1) Real pump.N (start = pump.N_nominal) (125) [ALGB] (1) Real Sink.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (126) [ALGB] (1) Real pump.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (127) [ALGB] (1) Real motor.tauShaft = -(-motor.tauShaft) (128) [DER-] (1) Real $DER.motor.inertiaRotor.w (129) [ALGB] (1) protected Real Valve.state_b.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (130) [ALGB] (1) Real Sink.medium.h (StateSelect = default) (131) [ALGB] (1) Real Sink.medium.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0, StateSelect = default) (132) [ALGB] (1) protected Real Valve.state_b.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (133) [ALGB] (1) Real motor.airGapDC.vei (134) [ALGB] (1) final output Real motor.powerBalance.lossPowerTotal = motor.powerBalance.lossPowerBrush + motor.powerBalance.lossPowerStrayLoad + motor.powerBalance.lossPowerArmature + motor.powerBalance.lossPowerCore + motor.powerBalance.lossPowerFriction + motor.powerBalance.lossPowerPermanentMagnet (135) [ALGB] (1) Real motor.airGapDC.pin_ap.v (136) [ALGB] (1) protected Real Valve.state_b.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (137) [ALGB] (1) Real motor.la.v (138) [ALGB] (1) Real motor.ra.v (139) [ALGB] (1) Real pump.rho = pump.rho (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (140) [ALGB] (1) final Real motor.thermalAmbient.Q_flowFriction = motor.thermalAmbient.Q_flowFriction (141) [ALGB] (1) stream Real[1] Sink.ports.h_outflow (start = {1e5 for $i1 in 1:1}, min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {5e5 for $i1 in 1:1}) (142) [DER-] (1) flow Real $DER.motor.airGapDC.pin_an.i (143) [ALGB] (1) final output Real motor.powerBalance.lossPowerArmature = -motor.ra.heatPort.Q_flow (144) [ALGB] (1) final output Real motor.powerBalance.powerMechanical = motor.wMechanical * motor.tauShaft (145) [ALGB] (1) protected Real Valve.state_b.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (146) [ALGB] (1) final output Real motor.powerBalance.powerInertiaRotor = motor.inertiaRotor.a * motor.inertiaRotor.J * motor.inertiaRotor.w (147) [ALGB] (1) Real pump.port_a.p (start = pump.p_a_start, min = 611.657, max = 1e8, nominal = 1e6) (148) [ALGB] (1) Real motor.inertiaRotor.a (149) [ALGB] (1) Real motor.wMechanical = der(motor.phiMechanical) (start = 0.0) (150) [DISC] (1) Integer Source.medium.phase (fixed = false, start = 1, min = 0, max = 2) (151) [DISC] (1) Integer Source.medium.state.phase (min = 0, max = 2) (152) [ALGB] (1) flow Real motor.ra.heatPort.Q_flow = -(-motor.ra.heatPort.Q_flow) (153) [ALGB] (1) Real pump.V_flow (154) [ALGB] (1) Real pump.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * pump.medium.p_bar) (155) [ALGB] (1) Real[1] Sink.ports.p (start = {5e6 for $i1 in 1:1}, min = {611.657 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (156) [ALGB] (1) Real motor.va = stepVoltage.p.v - 0.0 (157) [ALGB] (1) flow Real[1] Source.ports.m_flow (min = {-1e60}, max = {1e60}) (158) [ALGB] (1) flow Real[1] pump.heatTransfer.heatPorts.Q_flow (159) [DER-] (1) parameter Real $DER.motor.fixed.phi0 (160) [ALGB] (1) Real Source.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (161) [DISC] (1) final input Integer pump.monitoring.state.phase = pump.medium.state.phase (min = 0, max = 2) (162) [ALGB] (1) protected Real Valve.state_a.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (163) [ALGB] (1) final Real motor.thermalAmbient.Q_flowStrayLoad = motor.thermalAmbient.Q_flowStrayLoad (164) [ALGB] (1) stream Real[1] Source.ports.h_outflow (start = {1e5 for $i1 in 1:1}, min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {5e5 for $i1 in 1:1}) (165) [ALGB] (1) Real Source.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - Source.medium.T_degC)) (166) [ALGB] (1) protected Real Valve.state_a.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (167) [ALGB] (1) final output Real motor.powerBalance.powerInertiaStator = motor.inertiaStator.a * motor.inertiaStator.J * motor.inertiaStator.w (168) [ALGB] (1) protected Real Valve.state_a.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (169) [ALGB] (1) Real Source.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (170) [ALGB] (1) flow Real Valve.port_b.m_flow (min = -1e5, max = 1e60) (171) [ALGB] (1) Real Sink.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) System Equations (162/170) **************************** (1) [SCAL] (1) motor.core.heatPort.Q_flow + motor.thermalAmbient.Q_flowCore = 0.0 ($RES_SIM_205) (2) [SCAL] (1) motor.inertiaRotor.w = $DER.pump.phi ($RES_SIM_80) (3) [SCAL] (1) motor.brush.heatPort.Q_flow + motor.thermalAmbient.Q_flowBrush = 0.0 ($RES_SIM_206) (4) [SCAL] (1) pump.medium.phase = pump.medium.state.phase ($RES_SIM_121) (5) [SCAL] (1) pump.rho = pump.medium.state.d ($RES_SIM_122) (6) [SCAL] (1) motor.ra.heatPort.Q_flow + motor.thermalAmbient.Q_flowArmature = 0.0 ($RES_SIM_208) (7) [SCAL] (1) -((-273.15) - pump.medium.T_degC) = pump.medium.state.T ($RES_SIM_123) (8) [SCAL] (1) -(motor.airGapDC.pin_an.i + motor.ia) = 0.0 ($RES_SIM_209) (9) [SCAL] (1) 99999.99999999999 * pump.medium.p_bar = pump.medium.state.p ($RES_SIM_124) (10) [SCAL] (1) Valve.dp = 99999.99999999999 * pump.medium.p_bar - Valve.port_b.p ($RES_SIM_85) (11) [SCAL] (1) Valve.port_b.h_outflow = pump.medium.state.h ($RES_SIM_125) (12) [SCAL] (1) pump.medium.u = Valve.port_b.h_outflow - (99999.99999999999 * pump.medium.p_bar) / pump.rho ($RES_SIM_127) (13) [SCAL] (1) pump.medium.sat.psat = 99999.99999999999 * pump.medium.p_bar ($RES_SIM_128) (14) [SCAL] (1) Valve.port_a.h_outflow = Sink.ports[1].h_outflow ($RES_SIM_89) (15) [SCAL] (1) pump.medium.sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(99999.99999999999 * pump.medium.p_bar) ($RES_SIM_129) (16) [SCAL] (1) $SEV_19 = (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_371) (17) [SCAL] (1) $SEV_20 = Valve.port_b.m_flow > Valve.m_flow_small ($RES_EVT_372) (18) [SCAL] (1) $SEV_21 = Valve.port_b.m_flow < (-Valve.m_flow_small) ($RES_EVT_373) (19) [SCAL] (1) $SEV_22 = Valve.m_flow_small > 0.0 ($RES_EVT_374) (20) [SCAL] (1) $SEV_23 = (-Valve.port_b.m_flow) > Valve.m_flow_small ($RES_EVT_375) (21) [SCAL] (1) $SEV_24 = (-Valve.port_b.m_flow) < (-Valve.m_flow_small) ($RES_EVT_376) (22) [SCAL] (1) motor.ie.v = -motor.airGapDC.pin_ep.v ($RES_SIM_10) (23) [SCAL] (1) (motor.ia + ground.p.i) - motor.brush.i = 0.0 ($RES_SIM_210) (24) [SCAL] (1) motor.friction.heatPort.Q_flow + motor.thermalAmbient.Q_flowFriction = 0.0 ($RES_SIM_213) (25) [SCAL] (1) motor.tauElectrical = -motor.airGapDC.psi_e * motor.airGapDC.turnsRatio * motor.airGapDC.pin_an.i ($RES_SIM_15) (26) [SCAL] (1) motor.airGapDC.vai = motor.airGapDC.psi_e * motor.airGapDC.turnsRatio * motor.core.w ($RES_SIM_16) (27) [SCAL] (1) -((-273.15) - pump.medium.T_degC) = Modelica.Media.Water.IF97_Utilities.T_props_ph(99999.99999999999 * pump.medium.p_bar, Valve.port_b.h_outflow, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * pump.medium.p_bar, Valve.port_b.h_outflow, pump.medium.phase, 0)) ($RES_SIM_130) (28) [SCAL] (1) Valve.port_b.m_flow + Sink.ports[1].m_flow = 0.0 ($RES_SIM_215) (29) [SCAL] (1) -Valve.port_b.m_flow = homotopy(Valve.Av * Valve.relativeFlowCoefficient * smooth(2, if $SEV_2 then (if $SEV_3 then sqrt(Valve.state_a.d) else 0.0) * sqrt(Valve.dp) else if $SEV_4 then -(if $SEV_5 then sqrt(Valve.state_b.d) else 0.0) * sqrt(abs(Valve.dp)) else if $SEV_6 then Modelica.Fluid.Utilities.regRoot2.regRoot2_utility(Valve.dp, Valve.dp_small, Valve.state_a.d, Valve.state_b.d, false, 1.0) else -Modelica.Fluid.Utilities.regRoot2.regRoot2_utility(-Valve.dp, Valve.dp_small, Valve.state_b.d, Valve.state_a.d, false, 1.0)), (Valve.dp * Valve.m_flow_nominal * Valve.relativeFlowCoefficient) / Valve.dp_nominal) ($RES_SIM_90) (30) [SCAL] (1) motor.core.w = $DER.pump.phi - $DER.motor.fixed.phi0 ($RES_SIM_17) (31) [SCAL] (1) pump.rho = Modelica.Media.Water.IF97_Utilities.rho_props_ph(99999.99999999999 * pump.medium.p_bar, Valve.port_b.h_outflow, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * pump.medium.p_bar, Valve.port_b.h_outflow, pump.medium.phase, 0)) ($RES_SIM_131) (32) [SCAL] (1) motor.airGapDC.vei = $DER.motor.airGapDC.psi_e ($RES_SIM_18) (33) [SCAL] (1) Valve.minLimiter.y = smooth(0, noEvent(if $SEV_7 then Valve.minLimiter.uMin else Valve.relativeFlowCoefficient)) ($RES_SIM_92) (34) [SCAL] (1) pump.medium.phase = if $SEV_13 then 1 else 2 ($RES_SIM_132) (35) [SCAL] (1) pump.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_218) (36) [SCAL] (1) Valve.relativeFlowCoefficient = valveOpening.offset + (if $TEV_1 then 0.0 else valveOpening.height) ($RES_SIM_93) (37) [SCAL] (1) pump.m_flow + Source.ports[1].m_flow = 0.0 ($RES_SIM_219) (38) [SCAL] (1) Sink.ports[1].p = Sink.p ($RES_SIM_134) (39) [SCAL] (1) 0.0 = pump.Qb_flow + pump.Hb_flow + pump.Wb_flow ($RES_SIM_95) (40) [SCAL] (1) Sink.ports[1].h_outflow = Sink.medium.h ($RES_SIM_135) (41) [SCAL] (1) pump.U = pump.m * pump.medium.u ($RES_SIM_96) (42) [SCAL] (1) Sink.medium.h = Modelica.Media.Water.IF97_Utilities.h_pT(Sink.p, Sink.T, 0) ($RES_SIM_136) (43) [SCAL] (1) pump.m = 0.0 ($RES_SIM_97) (44) [SCAL] (1) 0.0 = pump.m_flow + Valve.port_b.m_flow ($RES_SIM_98) (45) [SCAL] (1) motor.airGapDC.vei = motor.airGapDC.pin_ep.v ($RES_SIM_21) (46) [SCAL] (1) motor.airGapDC.vai = motor.airGapDC.pin_ap.v - motor.airGapDC.pin_an.v ($RES_SIM_24) (47) [SCAL] (1) motor.airGapDC.psi_e = motor.airGapDC.Le * motor.ie.I ($RES_SIM_25) (48) [SCAL] (1) pump.port_a.p = Source.ports[1].p ($RES_SIM_225) (49) [SCAL] (1) Valve.port_b.p = Sink.ports[1].p ($RES_SIM_227) (50) [ARRY] (1) pump.heatTransfer.Ts = {pump.heatTransfer.states.h} ($RES_BND_279) (51) [SCAL] (1) motor.tauShaft + motor.inertiaRotor.flange_b.tau = 0.0 ($RES_SIM_228) (52) [SCAL] (1) Sink.medium.phase = Sink.medium.state.phase ($RES_SIM_146) (53) [SCAL] (1) Sink.medium.d = Sink.medium.state.d ($RES_SIM_147) (54) [SCAL] (1) -((-273.15) - Sink.medium.T_degC) = Sink.medium.state.T ($RES_SIM_148) (55) [SCAL] (1) pump.dp_pump = 99999.99999999999 * pump.medium.p_bar - pump.port_a.p ($RES_BND_281) (56) [SCAL] (1) pump.head = pump.dp_pump / (pump.g * pump.rho) ($RES_BND_282) (57) [SCAL] (1) pump.m_flow_single = pump.m_flow / pump.nParallel ($RES_BND_284) (58) [SCAL] (1) pump.Wb_flow = pump.W_single * pump.nParallel ($RES_BND_285) (59) [SCAL] (1) 0.0 = stepVoltage.p.v - motor.strayLoad.n.v ($RES_SIM_36) (60) [SCAL] (1) Valve.V_flow = -Valve.port_b.m_flow / smooth(1, if $SEV_23 then Valve.state_a.d else if $SEV_24 then Valve.state_b.d else if $SEV_22 then 0.5 * (Valve.state_a.d + Valve.state_b.d) - 0.25 * (Valve.state_b.d - Valve.state_a.d) * ((-3.0) + (Valve.port_b.m_flow / (-Valve.m_flow_small)) ^ 2.0) * (Valve.port_b.m_flow / Valve.m_flow_small) else 0.5 * (Valve.state_a.d + Valve.state_b.d)) ($RES_BND_286) (61) [SCAL] (1) Sink.medium.h = Sink.medium.state.h ($RES_SIM_150) (62) [SCAL] (1) Valve.port_a_T = smooth(1, if $SEV_23 then Valve.state_a.T else if $SEV_24 then Modelica.Media.Water.IF97_Utilities.T_ph(99999.99999999999 * pump.medium.p_bar, Valve.port_a.h_outflow, 0, 0) else if $SEV_22 then 0.5 * (Valve.state_a.T + Modelica.Media.Water.IF97_Utilities.T_ph(99999.99999999999 * pump.medium.p_bar, Valve.port_a.h_outflow, 0, 0)) - 0.25 * (Modelica.Media.Water.IF97_Utilities.T_ph(99999.99999999999 * pump.medium.p_bar, Valve.port_a.h_outflow, 0, 0) - Valve.state_a.T) * ((-3.0) + (Valve.port_b.m_flow / (-Valve.m_flow_small)) ^ 2.0) * (Valve.port_b.m_flow / Valve.m_flow_small) else 0.5 * (Valve.state_a.T + Modelica.Media.Water.IF97_Utilities.T_ph(99999.99999999999 * pump.medium.p_bar, Valve.port_a.h_outflow, 0, 0))) ($RES_BND_287) (63) [SCAL] (1) Valve.port_b_T = smooth(1, if $SEV_20 then Valve.state_b.T else if $SEV_21 then Modelica.Media.Water.IF97_Utilities.T_ph(Valve.port_b.p, Valve.port_b.h_outflow, 0, 0) else if $SEV_22 then 0.25 * (Modelica.Media.Water.IF97_Utilities.T_ph(Valve.port_b.p, Valve.port_b.h_outflow, 0, 0) - Valve.state_b.T) * ((-3.0) + (Valve.port_b.m_flow / Valve.m_flow_small) ^ 2.0) * (Valve.port_b.m_flow / Valve.m_flow_small) + 0.5 * (Valve.state_b.T + Modelica.Media.Water.IF97_Utilities.T_ph(Valve.port_b.p, Valve.port_b.h_outflow, 0, 0)) else 0.5 * (Valve.state_b.T + Modelica.Media.Water.IF97_Utilities.T_ph(Valve.port_b.p, Valve.port_b.h_outflow, 0, 0))) ($RES_BND_288) (64) [SCAL] (1) motor.strayLoad.w = $DER.motor.strayLoad.phi ($RES_SIM_39) (65) [SCAL] (1) Sink.medium.u = Sink.medium.h - Sink.p / Sink.medium.d ($RES_SIM_152) (66) [SCAL] (1) Sink.medium.sat.psat = Sink.p ($RES_SIM_153) (67) [SCAL] (1) -((-273.15) - Sink.medium.T_degC) = Modelica.Media.Water.IF97_Utilities.T_props_ph(Sink.p, Sink.medium.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(Sink.p, Sink.medium.h, Sink.medium.phase, 0)) ($RES_SIM_155) (68) [SCAL] (1) Sink.medium.d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(Sink.p, Sink.medium.h, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(Sink.p, Sink.medium.h, Sink.medium.phase, 0)) ($RES_SIM_156) (69) [SCAL] (1) Sink.medium.phase = if $SEV_16 then 1 else 2 ($RES_SIM_157) (70) [SCAL] (1) Source.ports[1].p = Source.p ($RES_SIM_159) (71) [SCAL] (1) motor.strayLoad.phi = pump.phi - motor.fixed.phi0 ($RES_SIM_40) (72) [SCAL] (1) motor.phiMechanical = pump.phi - motor.fixed.phi0 ($RES_BND_290) (73) [SCAL] (1) -motor.strayLoad.heatPort.Q_flow = 0.0 ($RES_SIM_41) (74) [SCAL] (1) motor.wMechanical = $DER.motor.phiMechanical ($RES_BND_291) (75) [SCAL] (1) motor.powerBalance.lossPowerPermanentMagnet = 0.0 ($RES_BND_295) (76) [SCAL] (1) motor.core.v = motor.ra.n.v - motor.airGapDC.pin_an.v ($RES_SIM_46) (77) [SCAL] (1) Valve.state_a.h = Valve.port_b.h_outflow ($RES_SIM_329) (78) [SCAL] (1) motor.powerBalance.lossPowerBrush = -motor.brush.heatPort.Q_flow ($RES_BND_296) (79) [SCAL] (1) -motor.core.heatPort.Q_flow = 0.0 ($RES_SIM_47) (80) [SCAL] (1) Source.ports[1].h_outflow = Source.medium.h ($RES_SIM_160) (81) [SCAL] (1) motor.powerBalance.lossPowerFriction = -motor.friction.heatPort.Q_flow ($RES_BND_297) (82) [SCAL] (1) Source.medium.h = Modelica.Media.Water.IF97_Utilities.h_pT(Source.p, Source.T, 0) ($RES_SIM_161) (83) [SCAL] (1) motor.powerBalance.lossPowerStrayLoad = -motor.strayLoad.heatPort.Q_flow ($RES_BND_298) (84) [SCAL] (1) motor.powerBalance.lossPowerCore = -motor.core.heatPort.Q_flow ($RES_BND_299) (85) [SCAL] (1) $FUN_1 = abs(pump.V_flow_single_init) ($RES_$AUX_326) (86) [SCAL] (1) $FUN_2 = abs(motor.core.w) ($RES_$AUX_325) (87) [SCAL] (1) motor.powerBalance.lossPowerArmature = -motor.ra.heatPort.Q_flow ($RES_BND_300) (88) [SCAL] (1) motor.powerBalance.lossPowerTotal = motor.powerBalance.lossPowerBrush + motor.powerBalance.lossPowerStrayLoad + motor.powerBalance.lossPowerArmature + motor.powerBalance.lossPowerCore + motor.powerBalance.lossPowerFriction + motor.powerBalance.lossPowerPermanentMagnet ($RES_BND_301) (89) [SCAL] (1) motor.powerBalance.powerInertiaRotor = motor.inertiaRotor.a * motor.inertiaRotor.J * motor.inertiaRotor.w ($RES_BND_302) (90) [SCAL] (1) motor.powerBalance.powerInertiaStator = motor.inertiaStator.a * motor.inertiaStator.J * motor.inertiaStator.w ($RES_BND_303) (91) [SCAL] (1) motor.powerBalance.powerMechanical = motor.wMechanical * motor.tauShaft ($RES_BND_304) (92) [SCAL] (1) motor.powerBalance.powerArmature = motor.va * motor.ia ($RES_BND_305) (93) [SCAL] (1) motor.va = stepVoltage.p.v ($RES_BND_306) (94) [SCAL] (1) Valve.state_a.d = Modelica.Media.Water.IF97_Utilities.rho_ph(99999.99999999999 * pump.medium.p_bar, Valve.port_b.h_outflow, 0, 0) ($RES_SIM_330) (95) [SCAL] (1) Valve.state_a.T = Modelica.Media.Water.IF97_Utilities.T_ph(99999.99999999999 * pump.medium.p_bar, Valve.port_b.h_outflow, 0, 0) ($RES_SIM_331) (96) [SCAL] (1) Valve.state_a.p = 99999.99999999999 * pump.medium.p_bar ($RES_SIM_332) (97) [SCAL] (1) Valve.state_b.h = Sink.ports[1].h_outflow ($RES_SIM_334) (98) [SCAL] (1) 0.0 = motor.airGapDC.pin_an.v ($RES_SIM_52) (99) [SCAL] (1) Valve.state_b.d = Modelica.Media.Water.IF97_Utilities.rho_ph(Valve.port_b.p, Sink.ports[1].h_outflow, 0, 0) ($RES_SIM_335) (100) [SCAL] (1) -motor.brush.heatPort.Q_flow = 0.0 ($RES_SIM_53) (101) [SCAL] (1) Valve.state_b.T = Modelica.Media.Water.IF97_Utilities.T_ph(Valve.port_b.p, Sink.ports[1].h_outflow, 0, 0) ($RES_SIM_336) (102) [SCAL] (1) Valve.state_b.p = Valve.port_b.p ($RES_SIM_337) (103) [SCAL] (1) pump.monitoring.state_in.h = Source.ports[1].h_outflow ($RES_SIM_339) (104) [SCAL] (1) stepVoltage.v = stepVoltage.signalSource.offset + (if $TEV_0 then 0.0 else stepVoltage.signalSource.height) ($RES_SIM_6) (105) [SCAL] (1) motor.la.v = motor.ra.n.v - motor.airGapDC.pin_ap.v ($RES_SIM_57) (106) [SCAL] (1) motor.la.v = motor.la.L * (-$DER.motor.airGapDC.pin_an.i) ($RES_SIM_58) (107) [SCAL] (1) Source.medium.phase = Source.medium.state.phase ($RES_SIM_171) (108) [SCAL] (1) stepVoltage.v = stepVoltage.p.v ($RES_SIM_4) (109) [SCAL] (1) Source.medium.d = Source.medium.state.d ($RES_SIM_172) (110) [SCAL] (1) -((-273.15) - Source.medium.T_degC) = Source.medium.state.T ($RES_SIM_173) (111) [SCAL] (1) Source.medium.h = Source.medium.state.h ($RES_SIM_175) (112) [SCAL] (1) Source.medium.u = Source.medium.h - Source.p / Source.medium.d ($RES_SIM_177) (113) [SCAL] (1) Source.medium.sat.psat = Source.p ($RES_SIM_178) (114) [SCAL] (1) motor.core.wLimit = noEvent(max(noEvent($FUN_2), motor.core.coreParameters.wMin)) ($RES_BND_313) (115) [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_340) (116) [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_341) (117) [SCAL] (1) pump.monitoring.state_in.p = pump.port_a.p ($RES_SIM_342) (118) [SCAL] (1) motor.ra.v = motor.strayLoad.n.v - motor.ra.n.v ($RES_SIM_61) (119) [SCAL] (1) -motor.ra.heatPort.Q_flow = motor.ra.v * motor.ia ($RES_SIM_62) (120) [SCAL] (1) pump.Hb_flow = smooth(0, pump.m_flow * (if $SEV_8 then Source.ports[1].h_outflow else Valve.port_b.h_outflow)) + smooth(0, Valve.port_b.m_flow * (if $SEV_9 then Valve.port_a.h_outflow else Valve.port_b.h_outflow)) ($RES_SIM_102) (121) [SCAL] (1) motor.ra.v = motor.ra.R_actual * motor.ia ($RES_SIM_63) (122) [SCAL] (1) pump.Qb_flow = pump.heatTransfer.Q_flows[1] ($RES_SIM_103) (123) [SCAL] (1) motor.ra.R_actual = motor.ra.R * (1.0 + motor.ra.alpha * (motor.thermalAmbient.constTa.k - motor.ra.T_ref)) ($RES_SIM_64) (124) [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_105) (125) [SCAL] (1) pump.eta = homotopy(0.8, 0.8) ($RES_SIM_106) (126) [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_180) (127) [SCAL] (1) motor.friction.w = $DER.motor.friction.phi ($RES_SIM_68) (128) [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_181) (129) [SCAL] (1) pump.head = homotopy((pump.N / pump.N_nominal) ^ 2.0 * ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.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.TestWaterPumpDCMotor.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_10 then (10.0 * pump.delta_head_init) / pump.V_flow_single_init else 0.0))) ($RES_SIM_108) (130) [SCAL] (1) motor.friction.phi = pump.phi - motor.fixed.phi0 ($RES_SIM_69) (131) [SCAL] (1) Source.medium.phase = if $SEV_19 then 1 else 2 ($RES_SIM_182) (132) [SCAL] (1) pump.V_flow_single = pump.V_flow / pump.nParallel ($RES_SIM_109) (133) [SCAL] (1) motor.airGapDC.pin_an.i + motor.brush.i = 0.0 ($RES_SIM_185) (134) [SCAL] (1) motor.inertiaStator.flange_a.tau + motor.fixed.flange.tau + motor.tauElectrical = 0.0 ($RES_SIM_188) (135) [SCAL] (1) $TEV_0 = time < stepVoltage.signalSource.startTime ($RES_EVT_350) (136) [SCAL] (1) $TEV_1 = time < valveOpening.startTime ($RES_EVT_351) (137) [SCAL] (1) $SEV_2 = Valve.dp >= Valve.dp_small ($RES_EVT_354) (138) [SCAL] (1) $SEV_3 = Valve.state_a.d > 0.0 ($RES_EVT_355) (139) [SCAL] (1) $SEV_4 = Valve.dp <= (-Valve.dp_small) ($RES_EVT_356) (140) [SCAL] (1) motor.thermalAmbient.Q_flowTotal = motor.thermalAmbient.Q_flowBrush + motor.thermalAmbient.Q_flowStrayLoad + motor.thermalAmbient.Q_flowArmature + motor.thermalAmbient.Q_flowCore + motor.thermalAmbient.Q_flowFriction ($RES_BND_321) (141) [SCAL] (1) $SEV_5 = Valve.state_b.d > 0.0 ($RES_EVT_357) (142) [ARRY] (5) pump.heatTransfer.states = {pump.medium.state} ($RES_BND_322) (143) [SCAL] (1) $SEV_6 = Valve.state_a.d >= Valve.state_b.d ($RES_EVT_358) (144) [SCAL] (1) $SEV_7 = Valve.relativeFlowCoefficient < Valve.minLimiter.uMin ($RES_EVT_359) (145) [RECD] (5) pump.monitoring.state = pump.medium.state ($RES_BND_324) (146) [SCAL] (1) -motor.friction.heatPort.Q_flow = 0.0 ($RES_SIM_70) (147) [SCAL] (1) pump.V_flow = homotopy(pump.m_flow / pump.rho, pump.m_flow / pump.rho_nominal) ($RES_SIM_110) (148) [SCAL] (1) pump.W_single = (0.10471975511965977 * pump.N) * motor.tauShaft ($RES_SIM_111) (149) [SCAL] (1) motor.inertiaStator.J * motor.inertiaStator.a = motor.inertiaStator.flange_a.tau ($RES_SIM_73) (150) [SCAL] (1) 0.10471975511965977 * pump.N = $DER.pump.phi ($RES_SIM_113) (151) [SCAL] (1) motor.inertiaStator.a = $DER.motor.inertiaStator.w ($RES_SIM_74) (152) [SCAL] (1) motor.inertiaStator.w = $DER.motor.fixed.phi0 ($RES_SIM_75) (153) [ARRY] (1) pump.heatTransfer.Q_flows = pump.heatTransfer.heatPorts.Q_flow ($RES_SIM_115) (154) [ARRY] (1) pump.heatTransfer.Ts = pump.heatTransfer.heatPorts.T ($RES_SIM_116) (155) [SCAL] (1) motor.inertiaRotor.J * motor.inertiaRotor.a = motor.tauElectrical + motor.inertiaRotor.flange_b.tau ($RES_SIM_78) (156) [SCAL] (1) motor.inertiaRotor.a = $DER.motor.inertiaRotor.w ($RES_SIM_79) (157) [SCAL] (1) $SEV_8 = pump.m_flow > 0.0 ($RES_EVT_360) (158) [SCAL] (1) $SEV_9 = Valve.port_b.m_flow > 0.0 ($RES_EVT_361) (159) [SCAL] (1) $SEV_10 = $FUN_1 > 0.0 ($RES_EVT_362) (160) [SCAL] (1) $SEV_13 = (Valve.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 Valve.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_365) (161) [SCAL] (1) $SEV_16 = (Sink.medium.h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(Sink.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(Sink.medium.sat.psat)) or Sink.medium.h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(Sink.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(Sink.medium.sat.psat))) or Sink.p > 2.2064e7 ($RES_EVT_368) (162) [SCAL] (1) motor.strayLoad.heatPort.Q_flow + motor.thermalAmbient.Q_flowStrayLoad = 0.0 ($RES_SIM_203)