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.587/1.587, allocations: 289.7 MB / 302.2 MB, free: 2.18 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.001129/0.001129, allocations: 179 kB / 371.6 MB, free: 3.383 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.7/1.7, allocations: 205.1 MB / 0.6309 GB, free: 11.75 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.0009797/0.0009798, allocations: 86.75 kB / 0.745 GB, free: 54.51 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.398e-05/3.402e-05, allocations: 4 kB / 0.8662 GB, free: 15.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2972, allocations: 116.3 MB / 0.9798 GB, free: 10.62 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.136/1.433, allocations: 412.4 MB / 1.383 GB, free: 0.7461 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003205/1.433, allocations: 89.5 kB / 1.383 GB, free: 0.7031 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 12.28/13.71, allocations: 2.917 GB / 4.3 GB, free: 47.4 MB / 0.9792 GB Notification: Performance of FrontEnd: time 2.264e-06/13.71, allocations: 0 / 4.3 GB, free: 47.4 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.001657/13.71, allocations: 251.8 kB / 4.3 GB, free: 47.15 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.03271/13.75, allocations: 8.283 MB / 4.308 GB, free: 38.78 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/13.75, allocations: 12.03 kB / 4.308 GB, free: 38.77 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009678/13.76, allocations: 1.167 MB / 4.309 GB, free: 37.59 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02909/13.79, allocations: 10.74 MB / 4.32 GB, free: 26.82 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007781/13.79, allocations: 0.6178 MB / 4.32 GB, free: 26.2 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004593/13.79, allocations: 0.8201 MB / 4.321 GB, free: 25.38 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04033/13.83, allocations: 11.55 MB / 4.332 GB, free: 13.44 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004547/13.83, allocations: 27.81 kB / 4.332 GB, free: 13.41 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003675/13.84, allocations: 360 kB / 4.333 GB, free: 13.06 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002214/13.84, allocations: 243.9 kB / 4.333 GB, free: 12.82 MB / 0.9792 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02502/13.86, allocations: 9.436 MB / 4.342 GB, free: 3.379 MB / 0.9792 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 1.686/15.55, allocations: 46.59 MB / 4.388 GB, free: 85.8 MB / 0.9793 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01048/15.56, allocations: 6.238 MB / 4.394 GB, free: 85.52 MB / 0.9793 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008116/15.57, allocations: 5.411 MB / 4.399 GB, free: 85.43 MB / 0.9793 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001219/15.57, allocations: 0.8177 MB / 4.4 GB, free: 84.68 MB / 0.9793 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007174/15.57, allocations: 3.323 MB / 4.403 GB, free: 84.51 MB / 0.9793 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007721/15.58, allocations: 0.5522 MB / 4.404 GB, free: 84.35 MB / 0.9793 GB Notification: Performance of pre-optimization done (n=449): time 3.218e-05/15.58, allocations: 2.125 kB / 4.404 GB, free: 84.35 MB / 0.9793 GB Notification: Performance of matching and sorting (n=449): time 0.01324/15.59, allocations: 6.201 MB / 4.41 GB, free: 83.79 MB / 0.9793 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.379e-05/15.6, allocations: 152.5 kB / 4.41 GB, free: 83.66 MB / 0.9793 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01544/15.61, allocations: 7.02 MB / 4.417 GB, free: 83.25 MB / 0.9793 GB Notification: Performance of collectPreVariables (initialization): time 0.001632/15.61, allocations: 115.2 kB / 4.417 GB, free: 83.21 MB / 0.9793 GB Notification: Performance of collectInitialEqns (initialization): time 0.005207/15.62, allocations: 4.285 MB / 4.421 GB, free: 82.05 MB / 0.9793 GB Notification: Performance of collectInitialBindings (initialization): time 0.002909/15.62, allocations: 1.56 MB / 4.422 GB, free: 81.28 MB / 0.9793 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005131/15.62, allocations: 118.6 kB / 4.423 GB, free: 81.28 MB / 0.9793 GB Notification: Performance of setup shared object (initialization): time 0.0004062/15.62, allocations: 0.5421 MB / 4.423 GB, free: 80.96 MB / 0.9793 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004434/15.63, allocations: 2.896 MB / 4.426 GB, free: 80.95 MB / 0.9793 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00516/15.63, allocations: 4.766 MB / 4.431 GB, free: 78.75 MB / 0.9793 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00572/15.64, allocations: 3.959 MB / 4.434 GB, free: 78.63 MB / 0.9793 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.453e-05/15.64, allocations: 16.81 kB / 4.434 GB, free: 78.63 MB / 0.9793 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01795/15.65, allocations: 8.667 MB / 4.443 GB, free: 78.09 MB / 0.9793 GB Notification: Performance of prepare postOptimizeDAE: time 0.009484/15.66, allocations: 29.08 MB / 4.471 GB, free: 63.91 MB / 0.9949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002792/15.66, allocations: 58.25 kB / 4.471 GB, free: 63.91 MB / 0.9949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000233/15.66, allocations: 97.72 kB / 4.471 GB, free: 63.91 MB / 0.9949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007416/15.67, allocations: 1.445 MB / 4.473 GB, free: 63.91 MB / 0.9949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001861/15.67, allocations: 130.4 kB / 4.473 GB, free: 63.9 MB / 0.9949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01099/15.68, allocations: 0.6216 MB / 4.474 GB, free: 63.87 MB / 0.9949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002037/15.69, allocations: 284.8 kB / 4.474 GB, free: 63.87 MB / 0.9949 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/15.69, allocations: 4.562 kB / 4.474 GB, free: 63.87 MB / 0.9949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01821/15.7, allocations: 8.08 MB / 4.482 GB, free: 63.71 MB / 0.9949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002699/15.7, allocations: 61.28 kB / 4.482 GB, free: 63.71 MB / 0.9949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000175/15.7, allocations: 98.31 kB / 4.482 GB, free: 63.71 MB / 0.9949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007357/15.71, allocations: 1.442 MB / 4.483 GB, free: 63.71 MB / 0.9949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002926/15.71, allocations: 129.3 kB / 4.483 GB, free: 63.71 MB / 0.9949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01125/15.72, allocations: 0.5986 MB / 4.484 GB, free: 63.68 MB / 0.9949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00221/15.73, allocations: 282.9 kB / 4.484 GB, free: 63.68 MB / 0.9949 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.00287/15.73, allocations: 0.5433 MB / 4.485 GB, free: 63.51 MB / 0.9949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003391/15.73, allocations: 0.7047 MB / 4.486 GB, free: 63.15 MB / 0.9949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01616/15.75, allocations: 6.961 MB / 4.492 GB, free: 62.86 MB / 0.9949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.676e-05/15.75, allocations: 43.81 kB / 4.492 GB, free: 62.86 MB / 0.9949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.32e-05/15.75, allocations: 0 / 4.492 GB, free: 62.86 MB / 0.9949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01028/15.76, allocations: 5.669 MB / 4.498 GB, free: 62.64 MB / 0.9949 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.04146/15.8, allocations: 16.45 MB / 4.514 GB, free: 61.58 MB / 0.9949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.928e-05/15.8, allocations: 3.5 kB / 4.514 GB, free: 61.58 MB / 0.9949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004287/15.8, allocations: 0.9144 MB / 4.515 GB, free: 61.58 MB / 0.9949 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.957e-05/15.8, allocations: 23.52 kB / 4.515 GB, free: 61.57 MB / 0.9949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000676/15.8, allocations: 116.3 kB / 4.515 GB, free: 61.57 MB / 0.9949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.607e-05/15.8, allocations: 15.97 kB / 4.515 GB, free: 61.57 MB / 0.9949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/15.81, allocations: 4.266 kB / 4.515 GB, free: 61.57 MB / 0.9949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0228/15.83, allocations: 10.53 MB / 4.525 GB, free: 60.66 MB / 0.9949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01061/15.84, allocations: 1.753 MB / 4.527 GB, free: 60.2 MB / 0.9949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005784/15.84, allocations: 95.97 kB / 4.527 GB, free: 60.2 MB / 0.9949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01052/15.85, allocations: 0.5638 MB / 4.528 GB, free: 60.18 MB / 0.9949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001168/15.86, allocations: 257.5 kB / 4.528 GB, free: 60.18 MB / 0.9949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001464/15.86, allocations: 199.6 kB / 4.528 GB, free: 60.18 MB / 0.9949 GB Notification: Performance of sorting global known variables: time 0.01457/15.87, allocations: 5.477 MB / 4.533 GB, free: 59.93 MB / 0.9949 GB Notification: Performance of sort global known variables: time 7.81e-07/15.87, allocations: 0 / 4.533 GB, free: 59.93 MB / 0.9949 GB Notification: Performance of remove unused functions: time 0.02865/15.9, allocations: 4.916 MB / 4.538 GB, free: 59.25 MB / 0.9949 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.005576/15.91, allocations: 0.9334 MB / 4.539 GB, free: 59.1 MB / 0.9949 GB Notification: Performance of simCode: created initialization part: time 0.02657/15.93, allocations: 11.41 MB / 4.55 GB, free: 58.72 MB / 0.9949 GB Notification: Performance of simCode: created event and clocks part: time 1.499e-05/15.93, allocations: 4.438 kB / 4.55 GB, free: 58.72 MB / 0.9949 GB Notification: Performance of simCode: created simulation system equations: time 0.006247/15.94, allocations: 3.123 MB / 4.553 GB, free: 58.58 MB / 0.9949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02705/15.97, allocations: 4.387 MB / 4.558 GB, free: 58.49 MB / 0.9949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04335/16.01, allocations: 16.6 MB / 4.574 GB, free: 55.67 MB / 0.9949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01328/16.02, allocations: 6.262 MB / 4.58 GB, free: 54.66 MB / 0.9949 GB Notification: Performance of simCode: alias equations: time 0.02886/16.05, allocations: 6.587 MB / 4.586 GB, free: 54.23 MB / 0.9949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003735/16.06, allocations: 0.4929 MB / 4.587 GB, free: 54.2 MB / 0.9949 GB Notification: Performance of SimCode: time 1.382e-06/16.06, allocations: 0 / 4.587 GB, free: 54.2 MB / 0.9949 GB Notification: Performance of Templates: time 1.054/17.11, allocations: 164.2 MB / 4.747 GB, free: 122.2 MB / 1.011 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)