Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPumpMech.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.001331/0.001331, allocations: 78.25 kB / 21.28 MB, free: 0.5273 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.001492/0.001492, allocations: 160.6 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.421/1.421, allocations: 177.2 MB / 204.9 MB, free: 9.273 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.2165/0.2165, allocations: 19.71 MB / 281 MB, free: 13.05 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.WaterPumpMech,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPumpMech") translateModel(ThermoPower.Test.WaterComponents.WaterPumpMech,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPumpMech") [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.002184/0.002184, allocations: 64.09 kB / 417.6 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.293, allocations: 60.46 MB / 478.1 MB, free: 15.54 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.WaterPumpMech): time 0.03954/0.3325, allocations: 32.8 MB / 0.4989 GB, free: 1.363 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01164/0.3442, allocations: 7.791 MB / 0.5065 GB, free: 9.547 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004027/0.3446, allocations: 23.81 kB / 0.5065 GB, free: 9.523 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005658/0.3451, allocations: 174.6 kB / 0.5067 GB, free: 9.352 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008956/0.346, allocations: 345.8 kB / 0.507 GB, free: 9.012 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01213/0.3582, allocations: 4.532 MB / 0.5115 GB, free: 4.484 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001266/0.3594, allocations: 0.8985 MB / 0.5123 GB, free: 3.582 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005041/0.3599, allocations: 328.3 kB / 0.5126 GB, free: 3.258 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001143/0.3611, allocations: 0.717 MB / 0.5133 GB, free: 2.539 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005174/0.3616, allocations: 362.5 kB / 0.5137 GB, free: 2.184 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.639e-05/0.3617, allocations: 56 kB / 0.5137 GB, free: 2.129 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01112/0.3728, allocations: 5.95 MB / 0.5196 GB, free: 12.17 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001828/0.373, allocations: 127.5 kB / 0.5197 GB, free: 12.05 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003727/0.3734, allocations: 258.8 kB / 0.5199 GB, free: 11.79 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00709/0.3804, allocations: 4.002 MB / 0.5238 GB, free: 7.781 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3804, allocations: 0 / 0.5238 GB, free: 7.781 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3804, allocations: 0 / 0.5238 GB, free: 7.781 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.501e-05/0.3805, allocations: 0 / 0.5238 GB, free: 7.781 MB / 430.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.003031/0.3835, allocations: 1.196 MB / 0.525 GB, free: 6.547 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.3835, allocations: 8.031 kB / 0.525 GB, free: 6.539 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002573/0.3838, allocations: 80.55 kB / 0.5251 GB, free: 6.461 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006485/0.3844, allocations: 340.6 kB / 0.5254 GB, free: 6.102 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/0.3846, allocations: 88.97 kB / 0.5255 GB, free: 6.004 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.3847, allocations: 56.11 kB / 0.5256 GB, free: 5.949 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001095/0.3858, allocations: 0.5443 MB / 0.5261 GB, free: 5.383 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/0.3858, allocations: 0 / 0.5261 GB, free: 5.383 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.885e-05/0.3858, allocations: 20 kB / 0.5261 GB, free: 5.363 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/0.3858, allocations: 12 kB / 0.5261 GB, free: 5.352 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009738/0.3868, allocations: 407.6 kB / 0.5265 GB, free: 4.949 MB / 430.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.002522/0.3893, allocations: 1.456 MB / 0.5279 GB, free: 3.438 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007157/0.3901, allocations: 306.7 kB / 0.5282 GB, free: 3.129 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003655/0.3904, allocations: 161.8 kB / 0.5284 GB, free: 2.973 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06133/0.4517, allocations: 17.54 MB / 0.5455 GB, free: 1.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.595e-05/0.4518, allocations: 42.5 kB / 0.5455 GB, free: 1.359 MB / 446.1 MB Notification: Performance of pre-optimization done (n=35): time 2.455e-06/0.4518, allocations: 0 / 0.5455 GB, free: 1.359 MB / 446.1 MB Notification: Performance of matching and sorting (n=38): time 0.004325/0.4561, allocations: 1.38 MB / 0.5469 GB, free: 15.92 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.4562, allocations: 59.16 kB / 0.5469 GB, free: 15.85 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003551/0.4565, allocations: 309.7 kB / 0.5472 GB, free: 15.54 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.621e-05/0.4566, allocations: 33.7 kB / 0.5473 GB, free: 15.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002241/0.4568, allocations: 276.3 kB / 0.5475 GB, free: 15.23 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/0.4569, allocations: 130.8 kB / 0.5477 GB, free: 15.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.457, allocations: 74.19 kB / 0.5477 GB, free: 15.02 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.4572, allocations: 346.8 kB / 0.5481 GB, free: 14.68 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003609/0.4576, allocations: 142.8 kB / 0.5482 GB, free: 14.53 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000387/0.4579, allocations: 195.2 kB / 0.5484 GB, free: 14.32 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007349/0.4587, allocations: 335 kB / 0.5487 GB, free: 13.98 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.4587, allocations: 0 / 0.5487 GB, free: 13.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001078/0.4598, allocations: 465.9 kB / 0.5491 GB, free: 13.51 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.4598, allocations: 11.94 kB / 0.5492 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.4598, allocations: 4.156 kB / 0.5492 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005654/0.4604, allocations: 100.8 kB / 0.5493 GB, free: 13.39 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004029/0.4608, allocations: 91.88 kB / 0.5493 GB, free: 13.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007328/0.4615, allocations: 0.6304 MB / 0.55 GB, free: 12.65 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002764/0.4618, allocations: 23.97 kB / 0.55 GB, free: 12.62 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.21e-05/0.4618, allocations: 19.98 kB / 0.55 GB, free: 12.61 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004643/0.4623, allocations: 253 kB / 0.5502 GB, free: 12.36 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003736/0.4626, allocations: 186.9 kB / 0.5504 GB, free: 12.15 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006915/0.4633, allocations: 329.9 kB / 0.5507 GB, free: 11.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.644e-06/0.4633, allocations: 0 / 0.5507 GB, free: 11.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=48) (initialization_lambda0): time 0.001049/0.4644, allocations: 461.8 kB / 0.5512 GB, free: 11.34 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.037e-06/0.4644, allocations: 8 kB / 0.5512 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.4644, allocations: 8.094 kB / 0.5512 GB, free: 11.33 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002101/0.4646, allocations: 60.75 kB / 0.5513 GB, free: 11.27 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003821/0.465, allocations: 87.89 kB / 0.5513 GB, free: 11.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001987/0.467, allocations: 1.634 MB / 0.5529 GB, free: 9.441 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002745/0.4673, allocations: 31.97 kB / 0.553 GB, free: 9.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.862e-05/0.4673, allocations: 15.94 kB / 0.553 GB, free: 9.395 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.0001643/0.4674, allocations: 204.1 kB / 0.5532 GB, free: 9.188 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.68e-05/0.4675, allocations: 43.72 kB / 0.5532 GB, free: 9.145 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001301/0.4688, allocations: 0.6875 MB / 0.5539 GB, free: 8.449 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.4688, allocations: 3.938 kB / 0.5539 GB, free: 8.445 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.4688, allocations: 0 / 0.5539 GB, free: 8.445 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.469, allocations: 67.61 kB / 0.554 GB, free: 8.379 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.58e-05/0.469, allocations: 8 kB / 0.554 GB, free: 8.371 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002724/0.4693, allocations: 20.11 kB / 0.554 GB, free: 8.352 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.299e-05/0.4694, allocations: 35.94 kB / 0.554 GB, free: 8.316 MB / 462.1 MB [/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): 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 * 60.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): $cse2 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(Source.p0, Pump.hin, 0, 0) 7/22 (1): Pump.rho = $cse2.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: $cse2.T:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse2.x:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse2.vp:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse2.s:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse2.phase:DISCRETE(protected = true ) type: Integer unreplaceable 9: $cse2.pt:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse2.pd:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse2.region:DISCRETE(protected = true ) type: Integer unreplaceable 12: $cse2.p:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse2.cv:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse2.h:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse2.dpT:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse2.rho:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse2.R_s:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse2.cp:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse2.vt: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:9818:5-9819:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001042/0.4704, allocations: 462.7 kB / 0.5545 GB, free: 7.863 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 " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.863696871092543] Failed to read output from testmodel.py, exit status != 0: 0.47925647301599383 0.49344178099999997 0.109652835 Calling exit ...