Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.WaterPumpMech.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.WaterPumpMech,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.WaterPumpMech") translateModel(ThermoPower.Test.WaterComponents.WaterPumpMech,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.WaterPumpMech") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 110.5 kB / 17.75 MB, free: 5.332 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.001191/0.001191, allocations: 183 kB / 18.68 MB, free: 4.41 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.249/1.249, allocations: 205.1 MB / 224.6 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.249/0.249, allocations: 48.85 MB / 320.8 MB, free: 11 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 71.89 kB / 451.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09103/0.09247, allocations: 59.17 MB / 0.4984 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.WaterPumpMech): time 0.2297/0.3222, allocations: 35.73 MB / 0.5333 GB, free: 7.641 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.009941/0.3322, allocations: 8.775 MB / 0.5419 GB, free: 7.43 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006735/0.3329, allocations: 15.91 kB / 0.5419 GB, free: 7.43 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007686/0.3337, allocations: 179.3 kB / 0.5421 GB, free: 7.43 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:2023:19-2025:51:writable] Warning: Pure function 'ThermoPower.Test.WaterComponents.WaterPumpMech.Pump.flowCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. Notification: Performance of NFTyping.typeBindings: time 0.001395/0.3351, allocations: 333.9 kB / 0.5424 GB, free: 7.371 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/Test.mo:2027:19-2029:52:writable] Warning: Pure function 'ThermoPower.Test.WaterComponents.WaterPumpMech.Pump.powerCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. Notification: Performance of NFTyping.typeClassSections: time 0.01349/0.3486, allocations: 4.554 MB / 0.5468 GB, free: 6.648 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00136/0.35, allocations: 0.8895 MB / 0.5477 GB, free: 6.438 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006469/0.3507, allocations: 413.7 kB / 0.5481 GB, free: 6.41 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009705/0.3516, allocations: 0.5413 MB / 0.5486 GB, free: 6.34 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003643/0.352, allocations: 341.4 kB / 0.5489 GB, free: 6.258 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.887e-05/0.3521, allocations: 56.56 kB / 0.549 GB, free: 6.258 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01248/0.3646, allocations: 6.245 MB / 0.5551 GB, free: 5.578 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002414/0.3649, allocations: 122.1 kB / 0.5552 GB, free: 5.496 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004661/0.3653, allocations: 317.1 kB / 0.5555 GB, free: 5.312 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00835/0.3737, allocations: 3.989 MB / 0.5594 GB, free: 2.887 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3737, allocations: 4 kB / 0.5594 GB, free: 2.883 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3737, allocations: 0 / 0.5594 GB, free: 2.883 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.3738, allocations: 1.406 kB / 0.5594 GB, free: 2.883 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.003524/0.3773, allocations: 1.236 MB / 0.5606 GB, free: 1.973 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.3774, allocations: 13.58 kB / 0.5606 GB, free: 1.969 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002414/0.3776, allocations: 77.27 kB / 0.5607 GB, free: 1.93 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004805/0.3781, allocations: 399.3 kB / 0.5611 GB, free: 1.574 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.504e-05/0.3782, allocations: 63.8 kB / 0.5612 GB, free: 1.527 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.463e-05/0.3782, allocations: 56.11 kB / 0.5612 GB, free: 1.504 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008949/0.3791, allocations: 0.5238 MB / 0.5617 GB, free: 1.176 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.015e-05/0.3792, allocations: 1.219 kB / 0.5617 GB, free: 1.176 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.188e-05/0.3792, allocations: 21.38 kB / 0.5617 GB, free: 1.16 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.3792, allocations: 11.56 kB / 0.5618 GB, free: 1.16 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008213/0.3801, allocations: 410.3 kB / 0.5621 GB, free: 0.9609 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002317/0.3824, allocations: 2.049 MB / 0.5641 GB, free: 15.17 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006716/0.3831, allocations: 333.2 kB / 0.5645 GB, free: 15 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000339/0.3834, allocations: 168 kB / 0.5646 GB, free: 14.92 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06048/0.4439, allocations: 32.12 MB / 0.596 GB, free: 1.582 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.946e-05/0.444, allocations: 38.55 kB / 0.596 GB, free: 1.535 MB / 446.1 MB Notification: Performance of pre-optimization done (n=35): time 2.595e-06/0.444, allocations: 0 / 0.596 GB, free: 1.535 MB / 446.1 MB Notification: Performance of matching and sorting (n=38): time 0.00399/0.448, allocations: 1.617 MB / 0.5976 GB, free: 15.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.612e-05/0.448, allocations: 59.41 kB / 0.5977 GB, free: 15.73 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003791/0.4484, allocations: 369.7 kB / 0.598 GB, free: 15.36 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.217e-05/0.4485, allocations: 37.7 kB / 0.598 GB, free: 15.31 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.4486, allocations: 247.9 kB / 0.5983 GB, free: 15.07 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.417e-05/0.4487, allocations: 136.9 kB / 0.5984 GB, free: 14.94 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.4488, allocations: 78.12 kB / 0.5985 GB, free: 14.86 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.449, allocations: 350.8 kB / 0.5988 GB, free: 14.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003094/0.4493, allocations: 142.5 kB / 0.599 GB, free: 14.36 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000333/0.4496, allocations: 190.6 kB / 0.5991 GB, free: 14.16 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006222/0.4503, allocations: 339.8 kB / 0.5995 GB, free: 13.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.4503, allocations: 4 kB / 0.5995 GB, free: 13.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009638/0.4512, allocations: 481.7 kB / 0.5999 GB, free: 13.32 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.4513, allocations: 4 kB / 0.5999 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.4513, allocations: 4.156 kB / 0.5999 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000509/0.4518, allocations: 108.8 kB / 0.6 GB, free: 13.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003845/0.4522, allocations: 87.88 kB / 0.6001 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006145/0.4528, allocations: 0.6416 MB / 0.6007 GB, free: 12.45 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003135/0.4532, allocations: 24.02 kB / 0.6008 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.469e-05/0.4532, allocations: 16 kB / 0.6008 GB, free: 12.41 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004127/0.4536, allocations: 252.9 kB / 0.601 GB, free: 12.16 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003255/0.4539, allocations: 190.3 kB / 0.6012 GB, free: 11.95 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006008/0.4546, allocations: 317.7 kB / 0.6015 GB, free: 11.62 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.533e-06/0.4546, allocations: 3.938 kB / 0.6015 GB, free: 11.62 MB / 462.1 MB Notification: Performance of matching and sorting (n=48) (initialization_lambda0): time 0.0009503/0.4555, allocations: 463.5 kB / 0.602 GB, free: 11.16 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.4555, allocations: 15.84 kB / 0.602 GB, free: 11.14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.4556, allocations: 4.094 kB / 0.602 GB, free: 11.14 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002005/0.4558, allocations: 64.75 kB / 0.602 GB, free: 11.07 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003712/0.4561, allocations: 97.69 kB / 0.6021 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001816/0.458, allocations: 1.769 MB / 0.6039 GB, free: 9.074 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003236/0.4583, allocations: 27.97 kB / 0.6039 GB, free: 9.047 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.636e-05/0.4583, allocations: 16 kB / 0.6039 GB, free: 9.031 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 2 (Pump.int_Np,Pump.inletFluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001671/0.4585, allocations: 196.2 kB / 0.6041 GB, free: 8.832 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.001e-05/0.4586, allocations: 47.53 kB / 0.6041 GB, free: 8.785 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001179/0.4598, allocations: 0.6847 MB / 0.6048 GB, free: 8.094 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.4598, allocations: 8.172 kB / 0.6048 GB, free: 8.086 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.4598, allocations: 4 kB / 0.6048 GB, free: 8.082 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001653/0.46, allocations: 152.4 kB / 0.605 GB, free: 7.914 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.832e-05/0.4601, allocations: 4 kB / 0.605 GB, free: 7.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002773/0.4603, allocations: 23.98 kB / 0.605 GB, free: 7.887 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.992e-05/0.4604, allocations: 31.89 kB / 0.605 GB, free: 7.855 MB / 462.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:528:7-530:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): Pump.head = if noEvent(Pump.s > 0.0) or not Pump.CheckValve then (0.01 * Pump.n) ^ 2.0 * ThermoPower.Test.WaterComponents.WaterPumpMech.Pump.flowCharacteristic(Pump.q * 100.0 / (Pump.n + 1e-6), {0.0, 0.001, 0.0015}, {60.0, 30.0, 0.0}) else (0.01 * Pump.n) ^ 2.0 * ThermoPower.Test.WaterComponents.WaterPumpMech.Pump.flowCharacteristic(0.0, {0.0, 0.001, 0.0015}, {60.0, 30.0, 0.0}) - Pump.s * 20.394324259558566 2/2 (1): Pump.head = 0.10197162129779283 * Pump.dp / Pump.rho 3/3 (1): Pump.dp = Pump.outfl.p - Source.p0 4/4 (1): Valve.w = Valve.Kv * Ramp1.y * (Pump.outfl.p - Sink.p0) 5/5 (1): Pump.hin = if Valve.w >= 0.0 then Source.h else Sink.h 6/6 (16): $cse1 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(Source.p0, Pump.hin, 0, 0) 7/22 (1): Pump.rho = $cse1.rho 8/23 (1): Pump.q = Valve.w / Pump.rho 9/24 (1): Pump.q = if noEvent(Pump.s > 0.0) or not Pump.CheckValve then 0.001 * Pump.s else 0.0 Variables: 1: Pump.s:VARIABLE(start = 1.0 unit = "1" ) "Auxiliary non-dimensional variable" type: Real 2: Pump.q:VARIABLE(start = 0.001 * Pump.wstart unit = "m3/s" ) "Volume flow rate (total)" type: Real 3: Pump.rho:VARIABLE(min = 0.0 max = 1e5 start = 1000.0 unit = "kg/m3" nominal = 1000.0 ) "Liquid density" type: Real 4: $cse1.h:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse1.p:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse1.cv:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse1.vt:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse1.s:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse1.phase:DISCRETE(protected = true ) type: Integer unreplaceable 10: $cse1.x:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse1.region:DISCRETE(protected = true ) type: Integer unreplaceable 12: $cse1.pd:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse1.cp:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse1.T:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse1.dpT:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse1.R:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse1.vp:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse1.rho:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse1.pt:VARIABLE(protected = true ) type: Real unreplaceable 20: Pump.hin:VARIABLE(min = -1e10 max = 1e10 start = 1e5 unit = "J/kg" nominal = 5e5 ) "Enthalpy of entering fluid" type: Real 21: Valve.w:VARIABLE(min = -1e5 max = 1e5 start = Pump.wstart unit = "kg/s" ) "Mass flowrate" type: Real 22: Pump.outfl.p:VARIABLE(flow=false min = 611.657 max = 1e8 start = 5e6 unit = "Pa" nominal = 1e6 ) "Thermodynamic pressure in the connection point" type: Real 23: Pump.dp:VARIABLE(unit = "Pa" ) "Outlet pressure minus inlet pressure" type: Real 24: Pump.head:VARIABLE(min = 0.0 unit = "m" ) "Pump head" type: Real [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000939/0.4614, allocations: 455.3 kB / 0.6055 GB, free: 7.418 MB / 462.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoPower.Test.WaterComponents.WaterPumpMech could not be translated