Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.WaterPump.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/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(ThermoPower.Test.WaterComponents.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.WaterPump") translateModel(ThermoPower.Test.WaterComponents.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.WaterPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 110.1 kB / 17.7 MB, free: 5.406 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.001091/0.001091, allocations: 188 kB / 18.64 MB, free: 4.477 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.15/1.15, allocations: 205.1 MB / 224.5 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2343/0.2343, allocations: 48.84 MB / 320.7 MB, free: 11.05 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.112e-05/2.114e-05, allocations: 2.984 kB / 391.5 MB, free: 48.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.WaterPump): time 0.0226/0.02264, allocations: 34.59 MB / 426.1 MB, free: 17.42 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006841/0.02952, allocations: 8.59 MB / 434.7 MB, free: 8.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000268/0.02981, allocations: 11.94 kB / 434.7 MB, free: 8.809 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000415/0.03023, allocations: 135 kB / 434.8 MB, free: 8.676 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/Test.mo:1770:19-1772:45:writable] Warning: Pure function 'ThermoPower.Test.WaterComponents.WaterPump.Pump.flowCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. Notification: Performance of NFTyping.typeBindings: time 0.0005962/0.03084, allocations: 267.2 kB / 435.1 MB, free: 8.414 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/Test.mo:1773:19-1775:46:writable] Warning: Pure function 'ThermoPower.Test.WaterComponents.WaterPump.Pump.powerCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. Notification: Performance of NFTyping.typeClassSections: time 0.009131/0.03998, allocations: 4.489 MB / 439.6 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005934/0.04058, allocations: 0.6659 MB / 440.2 MB, free: 3.273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002588/0.04085, allocations: 229.1 kB / 440.4 MB, free: 3.047 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005375/0.0414, allocations: 431 kB / 440.9 MB, free: 2.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001649/0.04158, allocations: 211 kB / 441.1 MB, free: 2.418 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.172e-05/0.04161, allocations: 24 kB / 441.1 MB, free: 2.395 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006112/0.04773, allocations: 5.701 MB / 446.8 MB, free: 12.69 MB / 334.1 MB Notification: Performance of combineBinaries: time 0.0003805/0.04813, allocations: 0.5771 MB / 447.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001713/0.0483, allocations: 366.6 kB / 447.7 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.113e-05/0.04837, allocations: 67.75 kB / 447.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.532e-05/0.04843, allocations: 12 kB / 447.8 MB, free: 11.66 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 (55) * Number of variables: 60 (60) Notification: Performance of Bindings: time 0.001183/0.04962, allocations: 1.511 MB / 449.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of FunctionAlias: time 5.893e-05/0.04969, allocations: 59.89 kB / 449.4 MB, free: 9.98 MB / 334.1 MB Notification: Performance of Early Inline: time 0.000892/0.05059, allocations: 0.9521 MB / 450.3 MB, free: 9.004 MB / 334.1 MB Notification: Performance of simplify1: time 5.957e-05/0.05066, allocations: 71.89 kB / 450.4 MB, free: 8.934 MB / 334.1 MB Notification: Performance of Alias: time 0.00125/0.05191, allocations: 1.195 MB / 451.6 MB, free: 7.602 MB / 334.1 MB Notification: Performance of simplify2: time 4.35e-05/0.05197, allocations: 46.59 kB / 451.6 MB, free: 7.559 MB / 334.1 MB Notification: Performance of Events: time 0.0001614/0.05213, allocations: 130.3 kB / 451.8 MB, free: 7.434 MB / 334.1 MB Notification: Performance of Detect States: time 0.0003443/0.05249, allocations: 180.1 kB / 451.9 MB, free: 7.246 MB / 334.1 MB Notification: Performance of Partitioning: time 0.0002257/0.05272, allocations: 221.4 kB / 452.2 MB, free: 7.008 MB / 334.1 MB Notification: Performance of Causalize: time 0.001081/0.05381, allocations: 1.162 MB / 453.3 MB, free: 5.828 MB / 334.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005068/0.05433, allocations: 0.6234 MB / 453.9 MB, free: 5.18 MB / 334.1 MB Notification: Performance of Inline: time 0.0009781/0.05531, allocations: 1.07 MB / 455 MB, free: 4.074 MB / 334.1 MB Notification: Performance of Partitioning: time 4.818e-05/0.05537, allocations: 54.34 kB / 455.1 MB, free: 4.016 MB / 334.1 MB Notification: Performance of Cleanup: time 0.0001158/0.05549, allocations: 122.4 kB / 455.2 MB, free: 3.891 MB / 334.1 MB Notification: Performance of Causalize: time 0.00233/0.05783, allocations: 2.668 MB / 457.9 MB, free: 1.25 MB / 334.1 MB Error: Internal error NBEquation.IfEquationBody.getResidualExp failed for: if noEvent($SEV_2) then [SCAL] (1) Pump.head = (Pump.n / 1500.0) ^ 2.0 * ((1500.0 * Pump.q_single * (Modelica.Math.Matrices.solve({{1.0, 0.0, 0.0}, {1.0, 0.001, 1e-6}, {1.0, 0.0015, 2.25e-6}}, {60.0, 30.0, 0.0}))[2]) / (1e-6 + Pump.n) + (Modelica.Math.Matrices.solve({{1.0, 0.0, 0.0}, {1.0, 0.001, 1e-6}, {1.0, 0.0015, 2.25e-6}}, {60.0, 30.0, 0.0}))[1] + ((1500.0 * Pump.q_single) / (1e-6 + Pump.n)) ^ 2.0 * (Modelica.Math.Matrices.solve({{1.0, 0.0, 0.0}, {1.0, 0.001, 1e-6}, {1.0, 0.0015, 2.25e-6}}, {60.0, 30.0, 0.0}))[3]) ($RES_SIM_20) [SCAL] (1) Pump.q_single = Pump.s * 5e-4 ($RES_SIM_21) else [SCAL] (1) Pump.q_single = 0.0 ($RES_SIM_22) [SCAL] (1) Pump.head = (Pump.n / 1500.0) ^ 2.0 * (Modelica.Math.Matrices.solve({{1.0, 0.0, 0.0}, {1.0, 0.001, 1e-6}, {1.0, 0.0015, 2.25e-6}}, {60.0, 30.0, 0.0}))[1] - Pump.s * 30.59148638933785 ($RES_SIM_23) end if; Error: Internal error NBInitialization.main failed to apply modules!