Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Static.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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Static,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Static") translateModel(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Static,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Static") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001106, allocations: 104.1 kB / 16.42 MB, free: 6.531 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.001101/0.001101, allocations: 186 kB / 17.35 MB, free: 5.727 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.172/1.172, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.203/1.203, allocations: 251.7 MB / 0.51 GB, free: 444 kB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.688e-05/1.689e-05, allocations: 6.078 kB / 0.7264 GB, free: 4.734 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Static): time 0.339/0.339, allocations: 69.91 MB / 0.7946 GB, free: 9.66 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01777/0.3569, allocations: 14.68 MB / 0.809 GB, free: 15.14 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002678/0.3596, allocations: 76.91 kB / 0.8091 GB, free: 15.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002152/0.3617, allocations: 0.925 MB / 0.81 GB, free: 14.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.006409/0.3682, allocations: 2.524 MB / 0.8124 GB, free: 13.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.004689/0.3729, allocations: 1.996 MB / 0.8144 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.00613/0.3791, allocations: 5.16 MB / 0.8194 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00204/0.3811, allocations: 1.732 MB / 0.8211 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003582/0.3847, allocations: 1.895 MB / 0.823 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001616/0.3864, allocations: 1.327 MB / 0.8243 GB, free: 6.383 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0002314/0.3866, allocations: 189.9 kB / 0.8244 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003998/0.3906, allocations: 2.111 MB / 0.8265 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of combineBinaries: time 0.002269/0.3929, allocations: 3.18 MB / 0.8296 GB, free: 3.059 MB / 0.6075 GB Notification: Performance of replaceArrayConstructors: time 0.001141/0.394, allocations: 2.003 MB / 0.8316 GB, free: 1.629 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0004394/0.3945, allocations: 360.9 kB / 0.8319 GB, free: 1.445 MB / 0.6075 GB Notification: Performance of FrontEnd: time 0.0003263/0.3948, allocations: 63.66 kB / 0.832 GB, free: 1.426 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 294 (269) * Number of variables: 294 (280) Notification: Performance of Bindings: time 0.006746/0.4016, allocations: 8.926 MB / 0.8407 GB, free: 10.88 MB / 0.6231 GB Notification: Performance of FunctionAlias: time 0.0009108/0.4025, allocations: 1.168 MB / 0.8418 GB, free: 10.03 MB / 0.6231 GB Notification: Performance of Early Inline: time 0.004165/0.4066, allocations: 4.944 MB / 0.8466 GB, free: 5.395 MB / 0.6231 GB Notification: Performance of simplify1: time 0.0002836/0.4069, allocations: 311.6 kB / 0.8469 GB, free: 5.09 MB / 0.6231 GB Notification: Performance of Alias: time 0.007364/0.4143, allocations: 7.98 MB / 0.8547 GB, free: 12.55 MB / 0.6387 GB Notification: Performance of simplify2: time 0.00021/0.4145, allocations: 223.7 kB / 0.8549 GB, free: 12.33 MB / 0.6387 GB Notification: Performance of Events: time 0.0008285/0.4154, allocations: 0.8392 MB / 0.8558 GB, free: 11.49 MB / 0.6387 GB Notification: Performance of Detect States: time 0.000769/0.4162, allocations: 0.9075 MB / 0.8567 GB, free: 10.55 MB / 0.6387 GB Notification: Performance of Partitioning: time 0.001228/0.4174, allocations: 1.377 MB / 0.858 GB, free: 8.98 MB / 0.6387 GB Notification: Performance of Causalize: time 0.00713/0.4245, allocations: 8.321 MB / 0.8661 GB, free: 0.8086 MB / 0.6387 GB Notification: Performance of After Index Reduction Inline: time 0.002617/0.4272, allocations: 2.992 MB / 0.869 GB, free: 13.78 MB / 0.6544 GB Notification: Performance of Inline: time 0.006014/0.4332, allocations: 6.608 MB / 0.8755 GB, free: 7.059 MB / 0.6544 GB Notification: Performance of Partitioning: time 0.0002947/0.4335, allocations: 300.5 kB / 0.8758 GB, free: 6.734 MB / 0.6544 GB Notification: Performance of Cleanup: time 0.0005308/0.434, allocations: 0.6203 MB / 0.8764 GB, free: 6.102 MB / 0.6544 GB Notification: Performance of Causalize: time 0.01928/0.4533, allocations: 23.91 MB / 0.8997 GB, free: 15.36 MB / 0.6856 GB Error: Internal error NBEquation.IfEquationBody.getResidualExp failed for: if heaPum.com.isOn then [SCAL] (1) -(-heaPum.con.con.Q_flow) = heaPum.com.P * heaPum.com.COP ($RES_SIM_60) [SCAL] (1) -heaPum.con.con.Q_flow = -((-heaPum.eva.con.Q_flow) + heaPum.com.P) ($RES_SIM_61) [SCAL] (1) -heaPum.eva.con.Q_flow = heaPum.com.m_flow * (heaPum.com.hEva - heaPum.com.hCon) ($RES_SIM_62) [SCAL] (1) heaPum.com.TSuc = heaPum.com.port_a.T + heaPum.com.dTSup ($RES_SIM_63) [SCAL] (1) heaPum.com.P = heaPum.com.PThe / heaPum.com.etaEle + heaPum.com.PLos ($RES_SIM_64) [SCAL] (1) heaPum.com.PThe = heaPum.com.vSuc * heaPum.com.pSuc * heaPum.com.m_flow * (heaPum.com.k / (heaPum.com.k - 1.0)) * (heaPum.com.PR ^ ((heaPum.com.k - 1.0) / heaPum.com.k) - 1.0) ($RES_SIM_65) [SCAL] (1) heaPum.com.m_flow = ((heaPum.com.pisDis * heaPum.com.pisDis_norm) / heaPum.com.vSuc) * ((heaPum.com.cleFac + 1.0) - heaPum.com.cleFac * heaPum.com.PR ^ (1.0 / heaPum.com.k)) ($RES_SIM_66) [SCAL] (1) heaPum.com.k = Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Static.heaPum.com.ref.isentropicExponentVap_Tv(heaPum.com.TSuc, heaPum.com.vSuc) ($RES_SIM_67) [SCAL] (1) heaPum.com.pDis = heaPum.com.pCon + heaPum.com.pDro ($RES_SIM_68) [SCAL] (1) heaPum.com.pSuc = smooth(1, if $SEV_16 then heaPum.com.pEva - heaPum.com.pDro else if $SEV_17 then heaPum.com.pCon - heaPum.com.pDro else 0.25 * ((heaPum.com.pDro + heaPum.com.pCon) - (heaPum.com.pEva + heaPum.com.pDro)) * ((-3.0) + (((heaPum.com.pDro + heaPum.com.pCon) - (heaPum.com.pEva + heaPum.com.pDro)) / 49261.0) ^ 2.0) * (2.030003451005867e-5 * ((heaPum.com.pCon + heaPum.com.pDro) - (heaPum.com.pDro + heaPum.com.pEva))) + 0.5 * ((heaPum.com.pEva + heaPum.com.pCon) - (heaPum.com.pDro + heaPum.com.pDro))) ($RES_SIM_69) else [SCAL] (1) heaPum.com.COP = 1.0 ($RES_SIM_70) [SCAL] (1) -heaPum.con.con.Q_flow = 0.0 ($RES_SIM_71) [SCAL] (1) -heaPum.eva.con.Q_flow = 0.0 ($RES_SIM_72) [SCAL] (1) heaPum.com.TSuc = heaPum.com.port_a.T ($RES_SIM_73) [SCAL] (1) heaPum.com.P = 0.0 ($RES_SIM_74) [SCAL] (1) heaPum.com.PThe = 0.0 ($RES_SIM_75) [SCAL] (1) heaPum.com.m_flow = 0.0 ($RES_SIM_76) [SCAL] (1) heaPum.com.pDis = heaPum.com.pCon ($RES_SIM_77) [SCAL] (1) heaPum.com.pSuc = heaPum.com.pEva ($RES_SIM_78) [SCAL] (1) heaPum.com.k = 1.0 ($RES_SIM_79) end if; Error: Internal error NBInitialization.main failed to apply modules!