Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadModel(Buildings): time 4.04/4.04, allocations: 464.7 MB / 476.8 MB, free: 2.195 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.808e-05/3.824e-05, allocations: 4 kB / 0.5731 GB, free: 5.734 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.201/0.2011, allocations: 107.2 MB / 0.6778 GB, free: 10.39 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7097/0.9108, allocations: 136 MB / 0.8106 GB, free: 12.53 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/0.9111, allocations: 94.7 kB / 0.8107 GB, free: 12.53 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.02809/0.9392, allocations: 8.214 MB / 0.8187 GB, free: 11.67 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.626e-06/0.9393, allocations: 0 / 0.8187 GB, free: 11.67 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.973e-05/0.9393, allocations: 15.53 kB / 0.8187 GB, free: 11.67 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.0009978/0.9403, allocations: 0.6193 MB / 0.8193 GB, free: 11.22 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.9404, allocations: 11.5 kB / 0.8193 GB, free: 11.22 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/0.9405, allocations: 50.56 kB / 0.8194 GB, free: 11.2 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004742/0.941, allocations: 337.5 kB / 0.8197 GB, free: 10.97 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.01e-05/0.9411, allocations: 41.34 kB / 0.8197 GB, free: 10.96 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.909e-05/0.9412, allocations: 55.72 kB / 0.8198 GB, free: 10.96 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.9423, allocations: 0.5523 MB / 0.8203 GB, free: 10.84 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.9424, allocations: 0 / 0.8203 GB, free: 10.84 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.078e-05/0.9424, allocations: 20.97 kB / 0.8204 GB, free: 10.84 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.724e-05/0.9425, allocations: 24.3 kB / 0.8204 GB, free: 10.84 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008637/0.9434, allocations: 391.8 kB / 0.8208 GB, free: 10.83 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0026/0.946, allocations: 1.904 MB / 0.8226 GB, free: 9.824 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006961/0.9467, allocations: 349 kB / 0.8229 GB, free: 9.766 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003293/0.9471, allocations: 171.3 kB / 0.8231 GB, free: 9.754 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 6.271e-05/0.9471, allocations: 7.719 kB / 0.8231 GB, free: 9.754 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004008/0.9476, allocations: 218.5 kB / 0.8233 GB, free: 9.664 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=46): time 4.75e-06/0.9476, allocations: 0 / 0.8233 GB, free: 9.664 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46): time 0.0007638/0.9484, allocations: 335.6 kB / 0.8236 GB, free: 9.582 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.637e-05/0.9484, allocations: 59.06 kB / 0.8237 GB, free: 9.52 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002619/0.9487, allocations: 215.4 kB / 0.8239 GB, free: 9.387 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 6.698e-05/0.9488, allocations: 46.86 kB / 0.824 GB, free: 9.355 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001299/0.9489, allocations: 221.7 kB / 0.8242 GB, free: 9.195 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.949, allocations: 122.2 kB / 0.8243 GB, free: 9.121 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.183e-05/0.9491, allocations: 11.31 kB / 0.8243 GB, free: 9.121 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 7.547e-05/0.9492, allocations: 342.2 kB / 0.8246 GB, free: 8.797 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003236/0.9495, allocations: 155.4 kB / 0.8248 GB, free: 8.789 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003757/0.9499, allocations: 274.3 kB / 0.825 GB, free: 8.637 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003349/0.9502, allocations: 160.2 kB / 0.8252 GB, free: 8.605 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.941e-06/0.9503, allocations: 0 / 0.8252 GB, free: 8.605 MB / 0.6355 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00093/0.9512, allocations: 484.7 kB / 0.8256 GB, free: 8.492 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.9512, allocations: 7.688 kB / 0.8257 GB, free: 8.492 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.9512, allocations: 3.844 kB / 0.8257 GB, free: 8.492 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.861e-05/0.9513, allocations: 7.688 kB / 0.8257 GB, free: 8.492 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003368/0.9516, allocations: 65.59 kB / 0.8257 GB, free: 8.477 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.473e-05/0.9517, allocations: 8.391 kB / 0.8257 GB, free: 8.473 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003269/0.952, allocations: 46.52 kB / 0.8258 GB, free: 8.457 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.132e-05/0.9521, allocations: 23.16 kB / 0.8258 GB, free: 8.457 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.con.multiSwitch1.u[1],$PRE.con.multiSwitch1.u[2],$PRE.con.t1.enableFire,$PRE.con.t2.enableFire,$PRE.con.t3.enableFire,$PRE.con.t4.enableFire,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,$PRE.con.off.localActive,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,$PRE.con.off.newActive,con.off.newActive,$PRE.con.off.oldActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.enableFire,con.t2.fire,$PRE.con.t2.t_start,con.t2.t_start,$PRE.con.charge.localActive,con.charge.localActive,$PRE.con.charge.newActive,con.charge.newActive,$PRE.con.charge.oldActive,con.charge.oldActive,con.charge.active,$PRE.con.discharge.localActive,con.discharge.localActive,$PRE.con.discharge.newActive,con.discharge.newActive,$PRE.con.discharge.oldActive,con.discharge.oldActive,con.discharge.active,con.t3.enableFire,con.t4.enableFire) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * 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.0001725/0.9523, allocations: 180.2 kB / 0.826 GB, free: 8.316 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.631e-05/0.9524, allocations: 23.09 kB / 0.826 GB, free: 8.305 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009057/0.9533, allocations: 417.6 kB / 0.8264 GB, free: 8.199 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.522e-06/0.9533, allocations: 3.969 kB / 0.8264 GB, free: 8.199 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.405e-06/0.9533, allocations: 0 / 0.8264 GB, free: 8.199 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.96e-06/0.9533, allocations: 0 / 0.8264 GB, free: 8.199 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001883/0.9552, allocations: 1.045 MB / 0.8274 GB, free: 7.707 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.9553, allocations: 0 / 0.8274 GB, free: 7.707 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002234/0.9555, allocations: 42.94 kB / 0.8275 GB, free: 7.691 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.27e-06/0.9555, allocations: 3.844 kB / 0.8275 GB, free: 7.691 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.746e-05/0.9556, allocations: 19.27 kB / 0.8275 GB, free: 7.684 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.99e-06/0.9556, allocations: 3.953 kB / 0.8275 GB, free: 7.68 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.263e-06/0.9556, allocations: 0 / 0.8275 GB, free: 7.68 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007653/0.9564, allocations: 479 kB / 0.8279 GB, free: 7.488 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.341e-05/0.9565, allocations: 104.4 kB / 0.828 GB, free: 7.375 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.468e-05/0.9565, allocations: 15.28 kB / 0.8281 GB, free: 7.371 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002749/0.9568, allocations: 22.98 kB / 0.8281 GB, free: 7.367 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001743/0.957, allocations: 78 kB / 0.8281 GB, free: 7.336 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.144e-05/0.9571, allocations: 15.44 kB / 0.8282 GB, free: 7.332 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0001306/0.9572, allocations: 137.8 kB / 0.8283 GB, free: 7.246 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.96e-07/0.9572, allocations: 0 / 0.8283 GB, free: 7.246 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000588/0.9578, allocations: 84.41 kB / 0.8284 GB, free: 7.246 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 (con.t2.enableFire,con.t1.enableFire,con.discharge.active,con.discharge.localActive,con.charge.active,con.charge.localActive,con.off.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.fire,con.t1.t_start,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.enableFire,con.t4.enableFire) * Number of discrete states: 3 (con.off.newActive,con.charge.newActive,con.discharge.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0004334/0.9583, allocations: 149.8 kB / 0.8285 GB, free: 23.15 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0008157/0.9591, allocations: 406.7 kB / 0.8289 GB, free: 23.11 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.9591, allocations: 3.812 kB / 0.8289 GB, free: 23.11 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0003806/0.9595, allocations: 206.2 kB / 0.8291 GB, free: 23.09 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003719/0.9599, allocations: 30.98 kB / 0.8291 GB, free: 23.09 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.9612, allocations: 0.5358 MB / 0.8297 GB, free: 22.87 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005337/0.9617, allocations: 0.8302 MB / 0.8305 GB, free: 22.11 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.000309/0.962, allocations: 73.56 kB / 0.8305 GB, free: 22.07 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001452/0.9622, allocations: 34.52 kB / 0.8306 GB, free: 22.06 MB / 0.6511 GB Notification: Performance of SimCode: time 3.141e-06/0.9622, allocations: 3.875 kB / 0.8306 GB, free: 22.06 MB / 0.6511 GB Notification: Performance of Templates: time 0.01091/0.9731, allocations: 3.718 MB / 0.8342 GB, free: 20.25 MB / 0.6511 GB