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.001533/0.001533, allocations: 110.4 kB / 17.75 MB, free: 5.328 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.001714/0.001714, allocations: 183.1 kB / 18.68 MB, free: 4.406 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.359/1.359, allocations: 205.1 MB / 224.5 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.2901/0.2901, 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.001527/0.001527, allocations: 71.91 kB / 451.2 MB, free: 8.547 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1157, allocations: 59.16 MB / 0.4984 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.WaterPumpMech): time 0.2867/0.4025, allocations: 35.74 MB / 0.5333 GB, free: 7.016 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01014/0.4126, allocations: 8.769 MB / 0.5419 GB, free: 6.789 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003895/0.4131, allocations: 17.28 kB / 0.5419 GB, free: 6.789 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005458/0.4136, allocations: 172.1 kB / 0.5421 GB, free: 6.789 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.0008803/0.4146, allocations: 351.7 kB / 0.5424 GB, free: 6.73 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.01291/0.4275, allocations: 4.554 MB / 0.5468 GB, free: 6.016 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001431/0.4289, allocations: 0.895 MB / 0.5477 GB, free: 5.801 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006104/0.4295, allocations: 410.1 kB / 0.5481 GB, free: 5.773 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00111/0.4307, allocations: 0.5381 MB / 0.5486 GB, free: 5.703 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004627/0.4311, allocations: 337.8 kB / 0.549 GB, free: 5.629 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.69e-05/0.4313, allocations: 63.94 kB / 0.549 GB, free: 5.621 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01492/0.4462, allocations: 6.244 MB / 0.5551 GB, free: 5.305 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002205/0.4464, allocations: 122 kB / 0.5552 GB, free: 5.223 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005039/0.4469, allocations: 318.4 kB / 0.5555 GB, free: 5.035 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01075/0.4577, allocations: 3.994 MB / 0.5594 GB, free: 2.656 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.335e-06/0.4577, allocations: 1.312 kB / 0.5594 GB, free: 2.656 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4578, allocations: 0 / 0.5594 GB, free: 2.656 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.4578, allocations: 4 kB / 0.5594 GB, free: 2.652 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.003283/0.4611, allocations: 1.279 MB / 0.5607 GB, free: 1.695 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.4611, allocations: 17.7 kB / 0.5607 GB, free: 1.688 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002515/0.4614, allocations: 69.47 kB / 0.5608 GB, free: 1.656 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000578/0.462, allocations: 402.8 kB / 0.5612 GB, free: 1.297 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.705e-05/0.4621, allocations: 68.5 kB / 0.5612 GB, free: 1.246 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.352e-05/0.4622, allocations: 48.38 kB / 0.5613 GB, free: 1.23 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009764/0.4631, allocations: 0.5192 MB / 0.5618 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.529e-05/0.4632, allocations: 9.578 kB / 0.5618 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.568e-05/0.4632, allocations: 21.03 kB / 0.5618 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/0.4632, allocations: 11.62 kB / 0.5618 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009281/0.4642, allocations: 402.3 kB / 0.5622 GB, free: 0.6953 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.002679/0.4669, allocations: 2.054 MB / 0.5642 GB, free: 14.9 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007371/0.4676, allocations: 333.5 kB / 0.5645 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000367/0.468, allocations: 172.2 kB / 0.5647 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06458/0.5326, allocations: 32.13 MB / 0.5961 GB, free: 1.355 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/0.5327, allocations: 42.5 kB / 0.5961 GB, free: 1.305 MB / 446.1 MB Notification: Performance of pre-optimization done (n=35): time 3.236e-06/0.5327, allocations: 0 / 0.5961 GB, free: 1.305 MB / 446.1 MB Notification: Performance of matching and sorting (n=38): time 0.004635/0.5373, allocations: 1.62 MB / 0.5977 GB, free: 15.57 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.5374, allocations: 55.41 kB / 0.5977 GB, free: 15.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004484/0.5378, allocations: 381.6 kB / 0.5981 GB, free: 15.12 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.354e-05/0.5379, allocations: 29.7 kB / 0.5981 GB, free: 15.09 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000212/0.5381, allocations: 252.7 kB / 0.5984 GB, free: 14.84 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.5382, allocations: 141.4 kB / 0.5985 GB, free: 14.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.5384, allocations: 78.08 kB / 0.5986 GB, free: 14.62 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.5386, allocations: 354.8 kB / 0.5989 GB, free: 14.26 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003529/0.5389, allocations: 138.5 kB / 0.5991 GB, free: 14.12 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003744/0.5393, allocations: 194.6 kB / 0.5992 GB, free: 13.91 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007055/0.54, allocations: 335.7 kB / 0.5996 GB, free: 13.57 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.54, allocations: 0 / 0.5996 GB, free: 13.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001019/0.5411, allocations: 486 kB / 0.6 GB, free: 13.08 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.5411, allocations: 8 kB / 0.6 GB, free: 13.07 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.5411, allocations: 0 / 0.6 GB, free: 13.07 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005543/0.5417, allocations: 108.9 kB / 0.6001 GB, free: 12.96 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003912/0.5421, allocations: 83.89 kB / 0.6002 GB, free: 12.88 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000695/0.5428, allocations: 0.6399 MB / 0.6008 GB, free: 12.22 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003754/0.5432, allocations: 20.03 kB / 0.6009 GB, free: 12.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.515e-05/0.5432, allocations: 16 kB / 0.6009 GB, free: 12.18 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005299/0.5438, allocations: 256.9 kB / 0.6011 GB, free: 11.93 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003388/0.5441, allocations: 190.3 kB / 0.6013 GB, free: 11.72 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006323/0.5448, allocations: 322.7 kB / 0.6016 GB, free: 11.38 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.05e-06/0.5448, allocations: 0 / 0.6016 GB, free: 11.38 MB / 462.1 MB Notification: Performance of matching and sorting (n=48) (initialization_lambda0): time 0.00103/0.5458, allocations: 474.1 kB / 0.6021 GB, free: 10.91 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.5458, allocations: 15.83 kB / 0.6021 GB, free: 10.89 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.5458, allocations: 4 kB / 0.6021 GB, free: 10.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001983/0.546, allocations: 55.55 kB / 0.6021 GB, free: 10.84 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003675/0.5464, allocations: 91.88 kB / 0.6022 GB, free: 10.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00196/0.5484, allocations: 1.781 MB / 0.604 GB, free: 8.832 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003515/0.5488, allocations: 19.98 kB / 0.604 GB, free: 8.812 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.537e-05/0.5488, allocations: 16 kB / 0.604 GB, free: 8.797 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.0001788/0.549, allocations: 200.2 kB / 0.6042 GB, free: 8.594 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.381e-05/0.5491, allocations: 51.72 kB / 0.6042 GB, free: 8.543 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001259/0.5504, allocations: 0.6848 MB / 0.6049 GB, free: 7.852 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.5504, allocations: 3 kB / 0.6049 GB, free: 7.852 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.88e-06/0.5504, allocations: 3.938 kB / 0.6049 GB, free: 7.848 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002062/0.5506, allocations: 149 kB / 0.605 GB, free: 7.684 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.129e-05/0.5507, allocations: 12 kB / 0.6051 GB, free: 7.672 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003095/0.551, allocations: 27.97 kB / 0.6051 GB, free: 7.645 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/0.5512, allocations: 27.91 kB / 0.6051 GB, free: 7.617 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.001038/0.5522, allocations: 466.8 kB / 0.6056 GB, free: 7.168 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