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.001027/0.001027, allocations: 116.9 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.00105/0.00105, allocations: 184.7 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.253/1.253, 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.2509/0.2509, allocations: 48.85 MB / 320.8 MB, free: 11.03 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.195e-05/2.195e-05, allocations: 2.281 kB / 451.2 MB, free: 8.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.WaterPumps): time 0.08043/0.08046, allocations: 82.6 MB / 0.5212 GB, free: 5.742 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.209/0.2895, allocations: 11.19 MB / 0.5322 GB, free: 7.289 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005907/0.2901, allocations: 34.22 kB / 0.5322 GB, free: 7.289 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009809/0.2911, allocations: 396.8 kB / 0.5326 GB, free: 7.285 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.001541/0.2926, allocations: 0.6977 MB / 0.5333 GB, free: 7.281 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01455/0.3072, allocations: 5.547 MB / 0.5387 GB, free: 7.215 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002874/0.31, allocations: 1.827 MB / 0.5405 GB, free: 7.199 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009768/0.311, allocations: 481.4 kB / 0.5409 GB, free: 7.156 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002556/0.3136, allocations: 1.237 MB / 0.5421 GB, free: 7.133 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001129/0.3147, allocations: 0.5428 MB / 0.5427 GB, free: 7.117 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002235/0.3149, allocations: 62.09 kB / 0.5427 GB, free: 7.117 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01096/0.3259, allocations: 5.979 MB / 0.5486 GB, free: 7.062 MB / 414.1 MB Notification: Performance of combineBinaries: time 0.001985/0.3279, allocations: 1.505 MB / 0.55 GB, free: 6.262 MB / 414.1 MB Notification: Performance of replaceArrayConstructors: time 0.0006587/0.3285, allocations: 0.9472 MB / 0.551 GB, free: 5.625 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003505/0.3289, allocations: 172.2 kB / 0.5511 GB, free: 5.59 MB / 414.1 MB Notification: Performance of FrontEnd: time 0.0001965/0.3291, allocations: 27.53 kB / 0.5511 GB, free: 5.586 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.002493/0.3316, allocations: 3.127 MB / 0.5542 GB, free: 3.941 MB / 414.1 MB Notification: Performance of FunctionAlias: time 0.0001979/0.3317, allocations: 286.9 kB / 0.5545 GB, free: 3.938 MB / 414.1 MB Notification: Performance of Early Inline: time 0.001735/0.3335, allocations: 1.856 MB / 0.5563 GB, free: 3.812 MB / 414.1 MB Notification: Performance of simplify1: time 0.0002325/0.3337, allocations: 250.8 kB / 0.5565 GB, free: 3.715 MB / 414.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.002964/0.3367, allocations: 2.862 MB / 0.5593 GB, free: 2.699 MB / 414.1 MB Notification: Performance of simplify2: time 0.0001177/0.3368, allocations: 144.5 kB / 0.5595 GB, free: 2.621 MB / 414.1 MB Notification: Performance of Detect States: time 0.0002992/0.3371, allocations: 286.6 kB / 0.5597 GB, free: 2.512 MB / 414.1 MB Notification: Performance of Events: time 0.0002524/0.3374, allocations: 185.2 kB / 0.5599 GB, free: 2.488 MB / 414.1 MB Notification: Performance of Partitioning: time 0.0004767/0.3378, allocations: 0.5655 MB / 0.5605 GB, free: 2.297 MB / 414.1 MB Notification: Performance of Causalize: time 0.001446/0.3393, allocations: 1.455 MB / 0.5619 GB, free: 1.863 MB / 414.1 MB Notification: Performance of After Index Reduction Inline: time 0.0008278/0.3401, allocations: 0.962 MB / 0.5628 GB, free: 1.789 MB / 414.1 MB Notification: Performance of Inline: time 0.001853/0.342, allocations: 2.061 MB / 0.5648 GB, free: 1.129 MB / 414.1 MB Notification: Performance of Partitioning: time 6.368e-05/0.342, allocations: 45.12 kB / 0.5649 GB, free: 1.102 MB / 414.1 MB Notification: Performance of Cleanup: time 0.0003147/0.3423, allocations: 478.8 kB / 0.5653 GB, free: 0.957 MB / 414.1 MB Notification: Performance of Causalize: time 0.0037/0.346, allocations: 3.349 MB / 0.5686 GB, free: 15.93 MB / 430.1 MB Error: Internal error NBEquation.Equation.getResidualExp failed for: [-IF-] (1) ($RES_SIM_109)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!