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.451/1.451, allocations: 251.5 MB / 267.4 MB, free: 11.05 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.0009939/0.0009941, allocations: 175.2 kB / 326.5 MB, free: 2.707 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.891/1.891, allocations: 205 MB / 0.5766 GB, free: 21 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.0008418/0.000842, allocations: 81.42 kB / 0.6803 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004748/0.000475, allocations: 8.812 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2611, allocations: 105.4 MB / 0.8967 GB, free: 68.2 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.Stratified): time 0.04409/0.3053, allocations: 55.53 MB / 0.951 GB, free: 12.47 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.02209/0.3274, allocations: 17.41 MB / 0.968 GB, free: 11.02 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003667/0.3312, allocations: 67.62 kB / 0.968 GB, free: 10.95 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.003468/0.3347, allocations: 0.7887 MB / 0.9688 GB, free: 10.16 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.008066/0.3428, allocations: 2.263 MB / 0.971 GB, free: 7.883 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.005409/0.3482, allocations: 1.558 MB / 0.9725 GB, free: 6.336 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.04134/0.3896, allocations: 38.11 MB / 1.01 GB, free: 132 kB / 0.6511 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0201/0.4097, allocations: 11.27 MB / 1.021 GB, free: 4.738 MB / 0.6667 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0173/0.4271, allocations: 7.248 MB / 1.028 GB, free: 13.46 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01562/0.4427, allocations: 7.973 MB / 1.036 GB, free: 5.453 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.003742/0.4465, allocations: 472 kB / 1.036 GB, free: 4.992 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009116/0.4557, allocations: 1.552 MB / 1.038 GB, free: 3.438 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.005183/0.4609, allocations: 2.163 MB / 1.04 GB, free: 1.266 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.01356/0.4745, allocations: 5.283 MB / 1.045 GB, free: 11.96 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.861/1.336, allocations: 14.29 MB / 1.059 GB, free: 49.07 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/1.336, allocations: 0 / 1.059 GB, free: 49.07 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.913e-06/1.336, allocations: 0 / 1.059 GB, free: 49.07 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0007614/1.336, allocations: 2.5 kB / 1.059 GB, free: 49.07 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.02677/1.363, allocations: 9.386 MB / 1.068 GB, free: 45.5 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/1.363, allocations: 10.33 kB / 1.068 GB, free: 45.5 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007887/1.371, allocations: 1.17 MB / 1.069 GB, free: 44.95 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02186/1.393, allocations: 9.077 MB / 1.078 GB, free: 43.67 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006583/1.394, allocations: 0.6128 MB / 1.079 GB, free: 43.65 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003268/1.397, allocations: 0.8235 MB / 1.079 GB, free: 43.64 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03013/1.427, allocations: 12.4 MB / 1.091 GB, free: 42.43 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002228/1.427, allocations: 21.41 kB / 1.092 GB, free: 42.43 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001213/1.429, allocations: 358.9 kB / 1.092 GB, free: 42.43 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002072/1.429, allocations: 248.8 kB / 1.092 GB, free: 42.43 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02104/1.45, allocations: 10.44 MB / 1.102 GB, free: 42.36 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.07762/1.528, allocations: 48.38 MB / 1.15 GB, free: 13.34 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009432/1.537, allocations: 6.309 MB / 1.156 GB, free: 7.27 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007153/1.544, allocations: 4.984 MB / 1.161 GB, free: 2.297 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001294/1.546, allocations: 0.8583 MB / 1.161 GB, free: 1.312 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006591/1.552, allocations: 3.377 MB / 1.165 GB, free: 13.9 MB / 0.7137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00541/1.558, allocations: 0.4984 MB / 1.165 GB, free: 13.4 MB / 0.7137 GB Notification: Performance of pre-optimization done (n=455): time 1.973e-05/1.558, allocations: 0 / 1.165 GB, free: 13.4 MB / 0.7137 GB Notification: Performance of matching and sorting (n=455): time 0.02017/1.578, allocations: 8.939 MB / 1.174 GB, free: 4.434 MB / 0.7137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/1.578, allocations: 160.9 kB / 1.174 GB, free: 4.254 MB / 0.7137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01475/1.593, allocations: 7.288 MB / 1.181 GB, free: 12.98 MB / 0.7293 GB Notification: Performance of collectPreVariables (initialization): time 0.001196/1.594, allocations: 109.7 kB / 1.181 GB, free: 12.87 MB / 0.7293 GB Notification: Performance of collectInitialEqns (initialization): time 0.005051/1.599, allocations: 4.279 MB / 1.185 GB, free: 8.578 MB / 0.7293 GB Notification: Performance of collectInitialBindings (initialization): time 0.002754/1.602, allocations: 1.581 MB / 1.187 GB, free: 7.008 MB / 0.7293 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001557/1.603, allocations: 478.8 kB / 1.187 GB, free: 6.531 MB / 0.7293 GB Notification: Performance of setup shared object (initialization): time 0.0001121/1.603, allocations: 305.1 kB / 1.188 GB, free: 6.23 MB / 0.7293 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005513/1.609, allocations: 3.029 MB / 1.191 GB, free: 3.195 MB / 0.7293 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007109/1.616, allocations: 4.892 MB / 1.195 GB, free: 13.51 MB / 0.7449 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0131/1.629, allocations: 8.609 MB / 1.204 GB, free: 4.309 MB / 0.7449 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.591e-05/1.629, allocations: 20 kB / 1.204 GB, free: 4.289 MB / 0.7449 GB Notification: Performance of matching and sorting (n=758) (initialization): time 0.0223/1.652, allocations: 8.904 MB / 1.213 GB, free: 11.7 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.001605/1.653, allocations: 1.869 MB / 1.214 GB, free: 9.043 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001261/1.653, allocations: 56 kB / 1.214 GB, free: 8.988 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001262/1.654, allocations: 88 kB / 1.215 GB, free: 8.902 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005964/1.66, allocations: 1.37 MB / 1.216 GB, free: 7.621 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000169/1.66, allocations: 125.8 kB / 1.216 GB, free: 7.523 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008111/1.668, allocations: 0.6154 MB / 1.217 GB, free: 6.906 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001335/1.669, allocations: 276 kB / 1.217 GB, free: 6.637 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/1.669, allocations: 4 kB / 1.217 GB, free: 6.633 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01709/1.686, allocations: 8.322 MB / 1.225 GB, free: 14.66 MB / 0.7762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001665/1.687, allocations: 56 kB / 1.225 GB, free: 14.61 MB / 0.7762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001111/1.687, allocations: 95.94 kB / 1.225 GB, free: 14.52 MB / 0.7762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005543/1.692, allocations: 1.365 MB / 1.227 GB, free: 13.24 MB / 0.7762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001588/1.692, allocations: 125.6 kB / 1.227 GB, free: 13.14 MB / 0.7762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007457/1.7, allocations: 0.6 MB / 1.227 GB, free: 12.54 MB / 0.7762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001137/1.701, allocations: 276 kB / 1.227 GB, free: 12.27 MB / 0.7762 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 (P.nextEventScaled,P.nextEvent,$PRE.P.nextEvent,P.last,P.b,P.a,TWat.nextEventScaled,TWat.nextEvent,$PRE.TWat.nextEvent,TWat.last,TWat.b,TWat.a,$whenCondition2,$whenCondition1,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.008885/1.71, allocations: 3.548 MB / 1.231 GB, free: 8.793 MB / 0.7762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004151/1.714, allocations: 0.7102 MB / 1.232 GB, free: 8.074 MB / 0.7762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01551/1.73, allocations: 7.183 MB / 1.239 GB, free: 0.8672 MB / 0.7762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-05/1.73, allocations: 40 kB / 1.239 GB, free: 0.8281 MB / 0.7762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.952e-05/1.73, allocations: 0 / 1.239 GB, free: 0.8281 MB / 0.7762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00991/1.74, allocations: 5.876 MB / 1.244 GB, free: 10.93 MB / 0.7918 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.04151/1.781, allocations: 16.52 MB / 1.261 GB, free: 10.38 MB / 0.8074 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.461e-05/1.781, allocations: 0 / 1.261 GB, free: 10.38 MB / 0.8074 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004347/1.786, allocations: 0.9485 MB / 1.261 GB, free: 9.469 MB / 0.8074 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.719e-05/1.786, allocations: 20 kB / 1.262 GB, free: 9.449 MB / 0.8074 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007372/1.787, allocations: 119.9 kB / 1.262 GB, free: 9.332 MB / 0.8074 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.376e-05/1.787, allocations: 18.62 kB / 1.262 GB, free: 9.316 MB / 0.8074 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/1.787, allocations: 4 kB / 1.262 GB, free: 9.312 MB / 0.8074 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01886/1.805, allocations: 10.63 MB / 1.272 GB, free: 14.63 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006094/1.812, allocations: 1.519 MB / 1.274 GB, free: 13.08 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00335/1.815, allocations: 95.98 kB / 1.274 GB, free: 12.99 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00815/1.823, allocations: 0.6313 MB / 1.274 GB, free: 12.36 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001065/1.824, allocations: 259.1 kB / 1.274 GB, free: 12.1 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009692/1.825, allocations: 187.8 kB / 1.275 GB, free: 11.92 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.01142/1.837, allocations: 5.104 MB / 1.28 GB, free: 6.84 MB / 0.823 GB Notification: Performance of sort global known variables: time 3.71e-07/1.837, allocations: 0 / 1.28 GB, free: 6.84 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.01819/1.855, allocations: 4.795 MB / 1.284 GB, free: 2.031 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.002163/1.857, allocations: 0.578 MB / 1.285 GB, free: 1.527 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.02103/1.878, allocations: 11.53 MB / 1.296 GB, free: 6.355 MB / 0.8387 GB Notification: Performance of simCode: created event and clocks part: time 1.31e-05/1.878, allocations: 4 kB / 1.296 GB, free: 6.352 MB / 0.8387 GB Notification: Performance of simCode: created simulation system equations: time 0.006945/1.885, allocations: 3.224 MB / 1.299 GB, free: 3.191 MB / 0.8387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02895/1.914, allocations: 4.465 MB / 1.304 GB, free: 14.81 MB / 0.8543 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04471/1.959, allocations: 23.22 MB / 1.326 GB, free: 7.578 MB / 0.8699 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009649/1.969, allocations: 6.046 MB / 1.332 GB, free: 1.492 MB / 0.8699 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003776/1.972, allocations: 0.6428 MB / 1.333 GB, free: 0.8516 MB / 0.8699 GB Notification: Performance of SimCode: time 1.152e-06/1.973, allocations: 4 kB / 1.333 GB, free: 0.8477 MB / 0.8699 GB Notification: Performance of Templates: time 0.6221/2.595, allocations: 150.7 MB / 1.48 GB, free: 290.6 MB / 0.9324 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)