Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified") translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.461/1.461, allocations: 252 MB / 268 MB, free: 10.87 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001013/0.001013, allocations: 170.7 kB / 327.6 MB, free: 2.117 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.753/1.753, allocations: 205.4 MB / 0.5786 GB, free: 20.17 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009647/0.0009647, allocations: 84.14 kB / 0.6832 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003586/0.0003586, allocations: 12.97 kB / 0.7976 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2602, allocations: 106.3 MB / 0.9015 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.Stratified): time 0.03999/0.3002, allocations: 54.74 MB / 0.9549 GB, free: 8.562 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.02333/0.3236, allocations: 17.21 MB / 0.9717 GB, free: 7.301 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003377/0.327, allocations: 63.62 kB / 0.9718 GB, free: 7.238 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.002849/0.3299, allocations: 0.7848 MB / 0.9725 GB, free: 6.449 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.007879/0.3378, allocations: 2.263 MB / 0.9748 GB, free: 4.176 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.004692/0.3425, allocations: 1.556 MB / 0.9763 GB, free: 2.633 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.03904/0.3816, allocations: 38.12 MB / 1.014 GB, free: 12.42 MB / 0.6667 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02151/0.4031, allocations: 11.39 MB / 1.025 GB, free: 0.918 MB / 0.6667 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01695/0.4201, allocations: 7.244 MB / 1.032 GB, free: 9.645 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01689/0.437, allocations: 7.969 MB / 1.039 GB, free: 1.641 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.003076/0.4402, allocations: 472 kB / 1.04 GB, free: 1.18 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008291/0.4485, allocations: 1.552 MB / 1.041 GB, free: 15.62 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.004485/0.453, allocations: 2.159 MB / 1.044 GB, free: 13.46 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.01206/0.4651, allocations: 5.308 MB / 1.049 GB, free: 8.117 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.4489/0.914, allocations: 14.29 MB / 1.063 GB, free: 49.08 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.9141, allocations: 0 / 1.063 GB, free: 49.08 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.697e-06/0.9141, allocations: 0 / 1.063 GB, free: 49.08 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0007713/0.9149, allocations: 3.906 kB / 1.063 GB, free: 49.08 MB / 0.698 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.02456/0.9394, allocations: 9.387 MB / 1.072 GB, free: 45.51 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.69e-05/0.9395, allocations: 10.09 kB / 1.072 GB, free: 45.51 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008385/0.9479, allocations: 1.168 MB / 1.073 GB, free: 44.96 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02327/0.9712, allocations: 9.067 MB / 1.082 GB, free: 43.68 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008342/0.9721, allocations: 0.618 MB / 1.082 GB, free: 43.66 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004477/0.9766, allocations: 0.8224 MB / 1.083 GB, free: 43.64 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03166/1.008, allocations: 12.4 MB / 1.095 GB, free: 42.44 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002912/1.009, allocations: 22.22 kB / 1.095 GB, free: 42.44 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002283/1.011, allocations: 353.2 kB / 1.096 GB, free: 42.44 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002489/1.011, allocations: 249 kB / 1.096 GB, free: 42.44 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02636/1.038, allocations: 10.43 MB / 1.106 GB, free: 42.2 MB / 0.698 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.07161/1.109, allocations: 48.38 MB / 1.153 GB, free: 12.12 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008928/1.118, allocations: 6.316 MB / 1.16 GB, free: 5.859 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006894/1.125, allocations: 4.991 MB / 1.164 GB, free: 0.8789 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001298/1.126, allocations: 0.8429 MB / 1.165 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006843/1.133, allocations: 3.389 MB / 1.169 GB, free: 12.48 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005273/1.139, allocations: 0.4945 MB / 1.169 GB, free: 11.98 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=455): time 1.758e-05/1.139, allocations: 0 / 1.169 GB, free: 11.98 MB / 0.7136 GB Notification: Performance of matching and sorting (n=455): time 0.01937/1.158, allocations: 8.938 MB / 1.178 GB, free: 3.027 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/1.158, allocations: 158.3 kB / 1.178 GB, free: 2.848 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01538/1.174, allocations: 7.292 MB / 1.185 GB, free: 11.57 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.001375/1.175, allocations: 113.7 kB / 1.185 GB, free: 11.46 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.005256/1.18, allocations: 4.27 MB / 1.189 GB, free: 7.168 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.002955/1.183, allocations: 1.583 MB / 1.191 GB, free: 5.602 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001105/1.184, allocations: 124 kB / 1.191 GB, free: 5.48 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.000546/1.185, allocations: 0.5421 MB / 1.192 GB, free: 4.93 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005952/1.191, allocations: 3.025 MB / 1.195 GB, free: 1.898 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007334/1.198, allocations: 4.892 MB / 1.199 GB, free: 12.21 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01383/1.212, allocations: 8.618 MB / 1.208 GB, free: 3 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.53e-05/1.212, allocations: 16 kB / 1.208 GB, free: 2.984 MB / 0.7448 GB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02024/1.233, allocations: 8.904 MB / 1.216 GB, free: 10.39 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.001731/1.234, allocations: 1.865 MB / 1.218 GB, free: 7.742 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001359/1.235, allocations: 60 kB / 1.218 GB, free: 7.684 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001351/1.235, allocations: 91.98 kB / 1.218 GB, free: 7.594 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006205/1.241, allocations: 1.365 MB / 1.22 GB, free: 6.32 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001783/1.241, allocations: 124.5 kB / 1.22 GB, free: 6.223 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009088/1.25, allocations: 0.6193 MB / 1.22 GB, free: 5.602 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00138/1.252, allocations: 276 kB / 1.221 GB, free: 5.332 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/1.252, allocations: 4 kB / 1.221 GB, free: 5.328 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01734/1.269, allocations: 8.319 MB / 1.229 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002196/1.269, allocations: 56 kB / 1.229 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001197/1.269, allocations: 91.94 kB / 1.229 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006107/1.276, allocations: 1.369 MB / 1.23 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001625/1.276, allocations: 123.9 kB / 1.23 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008036/1.284, allocations: 0.6 MB / 1.231 GB, free: 11.24 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001243/1.285, allocations: 276 kB / 1.231 GB, free: 10.97 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 260 * 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 (748): * Single equations (assignments): 746 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008558/1.294, allocations: 3.553 MB / 1.235 GB, free: 7.488 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003461/1.297, allocations: 0.7128 MB / 1.235 GB, free: 6.77 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0163/1.313, allocations: 7.172 MB / 1.242 GB, free: 15.57 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.415e-05/1.313, allocations: 48 kB / 1.242 GB, free: 15.53 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.775e-05/1.313, allocations: 0 / 1.242 GB, free: 15.53 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01128/1.325, allocations: 5.871 MB / 1.248 GB, free: 9.629 MB / 0.7917 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.04066/1.366, allocations: 16.53 MB / 1.264 GB, free: 9.074 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.676e-05/1.366, allocations: 0 / 1.264 GB, free: 9.074 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004637/1.37, allocations: 0.9484 MB / 1.265 GB, free: 8.164 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-05/1.37, allocations: 16 kB / 1.265 GB, free: 8.148 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007114/1.371, allocations: 122.2 kB / 1.265 GB, free: 8.031 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.119e-05/1.371, allocations: 16 kB / 1.265 GB, free: 8.016 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.371, allocations: 0 / 1.265 GB, free: 8.016 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01861/1.39, allocations: 10.63 MB / 1.276 GB, free: 13.32 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00624/1.396, allocations: 1.644 MB / 1.277 GB, free: 11.65 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003149/1.399, allocations: 95.98 kB / 1.278 GB, free: 11.56 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008059/1.407, allocations: 0.6322 MB / 1.278 GB, free: 10.93 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009568/1.408, allocations: 259.1 kB / 1.278 GB, free: 10.68 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008537/1.409, allocations: 187.8 kB / 1.279 GB, free: 10.49 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.01144/1.421, allocations: 5.101 MB / 1.284 GB, free: 5.418 MB / 0.823 GB Notification: Performance of sort global known variables: time 3.5e-07/1.421, allocations: 0 / 1.284 GB, free: 5.418 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.02028/1.441, allocations: 4.799 MB / 1.288 GB, free: 0.6055 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 23 (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,HOut_flow.h_out,HOut_flow1.h_out,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 (451): * Single equations (assignments): 447 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00256/1.443, allocations: 0.5724 MB / 1.289 GB, free: 104 kB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.02186/1.465, allocations: 11.53 MB / 1.3 GB, free: 4.93 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.155e-05/1.465, allocations: 4 kB / 1.3 GB, free: 4.926 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.00607/1.472, allocations: 3.219 MB / 1.303 GB, free: 1.77 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02988/1.501, allocations: 4.475 MB / 1.308 GB, free: 13.39 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04766/1.549, allocations: 23.57 MB / 1.331 GB, free: 5.797 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007896/1.557, allocations: 6.046 MB / 1.336 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003519/1.561, allocations: 0.6424 MB / 1.337 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of SimCode: time 1.082e-06/1.561, allocations: 0 / 1.337 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of Templates: time 0.7773/2.338, allocations: 150.7 MB / 1.484 GB, free: 286.7 MB / 0.9323 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)