Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_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 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.646/2.646, allocations: 287.9 MB / 302.9 MB, free: 8.215 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00144/0.00144, allocations: 174.7 kB / 371.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.022/2.022, allocations: 205.4 MB / 0.6301 GB, free: 10.39 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001037/0.001037, allocations: 103.2 kB / 0.7434 GB, free: 6.402 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004609/0.0004611, allocations: 11.66 kB / 0.8662 GB, free: 141.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.192/0.1925, allocations: 115.3 MB / 0.9787 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.Stratified): time 0.05754/0.2501, allocations: 46.99 MB / 1.025 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.02756/0.2777, allocations: 15.06 MB / 1.039 GB, free: 14 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00233/0.2801, allocations: 71.56 kB / 1.039 GB, free: 13.93 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.002691/0.2828, allocations: 0.8513 MB / 1.04 GB, free: 13.08 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.007868/0.2907, allocations: 2.251 MB / 1.042 GB, free: 10.82 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.006624/0.2973, allocations: 1.72 MB / 1.044 GB, free: 9.125 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.02278/0.3201, allocations: 15.62 MB / 1.059 GB, free: 9.492 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 1.312/1.633, allocations: 10.03 MB / 1.069 GB, free: 11.95 MB / 0.6824 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02488/1.658, allocations: 6.068 MB / 1.075 GB, free: 11.95 MB / 0.6824 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02122/1.679, allocations: 5.304 MB / 1.08 GB, free: 11.95 MB / 0.6824 GB Notification: Performance of NFPackage.collectConstants: time 0.00326/1.682, allocations: 474.1 kB / 1.081 GB, free: 11.95 MB / 0.6824 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008531/1.691, allocations: 1.237 MB / 1.082 GB, free: 11.95 MB / 0.6824 GB Notification: Performance of NFScalarize.scalarize: time 0.004739/1.696, allocations: 2.017 MB / 1.084 GB, free: 11.87 MB / 0.6824 GB Notification: Performance of NFVerifyModel.verify: time 0.005771/1.701, allocations: 2.206 MB / 1.086 GB, free: 11.52 MB / 0.6824 GB Notification: Performance of NFConvertDAE.convert: time 0.02539/1.727, allocations: 14.28 MB / 1.1 GB, free: 10.68 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/1.727, allocations: 0 / 1.1 GB, free: 10.68 MB / 0.6824 GB Notification: Performance of FrontEnd: time 3.141e-06/1.727, allocations: 2.906 kB / 1.1 GB, free: 10.68 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 0.00057/1.727, allocations: 0 / 1.1 GB, free: 10.68 MB / 0.6824 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.02725/1.755, allocations: 9.475 MB / 1.109 GB, free: 22.73 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/1.755, allocations: 13.41 kB / 1.109 GB, free: 22.72 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006544/1.761, allocations: 1.163 MB / 1.11 GB, free: 22.16 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02293/1.784, allocations: 8.204 MB / 1.118 GB, free: 19.39 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008391/1.785, allocations: 0.6132 MB / 1.119 GB, free: 19.38 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003245/1.788, allocations: 0.8198 MB / 1.12 GB, free: 19.37 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03641/1.825, allocations: 12.4 MB / 1.132 GB, free: 15.57 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003472/1.825, allocations: 20.56 kB / 1.132 GB, free: 15.56 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002604/1.828, allocations: 362.5 kB / 1.132 GB, free: 15.56 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000252/1.828, allocations: 252 kB / 1.133 GB, free: 15.54 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02829/1.856, allocations: 10.36 MB / 1.143 GB, free: 13.55 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.09901/1.955, allocations: 49.2 MB / 1.191 GB, free: 2.359 MB / 0.7293 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01494/1.97, allocations: 6.364 MB / 1.197 GB, free: 12.02 MB / 0.7449 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001865/1.972, allocations: 0.8472 MB / 1.198 GB, free: 11.05 MB / 0.7449 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009736/1.982, allocations: 3.415 MB / 1.201 GB, free: 7.602 MB / 0.7449 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005462/1.988, allocations: 0.533 MB / 1.202 GB, free: 7.062 MB / 0.7449 GB Notification: Performance of pre-optimization done (n=449): time 1.57e-05/1.988, allocations: 0 / 1.202 GB, free: 7.062 MB / 0.7449 GB Notification: Performance of matching and sorting (n=449): time 0.02539/2.013, allocations: 9.062 MB / 1.21 GB, free: 13.93 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001518/2.013, allocations: 158.3 kB / 1.211 GB, free: 13.75 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01883/2.032, allocations: 7.839 MB / 1.218 GB, free: 5.93 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.001133/2.033, allocations: 113.7 kB / 1.218 GB, free: 5.812 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.006949/2.04, allocations: 4.284 MB / 1.223 GB, free: 1.512 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.003118/2.043, allocations: 1.561 MB / 1.224 GB, free: 15.96 MB / 0.7762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007817/2.044, allocations: 116 kB / 1.224 GB, free: 15.85 MB / 0.7762 GB Notification: Performance of setup shared object (initialization): time 0.0006618/2.045, allocations: 0.5474 MB / 1.225 GB, free: 15.3 MB / 0.7762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008004/2.053, allocations: 3.009 MB / 1.228 GB, free: 12.28 MB / 0.7762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0103/2.063, allocations: 4.865 MB / 1.232 GB, free: 6.582 MB / 0.7762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009995/2.073, allocations: 4.052 MB / 1.236 GB, free: 2.52 MB / 0.7762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.155e-05/2.073, allocations: 16 kB / 1.236 GB, free: 2.504 MB / 0.7762 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02498/2.098, allocations: 8.866 MB / 1.245 GB, free: 9.609 MB / 0.7918 GB Notification: Performance of prepare postOptimizeDAE: time 0.01587/2.114, allocations: 29.07 MB / 1.273 GB, free: 10.58 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001701/2.115, allocations: 64 kB / 1.273 GB, free: 10.52 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001499/2.115, allocations: 96 kB / 1.274 GB, free: 10.42 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008198/2.123, allocations: 1.424 MB / 1.275 GB, free: 8.996 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001892/2.123, allocations: 127.6 kB / 1.275 GB, free: 8.871 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009804/2.133, allocations: 0.6311 MB / 1.276 GB, free: 8.238 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001669/2.135, allocations: 280 kB / 1.276 GB, free: 7.965 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/2.135, allocations: 6.625 kB / 1.276 GB, free: 7.961 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02226/2.157, allocations: 8.29 MB / 1.284 GB, free: 15.66 MB / 0.8387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001628/2.157, allocations: 56 kB / 1.284 GB, free: 15.6 MB / 0.8387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001386/2.157, allocations: 100 kB / 1.284 GB, free: 15.5 MB / 0.8387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008109/2.165, allocations: 1.424 MB / 1.286 GB, free: 14.08 MB / 0.8387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001883/2.166, allocations: 131.5 kB / 1.286 GB, free: 13.95 MB / 0.8387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009405/2.175, allocations: 0.6156 MB / 1.286 GB, free: 13.33 MB / 0.8387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001708/2.177, allocations: 278.9 kB / 1.287 GB, free: 13.06 MB / 0.8387 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.01587/2.193, allocations: 3.559 MB / 1.29 GB, free: 9.48 MB / 0.8387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004731/2.198, allocations: 0.7102 MB / 1.291 GB, free: 8.762 MB / 0.8387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03784/2.235, allocations: 7.127 MB / 1.298 GB, free: 1.609 MB / 0.8387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000101/2.236, allocations: 44 kB / 1.298 GB, free: 1.566 MB / 0.8387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.708e-05/2.236, allocations: 4 kB / 1.298 GB, free: 1.562 MB / 0.8387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02992/2.266, allocations: 5.849 MB / 1.303 GB, free: 11.68 MB / 0.8543 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.04762/2.313, allocations: 16.63 MB / 1.32 GB, free: 10.98 MB / 0.8699 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.841e-05/2.313, allocations: 4.094 kB / 1.32 GB, free: 10.98 MB / 0.8699 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006041/2.319, allocations: 0.9011 MB / 1.321 GB, free: 10.08 MB / 0.8699 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.179e-05/2.319, allocations: 19.95 kB / 1.321 GB, free: 10.06 MB / 0.8699 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008782/2.32, allocations: 119.9 kB / 1.321 GB, free: 9.941 MB / 0.8699 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.208e-05/2.32, allocations: 16 kB / 1.321 GB, free: 9.926 MB / 0.8699 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.957e-06/2.32, allocations: 3.938 kB / 1.321 GB, free: 9.922 MB / 0.8699 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0257/2.346, allocations: 10.77 MB / 1.331 GB, free: 15.06 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006949/2.353, allocations: 1.792 MB / 1.333 GB, free: 13.24 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002648/2.356, allocations: 95.98 kB / 1.333 GB, free: 13.15 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008345/2.364, allocations: 0.61 MB / 1.334 GB, free: 12.54 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001121/2.365, allocations: 255.1 kB / 1.334 GB, free: 12.29 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008674/2.366, allocations: 195.8 kB / 1.334 GB, free: 12.1 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.01365/2.38, allocations: 5.53 MB / 1.34 GB, free: 6.594 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.509e-06/2.38, allocations: 2.516 kB / 1.34 GB, free: 6.594 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.02233/2.402, allocations: 4.845 MB / 1.344 GB, free: 1.734 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.003005/2.405, allocations: 0.5844 MB / 1.345 GB, free: 1.184 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.02768/2.433, allocations: 11.5 MB / 1.356 GB, free: 5.66 MB / 0.9012 GB Notification: Performance of simCode: created event and clocks part: time 1.388e-05/2.433, allocations: 4.562 kB / 1.356 GB, free: 5.656 MB / 0.9012 GB Notification: Performance of simCode: created simulation system equations: time 0.007662/2.441, allocations: 3.227 MB / 1.359 GB, free: 2.406 MB / 0.9012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02486/2.466, allocations: 4.377 MB / 1.364 GB, free: 14.12 MB / 0.9168 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05044/2.516, allocations: 22.51 MB / 1.385 GB, free: 7.582 MB / 0.9324 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01356/2.53, allocations: 6.26 MB / 1.392 GB, free: 1.285 MB / 0.9324 GB Notification: Performance of simCode: alias equations: time 0.0216/2.551, allocations: 4.371 MB / 1.396 GB, free: 12.9 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003753/2.555, allocations: 0.6047 MB / 1.396 GB, free: 12.3 MB / 0.948 GB Notification: Performance of SimCode: time 2.185e-06/2.555, allocations: 0 / 1.396 GB, free: 12.3 MB / 0.948 GB Notification: Performance of Templates: time 0.862/3.417, allocations: 154.8 MB / 1.548 GB, free: 286.1 MB / 0.9793 GB