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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestCoolingTowerClosed,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerClosed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestCoolingTowerClosed,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerClosed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00112/0.00112, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.641/1.641, allocations: 205.2 MB / 219.4 MB, free: 14.26 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009414/0.0009414, allocations: 90.62 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3635/0.3635, allocations: 48.77 MB / 364.3 MB, free: 6.867 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.154e-05/5.156e-05, allocations: 4 kB / 432.6 MB, free: 16.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1649, allocations: 60.25 MB / 492.8 MB, free: 4.281 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.14/10.31, allocations: 3.313 GB / 3.795 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002412/10.31, allocations: 83.69 kB / 3.795 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.276/11.58, allocations: 338.3 MB / 4.125 GB, free: 67.36 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.272e-06/11.58, allocations: 0 / 4.125 GB, free: 67.36 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.806e-05/11.58, allocations: 41.11 kB / 4.125 GB, free: 67.35 MB / 0.5105 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.008641/11.59, allocations: 2.469 MB / 4.128 GB, free: 66.49 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/11.59, allocations: 7.75 kB / 4.128 GB, free: 66.49 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004742/11.59, allocations: 255.4 kB / 4.128 GB, free: 66.45 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002903/11.59, allocations: 458.5 kB / 4.128 GB, free: 66.36 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003631/11.6, allocations: 1.226 MB / 4.129 GB, free: 66.03 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/11.6, allocations: 119.8 kB / 4.13 GB, free: 66.02 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000459/11.6, allocations: 175.2 kB / 4.13 GB, free: 66.02 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008201/11.61, allocations: 3.867 MB / 4.133 GB, free: 65.68 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.017e-05/11.61, allocations: 9.141 kB / 4.133 GB, free: 65.68 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002019/11.61, allocations: 65.12 kB / 4.134 GB, free: 65.68 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.038e-05/11.61, allocations: 78.06 kB / 4.134 GB, free: 65.68 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008022/11.62, allocations: 3.844 MB / 4.137 GB, free: 65.66 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.1174/11.73, allocations: 72.05 MB / 4.208 GB, free: 23.29 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006124/11.74, allocations: 2.866 MB / 4.211 GB, free: 23.22 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001715/11.74, allocations: 1.13 MB / 4.212 GB, free: 23.21 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5056/12.25, allocations: 129.9 MB / 4.338 GB, free: 89.66 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.418e-05/12.25, allocations: 55.88 kB / 4.339 GB, free: 89.62 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=209): time 3.747e-06/12.25, allocations: 0 / 4.339 GB, free: 89.62 MB / 0.5573 GB Notification: Performance of matching and sorting (n=210): time 0.01824/12.26, allocations: 8.038 MB / 4.346 GB, free: 89.05 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/12.26, allocations: 79.19 kB / 4.346 GB, free: 88.99 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008306/12.27, allocations: 0.6832 MB / 4.347 GB, free: 88.86 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002303/12.27, allocations: 60.48 kB / 4.347 GB, free: 88.82 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002702/12.27, allocations: 0.5314 MB / 4.348 GB, free: 88.63 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005236/12.27, allocations: 0.7177 MB / 4.348 GB, free: 88.26 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000177/12.27, allocations: 39.16 kB / 4.348 GB, free: 88.26 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 9.623e-05/12.27, allocations: 384 kB / 4.349 GB, free: 87.96 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001751/12.27, allocations: 1.266 MB / 4.35 GB, free: 87.95 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001839/12.27, allocations: 1.538 MB / 4.352 GB, free: 87.73 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01992/12.29, allocations: 5.446 MB / 4.357 GB, free: 87.58 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.838e-06/12.29, allocations: 0 / 4.357 GB, free: 87.58 MB / 0.5573 GB Notification: Performance of matching and sorting (n=245) (initialization): time 0.007947/12.3, allocations: 4.55 MB / 4.361 GB, free: 87.43 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003183/12.3, allocations: 1.663 MB / 4.363 GB, free: 85.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/12.3, allocations: 7.266 kB / 4.363 GB, free: 85.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01292/12.31, allocations: 4.217 MB / 4.367 GB, free: 85.58 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000767/12.31, allocations: 169 kB / 4.367 GB, free: 85.58 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007981/12.32, allocations: 5.62 MB / 4.373 GB, free: 84.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001973/12.32, allocations: 161.4 kB / 4.373 GB, free: 84.93 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002757/12.32, allocations: 156.5 kB / 4.373 GB, free: 84.93 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/12.32, allocations: 3.938 kB / 4.373 GB, free: 84.93 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006668/12.33, allocations: 4.409 MB / 4.377 GB, free: 84.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/12.33, allocations: 3.469 kB / 4.377 GB, free: 84.86 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01306/12.34, allocations: 4.238 MB / 4.381 GB, free: 84.72 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009653/12.34, allocations: 172.5 kB / 4.382 GB, free: 84.72 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009143/12.35, allocations: 5.611 MB / 4.387 GB, free: 84.08 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00204/12.35, allocations: 169 kB / 4.387 GB, free: 84.05 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002762/12.36, allocations: 148.2 kB / 4.387 GB, free: 84.05 MB / 0.5573 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $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 () * 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 (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 {30 137} Notification: Performance of prepare postOptimizeDAE: time 0.0005566/12.36, allocations: 202.3 kB / 4.388 GB, free: 83.94 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003017/12.36, allocations: 139 kB / 4.388 GB, free: 83.88 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01126/12.37, allocations: 9.59 MB / 4.397 GB, free: 83.06 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.772e-05/12.37, allocations: 90.44 kB / 4.397 GB, free: 83.06 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/12.37, allocations: 3.719 kB / 4.397 GB, free: 83.06 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.261e-05/12.37, allocations: 13.31 kB / 4.397 GB, free: 83.06 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01364/12.38, allocations: 12.2 MB / 4.409 GB, free: 79.34 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/12.38, allocations: 3.938 kB / 4.409 GB, free: 79.34 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001664/12.38, allocations: 390.8 kB / 4.409 GB, free: 79.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009637/12.39, allocations: 4.404 MB / 4.414 GB, free: 78.23 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000722/12.39, allocations: 136.9 kB / 4.414 GB, free: 78.18 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01095/12.4, allocations: 13.2 MB / 4.427 GB, free: 68.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/12.4, allocations: 3.594 kB / 4.427 GB, free: 68.45 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0134/12.42, allocations: 10.38 MB / 4.437 GB, free: 63.25 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001468/12.42, allocations: 0.6341 MB / 4.438 GB, free: 62.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005027/12.42, allocations: 50 kB / 4.438 GB, free: 62.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001911/12.42, allocations: 146.5 kB / 4.438 GB, free: 62.52 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004697/12.42, allocations: 223.5 kB / 4.438 GB, free: 62.39 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002732/12.42, allocations: 147.2 kB / 4.438 GB, free: 62.29 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0008079/12.42, allocations: 0.6342 MB / 4.439 GB, free: 61.69 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.61e-07/12.42, allocations: 0 / 4.439 GB, free: 61.69 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008385/12.43, allocations: 2.083 MB / 4.441 GB, free: 59.75 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (cooledFlow.htilde[1],cooledFlow.htilde[2],cooledFlow.htilde[3],cooledFlow.htilde[4],cooledFlow.htilde[5],tubeWalls.Tvol[1],tubeWalls.Tvol[2],tubeWalls.Tvol[3],tubeWalls.Tvol[4],tubeWalls.Tvol[5]) * Number of discrete variables: 33 ($cse2.region3boundary,$cse4.region3boundary,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse11.region3boundary,$cse16.phase,$cse16.region,$cse17.region3boundary,$cse19.region3boundary,$cse24.phase,$cse24.region,$cse25.region3boundary,$cse27.region3boundary,$cse32.phase,$cse32.region,$cse33.region3boundary,$cse35.region3boundary,$cse40.phase,$cse40.region,$cse41.region3boundary,$cse50.phase,$cse50.region,$cse51.phase,$cse51.region,$cse52.phase,$cse52.region,$cse53.phase,$cse53.region,$cse54.phase,$cse54.region,$cse55.phase,$cse55.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {20 96,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.02001/12.45, allocations: 11.3 MB / 4.452 GB, free: 49.85 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01208/12.46, allocations: 6.488 MB / 4.458 GB, free: 44.22 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/12.46, allocations: 0.625 kB / 4.458 GB, free: 44.22 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00489/12.47, allocations: 3.383 MB / 4.461 GB, free: 41.12 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004132/12.47, allocations: 0.8139 MB / 4.462 GB, free: 40.53 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/12.49, allocations: 6.622 MB / 4.469 GB, free: 34.88 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009977/12.49, allocations: 1.855 MB / 4.471 GB, free: 33.38 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.006021/12.49, allocations: 6.25 MB / 4.477 GB, free: 29.8 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001444/12.49, allocations: 1.039 MB / 4.478 GB, free: 28.88 MB / 0.5573 GB Notification: Performance of SimCode: time 1.062e-06/12.49, allocations: 4 kB / 4.478 GB, free: 28.88 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5848/13.08, allocations: 145.3 MB / 4.62 GB, free: 76.84 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001342/13.08, allocations: 188.5 kB / 4.62 GB, free: 76.61 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.024/20.1, allocations: 0 / 4.62 GB, free: 76.61 MB / 0.5573 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerClosed_fmu --startTime=-50 --stopTime=200 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerClosed.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.pipe 2>&1)