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.001069/0.001069, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.798/1.798, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009139/0.0009138, allocations: 93.12 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5841/0.5841, allocations: 48.77 MB / 358.8 MB, free: 53.17 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.757e-05/2.751e-05, allocations: 8.156 kB / 425.4 MB, free: 8.152 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1626/0.1627, allocations: 60.26 MB / 485.6 MB, free: 11.74 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.25/10.42, allocations: 3.313 GB / 3.787 GB, free: 83.95 MB / 0.5108 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002134/10.42, allocations: 79.56 kB / 3.787 GB, free: 83.93 MB / 0.5108 GB Notification: Performance of FrontEnd - DAE generated: time 1.387/11.8, allocations: 334.9 MB / 4.114 GB, free: 53.1 MB / 0.5108 GB Notification: Performance of FrontEnd: time 1.533e-06/11.8, allocations: 7.031 kB / 4.114 GB, free: 53.09 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 9.013e-05/11.8, allocations: 46.02 kB / 4.114 GB, free: 53.09 MB / 0.5108 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.009744/11.81, allocations: 2.461 MB / 4.116 GB, free: 52.2 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 7.679e-05/11.81, allocations: 10 kB / 4.116 GB, free: 52.2 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003727/11.82, allocations: 464.1 kB / 4.117 GB, free: 52.11 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003874/11.82, allocations: 1.23 MB / 4.118 GB, free: 51.79 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.954e-05/11.82, allocations: 51.11 kB / 4.118 GB, free: 51.79 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006621/11.82, allocations: 98.48 kB / 4.118 GB, free: 51.78 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004305/11.83, allocations: 2.363 MB / 4.121 GB, free: 51.77 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004243/11.83, allocations: 2.26 MB / 4.123 GB, free: 51.45 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.164e-05/11.83, allocations: 3.844 kB / 4.123 GB, free: 51.45 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001825/11.83, allocations: 2.594 kB / 4.123 GB, free: 51.45 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001241/11.83, allocations: 82.91 kB / 4.123 GB, free: 51.44 MB / 0.5108 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.2078/12.04, allocations: 106.4 MB / 4.227 GB, free: 39.73 MB / 0.5577 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002402/12.04, allocations: 1.927 MB / 4.229 GB, free: 39.68 MB / 0.5577 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001227/12.04, allocations: 1.039 MB / 4.23 GB, free: 39.67 MB / 0.5577 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5188/12.56, allocations: 129.9 MB / 4.357 GB, free: 67.57 MB / 0.5733 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.61e-05/12.56, allocations: 60.09 kB / 4.357 GB, free: 67.54 MB / 0.5733 GB Notification: Performance of pre-optimization done (n=202): time 5.19e-06/12.56, allocations: 0 / 4.357 GB, free: 67.54 MB / 0.5733 GB Notification: Performance of matching and sorting (n=203): time 0.02306/12.58, allocations: 7.42 MB / 4.364 GB, free: 66.96 MB / 0.5733 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/12.58, allocations: 73.72 kB / 4.364 GB, free: 66.89 MB / 0.5733 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007724/12.58, allocations: 0.5782 MB / 4.364 GB, free: 66.76 MB / 0.5733 GB Notification: Performance of collectPreVariables (initialization): time 0.0003218/12.58, allocations: 27.67 kB / 4.364 GB, free: 66.73 MB / 0.5733 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003029/12.58, allocations: 0.5607 MB / 4.365 GB, free: 66.5 MB / 0.5733 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005586/12.59, allocations: 0.6689 MB / 4.366 GB, free: 66.15 MB / 0.5733 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/12.59, allocations: 0 / 4.366 GB, free: 66.15 MB / 0.5733 GB Notification: Performance of setup shared object (initialization): time 0.0001367/12.59, allocations: 435.5 kB / 4.366 GB, free: 65.84 MB / 0.5733 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001496/12.59, allocations: 1.229 MB / 4.367 GB, free: 65.83 MB / 0.5733 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001624/12.59, allocations: 1.488 MB / 4.369 GB, free: 65.6 MB / 0.5733 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01942/12.61, allocations: 5.305 MB / 4.374 GB, free: 65.33 MB / 0.5733 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.052e-06/12.61, allocations: 3.844 kB / 4.374 GB, free: 65.33 MB / 0.5733 GB Notification: Performance of matching and sorting (n=245) (initialization): time 0.01217/12.62, allocations: 4.694 MB / 4.379 GB, free: 65.16 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 0.000341/12.62, allocations: 1.67 MB / 4.38 GB, free: 63.42 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/12.62, allocations: 7.125 kB / 4.38 GB, free: 63.42 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01066/12.63, allocations: 3.934 MB / 4.384 GB, free: 63.29 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007989/12.63, allocations: 170.9 kB / 4.384 GB, free: 63.29 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01227/12.64, allocations: 6.322 MB / 4.39 GB, free: 62.65 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002096/12.65, allocations: 135.9 kB / 4.39 GB, free: 62.62 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002697/12.65, allocations: 152.1 kB / 4.391 GB, free: 62.62 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/12.65, allocations: 3.906 kB / 4.391 GB, free: 62.62 MB / 0.5733 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009842/12.66, allocations: 4.532 MB / 4.395 GB, free: 62.55 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.804e-05/12.66, allocations: 4.438 kB / 4.395 GB, free: 62.55 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01044/12.67, allocations: 3.959 MB / 4.399 GB, free: 62.43 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007524/12.67, allocations: 173.9 kB / 4.399 GB, free: 62.42 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01213/12.68, allocations: 6.323 MB / 4.405 GB, free: 61.78 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002045/12.68, allocations: 122.9 kB / 4.405 GB, free: 61.75 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002817/12.68, allocations: 152.9 kB / 4.405 GB, free: 61.75 MB / 0.5733 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.0005395/12.68, allocations: 130.8 kB / 4.406 GB, free: 61.64 MB / 0.5733 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009001/12.69, allocations: 3.864 MB / 4.409 GB, free: 61.41 MB / 0.5733 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003877/12.69, allocations: 128.3 kB / 4.41 GB, free: 61.35 MB / 0.5733 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01335/12.71, allocations: 8.883 MB / 4.418 GB, free: 60.7 MB / 0.5733 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-05/12.71, allocations: 76.88 kB / 4.418 GB, free: 60.7 MB / 0.5733 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/12.71, allocations: 3.609 kB / 4.418 GB, free: 60.7 MB / 0.5733 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.257e-05/12.71, allocations: 11.02 kB / 4.418 GB, free: 60.7 MB / 0.5733 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0159/12.72, allocations: 10.79 MB / 4.429 GB, free: 59.97 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.424e-05/12.72, allocations: 0 / 4.429 GB, free: 59.97 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001647/12.72, allocations: 368.2 kB / 4.429 GB, free: 59.96 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00811/12.73, allocations: 4.222 MB / 4.433 GB, free: 59.09 MB / 0.5733 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005435/12.73, allocations: 107.8 kB / 4.433 GB, free: 59.07 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01124/12.74, allocations: 13.57 MB / 4.447 GB, free: 49.29 MB / 0.5733 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/12.74, allocations: 3.594 kB / 4.447 GB, free: 49.29 MB / 0.5733 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01498/12.76, allocations: 9.71 MB / 4.456 GB, free: 41.86 MB / 0.5733 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/12.76, allocations: 0.5486 MB / 4.457 GB, free: 41.37 MB / 0.5733 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003757/12.76, allocations: 13.2 kB / 4.457 GB, free: 41.36 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001578/12.76, allocations: 106.9 kB / 4.457 GB, free: 41.29 MB / 0.5733 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000368/12.76, allocations: 214.2 kB / 4.457 GB, free: 41.16 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002437/12.76, allocations: 144.5 kB / 4.457 GB, free: 41.05 MB / 0.5733 GB Notification: Performance of sorting global known variables: time 0.0006046/12.76, allocations: 483.9 kB / 4.458 GB, free: 40.62 MB / 0.5733 GB Notification: Performance of sort global known variables: time 2.81e-07/12.76, allocations: 0 / 4.458 GB, free: 40.62 MB / 0.5733 GB Notification: Performance of remove unused functions: time 0.009153/12.77, allocations: 1.962 MB / 4.459 GB, free: 38.82 MB / 0.5733 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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: 28 ($cse3.region3boundary,$cse7.phase,$cse7.region,$cse8.region3boundary,$cse13.phase,$cse13.region,$cse14.region3boundary,$cse19.phase,$cse19.region,$cse20.region3boundary,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse31.phase,$cse31.region,$cse32.region3boundary,$cse38.phase,$cse38.region,$cse39.phase,$cse39.region,$cse40.phase,$cse40.region,$cse41.phase,$cse41.region,$cse42.phase,$cse42.region,$cse43.phase,$cse43.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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 {1 5,20 96} Notification: Performance of Backend phase and start with SimCode phase: time 0.02946/12.8, allocations: 10.88 MB / 4.47 GB, free: 29.33 MB / 0.5733 GB Notification: Performance of simCode: created initialization part: time 0.2773/13.08, allocations: 6.087 MB / 4.476 GB, free: 113.4 MB / 0.5733 GB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/13.08, allocations: 0 / 4.476 GB, free: 113.4 MB / 0.5733 GB Notification: Performance of simCode: created simulation system equations: time 0.006317/13.09, allocations: 3.069 MB / 4.479 GB, free: 112.8 MB / 0.5733 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003978/13.09, allocations: 0.6299 MB / 4.48 GB, free: 112.8 MB / 0.5733 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01365/13.1, allocations: 5.966 MB / 4.486 GB, free: 111.9 MB / 0.5733 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001288/13.1, allocations: 1.764 MB / 4.487 GB, free: 111.2 MB / 0.5733 GB Notification: Performance of simCode: alias equations: time 0.006696/13.11, allocations: 6.222 MB / 4.493 GB, free: 111.1 MB / 0.5733 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001454/13.11, allocations: 0.9538 MB / 4.494 GB, free: 111.1 MB / 0.5733 GB Notification: Performance of SimCode: time 7.91e-07/13.11, allocations: 0 / 4.494 GB, free: 111.1 MB / 0.5733 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1722/13.29, allocations: 126.8 MB / 4.618 GB, free: 86.52 MB / 0.5733 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001325/13.29, allocations: 148.1 kB / 4.618 GB, free: 86.32 MB / 0.5733 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.424/19.71, allocations: 0 / 4.618 GB, free: 86.32 MB / 0.5733 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)