Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.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.001798/0.001798, allocations: 78.09 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.002225/0.002225, allocations: 161.7 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.463/1.463, allocations: 177.2 MB / 204.9 MB, free: 9.281 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.1499/0.1499, allocations: 19.72 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.TestCoolingTowerClosed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed") translateModel(ThermoPower.Test.WaterComponents.TestCoolingTowerClosed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed") [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.002871/0.002871, allocations: 67.84 kB / 417.6 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.265, allocations: 60.45 MB / 478.1 MB, free: 15.54 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestCoolingTowerClosed): time 0.217/0.4821, allocations: 162.9 MB / 0.626 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01447/0.4965, allocations: 9.466 MB / 0.6352 GB, free: 5.273 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007343/0.4973, allocations: 23.81 kB / 0.6352 GB, free: 5.25 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001097/0.4984, allocations: 325.8 kB / 0.6356 GB, free: 4.93 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.001834/0.5002, allocations: 0.7385 MB / 0.6363 GB, free: 4.188 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.2689/0.7691, allocations: 5.282 MB / 0.6414 GB, free: 4.547 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.005648/0.7747, allocations: 3.389 MB / 0.6447 GB, free: 4.539 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001496/0.7762, allocations: 0.9187 MB / 0.6456 GB, free: 4.508 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002714/0.7789, allocations: 1.59 MB / 0.6472 GB, free: 4.508 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00192/0.7808, allocations: 1.321 MB / 0.6485 GB, free: 4.508 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0003038/0.7811, allocations: 180.1 kB / 0.6487 GB, free: 4.508 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01319/0.7943, allocations: 7.211 MB / 0.6557 GB, free: 4.508 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001203/0.7955, allocations: 0.892 MB / 0.6566 GB, free: 4.508 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001772/0.7973, allocations: 0.9881 MB / 0.6575 GB, free: 4.508 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.01413/0.8114, allocations: 6.518 MB / 0.6639 GB, free: 4.234 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.8115, allocations: 2.906 kB / 0.6639 GB, free: 4.234 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.633e-06/0.8115, allocations: 0.9062 kB / 0.6639 GB, free: 4.234 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.622e-05/0.8115, allocations: 0 / 0.6639 GB, free: 4.234 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 451 * Number of variables: 451 Notification: Performance of Generate backend data structure: time 0.008109/0.8196, allocations: 3.058 MB / 0.6669 GB, free: 3.086 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.8196, allocations: 10.12 kB / 0.6669 GB, free: 3.086 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003031/0.8227, allocations: 481.4 kB / 0.6674 GB, free: 2.98 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002245/0.8249, allocations: 1.068 MB / 0.6684 GB, free: 2.703 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001357/0.8251, allocations: 186.2 kB / 0.6686 GB, free: 2.637 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002985/0.8254, allocations: 179.6 kB / 0.6688 GB, free: 2.633 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008573/0.8339, allocations: 4.004 MB / 0.6727 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.088e-05/0.834, allocations: 4.344 kB / 0.6727 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001808/0.8342, allocations: 75.66 kB / 0.6727 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.849e-05/0.8342, allocations: 93.77 kB / 0.6728 GB, free: 2.352 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008267/0.8425, allocations: 3.964 MB / 0.6767 GB, free: 2.336 MB / 0.5294 GB 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.01255/0.8551, allocations: 7.39 MB / 0.6839 GB, free: 16.64 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006667/0.8617, allocations: 2.71 MB / 0.6866 GB, free: 16.59 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001723/0.8634, allocations: 1.067 MB / 0.6876 GB, free: 16.58 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1329/0.9964, allocations: 38.14 MB / 0.7249 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.506e-05/0.9964, allocations: 54.38 kB / 0.7249 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=209): time 5.06e-06/0.9965, allocations: 0 / 0.7249 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of matching and sorting (n=210): time 0.05561/1.052, allocations: 13.92 MB / 0.7385 GB, free: 9.766 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.859e-05/1.052, allocations: 73.41 kB / 0.7386 GB, free: 9.68 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/1.053, allocations: 0.6959 MB / 0.7392 GB, free: 9.137 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0002325/1.053, allocations: 62.08 kB / 0.7393 GB, free: 9.098 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004699/1.054, allocations: 0.5897 MB / 0.7399 GB, free: 8.656 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008195/1.055, allocations: 0.755 MB / 0.7406 GB, free: 8.004 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009544/1.056, allocations: 0.5111 MB / 0.7411 GB, free: 7.652 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001935/1.056, allocations: 358.5 kB / 0.7415 GB, free: 7.32 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002424/1.058, allocations: 1.327 MB / 0.7428 GB, free: 6.43 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002989/1.061, allocations: 1.594 MB / 0.7443 GB, free: 4.781 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02995/1.091, allocations: 8.415 MB / 0.7525 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-05/1.091, allocations: 4 kB / 0.7525 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of matching and sorting (n=246) (initialization): time 0.01052/1.102, allocations: 4.611 MB / 0.757 GB, free: 7.742 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.856e-05/1.102, allocations: 8 kB / 0.757 GB, free: 7.734 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/1.102, allocations: 7.984 kB / 0.7571 GB, free: 7.727 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01641/1.118, allocations: 4.42 MB / 0.7614 GB, free: 3.32 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008523/1.119, allocations: 177.3 kB / 0.7615 GB, free: 3.156 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0119/1.131, allocations: 5.726 MB / 0.7671 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001707/1.133, allocations: 75.95 kB / 0.7672 GB, free: 13.34 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003783/1.133, allocations: 155.9 kB / 0.7674 GB, free: 13.18 MB / 0.6075 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.cooledFlow.p = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0034/1.136, allocations: 1.726 MB / 0.769 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002911/1.139, allocations: 1.591 MB / 0.7706 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02966/1.169, allocations: 8.401 MB / 0.7788 GB, free: 1.355 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.165e-06/1.169, allocations: 0 / 0.7788 GB, free: 1.355 MB / 0.6075 GB Notification: Performance of matching and sorting (n=246) (initialization_lambda0): time 0.01109/1.18, allocations: 4.611 MB / 0.7833 GB, free: 12.77 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/1.18, allocations: 8 kB / 0.7833 GB, free: 12.76 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/1.18, allocations: 4 kB / 0.7833 GB, free: 12.75 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01674/1.197, allocations: 4.431 MB / 0.7876 GB, free: 8.324 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009056/1.198, allocations: 169.4 kB / 0.7878 GB, free: 8.168 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01286/1.211, allocations: 5.721 MB / 0.7934 GB, free: 2.426 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001803/1.212, allocations: 79.91 kB / 0.7935 GB, free: 2.348 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004308/1.213, allocations: 151.9 kB / 0.7936 GB, free: 2.199 MB / 0.6231 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: $DER.cooledFlow.p = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 7 (cooledFlow.fluidState[6].phase,cooledFlow.fluidState[5].phase,cooledFlow.fluidState[4].phase,cooledFlow.fluidState[3].phase,cooledFlow.fluidState[2].phase,cooledFlow.fluidState[1].phase,cooledFlow.friction.NoFriction) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 79 * 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 {(30,137)} Notification: Performance of prepare postOptimizeDAE: time 0.000758/1.214, allocations: 278.4 kB / 0.7939 GB, free: 1.93 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006465/1.214, allocations: 135.2 kB / 0.794 GB, free: 1.797 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02789/1.242, allocations: 19.62 MB / 0.8132 GB, free: 14.07 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.547e-05/1.242, allocations: 11.95 kB / 0.8132 GB, free: 14.05 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.829e-06/1.242, allocations: 0 / 0.8132 GB, free: 14.05 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001588/1.244, allocations: 0.5581 MB / 0.8137 GB, free: 13.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003628/1.244, allocations: 63.88 kB / 0.8138 GB, free: 13.43 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001671/1.246, allocations: 151.7 kB / 0.8139 GB, free: 13.29 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004279/1.246, allocations: 169.7 kB / 0.8141 GB, free: 13.12 MB / 0.6544 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): closedCircuitDischarge.p0 + cooledFlow.Dpstat - sourceClosedCircuit.flange.p = 0.0 2/2 (1): cooledFlow.h[1] = ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.sourceClosedCircuit.Medium.specificEnthalpy_pTX(sourceClosedCircuit.flange.p, sourceClosedCircuit.T, {}, 0) 3/3 (16): $cse50 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(cooledFlow.p, cooledFlow.h[1], 0, 0) 4/19 (1): cooledFlow.rho[1] = $cse50.rho 5/20 (1): cooledFlow.rhobar[1] = 0.5 * (cooledFlow.rho[1] + cooledFlow.rho[2]) 6/21 (1): cooledFlow.Dpstat = 19.6133 * (cooledFlow.rhobar[1] + cooledFlow.rhobar[2] + cooledFlow.rhobar[3] + cooledFlow.rhobar[4] + cooledFlow.rhobar[5]) Variables: 1: cooledFlow.Dpstat:VARIABLE(unit = \"Pa\" ) \"Pressure drop due to static head\" type: Real 2: cooledFlow.rhobar[1]:VARIABLE(min = 0.0 max = 1e5 start = 150.0 unit = \"kg/m3\" nominal = 500.0 protected = true ) \"Fluid average density\" type: Real [5] 3: cooledFlow.rho[1]:VARIABLE(min = 0.0 max = 1e5 start = 150.0 unit = \"kg/m3\" nominal = 500.0 ) \"Fluid nodal density\" type: Real [6] 4: $cse50.pd:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse50.s:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse50.cv:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse50.vt:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse50.dpT:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse50.cp:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse50.h:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse50.p:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse50.x:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse50.rho:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse50.phase:DISCRETE(protected = true ) type: Integer unreplaceable 15: $cse50.pt:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse50.region:DISCRETE(protected = true ) type: Integer unreplaceable 17: $cse50.T:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse50.R_s:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse50.vp:VARIABLE(protected = true ) type: Real unreplaceable 20: cooledFlow.h[1]:VARIABLE(min = -1e10 max = 1e10 start = 1e5 unit = \"J/kg\" nominal = 5e5 ) \"Fluid specific enthalpy at the nodes\" type: Real [6] 21: sourceClosedCircuit.flange.p:VARIABLE(flow=false min = 611.657 max = 1e8 start = 5e6 unit = \"Pa\" nominal = 1e6 ) \"Thermodynamic pressure in the connection point\" 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.00138/1.248, allocations: 0.5554 MB / 0.8146 GB, free: 12.58 MB / 0.6544 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoPower.Test.WaterComponents.TestCoolingTowerClosed could not be translated " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.666851782007143] Failed to read output from testmodel.py, exit status != 0: 1.2587721879826859 1.272577407 0.45769503699999997 Calling exit ...