Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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(Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|com.pDis|com.pSuc|com.P|heaFloEva.Q_flow|heaFloCon.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor") translateModel(Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|com.pDis|com.pSuc|com.P|heaFloEva.Q_flow|heaFloCon.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 114.8 kB / 16.43 MB, free: 6.504 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.001067/0.001067, allocations: 187.2 kB / 17.36 MB, free: 5.715 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.157/1.157, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.199/2.199, allocations: 461.9 MB / 0.7354 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.621e-05/1.62e-05, allocations: 2.281 kB / 1.055 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor): time 0.002527/0.002551, allocations: 2.04 MB / 1.057 GB, free: 5.691 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002117/0.00468, allocations: 1.659 MB / 1.058 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.369e-05/0.004765, allocations: 4 kB / 1.058 GB, free: 4.023 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.782e-05/0.004828, allocations: 15.8 kB / 1.058 GB, free: 4.008 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001011/0.004934, allocations: 51.55 kB / 1.058 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009417/0.00589, allocations: 358.8 kB / 1.059 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000238/0.006138, allocations: 239.1 kB / 1.059 GB, free: 3.371 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.006274, allocations: 49.45 kB / 1.059 GB, free: 3.32 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.00639, allocations: 87.7 kB / 1.059 GB, free: 3.234 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001242/0.00652, allocations: 83.69 kB / 1.059 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.806e-05/0.006554, allocations: 16 kB / 1.059 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006573/0.00722, allocations: 415.5 kB / 1.06 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of combineBinaries: time 0.0001731/0.007403, allocations: 253.5 kB / 1.06 GB, free: 2.48 MB / 0.8262 GB Notification: Performance of replaceArrayConstructors: time 6.436e-05/0.007475, allocations: 138 kB / 1.06 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.946e-05/0.007509, allocations: 27.94 kB / 1.06 GB, free: 2.316 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.254e-05/0.007536, allocations: 0 / 1.06 GB, free: 2.316 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 (27) * Number of variables: 36 (36) Notification: Performance of Bindings: time 0.0006798/0.008222, allocations: 0.8372 MB / 1.061 GB, free: 1.375 MB / 0.8262 GB Notification: Performance of FunctionAlias: time 0.0001061/0.008333, allocations: 72.67 kB / 1.061 GB, free: 1.312 MB / 0.8262 GB Notification: Performance of Early Inline: time 0.000547/0.008887, allocations: 0.6466 MB / 1.061 GB, free: 0.6406 MB / 0.8262 GB Notification: Performance of simplify1: time 2.663e-05/0.008923, allocations: 27.97 kB / 1.061 GB, free: 0.6133 MB / 0.8262 GB Notification: Performance of Alias: time 0.001001/0.009929, allocations: 0.937 MB / 1.062 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of simplify2: time 1.422e-05/0.009953, allocations: 7.984 kB / 1.062 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of Events: time 0.0001541/0.01011, allocations: 112.8 kB / 1.062 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of Detect States: time 0.0001366/0.01026, allocations: 142.5 kB / 1.063 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of Partitioning: time 0.0001644/0.01043, allocations: 177 kB / 1.063 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of Causalize: time 0.0005952/0.01103, allocations: 0.5996 MB / 1.063 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of After Index Reduction Inline: time 0.0003641/0.0114, allocations: 472.5 kB / 1.064 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of Inline: time 0.0006706/0.01208, allocations: 0.854 MB / 1.065 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of Partitioning: time 3.293e-05/0.01212, allocations: 33.25 kB / 1.065 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of Cleanup: time 3.337e-05/0.01216, allocations: 33.72 kB / 1.065 GB, free: 13 MB / 0.8419 GB Notification: Performance of Causalize: time 0.0008212/0.01299, allocations: 0.8145 MB / 1.066 GB, free: 12.18 MB / 0.8419 GB Error: Internal error NBEquation.IfEquationBody.getResidualExp failed for: if com.isOn then [SCAL] (1) -(-heaFloCon.Q_flow) = com.P * com.COP ($RES_SIM_20) [SCAL] (1) -heaFloCon.Q_flow = -(heaFloEva.Q_flow + com.P) ($RES_SIM_21) [SCAL] (1) heaFloEva.Q_flow = com.m_flow * (com.hEva - com.hCon) ($RES_SIM_22) [SCAL] (1) com.TSuc = eva.T + com.dTSup ($RES_SIM_23) [SCAL] (1) com.P = com.PThe / com.etaEle + com.PLos ($RES_SIM_24) [SCAL] (1) com.PThe = com.vSuc * com.pSuc * com.m_flow * (com.k / (com.k - 1.0)) * (com.PR ^ ((com.k - 1.0) / com.k) - 1.0) ($RES_SIM_25) [SCAL] (1) com.m_flow = ((com.pisDis * com.pisDis_norm) / com.vSuc) * ((com.cleFac + 1.0) - com.cleFac * com.PR ^ (1.0 / com.k)) ($RES_SIM_26) [SCAL] (1) com.k = Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.com.ref.isentropicExponentVap_Tv(com.TSuc, com.vSuc) ($RES_SIM_27) [SCAL] (1) com.pDis = com.pCon + com.pDro ($RES_SIM_28) [SCAL] (1) com.pSuc = smooth(1, if $SEV_4 then com.pEva - com.pDro else if $SEV_5 then com.pCon - com.pDro else 0.25 * ((com.pDro + com.pCon) - (com.pEva + com.pDro)) * ((-3.0) + (((com.pDro + com.pCon) - (com.pEva + com.pDro)) / 49261.0) ^ 2.0) * (2.030003451005867e-5 * ((com.pCon + com.pDro) - (com.pDro + com.pEva))) + 0.5 * ((com.pEva + com.pCon) - (com.pDro + com.pDro))) ($RES_SIM_29) else [SCAL] (1) com.COP = 1.0 ($RES_SIM_30) [SCAL] (1) -heaFloCon.Q_flow = 0.0 ($RES_SIM_31) [SCAL] (1) heaFloEva.Q_flow = 0.0 ($RES_SIM_32) [SCAL] (1) com.TSuc = eva.T ($RES_SIM_33) [SCAL] (1) com.P = 0.0 ($RES_SIM_34) [SCAL] (1) com.PThe = 0.0 ($RES_SIM_35) [SCAL] (1) com.m_flow = 0.0 ($RES_SIM_36) [SCAL] (1) com.pDis = com.pCon ($RES_SIM_37) [SCAL] (1) com.pSuc = com.pEva ($RES_SIM_38) [SCAL] (1) com.k = 1.0 ($RES_SIM_39) end if; Error: Internal error NBInitialization.main failed to apply modules!