Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified") translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.61/2.61, allocations: 287.5 MB / 302.4 MB, free: 8.344 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.001272/0.001272, allocations: 189.4 kB / 371 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.098/2.098, allocations: 205.4 MB / 0.6297 GB, free: 10.59 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009448/0.0009445, allocations: 98.03 kB / 0.743 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007595/0.0007597, allocations: 12.62 kB / 0.8658 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2194/0.2202, allocations: 115.3 MB / 0.9783 GB, free: 28.36 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.Stratified): time 0.0854/0.3057, allocations: 51.73 MB / 1.029 GB, free: 8.473 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.03528/0.341, allocations: 16.29 MB / 1.045 GB, free: 8.152 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003133/0.3442, allocations: 63.56 kB / 1.045 GB, free: 8.09 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.003614/0.3479, allocations: 0.695 MB / 1.046 GB, free: 7.391 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.008871/0.3568, allocations: 1.952 MB / 1.047 GB, free: 5.43 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.006664/0.3635, allocations: 1.301 MB / 1.049 GB, free: 4.141 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.7818/1.145, allocations: 32.38 MB / 1.08 GB, free: 12.23 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0262/1.172, allocations: 10.03 MB / 1.09 GB, free: 26.68 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02016/1.192, allocations: 7.216 MB / 1.097 GB, free: 26.68 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02113/1.213, allocations: 7.546 MB / 1.105 GB, free: 25.99 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.004902/1.218, allocations: 473.5 kB / 1.105 GB, free: 25.99 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01319/1.231, allocations: 1.345 MB / 1.106 GB, free: 25.93 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.007027/1.238, allocations: 2.096 MB / 1.108 GB, free: 25.56 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.008424/1.247, allocations: 2.206 MB / 1.11 GB, free: 25.2 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.02587/1.273, allocations: 14.39 MB / 1.125 GB, free: 21.89 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/1.273, allocations: 0 / 1.125 GB, free: 21.89 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.627e-06/1.273, allocations: 1.5 kB / 1.125 GB, free: 21.89 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0007126/1.274, allocations: 0 / 1.125 GB, free: 21.89 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.03617/1.31, allocations: 9.502 MB / 1.134 GB, free: 16.59 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/1.31, allocations: 9.781 kB / 1.134 GB, free: 16.59 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008311/1.318, allocations: 1.169 MB / 1.135 GB, free: 16.02 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02846/1.347, allocations: 8.819 MB / 1.144 GB, free: 13.1 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000789/1.348, allocations: 0.615 MB / 1.144 GB, free: 13.08 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004043/1.352, allocations: 0.8149 MB / 1.145 GB, free: 13.07 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04525/1.397, allocations: 12.46 MB / 1.157 GB, free: 8.309 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005456/1.397, allocations: 27.78 kB / 1.157 GB, free: 8.281 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003919/1.401, allocations: 360.4 kB / 1.158 GB, free: 8.195 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004583/1.402, allocations: 244.9 kB / 1.158 GB, free: 7.965 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04865/1.451, allocations: 10.36 MB / 1.168 GB, free: 14.06 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.1188/1.569, allocations: 48.85 MB / 1.216 GB, free: 10.92 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01793/1.587, allocations: 6.233 MB / 1.222 GB, free: 4.707 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01482/1.602, allocations: 5.056 MB / 1.227 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002557/1.605, allocations: 0.8511 MB / 1.227 GB, free: 14.69 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01195/1.617, allocations: 3.412 MB / 1.231 GB, free: 11.24 MB / 0.7761 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007131/1.624, allocations: 0.4946 MB / 1.231 GB, free: 10.74 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=449): time 1.891e-05/1.624, allocations: 7.938 kB / 1.231 GB, free: 10.74 MB / 0.7761 GB Notification: Performance of matching and sorting (n=449): time 0.03232/1.657, allocations: 8.838 MB / 1.24 GB, free: 1.867 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001669/1.657, allocations: 162.2 kB / 1.24 GB, free: 1.684 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02147/1.678, allocations: 7.245 MB / 1.247 GB, free: 10.46 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 0.001589/1.68, allocations: 113.7 kB / 1.247 GB, free: 10.34 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.008088/1.688, allocations: 4.29 MB / 1.251 GB, free: 6.035 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 0.003948/1.692, allocations: 1.563 MB / 1.253 GB, free: 4.484 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001019/1.693, allocations: 116 kB / 1.253 GB, free: 4.371 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0007085/1.694, allocations: 0.542 MB / 1.254 GB, free: 3.82 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009728/1.704, allocations: 2.99 MB / 1.256 GB, free: 0.8242 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01239/1.716, allocations: 4.873 MB / 1.261 GB, free: 11.12 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01281/1.729, allocations: 4.036 MB / 1.265 GB, free: 7.074 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.137e-05/1.729, allocations: 16 kB / 1.265 GB, free: 7.059 MB / 0.8073 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.03173/1.761, allocations: 8.826 MB / 1.274 GB, free: 14.2 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.002243/1.763, allocations: 1.893 MB / 1.276 GB, free: 11.49 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001892/1.763, allocations: 56 kB / 1.276 GB, free: 11.43 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001969/1.763, allocations: 106.4 kB / 1.276 GB, free: 11.33 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01166/1.775, allocations: 1.361 MB / 1.277 GB, free: 9.969 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002342/1.775, allocations: 131.6 kB / 1.277 GB, free: 9.84 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01316/1.789, allocations: 0.6194 MB / 1.278 GB, free: 9.219 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00192/1.791, allocations: 272 kB / 1.278 GB, free: 8.953 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/1.791, allocations: 4 kB / 1.278 GB, free: 8.949 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0267/1.817, allocations: 8.251 MB / 1.286 GB, free: 0.6836 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001436/1.818, allocations: 56 kB / 1.286 GB, free: 0.6289 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001409/1.818, allocations: 100 kB / 1.286 GB, free: 0.5312 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01121/1.829, allocations: 1.361 MB / 1.288 GB, free: 15.17 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000222/1.829, allocations: 131.5 kB / 1.288 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01181/1.841, allocations: 0.6 MB / 1.288 GB, free: 14.44 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001958/1.843, allocations: 276 kB / 1.289 GB, free: 14.17 MB / 0.8386 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.01186/1.855, allocations: 3.562 MB / 1.292 GB, free: 10.58 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003369/1.858, allocations: 0.7102 MB / 1.293 GB, free: 9.863 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02577/1.884, allocations: 7.102 MB / 1.3 GB, free: 2.734 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.114e-05/1.884, allocations: 44 kB / 1.3 GB, free: 2.691 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.479e-05/1.884, allocations: 0 / 1.3 GB, free: 2.691 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02053/1.905, allocations: 5.814 MB / 1.305 GB, free: 12.84 MB / 0.8542 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.06015/1.965, allocations: 16.5 MB / 1.322 GB, free: 12.29 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.201e-05/1.965, allocations: 4 kB / 1.322 GB, free: 12.28 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009311/1.974, allocations: 0.9364 MB / 1.323 GB, free: 11.34 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.167e-05/1.975, allocations: 16 kB / 1.323 GB, free: 11.33 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001189/1.976, allocations: 123.9 kB / 1.323 GB, free: 11.21 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.626e-05/1.976, allocations: 19.94 kB / 1.323 GB, free: 11.19 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/1.976, allocations: 0 / 1.323 GB, free: 11.19 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03215/2.008, allocations: 10.53 MB / 1.333 GB, free: 0.5977 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008141/2.016, allocations: 1.67 MB / 1.335 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003748/2.02, allocations: 95.98 kB / 1.335 GB, free: 14.81 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01214/2.032, allocations: 0.6312 MB / 1.335 GB, free: 14.18 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001481/2.034, allocations: 259 kB / 1.336 GB, free: 13.93 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001212/2.035, allocations: 195.9 kB / 1.336 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.01651/2.052, allocations: 5.058 MB / 1.341 GB, free: 8.703 MB / 0.8855 GB Notification: Performance of sort global known variables: time 5.41e-07/2.052, allocations: 0 / 1.341 GB, free: 8.703 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0288/2.08, allocations: 4.799 MB / 1.345 GB, free: 3.891 MB / 0.8855 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.00312/2.084, allocations: 0.5522 MB / 1.346 GB, free: 3.363 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.03462/2.118, allocations: 11.42 MB / 1.357 GB, free: 7.918 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-05/2.118, allocations: 8.75 kB / 1.357 GB, free: 7.91 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.00971/2.128, allocations: 3.184 MB / 1.36 GB, free: 4.703 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04116/2.169, allocations: 4.483 MB / 1.365 GB, free: 284 kB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0754/2.245, allocations: 22.53 MB / 1.387 GB, free: 9.723 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02062/2.265, allocations: 6.093 MB / 1.392 GB, free: 3.59 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.0366/2.302, allocations: 4.196 MB / 1.397 GB, free: 15.38 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006777/2.309, allocations: 0.6008 MB / 1.397 GB, free: 14.78 MB / 0.948 GB Notification: Performance of SimCode: time 2.185e-06/2.309, allocations: 0 / 1.397 GB, free: 14.78 MB / 0.948 GB Notification: Performance of Templates: time 1.324/3.633, allocations: 153.6 MB / 1.547 GB, free: 254 MB / 0.9636 GB make -j1 -f Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.makefile (rm -f Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.sim & ./Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)