Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.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.TestCoolingTowerClosed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed") translateModel(ThermoPower.Test.WaterComponents.TestCoolingTowerClosed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001408/0.001409, allocations: 110.3 kB / 17.74 MB, free: 5.355 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.001677/0.001677, allocations: 185.4 kB / 18.68 MB, free: 4.43 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.506/1.506, allocations: 205.1 MB / 224.6 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3236/0.3236, allocations: 48.84 MB / 320.8 MB, free: 11.02 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.00182/0.00182, allocations: 63.91 kB / 451.2 MB, free: 8.555 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1477, allocations: 59.17 MB / 0.4984 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestCoolingTowerClosed): time 0.5608/0.7086, allocations: 181.2 MB / 0.6753 GB, free: 4.562 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0155/0.7242, allocations: 11.09 MB / 0.6862 GB, free: 9.445 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009243/0.7251, allocations: 15.88 kB / 0.6862 GB, free: 9.43 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001165/0.7263, allocations: 301.9 kB / 0.6865 GB, free: 9.133 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.001849/0.7282, allocations: 0.7036 MB / 0.6871 GB, free: 8.426 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.01658/0.7448, allocations: 5.435 MB / 0.6925 GB, free: 2.988 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.003917/0.7488, allocations: 3.193 MB / 0.6956 GB, free: 15.79 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001766/0.7505, allocations: 1.022 MB / 0.6966 GB, free: 14.76 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002142/0.7527, allocations: 1.068 MB / 0.6976 GB, free: 13.69 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002444/0.7552, allocations: 1.246 MB / 0.6988 GB, free: 12.44 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.000847/0.756, allocations: 172 kB / 0.699 GB, free: 12.27 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01975/0.7758, allocations: 7.56 MB / 0.7064 GB, free: 4.703 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001519/0.7774, allocations: 0.8573 MB / 0.7072 GB, free: 3.844 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.002512/0.7799, allocations: 1.085 MB / 0.7083 GB, free: 2.754 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01754/0.7974, allocations: 6.347 MB / 0.7145 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 1.141e-05/0.7975, allocations: 8 kB / 0.7145 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.286e-06/0.7976, allocations: 0 / 0.7145 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.031e-05/0.7976, allocations: 0 / 0.7145 GB, free: 12.38 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 419 * Number of variables: 419 Notification: Performance of Generate backend data structure: time 0.009638/0.8072, allocations: 3.03 MB / 0.7174 GB, free: 9.289 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/0.8073, allocations: 11.89 kB / 0.7175 GB, free: 9.277 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003/0.8103, allocations: 464.8 kB / 0.7179 GB, free: 8.824 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002213/0.8125, allocations: 1.084 MB / 0.719 GB, free: 7.695 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.187e-05/0.8126, allocations: 119.5 kB / 0.7191 GB, free: 7.578 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000293/0.8129, allocations: 164.5 kB / 0.7192 GB, free: 7.418 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008831/0.8218, allocations: 3.793 MB / 0.7229 GB, free: 3.559 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.677e-05/0.8219, allocations: 0 / 0.7229 GB, free: 3.559 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001766/0.8221, allocations: 64 kB / 0.723 GB, free: 3.496 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.917e-05/0.8222, allocations: 91.11 kB / 0.7231 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009083/0.8313, allocations: 3.857 MB / 0.7268 GB, free: 15.54 MB / 0.5762 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.01733/0.8486, allocations: 10.71 MB / 0.7373 GB, free: 4.008 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007614/0.8563, allocations: 2.858 MB / 0.7401 GB, free: 1.145 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002009/0.8583, allocations: 1.166 MB / 0.7412 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.518/1.376, allocations: 68.77 MB / 0.8084 GB, free: 57.15 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.312e-05/1.376, allocations: 54.19 kB / 0.8084 GB, free: 57.11 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=209): time 5.21e-06/1.376, allocations: 0 / 0.8084 GB, free: 57.11 MB / 0.5919 GB Notification: Performance of matching and sorting (n=210): time 0.04685/1.423, allocations: 14.4 MB / 0.8225 GB, free: 50.38 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.428e-05/1.423, allocations: 77.41 kB / 0.8226 GB, free: 50.29 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008571/1.424, allocations: 0.7943 MB / 0.8234 GB, free: 49.68 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001674/1.424, allocations: 60.2 kB / 0.8234 GB, free: 49.64 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002617/1.425, allocations: 0.5351 MB / 0.8239 GB, free: 49.32 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004848/1.425, allocations: 0.7606 MB / 0.8247 GB, free: 48.77 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007104/1.426, allocations: 0.506 MB / 0.8252 GB, free: 48.42 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.031e-05/1.426, allocations: 305.1 kB / 0.8255 GB, free: 48.12 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001848/1.428, allocations: 1.335 MB / 0.8268 GB, free: 47.23 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002152/1.43, allocations: 1.554 MB / 0.8283 GB, free: 46.09 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02457/1.455, allocations: 8.472 MB / 0.8366 GB, free: 39.54 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/1.455, allocations: 4.5 kB / 0.8366 GB, free: 39.54 MB / 0.5919 GB Notification: Performance of matching and sorting (n=245) (initialization): time 0.008935/1.464, allocations: 4.685 MB / 0.8411 GB, free: 36.38 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/1.464, allocations: 16.5 kB / 0.8412 GB, free: 36.36 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.915e-05/1.464, allocations: 4 kB / 0.8412 GB, free: 36.36 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01399/1.478, allocations: 4.429 MB / 0.8455 GB, free: 32.67 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007614/1.478, allocations: 172.5 kB / 0.8456 GB, free: 32.52 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01004/1.489, allocations: 5.729 MB / 0.8512 GB, free: 27.82 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001761/1.49, allocations: 78.06 kB / 0.8513 GB, free: 27.75 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004005/1.491, allocations: 151.9 kB / 0.8515 GB, free: 27.6 MB / 0.5919 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.002664/1.493, allocations: 1.702 MB / 0.8531 GB, free: 25.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002213/1.496, allocations: 1.564 MB / 0.8547 GB, free: 24.28 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02542/1.521, allocations: 8.46 MB / 0.8629 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.611e-05/1.521, allocations: 0 / 0.8629 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of matching and sorting (n=245) (initialization_lambda0): time 0.01011/1.531, allocations: 4.692 MB / 0.8675 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/1.531, allocations: 8.562 kB / 0.8675 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/1.531, allocations: 9.031 kB / 0.8675 GB, free: 11.08 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01386/1.545, allocations: 4.429 MB / 0.8718 GB, free: 6.645 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007364/1.546, allocations: 169.4 kB / 0.872 GB, free: 6.488 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009825/1.556, allocations: 5.718 MB / 0.8776 GB, free: 0.7539 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001737/1.558, allocations: 75.95 kB / 0.8777 GB, free: 0.6797 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003965/1.558, allocations: 151.9 kB / 0.8778 GB, free: 0.5312 MB / 0.5919 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: 19 * Number of states: 0 () * Number of discrete variables: 6 (cooledFlow.fluidState[6].phase,cooledFlow.fluidState[5].phase,cooledFlow.fluidState[4].phase,cooledFlow.fluidState[3].phase,cooledFlow.fluidState[2].phase,cooledFlow.fluidState[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 78 * 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.0008375/1.559, allocations: 272.1 kB / 0.8781 GB, free: 276 kB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007091/1.56, allocations: 155.1 kB / 0.8782 GB, free: 120 kB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02392/1.584, allocations: 18.71 MB / 0.8965 GB, free: 13.37 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.186e-05/1.584, allocations: 15.95 kB / 0.8965 GB, free: 13.36 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.807e-06/1.584, allocations: 1.094 kB / 0.8965 GB, free: 13.36 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001504/1.585, allocations: 0.6368 MB / 0.8971 GB, free: 12.73 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005832/1.586, allocations: 67.84 kB / 0.8972 GB, free: 12.66 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001875/1.588, allocations: 151.8 kB / 0.8973 GB, free: 12.51 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005031/1.588, allocations: 161.8 kB / 0.8975 GB, free: 12.35 MB / 0.6231 GB [/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): 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.rho:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse50.vt:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse50.pt:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse50.vp:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse50.T:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse50.x:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse50.phase:DISCRETE(protected = true ) type: Integer unreplaceable 11: $cse50.dpT:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse50.R:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse50.pd:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse50.cv:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse50.p:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse50.region:DISCRETE(protected = true ) type: Integer unreplaceable 17: $cse50.h:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse50.s:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse50.cp: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:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001432/1.59, allocations: 0.5599 MB / 0.898 GB, free: 11.8 MB / 0.6231 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoPower.Test.WaterComponents.TestCoolingTowerClosed could not be translated