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 4.535/4.535, allocations: 0.5623 GB / 0.5769 GB, free: 66.9 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00256/0.00256, allocations: 363.9 kB / 0.644 GB, free: 21.48 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.046/4.046, allocations: 410.7 MB / 1.112 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001815/0.001815, allocations: 180.9 kB / 1.225 GB, free: 11.63 MB / 0.7292 GB Notification: Performance of FrontEnd - loaded program: time 0.0004819/0.0004821, allocations: 14.78 kB / 1.348 GB, free: 321.2 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.152/0.1525, allocations: 115.3 MB / 1.461 GB, free: 220.7 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.Stratified): time 0.04931/0.2019, allocations: 51.74 MB / 1.511 GB, free: 169 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.02083/0.2227, allocations: 16.12 MB / 1.527 GB, free: 152.9 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002367/0.2252, allocations: 67.56 kB / 1.527 GB, free: 152.8 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.001999/0.2272, allocations: 0.7842 MB / 1.528 GB, free: 152 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.006672/0.2339, allocations: 2.375 MB / 1.53 GB, free: 149.7 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.005841/0.2397, allocations: 1.706 MB / 1.532 GB, free: 148 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.02598/0.2657, allocations: 32.23 MB / 1.563 GB, free: 115.7 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01301/0.2788, allocations: 10.03 MB / 1.573 GB, free: 105.5 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01115/0.29, allocations: 7 MB / 1.58 GB, free: 98.52 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01105/0.3011, allocations: 7.543 MB / 1.587 GB, free: 90.94 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 0.001728/0.3028, allocations: 480 kB / 1.588 GB, free: 90.47 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005953/0.3088, allocations: 1.182 MB / 1.589 GB, free: 89.29 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 0.00297/0.3118, allocations: 2.094 MB / 1.591 GB, free: 87.19 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.003943/0.3157, allocations: 2.2 MB / 1.593 GB, free: 84.98 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0151/0.3309, allocations: 14.34 MB / 1.607 GB, free: 70.6 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 6.269e-06/0.3309, allocations: 4 kB / 1.607 GB, free: 70.59 MB / 0.8073 GB Notification: Performance of FrontEnd: time 3.186e-06/0.3309, allocations: 0 / 1.607 GB, free: 70.59 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 0.0003648/0.3313, allocations: 0 / 1.607 GB, free: 70.59 MB / 0.8073 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.02001/0.3513, allocations: 9.479 MB / 1.616 GB, free: 61.01 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.3514, allocations: 12.47 kB / 1.616 GB, free: 61 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004898/0.3563, allocations: 1.175 MB / 1.618 GB, free: 59.81 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01914/0.3755, allocations: 8.823 MB / 1.626 GB, free: 50.92 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005081/0.376, allocations: 0.614 MB / 1.627 GB, free: 50.3 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001971/0.378, allocations: 0.8201 MB / 1.628 GB, free: 49.48 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0264/0.4044, allocations: 12.45 MB / 1.64 GB, free: 36.64 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002291/0.4047, allocations: 23.86 kB / 1.64 GB, free: 36.62 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001193/0.4059, allocations: 356 kB / 1.64 GB, free: 36.27 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002212/0.4062, allocations: 251.9 kB / 1.64 GB, free: 36.02 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02337/0.4295, allocations: 10.36 MB / 1.65 GB, free: 25.66 MB / 0.8073 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 1.159/1.589, allocations: 48.84 MB / 1.698 GB, free: 172.9 MB / 0.8074 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01262/1.601, allocations: 6.239 MB / 1.704 GB, free: 170.5 MB / 0.8074 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01043/1.612, allocations: 5.06 MB / 1.709 GB, free: 168.9 MB / 0.8074 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001597/1.613, allocations: 0.8465 MB / 1.71 GB, free: 168.1 MB / 0.8074 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008102/1.622, allocations: 3.411 MB / 1.713 GB, free: 166.9 MB / 0.8074 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004449/1.626, allocations: 0.4981 MB / 1.714 GB, free: 166.9 MB / 0.8074 GB Notification: Performance of pre-optimization done (n=449): time 1.473e-05/1.626, allocations: 0 / 1.714 GB, free: 166.9 MB / 0.8074 GB Notification: Performance of matching and sorting (n=449): time 0.02007/1.646, allocations: 8.846 MB / 1.722 GB, free: 163 MB / 0.8074 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.412e-05/1.646, allocations: 161.8 kB / 1.723 GB, free: 162.9 MB / 0.8074 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01355/1.66, allocations: 7.243 MB / 1.73 GB, free: 159.2 MB / 0.8074 GB Notification: Performance of collectPreVariables (initialization): time 0.0009072/1.661, allocations: 111.3 kB / 1.73 GB, free: 159.1 MB / 0.8074 GB Notification: Performance of collectInitialEqns (initialization): time 0.004644/1.665, allocations: 4.294 MB / 1.734 GB, free: 155.5 MB / 0.8074 GB Notification: Performance of collectInitialBindings (initialization): time 0.002318/1.668, allocations: 1.55 MB / 1.735 GB, free: 154.2 MB / 0.8074 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007054/1.669, allocations: 120.4 kB / 1.736 GB, free: 154.1 MB / 0.8074 GB Notification: Performance of setup shared object (initialization): time 0.0004133/1.669, allocations: 0.5469 MB / 1.736 GB, free: 153.6 MB / 0.8074 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006681/1.676, allocations: 2.993 MB / 1.739 GB, free: 152 MB / 0.8074 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007537/1.683, allocations: 4.875 MB / 1.744 GB, free: 148.1 MB / 0.8074 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008454/1.692, allocations: 4.037 MB / 1.748 GB, free: 146 MB / 0.8074 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.617e-05/1.692, allocations: 15.91 kB / 1.748 GB, free: 146 MB / 0.8074 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01961/1.711, allocations: 8.828 MB / 1.756 GB, free: 138.3 MB / 0.8074 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008615/1.712, allocations: 1.896 MB / 1.758 GB, free: 135.6 MB / 0.8074 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.997e-05/1.712, allocations: 60.62 kB / 1.758 GB, free: 135.5 MB / 0.8074 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001147/1.713, allocations: 96 kB / 1.758 GB, free: 135.4 MB / 0.8074 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007008/1.72, allocations: 1.365 MB / 1.76 GB, free: 134.1 MB / 0.8074 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001322/1.72, allocations: 131.5 kB / 1.76 GB, free: 134 MB / 0.8074 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008389/1.728, allocations: 0.6193 MB / 1.76 GB, free: 133.3 MB / 0.8074 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001179/1.729, allocations: 279.9 kB / 1.761 GB, free: 133.1 MB / 0.8074 GB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/1.729, allocations: 0 / 1.761 GB, free: 133.1 MB / 0.8074 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01663/1.746, allocations: 8.251 MB / 1.769 GB, free: 124.8 MB / 0.8074 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.964e-05/1.746, allocations: 56 kB / 1.769 GB, free: 124.7 MB / 0.8074 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.174e-05/1.746, allocations: 100 kB / 1.769 GB, free: 124.6 MB / 0.8074 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006963/1.753, allocations: 1.358 MB / 1.77 GB, free: 123.3 MB / 0.8074 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001265/1.753, allocations: 127.6 kB / 1.77 GB, free: 123.2 MB / 0.8074 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008066/1.762, allocations: 0.6039 MB / 1.771 GB, free: 122.6 MB / 0.8074 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001152/1.763, allocations: 280 kB / 1.771 GB, free: 122.3 MB / 0.8074 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.00689/1.77, allocations: 3.562 MB / 1.775 GB, free: 118.7 MB / 0.8074 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00191/1.772, allocations: 0.7063 MB / 1.775 GB, free: 118 MB / 0.8074 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01442/1.786, allocations: 7.094 MB / 1.782 GB, free: 110.9 MB / 0.8074 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.014e-05/1.786, allocations: 40 kB / 1.782 GB, free: 110.8 MB / 0.8074 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.55e-05/1.786, allocations: 0 / 1.782 GB, free: 110.8 MB / 0.8074 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01155/1.798, allocations: 5.818 MB / 1.788 GB, free: 105 MB / 0.8074 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.03728/1.835, allocations: 16.5 MB / 1.804 GB, free: 88.42 MB / 0.8074 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.849e-05/1.835, allocations: 0 / 1.804 GB, free: 88.42 MB / 0.8074 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005682/1.841, allocations: 0.9402 MB / 1.805 GB, free: 87.48 MB / 0.8074 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-05/1.841, allocations: 16 kB / 1.805 GB, free: 87.46 MB / 0.8074 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006954/1.842, allocations: 119.9 kB / 1.805 GB, free: 87.35 MB / 0.8074 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.502e-05/1.842, allocations: 16 kB / 1.805 GB, free: 87.33 MB / 0.8074 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.522e-06/1.842, allocations: 7.938 kB / 1.805 GB, free: 87.32 MB / 0.8074 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01892/1.861, allocations: 10.53 MB / 1.815 GB, free: 76.73 MB / 0.8074 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005192/1.866, allocations: 1.671 MB / 1.817 GB, free: 75.03 MB / 0.8074 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001829/1.868, allocations: 95.94 kB / 1.817 GB, free: 74.94 MB / 0.8074 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007429/1.875, allocations: 0.6299 MB / 1.818 GB, free: 74.31 MB / 0.8074 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009159/1.876, allocations: 251.8 kB / 1.818 GB, free: 74.07 MB / 0.8074 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006293/1.877, allocations: 199.8 kB / 1.818 GB, free: 73.87 MB / 0.8074 GB Notification: Performance of sorting global known variables: time 0.009598/1.886, allocations: 5.054 MB / 1.823 GB, free: 68.84 MB / 0.8074 GB Notification: Performance of sort global known variables: time 1.155e-06/1.886, allocations: 3.938 kB / 1.823 GB, free: 68.84 MB / 0.8074 GB Notification: Performance of remove unused functions: time 0.01598/1.902, allocations: 4.795 MB / 1.828 GB, free: 64.05 MB / 0.8074 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.001862/1.904, allocations: 0.5689 MB / 1.828 GB, free: 63.54 MB / 0.8074 GB Notification: Performance of simCode: created initialization part: time 0.02119/1.925, allocations: 11.42 MB / 1.84 GB, free: 52.09 MB / 0.8074 GB Notification: Performance of simCode: created event and clocks part: time 1.487e-05/1.926, allocations: 4.562 kB / 1.84 GB, free: 52.09 MB / 0.8074 GB Notification: Performance of simCode: created simulation system equations: time 0.005819/1.931, allocations: 3.184 MB / 1.843 GB, free: 48.88 MB / 0.8074 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02388/1.955, allocations: 4.482 MB / 1.847 GB, free: 44.52 MB / 0.8074 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.038/1.993, allocations: 22.53 MB / 1.869 GB, free: 21.93 MB / 0.8074 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008851/2.002, allocations: 6.252 MB / 1.875 GB, free: 15.64 MB / 0.8074 GB Notification: Performance of simCode: alias equations: time 0.01634/2.019, allocations: 4.188 MB / 1.879 GB, free: 11.44 MB / 0.8074 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002934/2.022, allocations: 0.6124 MB / 1.88 GB, free: 10.83 MB / 0.8074 GB Notification: Performance of SimCode: time 2.28e-06/2.022, allocations: 0 / 1.88 GB, free: 10.83 MB / 0.8074 GB Notification: Performance of Templates: time 0.352/2.374, allocations: 153.7 MB / 2.03 GB, free: 2.445 MB / 0.948 GB