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.001218/0.001219, allocations: 112.7 kB / 17.07 MB, free: 5.988 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.001057/0.001057, allocations: 195 kB / 18 MB, free: 5.074 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.418/1.418, allocations: 205.1 MB / 223.9 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.2994/0.2994, allocations: 48.84 MB / 320.1 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.002239/0.002239, allocations: 67.91 kB / 450 MB, free: 9.062 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1419, allocations: 59.17 MB / 0.4973 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestCoolingTowerPacking): time 0.4434/0.5853, allocations: 160.8 MB / 0.6543 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01375/0.5991, allocations: 9.927 MB / 0.664 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005078/0.5997, allocations: 7.938 kB / 0.664 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0006151/0.6004, allocations: 103.3 kB / 0.6641 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.00731/0.6077, allocations: 2.09 MB / 0.6661 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.01238/0.6201, allocations: 2.592 MB / 0.6686 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.003076/0.6233, allocations: 2.228 MB / 0.6708 GB, free: 8.371 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001454/0.6247, allocations: 0.6324 MB / 0.6714 GB, free: 7.742 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001724/0.6265, allocations: 0.7018 MB / 0.6721 GB, free: 7.039 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004137/0.6306, allocations: 1.554 MB / 0.6736 GB, free: 5.473 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.000446/0.6311, allocations: 120 kB / 0.6738 GB, free: 5.355 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01254/0.6437, allocations: 5.963 MB / 0.6796 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001017/0.6447, allocations: 0.6236 MB / 0.6802 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001508/0.6462, allocations: 0.6811 MB / 0.6809 GB, free: 14.08 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.01012/0.6564, allocations: 4.516 MB / 0.6853 GB, free: 9.551 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/0.6564, allocations: 0 / 0.6853 GB, free: 9.551 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.774e-06/0.6564, allocations: 0 / 0.6853 GB, free: 9.551 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.77e-05/0.6565, allocations: 0 / 0.6853 GB, free: 9.551 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.007218/0.6637, allocations: 2.028 MB / 0.6872 GB, free: 7.469 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.807e-05/0.6638, allocations: 15.89 kB / 0.6873 GB, free: 7.453 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000226/0.664, allocations: 152.2 kB / 0.6874 GB, free: 7.297 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002621/0.6667, allocations: 288.1 kB / 0.6877 GB, free: 7.016 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001246/0.6679, allocations: 0.6476 MB / 0.6883 GB, free: 6.332 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.837e-05/0.668, allocations: 82.38 kB / 0.6884 GB, free: 6.25 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002534/0.6683, allocations: 128.2 kB / 0.6885 GB, free: 6.125 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003685/0.672, allocations: 1.768 MB / 0.6902 GB, free: 4.332 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.672, allocations: 0 / 0.6902 GB, free: 4.332 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001367/0.6721, allocations: 36 kB / 0.6903 GB, free: 4.297 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/0.6722, allocations: 24 kB / 0.6903 GB, free: 4.273 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003756/0.6759, allocations: 1.85 MB / 0.6921 GB, free: 2.422 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.007912/0.6839, allocations: 4.745 MB / 0.6967 GB, free: 13.44 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005424/0.6893, allocations: 2.473 MB / 0.6991 GB, free: 10.96 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00183/0.6912, allocations: 1.088 MB / 0.7002 GB, free: 9.867 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04691/0.7381, allocations: 20.15 MB / 0.7199 GB, free: 3.516 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.78e-05/0.7382, allocations: 56.5 kB / 0.7199 GB, free: 3.449 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=207): time 4.498e-06/0.7382, allocations: 0 / 0.7199 GB, free: 3.449 MB / 0.5606 GB Notification: Performance of matching and sorting (n=207): time 0.01656/0.7548, allocations: 6.332 MB / 0.7261 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.921e-05/0.7549, allocations: 73.41 kB / 0.7262 GB, free: 12.64 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000583/0.7555, allocations: 385.7 kB / 0.7266 GB, free: 12.26 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0003137/0.7558, allocations: 65.7 kB / 0.7266 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001915/0.756, allocations: 203.5 kB / 0.7268 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009402/0.757, allocations: 0.7667 MB / 0.7276 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007934/0.7578, allocations: 351.5 kB / 0.7279 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.7579, allocations: 337.9 kB / 0.7282 GB, free: 10.53 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001716/0.7597, allocations: 0.9353 MB / 0.7291 GB, free: 9.594 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002013/0.7617, allocations: 1.095 MB / 0.7302 GB, free: 8.48 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003756/0.7655, allocations: 2.165 MB / 0.7323 GB, free: 6.312 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.327e-06/0.7655, allocations: 0 / 0.7323 GB, free: 6.312 MB / 0.5762 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.005924/0.7714, allocations: 3.254 MB / 0.7355 GB, free: 3.047 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.7715, allocations: 11.91 kB / 0.7355 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.7715, allocations: 0 / 0.7355 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01283/0.7843, allocations: 2.666 MB / 0.7381 GB, free: 380 kB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/0.7857, allocations: 235.7 kB / 0.7383 GB, free: 144 kB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007286/0.793, allocations: 4.1 MB / 0.7423 GB, free: 12.01 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001386/0.7944, allocations: 154.8 kB / 0.7425 GB, free: 11.86 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002565/0.7947, allocations: 71.97 kB / 0.7426 GB, free: 11.79 MB / 0.5919 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.0007725/0.7955, allocations: 337.5 kB / 0.7429 GB, free: 11.45 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004531/0.7959, allocations: 119.3 kB / 0.743 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01379/0.8097, allocations: 8.92 MB / 0.7517 GB, free: 2.27 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001444/0.8099, allocations: 119.8 kB / 0.7518 GB, free: 2.152 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-05/0.81, allocations: 0 / 0.7518 GB, free: 2.152 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.128e-05/0.81, allocations: 23.94 kB / 0.7518 GB, free: 2.129 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.269/1.079, allocations: 10.68 MB / 0.7623 GB, free: 214.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.356e-05/1.079, allocations: 1.406 kB / 0.7623 GB, free: 214.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002849/1.082, allocations: 0.5082 MB / 0.7628 GB, free: 214.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005142/1.087, allocations: 2.135 MB / 0.7649 GB, free: 213.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004945/1.088, allocations: 82.14 kB / 0.7649 GB, free: 213.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01413/1.102, allocations: 20.65 MB / 0.7851 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/1.102, allocations: 5.281 kB / 0.7851 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01981/1.122, allocations: 9.717 MB / 0.7946 GB, free: 190.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001655/1.123, allocations: 0.6638 MB / 0.7952 GB, free: 190.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003007/1.124, allocations: 78.73 kB / 0.7953 GB, free: 190.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001152/1.125, allocations: 85.67 kB / 0.7954 GB, free: 190.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004018/1.125, allocations: 171.4 kB / 0.7956 GB, free: 190.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001638/1.125, allocations: 79.56 kB / 0.7956 GB, free: 190.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004251/1.126, allocations: 381.1 kB / 0.796 GB, free: 190 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3e-07/1.126, allocations: 0 / 0.796 GB, free: 190 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.004104/1.13, allocations: 1.275 MB / 0.7972 GB, free: 189.9 MB / 0.5919 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.01443/1.144, allocations: 9.959 MB / 0.807 GB, free: 185.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.007229/1.152, allocations: 3.98 MB / 0.8109 GB, free: 181.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/1.152, allocations: 0 / 0.8109 GB, free: 181.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005071/1.157, allocations: 3.779 MB / 0.8145 GB, free: 177.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003559/1.16, allocations: 0.7926 MB / 0.8153 GB, free: 177.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02539/1.186, allocations: 19.21 MB / 0.8341 GB, free: 157.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000871/1.187, allocations: 1.643 MB / 0.8357 GB, free: 156.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001285/1.188, allocations: 410.4 kB / 0.8361 GB, free: 155.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009091/1.189, allocations: 0.7921 MB / 0.8369 GB, free: 154.9 MB / 0.5919 GB Notification: Performance of SimCode: time 1.092e-06/1.189, allocations: 0 / 0.8369 GB, free: 154.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1506/1.34, allocations: 99.17 MB / 0.9337 GB, free: 55.54 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.91/21.25, allocations: 17.11 kB / 0.9337 GB, free: 55.52 MB / 0.5919 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 & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerPacking_res.csv --start-time -50 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerPacking.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerPacking.pipe 2>&1)