Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerPacking.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: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestCoolingTowerPacking,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerPacking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestCoolingTowerPacking,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerPacking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009651/0.0009651, allocations: 104.1 kB / 16.94 MB, free: 6.176 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.0009384/0.0009388, allocations: 187.4 kB / 17.87 MB, free: 5.277 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.154/1.154, allocations: 205.1 MB / 223.7 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.26/0.26, allocations: 48.84 MB / 319.9 MB, free: 11.09 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.001349/0.001349, allocations: 67.92 kB / 390.3 MB, free: 48.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07303/0.07439, allocations: 59.15 MB / 449.4 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestCoolingTowerPacking): time 0.307/0.3814, allocations: 160.8 MB / 0.5959 GB, free: 11 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.009595/0.3911, allocations: 9.92 MB / 0.6056 GB, free: 4.504 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003179/0.3914, allocations: 6.031 kB / 0.6056 GB, free: 4.5 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003874/0.3919, allocations: 102 kB / 0.6057 GB, free: 4.43 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004501/0.3964, allocations: 2.095 MB / 0.6077 GB, free: 3.184 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005411/0.4018, allocations: 2.581 MB / 0.6102 GB, free: 1.363 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001765/0.4036, allocations: 2.222 MB / 0.6124 GB, free: 52 kB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009368/0.4045, allocations: 0.6392 MB / 0.613 GB, free: 15.59 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008322/0.4054, allocations: 0.6918 MB / 0.6137 GB, free: 15.25 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002389/0.4078, allocations: 1.554 MB / 0.6152 GB, free: 14.29 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001638/0.4079, allocations: 118.1 kB / 0.6153 GB, free: 14.29 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00872/0.4167, allocations: 5.894 MB / 0.6211 GB, free: 10.15 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005134/0.4172, allocations: 0.6158 MB / 0.6217 GB, free: 9.531 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007025/0.4179, allocations: 0.7005 MB / 0.6224 GB, free: 8.828 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00549/0.4234, allocations: 4.506 MB / 0.6268 GB, free: 4.312 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.4234, allocations: 0 / 0.6268 GB, free: 4.312 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4234, allocations: 4 kB / 0.6268 GB, free: 4.309 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.4234, allocations: 0 / 0.6268 GB, free: 4.309 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.004732/0.4282, allocations: 1.982 MB / 0.6287 GB, free: 2.273 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.4282, allocations: 15.83 kB / 0.6287 GB, free: 2.258 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001665/0.4284, allocations: 159.5 kB / 0.6289 GB, free: 2.098 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00227/0.4307, allocations: 283.5 kB / 0.6292 GB, free: 1.82 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008111/0.4315, allocations: 0.6434 MB / 0.6298 GB, free: 1.141 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.111e-05/0.4316, allocations: 82.38 kB / 0.6299 GB, free: 1.062 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002059/0.4318, allocations: 136.2 kB / 0.63 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002995/0.4348, allocations: 1.749 MB / 0.6317 GB, free: 15.15 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/0.4348, allocations: 7.938 kB / 0.6317 GB, free: 15.14 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.4349, allocations: 40 kB / 0.6317 GB, free: 15.11 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.886e-05/0.4349, allocations: 20 kB / 0.6318 GB, free: 15.09 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003277/0.4382, allocations: 1.842 MB / 0.6336 GB, free: 13.25 MB / 462.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.005859/0.4441, allocations: 4.729 MB / 0.6382 GB, free: 8.277 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004619/0.4487, allocations: 2.475 MB / 0.6406 GB, free: 5.809 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001432/0.4502, allocations: 1.084 MB / 0.6417 GB, free: 4.723 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03545/0.4856, allocations: 20.06 MB / 0.6612 GB, free: 14.46 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.311e-05/0.4857, allocations: 56.56 kB / 0.6613 GB, free: 14.39 MB / 494.1 MB Notification: Performance of pre-optimization done (n=207): time 3.617e-06/0.4857, allocations: 0 / 0.6613 GB, free: 14.39 MB / 494.1 MB Notification: Performance of matching and sorting (n=207): time 0.01377/0.4995, allocations: 6.331 MB / 0.6675 GB, free: 7.668 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/0.4995, allocations: 77.34 kB / 0.6676 GB, free: 7.578 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004038/0.5, allocations: 385.7 kB / 0.6679 GB, free: 7.195 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001573/0.5001, allocations: 65.7 kB / 0.668 GB, free: 7.125 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.5003, allocations: 215.3 kB / 0.6682 GB, free: 6.91 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005669/0.5008, allocations: 0.7315 MB / 0.6689 GB, free: 6.168 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004981/0.5014, allocations: 339.6 kB / 0.6692 GB, free: 5.828 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.5015, allocations: 341.9 kB / 0.6696 GB, free: 5.488 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001436/0.5029, allocations: 0.9369 MB / 0.6705 GB, free: 4.551 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001557/0.5045, allocations: 1.095 MB / 0.6715 GB, free: 3.441 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003161/0.5076, allocations: 2.157 MB / 0.6736 GB, free: 1.281 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.5077, allocations: 0 / 0.6736 GB, free: 1.281 MB / 494.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.004882/0.5125, allocations: 3.249 MB / 0.6768 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.5126, allocations: 8 kB / 0.6768 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.5126, allocations: 4 kB / 0.6768 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01153/0.5241, allocations: 2.662 MB / 0.6794 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00114/0.5253, allocations: 239.7 kB / 0.6797 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006741/0.532, allocations: 4.087 MB / 0.6837 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00107/0.5332, allocations: 158.3 kB / 0.6838 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001923/0.5334, allocations: 67.97 kB / 0.6839 GB, free: 6.773 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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 {(36,117)} Notification: Performance of prepare postOptimizeDAE: time 0.0005396/0.5339, allocations: 337.6 kB / 0.6842 GB, free: 6.434 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002777/0.5342, allocations: 114.8 kB / 0.6843 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0116/0.5458, allocations: 8.919 MB / 0.693 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.084e-05/0.5459, allocations: 111.8 kB / 0.6931 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.651e-05/0.546, allocations: 4 kB / 0.6931 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.719e-05/0.546, allocations: 11.95 kB / 0.6931 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01376/0.5598, allocations: 10.68 MB / 0.7036 GB, free: 2.258 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.26e-05/0.5598, allocations: 0 / 0.7036 GB, free: 2.258 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002546/0.5623, allocations: 0.5151 MB / 0.7041 GB, free: 1.742 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004606/0.567, allocations: 2.133 MB / 0.7061 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002651/0.5672, allocations: 87.94 kB / 0.7062 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01474/0.582, allocations: 20.63 MB / 0.7264 GB, free: 9.336 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.582, allocations: 8.188 kB / 0.7264 GB, free: 9.328 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.152/0.7341, allocations: 9.691 MB / 0.7359 GB, free: 221.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/0.7352, allocations: 0.6629 MB / 0.7365 GB, free: 221.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002129/0.7354, allocations: 77.89 kB / 0.7366 GB, free: 221.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.7364, allocations: 80.75 kB / 0.7367 GB, free: 221.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003265/0.7367, allocations: 172 kB / 0.7368 GB, free: 221.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001575/0.7369, allocations: 86.41 kB / 0.7369 GB, free: 221.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0003678/0.7373, allocations: 378.9 kB / 0.7373 GB, free: 221.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7373, allocations: 1.75 kB / 0.7373 GB, free: 221.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002728/0.74, allocations: 1.262 MB / 0.7385 GB, free: 221.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 27 (coolingTower.M[1],coolingTower.M[2],coolingTower.M[3],coolingTower.M[4],coolingTower.M[5],coolingTower.M[6],coolingTower.M[7],coolingTower.M[8],coolingTower.M[9],coolingTower.hltilde[1],coolingTower.hltilde[2],coolingTower.hltilde[3],coolingTower.hltilde[4],coolingTower.hltilde[5],coolingTower.hltilde[6],coolingTower.hltilde[7],coolingTower.hltilde[8],coolingTower.hltilde[9],coolingTower.Tp[1],coolingTower.Tp[2],coolingTower.Tp[3],coolingTower.Tp[4],coolingTower.Tp[5],coolingTower.Tp[6],coolingTower.Tp[7],coolingTower.Tp[8],coolingTower.Tp[9]) * Number of discrete variables: 37 ($cse8.region3boundary,$cse10.phase,$cse10.region,$cse14.region3boundary,$cse16.region3boundary,$cse18.phase,$cse18.region,$cse22.region3boundary,$cse24.region3boundary,$cse26.phase,$cse26.region,$cse30.region3boundary,$cse32.region3boundary,$cse34.phase,$cse34.region,$cse38.region3boundary,$cse40.region3boundary,$cse42.phase,$cse42.region,$cse46.region3boundary,$cse48.region3boundary,$cse50.phase,$cse50.region,$cse54.region3boundary,$cse56.region3boundary,$cse58.phase,$cse58.region,$cse62.region3boundary,$cse64.region3boundary,$cse66.phase,$cse66.region,$cse70.region3boundary,$cse72.region3boundary,$cse74.phase,$cse74.region,$cse77.region3boundary,$cse79.region3boundary) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (210): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 39 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 9 systems {(2,6), (2,6), (2,6), (2,6), (2,6), (2,6), (2,6), (2,6), (2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0136/0.7536, allocations: 9.939 MB / 0.7482 GB, free: 218.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007018/0.7607, allocations: 3.981 MB / 0.7521 GB, free: 217.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.7607, allocations: 0 / 0.7521 GB, free: 217.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004601/0.7653, allocations: 3.769 MB / 0.7558 GB, free: 215.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002717/0.768, allocations: 0.795 MB / 0.7565 GB, free: 215.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02108/0.7891, allocations: 19.75 MB / 0.7758 GB, free: 202.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006794/0.7898, allocations: 1.639 MB / 0.7774 GB, free: 200.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0008999/0.7908, allocations: 414.5 kB / 0.7778 GB, free: 200.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000686/0.7914, allocations: 0.7921 MB / 0.7786 GB, free: 199.5 MB / 0.545 GB Notification: Performance of SimCode: time 6.21e-07/0.7915, allocations: 0 / 0.7786 GB, free: 199.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1091/0.9006, allocations: 98.34 MB / 0.8746 GB, free: 101 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/14.17, allocations: 3.984 kB / 0.8746 GB, free: 101 MB / 0.545 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerPacking.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerPacking.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerPacking.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerPacking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerPacking_fmu --startTime=-50 --stopTime=200 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerPacking.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerPacking.pipe 2>&1)