Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Static") translateModel(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Static,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001247/0.001247, allocations: 100.3 kB / 16.38 MB, free: 6.438 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.001257/0.001257, allocations: 188.2 kB / 17.31 MB, free: 5.789 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.394/1.394, allocations: 205.1 MB / 223.2 MB, free: 12.12 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.744/1.744, allocations: 292.3 MB / 0.5496 GB, free: 17.62 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.211e-05/3.232e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.934 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Static): time 0.06928/0.06933, allocations: 69.91 MB / 0.7411 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.0226/0.09198, allocations: 14.38 MB / 0.7552 GB, free: 1.352 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004536/0.09657, allocations: 71.56 kB / 0.7552 GB, free: 1.281 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.00394/0.1005, allocations: 0.92 MB / 0.7561 GB, free: 364 kB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.01001/0.1107, allocations: 2.527 MB / 0.7586 GB, free: 13.82 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.005945/0.1166, allocations: 1.989 MB / 0.7605 GB, free: 11.85 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.00798/0.1246, allocations: 5.154 MB / 0.7656 GB, free: 6.68 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002888/0.1276, allocations: 1.751 MB / 0.7673 GB, free: 4.895 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005207/0.1328, allocations: 1.902 MB / 0.7692 GB, free: 2.992 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00299/0.1358, allocations: 1.334 MB / 0.7705 GB, free: 1.652 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0004038/0.1362, allocations: 192 kB / 0.7706 GB, free: 1.465 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005037/0.1412, allocations: 2.059 MB / 0.7726 GB, free: 15.4 MB / 0.6544 GB Notification: Performance of combineBinaries: time 0.002933/0.1442, allocations: 3.186 MB / 0.7758 GB, free: 12.18 MB / 0.6544 GB Notification: Performance of replaceArrayConstructors: time 0.001288/0.1455, allocations: 2.005 MB / 0.7777 GB, free: 10.16 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0007295/0.1462, allocations: 359 kB / 0.7781 GB, free: 9.805 MB / 0.6544 GB Notification: Performance of FrontEnd: time 0.0005853/0.1468, allocations: 71.69 kB / 0.7781 GB, free: 9.734 MB / 0.6544 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.008463/0.1553, allocations: 8.95 MB / 0.7869 GB, free: 496 kB / 0.6544 GB Notification: Performance of FunctionAlias: time 0.4314/0.5868, allocations: 1.163 MB / 0.788 GB, free: 82.33 MB / 0.6544 GB Notification: Performance of Early Inline: time 0.005028/0.5918, allocations: 4.954 MB / 0.7928 GB, free: 82.19 MB / 0.6544 GB Notification: Performance of simplify1: time 0.0004021/0.5923, allocations: 309.6 kB / 0.7931 GB, free: 82.19 MB / 0.6544 GB Notification: Performance of Alias: time 0.009126/0.6014, allocations: 7.979 MB / 0.8009 GB, free: 80.57 MB / 0.6544 GB Notification: Performance of simplify2: time 0.000562/0.602, allocations: 215 kB / 0.8011 GB, free: 80.56 MB / 0.6544 GB Notification: Performance of Events: time 0.001255/0.6033, allocations: 0.8669 MB / 0.802 GB, free: 80.43 MB / 0.6544 GB Notification: Performance of Detect States: time 0.001031/0.6043, allocations: 0.9411 MB / 0.8029 GB, free: 80.35 MB / 0.6544 GB Notification: Performance of Partitioning: time 0.001776/0.6061, allocations: 1.426 MB / 0.8043 GB, free: 79.81 MB / 0.6544 GB Notification: Performance of Causalize: time 0.01007/0.6162, allocations: 8.36 MB / 0.8125 GB, free: 78.46 MB / 0.6544 GB Notification: Performance of After Index Reduction Inline: time 0.004169/0.6204, allocations: 3.065 MB / 0.8154 GB, free: 78.25 MB / 0.6544 GB Notification: Performance of Inline: time 0.00906/0.6295, allocations: 6.459 MB / 0.8218 GB, free: 76.27 MB / 0.6544 GB Notification: Performance of Partitioning: time 0.000494/0.63, allocations: 306.2 kB / 0.822 GB, free: 76.07 MB / 0.6544 GB Notification: Performance of Cleanup: time 0.001076/0.6311, allocations: 0.6285 MB / 0.8227 GB, free: 75.7 MB / 0.6544 GB Notification: Performance of Causalize: time 0.02305/0.6541, allocations: 24.25 MB / 0.8463 GB, free: 65.12 MB / 0.6544 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_62) [SCAL] (1) -heaPum.con.con.Q_flow = -((-heaPum.eva.con.Q_flow) + heaPum.com.P) ($RES_SIM_63) [SCAL] (1) -heaPum.eva.con.Q_flow = heaPum.com.m_flow * (heaPum.com.hEva - heaPum.com.hCon) ($RES_SIM_64) [SCAL] (1) heaPum.com.TSuc = heaPum.com.port_a.T + heaPum.com.dTSup ($RES_SIM_65) [SCAL] (1) heaPum.com.P = heaPum.com.PThe / heaPum.com.etaEle + heaPum.com.PLos ($RES_SIM_66) [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_67) [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_68) [SCAL] (1) heaPum.com.k = Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Static.heaPum.com.ref.isentropicExponentVap_Tv(heaPum.com.TSuc, heaPum.com.vSuc) ($RES_SIM_69) [SCAL] (1) heaPum.com.pDis = heaPum.com.pCon + heaPum.com.pDro ($RES_SIM_70) [SCAL] (1) heaPum.com.pSuc = smooth(1, if $SEV_18 then heaPum.com.pEva - heaPum.com.pDro else if $SEV_19 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_71) else [SCAL] (1) heaPum.com.COP = 1.0 ($RES_SIM_72) [SCAL] (1) -heaPum.con.con.Q_flow = 0.0 ($RES_SIM_73) [SCAL] (1) -heaPum.eva.con.Q_flow = 0.0 ($RES_SIM_74) [SCAL] (1) heaPum.com.TSuc = heaPum.com.port_a.T ($RES_SIM_75) [SCAL] (1) heaPum.com.P = 0.0 ($RES_SIM_76) [SCAL] (1) heaPum.com.PThe = 0.0 ($RES_SIM_77) [SCAL] (1) heaPum.com.m_flow = 0.0 ($RES_SIM_78) [SCAL] (1) heaPum.com.pDis = heaPum.com.pCon ($RES_SIM_79) [SCAL] (1) heaPum.com.pSuc = heaPum.com.pEva ($RES_SIM_80) [SCAL] (1) heaPum.com.k = 1.0 ($RES_SIM_81) end if; Error: Internal error NBInitialization.main failed to apply modules!