Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Storage.Examples.Stratified.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.452/2.452, allocations: 251.1 MB / 266.1 MB, free: 11.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001665/0.001665, allocations: 175.7 kB / 325.6 MB, free: 2.836 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.557/2.557, allocations: 205.4 MB / 0.5766 GB, free: 20.76 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001133/0.001132, allocations: 105.2 kB / 0.6811 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006654/0.0006658, allocations: 11.28 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.2852, allocations: 106.3 MB / 0.8989 GB, free: 65.5 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.Stratified): time 0.09033/0.3756, allocations: 46.98 MB / 0.9448 GB, free: 18.39 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.03824/0.4139, allocations: 15.05 MB / 0.9595 GB, free: 3.305 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003813/0.4177, allocations: 63.62 kB / 0.9595 GB, free: 3.242 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.005578/0.4234, allocations: 0.8668 MB / 0.9604 GB, free: 2.371 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.01388/0.4373, allocations: 2.249 MB / 0.9626 GB, free: 120 kB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0116/0.449, allocations: 1.656 MB / 0.9642 GB, free: 14.48 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.03889/0.4879, allocations: 15.59 MB / 0.9794 GB, free: 14.87 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02338/0.5114, allocations: 9.988 MB / 0.9892 GB, free: 4.801 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01637/0.5278, allocations: 6.038 MB / 0.9951 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01437/0.5422, allocations: 5.302 MB / 1 GB, free: 9.418 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.003474/0.5458, allocations: 472 kB / 1.001 GB, free: 8.957 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009403/0.5552, allocations: 1.237 MB / 1.002 GB, free: 7.719 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.005289/0.5606, allocations: 1.989 MB / 1.004 GB, free: 5.723 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.005927/0.5666, allocations: 2.204 MB / 1.006 GB, free: 3.508 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.02544/0.5921, allocations: 14.15 MB / 1.02 GB, free: 5.324 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.5921, allocations: 0 / 1.02 GB, free: 5.324 MB / 0.6667 GB Notification: Performance of FrontEnd: time 3.326e-06/0.5921, allocations: 0 / 1.02 GB, free: 5.324 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0006739/0.5928, allocations: 0 / 1.02 GB, free: 5.324 MB / 0.6667 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.04223/0.6351, allocations: 9.471 MB / 1.029 GB, free: 11.75 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.6351, allocations: 12.03 kB / 1.029 GB, free: 11.73 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007455/0.6426, allocations: 1.167 MB / 1.03 GB, free: 10.55 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02938/0.672, allocations: 8.26 MB / 1.038 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00107/0.6732, allocations: 0.614 MB / 1.039 GB, free: 1.602 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003652/0.6769, allocations: 0.8085 MB / 1.04 GB, free: 0.793 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06895/0.7459, allocations: 12.27 MB / 1.052 GB, free: 4.145 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006602/0.7466, allocations: 31.7 kB / 1.052 GB, free: 4.113 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003699/0.7503, allocations: 356 kB / 1.052 GB, free: 3.766 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000575/0.7509, allocations: 243.9 kB / 1.052 GB, free: 3.527 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.281/2.032, allocations: 10.38 MB / 1.062 GB, free: 132.5 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.1022/2.134, allocations: 48.72 MB / 1.11 GB, free: 98.73 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01517/2.149, allocations: 6.409 MB / 1.116 GB, free: 95.27 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001968/2.151, allocations: 0.8503 MB / 1.117 GB, free: 94.45 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01155/2.163, allocations: 3.378 MB / 1.12 GB, free: 91.25 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007098/2.17, allocations: 0.5377 MB / 1.121 GB, free: 90.7 MB / 0.698 GB Notification: Performance of pre-optimization done (n=455): time 2.154e-05/2.17, allocations: 0 / 1.121 GB, free: 90.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=455): time 0.0325/2.203, allocations: 9.11 MB / 1.13 GB, free: 81.53 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/2.203, allocations: 154.3 kB / 1.13 GB, free: 81.35 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02242/2.225, allocations: 7.83 MB / 1.138 GB, free: 73.54 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.001347/2.227, allocations: 105.7 kB / 1.138 GB, free: 73.43 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.006564/2.233, allocations: 4.277 MB / 1.142 GB, free: 69.14 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.003584/2.237, allocations: 1.581 MB / 1.143 GB, free: 67.57 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009341/2.238, allocations: 120 kB / 1.143 GB, free: 67.45 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0005843/2.239, allocations: 0.546 MB / 1.144 GB, free: 66.9 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01074/2.249, allocations: 3.017 MB / 1.147 GB, free: 63.88 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01274/2.262, allocations: 4.867 MB / 1.152 GB, free: 58.18 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01259/2.275, allocations: 4.056 MB / 1.156 GB, free: 54.11 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.404e-05/2.275, allocations: 23.94 kB / 1.156 GB, free: 54.09 MB / 0.698 GB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02416/2.299, allocations: 8.886 MB / 1.164 GB, free: 45.18 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.005724/2.305, allocations: 28.64 MB / 1.192 GB, free: 14.59 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001649/2.305, allocations: 60 kB / 1.192 GB, free: 14.54 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001355/2.305, allocations: 96 kB / 1.192 GB, free: 14.44 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01102/2.316, allocations: 1.431 MB / 1.194 GB, free: 13.01 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001802/2.316, allocations: 127.5 kB / 1.194 GB, free: 12.88 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01179/2.328, allocations: 0.6428 MB / 1.195 GB, free: 12.24 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001503/2.33, allocations: 272 kB / 1.195 GB, free: 11.97 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/2.33, allocations: 4 kB / 1.195 GB, free: 11.97 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02245/2.352, allocations: 8.307 MB / 1.203 GB, free: 3.648 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001346/2.352, allocations: 63.98 kB / 1.203 GB, free: 3.586 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.986e-05/2.353, allocations: 96 kB / 1.203 GB, free: 3.492 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01091/2.364, allocations: 1.428 MB / 1.205 GB, free: 2.062 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001821/2.364, allocations: 123.6 kB / 1.205 GB, free: 1.941 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01123/2.375, allocations: 0.6156 MB / 1.205 GB, free: 1.324 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001556/2.377, allocations: 276 kB / 1.206 GB, free: 1.055 MB / 0.698 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 ($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 (748): * Single equations (assignments): 746 * 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.01016/2.387, allocations: 3.555 MB / 1.209 GB, free: 13.47 MB / 0.7137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002993/2.39, allocations: 0.7024 MB / 1.21 GB, free: 12.76 MB / 0.7137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02489/2.415, allocations: 7.191 MB / 1.217 GB, free: 5.547 MB / 0.7137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.634e-05/2.415, allocations: 48 kB / 1.217 GB, free: 5.5 MB / 0.7137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/2.415, allocations: 0 / 1.217 GB, free: 5.5 MB / 0.7137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01946/2.434, allocations: 5.888 MB / 1.223 GB, free: 15.57 MB / 0.7293 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.05751/2.492, allocations: 16.61 MB / 1.239 GB, free: 14.89 MB / 0.7449 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.136e-05/2.492, allocations: 0 / 1.239 GB, free: 14.89 MB / 0.7449 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009113/2.501, allocations: 0.9051 MB / 1.24 GB, free: 13.98 MB / 0.7449 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.719e-05/2.501, allocations: 16 kB / 1.24 GB, free: 13.96 MB / 0.7449 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001071/2.502, allocations: 119.9 kB / 1.24 GB, free: 13.85 MB / 0.7449 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.62e-05/2.502, allocations: 16 kB / 1.24 GB, free: 13.83 MB / 0.7449 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/2.502, allocations: 0 / 1.24 GB, free: 13.83 MB / 0.7449 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03215/2.535, allocations: 10.84 MB / 1.25 GB, free: 2.898 MB / 0.7449 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007713/2.542, allocations: 1.773 MB / 1.252 GB, free: 1.098 MB / 0.7449 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003111/2.546, allocations: 95.98 kB / 1.252 GB, free: 1.004 MB / 0.7449 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0117/2.557, allocations: 0.6111 MB / 1.253 GB, free: 404 kB / 0.7449 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001465/2.559, allocations: 251.1 kB / 1.253 GB, free: 152 kB / 0.7449 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001006/2.56, allocations: 191.1 kB / 1.253 GB, free: 15.96 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0161/2.576, allocations: 5.518 MB / 1.259 GB, free: 10.47 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.001e-06/2.576, allocations: 0 / 1.259 GB, free: 10.47 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.02314/2.599, allocations: 4.84 MB / 1.263 GB, free: 5.645 MB / 0.7605 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 (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.002733/2.602, allocations: 0.5744 MB / 1.264 GB, free: 5.113 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.03286/2.635, allocations: 11.56 MB / 1.275 GB, free: 9.531 MB / 0.7762 GB Notification: Performance of simCode: created event and clocks part: time 1.215e-05/2.635, allocations: 0 / 1.275 GB, free: 9.531 MB / 0.7762 GB Notification: Performance of simCode: created simulation system equations: time 0.009366/2.644, allocations: 3.243 MB / 1.278 GB, free: 6.266 MB / 0.7762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03617/2.681, allocations: 4.382 MB / 1.283 GB, free: 1.949 MB / 0.7762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06115/2.742, allocations: 22.66 MB / 1.305 GB, free: 11.23 MB / 0.8074 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0135/2.755, allocations: 6.262 MB / 1.311 GB, free: 4.934 MB / 0.8074 GB Notification: Performance of simCode: alias equations: time 0.02506/2.781, allocations: 4.297 MB / 1.315 GB, free: 0.625 MB / 0.8074 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004469/2.785, allocations: 0.6163 MB / 1.316 GB, free: 12 kB / 0.8074 GB Notification: Performance of SimCode: time 1.513e-06/2.785, allocations: 0 / 1.316 GB, free: 12 kB / 0.8074 GB Notification: Performance of Templates: time 1.023/3.809, allocations: 153.8 MB / 1.466 GB, free: 255.2 MB / 0.8855 GB