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.001088/0.001088, allocations: 103.6 kB / 17.63 MB, free: 5.383 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.001098/0.001098, allocations: 189.5 kB / 18.56 MB, free: 4.465 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.384/1.384, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2755/0.2755, allocations: 48.85 MB / 320.6 MB, free: 11.09 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.262e-05/2.264e-05, allocations: 4.031 kB / 390.8 MB, free: 48.86 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.WaterPump): time 0.02443/0.02447, allocations: 34.6 MB / 425.4 MB, free: 18.1 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006955/0.03146, allocations: 8.584 MB / 433.9 MB, free: 9.508 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003895/0.03188, allocations: 7.938 kB / 434 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004525/0.03234, allocations: 135 kB / 434.1 MB, free: 9.367 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.0005824/0.03301, allocations: 271.7 kB / 434.4 MB, free: 9.102 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.01013/0.04315, allocations: 4.483 MB / 438.8 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006818/0.04385, allocations: 0.7479 MB / 439.6 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002743/0.04413, allocations: 223.4 kB / 439.8 MB, free: 3.668 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005562/0.04469, allocations: 435 kB / 440.2 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/0.04487, allocations: 207.1 kB / 440.4 MB, free: 3.039 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.371e-05/0.04491, allocations: 24 kB / 440.5 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006519/0.05143, allocations: 5.592 MB / 446 MB, free: 13.42 MB / 334.1 MB Notification: Performance of combineBinaries: time 0.0004627/0.05192, allocations: 0.5756 MB / 446.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001909/0.05212, allocations: 369.5 kB / 447 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.296e-05/0.05222, allocations: 63.81 kB / 447 MB, free: 12.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.693e-05/0.05231, allocations: 8 kB / 447 MB, free: 12.4 MB / 334.1 MB Notification: Could not parse annotation "Evaluate" in the backend. Notification: Could not parse annotation "choices" in the backend. Notification: Could not parse annotation "Evaluate" in the backend. Notification: Could not parse annotation "choices" in the backend. Notification: Could not parse annotation "Evaluate" in the backend. Notification: Could not parse annotation "choices" in the backend. Notification: Could not parse annotation "Evaluate" in the backend. Notification: Could not parse annotation "choices" in the backend. Notification: Could not parse annotation "Evaluate" in the backend. 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.001277/0.0536, allocations: 1.407 MB / 448.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of FunctionAlias: time 0.0001896/0.05379, allocations: 127.4 kB / 448.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of Early Inline: time 0.0004414/0.05424, allocations: 302.1 kB / 448.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simplify1: time 7.014e-05/0.05432, allocations: 75.91 kB / 449 MB, free: 10.38 MB / 334.1 MB Notification: Performance of Alias: time 0.001209/0.05554, allocations: 1.145 MB / 450.1 MB, free: 9.07 MB / 334.1 MB Notification: Performance of simplify2: time 5.032e-05/0.0556, allocations: 47.94 kB / 450.1 MB, free: 9.023 MB / 334.1 MB Notification: Performance of Events: time 0.0001739/0.05578, allocations: 127.1 kB / 450.3 MB, free: 8.902 MB / 334.1 MB Notification: Performance of Detect States: time 0.0002004/0.05599, allocations: 173.4 kB / 450.4 MB, free: 8.723 MB / 334.1 MB Notification: Performance of Partitioning: time 0.0002151/0.05621, allocations: 194.4 kB / 450.6 MB, free: 8.523 MB / 334.1 MB Notification: Performance of Causalize: time 0.000611/0.05683, allocations: 0.6521 MB / 451.3 MB, free: 7.871 MB / 334.1 MB Notification: Performance of After Index Reduction Inline: time 0.0001367/0.05698, allocations: 156.2 kB / 451.4 MB, free: 7.691 MB / 334.1 MB Notification: Performance of Inline: time 0.0003538/0.05734, allocations: 334.9 kB / 451.8 MB, free: 7.336 MB / 334.1 MB Notification: Performance of Partitioning: time 5.915e-05/0.0574, allocations: 59.53 kB / 451.8 MB, free: 7.266 MB / 334.1 MB Notification: Performance of Cleanup: time 9.986e-05/0.05751, allocations: 121 kB / 451.9 MB, free: 7.145 MB / 334.1 MB Notification: Performance of Causalize: time 0.001759/0.05927, allocations: 2.069 MB / 454 MB, free: 5.102 MB / 334.1 MB Error: Internal error NBEquation.IfEquationBody.getResidualExp failed for: if noEvent($SEV_1) then [SCAL] (1) Pump.head = $FUN_2 ($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 = $FUN_3 ($RES_SIM_23) end if; Error: Internal error NBInitialization.main failed to apply modules!