Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Storage.Examples.Stratified") translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000848/0.000848, allocations: 97.64 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005372/0.005372, allocations: 170.1 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.792/2.792, allocations: 473.4 MB / 0.7469 GB, free: 6.09 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003858/0.0003858, allocations: 7.469 kB / 0.9158 GB, free: 33.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3416, allocations: 162.2 MB / 1.074 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.Stratified): time 0.05407/0.3957, allocations: 54.76 MB / 1.128 GB, free: 0.6055 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02605/0.4219, allocations: 17.34 MB / 1.145 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003285/0.4252, allocations: 71.56 kB / 1.145 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.003116/0.4283, allocations: 0.7887 MB / 1.145 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.007938/0.4363, allocations: 2.267 MB / 1.148 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.00537/0.4417, allocations: 1.607 MB / 1.149 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.03872/0.4804, allocations: 38.3 MB / 1.187 GB, free: 4.094 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01759/0.4981, allocations: 11.43 MB / 1.198 GB, free: 8.551 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0179/0.516, allocations: 7.076 MB / 1.205 GB, free: 1.445 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01614/0.5322, allocations: 7.981 MB / 1.212 GB, free: 9.43 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.002513/0.5347, allocations: 472 kB / 1.213 GB, free: 8.969 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008428/0.5432, allocations: 1.556 MB / 1.214 GB, free: 7.41 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.004554/0.5478, allocations: 2.19 MB / 1.217 GB, free: 5.211 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.01114/0.5589, allocations: 5.362 MB / 1.222 GB, free: 15.81 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.02264/0.5816, allocations: 17.12 MB / 1.238 GB, free: 14.64 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.5816, allocations: 4 kB / 1.238 GB, free: 14.64 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.873e-06/0.5817, allocations: 0 / 1.238 GB, free: 14.64 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.000863/0.5825, allocations: 0 / 1.238 GB, free: 14.64 MB / 0.9981 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.02346/0.606, allocations: 9.472 MB / 1.248 GB, free: 5.059 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.778e-05/0.6061, allocations: 8.031 kB / 1.248 GB, free: 5.051 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005823/0.6119, allocations: 1.179 MB / 1.249 GB, free: 3.859 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.166/1.778, allocations: 9.201 MB / 1.258 GB, free: 160.7 MB / 0.9982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000714/1.779, allocations: 0.6095 MB / 1.258 GB, free: 160.7 MB / 0.9982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002758/1.781, allocations: 0.8179 MB / 1.259 GB, free: 160.4 MB / 0.9982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0303/1.812, allocations: 12.53 MB / 1.272 GB, free: 155.4 MB / 0.9982 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003124/1.812, allocations: 27.38 kB / 1.272 GB, free: 155.4 MB / 0.9982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001599/1.814, allocations: 358 kB / 1.272 GB, free: 155.1 MB / 0.9982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003612/1.814, allocations: 245.9 kB / 1.272 GB, free: 155.1 MB / 0.9982 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02677/1.841, allocations: 10.43 MB / 1.282 GB, free: 151.6 MB / 0.9982 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.0659/1.907, allocations: 48.91 MB / 1.33 GB, free: 113.4 MB / 0.9982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00807/1.915, allocations: 6.266 MB / 1.336 GB, free: 107.2 MB / 0.9982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006102/1.921, allocations: 4.967 MB / 1.341 GB, free: 102.3 MB / 0.9982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001085/1.922, allocations: 0.8472 MB / 1.342 GB, free: 101.3 MB / 0.9982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004595/1.927, allocations: 3.425 MB / 1.345 GB, free: 97.83 MB / 0.9982 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004184/1.931, allocations: 0.4976 MB / 1.346 GB, free: 97.33 MB / 0.9982 GB Notification: Performance of pre-optimization done (n=449): time 1.228e-05/1.931, allocations: 4 kB / 1.346 GB, free: 97.33 MB / 0.9982 GB Notification: Performance of matching and sorting (n=449): time 0.01263/1.944, allocations: 8.9 MB / 1.354 GB, free: 88.39 MB / 0.9982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.957e-05/1.944, allocations: 150.3 kB / 1.355 GB, free: 88.22 MB / 0.9982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01063/1.954, allocations: 7.428 MB / 1.362 GB, free: 80.82 MB / 0.9982 GB Notification: Performance of collectPreVariables (initialization): time 0.001028/1.956, allocations: 113.7 kB / 1.362 GB, free: 80.7 MB / 0.9982 GB Notification: Performance of collectInitialEqns (initialization): time 0.003259/1.959, allocations: 4.323 MB / 1.366 GB, free: 76.36 MB / 0.9982 GB Notification: Performance of collectInitialBindings (initialization): time 0.003033/1.962, allocations: 1.559 MB / 1.368 GB, free: 74.81 MB / 0.9982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009919/1.963, allocations: 482.7 kB / 1.368 GB, free: 74.33 MB / 0.9982 GB Notification: Performance of setup shared object (initialization): time 7.932e-05/1.963, allocations: 305.1 kB / 1.368 GB, free: 74.03 MB / 0.9982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004382/1.967, allocations: 3.013 MB / 1.371 GB, free: 71.01 MB / 0.9982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004475/1.972, allocations: 4.898 MB / 1.376 GB, free: 65.28 MB / 0.9982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008479/1.98, allocations: 8.6 MB / 1.384 GB, free: 55.83 MB / 0.9982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-05/1.98, allocations: 20 kB / 1.385 GB, free: 55.81 MB / 0.9982 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01225/1.993, allocations: 8.885 MB / 1.393 GB, free: 46.9 MB / 0.9982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008315/1.993, allocations: 1.905 MB / 1.395 GB, free: 44.16 MB / 0.9982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.142e-05/1.994, allocations: 56 kB / 1.395 GB, free: 44.11 MB / 0.9982 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.966e-05/1.994, allocations: 92 kB / 1.395 GB, free: 44.02 MB / 0.9982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004863/1.999, allocations: 1.361 MB / 1.397 GB, free: 42.66 MB / 0.9982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.419e-05/1.999, allocations: 127.6 kB / 1.397 GB, free: 42.53 MB / 0.9982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007136/2.006, allocations: 0.6193 MB / 1.397 GB, free: 41.91 MB / 0.9982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006433/2.006, allocations: 276 kB / 1.398 GB, free: 41.64 MB / 0.9982 GB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/2.006, allocations: 4 kB / 1.398 GB, free: 41.64 MB / 0.9982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01119/2.018, allocations: 8.297 MB / 1.406 GB, free: 33.33 MB / 0.9982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.122e-05/2.018, allocations: 56 kB / 1.406 GB, free: 33.27 MB / 0.9982 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.017e-05/2.018, allocations: 88 kB / 1.406 GB, free: 33.19 MB / 0.9982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004534/2.022, allocations: 1.366 MB / 1.407 GB, free: 31.82 MB / 0.9982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.016e-05/2.022, allocations: 131.5 kB / 1.407 GB, free: 31.69 MB / 0.9982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006794/2.029, allocations: 0.6117 MB / 1.408 GB, free: 31.08 MB / 0.9982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007312/2.03, allocations: 276 kB / 1.408 GB, free: 30.81 MB / 0.9982 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 (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 (744): * Single equations (assignments): 742 * 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.006683/2.037, allocations: 3.591 MB / 1.412 GB, free: 27.19 MB / 0.9982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0027/2.039, allocations: 0.7141 MB / 1.412 GB, free: 26.47 MB / 0.9982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01053/2.05, allocations: 7.127 MB / 1.419 GB, free: 19.31 MB / 0.9982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.704e-05/2.05, allocations: 51.88 kB / 1.419 GB, free: 19.26 MB / 0.9982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.259e-05/2.05, allocations: 0 / 1.419 GB, free: 19.26 MB / 0.9982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007173/2.057, allocations: 5.842 MB / 1.425 GB, free: 13.39 MB / 0.9982 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.03315/2.09, allocations: 16.56 MB / 1.441 GB, free: 12.77 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.636e-05/2.09, allocations: 4 kB / 1.441 GB, free: 12.77 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003984/2.094, allocations: 0.9364 MB / 1.442 GB, free: 11.83 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.458e-05/2.095, allocations: 15.98 kB / 1.442 GB, free: 11.81 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003352/2.095, allocations: 119.9 kB / 1.442 GB, free: 11.7 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.253e-05/2.095, allocations: 19.94 kB / 1.442 GB, free: 11.68 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/2.095, allocations: 0 / 1.442 GB, free: 11.68 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01698/2.112, allocations: 10.58 MB / 1.453 GB, free: 1.031 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005394/2.117, allocations: 1.683 MB / 1.454 GB, free: 15.32 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001933/2.119, allocations: 95.98 kB / 1.454 GB, free: 15.23 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006669/2.126, allocations: 0.6187 MB / 1.455 GB, free: 14.61 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006418/2.127, allocations: 271.2 kB / 1.455 GB, free: 14.34 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005385/2.127, allocations: 191.9 kB / 1.455 GB, free: 14.16 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.01013/2.137, allocations: 5.202 MB / 1.46 GB, free: 8.984 MB / 1.029 GB Notification: Performance of sort global known variables: time 5.91e-07/2.137, allocations: 0 / 1.46 GB, free: 8.984 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.01712/2.154, allocations: 4.803 MB / 1.465 GB, free: 4.191 MB / 1.029 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 (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.002276/2.157, allocations: 0.5741 MB / 1.466 GB, free: 3.664 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.02004/2.177, allocations: 11.48 MB / 1.477 GB, free: 8.152 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-05/2.177, allocations: 4.562 kB / 1.477 GB, free: 8.148 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.005582/2.182, allocations: 3.2 MB / 1.48 GB, free: 4.926 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02598/2.209, allocations: 4.479 MB / 1.484 GB, free: 0.5391 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03978/2.248, allocations: 23.46 MB / 1.507 GB, free: 9.023 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00791/2.256, allocations: 6.137 MB / 1.513 GB, free: 2.848 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0135/2.27, allocations: 4.251 MB / 1.517 GB, free: 14.59 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002404/2.272, allocations: 0.6086 MB / 1.518 GB, free: 13.98 MB / 1.092 GB Notification: Performance of SimCode: time 1.402e-06/2.272, allocations: 0 / 1.518 GB, free: 13.98 MB / 1.092 GB Notification: Performance of Templates: time 0.2672/2.539, allocations: 157.7 MB / 1.672 GB, free: 1.516 MB / 1.233 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Storage.Examples.Stratified.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Storage.Examples.Stratified.sim & ./Buildings_3.0.0_Buildings.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)