Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.conf.json 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/IDEAS 3.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: translateModel(IDEAS.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified") translateModel(IDEAS.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008607/0.008607, allocations: 172 kB / 15.11 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7868/0.7868, allocations: 135.2 MB / 151.1 MB, free: 13.81 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.584/1.584, allocations: 223.2 MB / 406.9 MB, free: 3.219 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 96.11 kB / 489.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004385/0.0004385, allocations: 16 kB / 0.5691 GB, free: 14.17 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4944/0.4949, allocations: 82.3 MB / 0.6495 GB, free: 36.15 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8244/1.319, allocations: 385.4 MB / 1.026 GB, free: 4.781 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002793/1.32, allocations: 93.39 kB / 1.026 GB, free: 4.73 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 11.64/12.96, allocations: 2.983 GB / 4.009 GB, free: 82 MB / 0.7292 GB Notification: Performance of FrontEnd: time 3.337e-06/12.96, allocations: 3.969 kB / 4.009 GB, free: 82 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.001622/12.96, allocations: 262.9 kB / 4.009 GB, free: 81.96 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2145 * Number of variables: 2145 Notification: Performance of Generate backend data structure: time 0.03629/13, allocations: 9.916 MB / 4.019 GB, free: 78.41 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/13, allocations: 11.66 kB / 4.019 GB, free: 78.41 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009615/13.01, allocations: 1.178 MB / 4.02 GB, free: 77.85 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03068/13.04, allocations: 11.09 MB / 4.031 GB, free: 76.75 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007129/13.04, allocations: 0.6116 MB / 4.031 GB, free: 76.73 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003739/13.04, allocations: 0.8157 MB / 4.032 GB, free: 76.73 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03423/13.08, allocations: 11.71 MB / 4.044 GB, free: 75.52 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004803/13.08, allocations: 27.7 kB / 4.044 GB, free: 75.51 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003098/13.08, allocations: 360.2 kB / 4.044 GB, free: 75.51 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002254/13.08, allocations: 244.1 kB / 4.044 GB, free: 75.51 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02265/13.11, allocations: 9.634 MB / 4.054 GB, free: 75.45 MB / 0.7292 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.07687/13.18, allocations: 46.62 MB / 4.099 GB, free: 55.98 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008734/13.19, allocations: 6.333 MB / 4.105 GB, free: 55.68 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001041/13.19, allocations: 0.8155 MB / 4.106 GB, free: 54.93 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005547/13.2, allocations: 3.409 MB / 4.11 GB, free: 54.75 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005073/13.2, allocations: 0.5623 MB / 4.11 GB, free: 54.45 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=449): time 2.048e-05/13.2, allocations: 0 / 4.11 GB, free: 54.45 MB / 0.7292 GB Notification: Performance of matching and sorting (n=449): time 0.01431/13.22, allocations: 9.028 MB / 4.119 GB, free: 53.67 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.576e-05/13.22, allocations: 154 kB / 4.119 GB, free: 53.54 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01275/13.23, allocations: 7.199 MB / 4.126 GB, free: 53.12 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.001425/13.23, allocations: 110.3 kB / 4.126 GB, free: 53.09 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.004501/13.24, allocations: 4.322 MB / 4.13 GB, free: 50.29 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.002479/13.24, allocations: 1.555 MB / 4.132 GB, free: 49.11 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004616/13.24, allocations: 123.3 kB / 4.132 GB, free: 49.01 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0003584/13.24, allocations: 0.5391 MB / 4.133 GB, free: 48.61 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00421/13.24, allocations: 2.983 MB / 4.136 GB, free: 47.59 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005502/13.25, allocations: 4.866 MB / 4.14 GB, free: 44.24 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006086/13.25, allocations: 4.022 MB / 4.144 GB, free: 42.7 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.802e-05/13.25, allocations: 17.72 kB / 4.144 GB, free: 42.7 MB / 0.7292 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01723/13.27, allocations: 8.856 MB / 4.153 GB, free: 39.55 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.01188/13.28, allocations: 29.27 MB / 4.181 GB, free: 7.652 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002766/13.28, allocations: 68.2 kB / 4.181 GB, free: 7.648 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002393/13.28, allocations: 97.19 kB / 4.182 GB, free: 7.648 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007436/13.29, allocations: 1.433 MB / 4.183 GB, free: 7.5 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001662/13.29, allocations: 126 kB / 4.183 GB, free: 7.477 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01034/13.3, allocations: 0.6362 MB / 4.184 GB, free: 7.289 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001653/13.3, allocations: 283.9 kB / 4.184 GB, free: 7.238 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/13.3, allocations: 4.438 kB / 4.184 GB, free: 7.238 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01466/13.32, allocations: 8.262 MB / 4.192 GB, free: 4.109 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001588/13.32, allocations: 60.98 kB / 4.192 GB, free: 4.109 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.797e-05/13.32, allocations: 98.75 kB / 4.192 GB, free: 4.109 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006079/13.33, allocations: 1.436 MB / 4.194 GB, free: 3.961 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001397/13.33, allocations: 125.2 kB / 4.194 GB, free: 3.938 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008905/13.33, allocations: 0.5987 MB / 4.194 GB, free: 3.77 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001491/13.34, allocations: 283.4 kB / 4.195 GB, free: 3.723 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 264 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled,dH.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 742 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009151/13.35, allocations: 3.6 MB / 4.198 GB, free: 1.703 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002897/13.35, allocations: 0.718 MB / 4.199 GB, free: 0.9766 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01493/13.36, allocations: 7.123 MB / 4.206 GB, free: 11.02 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.407e-05/13.36, allocations: 44 kB / 4.206 GB, free: 10.98 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.388e-05/13.36, allocations: 0 / 4.206 GB, free: 10.98 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00995/13.37, allocations: 5.827 MB / 4.212 GB, free: 5.977 MB / 0.7448 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 postOpt removeSimpleEquations (simulation): time 0.6061/13.98, allocations: 16.55 MB / 4.228 GB, free: 89.67 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.618e-05/13.98, allocations: 0 / 4.228 GB, free: 89.67 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004581/13.98, allocations: 0.9106 MB / 4.229 GB, free: 89.67 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.469e-05/13.98, allocations: 13.81 kB / 4.229 GB, free: 89.67 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007099/13.98, allocations: 123.6 kB / 4.229 GB, free: 89.67 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-05/13.98, allocations: 15.41 kB / 4.229 GB, free: 89.67 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/13.98, allocations: 0 / 4.229 GB, free: 89.67 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01865/14, allocations: 10.78 MB / 4.239 GB, free: 89.12 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009003/14.01, allocations: 1.764 MB / 4.241 GB, free: 89.03 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003305/14.02, allocations: 92.31 kB / 4.241 GB, free: 89.03 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008498/14.02, allocations: 0.5734 MB / 4.242 GB, free: 89.03 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001274/14.03, allocations: 256.3 kB / 4.242 GB, free: 89.03 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007422/14.03, allocations: 203.5 kB / 4.242 GB, free: 89.03 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.01262/14.04, allocations: 5.627 MB / 4.248 GB, free: 88.81 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7.11e-07/14.04, allocations: 2.344 kB / 4.248 GB, free: 88.81 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.02302/14.06, allocations: 4.932 MB / 4.252 GB, free: 88.52 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 21 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 441 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003345/14.07, allocations: 0.9304 MB / 4.253 GB, free: 88.4 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.02151/14.09, allocations: 11.46 MB / 4.264 GB, free: 88.06 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.578e-05/14.09, allocations: 6.578 kB / 4.264 GB, free: 88.06 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.005612/14.09, allocations: 3.201 MB / 4.268 GB, free: 87.92 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02528/14.12, allocations: 4.383 MB / 4.272 GB, free: 87.89 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04512/14.16, allocations: 22.63 MB / 4.294 GB, free: 80.26 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009552/14.17, allocations: 6.292 MB / 4.3 GB, free: 79.38 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.01743/14.19, allocations: 4.373 MB / 4.304 GB, free: 79.23 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003775/14.19, allocations: 0.6179 MB / 4.305 GB, free: 79.23 MB / 0.7448 GB Notification: Performance of SimCode: time 2.244e-06/14.19, allocations: 0 / 4.305 GB, free: 79.23 MB / 0.7448 GB Notification: Performance of Templates: time 0.2575/14.45, allocations: 158.6 MB / 4.46 GB, free: 10.52 MB / 0.7448 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.sim & ./IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe 2>&1)