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.763/1.763, allocations: 288.4 MB / 303.7 MB, free: 8.113 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.001147/0.001147, allocations: 186.8 kB / 372.3 MB, free: 10.1 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.404/1.404, allocations: 205.4 MB / 0.631 GB, free: 9.875 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.000939/0.0009387, allocations: 90.25 kB / 0.7444 GB, free: 5.785 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004218/0.0004224, allocations: 11.12 kB / 0.8675 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1983/0.1987, allocations: 115.3 MB / 0.9801 GB, free: 27.32 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.Stratified): time 0.04419/0.2429, allocations: 51.75 MB / 1.031 GB, free: 7.43 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.02195/0.2649, allocations: 16.28 MB / 1.047 GB, free: 7.117 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002961/0.2679, allocations: 59.62 kB / 1.047 GB, free: 7.059 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.002448/0.2704, allocations: 0.6911 MB / 1.047 GB, free: 6.363 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.006758/0.2772, allocations: 2.095 MB / 1.049 GB, free: 4.258 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.004373/0.2816, allocations: 1.333 MB / 1.051 GB, free: 2.938 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.4699/0.7515, allocations: 32.5 MB / 1.082 GB, free: 13.13 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02098/0.7725, allocations: 11.42 MB / 1.094 GB, free: 27.14 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02154/0.7941, allocations: 7.177 MB / 1.101 GB, free: 27.14 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02166/0.8159, allocations: 7.557 MB / 1.108 GB, free: 26.17 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.005432/0.8214, allocations: 473.7 kB / 1.108 GB, free: 26.17 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01175/0.8331, allocations: 1.491 MB / 1.11 GB, free: 26.1 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.006546/0.8397, allocations: 2.095 MB / 1.112 GB, free: 25.73 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.02138/0.8611, allocations: 5.122 MB / 1.117 GB, free: 24.34 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.02151/0.8827, allocations: 14.41 MB / 1.131 GB, free: 19.77 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.8827, allocations: 0 / 1.131 GB, free: 19.77 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.537e-06/0.8828, allocations: 0 / 1.131 GB, free: 19.77 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0009058/0.8837, allocations: 0 / 1.131 GB, free: 19.77 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.02973/0.9134, allocations: 9.402 MB / 1.14 GB, free: 14.46 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 6.781e-05/0.9135, allocations: 8.969 kB / 1.14 GB, free: 14.46 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01007/0.9236, allocations: 1.171 MB / 1.141 GB, free: 13.89 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02329/0.9469, allocations: 9.033 MB / 1.15 GB, free: 10.75 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009679/0.948, allocations: 0.6121 MB / 1.151 GB, free: 10.73 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00418/0.9522, allocations: 0.8144 MB / 1.151 GB, free: 10.73 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04244/0.9946, allocations: 12.45 MB / 1.164 GB, free: 2.75 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006147/0.9953, allocations: 27.72 kB / 1.164 GB, free: 2.723 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003795/0.9991, allocations: 365.7 kB / 1.164 GB, free: 2.371 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003319/0.9995, allocations: 243.9 kB / 1.164 GB, free: 2.133 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02889/1.028, allocations: 10.36 MB / 1.174 GB, free: 7.766 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.09875/1.127, allocations: 48.87 MB / 1.222 GB, free: 4.594 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01205/1.139, allocations: 6.238 MB / 1.228 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009497/1.149, allocations: 5.065 MB / 1.233 GB, free: 9.332 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001784/1.151, allocations: 0.8432 MB / 1.234 GB, free: 8.359 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008381/1.159, allocations: 3.42 MB / 1.237 GB, free: 4.902 MB / 0.7761 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006681/1.166, allocations: 0.4984 MB / 1.238 GB, free: 4.398 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=449): time 2.416e-05/1.166, allocations: 0 / 1.238 GB, free: 4.398 MB / 0.7761 GB Notification: Performance of matching and sorting (n=449): time 0.02304/1.189, allocations: 8.837 MB / 1.246 GB, free: 11.54 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001524/1.189, allocations: 162.3 kB / 1.247 GB, free: 11.35 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01918/1.208, allocations: 7.238 MB / 1.254 GB, free: 4.133 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 0.001593/1.21, allocations: 117.7 kB / 1.254 GB, free: 4.012 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.006713/1.217, allocations: 4.294 MB / 1.258 GB, free: 15.71 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.003492/1.22, allocations: 1.559 MB / 1.259 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001421/1.222, allocations: 116 kB / 1.26 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0007474/1.222, allocations: 0.5486 MB / 1.26 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006879/1.229, allocations: 2.99 MB / 1.263 GB, free: 10.5 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008071/1.237, allocations: 4.873 MB / 1.268 GB, free: 4.789 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01506/1.253, allocations: 8.569 MB / 1.276 GB, free: 11.39 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.881e-05/1.253, allocations: 20 kB / 1.276 GB, free: 11.38 MB / 0.823 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02194/1.275, allocations: 8.834 MB / 1.285 GB, free: 2.512 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.001986/1.277, allocations: 1.886 MB / 1.287 GB, free: 15.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001597/1.277, allocations: 56 kB / 1.287 GB, free: 15.75 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001538/1.277, allocations: 92 kB / 1.287 GB, free: 15.66 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006608/1.284, allocations: 1.364 MB / 1.288 GB, free: 14.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002122/1.284, allocations: 131.6 kB / 1.288 GB, free: 14.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01096/1.295, allocations: 0.6155 MB / 1.289 GB, free: 13.55 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002101/1.297, allocations: 276 kB / 1.289 GB, free: 13.28 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/1.297, allocations: 4 kB / 1.289 GB, free: 13.28 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02035/1.317, allocations: 8.252 MB / 1.297 GB, free: 5.012 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002097/1.318, allocations: 60.03 kB / 1.297 GB, free: 4.953 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001205/1.318, allocations: 95.98 kB / 1.297 GB, free: 4.859 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006365/1.324, allocations: 1.357 MB / 1.299 GB, free: 3.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002236/1.324, allocations: 131.6 kB / 1.299 GB, free: 3.371 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009285/1.334, allocations: 0.5961 MB / 1.299 GB, free: 2.773 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001579/1.335, allocations: 276 kB / 1.3 GB, free: 2.504 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.01017/1.346, allocations: 3.555 MB / 1.303 GB, free: 14.92 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003627/1.349, allocations: 0.7102 MB / 1.304 GB, free: 14.2 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01796/1.367, allocations: 7.1 MB / 1.311 GB, free: 7.07 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.994e-05/1.367, allocations: 47.98 kB / 1.311 GB, free: 7.023 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-05/1.367, allocations: 4 kB / 1.311 GB, free: 7.02 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01196/1.379, allocations: 5.811 MB / 1.316 GB, free: 1.18 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.05035/1.43, allocations: 16.49 MB / 1.333 GB, free: 0.6328 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-05/1.43, allocations: 0 / 1.333 GB, free: 0.6328 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005311/1.435, allocations: 0.9402 MB / 1.333 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.218e-05/1.435, allocations: 16 kB / 1.333 GB, free: 15.68 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001067/1.436, allocations: 115.9 kB / 1.334 GB, free: 15.56 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.407e-05/1.436, allocations: 16 kB / 1.334 GB, free: 15.55 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/1.436, allocations: 7.938 kB / 1.334 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02094/1.457, allocations: 10.53 MB / 1.344 GB, free: 4.949 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00912/1.467, allocations: 1.671 MB / 1.346 GB, free: 3.25 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003743/1.47, allocations: 99.92 kB / 1.346 GB, free: 3.152 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009201/1.48, allocations: 0.6294 MB / 1.346 GB, free: 2.527 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001534/1.481, allocations: 255.1 kB / 1.346 GB, free: 2.277 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001535/1.483, allocations: 195.9 kB / 1.347 GB, free: 2.086 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0139/1.497, allocations: 5.054 MB / 1.352 GB, free: 13.06 MB / 0.9011 GB Notification: Performance of sort global known variables: time 3.185e-06/1.497, allocations: 0 / 1.352 GB, free: 13.06 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.02643/1.523, allocations: 4.805 MB / 1.356 GB, free: 8.242 MB / 0.9011 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.003454/1.527, allocations: 0.5862 MB / 1.357 GB, free: 7.68 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.02596/1.553, allocations: 11.42 MB / 1.368 GB, free: 12.24 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.115e-05/1.553, allocations: 4.562 kB / 1.368 GB, free: 12.23 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.00726/1.56, allocations: 3.184 MB / 1.371 GB, free: 9.027 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03724/1.597, allocations: 4.417 MB / 1.375 GB, free: 4.695 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05401/1.651, allocations: 22.53 MB / 1.397 GB, free: 14.14 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01322/1.665, allocations: 6.089 MB / 1.403 GB, free: 8.012 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.01873/1.683, allocations: 4.199 MB / 1.408 GB, free: 3.801 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004197/1.688, allocations: 0.6047 MB / 1.408 GB, free: 3.195 MB / 0.948 GB Notification: Performance of SimCode: time 1.072e-06/1.688, allocations: 0 / 1.408 GB, free: 3.195 MB / 0.948 GB Notification: Performance of Templates: time 0.7444/2.432, allocations: 155.9 MB / 1.56 GB, free: 240.1 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)