Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/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/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_IDEAS.Fluid.Storage.Examples.Stratified") translateModel(IDEAS.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001636/0.001636, allocations: 167.9 kB / 7.639 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.807/0.807, allocations: 130.7 MB / 138.7 MB, free: 3.57 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.693/1.693, allocations: 221.5 MB / 391.8 MB, free: 14.17 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.001105/0.001105, allocations: 101.5 kB / 473.9 MB, free: 4.473 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.689e-05/1.69e-05, allocations: 4 kB / 0.5485 GB, free: 13.08 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5267/0.5268, allocations: 81.58 MB / 0.6282 GB, free: 42.92 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9383/1.465, allocations: 384.4 MB / 1.004 GB, free: 8.188 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/1.465, allocations: 82.77 kB / 1.004 GB, free: 8.148 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 13.49/14.95, allocations: 2.961 GB / 3.965 GB, free: 75.7 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.244e-06/14.95, allocations: 3.906 kB / 3.965 GB, free: 75.7 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.003098/14.96, allocations: 260.7 kB / 3.965 GB, free: 75.66 MB / 0.7136 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.03838/14.99, allocations: 8.339 MB / 3.973 GB, free: 72.67 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/14.99, allocations: 9.5 kB / 3.973 GB, free: 72.67 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009485/15, allocations: 1.171 MB / 3.974 GB, free: 72.12 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03393/15.04, allocations: 11.06 MB / 3.985 GB, free: 71.02 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007498/15.04, allocations: 267.2 kB / 3.985 GB, free: 71.02 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004947/15.04, allocations: 496.1 kB / 3.986 GB, free: 71.01 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02745/15.07, allocations: 8.898 MB / 3.995 GB, free: 70.97 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03749/15.11, allocations: 10.34 MB / 4.005 GB, free: 69.8 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004818/15.11, allocations: 25.75 kB / 4.005 GB, free: 69.8 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003593/15.11, allocations: 17.09 kB / 4.005 GB, free: 69.8 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002716/15.11, allocations: 246.5 kB / 4.005 GB, free: 69.8 MB / 0.7136 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.09954/15.21, allocations: 45 MB / 4.049 GB, free: 50.59 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01164/15.22, allocations: 5.997 MB / 4.055 GB, free: 50.33 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008389/15.23, allocations: 4.663 MB / 4.059 GB, free: 50.24 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001593/15.23, allocations: 0.8228 MB / 4.06 GB, free: 49.49 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007872/15.24, allocations: 3.168 MB / 4.063 GB, free: 49.33 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007258/15.25, allocations: 398.1 kB / 4.064 GB, free: 49.1 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=449): time 3.374e-05/15.25, allocations: 0 / 4.064 GB, free: 49.1 MB / 0.7136 GB Notification: Performance of matching and sorting (n=449): time 0.01883/15.27, allocations: 6.129 MB / 4.07 GB, free: 48.63 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/15.27, allocations: 155.6 kB / 4.07 GB, free: 48.5 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02286/15.29, allocations: 5.921 MB / 4.075 GB, free: 48.09 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.002518/15.29, allocations: 29.45 kB / 4.075 GB, free: 48.06 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.009167/15.3, allocations: 4.312 MB / 4.08 GB, free: 46.27 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.004194/15.31, allocations: 1.505 MB / 4.081 GB, free: 45.29 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001993/15.31, allocations: 0 / 4.081 GB, free: 45.29 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.001031/15.31, allocations: 0.5388 MB / 4.082 GB, free: 44.97 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005993/15.32, allocations: 2.785 MB / 4.084 GB, free: 44.96 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007584/15.32, allocations: 4.617 MB / 4.089 GB, free: 42.5 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008834/15.33, allocations: 4.066 MB / 4.093 GB, free: 41.18 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001264/15.33, allocations: 16.66 kB / 4.093 GB, free: 41.18 MB / 0.7136 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02147/15.36, allocations: 8.245 MB / 4.101 GB, free: 38.62 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.01048/15.37, allocations: 28.12 MB / 4.128 GB, free: 24.81 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002752/15.37, allocations: 59.09 kB / 4.128 GB, free: 24.81 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001959/15.37, allocations: 98.91 kB / 4.129 GB, free: 24.81 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007576/15.37, allocations: 1.444 MB / 4.13 GB, free: 24.75 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002361/15.37, allocations: 125.1 kB / 4.13 GB, free: 24.75 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01069/15.39, allocations: 0.5129 MB / 4.131 GB, free: 24.66 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002392/15.39, allocations: 290.7 kB / 4.131 GB, free: 24.61 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/15.39, allocations: 6.406 kB / 4.131 GB, free: 24.61 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02213/15.41, allocations: 7.599 MB / 4.138 GB, free: 22.11 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000316/15.41, allocations: 62.89 kB / 4.138 GB, free: 22.11 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002194/15.41, allocations: 95.75 kB / 4.138 GB, free: 22.11 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007059/15.42, allocations: 1.446 MB / 4.14 GB, free: 21.96 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002483/15.42, allocations: 128 kB / 4.14 GB, free: 21.93 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01211/15.43, allocations: 492.7 kB / 4.14 GB, free: 21.85 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002716/15.43, allocations: 280.1 kB / 4.141 GB, free: 21.8 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 () * 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.005197/15.44, allocations: 357.1 kB / 4.141 GB, free: 21.48 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004995/15.44, allocations: 0.6408 MB / 4.142 GB, free: 21.15 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02069/15.46, allocations: 6.768 MB / 4.148 GB, free: 18.83 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.487e-05/15.46, allocations: 44.44 kB / 4.148 GB, free: 18.83 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.029e-05/15.46, allocations: 0 / 4.148 GB, free: 18.83 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01108/15.47, allocations: 5.65 MB / 4.154 GB, free: 14.39 MB / 0.7292 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 postOpt removeSimpleEquations (simulation): time 0.04486/15.52, allocations: 15.39 MB / 4.169 GB, free: 2.277 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.925e-05/15.52, allocations: 0 / 4.169 GB, free: 2.277 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005052/15.52, allocations: 0.9129 MB / 4.17 GB, free: 1.523 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.04e-05/15.52, allocations: 16 kB / 4.17 GB, free: 1.508 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001055/15.53, allocations: 68.22 kB / 4.17 GB, free: 1.461 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.243e-05/15.53, allocations: 16 kB / 4.17 GB, free: 1.445 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/15.53, allocations: 3.938 kB / 4.17 GB, free: 1.441 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.7859/16.31, allocations: 10.41 MB / 4.18 GB, free: 83.88 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007033/16.32, allocations: 1.67 MB / 4.182 GB, free: 83.75 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003237/16.32, allocations: 24.89 kB / 4.182 GB, free: 83.75 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008867/16.33, allocations: 495.9 kB / 4.182 GB, free: 83.73 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001194/16.33, allocations: 260.7 kB / 4.182 GB, free: 83.73 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007778/16.33, allocations: 202.9 kB / 4.183 GB, free: 83.73 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.01041/16.34, allocations: 4.521 MB / 4.187 GB, free: 83.52 MB / 0.7292 GB Notification: Performance of sort global known variables: time 8.02e-07/16.34, allocations: 0 / 4.187 GB, free: 83.52 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.02969/16.37, allocations: 4.773 MB / 4.192 GB, free: 83.08 MB / 0.7292 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) * 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.004133/16.38, allocations: 0.8663 MB / 4.193 GB, free: 82.96 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.02777/16.41, allocations: 10.87 MB / 4.203 GB, free: 82.62 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-05/16.41, allocations: 4.469 kB / 4.203 GB, free: 82.62 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.00568/16.41, allocations: 3.031 MB / 4.206 GB, free: 82.48 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02225/16.43, allocations: 3.476 MB / 4.21 GB, free: 82.45 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05048/16.48, allocations: 16.25 MB / 4.225 GB, free: 79.62 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01411/16.5, allocations: 6.308 MB / 4.232 GB, free: 78.73 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.02618/16.52, allocations: 5.942 MB / 4.237 GB, free: 78.67 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00397/16.53, allocations: 469.7 kB / 4.238 GB, free: 78.67 MB / 0.7292 GB Notification: Performance of SimCode: time 1.463e-06/16.53, allocations: 0 / 4.238 GB, free: 78.67 MB / 0.7292 GB Notification: Performance of Templates: time 0.2512/16.78, allocations: 130.1 MB / 4.365 GB, free: 48.52 MB / 0.7292 GB make -j1 -f IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.makefile (rm -f IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; mkfifo IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe >> ../files/IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.sim & ./IDEAS_IDEAS.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe 2>&1)