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.001062/0.001062, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001112/0.001112, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.236/1.236, allocations: 205.1 MB / 223.7 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2518/0.2518, allocations: 48.85 MB / 319.9 MB, free: 11.08 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.00154/0.00154, allocations: 69.08 kB / 390.2 MB, free: 48.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08629/0.08784, allocations: 59.16 MB / 449.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestCoolingTowerPacking): time 0.3581/0.446, allocations: 160.8 MB / 0.5958 GB, free: 11.43 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01104/0.457, allocations: 9.925 MB / 0.6055 GB, free: 4.871 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003682/0.4574, allocations: 6.688 kB / 0.6055 GB, free: 4.867 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004303/0.4579, allocations: 97.45 kB / 0.6056 GB, free: 4.781 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004638/0.4626, allocations: 2.095 MB / 0.6077 GB, free: 3.297 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006654/0.4692, allocations: 2.58 MB / 0.6102 GB, free: 1.477 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00201/0.4713, allocations: 2.233 MB / 0.6124 GB, free: 164 kB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006322/0.4719, allocations: 0.6287 MB / 0.613 GB, free: 15.71 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006322/0.4726, allocations: 0.691 MB / 0.6136 GB, free: 15.38 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002866/0.4754, allocations: 1.552 MB / 0.6152 GB, free: 14.43 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001861/0.4756, allocations: 120.9 kB / 0.6153 GB, free: 14.43 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01057/0.4862, allocations: 5.822 MB / 0.621 GB, free: 10.38 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006879/0.4869, allocations: 0.6197 MB / 0.6216 GB, free: 9.758 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008372/0.4878, allocations: 0.6888 MB / 0.6222 GB, free: 9.066 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008011/0.4958, allocations: 4.502 MB / 0.6266 GB, free: 4.555 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.4958, allocations: 0 / 0.6266 GB, free: 4.555 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4958, allocations: 4 kB / 0.6266 GB, free: 4.551 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.036e-05/0.4959, allocations: 0 / 0.6266 GB, free: 4.551 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.00532/0.5012, allocations: 1.985 MB / 0.6286 GB, free: 2.512 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.5012, allocations: 15.89 kB / 0.6286 GB, free: 2.496 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002034/0.5015, allocations: 156.1 kB / 0.6287 GB, free: 2.336 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002315/0.5038, allocations: 283.5 kB / 0.629 GB, free: 2.059 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000936/0.5047, allocations: 0.6473 MB / 0.6297 GB, free: 1.375 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.197e-05/0.5048, allocations: 74.38 kB / 0.6297 GB, free: 1.305 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002227/0.505, allocations: 140.2 kB / 0.6299 GB, free: 1.168 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003207/0.5082, allocations: 1.761 MB / 0.6316 GB, free: 15.38 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.817e-05/0.5083, allocations: 0 / 0.6316 GB, free: 15.38 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001189/0.5084, allocations: 40 kB / 0.6316 GB, free: 15.34 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.972e-05/0.5084, allocations: 24 kB / 0.6316 GB, free: 15.32 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003406/0.5118, allocations: 1.844 MB / 0.6334 GB, free: 13.48 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.006214/0.5181, allocations: 4.725 MB / 0.638 GB, free: 8.512 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004706/0.5228, allocations: 2.479 MB / 0.6405 GB, free: 6.035 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00147/0.5243, allocations: 1.088 MB / 0.6415 GB, free: 4.945 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0404/0.5647, allocations: 20.06 MB / 0.6611 GB, free: 14.68 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.295e-05/0.5648, allocations: 48.56 kB / 0.6612 GB, free: 14.62 MB / 494.1 MB Notification: Performance of pre-optimization done (n=207): time 6.232e-06/0.5648, allocations: 0 / 0.6612 GB, free: 14.62 MB / 494.1 MB Notification: Performance of matching and sorting (n=207): time 0.01518/0.58, allocations: 6.343 MB / 0.6674 GB, free: 7.883 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.02e-05/0.5801, allocations: 77.41 kB / 0.6674 GB, free: 7.793 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004376/0.5805, allocations: 385.7 kB / 0.6678 GB, free: 7.41 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001896/0.5807, allocations: 61.7 kB / 0.6679 GB, free: 7.344 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.5809, allocations: 211.3 kB / 0.6681 GB, free: 7.133 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006687/0.5815, allocations: 0.7199 MB / 0.6688 GB, free: 6.402 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000555/0.5821, allocations: 343.5 kB / 0.6691 GB, free: 6.059 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.5822, allocations: 345.9 kB / 0.6694 GB, free: 5.715 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001636/0.5839, allocations: 0.933 MB / 0.6703 GB, free: 4.781 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/0.5856, allocations: 1.095 MB / 0.6714 GB, free: 3.672 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003249/0.5888, allocations: 2.165 MB / 0.6735 GB, free: 1.504 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.5888, allocations: 4 kB / 0.6735 GB, free: 1.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.00513/0.594, allocations: 3.246 MB / 0.6767 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.594, allocations: 8 kB / 0.6767 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.594, allocations: 1.75 kB / 0.6767 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01175/0.6058, allocations: 2.679 MB / 0.6793 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/0.6069, allocations: 243.7 kB / 0.6796 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006312/0.6133, allocations: 4.091 MB / 0.6835 GB, free: 7.195 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001018/0.6143, allocations: 154.4 kB / 0.6837 GB, free: 7.043 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001871/0.6145, allocations: 75.97 kB / 0.6838 GB, free: 6.969 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.000548/0.6151, allocations: 329.6 kB / 0.6841 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003071/0.6154, allocations: 106.8 kB / 0.6842 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0121/0.6275, allocations: 8.946 MB / 0.6929 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.494e-05/0.6276, allocations: 123.9 kB / 0.693 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.215e-05/0.6276, allocations: 7.938 kB / 0.693 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.656e-05/0.6277, allocations: 15.94 kB / 0.6931 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01361/0.6413, allocations: 10.68 MB / 0.7035 GB, free: 2.426 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-05/0.6413, allocations: 0 / 0.7035 GB, free: 2.426 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002566/0.6439, allocations: 0.5034 MB / 0.704 GB, free: 1.922 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004644/0.6486, allocations: 2.153 MB / 0.7061 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001996/0.6488, allocations: 83.89 kB / 0.7062 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01464/0.6634, allocations: 20.65 MB / 0.7263 GB, free: 9.484 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.6634, allocations: 0 / 0.7263 GB, free: 9.484 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1706/0.8341, allocations: 9.692 MB / 0.7358 GB, free: 222.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001262/0.8353, allocations: 0.6608 MB / 0.7364 GB, free: 222.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002366/0.8356, allocations: 80.81 kB / 0.7365 GB, free: 222.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.8366, allocations: 81.03 kB / 0.7366 GB, free: 222.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003516/0.837, allocations: 172.6 kB / 0.7368 GB, free: 222.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001481/0.8372, allocations: 83.39 kB / 0.7368 GB, free: 222.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0003918/0.8376, allocations: 377.5 kB / 0.7372 GB, free: 222 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.11e-07/0.8376, allocations: 0 / 0.7372 GB, free: 222 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002877/0.8404, allocations: 1.27 MB / 0.7384 GB, free: 222 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.01433/0.8548, allocations: 9.938 MB / 0.7481 GB, free: 219.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0173/0.8721, allocations: 6.588 MB / 0.7546 GB, free: 217.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.8721, allocations: 3.938 kB / 0.7546 GB, free: 217.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00425/0.8764, allocations: 3.771 MB / 0.7583 GB, free: 215.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003148/0.8796, allocations: 0.8 MB / 0.759 GB, free: 215.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02206/0.9016, allocations: 19.64 MB / 0.7782 GB, free: 200.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007109/0.9024, allocations: 1.639 MB / 0.7798 GB, free: 198.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0011/0.9035, allocations: 418.5 kB / 0.7802 GB, free: 198 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007172/0.9042, allocations: 0.7883 MB / 0.781 GB, free: 197.2 MB / 0.545 GB Notification: Performance of SimCode: time 5.81e-07/0.9042, allocations: 0 / 0.781 GB, free: 197.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1243/1.029, allocations: 98.47 MB / 0.8772 GB, free: 98.56 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.08/15.1, allocations: 15.83 kB / 0.8772 GB, free: 98.54 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 & 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)