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.0009975/0.0009975, allocations: 115.8 kB / 17.76 MB, free: 5.336 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.0009723/0.0009723, allocations: 185.8 kB / 18.68 MB, free: 4.414 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.207/1.207, allocations: 205.1 MB / 224.6 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2403/0.2403, allocations: 48.85 MB / 320.8 MB, free: 11.02 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.617e-05/1.617e-05, allocations: 2.281 kB / 451.2 MB, free: 8.613 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.WaterPump): time 0.03231/0.03233, allocations: 34.65 MB / 485.8 MB, free: 5.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009639/0.04197, allocations: 8.609 MB / 494.4 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002371/0.04221, allocations: 11.94 kB / 494.4 MB, free: 13.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004387/0.04264, allocations: 147 kB / 494.6 MB, free: 13.04 MB / 382.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.000692/0.04334, allocations: 266.4 kB / 494.8 MB, free: 12.78 MB / 382.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.009464/0.0528, allocations: 4.481 MB / 499.3 MB, free: 8.285 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006695/0.05347, allocations: 0.6659 MB / 500 MB, free: 7.613 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003498/0.05382, allocations: 193.1 kB / 0.4884 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007786/0.0546, allocations: 438.8 kB / 0.4889 GB, free: 6.992 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00023/0.05483, allocations: 211 kB / 0.4891 GB, free: 6.785 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.353e-05/0.05487, allocations: 24 kB / 0.4891 GB, free: 6.762 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007268/0.06214, allocations: 5.701 MB / 0.4947 GB, free: 1.055 MB / 382.1 MB Notification: Performance of combineBinaries: time 0.0004328/0.06257, allocations: 0.5755 MB / 0.4952 GB, free: 484 kB / 382.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001998/0.06277, allocations: 374.5 kB / 0.4956 GB, free: 104 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.604e-05/0.06284, allocations: 67.75 kB / 0.4956 GB, free: 36 kB / 382.1 MB Notification: Performance of FrontEnd: time 7.261e-05/0.06291, allocations: 11.94 kB / 0.4956 GB, free: 24 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 (56) * Number of variables: 60 (60) Notification: Performance of Bindings: time 0.001182/0.06409, allocations: 1.307 MB / 0.4969 GB, free: 14.59 MB / 398.1 MB Notification: Performance of FunctionAlias: time 0.0001086/0.0642, allocations: 118.4 kB / 0.497 GB, free: 14.48 MB / 398.1 MB Notification: Performance of Early Inline: time 0.0008308/0.06503, allocations: 0.7568 MB / 0.4978 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simplify1: time 0.0001293/0.06516, allocations: 127.6 kB / 0.4979 GB, free: 13.54 MB / 398.1 MB Warning: NBAlias.setStartFixed: No variables are fixed and they have different start values. Use -d=dumprepl for more information. Notification: Performance of Alias: time 0.001363/0.06652, allocations: 1.063 MB / 0.4989 GB, free: 12.33 MB / 398.1 MB Notification: Performance of simplify2: time 8.934e-05/0.06661, allocations: 76.39 kB / 0.499 GB, free: 12.23 MB / 398.1 MB Notification: Performance of Detect States: time 0.0002045/0.06682, allocations: 172.4 kB / 0.4992 GB, free: 12.02 MB / 398.1 MB Notification: Performance of Events: time 0.0001897/0.06701, allocations: 132.8 kB / 0.4993 GB, free: 11.89 MB / 398.1 MB Notification: Performance of Partitioning: time 0.0002808/0.06729, allocations: 257.3 kB / 0.4995 GB, free: 11.61 MB / 398.1 MB Notification: Performance of Causalize: time 0.0007621/0.06805, allocations: 0.6244 MB / 0.5002 GB, free: 10.97 MB / 398.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005391/0.06859, allocations: 0.5098 MB / 0.5007 GB, free: 10.43 MB / 398.1 MB Notification: Performance of Inline: time 0.001013/0.0696, allocations: 0.9847 MB / 0.5016 GB, free: 9.395 MB / 398.1 MB Notification: Performance of Partitioning: time 2.819e-05/0.06963, allocations: 18.38 kB / 0.5016 GB, free: 9.371 MB / 398.1 MB Notification: Performance of Cleanup: time 0.0002045/0.06984, allocations: 236.8 kB / 0.5019 GB, free: 9.137 MB / 398.1 MB Notification: Performance of Causalize: time 0.001757/0.07159, allocations: 1.442 MB / 0.5033 GB, free: 7.676 MB / 398.1 MB Error: Internal error NBEquation.Equation.getResidualExp failed for: [-IF-] (1) ($RES_SIM_22)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_23) [----] else [----] [SCAL] (1) Pump.q_single = 0.0 ($RES_SIM_24) [----] end if; Error: Internal error NBInitialization.main failed to apply modules!