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.001178/0.001178, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7346/0.7346, allocations: 130.6 MB / 143.8 MB, free: 13.59 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.722/1.722, allocations: 221.3 MB / 396.8 MB, free: 9.133 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 97.61 kB / 478.9 MB, free: 10.39 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.438e-05/3.441e-05, allocations: 2.75 kB / 0.5551 GB, free: 86.11 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2062, allocations: 81.59 MB / 0.6348 GB, free: 12.03 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.473/1.679, allocations: 385 MB / 1.011 GB, free: 204.8 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003241/1.679, allocations: 90.58 kB / 1.011 GB, free: 204.8 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 12.06/13.74, allocations: 2.976 GB / 3.987 GB, free: 70.69 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.205e-06/13.74, allocations: 0 / 3.987 GB, free: 70.69 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.001706/13.75, allocations: 264.6 kB / 3.987 GB, free: 70.65 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.03391/13.78, allocations: 8.332 MB / 3.995 GB, free: 67.69 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/13.78, allocations: 13.19 kB / 3.995 GB, free: 67.69 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009756/13.79, allocations: 1.174 MB / 3.996 GB, free: 67.14 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03489/13.82, allocations: 11.05 MB / 4.007 GB, free: 66.04 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001127/13.83, allocations: 0.6126 MB / 4.008 GB, free: 66.02 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005585/13.83, allocations: 0.8253 MB / 4.009 GB, free: 66.01 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0472/13.88, allocations: 11.55 MB / 4.02 GB, free: 64.8 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007652/13.88, allocations: 22.06 kB / 4.02 GB, free: 64.8 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004982/13.88, allocations: 359.7 kB / 4.02 GB, free: 64.8 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004023/13.88, allocations: 245.2 kB / 4.02 GB, free: 64.8 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03029/13.91, allocations: 9.436 MB / 4.03 GB, free: 64.73 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.1065/14.02, allocations: 46.64 MB / 4.075 GB, free: 45.27 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01211/14.03, allocations: 6.24 MB / 4.081 GB, free: 44.98 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00953/14.04, allocations: 5.417 MB / 4.087 GB, free: 44.82 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001484/14.04, allocations: 0.8208 MB / 4.087 GB, free: 44.07 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007915/14.05, allocations: 3.325 MB / 4.091 GB, free: 43.9 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.008081/14.06, allocations: 0.5549 MB / 4.091 GB, free: 43.6 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=449): time 6.234e-05/14.06, allocations: 0 / 4.091 GB, free: 43.6 MB / 0.7136 GB Notification: Performance of matching and sorting (n=449): time 0.02004/14.08, allocations: 6.204 MB / 4.097 GB, free: 43.04 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.767e-05/14.08, allocations: 156.7 kB / 4.097 GB, free: 42.91 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01994/14.1, allocations: 7.127 MB / 4.104 GB, free: 42.45 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.001809/14.1, allocations: 113.3 kB / 4.104 GB, free: 42.41 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.00791/14.11, allocations: 4.327 MB / 4.109 GB, free: 39.25 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.003538/14.11, allocations: 1.554 MB / 4.11 GB, free: 38.07 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001537/14.12, allocations: 120.6 kB / 4.11 GB, free: 37.98 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0007478/14.12, allocations: 0.5481 MB / 4.111 GB, free: 37.57 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005975/14.12, allocations: 2.891 MB / 4.114 GB, free: 36.56 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007365/14.13, allocations: 4.775 MB / 4.118 GB, free: 33.23 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007552/14.14, allocations: 3.955 MB / 4.122 GB, free: 31.89 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.67e-05/14.14, allocations: 16.78 kB / 4.122 GB, free: 31.89 MB / 0.7136 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02359/14.16, allocations: 8.68 MB / 4.131 GB, free: 29.05 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.01378/14.17, allocations: 29.27 MB / 4.159 GB, free: 29.18 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004207/14.18, allocations: 57.19 kB / 4.159 GB, free: 29.18 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003233/14.18, allocations: 99.5 kB / 4.159 GB, free: 29.18 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008321/14.18, allocations: 1.442 MB / 4.161 GB, free: 29.09 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002391/14.18, allocations: 132.1 kB / 4.161 GB, free: 29.06 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01124/14.2, allocations: 0.6242 MB / 4.162 GB, free: 28.88 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00202/14.2, allocations: 286.6 kB / 4.162 GB, free: 28.83 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/14.2, allocations: 4.875 kB / 4.162 GB, free: 28.83 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01894/14.22, allocations: 8.082 MB / 4.17 GB, free: 25.93 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002509/14.22, allocations: 60.94 kB / 4.17 GB, free: 25.93 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001514/14.22, allocations: 96.81 kB / 4.17 GB, free: 25.93 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006474/14.22, allocations: 1.441 MB / 4.171 GB, free: 25.78 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000177/14.22, allocations: 128 kB / 4.171 GB, free: 25.76 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00986/14.23, allocations: 0.5955 MB / 4.172 GB, free: 25.58 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001869/14.24, allocations: 285.7 kB / 4.172 GB, free: 25.53 MB / 0.7448 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.003549/14.24, allocations: 0.5438 MB / 4.173 GB, free: 25.06 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003795/14.24, allocations: 0.7207 MB / 4.173 GB, free: 24.69 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01758/14.26, allocations: 6.965 MB / 4.18 GB, free: 19.38 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.179e-05/14.26, allocations: 44 kB / 4.18 GB, free: 19.33 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.109e-05/14.26, allocations: 0 / 4.18 GB, free: 19.33 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01001/14.27, allocations: 5.677 MB / 4.186 GB, free: 14.46 MB / 0.7448 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.04889/14.32, allocations: 16.48 MB / 4.202 GB, free: 1.367 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.626e-05/14.32, allocations: 0 / 4.202 GB, free: 1.367 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00512/14.32, allocations: 0.9158 MB / 4.203 GB, free: 0.6094 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.285e-05/14.33, allocations: 16 kB / 4.203 GB, free: 0.5938 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001166/14.33, allocations: 115.9 kB / 4.203 GB, free: 0.4961 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.565e-05/14.33, allocations: 16 kB / 4.203 GB, free: 492 kB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/14.33, allocations: 3.75 kB / 4.203 GB, free: 492 kB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.7308/15.06, allocations: 10.55 MB / 4.213 GB, free: 94.69 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008347/15.07, allocations: 1.751 MB / 4.215 GB, free: 94.5 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003598/15.07, allocations: 96.45 kB / 4.215 GB, free: 94.5 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00919/15.08, allocations: 0.5638 MB / 4.216 GB, free: 94.48 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001389/15.08, allocations: 250.5 kB / 4.216 GB, free: 94.48 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001446/15.08, allocations: 204.3 kB / 4.216 GB, free: 94.48 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.01496/15.1, allocations: 5.562 MB / 4.222 GB, free: 94.23 MB / 0.7448 GB Notification: Performance of sort global known variables: time 3.91e-07/15.1, allocations: 0 / 4.222 GB, free: 94.23 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.02911/15.13, allocations: 4.925 MB / 4.226 GB, free: 93.87 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) * 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.004049/15.13, allocations: 0.9238 MB / 4.227 GB, free: 93.75 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.02315/15.15, allocations: 11.42 MB / 4.238 GB, free: 93.38 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.038e-05/15.15, allocations: 6.719 kB / 4.238 GB, free: 93.38 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.006633/15.16, allocations: 3.123 MB / 4.241 GB, free: 93.23 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02921/15.19, allocations: 4.388 MB / 4.246 GB, free: 93.19 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04832/15.24, allocations: 16.72 MB / 4.262 GB, free: 90.37 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01428/15.25, allocations: 6.315 MB / 4.268 GB, free: 89.48 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.02904/15.28, allocations: 6.684 MB / 4.275 GB, free: 89.41 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00474/15.29, allocations: 0.4924 MB / 4.275 GB, free: 89.4 MB / 0.7448 GB Notification: Performance of SimCode: time 2.294e-06/15.29, allocations: 0 / 4.275 GB, free: 89.4 MB / 0.7448 GB Notification: Performance of Templates: time 0.2945/15.58, allocations: 164.6 MB / 4.436 GB, free: 21.99 MB / 0.7448 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)