Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified") translateModel(BuildingSystems.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8745/0.8745, allocations: 140.1 MB / 156 MB, free: 5.172 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001149/0.001149, allocations: 167.2 kB / 188.5 MB, free: 15.83 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.92/1.92, allocations: 205.4 MB / 426.3 MB, free: 8.484 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001452/0.001452, allocations: 90.3 kB / 0.4945 GB, free: 8.418 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.00199/0.00199, allocations: 273.3 kB / 0.5728 GB, free: 66.22 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005807/0.0005811, allocations: 16 kB / 0.662 GB, free: 6.82 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5164/0.517, allocations: 79.31 MB / 0.7395 GB, free: 46.36 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9651/1.482, allocations: 380.7 MB / 1.111 GB, free: 12.59 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003377/1.483, allocations: 96.39 kB / 1.111 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 11.11/12.59, allocations: 2.907 GB / 4.018 GB, free: 28.39 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.284e-06/12.59, allocations: 0 / 4.018 GB, free: 28.39 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.002053/12.59, allocations: 251.8 kB / 4.018 GB, free: 28.15 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.03688/12.63, allocations: 9.718 MB / 4.028 GB, free: 18.32 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/12.63, allocations: 8.031 kB / 4.028 GB, free: 18.31 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00818/12.63, allocations: 1.172 MB / 4.029 GB, free: 17.13 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02795/12.66, allocations: 10.43 MB / 4.039 GB, free: 6.625 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008264/12.66, allocations: 0.6143 MB / 4.04 GB, free: 6.008 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004093/12.67, allocations: 0.8089 MB / 4.04 GB, free: 5.199 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5552/13.22, allocations: 11.77 MB / 4.052 GB, free: 65.54 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003714/13.22, allocations: 28.66 kB / 4.052 GB, free: 65.54 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002454/13.23, allocations: 361.3 kB / 4.052 GB, free: 65.54 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002329/13.23, allocations: 248.6 kB / 4.052 GB, free: 65.54 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02753/13.25, allocations: 9.629 MB / 4.062 GB, free: 65.48 MB / 0.7136 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.09261/13.35, allocations: 46.28 MB / 4.107 GB, free: 46.92 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01167/13.36, allocations: 6.19 MB / 4.113 GB, free: 46.63 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009483/13.37, allocations: 5.499 MB / 4.119 GB, free: 46.53 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00143/13.37, allocations: 0.8155 MB / 4.119 GB, free: 45.77 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007791/13.38, allocations: 3.4 MB / 4.123 GB, free: 45.61 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006337/13.38, allocations: 0.5233 MB / 4.123 GB, free: 45.46 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=449): time 2.722e-05/13.38, allocations: 0 / 4.123 GB, free: 45.46 MB / 0.7136 GB Notification: Performance of matching and sorting (n=449): time 0.02311/13.41, allocations: 8.794 MB / 4.132 GB, free: 44.89 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/13.41, allocations: 159 kB / 4.132 GB, free: 44.77 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02091/13.43, allocations: 7.277 MB / 4.139 GB, free: 44.34 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.001517/13.43, allocations: 111.8 kB / 4.139 GB, free: 44.3 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.006774/13.44, allocations: 4.279 MB / 4.143 GB, free: 43.03 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.003184/13.44, allocations: 1.562 MB / 4.145 GB, free: 42.05 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001389/13.44, allocations: 112.6 kB / 4.145 GB, free: 42.05 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0007581/13.44, allocations: 0.5514 MB / 4.145 GB, free: 41.73 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00646/13.45, allocations: 2.97 MB / 4.148 GB, free: 41.72 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007729/13.46, allocations: 4.859 MB / 4.153 GB, free: 39.52 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01438/13.47, allocations: 8.532 MB / 4.161 GB, free: 37.23 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001337/13.47, allocations: 16.66 kB / 4.161 GB, free: 37.23 MB / 0.7136 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02199/13.49, allocations: 8.814 MB / 4.17 GB, free: 36.7 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.001583/13.49, allocations: 1.886 MB / 4.172 GB, free: 34.44 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001962/13.49, allocations: 61.11 kB / 4.172 GB, free: 34.44 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001673/13.49, allocations: 92.53 kB / 4.172 GB, free: 34.44 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00643/13.5, allocations: 1.376 MB / 4.173 GB, free: 34.44 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002305/13.5, allocations: 130.4 kB / 4.173 GB, free: 34.44 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009679/13.51, allocations: 0.6161 MB / 4.174 GB, free: 34.37 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001919/13.51, allocations: 280.1 kB / 4.174 GB, free: 34.37 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/13.51, allocations: 3.25 kB / 4.174 GB, free: 34.37 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01958/13.53, allocations: 8.231 MB / 4.182 GB, free: 34.22 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002836/13.53, allocations: 58.06 kB / 4.182 GB, free: 34.22 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001678/13.53, allocations: 91.41 kB / 4.183 GB, free: 34.22 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006329/13.54, allocations: 1.379 MB / 4.184 GB, free: 34.13 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002366/13.54, allocations: 127.6 kB / 4.184 GB, free: 34.11 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009488/13.55, allocations: 0.5882 MB / 4.185 GB, free: 34.06 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001853/13.55, allocations: 277.6 kB / 4.185 GB, free: 34.06 MB / 0.7136 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.009857/13.56, allocations: 3.558 MB / 4.188 GB, free: 33.68 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003302/13.56, allocations: 0.7147 MB / 4.189 GB, free: 33.31 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01733/13.58, allocations: 7.072 MB / 4.196 GB, free: 33.03 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.463e-05/13.58, allocations: 42.75 kB / 4.196 GB, free: 33.03 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.513e-05/13.58, allocations: 2.156 kB / 4.196 GB, free: 33.03 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0107/13.59, allocations: 5.797 MB / 4.202 GB, free: 32.8 MB / 0.7136 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.04605/13.64, allocations: 16.47 MB / 4.218 GB, free: 26.75 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.951e-05/13.64, allocations: 5.094 kB / 4.218 GB, free: 26.75 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004664/13.64, allocations: 0.9501 MB / 4.219 GB, free: 26.68 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-05/13.64, allocations: 16.55 kB / 4.219 GB, free: 26.68 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001043/13.64, allocations: 115.6 kB / 4.219 GB, free: 26.62 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-05/13.64, allocations: 19.59 kB / 4.219 GB, free: 26.62 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/13.64, allocations: 5.938 kB / 4.219 GB, free: 26.61 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01926/13.66, allocations: 10.52 MB / 4.229 GB, free: 22.41 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006746/13.67, allocations: 1.653 MB / 4.231 GB, free: 21.54 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003282/13.67, allocations: 103.5 kB / 4.231 GB, free: 21.48 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007722/13.68, allocations: 0.5952 MB / 4.231 GB, free: 21.39 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001184/13.68, allocations: 250.3 kB / 4.232 GB, free: 21.36 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001259/13.68, allocations: 199 kB / 4.232 GB, free: 21.32 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.01176/13.7, allocations: 5.075 MB / 4.237 GB, free: 19.62 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6.51e-07/13.7, allocations: 0 / 4.237 GB, free: 19.62 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.02143/13.72, allocations: 4.879 MB / 4.242 GB, free: 18.65 MB / 0.7136 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.003261/13.72, allocations: 0.9046 MB / 4.242 GB, free: 18.37 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.02027/13.74, allocations: 11.39 MB / 4.254 GB, free: 14.38 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.283e-05/13.74, allocations: 3.781 kB / 4.254 GB, free: 14.38 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.005333/13.75, allocations: 3.151 MB / 4.257 GB, free: 13.19 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03125/13.78, allocations: 4.427 MB / 4.261 GB, free: 12.46 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05755/13.84, allocations: 23.11 MB / 4.284 GB, free: 10.52 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01362/13.85, allocations: 6.084 MB / 4.289 GB, free: 5.883 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.01832/13.87, allocations: 4.232 MB / 4.294 GB, free: 3.07 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003626/13.87, allocations: 0.6101 MB / 4.294 GB, free: 2.508 MB / 0.7292 GB Notification: Performance of SimCode: time 1.273e-06/13.87, allocations: 0 / 4.294 GB, free: 2.508 MB / 0.7292 GB Notification: Performance of Templates: time 0.7107/14.58, allocations: 160.3 MB / 4.451 GB, free: 77.82 MB / 0.7448 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.sim & ./BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe 2>&1)