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.001214/0.001214, 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.001291/0.001292, 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.669/1.669, 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.4122/0.4122, allocations: 48.85 MB / 320.8 MB, free: 11.01 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.029e-05/4.029e-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.09221/0.09226, allocations: 82.45 MB / 0.5211 GB, free: 5.879 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.3584/0.4507, allocations: 11.17 MB / 0.532 GB, free: 7.332 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001207/0.452, allocations: 32.59 kB / 0.532 GB, free: 7.332 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001447/0.4534, allocations: 399.7 kB / 0.5324 GB, free: 7.328 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.002217/0.4557, allocations: 0.6934 MB / 0.5331 GB, free: 7.324 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01896/0.4747, allocations: 5.539 MB / 0.5385 GB, free: 7.258 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003289/0.478, allocations: 1.841 MB / 0.5403 GB, free: 7.238 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008301/0.4788, allocations: 0.5824 MB / 0.5409 GB, free: 7.188 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002277/0.4811, allocations: 1.228 MB / 0.5421 GB, free: 7.168 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007352/0.4819, allocations: 0.5469 MB / 0.5426 GB, free: 7.152 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001237/0.482, allocations: 61.97 kB / 0.5427 GB, free: 7.152 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01723/0.4992, allocations: 5.976 MB / 0.5485 GB, free: 7.098 MB / 414.1 MB Notification: Performance of combineBinaries: time 0.00269/0.502, allocations: 1.503 MB / 0.55 GB, free: 6.297 MB / 414.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005245/0.5025, allocations: 0.9321 MB / 0.5509 GB, free: 5.668 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003626/0.5029, allocations: 181.1 kB / 0.5511 GB, free: 5.629 MB / 414.1 MB Notification: Performance of FrontEnd: time 0.0003114/0.5032, allocations: 20.78 kB / 0.5511 GB, free: 5.629 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 (158) * Number of variables: 170 (170) Notification: Performance of Bindings: time 0.003481/0.5067, allocations: 3.95 MB / 0.5549 GB, free: 3.914 MB / 414.1 MB Notification: Performance of FunctionAlias: time 0.0001529/0.5069, allocations: 144.9 kB / 0.5551 GB, free: 3.91 MB / 414.1 MB Notification: Performance of Early Inline: time 0.002582/0.5095, allocations: 2.394 MB / 0.5574 GB, free: 3.723 MB / 414.1 MB Notification: Performance of simplify1: time 0.0001574/0.5096, allocations: 140.2 kB / 0.5575 GB, free: 3.719 MB / 414.1 MB Notification: Performance of Alias: time 0.004178/0.5138, allocations: 3.763 MB / 0.5612 GB, free: 2.449 MB / 414.1 MB Notification: Performance of simplify2: time 9.267e-05/0.5139, allocations: 71 kB / 0.5613 GB, free: 2.445 MB / 414.1 MB Notification: Performance of Detect States: time 0.0003785/0.5143, allocations: 329.2 kB / 0.5616 GB, free: 2.379 MB / 414.1 MB Notification: Performance of Events: time 0.0002752/0.5146, allocations: 198 kB / 0.5618 GB, free: 2.352 MB / 414.1 MB Notification: Performance of Partitioning: time 0.0005139/0.5151, allocations: 0.514 MB / 0.5623 GB, free: 2.148 MB / 414.1 MB Notification: Performance of Causalize: time 0.002009/0.5171, allocations: 1.923 MB / 0.5642 GB, free: 1.598 MB / 414.1 MB Notification: Performance of After Index Reduction Inline: time 0.001141/0.5183, allocations: 1.2 MB / 0.5653 GB, free: 1.492 MB / 414.1 MB Notification: Performance of Inline: time 0.002345/0.5206, allocations: 2.406 MB / 0.5677 GB, free: 1.027 MB / 414.1 MB Notification: Performance of Partitioning: time 0.000115/0.5208, allocations: 105.1 kB / 0.5678 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of Cleanup: time 0.0002252/0.521, allocations: 242.7 kB / 0.568 GB, free: 0.918 MB / 414.1 MB Notification: Performance of Causalize: time 0.00524/0.5263, allocations: 4.731 MB / 0.5726 GB, free: 15.6 MB / 430.1 MB Error: Internal error NBEquation.Equation.setLHS failed because LHS could not be set for: [-IF-] (1)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_110) [----] else [----] [SCAL] (1) Pump1.q_single = 0.0 ($RES_SIM_111) [----] end if; Error: Internal error NBInitialization.main failed to apply modules!