Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AixLib_latest_AixLib.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/package.mo", uses=false) Using package AixLib with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/package.mo) Using package SDF with version 0.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1/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(AixLib.Fluid.HeatPumps.Validation.ScrollWaterToWater_Static,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AixLib_latest_AixLib.Fluid.HeatPumps.Validation.ScrollWaterToWater_Static") translateModel(AixLib.Fluid.HeatPumps.Validation.ScrollWaterToWater_Static,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AixLib_latest_AixLib.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.001167/0.001167, allocations: 105.8 kB / 16.37 MB, free: 6.371 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.001156/0.001156, allocations: 192.1 kB / 17.31 MB, free: 5.91 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.253/1.253, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1/package.mo): time 0.05314/0.05314, allocations: 12.02 MB / 303.2 MB, free: 3.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo): time 0.0004495/0.0004495, allocations: 35.88 kB / 356.3 MB, free: 14 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:6228:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:6853:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:8435:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:9369:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:11505:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:12875:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/ThermalZones/HighOrder/Components/Examples/DryAir/DryAir_test.mo:71:18-71:405:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/ThermalZones/HighOrder/Components/DryAir/InfiltrationRate_DIN12831.mo:20:192-20:2066:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/ThermalZones/HighOrder/Components/DryAir/InfiltrationRate_DIN12831.mo:20:192-20:4252:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/DataBase/Weather/SurfaceOrientation/SurfaceOrientationData_N_E_S_W_RoofN_Roof_S.mo:5:35-5:362:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/DataBase/Weather/SurfaceOrientation/SurfaceOrientationData_N_E_S_W_Hor.mo:5:35-5:320:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/DataBase/Weather/SurfaceOrientation/SurfaceOrientationData_NE_SE_SW_NW_Hor.mo:5:35-5:324:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/DataBase/CHP/CHPDataSimple/CHP_XRGI_9kWel.mo:25:34-25:588:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/DataBase/CHP/CHPDataSimple/CHP_XRGI_9kWel.mo:25:34-25:3852:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/DataBase/CHP/CHPDataSimple/CHP_Cleanergy_C9G.mo:36:34-36:594:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/BoundaryConditions/InternalGains/Examples/InternalGains/Machines.mo:31:20-31:400:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/BoundaryConditions/InternalGains/Examples/InternalGains/Lights.mo:27:20-27:398:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/package.mo): time 1.786/1.786, allocations: 272.3 MB / 0.6656 GB, free: 18.36 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.6e-05/2.602e-05, allocations: 8.75 kB / 0.7863 GB, free: 12.93 MB / 0.5607 GB Notification: Performance of NFInst.instantiate(AixLib.Fluid.HeatPumps.Validation.ScrollWaterToWater_Static): time 0.06113/0.06117, allocations: 69.93 MB / 0.8546 GB, free: 6.75 MB / 0.6232 GB Notification: Performance of NFInst.instExpressions: time 0.01963/0.08083, allocations: 14.39 MB / 0.8686 GB, free: 8.32 MB / 0.6388 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002287/0.08315, allocations: 75.56 kB / 0.8687 GB, free: 8.246 MB / 0.6388 GB Notification: Performance of NFTyping.typeComponents: time 0.00242/0.08559, allocations: 0.92 MB / 0.8696 GB, free: 7.32 MB / 0.6388 GB Notification: Performance of NFTyping.typeBindings: time 0.006254/0.0919, allocations: 2.536 MB / 0.8721 GB, free: 4.777 MB / 0.6388 GB Notification: Performance of NFTyping.typeClassSections: time 0.004486/0.0964, allocations: 1.981 MB / 0.874 GB, free: 2.812 MB / 0.6388 GB Notification: Performance of NFFlatten.flatten: time 0.005981/0.1024, allocations: 5.232 MB / 0.8791 GB, free: 13.56 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002174/0.1046, allocations: 1.763 MB / 0.8809 GB, free: 11.77 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003386/0.108, allocations: 1.918 MB / 0.8827 GB, free: 9.852 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001404/0.1094, allocations: 1.338 MB / 0.884 GB, free: 8.508 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0002252/0.1096, allocations: 196 kB / 0.8842 GB, free: 8.316 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003444/0.1131, allocations: 2.058 MB / 0.8862 GB, free: 6.258 MB / 0.6544 GB Notification: Performance of combineBinaries: time 0.002221/0.1153, allocations: 3.217 MB / 0.8894 GB, free: 3.008 MB / 0.6544 GB Notification: Performance of replaceArrayConstructors: time 0.001174/0.1165, allocations: 2.019 MB / 0.8913 GB, free: 0.9648 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0004539/0.117, allocations: 363.1 kB / 0.8917 GB, free: 0.6094 MB / 0.6544 GB Notification: Performance of FrontEnd: time 0.0003149/0.1173, allocations: 71.67 kB / 0.8918 GB, free: 0.5391 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.007214/0.1245, allocations: 9.012 MB / 0.9006 GB, free: 7.227 MB / 0.67 GB Notification: Performance of FunctionAlias: time 0.00101/0.1255, allocations: 1.156 MB / 0.9017 GB, free: 6.059 MB / 0.67 GB Notification: Performance of Early Inline: time 0.004565/0.1301, allocations: 5.087 MB / 0.9067 GB, free: 0.9102 MB / 0.67 GB Notification: Performance of simplify1: time 0.0002955/0.1304, allocations: 307.6 kB / 0.9069 GB, free: 0.6094 MB / 0.67 GB Notification: Performance of Alias: time 0.007908/0.1383, allocations: 8.044 MB / 0.9148 GB, free: 8 MB / 0.6857 GB Notification: Performance of simplify2: time 0.0002457/0.1386, allocations: 219.7 kB / 0.915 GB, free: 7.785 MB / 0.6857 GB Notification: Performance of Events: time 0.0009467/0.1395, allocations: 0.9311 MB / 0.9159 GB, free: 6.848 MB / 0.6857 GB Notification: Performance of Detect States: time 0.0007695/0.1403, allocations: 0.9698 MB / 0.9169 GB, free: 5.852 MB / 0.6857 GB Notification: Performance of Partitioning: time 0.001304/0.1416, allocations: 1.455 MB / 0.9183 GB, free: 4.168 MB / 0.6857 GB Notification: Performance of Causalize: time 0.285/0.4266, allocations: 8.638 MB / 0.9267 GB, free: 94.11 MB / 0.6857 GB Notification: Performance of After Index Reduction Inline: time 0.003334/0.43, allocations: 3.176 MB / 0.9298 GB, free: 94.02 MB / 0.6857 GB Notification: Performance of Inline: time 0.006484/0.4365, allocations: 6.673 MB / 0.9363 GB, free: 93.64 MB / 0.6857 GB Notification: Performance of Partitioning: time 0.0002797/0.4368, allocations: 312.8 kB / 0.9366 GB, free: 93.56 MB / 0.6857 GB Notification: Performance of Cleanup: time 0.0004982/0.4373, allocations: 0.6459 MB / 0.9373 GB, free: 93.52 MB / 0.6857 GB Notification: Performance of Causalize: time 0.01832/0.4556, allocations: 24.85 MB / 0.9615 GB, free: 90.79 MB / 0.6857 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 = AixLib.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!