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 5.231/5.231, allocations: 0.5623 GB / 0.5775 GB, free: 3.363 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003858/0.003858, allocations: 362.1 kB / 0.6446 GB, free: 185.7 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.352/4.352, allocations: 410.7 MB / 1.113 GB, free: 5.949 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001786/0.001786, allocations: 180 kB / 1.226 GB, free: 6.176 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0005029/0.0005033, allocations: 12 kB / 1.349 GB, free: 8.309 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7431/0.7436, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.187/1.931, allocations: 411.4 MB / 1.863 GB, free: 131 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003435/1.931, allocations: 100 kB / 1.863 GB, free: 130.9 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 15.62/17.55, allocations: 2.903 GB / 4.766 GB, free: 142.1 MB / 0.9792 GB Notification: Performance of FrontEnd: time 3.316e-06/17.55, allocations: 0 / 4.766 GB, free: 142.1 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.001703/17.55, allocations: 259 kB / 4.766 GB, free: 142.1 MB / 0.9792 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.04486/17.6, allocations: 9.811 MB / 4.776 GB, free: 138.6 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/17.6, allocations: 10.44 kB / 4.776 GB, free: 138.6 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008733/17.61, allocations: 1.168 MB / 4.777 GB, free: 138.1 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03536/17.64, allocations: 10.22 MB / 4.787 GB, free: 136.9 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009588/17.64, allocations: 0.6175 MB / 4.788 GB, free: 136.9 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004254/17.65, allocations: 0.814 MB / 4.788 GB, free: 136.9 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04306/17.69, allocations: 11.77 MB / 4.8 GB, free: 135.7 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005842/17.69, allocations: 30.52 kB / 4.8 GB, free: 135.7 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003756/17.69, allocations: 360.9 kB / 4.8 GB, free: 135.7 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003452/17.69, allocations: 246 kB / 4.801 GB, free: 135.7 MB / 0.9792 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0329/17.73, allocations: 9.631 MB / 4.81 GB, free: 135.6 MB / 0.9792 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.1036/17.83, allocations: 46.26 MB / 4.855 GB, free: 114.4 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01546/17.85, allocations: 6.196 MB / 4.861 GB, free: 112 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0127/17.86, allocations: 5.494 MB / 4.866 GB, free: 110.3 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001997/17.86, allocations: 0.8241 MB / 4.867 GB, free: 109.5 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01035/17.87, allocations: 3.405 MB / 4.871 GB, free: 108.3 MB / 0.9792 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006783/17.88, allocations: 0.5151 MB / 4.871 GB, free: 108 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=449): time 1.777e-05/17.88, allocations: 0 / 4.871 GB, free: 108 MB / 0.9792 GB Notification: Performance of matching and sorting (n=449): time 0.02782/17.91, allocations: 8.803 MB / 4.88 GB, free: 104.8 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/17.91, allocations: 158.5 kB / 4.88 GB, free: 104.6 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01964/17.93, allocations: 7.274 MB / 4.887 GB, free: 102.2 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.001647/17.93, allocations: 113.9 kB / 4.887 GB, free: 102.1 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.007042/17.93, allocations: 4.282 MB / 4.891 GB, free: 98.87 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.00347/17.94, allocations: 1.558 MB / 4.893 GB, free: 97.68 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001279/17.94, allocations: 117 kB / 4.893 GB, free: 97.59 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0006442/17.94, allocations: 0.5407 MB / 4.893 GB, free: 97.18 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008851/17.95, allocations: 2.973 MB / 4.896 GB, free: 96.17 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01035/17.96, allocations: 4.863 MB / 4.901 GB, free: 92.81 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01068/17.97, allocations: 4.019 MB / 4.905 GB, free: 91.23 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.092e-05/17.97, allocations: 21.62 kB / 4.905 GB, free: 91.23 MB / 0.9792 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02799/18, allocations: 8.806 MB / 4.914 GB, free: 85.84 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.001427/18, allocations: 1.893 MB / 4.915 GB, free: 83.19 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001425/18, allocations: 56 kB / 4.916 GB, free: 83.13 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001452/18, allocations: 100 kB / 4.916 GB, free: 83.04 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01115/18.01, allocations: 1.375 MB / 4.917 GB, free: 81.86 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002052/18.01, allocations: 130.1 kB / 4.917 GB, free: 81.74 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01315/18.02, allocations: 0.6131 MB / 4.918 GB, free: 81.25 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00195/18.03, allocations: 285.4 kB / 4.918 GB, free: 80.99 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/18.03, allocations: 4 kB / 4.918 GB, free: 80.98 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02568/18.05, allocations: 8.233 MB / 4.926 GB, free: 73.84 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000195/18.05, allocations: 63.17 kB / 4.926 GB, free: 73.78 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001166/18.05, allocations: 96 kB / 4.926 GB, free: 73.69 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01117/18.06, allocations: 1.372 MB / 4.928 GB, free: 72.51 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001893/18.06, allocations: 129.5 kB / 4.928 GB, free: 72.39 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01181/18.08, allocations: 0.5887 MB / 4.928 GB, free: 71.93 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001809/18.08, allocations: 279.2 kB / 4.928 GB, free: 71.67 MB / 0.9792 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.01015/18.09, allocations: 3.56 MB / 4.932 GB, free: 68.74 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002587/18.09, allocations: 0.7141 MB / 4.933 GB, free: 68.02 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02045/18.11, allocations: 7.074 MB / 4.94 GB, free: 62.09 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.79e-05/18.11, allocations: 44 kB / 4.94 GB, free: 62.04 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.457e-05/18.11, allocations: 0 / 4.94 GB, free: 62.04 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01551/18.13, allocations: 5.793 MB / 4.945 GB, free: 57.07 MB / 0.9792 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.0536/18.18, allocations: 16.47 MB / 4.961 GB, free: 43.93 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.217e-05/18.18, allocations: 7.281 kB / 4.961 GB, free: 43.93 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008891/18.19, allocations: 0.9469 MB / 4.962 GB, free: 43.14 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-05/18.19, allocations: 16 kB / 4.962 GB, free: 43.13 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001156/18.19, allocations: 118.6 kB / 4.962 GB, free: 43.03 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.381e-05/18.19, allocations: 22.69 kB / 4.962 GB, free: 43.01 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.165e-06/18.19, allocations: 0 / 4.962 GB, free: 43.01 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0268/18.22, allocations: 10.52 MB / 4.973 GB, free: 33.13 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007302/18.23, allocations: 1.66 MB / 4.974 GB, free: 31.45 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003254/18.23, allocations: 99.98 kB / 4.974 GB, free: 31.35 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01159/18.24, allocations: 0.5925 MB / 4.975 GB, free: 30.75 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001358/18.24, allocations: 255.1 kB / 4.975 GB, free: 30.5 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001019/18.24, allocations: 206.2 kB / 4.975 GB, free: 30.3 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.01393/18.26, allocations: 5.071 MB / 4.98 GB, free: 25.26 MB / 0.9792 GB Notification: Performance of sort global known variables: time 5.41e-07/18.26, allocations: 0 / 4.98 GB, free: 25.26 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.02294/18.28, allocations: 4.873 MB / 4.985 GB, free: 20.38 MB / 0.9792 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.003445/18.28, allocations: 0.914 MB / 4.986 GB, free: 19.59 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.02845/18.31, allocations: 11.38 MB / 4.997 GB, free: 8.184 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.278e-05/18.31, allocations: 8.625 kB / 4.997 GB, free: 8.176 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.008017/18.32, allocations: 3.153 MB / 5 GB, free: 5 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0397/18.36, allocations: 4.481 MB / 5.005 GB, free: 0.7734 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8592/19.22, allocations: 22.49 MB / 5.027 GB, free: 137.4 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01532/19.23, allocations: 6.253 MB / 5.033 GB, free: 136.5 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 0.02571/19.26, allocations: 4.231 MB / 5.037 GB, free: 136.4 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004752/19.26, allocations: 0.6142 MB / 5.037 GB, free: 136.4 MB / 0.9948 GB Notification: Performance of SimCode: time 1.573e-06/19.26, allocations: 0 / 5.037 GB, free: 136.4 MB / 0.9948 GB Notification: Performance of Templates: time 0.3813/19.65, allocations: 157.9 MB / 5.192 GB, free: 124.9 MB / 0.9948 GB