Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_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.ScrollWaterToWater_Static,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Static") translateModel(Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Static,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Static") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 104.2 kB / 16.37 MB, free: 6.312 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.001203/0.001204, allocations: 190.3 kB / 17.31 MB, free: 5.891 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.393/1.393, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.724/1.724, allocations: 292.3 MB / 0.5496 GB, free: 17.59 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.853e-05/2.868e-05, allocations: 2.281 kB / 0.6728 GB, free: 5.93 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Static): time 0.06678/0.06682, allocations: 69.94 MB / 0.7411 GB, free: 15.74 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.02354/0.09044, allocations: 14.29 MB / 0.7551 GB, free: 1.418 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003592/0.09407, allocations: 71.56 kB / 0.7552 GB, free: 1.348 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.003187/0.09728, allocations: 0.92 MB / 0.7561 GB, free: 432 kB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.009863/0.1072, allocations: 2.526 MB / 0.7585 GB, free: 13.89 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.007297/0.1145, allocations: 1.981 MB / 0.7605 GB, free: 11.92 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.008024/0.1225, allocations: 5.181 MB / 0.7655 GB, free: 6.73 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002809/0.1254, allocations: 1.744 MB / 0.7672 GB, free: 4.953 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004861/0.1302, allocations: 1.918 MB / 0.7691 GB, free: 3.031 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002566/0.1328, allocations: 1.335 MB / 0.7704 GB, free: 1.691 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0003033/0.1331, allocations: 199.9 kB / 0.7706 GB, free: 1.496 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005074/0.1382, allocations: 2.059 MB / 0.7726 GB, free: 15.43 MB / 0.6544 GB Notification: Performance of combineBinaries: time 0.002844/0.1411, allocations: 3.198 MB / 0.7757 GB, free: 12.2 MB / 0.6544 GB Notification: Performance of replaceArrayConstructors: time 0.001423/0.1425, allocations: 2.004 MB / 0.7777 GB, free: 10.18 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0007325/0.1432, allocations: 363.1 kB / 0.778 GB, free: 9.82 MB / 0.6544 GB Notification: Performance of FrontEnd: time 0.0005921/0.1438, allocations: 67.73 kB / 0.7781 GB, free: 9.754 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: 296 (270) * Number of variables: 296 (282) Notification: Performance of Bindings: time 0.008718/0.1526, allocations: 9.261 MB / 0.7871 GB, free: 196 kB / 0.6544 GB Notification: Performance of FunctionAlias: time 0.4228/0.5754, allocations: 0.8956 MB / 0.788 GB, free: 82.41 MB / 0.6544 GB Notification: Performance of Early Inline: time 0.004993/0.5805, allocations: 5.086 MB / 0.793 GB, free: 82.26 MB / 0.6544 GB Notification: Performance of simplify1: time 0.0003962/0.5809, allocations: 315.9 kB / 0.7933 GB, free: 82.26 MB / 0.6544 GB Notification: Performance of Alias: time 0.009471/0.5904, allocations: 8.037 MB / 0.8011 GB, free: 80.61 MB / 0.6544 GB Notification: Performance of simplify2: time 0.0006101/0.591, allocations: 220.3 kB / 0.8013 GB, free: 80.6 MB / 0.6544 GB Notification: Performance of Events: time 0.00144/0.5924, allocations: 0.927 MB / 0.8022 GB, free: 80.44 MB / 0.6544 GB Notification: Performance of Detect States: time 0.001198/0.5937, allocations: 0.9682 MB / 0.8032 GB, free: 80.35 MB / 0.6544 GB Notification: Performance of Partitioning: time 0.002255/0.5959, allocations: 1.455 MB / 0.8046 GB, free: 79.8 MB / 0.6544 GB Notification: Performance of Causalize: time 0.01066/0.6066, allocations: 8.655 MB / 0.8131 GB, free: 78.41 MB / 0.6544 GB Notification: Performance of After Index Reduction Inline: time 0.003699/0.6103, allocations: 3.188 MB / 0.8162 GB, free: 78.21 MB / 0.6544 GB Notification: Performance of Inline: time 0.008843/0.6192, allocations: 6.679 MB / 0.8227 GB, free: 75.84 MB / 0.6544 GB Notification: Performance of Partitioning: time 0.0004634/0.6197, allocations: 306.2 kB / 0.823 GB, free: 75.64 MB / 0.6544 GB Notification: Performance of Cleanup: time 0.0009293/0.6206, allocations: 0.6559 MB / 0.8236 GB, free: 75.25 MB / 0.6544 GB Notification: Performance of Causalize: time 0.02367/0.6443, allocations: 24.86 MB / 0.8479 GB, free: 64.46 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_23) [SCAL] (1) -heaPum.con.con.Q_flow = -((-heaPum.eva.con.Q_flow) + heaPum.com.P) ($RES_SIM_24) [SCAL] (1) -heaPum.eva.con.Q_flow = heaPum.com.m_flow * (heaPum.com.hEva - heaPum.com.hCon) ($RES_SIM_25) [SCAL] (1) heaPum.com.P = heaPum.com.PThe / heaPum.com.etaEle + heaPum.com.PLos ($RES_SIM_26) [SCAL] (1) heaPum.com.TSuc = heaPum.com.port_a.T + heaPum.com.dTSup ($RES_SIM_27) [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_28) [SCAL] (1) heaPum.com.k = Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Static.heaPum.com.ref.isentropicExponentVap_Tv(heaPum.com.TSuc, heaPum.com.vSuc) ($RES_SIM_29) [SCAL] (1) heaPum.com.m_flow = heaPum.com.v_norm * smooth(1, if $SEV_10 then heaPum.com.V_flow_nominal / heaPum.com.vSuc - heaPum.com.mLea_flow else if $SEV_11 then (1e-5 * heaPum.com.V_flow_nominal) / heaPum.com.vSuc else if $SEV_12 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_30) [SCAL] (1) heaPum.com.mLea_flow = heaPum.com.leaCoe * heaPum.com.PR ($RES_SIM_31) [SCAL] (1) heaPum.com.pDis = heaPum.com.pCon ($RES_SIM_32) [SCAL] (1) heaPum.com.pSuc = heaPum.com.pEva ($RES_SIM_33) else [SCAL] (1) heaPum.com.COP = 1.0 ($RES_SIM_34) [SCAL] (1) -heaPum.con.con.Q_flow = 0.0 ($RES_SIM_35) [SCAL] (1) -heaPum.eva.con.Q_flow = 0.0 ($RES_SIM_36) [SCAL] (1) heaPum.com.TSuc = heaPum.com.port_a.T ($RES_SIM_37) [SCAL] (1) heaPum.com.P = 0.0 ($RES_SIM_38) [SCAL] (1) heaPum.com.PThe = 0.0 ($RES_SIM_39) [SCAL] (1) heaPum.com.m_flow = 0.0 ($RES_SIM_40) [SCAL] (1) heaPum.com.mLea_flow = 0.0 ($RES_SIM_41) [SCAL] (1) heaPum.com.pDis = heaPum.com.pCon ($RES_SIM_42) [SCAL] (1) heaPum.com.pSuc = heaPum.com.pEva ($RES_SIM_43) [SCAL] (1) heaPum.com.k = 1.0 ($RES_SIM_44) end if; Error: Internal error NBInitialization.main failed to apply modules!