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.0008074/0.0008076, allocations: 87.88 kB / 16.31 MB, free: 5.676 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.0008348/0.0008351, allocations: 182.2 kB / 17.21 MB, free: 5.598 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.357/1.357, allocations: 205.4 MB / 223.4 MB, free: 13.15 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2851/0.2851, allocations: 48.78 MB / 320.4 MB, free: 11.22 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.0007278/0.0007278, allocations: 13.86 kB / 391.3 MB, free: 50.2 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1109, allocations: 60.27 MB / 451.5 MB, free: 9.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestCoolingTowerPacking): time 0.4187/0.5297, allocations: 146.4 MB / 0.5839 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01287/0.5426, allocations: 9.272 MB / 0.5929 GB, free: 15.13 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005527/0.5432, allocations: 6.562 kB / 0.5929 GB, free: 15.12 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004198/0.5436, allocations: 77.08 kB / 0.593 GB, free: 15.07 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005699/0.5495, allocations: 1.677 MB / 0.5946 GB, free: 14.09 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008322/0.5578, allocations: 1.997 MB / 0.5966 GB, free: 12.97 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002724/0.5606, allocations: 2.222 MB / 0.5988 GB, free: 12.2 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008778/0.5615, allocations: 0.5353 MB / 0.5993 GB, free: 11.94 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007741/0.5623, allocations: 0.6256 MB / 0.5999 GB, free: 11.75 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003846/0.5661, allocations: 2.246 MB / 0.6021 GB, free: 11.28 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001737/0.5663, allocations: 59.81 kB / 0.6022 GB, free: 11.28 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01125/0.5776, allocations: 5.647 MB / 0.6077 GB, free: 9.676 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009726/0.5786, allocations: 0.5952 MB / 0.6082 GB, free: 9.418 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004862/0.5791, allocations: 245.1 kB / 0.6085 GB, free: 9.355 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005832/0.5849, allocations: 3.043 MB / 0.6115 GB, free: 7.828 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.585, allocations: 0 / 0.6115 GB, free: 7.828 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.585, allocations: 0 / 0.6115 GB, free: 7.828 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.73e-05/0.585, allocations: 0 / 0.6115 GB, free: 7.828 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.005403/0.5904, allocations: 1.78 MB / 0.6132 GB, free: 6.758 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.5905, allocations: 14.78 kB / 0.6132 GB, free: 6.754 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002168/0.5907, allocations: 155.6 kB / 0.6134 GB, free: 6.691 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00241/0.5931, allocations: 280.8 kB / 0.6136 GB, free: 6.586 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/0.5941, allocations: 0.6319 MB / 0.6142 GB, free: 6.051 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.018e-05/0.5942, allocations: 86.02 kB / 0.6143 GB, free: 6.004 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002375/0.5945, allocations: 136.3 kB / 0.6145 GB, free: 5.91 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003431/0.5979, allocations: 1.748 MB / 0.6162 GB, free: 4.594 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/0.5979, allocations: 3.938 kB / 0.6162 GB, free: 4.59 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001259/0.5981, allocations: 38.81 kB / 0.6162 GB, free: 4.582 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.425e-05/0.5981, allocations: 27.94 kB / 0.6162 GB, free: 4.555 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003647/0.6018, allocations: 1.845 MB / 0.618 GB, free: 3.195 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.006962/0.6088, allocations: 4.726 MB / 0.6226 GB, free: 15.09 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005165/0.6139, allocations: 2.471 MB / 0.6251 GB, free: 12.61 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001736/0.6157, allocations: 1.088 MB / 0.6261 GB, free: 11.52 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04085/0.6566, allocations: 20.25 MB / 0.6459 GB, free: 5.062 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.765e-05/0.6567, allocations: 56.56 kB / 0.646 GB, free: 5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=207): time 4.488e-06/0.6567, allocations: 0 / 0.646 GB, free: 5 MB / 462.1 MB Notification: Performance of matching and sorting (n=207): time 0.01534/0.6721, allocations: 6.347 MB / 0.6522 GB, free: 14.26 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.865e-05/0.6722, allocations: 81.34 kB / 0.6522 GB, free: 14.17 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005945/0.6728, allocations: 381.7 kB / 0.6526 GB, free: 13.79 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001739/0.673, allocations: 65.7 kB / 0.6527 GB, free: 13.72 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001977/0.6732, allocations: 211.3 kB / 0.6529 GB, free: 13.51 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008957/0.6741, allocations: 0.7277 MB / 0.6536 GB, free: 12.77 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.6742, allocations: 36 kB / 0.6536 GB, free: 12.73 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002884/0.6745, allocations: 422.7 kB / 0.654 GB, free: 12.31 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001645/0.6762, allocations: 0.933 MB / 0.6549 GB, free: 11.38 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001834/0.678, allocations: 1.091 MB / 0.656 GB, free: 10.27 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001926/0.68, allocations: 1.103 MB / 0.6571 GB, free: 9.172 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.68, allocations: 0 / 0.6571 GB, free: 9.172 MB / 478.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.005549/0.6855, allocations: 3.246 MB / 0.6602 GB, free: 5.914 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.08e-05/0.6856, allocations: 4 kB / 0.6602 GB, free: 5.91 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.6856, allocations: 4 kB / 0.6602 GB, free: 5.906 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01177/0.6974, allocations: 2.67 MB / 0.6628 GB, free: 3.234 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.6987, allocations: 235.7 kB / 0.6631 GB, free: 3.004 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007192/0.7059, allocations: 4.095 MB / 0.6671 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/0.7075, allocations: 162.4 kB / 0.6672 GB, free: 14.72 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001711/0.7077, allocations: 75.97 kB / 0.6673 GB, free: 14.65 MB / 494.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {36 117} Notification: Performance of prepare postOptimizeDAE: time 0.0006854/0.7084, allocations: 325.6 kB / 0.6676 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003143/0.7087, allocations: 106.8 kB / 0.6677 GB, free: 14.21 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01307/0.7218, allocations: 8.94 MB / 0.6764 GB, free: 5.125 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001233/0.7219, allocations: 115.8 kB / 0.6765 GB, free: 5.012 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.798e-05/0.722, allocations: 4 kB / 0.6766 GB, free: 5.008 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.137e-05/0.722, allocations: 11.95 kB / 0.6766 GB, free: 4.996 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01562/0.7376, allocations: 10.66 MB / 0.687 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.481e-05/0.7377, allocations: 0 / 0.687 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002787/0.7405, allocations: 0.5151 MB / 0.6875 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005671/0.7462, allocations: 2.195 MB / 0.6896 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006124/0.7468, allocations: 75.94 kB / 0.6897 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01776/0.7646, allocations: 19.7 MB / 0.7089 GB, free: 2.164 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.7647, allocations: 3.938 kB / 0.7089 GB, free: 2.16 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01585/0.7805, allocations: 9.676 MB / 0.7184 GB, free: 8.32 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001597/0.7822, allocations: 0.6993 MB / 0.7191 GB, free: 7.598 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002876/0.7825, allocations: 63.98 kB / 0.7191 GB, free: 7.535 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/0.7836, allocations: 95.77 kB / 0.7192 GB, free: 7.441 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003798/0.784, allocations: 173.9 kB / 0.7194 GB, free: 7.27 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001796/0.7842, allocations: 83.97 kB / 0.7195 GB, free: 7.188 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0005268/0.7847, allocations: 366.8 kB / 0.7198 GB, free: 6.832 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7848, allocations: 3.938 kB / 0.7198 GB, free: 6.828 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00473/0.7895, allocations: 1.265 MB / 0.7211 GB, free: 5.562 MB / 0.5294 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 (linear and non-linear blocks): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(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%) 1} * Non-linear torn systems: 9 {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.0182/0.8077, allocations: 9.926 MB / 0.7308 GB, free: 11.46 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009009/0.8168, allocations: 3.924 MB / 0.7346 GB, free: 7.488 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.8168, allocations: 4 kB / 0.7346 GB, free: 7.484 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006634/0.8234, allocations: 3.747 MB / 0.7382 GB, free: 3.617 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004242/0.8277, allocations: 0.7699 MB / 0.739 GB, free: 2.848 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2692/1.097, allocations: 15.3 MB / 0.7539 GB, free: 215.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001898/1.099, allocations: 1.648 MB / 0.7556 GB, free: 215 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00198/1.101, allocations: 412.9 kB / 0.7559 GB, free: 214.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00116/1.102, allocations: 0.7886 MB / 0.7567 GB, free: 214.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.623e-06/1.102, allocations: 0 / 0.7567 GB, free: 214.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.144/1.246, allocations: 94.34 MB / 0.8488 GB, free: 133.6 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/1.246, allocations: 223.6 kB / 0.8491 GB, free: 133.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.901/7.147, allocations: 4 kB / 0.8491 GB, free: 133.3 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/linux/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) Environment - environmentSimulation: