Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatPumps.Calibration.ScrollWaterToWater.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildSysPro.IBPSA.Fluid.HeatPumps.Calibration.ScrollWaterToWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatPumps.Calibration.ScrollWaterToWater") translateModel(BuildSysPro.IBPSA.Fluid.HeatPumps.Calibration.ScrollWaterToWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatPumps.Calibration.ScrollWaterToWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 103.2 kB / 16.38 MB, free: 6.391 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.001632/0.001632, allocations: 193.5 kB / 17.32 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.9002/0.9002, allocations: 143 MB / 434.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.555e-05/3.579e-05, allocations: 5.797 kB / 0.5155 GB, free: 14.54 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.HeatPumps.Calibration.ScrollWaterToWater): time 0.4647/0.4648, allocations: 126.1 MB / 0.6387 GB, free: 10.47 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02627/0.4911, allocations: 15.43 MB / 0.6538 GB, free: 11.03 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004573/0.4957, allocations: 75.56 kB / 0.6538 GB, free: 10.96 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003729/0.4995, allocations: 0.9626 MB / 0.6548 GB, free: 9.988 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01004/0.5096, allocations: 2.615 MB / 0.6573 GB, free: 7.371 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006135/0.5157, allocations: 2.133 MB / 0.6594 GB, free: 5.273 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.008312/0.524, allocations: 5.367 MB / 0.6647 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003041/0.5271, allocations: 1.83 MB / 0.6664 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005011/0.5321, allocations: 1.965 MB / 0.6684 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002565/0.5347, allocations: 1.389 MB / 0.6697 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003727/0.5351, allocations: 196 kB / 0.6699 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004519/0.5396, allocations: 2.134 MB / 0.672 GB, free: 8.445 MB / 0.4981 GB Notification: Performance of combineBinaries: time 0.002834/0.5425, allocations: 3.376 MB / 0.6753 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of replaceArrayConstructors: time 0.001495/0.544, allocations: 2.13 MB / 0.6774 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000661/0.5447, allocations: 382.9 kB / 0.6777 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of FrontEnd: time 0.0005325/0.5452, allocations: 71.69 kB / 0.6778 GB, free: 2.441 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 312 (277) * Number of variables: 312 (292) Notification: Performance of Bindings: time 0.009204/0.5544, allocations: 9.81 MB / 0.6874 GB, free: 8.582 MB / 0.5137 GB Notification: Performance of FunctionAlias: time 0.0009319/0.5554, allocations: 0.942 MB / 0.6883 GB, free: 7.668 MB / 0.5137 GB Notification: Performance of Early Inline: time 0.005144/0.5605, allocations: 5.207 MB / 0.6934 GB, free: 2.414 MB / 0.5137 GB Notification: Performance of simplify1: time 0.0003894/0.5609, allocations: 311.6 kB / 0.6937 GB, free: 2.109 MB / 0.5137 GB Notification: Performance of Alias: time 0.009362/0.5703, allocations: 8.031 MB / 0.7015 GB, free: 9.57 MB / 0.5294 GB Notification: Performance of simplify2: time 0.0004139/0.5707, allocations: 223.7 kB / 0.7017 GB, free: 9.352 MB / 0.5294 GB Notification: Performance of Events: time 0.001187/0.5719, allocations: 0.943 MB / 0.7027 GB, free: 8.418 MB / 0.5294 GB Notification: Performance of Detect States: time 0.001044/0.573, allocations: 1.019 MB / 0.7037 GB, free: 7.375 MB / 0.5294 GB Notification: Performance of Partitioning: time 0.001693/0.5747, allocations: 1.523 MB / 0.7051 GB, free: 5.617 MB / 0.5294 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency splDat.u[1] could not be devided by the body size 4 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (4) {{splDat.u[1]}, {splDat.u[2]}, {splDat.u[3]}, {splDat.u[4]}} = {{splDat.y1[1]}, {splDat.y2[1]}, {splDat.y3[1]}, {splDat.y4[1]}} ($RES_SIM_168) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (172/195) **************************** (1) [ALGB] (1) stream Real[1] sin1.ports.h_outflow (min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (2) [ALGB] (1) final Real heaPum.con.vol.p = heaPum.con.vol.ports[1].p (3) [ALGB] (2) protected flow Real[2] heaPum.eva.vol.dynBal.ports.m_flow (min = {-1e5 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}) (4) [ALGB] (1) Real heaPum.com.pSuc (start = 1e5, min = 0.0, nominal = 1e5) (5) [ALGB] (1) Real heaPum.com.vSuc (start = 1e-4, min = 0.0) (6) [ALGB] (1) Real heaPum.sta_a1.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (7) [ALGB] (2) stream Real[2] heaPum.con.vol.ports.h_outflow (min = {-1e10 for $i1 in 1:2}, max = {1e10 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (8) [ALGB] (1) Real heaPum.com.port_a.T (start = 288.15, min = 0.0, nominal = 300.0) (9) [DISC] (1) Boolean $SEV_26 (10) [ALGB] (1) protected final Real heaPum.eva.vol.dynBal.medium.state.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (11) [ALGB] (1) Real heaPum.con.NTU = heaPum.con.UA / (heaPum.con.cp_default * BuildSysPro.IBPSA.Utilities.Math.Functions.smoothMax(abs(heaPum.m1_flow), heaPum.con.m_flow_small, heaPum.con.m_flow_small)) (min = 0.0) (12) [DISC] (1) Boolean $SEV_22 (13) [ALGB] (1) Real heaPum.con.port_b.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (14) [ALGB] (1) protected Real heaPum.state_a1_inflow.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (15) [ALGB] (1) Real[1] Sou.ports.p (start = {3e5}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (16) [ALGB] (1) Real heaPum.com.pDis (start = 1e6, min = 0.0, nominal = 1e5) (17) [ALGB] (1) Real heaPum.sta_b2.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (18) [ALGB] (2) protected final Real[2] heaPum.con.vol.dynBal.ports_H_flow (min = {-1e8 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1000.0 for $i1 in 1:2}) (19) [DISC] (1) Boolean $TEV_1 (20) [DISC] (1) Boolean heaPum.com.isOn (fixed = false) (21) [ALGB] (1) Real heaPum.com.PThe (22) [DISC] (1) Boolean $TEV_0 (23) [ALGB] (1) Real heaPum.com.mLea_flow (24) [ALGB] (1) Real loa.medium.T_degC = Modelica.Units.Conversions.to_degC(-((-273.15) - loa.medium.T_degC)) (25) [ALGB] (1) Real heaPum.sta_a1.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (26) [ALGB] (1) protected final Real heaPum.eva.vol.dynBal.medium.state.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (27) [ALGB] (1) Real heaPum.m1_flow = heaPum.m1_flow (min = -1e5, max = 1e5) (28) [ALGB] (1) stream Real heaPum.eva.preDro.port_b.h_outflow (start = 83680.0, min = -1e10, max = 1e10, nominal = 83680.0) (29) [ALGB] (1) Real heaPum.eva.eps = BuildSysPro.IBPSA.Utilities.Math.Functions.smoothMin(BuildSysPro.IBPSA.Fluid.HeatExchangers.BaseClasses.epsilon_ntuZ(heaPum.eva.NTU, 0.0, 6), 0.999, 1e-4) (min = 0.0) (30) [ALGB] (1) final Real heaPum.eva.vol.p = heaPum.eva.vol.ports[1].p (31) [DISC] (1) Boolean $SEV_15 (32) [DISC] (1) Boolean $SEV_14 (33) [ALGB] (2) stream Real[2] heaPum.eva.vol.ports.h_outflow (min = {-1e10 for $i1 in 1:2}, max = {1e10 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (34) [DISC] (1) Boolean $SEV_13 (35) [ALGB] (1) protected final Real heaPum.eva.vol.dynBal.medium.T_degC = Modelica.Units.Conversions.to_degC(-((-273.15) - heaPum.eva.vol.dynBal.medium.T_degC)) (36) [DISC] (1) Boolean $SEV_12 (37) [DISC] (1) Boolean $SEV_11 (38) [ALGB] (2) protected final Real[2] heaPum.eva.vol.dynBal.ports_H_flow (min = {-1e8 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1000.0 for $i1 in 1:2}) (39) [DISC] (1) Boolean $SEV_10 (40) [ALGB] (1) Real heaPum.sta_b1.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (41) [ALGB] (1) Real heaPum.com.hCon (42) [ALGB] (1) Real heaPum.port_a2.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (43) [ALGB] (1) protected Real heaPum.lim.y (44) [ALGB] (1) Real heaPum.com.pEva (start = 1e5, min = 0.0, nominal = 1e5) (45) [ALGB] (2) protected stream Real[2] heaPum.con.vol.dynBal.ports.h_outflow (min = {-1e10 for $i1 in 1:2}, max = {1e10 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (46) [ALGB] (1) stream Real[1] sin2.ports.h_outflow (min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (47) [ALGB] (2) protected flow Real[2] heaPum.con.vol.dynBal.ports.m_flow (min = {-1e5 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}) (48) [ALGB] (1) Real heaPum.eva.preDro.port_b.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (49) [DISS] (1) protected discrete Real calDat.nextTimeEvent (fixed = true, start = 0.0) (50) [ALGB] (1) flow Real[1] Sou.ports.m_flow (min = {-1e60}, max = {1e60}) (51) [ALGB] (1) protected Real heaPum.com.PR (start = 2.0, min = 0.0) (52) [ALGB] (1) flow Real heaPum.port_b2.m_flow (min = -1e5, max = 1e60) (53) [ALGB] (1) Real heaPum.con.preDro.port_b.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (54) [ALGB] (1) stream Real[1] Sou.ports.h_outflow (min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (55) [ALGB] (1) Real heaPum.sta_b1.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (56) [ALGB] (1) Real heaPum.eva.UAeff.y = BuildSysPro.IBPSA.Utilities.Math.Functions.smoothMax(heaPum.eva.UA, (heaPum.eva.cp_default * heaPum.eva.eps * abs(heaPum.m2_flow)) / (1.0 - heaPum.eva.eps), heaPum.eva.UA_small) (57) [ALGB] (1) stream Real heaPum.port_a1.h_outflow (start = 83680.0, min = -1e10, max = 1e10, nominal = 83680.0) (58) [ALGB] (1) Real heaPum.eva.NTU = heaPum.eva.UA / (heaPum.eva.cp_default * BuildSysPro.IBPSA.Utilities.Math.Functions.smoothMax(abs(heaPum.m2_flow), heaPum.eva.m_flow_small, heaPum.eva.m_flow_small)) (min = 0.0) (59) [ALGB] (1) protected Real heaPum.con.con.Q_flow (60) [ALGB] (1) Real heaPum.con.UAeff.y = BuildSysPro.IBPSA.Utilities.Math.Functions.smoothMax(heaPum.con.UA, (heaPum.con.cp_default * heaPum.con.eps * abs(heaPum.m1_flow)) / (1.0 - heaPum.con.eps), heaPum.con.UA_small) (61) [ALGB] (1) Real $FUN_9 (62) [ALGB] (1) Real heaPum.com.TSuc (start = 288.15, min = 0.0, nominal = 300.0) (63) [ALGB] (1) Real $FUN_8 (64) [ALGB] (1) Real $FUN_5 (65) [ALGB] (1) stream Real[1] loa.ports.h_outflow (min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (66) [ALGB] (1) Real heaPum.m2_flow = heaPum.m2_flow (min = -1e5, max = 1e5) (67) [ALGB] (1) Real $FUN_4 (68) [DISS] (1) protected discrete Real calDat.nextTimeEventScaled (fixed = true, start = 0.0) (69) [ALGB] (4) Real[4] $FUN_1 (70) [ALGB] (2) flow Real[2] heaPum.con.vol.ports.m_flow (min = {-1e5 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}) (71) [ALGB] (1) Real $FUN_21 (72) [ALGB] (1) Real $FUN_20 (73) [ALGB] (1) stream Real heaPum.port_a2.h_outflow (start = 83680.0, min = -1e10, max = 1e10, nominal = 83680.0) (74) [ALGB] (1) Real heaPum.com.m_flow (75) [ALGB] (1) Real heaPum.eva.port_b.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (76) [ALGB] (1) protected Real heaPum.com.PRInt (start = 2.0) (77) [ALGB] (1) protected final Real heaPum.eva.vol.dynBal.m (start = heaPum.eva.vol.V * heaPum.eva.vol.rho_start, min = 0.0, StateSelect = default) (78) [ALGB] (1) protected final Real heaPum.eva.vol.dynBal.medium.p_bar = Modelica.Units.Conversions.to_bar(99999.99999999999 * heaPum.eva.vol.dynBal.medium.p_bar) (79) [ALGB] (4) Real[4] calDat.y (80) [ALGB] (1) Real $FUN_19 (81) [ALGB] (1) Real loa.medium.state.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (82) [ALGB] (1) Real $FUN_18 (83) [ALGB] (1) Real Sou.medium.state.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (84) [ALGB] (2) protected Real[2] heaPum.con.vol.dynBal.ports.p (start = {3e5 for $ports1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e5 for $i1 in 1:2}) (85) [ALGB] (1) Real[1] sin2.ports.p (start = {3e5}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (86) [ALGB] (1) flow Real[1] loa.ports.m_flow (min = {-1e60}, max = {1e60}) (87) [ALGB] (1) protected Real heaPum.state_b2_inflow.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (88) [ALGB] (1) protected final Real heaPum.eva.vol.dynBal.U (start = BuildSysPro.IBPSA.Fluid.HeatPumps.Calibration.ScrollWaterToWater.heaPum.eva.vol.dynBal.Medium.specificInternalEnergy(BuildSysPro.IBPSA.Fluid.HeatPumps.Calibration.ScrollWaterToWater.heaPum.eva.vol.dynBal.Medium.setState_pTX(heaPum.eva.vol.dynBal.p_start, heaPum.eva.vol.dynBal.T_start, {})) * heaPum.eva.vol.dynBal.fluidVolume * heaPum.eva.vol.dynBal.rho_start + heaPum.eva.vol.dynBal.CSen * (heaPum.eva.vol.dynBal.T_start - 273.15), nominal = 1e5) (89) [ALGB] (1) protected Real heaPum.com.v_norm (90) [DISC] (1) Boolean $SEV_8 (91) [DISC] (1) Boolean $SEV_7 (92) [ALGB] (1) Real heaPum.com.pCon (start = 1e6, min = 0.0, nominal = 1e5) (93) [ALGB] (1) flow Real heaPum.con.vol.heatPort.Q_flow (94) [DISC] (1) Boolean $SEV_0 (95) [ALGB] (1) protected Real heaPum.state_a2_inflow.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (96) [ALGB] (1) protected final Real heaPum.con.vol.dynBal.m (start = heaPum.con.vol.V * heaPum.con.vol.rho_start, min = 0.0, StateSelect = default) (97) [ALGB] (1) Real loa.medium.state.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (98) [ALGB] (1) Real Sou.medium.state.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (99) [ALGB] (1) Real Sou.medium.T_degC = Modelica.Units.Conversions.to_degC(-((-273.15) - Sou.medium.T_degC)) (100) [ALGB] (1) protected Real heaPum.state_b2_inflow.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (101) [ALGB] (2) Real[2] heaPum.con.vol.ports.p (start = {3e5 for $ports1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e5 for $i1 in 1:2}) (102) [ALGB] (1) stream Real heaPum.con.preDro.port_b.h_outflow (start = 83680.0, min = -1e10, max = 1e10, nominal = 83680.0) (103) [ALGB] (1) Real[1] sin1.ports.p (start = {3e5}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (104) [ALGB] (1) Real Sou.m_flow_in (105) [ALGB] (1) Real heaPum.eva.dp = heaPum.port_a2.p - heaPum.eva.port_b.p (start = heaPum.eva._dp_start) (106) [ALGB] (1) Real[1] splDat.y4 (107) [ALGB] (1) flow Real heaPum.eva.vol.heatPort.Q_flow (108) [ALGB] (1) Real[1] splDat.y3 (109) [ALGB] (1) Real[1] splDat.y2 (110) [ALGB] (1) Real[1] splDat.y1 (111) [ALGB] (1) protected final Real heaPum.con.vol.dynBal.medium.T_degC = Modelica.Units.Conversions.to_degC(-((-273.15) - heaPum.con.vol.dynBal.medium.T_degC)) (112) [DISC] (1) Boolean $SEV_51 (113) [DISC] (1) Boolean $SEV_50 (114) [ALGB] (1) protected final Real heaPum.con.vol.dynBal.U (start = BuildSysPro.IBPSA.Fluid.HeatPumps.Calibration.ScrollWaterToWater.heaPum.con.vol.dynBal.Medium.specificInternalEnergy(BuildSysPro.IBPSA.Fluid.HeatPumps.Calibration.ScrollWaterToWater.heaPum.con.vol.dynBal.Medium.setState_pTX(heaPum.con.vol.dynBal.p_start, heaPum.con.vol.dynBal.T_start, {})) * heaPum.con.vol.dynBal.fluidVolume * heaPum.con.vol.dynBal.rho_start + heaPum.con.vol.dynBal.CSen * (heaPum.con.vol.dynBal.T_start - 273.15), nominal = 1e5) (115) [ALGB] (1) protected Real heaPum.state_a2_inflow.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (116) [ALGB] (1) Real Sou.medium.p_bar = Modelica.Units.Conversions.to_bar(99999.99999999999 * Sou.medium.p_bar) (117) [ALGB] (1) flow Real heaPum.port_b1.m_flow (min = -1e5, max = 1e60) (118) [ALGB] (1) stream Real heaPum.eva.port_b.h_outflow (start = heaPum.eva.h_outflow_start, min = -1e10, max = 1e10, nominal = 83680.0) (119) [ALGB] (1) Real heaPum.com.P (120) [ALGB] (1) Real heaPum.con.dp = heaPum.port_a1.p - heaPum.con.port_b.p (start = heaPum.con._dp_start) (121) [DISC] (1) Boolean $SEV_49 (122) [DISC] (1) Boolean $SEV_48 (123) [DISC] (1) Boolean $SEV_47 (124) [DISC] (1) Boolean $SEV_46 (125) [ALGB] (2) protected stream Real[2] heaPum.eva.vol.dynBal.ports.h_outflow (min = {-1e10 for $i1 in 1:2}, max = {1e10 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (126) [DISC] (1) Boolean $SEV_45 (127) [DISC] (1) Boolean $SEV_44 (128) [ALGB] (1) Real heaPum.sta_a2.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (129) [DISC] (1) Boolean $SEV_43 (130) [DISC] (1) Boolean $SEV_42 (131) [ALGB] (1) Real heaPum.com.port_b.T (start = 288.15, min = 0.0, nominal = 300.0) (132) [DISC] (1) Boolean $SEV_41 (133) [ALGB] (1) Real heaPum.com.COP (start = 5.0, min = 0.0) (134) [DISC] (1) Boolean $SEV_40 (135) [ALGB] (1) Real heaPum.dp2 = heaPum.port_a2.p - heaPum.eva.port_b.p (136) [ALGB] (1) Real heaPum.dp1 = heaPum.port_a1.p - heaPum.con.port_b.p (137) [ALGB] (1) protected Real heaPum.eva.con.Q_flow (138) [ALGB] (1) Real heaPum.eva.preDro.dp = heaPum.port_a2.p - heaPum.eva.preDro.port_b.p (start = heaPum.eva.preDro._dp_start, nominal = 1000.0) (139) [ALGB] (1) protected final Real heaPum.con.vol.dynBal.medium.p_bar = Modelica.Units.Conversions.to_bar(99999.99999999999 * heaPum.con.vol.dynBal.medium.p_bar) (140) [ALGB] (1) flow Real[1] sin2.ports.m_flow (min = {-1e60}, max = {1e60}) (141) [ALGB] (1) flow Real[1] sin1.ports.m_flow (min = {-1e60}, max = {1e60}) (142) [ALGB] (4) Real[4] splDat.u (143) [ALGB] (1) protected Real heaPum.com.k (start = 1.2) (144) [ALGB] (1) protected Real heaPum.con.con.dT (145) [ALGB] (1) protected Real heaPum.state_b1_inflow.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (146) [ALGB] (1) Real heaPum.con.eps = BuildSysPro.IBPSA.Utilities.Math.Functions.smoothMin(BuildSysPro.IBPSA.Fluid.HeatExchangers.BaseClasses.epsilon_ntuZ(heaPum.con.NTU, 0.0, 6), 0.999, 1e-4) (min = 0.0) (147) [ALGB] (1) Real heaPum.com.hEva (148) [DISC] (1) Boolean $SEV_39 (149) [ALGB] (1) Real heaPum.sta_a2.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (150) [DISC] (1) Boolean $SEV_38 (151) [ALGB] (1) protected final Real heaPum.con.vol.dynBal.medium.state.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (152) [DISC] (1) Boolean $SEV_37 (153) [DISC] (1) Boolean $SEV_36 (154) [ALGB] (1) Real loa.medium.p_bar = Modelica.Units.Conversions.to_bar(99999.99999999999 * loa.medium.p_bar) (155) [DISC] (1) Boolean $SEV_35 (156) [DISC] (1) Boolean $SEV_34 (157) [DISC] (1) Boolean $SEV_33 (158) [DISC] (1) Boolean $SEV_32 (159) [DISC] (1) Boolean $SEV_30 (160) [ALGB] (1) protected Real heaPum.state_a1_inflow.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (161) [ALGB] (1) stream Real heaPum.con.port_b.h_outflow (start = heaPum.con.h_outflow_start, min = -1e10, max = 1e10, nominal = 83680.0) (162) [ALGB] (2) Real[2] heaPum.eva.vol.ports.p (start = {3e5 for $ports1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e5 for $i1 in 1:2}) (163) [ALGB] (1) Real[1] loa.ports.p (start = {3e5}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (164) [ALGB] (1) Real heaPum.sta_b2.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (165) [ALGB] (1) Real heaPum.port_a1.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (166) [ALGB] (1) Real loa.m_flow_in (167) [ALGB] (1) protected Real heaPum.eva.con.dT (168) [ALGB] (1) protected Real heaPum.state_b1_inflow.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (169) [ALGB] (2) flow Real[2] heaPum.eva.vol.ports.m_flow (min = {-1e5 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}) (170) [ALGB] (2) protected Real[2] heaPum.eva.vol.dynBal.ports.p (start = {3e5 for $ports1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e5 for $i1 in 1:2}) (171) [ALGB] (1) Real heaPum.con.preDro.dp = heaPum.port_a1.p - heaPum.con.preDro.port_b.p (start = heaPum.con.preDro._dp_start, nominal = 1000.0) (172) [ALGB] (1) protected final Real heaPum.con.vol.dynBal.medium.state.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) System Equations (165/195) **************************** (1) [SCAL] (1) heaPum.state_a2_inflow.T = 273.15 + 2.390057361376673e-4 * Sou.ports[1].h_outflow ($RES_SIM_362) (2) [SCAL] (1) splDat.y1[1] = -((-273.15) - Sou.medium.T_degC) ($RES_SIM_204) (3) [SCAL] (1) heaPum.state_b1_inflow.p = heaPum.con.port_b.p ($RES_SIM_363) (4) [ARRY] (4) calDat.y = splDat.u ($RES_SIM_205) (5) [SCAL] (1) heaPum.eva.vol.dynBal.U = heaPum.eva.vol.dynBal.m * (4184.0 * ((-273.15) - ((-273.15) - heaPum.eva.vol.dynBal.medium.T_degC))) ($RES_SIM_80) (6) [SCAL] (1) heaPum.con.vol.dynBal.U = heaPum.con.vol.dynBal.m * (4184.0 * ((-273.15) - ((-273.15) - heaPum.con.vol.dynBal.medium.T_degC))) ($RES_SIM_120) (7) [SCAL] (1) heaPum.state_b1_inflow.T = 273.15 + 2.390057361376673e-4 * sin1.ports[1].h_outflow ($RES_SIM_364) (8) [SCAL] (1) heaPum.eva.vol.dynBal.m = heaPum.eva.vol.dynBal.fluidVolume * heaPum.eva.vol.dynBal.rho_start ($RES_SIM_81) (9) [SCAL] (1) heaPum.con.vol.dynBal.m = heaPum.con.vol.dynBal.fluidVolume * heaPum.con.vol.dynBal.rho_start ($RES_SIM_121) (10) [SCAL] (1) heaPum.state_a1_inflow.p = heaPum.port_a1.p ($RES_SIM_365) (11) [SCAL] (1) heaPum.state_a1_inflow.T = 273.15 + 2.390057361376673e-4 * loa.ports[1].h_outflow ($RES_SIM_366) (12) [SCAL] (1) heaPum.sta_b2.p = heaPum.eva.port_b.p ($RES_SIM_367) (13) [SCAL] (1) heaPum.sta_b2.T = 273.15 + 2.390057361376673e-4 * noEvent(if $SEV_51 then sin2.ports[1].h_outflow else heaPum.eva.port_b.h_outflow) ($RES_SIM_368) (14) [SCAL] (1) heaPum.sta_a2.p = heaPum.port_a2.p ($RES_SIM_369) (15) [SCAL] (1) heaPum.eva.vol.dynBal.medium.state.p = 99999.99999999999 * heaPum.eva.vol.dynBal.medium.p_bar ($RES_SIM_86) (16) [SCAL] (1) heaPum.con.vol.dynBal.medium.state.p = 99999.99999999999 * heaPum.con.vol.dynBal.medium.p_bar ($RES_SIM_126) (17) [SCAL] (1) heaPum.eva.vol.dynBal.medium.state.T = -((-273.15) - heaPum.eva.vol.dynBal.medium.T_degC) ($RES_SIM_87) (18) [SCAL] (1) heaPum.con.vol.dynBal.medium.state.T = -((-273.15) - heaPum.con.vol.dynBal.medium.T_degC) ($RES_SIM_127) (19) [SCAL] (1) $SEV_26 = abs(sum({abs(Sou.ports[1].m_flow)}) - abs(Sou.ports[1].m_flow)) <= 1e-60 ($RES_EVT_453) (20) [SCAL] (1) $SEV_30 = time >= $PRE.calDat.nextTimeEvent ($RES_EVT_457) (21) [SCAL] (1) $SEV_32 = heaPum.eva.UA - (heaPum.eva.cp_default * heaPum.eva.eps * $FUN_18) / (1.0 - heaPum.eva.eps) > heaPum.eva.UA_small ($RES_EVT_459) (22) [SCAL] (1) heaPum.lim.y = homotopy(smooth(0, if $SEV_7 then heaPum.lim.uMax else if $SEV_8 then heaPum.lim.uMin else isOn.k), isOn.k) ($RES_SIM_12) (23) [SCAL] (1) heaPum.sta_a2.T = 273.15 + 2.390057361376673e-4 * noEvent(if $SEV_50 then Sou.ports[1].h_outflow else heaPum.port_a2.h_outflow) ($RES_SIM_370) (24) [SCAL] (1) heaPum.sta_b1.p = heaPum.con.port_b.p ($RES_SIM_371) (25) [SCAL] (1) heaPum.sta_b1.T = 273.15 + 2.390057361376673e-4 * noEvent(if $SEV_49 then sin1.ports[1].h_outflow else heaPum.con.port_b.h_outflow) ($RES_SIM_372) (26) [SCAL] (1) loa.ports[1].p = 99999.99999999999 * loa.medium.p_bar ($RES_SIM_130) (27) [SCAL] (1) heaPum.sta_a1.p = heaPum.port_a1.p ($RES_SIM_373) (28) [SCAL] (1) loa.ports[1].h_outflow = 4184.0 * ((-273.15) - ((-273.15) - loa.medium.T_degC)) ($RES_SIM_131) (29) [SCAL] (1) heaPum.sta_a1.T = 273.15 + 2.390057361376673e-4 * noEvent(if $SEV_48 then loa.ports[1].h_outflow else heaPum.port_a1.h_outflow) ($RES_SIM_374) (30) [SCAL] (1) heaPum.con.con.Q_flow = heaPum.con.UAeff.y * heaPum.con.con.dT ($RES_SIM_92) (31) [SCAL] (1) heaPum.con.con.dT = heaPum.com.port_b.T - (273.15 + 2.390057361376673e-4 * (4184.0 * ((-273.15) - ((-273.15) - heaPum.con.vol.dynBal.medium.T_degC)))) ($RES_SIM_95) (32) [FOR-] (4) ($RES_$AUX_357) (32) [----] for $i1 in 1:4 loop (32) [----] [SCAL] (1) $FUN_1[$i1] = Modelica.Blocks.Tables.Internal.getTimeTableValueNoDer2(calDat.tableID, $i1, time, calDat.nextTimeEventScaled, $TEV_1) ($RES_$AUX_358) (32) [----] end for; (33) [SCAL] (1) -Sou.m_flow_in = sum(Sou.ports.m_flow) ($RES_$AUX_356) (34) [SCAL] (1) -loa.m_flow_in = sum(loa.ports.m_flow) ($RES_$AUX_355) (35) [SCAL] (1) $SEV_33 = heaPum.eva.UA - (heaPum.eva.cp_default * heaPum.eva.eps * $FUN_18) / (1.0 - heaPum.eva.eps) < (-heaPum.eva.UA_small) ($RES_EVT_460) (36) [SCAL] (1) $FUN_4 = semiLinear(heaPum.con.vol.dynBal.ports[1].m_flow, heaPum.con.preDro.port_b.h_outflow, heaPum.con.vol.dynBal.ports[1].h_outflow) ($RES_$AUX_354) (37) [SCAL] (1) $SEV_34 = heaPum.eva.UA_small > 0.0 ($RES_EVT_461) (38) [SCAL] (1) $FUN_5 = semiLinear(heaPum.con.vol.dynBal.ports[2].m_flow, sin1.ports[1].h_outflow, heaPum.con.vol.dynBal.ports[2].h_outflow) ($RES_$AUX_353) (39) [SCAL] (1) $SEV_35 = 0.999 - $FUN_19 > 1e-4 ($RES_EVT_462) (40) [SCAL] (1) 0.0 = sum(heaPum.con.vol.dynBal.ports.m_flow) ($RES_$AUX_352) (41) [SCAL] (1) $SEV_36 = 0.999 - $FUN_19 < (-1e-4) ($RES_EVT_463) (42) [SCAL] (1) -heaPum.con.vol.heatPort.Q_flow = sum(heaPum.con.vol.dynBal.ports_H_flow) ($RES_$AUX_351) (43) [SCAL] (1) $SEV_37 = $FUN_18 - heaPum.eva.m_flow_small > heaPum.eva.m_flow_small ($RES_EVT_464) (44) [SCAL] (1) $FUN_8 = semiLinear(heaPum.eva.vol.dynBal.ports[1].m_flow, heaPum.eva.preDro.port_b.h_outflow, heaPum.eva.vol.dynBal.ports[1].h_outflow) ($RES_$AUX_350) (45) [SCAL] (1) $SEV_38 = $FUN_18 - heaPum.eva.m_flow_small < (-heaPum.eva.m_flow_small) ($RES_EVT_465) (46) [SCAL] (1) $SEV_39 = heaPum.eva.m_flow_small > 0.0 ($RES_EVT_466) (47) [SCAL] (1) $SEV_40 = heaPum.con.UA - (heaPum.con.cp_default * heaPum.con.eps * $FUN_20) / (1.0 - heaPum.con.eps) > heaPum.con.UA_small ($RES_EVT_467) (48) [SCAL] (1) $SEV_41 = heaPum.con.UA - (heaPum.con.cp_default * heaPum.con.eps * $FUN_20) / (1.0 - heaPum.con.eps) < (-heaPum.con.UA_small) ($RES_EVT_468) (49) [SCAL] (1) $SEV_42 = heaPum.con.UA_small > 0.0 ($RES_EVT_469) (50) [SCAL] (1) heaPum.com.PR = max(heaPum.com.pDis / heaPum.com.pSuc, 0.0) ($RES_SIM_23) (51) [SCAL] (1) heaPum.com.isOn = $SEV_12 ($RES_SIM_24) (52) [SCAL] (1) heaPum.eva.preDro.port_b.p = heaPum.eva.vol.ports[1].p ($RES_SIM_223) (53) [-IF-] (11)if heaPum.com.isOn then (53) [----] [SCAL] (1) -(-heaPum.con.con.Q_flow) = heaPum.com.P * heaPum.com.COP ($RES_SIM_26) (53) [----] [SCAL] (1) -heaPum.con.con.Q_flow = -((-heaPum.eva.con.Q_flow) + heaPum.com.P) ($RES_SIM_27) (53) [----] [SCAL] (1) -heaPum.eva.con.Q_flow = heaPum.com.m_flow * (heaPum.com.hEva - heaPum.com.hCon) ($RES_SIM_28) (53) [----] [SCAL] (1) heaPum.com.P = heaPum.com.PThe / heaPum.com.etaEle + heaPum.com.PLos ($RES_SIM_29) (53) [----] [SCAL] (1) heaPum.com.TSuc = heaPum.com.port_a.T + heaPum.com.dTSup ($RES_SIM_30) (53) [----] [SCAL] (1) heaPum.com.PThe = heaPum.com.V_flow_nominal * heaPum.com.pSuc * ((heaPum.com.k * heaPum.com.v_norm) / (heaPum.com.k - 1.0)) * (((1.0 / heaPum.com.k) * heaPum.com.PRInt ^ ((heaPum.com.k - 1.0) / heaPum.com.k) + (heaPum.com.PR * ((heaPum.com.k - 1.0) / heaPum.com.k)) / heaPum.com.volRat) - 1.0) ($RES_SIM_31) (53) [----] [SCAL] (1) heaPum.com.k = BuildSysPro.IBPSA.Fluid.HeatPumps.Calibration.ScrollWaterToWater.heaPum.com.ref.isentropicExponentVap_Tv(heaPum.com.TSuc, heaPum.com.vSuc) ($RES_SIM_32) (53) [----] [SCAL] (1) heaPum.com.m_flow = heaPum.com.v_norm * smooth(1, if $SEV_13 then heaPum.com.V_flow_nominal / heaPum.com.vSuc - heaPum.com.mLea_flow else if $SEV_14 then (1e-5 * heaPum.com.V_flow_nominal) / heaPum.com.vSuc else if $SEV_15 then 0.25 * ((heaPum.com.mLea_flow + (1e-5 * heaPum.com.V_flow_nominal) / heaPum.com.vSuc) - heaPum.com.V_flow_nominal / heaPum.com.vSuc) * ((-3.0) + ((heaPum.com.V_flow_nominal / heaPum.com.vSuc - ((1e-5 * heaPum.com.V_flow_nominal) / heaPum.com.vSuc + heaPum.com.mLea_flow)) / ((1e-6 * heaPum.com.V_flow_nominal) / heaPum.com.vSuc)) ^ 2.0) * ((1e6 * heaPum.com.vSuc * (heaPum.com.V_flow_nominal / heaPum.com.vSuc - (heaPum.com.mLea_flow + (1e-5 * heaPum.com.V_flow_nominal) / heaPum.com.vSuc))) / heaPum.com.V_flow_nominal) + 0.5 * ((heaPum.com.V_flow_nominal / heaPum.com.vSuc + (1e-5 * heaPum.com.V_flow_nominal) / heaPum.com.vSuc) - heaPum.com.mLea_flow) else 0.5 * ((heaPum.com.V_flow_nominal / heaPum.com.vSuc + (1e-5 * heaPum.com.V_flow_nominal) / heaPum.com.vSuc) - heaPum.com.mLea_flow)) ($RES_SIM_33) (53) [----] [SCAL] (1) heaPum.com.mLea_flow = heaPum.com.leaCoe * heaPum.com.PR ($RES_SIM_34) (53) [----] [SCAL] (1) heaPum.com.pDis = heaPum.com.pCon ($RES_SIM_35) (53) [----] [SCAL] (1) heaPum.com.pSuc = heaPum.com.pEva ($RES_SIM_36) (53) [----] else (53) [----] [SCAL] (1) heaPum.com.COP = 1.0 ($RES_SIM_37) (53) [----] [SCAL] (1) -heaPum.con.con.Q_flow = 0.0 ($RES_SIM_38) (53) [----] [SCAL] (1) -heaPum.eva.con.Q_flow = 0.0 ($RES_SIM_39) (53) [----] [SCAL] (1) heaPum.com.TSuc = heaPum.com.port_a.T ($RES_SIM_40) (53) [----] [SCAL] (1) heaPum.com.P = 0.0 ($RES_SIM_41) (53) [----] [SCAL] (1) heaPum.com.PThe = 0.0 ($RES_SIM_42) (53) [----] [SCAL] (1) heaPum.com.m_flow = 0.0 ($RES_SIM_43) (53) [----] [SCAL] (1) heaPum.com.mLea_flow = 0.0 ($RES_SIM_44) (53) [----] [SCAL] (1) heaPum.com.pDis = heaPum.com.pCon ($RES_SIM_45) (53) [----] [SCAL] (1) heaPum.com.pSuc = heaPum.com.pEva ($RES_SIM_46) (53) [----] [SCAL] (1) heaPum.com.k = 1.0 ($RES_SIM_47) (53) [----] end if; (54) [SCAL] (1) loa.medium.state.p = 99999.99999999999 * loa.medium.p_bar ($RES_SIM_140) (55) [SCAL] (1) loa.medium.state.T = -((-273.15) - loa.medium.T_degC) ($RES_SIM_141) (56) [SCAL] (1) heaPum.eva.vol.ports[2].h_outflow = heaPum.eva.port_b.h_outflow ($RES_SIM_227) (57) [SCAL] (1) heaPum.eva.vol.ports[2].p = heaPum.eva.port_b.p ($RES_SIM_228) (58) [SCAL] (1) sin1.ports[1].h_outflow = 4184.0 * ((-273.15) + sin1.T) ($RES_SIM_145) (59) [SCAL] (1) $FUN_9 = semiLinear(heaPum.eva.vol.dynBal.ports[2].m_flow, sin2.ports[1].h_outflow, heaPum.eva.vol.dynBal.ports[2].h_outflow) ($RES_$AUX_349) (60) [SCAL] (1) sin1.ports[1].p = sin1.p ($RES_SIM_147) (61) [SCAL] (1) 0.0 = sum(heaPum.eva.vol.dynBal.ports.m_flow) ($RES_$AUX_348) (62) [SCAL] (1) -heaPum.eva.vol.heatPort.Q_flow = sum(heaPum.eva.vol.dynBal.ports_H_flow) ($RES_$AUX_347) (63) [SCAL] (1) Sou.ports[1].p = 99999.99999999999 * Sou.medium.p_bar ($RES_SIM_149) (64) [SCAL] (1) heaPum.com.v_norm = BuildSysPro.IBPSA.Utilities.Math.Functions.smoothLimit(heaPum.lim.y, 0.0, 1.0, 0.001) ($RES_$AUX_346) (65) [SCAL] (1) heaPum.com.vSuc = BuildSysPro.IBPSA.Fluid.HeatPumps.Calibration.ScrollWaterToWater.heaPum.com.ref.specificVolumeVap_pT(heaPum.com.pSuc, heaPum.com.TSuc) ($RES_$AUX_345) (66) [SCAL] (1) $SEV_43 = 0.999 - $FUN_21 > 1e-4 ($RES_EVT_470) (67) [SCAL] (1) heaPum.com.pCon = BuildSysPro.IBPSA.Fluid.HeatPumps.Calibration.ScrollWaterToWater.heaPum.com.ref.pressureSatVap_T(heaPum.com.port_b.T) ($RES_$AUX_344) (68) [SCAL] (1) $SEV_44 = 0.999 - $FUN_21 < (-1e-4) ($RES_EVT_471) (69) [SCAL] (1) heaPum.com.hCon = BuildSysPro.IBPSA.Fluid.HeatPumps.Calibration.ScrollWaterToWater.heaPum.com.ref.enthalpySatLiq_T(heaPum.com.port_b.T) ($RES_$AUX_343) (70) [SCAL] (1) $SEV_45 = $FUN_20 - heaPum.con.m_flow_small > heaPum.con.m_flow_small ($RES_EVT_472) (71) [SCAL] (1) heaPum.com.pEva = BuildSysPro.IBPSA.Fluid.HeatPumps.Calibration.ScrollWaterToWater.heaPum.com.ref.pressureSatVap_T(heaPum.com.port_a.T) ($RES_$AUX_342) (72) [SCAL] (1) $SEV_46 = $FUN_20 - heaPum.con.m_flow_small < (-heaPum.con.m_flow_small) ($RES_EVT_473) (73) [SCAL] (1) heaPum.com.hEva = BuildSysPro.IBPSA.Fluid.HeatPumps.Calibration.ScrollWaterToWater.heaPum.com.ref.enthalpySatVap_T(heaPum.com.port_a.T) ($RES_$AUX_341) (74) [SCAL] (1) $SEV_47 = heaPum.con.m_flow_small > 0.0 ($RES_EVT_474) (75) [SCAL] (1) $FUN_18 = abs(heaPum.m2_flow) ($RES_$AUX_340) (76) [SCAL] (1) $SEV_48 = heaPum.m1_flow > 0.0 ($RES_EVT_475) (77) [SCAL] (1) $SEV_49 = heaPum.port_b1.m_flow > 0.0 ($RES_EVT_476) (78) [SCAL] (1) $SEV_50 = heaPum.m2_flow > 0.0 ($RES_EVT_477) (79) [SCAL] (1) $SEV_51 = heaPum.port_b2.m_flow > 0.0 ($RES_EVT_478) (80) [SCAL] (1) Sou.ports[1].h_outflow = 4184.0 * ((-273.15) - ((-273.15) - Sou.medium.T_degC)) ($RES_SIM_150) (81) [SCAL] (1) $FUN_19 = BuildSysPro.IBPSA.Fluid.HeatExchangers.BaseClasses.epsilon_ntuZ(heaPum.eva.NTU, 0.0, 6) ($RES_$AUX_339) (82) [SCAL] (1) $FUN_20 = abs(heaPum.m1_flow) ($RES_$AUX_338) (83) [SCAL] (1) Sou.medium.state.p = 99999.99999999999 * Sou.medium.p_bar ($RES_SIM_159) (84) [SCAL] (1) $FUN_21 = BuildSysPro.IBPSA.Fluid.HeatExchangers.BaseClasses.epsilon_ntuZ(heaPum.con.NTU, 0.0, 6) ($RES_$AUX_337) (85) [SCAL] (1) heaPum.dp1 = heaPum.port_a1.p - heaPum.con.port_b.p ($RES_BND_294) (86) [SCAL] (1) heaPum.eva.vol.dynBal.ports[2].h_outflow = heaPum.eva.vol.ports[2].h_outflow ($RES_SIM_243) (87) [SCAL] (1) heaPum.eva.vol.dynBal.ports[1].h_outflow = heaPum.eva.vol.ports[1].h_outflow ($RES_SIM_244) (88) [SCAL] (1) heaPum.dp2 = heaPum.port_a2.p - heaPum.eva.port_b.p ($RES_BND_296) (89) [FOR-] (2) ($RES_SIM_245) (89) [----] for $i1 in 1:2 loop (89) [----] [SCAL] (1) heaPum.eva.vol.dynBal.ports[$i1].m_flow - heaPum.eva.vol.ports[$i1].m_flow = 0.0 ($RES_SIM_246) (89) [----] end for; (90) [SCAL] (1) Sou.medium.state.T = -((-273.15) - Sou.medium.T_degC) ($RES_SIM_160) (91) [SCAL] (1) heaPum.con.dp = heaPum.port_a1.p - heaPum.con.port_b.p ($RES_BND_298) (92) [ARRY] (2) heaPum.eva.vol.dynBal.ports.p = heaPum.eva.vol.ports.p ($RES_SIM_247) (93) [SCAL] (1) heaPum.com.PRInt = heaPum.com.volRat ^ heaPum.com.k ($RES_SIM_49) (94) [SCAL] (1) heaPum.con.preDro.port_b.p = heaPum.con.vol.ports[1].p ($RES_SIM_249) (95) [SCAL] (1) sin2.ports[1].h_outflow = 4184.0 * ((-273.15) + sin2.T) ($RES_SIM_164) (96) [SCAL] (1) sin2.ports[1].p = sin2.p ($RES_SIM_166) (97) [ARRY] (4) {{splDat.u[1]}, {splDat.u[2]}, {splDat.u[3]}, {splDat.u[4]}} = {{splDat.y1[1]}, {splDat.y2[1]}, {splDat.y3[1]}, {splDat.y4[1]}} ($RES_SIM_168) (98) [FOR-] (4) ($RES_SIM_169) (98) [----] for $i1 in 1:4 loop (98) [----] [SCAL] (1) calDat.y[$i1] = calDat.p_offset[$i1] + $FUN_1[$i1] ($RES_SIM_170) (98) [----] end for; (99) [SCAL] (1) heaPum.con.vol.p = heaPum.con.vol.ports[1].p ($RES_BND_300) (100) [SCAL] (1) heaPum.con.preDro.dp = heaPum.port_a1.p - heaPum.con.preDro.port_b.p ($RES_BND_309) (101) [SCAL] (1) heaPum.eva.con.Q_flow = heaPum.eva.UAeff.y * heaPum.eva.con.dT ($RES_SIM_52) (102) [SCAL] (1) heaPum.con.vol.ports[2].h_outflow = heaPum.con.port_b.h_outflow ($RES_SIM_253) (103) [SCAL] (1) heaPum.eva.con.dT = heaPum.com.port_a.T - (273.15 + 2.390057361376673e-4 * (4184.0 * ((-273.15) - ((-273.15) - heaPum.eva.vol.dynBal.medium.T_degC)))) ($RES_SIM_55) (104) [SCAL] (1) heaPum.con.vol.ports[2].p = heaPum.con.port_b.p ($RES_SIM_254) (105) [WHEN] (1)when {$SEV_30, initial()} then (105) [----] calDat.nextTimeEvent := if calDat.nextTimeEventScaled < 1e60 then calDat.nextTimeEventScaled else 1e60 (105) [----] end when; (106) [WHEN] (1)when {$SEV_30, initial()} then (106) [----] calDat.nextTimeEventScaled := Modelica.Blocks.Tables.Internal.getNextTimeEvent(calDat.tableID, time) (106) [----] end when; (107) [SCAL] (1) heaPum.eva.vol.heatPort.Q_flow - heaPum.eva.con.Q_flow = 0.0 ($RES_SIM_178) (108) [SCAL] (1) heaPum.eva.vol.ports[1].m_flow - heaPum.m2_flow = 0.0 ($RES_SIM_179) (109) [SCAL] (1) $TEV_0 = $PRE.heaPum.com.isOn ($RES_EVT_425) (110) [SCAL] (1) $TEV_1 = $PRE.calDat.nextTimeEventScaled ($RES_EVT_426) (111) [SCAL] (1) $SEV_0 = heaPum.lim.y > 0.01 ($RES_EVT_427) (112) [SCAL] (1) heaPum.con.NTU = heaPum.con.UA / (heaPum.con.cp_default * smooth(1, if $SEV_45 then $FUN_20 else if $SEV_46 then heaPum.con.m_flow_small else if $SEV_47 then 0.25 * (heaPum.con.m_flow_small - $FUN_20) * ((-3.0) + (($FUN_20 - heaPum.con.m_flow_small) / heaPum.con.m_flow_small) ^ 2.0) * (($FUN_20 - heaPum.con.m_flow_small) / heaPum.con.m_flow_small) + 0.5 * ($FUN_20 + heaPum.con.m_flow_small) else 0.5 * ($FUN_20 + heaPum.con.m_flow_small))) ($RES_BND_310) (113) [SCAL] (1) heaPum.con.eps = smooth(1, if $SEV_43 then $FUN_21 else if $SEV_44 then 0.999 else 0.25 * (0.999 - $FUN_21) * ((-3.0) + ((0.999 - $FUN_21) / 1e-4) ^ 2.0) * (1e4 * (0.999 - $FUN_21)) + 0.5 * (0.999 + $FUN_21)) ($RES_BND_311) (114) [SCAL] (1) heaPum.con.UAeff.y = smooth(1, if $SEV_40 then heaPum.con.UA else if $SEV_41 then (heaPum.con.cp_default * heaPum.con.eps * $FUN_20) / (1.0 - heaPum.con.eps) else if $SEV_42 then 0.25 * ((heaPum.con.cp_default * heaPum.con.eps * $FUN_20) / (1.0 - heaPum.con.eps) - heaPum.con.UA) * ((-3.0) + ((heaPum.con.UA - ($FUN_20 * heaPum.con.eps * heaPum.con.cp_default) / (1.0 - heaPum.con.eps)) / heaPum.con.UA_small) ^ 2.0) * ((heaPum.con.UA - (heaPum.con.cp_default * heaPum.con.eps * $FUN_20) / (1.0 - heaPum.con.eps)) / heaPum.con.UA_small) + 0.5 * (heaPum.con.UA + (heaPum.con.cp_default * heaPum.con.eps * $FUN_20) / (1.0 - heaPum.con.eps)) else 0.5 * (heaPum.con.UA + (heaPum.con.cp_default * heaPum.con.eps * $FUN_20) / (1.0 - heaPum.con.eps))) ($RES_BND_312) (115) [SCAL] (1) heaPum.eva.dp = heaPum.port_a2.p - heaPum.eva.port_b.p ($RES_BND_314) (116) [SCAL] (1) heaPum.eva.vol.p = heaPum.eva.vol.ports[1].p ($RES_BND_316) (117) [SCAL] (1) heaPum.eva.preDro.port_b.h_outflow = Sou.ports[1].h_outflow ($RES_SIM_60) (118) [SCAL] (1) heaPum.con.preDro.port_b.h_outflow = loa.ports[1].h_outflow ($RES_SIM_100) (119) [SCAL] (1) heaPum.port_a2.h_outflow = heaPum.eva.vol.ports[1].h_outflow ($RES_SIM_61) (120) [SCAL] (1) heaPum.port_a1.h_outflow = heaPum.con.vol.ports[1].h_outflow ($RES_SIM_101) (121) [SCAL] (1) heaPum.eva.preDro.dp = homotopy(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(heaPum.m2_flow, heaPum.eva.preDro.k, heaPum.eva.preDro.m_flow_turbulent), (1000.0 * heaPum.m2_flow) / heaPum.eva.preDro.m_flow_nominal_pos) ($RES_SIM_62) (122) [SCAL] (1) heaPum.con.preDro.dp = homotopy(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(heaPum.m1_flow, heaPum.con.preDro.k, heaPum.con.preDro.m_flow_turbulent), (1000.0 * heaPum.m1_flow) / heaPum.con.preDro.m_flow_nominal_pos) ($RES_SIM_102) (123) [FOR-] (2) ($RES_SIM_69) (123) [----] for $i1 in 1:2 loop (123) [----] [SCAL] (1) heaPum.eva.vol.dynBal.ports[$i1].p = 99999.99999999999 * heaPum.eva.vol.dynBal.medium.p_bar ($RES_SIM_70) (123) [----] end for; (124) [SCAL] (1) heaPum.eva.vol.ports[2].m_flow - heaPum.port_b2.m_flow = 0.0 ($RES_SIM_182) (125) [FOR-] (2) ($RES_SIM_109) (125) [----] for $i1 in 1:2 loop (125) [----] [SCAL] (1) heaPum.con.vol.dynBal.ports[$i1].p = 99999.99999999999 * heaPum.con.vol.dynBal.medium.p_bar ($RES_SIM_110) (125) [----] end for; (126) [SCAL] (1) heaPum.con.vol.dynBal.ports[2].h_outflow = heaPum.con.vol.ports[2].h_outflow ($RES_SIM_269) (127) [SCAL] (1) heaPum.con.vol.heatPort.Q_flow - heaPum.con.con.Q_flow = 0.0 ($RES_SIM_186) (128) [SCAL] (1) heaPum.con.vol.ports[1].m_flow - heaPum.m1_flow = 0.0 ($RES_SIM_187) (129) [SCAL] (1) $SEV_7 = isOn.k > heaPum.lim.uMax ($RES_EVT_434) (130) [SCAL] (1) $SEV_8 = isOn.k < heaPum.lim.uMin ($RES_EVT_435) (131) [SCAL] (1) $SEV_10 = heaPum.com.port_a.T > 173.15 and heaPum.com.port_a.T < 345.25 ($RES_EVT_437) (132) [SCAL] (1) $SEV_11 = heaPum.com.port_b.T > 173.15 and heaPum.com.port_b.T < 345.25 ($RES_EVT_438) (133) [SCAL] (1) $SEV_12 = not $PRE.heaPum.com.isOn and heaPum.lim.y > 0.01 or $PRE.heaPum.com.isOn and heaPum.lim.y >= 0.005 ($RES_EVT_439) (134) [SCAL] (1) heaPum.eva.preDro.dp = heaPum.port_a2.p - heaPum.eva.preDro.port_b.p ($RES_BND_325) (135) [SCAL] (1) heaPum.eva.NTU = heaPum.eva.UA / (heaPum.eva.cp_default * smooth(1, if $SEV_37 then $FUN_18 else if $SEV_38 then heaPum.eva.m_flow_small else if $SEV_39 then 0.25 * (heaPum.eva.m_flow_small - $FUN_18) * ((-3.0) + (($FUN_18 - heaPum.eva.m_flow_small) / heaPum.eva.m_flow_small) ^ 2.0) * (($FUN_18 - heaPum.eva.m_flow_small) / heaPum.eva.m_flow_small) + 0.5 * ($FUN_18 + heaPum.eva.m_flow_small) else 0.5 * ($FUN_18 + heaPum.eva.m_flow_small))) ($RES_BND_326) (136) [SCAL] (1) heaPum.eva.eps = smooth(1, if $SEV_35 then $FUN_19 else if $SEV_36 then 0.999 else 0.25 * (0.999 - $FUN_19) * ((-3.0) + ((0.999 - $FUN_19) / 1e-4) ^ 2.0) * (1e4 * (0.999 - $FUN_19)) + 0.5 * (0.999 + $FUN_19)) ($RES_BND_327) (137) [SCAL] (1) heaPum.eva.UAeff.y = smooth(1, if $SEV_32 then heaPum.eva.UA else if $SEV_33 then (heaPum.eva.cp_default * heaPum.eva.eps * $FUN_18) / (1.0 - heaPum.eva.eps) else if $SEV_34 then 0.25 * ((heaPum.eva.cp_default * heaPum.eva.eps * $FUN_18) / (1.0 - heaPum.eva.eps) - heaPum.eva.UA) * ((-3.0) + ((heaPum.eva.UA - ($FUN_18 * heaPum.eva.eps * heaPum.eva.cp_default) / (1.0 - heaPum.eva.eps)) / heaPum.eva.UA_small) ^ 2.0) * ((heaPum.eva.UA - (heaPum.eva.cp_default * heaPum.eva.eps * $FUN_18) / (1.0 - heaPum.eva.eps)) / heaPum.eva.UA_small) + 0.5 * (heaPum.eva.UA + (heaPum.eva.cp_default * heaPum.eva.eps * $FUN_18) / (1.0 - heaPum.eva.eps)) else 0.5 * (heaPum.eva.UA + (heaPum.eva.cp_default * heaPum.eva.eps * $FUN_18) / (1.0 - heaPum.eva.eps))) ($RES_BND_328) (138) [FOR-] (2) ($RES_SIM_71) (138) [----] for $i1 in 1:2 loop (138) [----] [SCAL] (1) heaPum.eva.vol.dynBal.ports[$i1].h_outflow = 4184.0 * ((-273.15) - ((-273.15) - heaPum.eva.vol.dynBal.medium.T_degC)) ($RES_SIM_72) (138) [----] end for; (139) [FOR-] (2) ($RES_SIM_111) (139) [----] for $i1 in 1:2 loop (139) [----] [SCAL] (1) heaPum.con.vol.dynBal.ports[$i1].h_outflow = 4184.0 * ((-273.15) - ((-273.15) - heaPum.con.vol.dynBal.medium.T_degC)) ($RES_SIM_112) (139) [----] end for; (140) [SCAL] (1) heaPum.con.vol.dynBal.ports[1].h_outflow = heaPum.con.vol.ports[1].h_outflow ($RES_SIM_270) (141) [FOR-] (2) ($RES_SIM_271) (141) [----] for $i1 in 1:2 loop (141) [----] [SCAL] (1) heaPum.con.vol.dynBal.ports[$i1].m_flow - heaPum.con.vol.ports[$i1].m_flow = 0.0 ($RES_SIM_272) (141) [----] end for; (142) [ARRY] (2) heaPum.con.vol.dynBal.ports.p = heaPum.con.vol.ports.p ($RES_SIM_273) (143) [SCAL] (1) heaPum.state_b2_inflow.p = heaPum.eva.port_b.p ($RES_SIM_359) (144) [SCAL] (1) heaPum.eva.vol.dynBal.ports_H_flow[2] = $FUN_9 ($RES_SIM_77) (145) [SCAL] (1) heaPum.con.vol.ports[2].m_flow - heaPum.port_b1.m_flow = 0.0 ($RES_SIM_190) (146) [SCAL] (1) heaPum.con.vol.dynBal.ports_H_flow[2] = $FUN_5 ($RES_SIM_117) (147) [SCAL] (1) heaPum.eva.vol.dynBal.ports_H_flow[1] = $FUN_8 ($RES_SIM_78) (148) [SCAL] (1) heaPum.con.vol.dynBal.ports_H_flow[1] = $FUN_4 ($RES_SIM_118) (149) [SCAL] (1) splDat.y2[1] = -((-273.15) - loa.medium.T_degC) ($RES_SIM_193) (150) [SCAL] (1) heaPum.port_b1.m_flow + sin1.ports[1].m_flow = 0.0 ($RES_SIM_194) (151) [SCAL] (1) $SEV_13 = heaPum.com.V_flow_nominal / heaPum.com.vSuc - (heaPum.com.mLea_flow + (1e-5 * heaPum.com.V_flow_nominal) / heaPum.com.vSuc) > (1e-6 * heaPum.com.V_flow_nominal) / heaPum.com.vSuc ($RES_EVT_440) (152) [SCAL] (1) sin1.ports[1].p = heaPum.con.port_b.p ($RES_SIM_195) (153) [SCAL] (1) $SEV_14 = heaPum.com.V_flow_nominal / heaPum.com.vSuc - (heaPum.com.mLea_flow + (1e-5 * heaPum.com.V_flow_nominal) / heaPum.com.vSuc) < (-(1e-6 * heaPum.com.V_flow_nominal) / heaPum.com.vSuc) ($RES_EVT_441) (154) [SCAL] (1) heaPum.m2_flow + Sou.ports[1].m_flow = 0.0 ($RES_SIM_196) (155) [SCAL] (1) $SEV_15 = (1e-6 * heaPum.com.V_flow_nominal) / heaPum.com.vSuc > 0.0 ($RES_EVT_442) (156) [SCAL] (1) Sou.ports[1].p = heaPum.port_a2.p ($RES_SIM_197) (157) [SCAL] (1) heaPum.port_b2.m_flow + sin2.ports[1].m_flow = 0.0 ($RES_SIM_198) (158) [SCAL] (1) sin2.ports[1].p = heaPum.eva.port_b.p ($RES_SIM_199) (159) [SCAL] (1) $SEV_22 = abs(sum({abs(loa.ports[1].m_flow)}) - abs(loa.ports[1].m_flow)) <= 1e-60 ($RES_EVT_449) (160) [SCAL] (1) heaPum.m1_flow + loa.ports[1].m_flow = 0.0 ($RES_SIM_200) (161) [SCAL] (1) loa.ports[1].p = heaPum.port_a1.p ($RES_SIM_201) (162) [SCAL] (1) heaPum.state_b2_inflow.T = 273.15 + 2.390057361376673e-4 * sin2.ports[1].h_outflow ($RES_SIM_360) (163) [SCAL] (1) splDat.y4[1] = loa.m_flow_in ($RES_SIM_202) (164) [SCAL] (1) heaPum.state_a2_inflow.p = heaPum.port_a2.p ($RES_SIM_361) (165) [SCAL] (1) splDat.y3[1] = Sou.m_flow_in ($RES_SIM_203)