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.633/1.633, allocations: 252 MB / 267.6 MB, free: 10.91 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.001135/0.001135, allocations: 176.5 kB / 327.3 MB, free: 2.195 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.124/2.124, allocations: 205.4 MB / 0.5783 GB, free: 20.27 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.00114/0.00114, allocations: 88.03 kB / 0.6829 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003203/0.0003206, allocations: 10.34 kB / 0.797 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.2367, allocations: 106.3 MB / 0.9008 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.Stratified): time 0.03956/0.2763, allocations: 51.75 MB / 0.9514 GB, free: 11.99 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.02067/0.297, allocations: 16.25 MB / 0.9672 GB, free: 11.71 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003183/0.3002, allocations: 67.56 kB / 0.9673 GB, free: 11.64 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.002926/0.3032, allocations: 0.6911 MB / 0.968 GB, free: 10.95 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.007522/0.3107, allocations: 1.957 MB / 0.9699 GB, free: 8.98 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.00499/0.3157, allocations: 1.273 MB / 0.9711 GB, free: 7.715 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.03248/0.3482, allocations: 32.35 MB / 1.003 GB, free: 7.277 MB / 0.6511 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01907/0.3673, allocations: 9.983 MB / 1.012 GB, free: 13.21 MB / 0.6667 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01764/0.385, allocations: 7.191 MB / 1.019 GB, free: 5.992 MB / 0.6667 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01854/0.4036, allocations: 7.547 MB / 1.027 GB, free: 14.41 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.003692/0.4074, allocations: 468 kB / 1.027 GB, free: 13.96 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009486/0.4169, allocations: 1.342 MB / 1.029 GB, free: 12.61 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.005441/0.4224, allocations: 2.078 MB / 1.031 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.006935/0.4293, allocations: 2.204 MB / 1.033 GB, free: 8.312 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.02148/0.4508, allocations: 14.26 MB / 1.047 GB, free: 10.02 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.148e-05/0.4509, allocations: 4 kB / 1.047 GB, free: 10.01 MB / 0.698 GB Notification: Performance of FrontEnd: time 4.499e-06/0.4509, allocations: 0 / 1.047 GB, free: 10.01 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.001051/0.452, allocations: 0 / 1.047 GB, free: 10.01 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.03003/0.4821, allocations: 9.485 MB / 1.056 GB, free: 432 kB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.4821, allocations: 11.97 kB / 1.056 GB, free: 420 kB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.8272/1.309, allocations: 1.166 MB / 1.057 GB, free: 135.8 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01846/1.328, allocations: 8.869 MB / 1.066 GB, free: 134.9 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008171/1.329, allocations: 0.6106 MB / 1.066 GB, free: 134.8 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003586/1.332, allocations: 0.8198 MB / 1.067 GB, free: 134.8 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03403/1.366, allocations: 12.34 MB / 1.079 GB, free: 130.9 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003169/1.367, allocations: 18.91 kB / 1.079 GB, free: 130.9 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002248/1.369, allocations: 353.7 kB / 1.08 GB, free: 130.6 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003332/1.369, allocations: 249.8 kB / 1.08 GB, free: 130.6 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02613/1.395, allocations: 10.38 MB / 1.09 GB, free: 125.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.06977/1.465, allocations: 48.35 MB / 1.137 GB, free: 75.41 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009047/1.474, allocations: 6.285 MB / 1.143 GB, free: 69.1 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007266/1.482, allocations: 5.081 MB / 1.148 GB, free: 64.04 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001355/1.483, allocations: 0.853 MB / 1.149 GB, free: 63.05 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005849/1.489, allocations: 3.367 MB / 1.152 GB, free: 59.65 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004667/1.494, allocations: 0.5062 MB / 1.153 GB, free: 59.14 MB / 0.698 GB Notification: Performance of pre-optimization done (n=455): time 1.742e-05/1.494, allocations: 0 / 1.153 GB, free: 59.14 MB / 0.698 GB Notification: Performance of matching and sorting (n=455): time 0.01674/1.51, allocations: 8.886 MB / 1.162 GB, free: 50.23 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.415e-05/1.511, allocations: 154.3 kB / 1.162 GB, free: 50.05 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01392/1.524, allocations: 7.233 MB / 1.169 GB, free: 42.84 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.001161/1.526, allocations: 113.7 kB / 1.169 GB, free: 42.72 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.004477/1.53, allocations: 4.278 MB / 1.173 GB, free: 38.43 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.002257/1.532, allocations: 1.581 MB / 1.175 GB, free: 36.86 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000984/1.533, allocations: 120 kB / 1.175 GB, free: 36.74 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0004367/1.534, allocations: 0.5382 MB / 1.175 GB, free: 36.2 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005088/1.539, allocations: 3.005 MB / 1.178 GB, free: 33.18 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005833/1.545, allocations: 4.875 MB / 1.183 GB, free: 27.48 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006264/1.551, allocations: 4.039 MB / 1.187 GB, free: 23.43 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.787e-05/1.551, allocations: 16 kB / 1.187 GB, free: 23.41 MB / 0.698 GB Notification: Performance of matching and sorting (n=758) (initialization): time 0.01703/1.568, allocations: 8.859 MB / 1.196 GB, free: 14.53 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001084/1.569, allocations: 1.865 MB / 1.197 GB, free: 11.85 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.87e-05/1.57, allocations: 60 kB / 1.197 GB, free: 11.79 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001127/1.57, allocations: 96 kB / 1.198 GB, free: 11.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005488/1.575, allocations: 1.365 MB / 1.199 GB, free: 10.33 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001523/1.575, allocations: 135.5 kB / 1.199 GB, free: 10.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007384/1.583, allocations: 0.6194 MB / 1.2 GB, free: 9.574 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001115/1.584, allocations: 276 kB / 1.2 GB, free: 9.305 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/1.584, allocations: 4 kB / 1.2 GB, free: 9.301 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01426/1.598, allocations: 8.272 MB / 1.208 GB, free: 1.016 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000164/1.598, allocations: 56 kB / 1.208 GB, free: 0.9609 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001033/1.599, allocations: 101.5 kB / 1.208 GB, free: 0.8633 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005714/1.604, allocations: 1.365 MB / 1.209 GB, free: 15.5 MB / 0.7137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001891/1.604, allocations: 127.5 kB / 1.21 GB, free: 15.37 MB / 0.7137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007575/1.612, allocations: 0.6 MB / 1.21 GB, free: 14.77 MB / 0.7137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001498/1.614, allocations: 280 kB / 1.21 GB, free: 14.5 MB / 0.7137 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008408/1.622, allocations: 3.549 MB / 1.214 GB, free: 10.92 MB / 0.7137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003648/1.626, allocations: 0.7024 MB / 1.215 GB, free: 10.21 MB / 0.7137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01861/1.644, allocations: 7.147 MB / 1.222 GB, free: 3.031 MB / 0.7137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.595e-05/1.644, allocations: 48 kB / 1.222 GB, free: 2.984 MB / 0.7137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.187e-05/1.644, allocations: 3.938 kB / 1.222 GB, free: 2.98 MB / 0.7137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01194/1.656, allocations: 5.851 MB / 1.227 GB, free: 13.09 MB / 0.7293 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.04248/1.699, allocations: 16.5 MB / 1.243 GB, free: 12.54 MB / 0.7449 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-05/1.699, allocations: 7.938 kB / 1.243 GB, free: 12.53 MB / 0.7449 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004822/1.704, allocations: 0.9519 MB / 1.244 GB, free: 11.58 MB / 0.7449 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.4e-05/1.704, allocations: 16 kB / 1.244 GB, free: 11.56 MB / 0.7449 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001047/1.705, allocations: 119.9 kB / 1.244 GB, free: 11.45 MB / 0.7449 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.474e-05/1.705, allocations: 20 kB / 1.244 GB, free: 11.43 MB / 0.7449 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/1.705, allocations: 0 / 1.244 GB, free: 11.43 MB / 0.7449 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02041/1.726, allocations: 10.58 MB / 1.255 GB, free: 0.7773 MB / 0.7449 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00554/1.731, allocations: 1.652 MB / 1.256 GB, free: 15.09 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002425/1.734, allocations: 95.98 kB / 1.257 GB, free: 15 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00685/1.74, allocations: 0.6308 MB / 1.257 GB, free: 14.37 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007319/1.741, allocations: 255.1 kB / 1.257 GB, free: 14.12 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007052/1.742, allocations: 179.9 kB / 1.258 GB, free: 13.95 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.01045/1.752, allocations: 5.046 MB / 1.262 GB, free: 8.926 MB / 0.7605 GB Notification: Performance of sort global known variables: time 9.02e-07/1.752, allocations: 4 kB / 1.262 GB, free: 8.922 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.01808/1.771, allocations: 4.798 MB / 1.267 GB, free: 4.137 MB / 0.7605 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 (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.002237/1.773, allocations: 0.557 MB / 1.268 GB, free: 3.621 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.02163/1.794, allocations: 11.47 MB / 1.279 GB, free: 8.129 MB / 0.7762 GB Notification: Performance of simCode: created event and clocks part: time 8.196e-06/1.795, allocations: 0.875 kB / 1.279 GB, free: 8.129 MB / 0.7762 GB Notification: Performance of simCode: created simulation system equations: time 0.005867/1.8, allocations: 3.216 MB / 1.282 GB, free: 4.891 MB / 0.7762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02748/1.828, allocations: 4.458 MB / 1.286 GB, free: 0.5234 MB / 0.7762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04536/1.873, allocations: 22.82 MB / 1.309 GB, free: 9.645 MB / 0.8074 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007229/1.881, allocations: 6.062 MB / 1.315 GB, free: 3.543 MB / 0.8074 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003123/1.884, allocations: 0.6437 MB / 1.315 GB, free: 2.898 MB / 0.8074 GB Notification: Performance of SimCode: time 9.51e-07/1.884, allocations: 0 / 1.315 GB, free: 2.898 MB / 0.8074 GB Notification: Performance of Templates: time 0.7232/2.607, allocations: 150.8 MB / 1.463 GB, free: 222.6 MB / 0.8699 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)