Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPumps.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001659/0.001659, allocations: 78.02 kB / 21.28 MB, free: 0.5312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001817/0.001817, allocations: 160.5 kB / 24.55 MB, free: 3.828 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.491/1.491, allocations: 177.2 MB / 204.9 MB, free: 9.289 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo): time 0.1492/0.1492, allocations: 19.7 MB / 281 MB, free: 13.07 MB / 270.1 MB " [Timeout remaining time 180] Using package ThermoPower with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermoPower.Test.WaterComponents.WaterPumps,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPumps") translateModel(ThermoPower.Test.WaterComponents.WaterPumps,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPumps") [Timeout 660] "Notification: ThermoPower requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002091, allocations: 75.89 kB / 417.6 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2732, allocations: 60.44 MB / 478.1 MB, free: 15.56 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.WaterPumps): time 0.08708/0.3603, allocations: 75.37 MB / 0.5405 GB, free: 6.699 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01603/0.3763, allocations: 10.01 MB / 0.5503 GB, free: 12.65 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009394/0.3773, allocations: 43.56 kB / 0.5503 GB, free: 12.61 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001373/0.3786, allocations: 381.2 kB / 0.5507 GB, free: 12.23 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002199/0.3808, allocations: 0.7108 MB / 0.5514 GB, free: 11.52 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0182/0.399, allocations: 5.526 MB / 0.5567 GB, free: 5.996 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.003007/0.402, allocations: 1.678 MB / 0.5584 GB, free: 4.309 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001082/0.4031, allocations: 475.1 kB / 0.5588 GB, free: 3.832 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003254/0.4064, allocations: 1.539 MB / 0.5603 GB, free: 2.289 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001412/0.4078, allocations: 0.7121 MB / 0.561 GB, free: 1.574 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001888/0.408, allocations: 64 kB / 0.5611 GB, free: 1.512 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01256/0.4205, allocations: 6.173 MB / 0.5671 GB, free: 11.33 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003265/0.4209, allocations: 175.2 kB / 0.5673 GB, free: 11.16 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006811/0.4216, allocations: 398.2 kB / 0.5677 GB, free: 10.77 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009545/0.4311, allocations: 4.387 MB / 0.572 GB, free: 6.371 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.4311, allocations: 0 / 0.572 GB, free: 6.371 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4311, allocations: 0 / 0.572 GB, free: 6.371 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.899e-05/0.4311, allocations: 0 / 0.572 GB, free: 6.371 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.004556/0.4357, allocations: 1.605 MB / 0.5735 GB, free: 4.727 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.4358, allocations: 12.03 kB / 0.5735 GB, free: 4.715 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004617/0.4362, allocations: 136.2 kB / 0.5737 GB, free: 4.582 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009547/0.4372, allocations: 485.8 kB / 0.5741 GB, free: 4.074 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002125/0.4374, allocations: 216.8 kB / 0.5743 GB, free: 3.828 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.4375, allocations: 76.12 kB / 0.5744 GB, free: 3.754 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001599/0.4391, allocations: 0.7795 MB / 0.5752 GB, free: 2.938 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.4391, allocations: 4 kB / 0.5752 GB, free: 2.934 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.357e-05/0.4392, allocations: 28 kB / 0.5752 GB, free: 2.906 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.975e-05/0.4392, allocations: 16 kB / 0.5752 GB, free: 2.891 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00151/0.4407, allocations: 0.5827 MB / 0.5758 GB, free: 2.309 MB / 478.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.003392/0.4441, allocations: 2.133 MB / 0.5779 GB, free: 112 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001446/0.4455, allocations: 0.4944 MB / 0.5784 GB, free: 15.61 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004407/0.446, allocations: 190.2 kB / 0.5785 GB, free: 15.42 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06197/0.508, allocations: 17.59 MB / 0.5957 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.09e-05/0.508, allocations: 39.06 kB / 0.5957 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=53): time 2.935e-06/0.508, allocations: 0 / 0.5957 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of matching and sorting (n=53): time 0.0053/0.5133, allocations: 1.205 MB / 0.5969 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.166e-05/0.5134, allocations: 59.91 kB / 0.597 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006063/0.514, allocations: 471 kB / 0.5974 GB, free: 12 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.227e-05/0.514, allocations: 33.7 kB / 0.5975 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003132/0.5143, allocations: 388.5 kB / 0.5978 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001779/0.5145, allocations: 194.3 kB / 0.598 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001777/0.5147, allocations: 114.3 kB / 0.5981 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001976/0.5149, allocations: 378.7 kB / 0.5985 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004465/0.5153, allocations: 175.4 kB / 0.5987 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005354/0.5159, allocations: 270.1 kB / 0.5989 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001003/0.5169, allocations: 472.9 kB / 0.5994 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.5169, allocations: 0 / 0.5994 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002091/0.519, allocations: 0.749 MB / 0.6001 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.519, allocations: 11.94 kB / 0.6001 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.519, allocations: 4 kB / 0.6001 GB, free: 9.129 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001525/0.5205, allocations: 306.6 kB / 0.6004 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004467/0.521, allocations: 99.81 kB / 0.6005 GB, free: 8.723 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001996/0.523, allocations: 1.883 MB / 0.6023 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004794/0.5234, allocations: 67.59 kB / 0.6024 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-05/0.5235, allocations: 27.98 kB / 0.6024 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006162/0.5241, allocations: 290.2 kB / 0.6027 GB, free: 6.383 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004874/0.5246, allocations: 262.1 kB / 0.603 GB, free: 6.086 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008609/0.5255, allocations: 441.2 kB / 0.6034 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.114e-06/0.5255, allocations: 0 / 0.6034 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of matching and sorting (n=68) (initialization_lambda0): time 0.001641/0.5271, allocations: 0.6828 MB / 0.604 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.5271, allocations: 11.94 kB / 0.6041 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.5271, allocations: 7.938 kB / 0.6041 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000551/0.5277, allocations: 174.6 kB / 0.6042 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004688/0.5282, allocations: 103.9 kB / 0.6043 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00602/0.5342, allocations: 5.048 MB / 0.6093 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004752/0.5346, allocations: 55.77 kB / 0.6093 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.161e-05/0.5347, allocations: 24.31 kB / 0.6093 GB, free: 15.2 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (Pump3.int_Np,Pump2.int_Np,Pump1.int_Np,Pump3.inletFluidState.phase,Pump2.inletFluidState.phase,Pump1.inletFluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002263/0.5349, allocations: 208.1 kB / 0.6095 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001352/0.5351, allocations: 75.5 kB / 0.6096 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002604/0.5377, allocations: 1.479 MB / 0.611 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.5377, allocations: 3.984 kB / 0.6111 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.5377, allocations: 4 kB / 0.6111 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002224/0.5379, allocations: 123.2 kB / 0.6112 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.995e-05/0.538, allocations: 12 kB / 0.6112 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000342/0.5383, allocations: 35.86 kB / 0.6112 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.5384, allocations: 36.42 kB / 0.6113 GB, free: 13.2 MB / 0.5137 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:534:7-536:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): Pump1.w = 2.0 * Pump1.w_single 2/2 (1): Pump1.q_single = Pump1.w_single / Pump1.rho 3/3 (1): Pump1.head = if noEvent(Pump1.s > 0.0) or not Pump1.CheckValve then ThermoPower.Test.WaterComponents.WaterPumps.Pump1.flowCharacteristic(0.9999999993333333 * Pump1.q_single, {0.001, 0.0015}, {30.0, 0.0}) else 90.0 - Pump1.s * 20.394324259558566 4/4 (1): Pump1.head = 0.10197162129779283 * Pump1.dp / Pump1.rho 5/5 (1): Pump1.dp = Pump1.outfl.p - Source1.p0 6/6 (1): Pump1.w = ValveLin1.Kv * ValveLin3.cmd * (Pump1.outfl.p - SinkP3.p) 7/7 (1): Pump1.hin = if Pump1.w >= 0.0 then Source1.h else SinkP1.h 8/8 (16): $cse5 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(Source1.p0, Pump1.hin, 0, 0) 9/24 (1): Pump1.rho = $cse5.rho 10/25 (1): Pump1.q_single = if noEvent(Pump1.s > 0.0) or not Pump1.CheckValve then 5e-4 * Pump1.s else 0.0 Variables: 1: Pump1.s:VARIABLE(start = 1.0 unit = \"1\" ) \"Auxiliary non-dimensional variable\" type: Real 2: Pump1.rho:VARIABLE(min = 0.0 max = 1e5 start = 1000.0 unit = \"kg/m3\" nominal = 1000.0 ) \"Liquid density\" type: Real 3: $cse5.x:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse5.T:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse5.cv:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse5.s:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse5.R_s:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse5.pt:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse5.vt:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse5.vp:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse5.pd:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse5.h:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse5.phase:DISCRETE(protected = true ) type: Integer unreplaceable 14: $cse5.p:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse5.rho:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse5.cp:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse5.region:DISCRETE(protected = true ) type: Integer unreplaceable 18: $cse5.dpT:VARIABLE(protected = true ) type: Real unreplaceable 19: Pump1.hin:VARIABLE(min = -1e10 max = 1e10 start = 1e5 unit = \"J/kg\" nominal = 5e5 ) \"Enthalpy of entering fluid\" type: Real 20: Pump1.w:VARIABLE(min = -1e5 max = 1e5 unit = \"kg/s\" ) \"Mass flow rate (total)\" type: Real 21: Pump1.outfl.p:VARIABLE(flow=false min = 611.657 max = 1e8 start = 5e6 unit = \"Pa\" nominal = 1e6 ) \"Thermodynamic pressure in the connection point\" type: Real 22: Pump1.dp:VARIABLE(unit = \"Pa\" ) \"Outlet pressure minus inlet pressure\" type: Real 23: Pump1.head:VARIABLE(min = 0.0 unit = \"m\" ) \"Pump head\" type: Real 24: Pump1.q_single:VARIABLE(start = 5e-4 * Pump1.wstart unit = \"m3/s\" ) \"Volume flow rate (single pump)\" type: Real 25: Pump1.w_single:VARIABLE(min = -1e5 max = 1e5 start = 0.5 * Pump1.wstart unit = \"kg/s\" ) \"Mass flow rate (single pump)\" type: Real [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9818:5-9819:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009203/0.5393, allocations: 429 kB / 0.6117 GB, free: 12.78 MB / 0.5137 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoPower.Test.WaterComponents.WaterPumps could not be translated " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 2.93109553901013] Failed to read output from testmodel.py, exit status != 0: 0.5485873729921877 0.563686507 0.12914529800000002 Calling exit ...