Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified") translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.779/1.779, allocations: 288.4 MB / 303.4 MB, free: 8.098 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.0009892/0.0009894, allocations: 172.5 kB / 372 MB, free: 10.27 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.532/1.532, allocations: 205.4 MB / 0.6307 GB, free: 9.992 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.0007598/0.0007597, allocations: 89.22 kB / 0.7441 GB, free: 5.914 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004283/0.0004285, allocations: 15.53 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2184/0.2188, allocations: 115.3 MB / 0.9796 GB, free: 27.7 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.Stratified): time 0.04793/0.2668, allocations: 51.74 MB / 1.03 GB, free: 7.812 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.02247/0.2893, allocations: 16.28 MB / 1.046 GB, free: 7.504 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004837/0.2942, allocations: 67.56 kB / 1.046 GB, free: 7.438 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.003927/0.2982, allocations: 0.695 MB / 1.047 GB, free: 6.738 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.00798/0.3062, allocations: 1.951 MB / 1.049 GB, free: 4.777 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.004998/0.3112, allocations: 1.312 MB / 1.05 GB, free: 3.477 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.5913/0.9025, allocations: 32.37 MB / 1.082 GB, free: 12.83 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02198/0.9246, allocations: 10.02 MB / 1.091 GB, free: 27.29 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02076/0.9454, allocations: 7.223 MB / 1.098 GB, free: 27.28 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02046/0.9659, allocations: 7.546 MB / 1.106 GB, free: 26.46 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.004869/0.9708, allocations: 473.1 kB / 1.106 GB, free: 26.46 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01358/0.9844, allocations: 1.345 MB / 1.108 GB, free: 26.41 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.007308/0.9918, allocations: 2.093 MB / 1.11 GB, free: 26.04 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.01092/1.003, allocations: 2.207 MB / 1.112 GB, free: 25.68 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.02193/1.025, allocations: 14.38 MB / 1.126 GB, free: 21.5 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.02e-05/1.025, allocations: 3.984 kB / 1.126 GB, free: 21.5 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.765e-06/1.025, allocations: 3.344 kB / 1.126 GB, free: 21.5 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.001112/1.026, allocations: 0 / 1.126 GB, free: 21.5 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.03107/1.057, allocations: 9.499 MB / 1.135 GB, free: 16.19 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/1.057, allocations: 9 kB / 1.135 GB, free: 16.19 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007502/1.065, allocations: 1.17 MB / 1.136 GB, free: 15.62 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0248/1.089, allocations: 8.818 MB / 1.145 GB, free: 12.7 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007816/1.09, allocations: 0.621 MB / 1.145 GB, free: 12.68 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00412/1.094, allocations: 0.8155 MB / 1.146 GB, free: 12.67 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04068/1.135, allocations: 12.46 MB / 1.158 GB, free: 7.465 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006441/1.136, allocations: 31.7 kB / 1.158 GB, free: 7.434 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0047/1.141, allocations: 360.8 kB / 1.159 GB, free: 7.348 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004088/1.141, allocations: 245.6 kB / 1.159 GB, free: 7.117 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02943/1.17, allocations: 10.36 MB / 1.169 GB, free: 12.97 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.09367/1.264, allocations: 48.84 MB / 1.217 GB, free: 9.832 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01261/1.277, allocations: 6.238 MB / 1.223 GB, free: 3.617 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009701/1.287, allocations: 5.059 MB / 1.228 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001798/1.288, allocations: 0.8488 MB / 1.229 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008388/1.297, allocations: 3.416 MB / 1.232 GB, free: 10.15 MB / 0.7761 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00639/1.303, allocations: 0.4985 MB / 1.232 GB, free: 9.648 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=449): time 2.024e-05/1.303, allocations: 4 kB / 1.232 GB, free: 9.645 MB / 0.7761 GB Notification: Performance of matching and sorting (n=449): time 0.02309/1.326, allocations: 8.84 MB / 1.241 GB, free: 0.7734 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/1.327, allocations: 150.3 kB / 1.241 GB, free: 0.6016 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01819/1.345, allocations: 7.249 MB / 1.248 GB, free: 9.371 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 0.001735/1.347, allocations: 113.7 kB / 1.248 GB, free: 9.254 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.007105/1.354, allocations: 4.297 MB / 1.253 GB, free: 4.941 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 0.003371/1.357, allocations: 1.554 MB / 1.254 GB, free: 3.398 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001221/1.358, allocations: 116 kB / 1.254 GB, free: 3.285 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0006455/1.359, allocations: 0.5459 MB / 1.255 GB, free: 2.73 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006213/1.365, allocations: 2.992 MB / 1.258 GB, free: 15.73 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007713/1.373, allocations: 4.874 MB / 1.262 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008626/1.382, allocations: 4.034 MB / 1.266 GB, free: 5.984 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001109/1.382, allocations: 20 kB / 1.266 GB, free: 5.965 MB / 0.8073 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02547/1.407, allocations: 8.823 MB / 1.275 GB, free: 13.11 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.002/1.409, allocations: 1.891 MB / 1.277 GB, free: 10.4 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001744/1.41, allocations: 60 kB / 1.277 GB, free: 10.34 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001838/1.41, allocations: 106.7 kB / 1.277 GB, free: 10.24 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007319/1.417, allocations: 1.361 MB / 1.278 GB, free: 8.879 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002342/1.417, allocations: 131.6 kB / 1.279 GB, free: 8.75 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01079/1.428, allocations: 0.6194 MB / 1.279 GB, free: 8.129 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001774/1.43, allocations: 276 kB / 1.279 GB, free: 7.859 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/1.43, allocations: 4 kB / 1.279 GB, free: 7.855 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01947/1.45, allocations: 8.251 MB / 1.287 GB, free: 15.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001893/1.45, allocations: 60 kB / 1.288 GB, free: 15.53 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001264/1.45, allocations: 96 kB / 1.288 GB, free: 15.43 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006262/1.456, allocations: 1.365 MB / 1.289 GB, free: 14.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001731/1.456, allocations: 123.6 kB / 1.289 GB, free: 13.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008854/1.465, allocations: 0.6 MB / 1.29 GB, free: 13.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001788/1.467, allocations: 280 kB / 1.29 GB, free: 13.07 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.01217/1.479, allocations: 3.556 MB / 1.293 GB, free: 9.488 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003519/1.483, allocations: 0.7063 MB / 1.294 GB, free: 8.773 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01607/1.499, allocations: 7.105 MB / 1.301 GB, free: 1.641 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.043e-05/1.499, allocations: 44 kB / 1.301 GB, free: 1.598 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.36e-05/1.499, allocations: 0 / 1.301 GB, free: 1.598 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01101/1.51, allocations: 5.809 MB / 1.307 GB, free: 11.76 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.04893/1.559, allocations: 16.49 MB / 1.323 GB, free: 11.22 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.443e-05/1.559, allocations: 7.953 kB / 1.323 GB, free: 11.21 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005316/1.564, allocations: 0.9402 MB / 1.324 GB, free: 10.27 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.743e-05/1.565, allocations: 16 kB / 1.324 GB, free: 10.25 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001093/1.566, allocations: 123.9 kB / 1.324 GB, free: 10.13 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.439e-05/1.566, allocations: 16 kB / 1.324 GB, free: 10.12 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/1.566, allocations: 4 kB / 1.324 GB, free: 10.11 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02317/1.589, allocations: 10.53 MB / 1.334 GB, free: 15.52 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007797/1.597, allocations: 1.675 MB / 1.336 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004033/1.601, allocations: 95.98 kB / 1.336 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009435/1.61, allocations: 0.6317 MB / 1.337 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001386/1.612, allocations: 259.1 kB / 1.337 GB, free: 12.84 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001445/1.613, allocations: 191.9 kB / 1.337 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.01324/1.626, allocations: 5.058 MB / 1.342 GB, free: 7.625 MB / 0.8855 GB Notification: Performance of sort global known variables: time 5.81e-07/1.627, allocations: 2.734 kB / 1.342 GB, free: 7.625 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.02547/1.652, allocations: 4.799 MB / 1.347 GB, free: 2.812 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.00311/1.655, allocations: 0.5615 MB / 1.347 GB, free: 2.273 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.02518/1.68, allocations: 11.41 MB / 1.358 GB, free: 6.836 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.524e-05/1.68, allocations: 8.688 kB / 1.358 GB, free: 6.828 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.007663/1.688, allocations: 3.184 MB / 1.361 GB, free: 3.621 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03184/1.72, allocations: 4.488 MB / 1.366 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0522/1.772, allocations: 22.52 MB / 1.388 GB, free: 8.66 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009578/1.782, allocations: 6.099 MB / 1.394 GB, free: 2.523 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.01685/1.799, allocations: 4.188 MB / 1.398 GB, free: 14.32 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003958/1.803, allocations: 0.6046 MB / 1.398 GB, free: 13.72 MB / 0.948 GB Notification: Performance of SimCode: time 1.112e-06/1.803, allocations: 0 / 1.398 GB, free: 13.72 MB / 0.948 GB Notification: Performance of Templates: time 0.7419/2.545, allocations: 153.7 MB / 1.548 GB, free: 252.3 MB / 0.9636 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)