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.001043/0.001043, allocations: 106.4 kB / 17.74 MB, free: 5.34 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.0009757/0.0009757, allocations: 189.4 kB / 18.67 MB, free: 4.418 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.204/1.204, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2484/0.2484, allocations: 48.85 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.001364/0.001364, allocations: 67.91 kB / 451.2 MB, free: 8.555 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09375/0.09512, allocations: 59.16 MB / 0.4984 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestCoolingTowerClosed): time 0.3614/0.4565, allocations: 181.2 MB / 0.6753 GB, free: 4.727 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01307/0.4696, allocations: 11.08 MB / 0.6861 GB, free: 9.625 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006369/0.4703, allocations: 15.88 kB / 0.6862 GB, free: 9.609 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0008747/0.4712, allocations: 301.9 kB / 0.6864 GB, free: 9.312 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.001446/0.4727, allocations: 0.6957 MB / 0.6871 GB, free: 8.613 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.01274/0.4854, allocations: 5.433 MB / 0.6924 GB, free: 3.176 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.003299/0.4888, allocations: 3.189 MB / 0.6955 GB, free: 15.98 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001415/0.4902, allocations: 1.02 MB / 0.6965 GB, free: 14.95 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001744/0.4919, allocations: 1.068 MB / 0.6976 GB, free: 13.88 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002136/0.4941, allocations: 1.246 MB / 0.6988 GB, free: 12.63 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0004656/0.4946, allocations: 168 kB / 0.699 GB, free: 12.47 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01389/0.5085, allocations: 7.566 MB / 0.7064 GB, free: 4.895 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001061/0.5096, allocations: 0.8689 MB / 0.7072 GB, free: 4.023 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001781/0.5114, allocations: 1.078 MB / 0.7083 GB, free: 2.941 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01098/0.5224, allocations: 6.322 MB / 0.7144 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.5224, allocations: 0 / 0.7144 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.523e-06/0.5224, allocations: 4 kB / 0.7144 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.899e-05/0.5225, allocations: 0 / 0.7144 GB, free: 12.6 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.008148/0.5306, allocations: 2.973 MB / 0.7173 GB, free: 9.57 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.5307, allocations: 15.83 kB / 0.7173 GB, free: 9.555 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003107/0.5338, allocations: 455.2 kB / 0.7178 GB, free: 9.109 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002157/0.536, allocations: 1.064 MB / 0.7188 GB, free: 8 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.177e-05/0.5361, allocations: 119.5 kB / 0.7189 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003312/0.5364, allocations: 176.4 kB / 0.7191 GB, free: 7.711 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008306/0.5447, allocations: 3.789 MB / 0.7228 GB, free: 3.855 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.246e-05/0.5448, allocations: 3.938 kB / 0.7228 GB, free: 3.852 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001789/0.5449, allocations: 67.94 kB / 0.7229 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.588e-05/0.545, allocations: 87.11 kB / 0.723 GB, free: 3.699 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008493/0.5535, allocations: 3.86 MB / 0.7267 GB, free: 15.83 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.01312/0.5667, allocations: 10.69 MB / 0.7372 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006812/0.5735, allocations: 2.855 MB / 0.74 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001608/0.5751, allocations: 1.17 MB / 0.7411 GB, free: 296 kB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3427/0.9179, allocations: 68.77 MB / 0.8083 GB, free: 57.71 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.196e-05/0.9179, allocations: 54.78 kB / 0.8083 GB, free: 57.67 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=209): time 4.208e-06/0.918, allocations: 0 / 0.8083 GB, free: 57.67 MB / 0.5919 GB Notification: Performance of matching and sorting (n=210): time 0.04351/0.9615, allocations: 14.37 MB / 0.8223 GB, free: 50.92 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.241e-05/0.9615, allocations: 73.41 kB / 0.8224 GB, free: 50.84 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000753/0.9623, allocations: 0.7988 MB / 0.8232 GB, free: 50.22 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.000168/0.9624, allocations: 67.45 kB / 0.8233 GB, free: 50.18 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002234/0.9627, allocations: 0.5194 MB / 0.8238 GB, free: 49.82 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004177/0.9631, allocations: 0.7199 MB / 0.8245 GB, free: 49.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006684/0.9638, allocations: 0.5043 MB / 0.825 GB, free: 48.86 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 3.552e-05/0.9638, allocations: 305.1 kB / 0.8252 GB, free: 48.56 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001738/0.9656, allocations: 1.325 MB / 0.8265 GB, free: 47.67 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001939/0.9675, allocations: 1.56 MB / 0.8281 GB, free: 46.54 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.023/0.9905, allocations: 8.471 MB / 0.8363 GB, free: 39.98 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.9905, allocations: 4 kB / 0.8363 GB, free: 39.98 MB / 0.5919 GB Notification: Performance of matching and sorting (n=245) (initialization): time 0.00721/0.9978, allocations: 4.688 MB / 0.8409 GB, free: 36.82 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.9978, allocations: 12.59 kB / 0.8409 GB, free: 36.81 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.9978, allocations: 4 kB / 0.8409 GB, free: 36.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01292/1.011, allocations: 4.429 MB / 0.8453 GB, free: 33.11 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006268/1.011, allocations: 174.5 kB / 0.8454 GB, free: 32.96 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007889/1.019, allocations: 5.715 MB / 0.851 GB, free: 28.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001431/1.021, allocations: 79.86 kB / 0.8511 GB, free: 28.22 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002287/1.021, allocations: 147.9 kB / 0.8512 GB, free: 28.07 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.002239/1.023, allocations: 1.71 MB / 0.8529 GB, free: 26.36 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001919/1.025, allocations: 1.556 MB / 0.8544 GB, free: 24.75 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02257/1.048, allocations: 8.469 MB / 0.8627 GB, free: 16.23 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.959e-06/1.048, allocations: 1.094 kB / 0.8627 GB, free: 16.23 MB / 0.5919 GB Notification: Performance of matching and sorting (n=245) (initialization_lambda0): time 0.006997/1.055, allocations: 4.677 MB / 0.8673 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/1.055, allocations: 4 kB / 0.8673 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/1.055, allocations: 11.94 kB / 0.8673 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01289/1.068, allocations: 4.435 MB / 0.8716 GB, free: 7.117 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006901/1.068, allocations: 161.2 kB / 0.8718 GB, free: 6.969 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008192/1.077, allocations: 5.725 MB / 0.8773 GB, free: 1.227 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001505/1.078, allocations: 71.95 kB / 0.8774 GB, free: 1.156 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002406/1.078, allocations: 147.9 kB / 0.8776 GB, free: 1.012 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.0005414/1.079, allocations: 281.5 kB / 0.8778 GB, free: 0.7383 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000484/1.079, allocations: 147.5 kB / 0.878 GB, free: 0.5938 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01972/1.099, allocations: 18.69 MB / 0.8962 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.952e-05/1.099, allocations: 11.95 kB / 0.8962 GB, free: 13.77 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.715e-06/1.099, allocations: 0 / 0.8962 GB, free: 13.77 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/1.1, allocations: 0.6253 MB / 0.8968 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004089/1.101, allocations: 71.73 kB / 0.8969 GB, free: 13.05 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001649/1.102, allocations: 151.8 kB / 0.8971 GB, free: 12.91 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000361/1.103, allocations: 165.8 kB / 0.8972 GB, free: 12.74 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.001209/1.104, allocations: 0.5492 MB / 0.8977 GB, free: 12.2 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