Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.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.WaterPumps,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps") translateModel(ThermoPower.Test.WaterComponents.WaterPumps,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 115.3 kB / 17.75 MB, free: 5.195 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.001155, allocations: 189.9 kB / 18.68 MB, free: 4.27 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.767/1.767, allocations: 205.1 MB / 224.6 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4106/0.4106, allocations: 48.83 MB / 320.7 MB, free: 11.02 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.019e-05/3.02e-05, allocations: 2.281 kB / 451.2 MB, free: 8.617 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.WaterPumps): time 0.08352/0.08356, allocations: 82.45 MB / 0.5211 GB, free: 5.883 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.3527/0.4363, allocations: 11.17 MB / 0.532 GB, free: 7.23 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001216/0.4375, allocations: 31.19 kB / 0.532 GB, free: 7.23 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001451/0.439, allocations: 401 kB / 0.5324 GB, free: 7.227 MB / 414.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:1878:19-1880:42:writable] Warning: Pure function 'ThermoPower.Test.WaterComponents.WaterPumps.Pump1.flowCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/Test.mo:1915:19-1917:58:writable] Warning: Pure function 'ThermoPower.Test.WaterComponents.WaterPumps.Pump2.flowCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/Test.mo:1940:19-1942:58:writable] Warning: Pure function 'ThermoPower.Test.WaterComponents.WaterPumps.Pump3.flowCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. Notification: Performance of NFTyping.typeBindings: time 0.002231/0.4412, allocations: 0.6847 MB / 0.5331 GB, free: 7.223 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02069/0.462, allocations: 5.53 MB / 0.5385 GB, free: 7.164 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003434/0.4654, allocations: 1.838 MB / 0.5403 GB, free: 7.145 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001009/0.4664, allocations: 0.5785 MB / 0.5408 GB, free: 7.094 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002652/0.4691, allocations: 1.231 MB / 0.5421 GB, free: 7.07 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008433/0.47, allocations: 0.5462 MB / 0.5426 GB, free: 7.059 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001227/0.4701, allocations: 62.06 kB / 0.5426 GB, free: 7.059 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01421/0.4843, allocations: 5.975 MB / 0.5485 GB, free: 7.008 MB / 414.1 MB Notification: Performance of combineBinaries: time 0.002297/0.4866, allocations: 1.501 MB / 0.5499 GB, free: 6.207 MB / 414.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005324/0.4872, allocations: 0.9352 MB / 0.5509 GB, free: 5.574 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000401/0.4876, allocations: 170.4 kB / 0.551 GB, free: 5.539 MB / 414.1 MB Notification: Performance of FrontEnd: time 0.0002907/0.4879, allocations: 33.78 kB / 0.5511 GB, free: 5.531 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 (155) * Number of variables: 170 (170) Notification: Performance of Bindings: time 0.003554/0.4915, allocations: 3.916 MB / 0.5549 GB, free: 3.82 MB / 414.1 MB Notification: Performance of FunctionAlias: time 0.0001492/0.4916, allocations: 147.7 kB / 0.555 GB, free: 3.816 MB / 414.1 MB Notification: Performance of Early Inline: time 0.002528/0.4941, allocations: 2.364 MB / 0.5573 GB, free: 3.625 MB / 414.1 MB Notification: Performance of simplify1: time 0.000134/0.4943, allocations: 141.5 kB / 0.5575 GB, free: 3.621 MB / 414.1 MB Notification: Performance of Alias: time 0.004155/0.4985, allocations: 3.751 MB / 0.5611 GB, free: 2.359 MB / 414.1 MB Notification: Performance of simplify2: time 7.79e-05/0.4985, allocations: 74.53 kB / 0.5612 GB, free: 2.355 MB / 414.1 MB Notification: Performance of Events: time 0.0002467/0.4988, allocations: 190 kB / 0.5614 GB, free: 2.324 MB / 414.1 MB Notification: Performance of Detect States: time 0.0003771/0.4992, allocations: 350.3 kB / 0.5617 GB, free: 2.273 MB / 414.1 MB Notification: Performance of Partitioning: time 0.0004605/0.4997, allocations: 0.5127 MB / 0.5622 GB, free: 2.059 MB / 414.1 MB Notification: Performance of Causalize: time 0.001954/0.5016, allocations: 1.87 MB / 0.564 GB, free: 1.516 MB / 414.1 MB Notification: Performance of After Index Reduction Inline: time 0.001173/0.5028, allocations: 1.177 MB / 0.5652 GB, free: 1.422 MB / 414.1 MB Notification: Performance of Inline: time 0.00241/0.5052, allocations: 2.384 MB / 0.5675 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of Partitioning: time 0.0001304/0.5054, allocations: 102.5 kB / 0.5676 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of Cleanup: time 0.0002338/0.5056, allocations: 249.9 kB / 0.5679 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of Causalize: time 0.004761/0.5104, allocations: 4.607 MB / 0.5723 GB, free: 15.6 MB / 430.1 MB Error: Internal error NBEquation.IfEquationBody.getResidualExp failed for: if noEvent($SEV_8) then [SCAL] (1) Pump1.head = (1500.0 / 1500.0) ^ 2.0 * ((Modelica.Math.Matrices.solve({{1.0, 0.001}, {1.0, 0.0015}}, {30.0, 0.0}))[1] + (1500.0 * Pump1.q_single * (Modelica.Math.Matrices.solve({{1.0, 0.001}, {1.0, 0.0015}}, {30.0, 0.0}))[2]) / (1e-6 + 1500.0)) ($RES_SIM_105) [SCAL] (1) Pump1.q_single = Pump1.s * 5e-4 ($RES_SIM_106) else [SCAL] (1) Pump1.q_single = 0.0 ($RES_SIM_107) [SCAL] (1) Pump1.head = (1500.0 / 1500.0) ^ 2.0 * (Modelica.Math.Matrices.solve({{1.0, 0.001}, {1.0, 0.0015}}, {30.0, 0.0}))[1] - Pump1.s * 20.394324259558566 ($RES_SIM_108) end if; Error: Internal error NBInitialization.main failed to apply modules!