Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Storage.Examples.Stratified") translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.939/1.939, allocations: 292.6 MB / 307.5 MB, free: 5.184 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001134/0.001134, allocations: 189 kB / 377.1 MB, free: 1.531 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.905/1.905, allocations: 205.4 MB / 0.6367 GB, free: 8.551 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001154/0.001155, allocations: 88.23 kB / 0.751 GB, free: 63.23 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003574/0.0003573, allocations: 8 kB / 0.8748 GB, free: 11.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2758, allocations: 116.3 MB / 0.9884 GB, free: 6.754 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.596/1.872, allocations: 412.5 MB / 1.391 GB, free: 253.3 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002961/1.872, allocations: 94.44 kB / 1.391 GB, free: 253.3 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 11.77/13.64, allocations: 2.924 GB / 4.315 GB, free: 113.7 MB / 0.9792 GB Notification: Performance of FrontEnd: time 2.545e-06/13.64, allocations: 0.5625 kB / 4.315 GB, free: 113.7 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.002087/13.65, allocations: 250.9 kB / 4.316 GB, free: 113.7 MB / 0.9792 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.05263/13.7, allocations: 9.82 MB / 4.325 GB, free: 110.5 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 7.542e-05/13.7, allocations: 9.188 kB / 4.325 GB, free: 110.5 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01186/13.71, allocations: 1.17 MB / 4.326 GB, free: 110 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03975/13.75, allocations: 10.8 MB / 4.337 GB, free: 108.9 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001109/13.75, allocations: 0.6118 MB / 4.338 GB, free: 108.9 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005682/13.76, allocations: 0.8197 MB / 4.338 GB, free: 108.9 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04705/13.8, allocations: 11.69 MB / 4.35 GB, free: 107.7 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008578/13.8, allocations: 32.95 kB / 4.35 GB, free: 107.7 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006102/13.81, allocations: 356.4 kB / 4.35 GB, free: 107.7 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005739/13.81, allocations: 244.3 kB / 4.35 GB, free: 107.7 MB / 0.9792 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03025/13.84, allocations: 9.637 MB / 4.36 GB, free: 107.6 MB / 0.9792 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.1011/13.94, allocations: 46.59 MB / 4.405 GB, free: 88.16 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0131/13.96, allocations: 6.319 MB / 4.411 GB, free: 87.88 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001538/13.96, allocations: 0.8194 MB / 4.412 GB, free: 87.12 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009487/13.97, allocations: 3.412 MB / 4.416 GB, free: 86.95 MB / 0.9792 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007984/13.98, allocations: 0.5572 MB / 4.416 GB, free: 86.65 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=449): time 3.229e-05/13.98, allocations: 4.062 kB / 4.416 GB, free: 86.65 MB / 0.9792 GB Notification: Performance of matching and sorting (n=449): time 0.02523/14, allocations: 9.016 MB / 4.425 GB, free: 85.88 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001669/14, allocations: 152 kB / 4.425 GB, free: 85.75 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02415/14.02, allocations: 7.095 MB / 4.432 GB, free: 85.32 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.001795/14.03, allocations: 117 kB / 4.432 GB, free: 85.29 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.007163/14.03, allocations: 4.278 MB / 4.436 GB, free: 83.68 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.003306/14.04, allocations: 1.561 MB / 4.438 GB, free: 82.7 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001484/14.04, allocations: 116.4 kB / 4.438 GB, free: 82.7 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0008183/14.04, allocations: 0.5395 MB / 4.438 GB, free: 82.38 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007137/14.05, allocations: 2.986 MB / 4.441 GB, free: 82.37 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007933/14.05, allocations: 4.866 MB / 4.446 GB, free: 80.17 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007059/14.06, allocations: 4.025 MB / 4.45 GB, free: 80.06 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.491e-05/14.06, allocations: 18.72 kB / 4.45 GB, free: 80.06 MB / 0.9792 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01633/14.08, allocations: 8.845 MB / 4.459 GB, free: 79.52 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.006686/14.08, allocations: 29.08 MB / 4.487 GB, free: 49.34 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001684/14.09, allocations: 58.88 kB / 4.487 GB, free: 49.34 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001598/14.09, allocations: 102 kB / 4.487 GB, free: 49.34 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006813/14.09, allocations: 1.441 MB / 4.489 GB, free: 49.34 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001069/14.09, allocations: 124.8 kB / 4.489 GB, free: 49.34 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01027/14.1, allocations: 0.6353 MB / 4.489 GB, free: 49.27 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001566/14.1, allocations: 278.4 kB / 4.49 GB, free: 49.27 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/14.1, allocations: 6.469 kB / 4.49 GB, free: 49.27 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01713/14.12, allocations: 8.263 MB / 4.498 GB, free: 49.12 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001857/14.12, allocations: 59.75 kB / 4.498 GB, free: 49.12 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.153e-05/14.12, allocations: 103 kB / 4.498 GB, free: 49.12 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006618/14.13, allocations: 1.435 MB / 4.499 GB, free: 49.12 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001805/14.13, allocations: 126.1 kB / 4.499 GB, free: 49.12 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01046/14.14, allocations: 0.6012 MB / 4.5 GB, free: 49.07 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002033/14.14, allocations: 283.6 kB / 4.5 GB, free: 49.07 MB / 0.9792 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.01018/14.15, allocations: 3.564 MB / 4.504 GB, free: 48.78 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003052/14.15, allocations: 0.7099 MB / 4.504 GB, free: 48.42 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01375/14.17, allocations: 7.109 MB / 4.511 GB, free: 48.12 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.962e-05/14.17, allocations: 47.59 kB / 4.511 GB, free: 48.12 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/14.17, allocations: 0 / 4.511 GB, free: 48.12 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009399/14.18, allocations: 5.823 MB / 4.517 GB, free: 47.89 MB / 0.9792 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.04298/14.22, allocations: 16.38 MB / 4.533 GB, free: 45.21 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.017e-05/14.22, allocations: 6.281 kB / 4.533 GB, free: 45.21 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004344/14.22, allocations: 0.9086 MB / 4.534 GB, free: 45.18 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.916e-05/14.23, allocations: 13.19 kB / 4.534 GB, free: 45.18 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004646/14.23, allocations: 125.9 kB / 4.534 GB, free: 45.11 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.148e-05/14.23, allocations: 16.66 kB / 4.534 GB, free: 45.11 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/14.23, allocations: 3.75 kB / 4.534 GB, free: 45.11 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01607/14.24, allocations: 10.76 MB / 4.545 GB, free: 40.7 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008219/14.25, allocations: 1.753 MB / 4.546 GB, free: 39.79 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003402/14.25, allocations: 95.08 kB / 4.546 GB, free: 39.73 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008469/14.26, allocations: 0.5714 MB / 4.547 GB, free: 39.64 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007685/14.26, allocations: 257.7 kB / 4.547 GB, free: 39.6 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006946/14.26, allocations: 201.1 kB / 4.547 GB, free: 39.56 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.01109/14.27, allocations: 5.544 MB / 4.553 GB, free: 37.68 MB / 0.9792 GB Notification: Performance of sort global known variables: time 6.11e-07/14.27, allocations: 0 / 4.553 GB, free: 37.68 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.02469/14.3, allocations: 4.927 MB / 4.558 GB, free: 36.67 MB / 0.9792 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.003457/14.3, allocations: 0.9232 MB / 4.559 GB, free: 36.41 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.02493/14.33, allocations: 11.46 MB / 4.57 GB, free: 32.46 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.979e-05/14.33, allocations: 4.156 kB / 4.57 GB, free: 32.46 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.00601/14.33, allocations: 3.195 MB / 4.573 GB, free: 31.25 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0248/14.36, allocations: 4.392 MB / 4.577 GB, free: 30.53 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05925/14.42, allocations: 22.46 MB / 4.599 GB, free: 19.53 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01333/14.43, allocations: 6.247 MB / 4.605 GB, free: 17.54 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.01698/14.45, allocations: 4.345 MB / 4.609 GB, free: 17.2 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003655/14.45, allocations: 0.6157 MB / 4.61 GB, free: 17.16 MB / 0.9792 GB Notification: Performance of SimCode: time 1.613e-06/14.45, allocations: 0 / 4.61 GB, free: 17.16 MB / 0.9792 GB Notification: Performance of Templates: time 1.043/15.49, allocations: 158.6 MB / 4.765 GB, free: 119.3 MB / 1.01 GB make -j1 -f Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.makefile (rm -f Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.sim & ./Buildings_8_Buildings.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)