Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_5.0.1_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadModel(Buildings): time 3.553/3.553, allocations: 403.3 MB / 415.4 MB, free: 12.9 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.172e-05/3.19e-05, allocations: 0 / 0.499 GB, free: 13.35 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.485/0.4851, allocations: 92.68 MB / 0.5895 GB, free: 14.35 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1879/0.673, allocations: 124.2 MB / 0.7109 GB, free: 1.965 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003061/0.6734, allocations: 91.94 kB / 0.7109 GB, free: 1.875 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.0317/0.7051, allocations: 8.092 MB / 0.7188 GB, free: 9.734 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.642e-06/0.7052, allocations: 0 / 0.7188 GB, free: 9.734 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.87e-05/0.7052, allocations: 8 kB / 0.7189 GB, free: 9.727 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001243/0.7065, allocations: 0.6109 MB / 0.7194 GB, free: 9.066 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.7065, allocations: 8.031 kB / 0.7195 GB, free: 9.059 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001561/0.7067, allocations: 51.39 kB / 0.7195 GB, free: 9.008 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000588/0.7073, allocations: 331.1 kB / 0.7198 GB, free: 8.641 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.496e-05/0.7074, allocations: 49 kB / 0.7199 GB, free: 8.594 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/0.7075, allocations: 59.98 kB / 0.7199 GB, free: 8.535 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001251/0.7088, allocations: 0.5383 MB / 0.7205 GB, free: 7.969 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.239e-05/0.7088, allocations: 7.875 kB / 0.7205 GB, free: 7.961 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.823e-05/0.7089, allocations: 20 kB / 0.7205 GB, free: 7.941 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.616e-05/0.709, allocations: 21 kB / 0.7205 GB, free: 7.918 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001015/0.71, allocations: 403.8 kB / 0.7209 GB, free: 7.523 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003308/0.7133, allocations: 1.88 MB / 0.7227 GB, free: 5.562 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008087/0.7142, allocations: 347.6 kB / 0.7231 GB, free: 5.211 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003927/0.7146, allocations: 176.8 kB / 0.7232 GB, free: 5.035 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 6.367e-05/0.7147, allocations: 4.719 kB / 0.7232 GB, free: 5.031 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004792/0.7152, allocations: 218 kB / 0.7234 GB, free: 4.805 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 4.799e-06/0.7152, allocations: 0 / 0.7234 GB, free: 4.805 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.0008635/0.7161, allocations: 329.6 kB / 0.7237 GB, free: 4.477 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.355e-05/0.7161, allocations: 67.38 kB / 0.7238 GB, free: 4.398 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003293/0.7165, allocations: 217.9 kB / 0.724 GB, free: 4.18 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.56e-05/0.7166, allocations: 49.69 kB / 0.7241 GB, free: 4.125 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001973/0.7168, allocations: 212.7 kB / 0.7243 GB, free: 3.914 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001389/0.717, allocations: 114.6 kB / 0.7244 GB, free: 3.801 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.56e-05/0.717, allocations: 12 kB / 0.7244 GB, free: 3.789 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001881/0.7172, allocations: 350.8 kB / 0.7247 GB, free: 3.438 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003888/0.7176, allocations: 149.5 kB / 0.7249 GB, free: 3.289 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005044/0.7181, allocations: 274 kB / 0.7251 GB, free: 2.977 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004046/0.7185, allocations: 167.2 kB / 0.7253 GB, free: 2.812 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.091e-05/0.7186, allocations: 4 kB / 0.7253 GB, free: 2.809 MB / 0.6042 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001122/0.7197, allocations: 490.7 kB / 0.7258 GB, free: 2.324 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.7197, allocations: 4 kB / 0.7258 GB, free: 2.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.7198, allocations: 4 kB / 0.7258 GB, free: 2.316 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.062e-05/0.7198, allocations: 8 kB / 0.7258 GB, free: 2.309 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003759/0.7202, allocations: 71.77 kB / 0.7258 GB, free: 2.238 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.823e-05/0.7202, allocations: 7.938 kB / 0.7258 GB, free: 2.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003543/0.7206, allocations: 51.95 kB / 0.7259 GB, free: 2.18 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-05/0.7207, allocations: 23.98 kB / 0.7259 GB, free: 2.156 MB / 0.6042 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.0002272/0.7209, allocations: 170.7 kB / 0.7261 GB, free: 1.984 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.103e-05/0.721, allocations: 23.72 kB / 0.7261 GB, free: 1.961 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001053/0.7221, allocations: 419.2 kB / 0.7265 GB, free: 1.547 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.7221, allocations: 4 kB / 0.7265 GB, free: 1.543 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.697e-06/0.7221, allocations: 4 kB / 0.7265 GB, free: 1.539 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.7222, allocations: 3.984 kB / 0.7265 GB, free: 1.535 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002262/0.7244, allocations: 1.042 MB / 0.7275 GB, free: 448 kB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/0.7245, allocations: 11.98 kB / 0.7275 GB, free: 436 kB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002439/0.7248, allocations: 27.92 kB / 0.7276 GB, free: 408 kB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.239e-05/0.7248, allocations: 4 kB / 0.7276 GB, free: 404 kB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.525e-05/0.7248, allocations: 15.98 kB / 0.7276 GB, free: 388 kB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.488e-06/0.7249, allocations: 0 / 0.7276 GB, free: 388 kB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.7249, allocations: 0 / 0.7276 GB, free: 388 kB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009383/0.7258, allocations: 479.8 kB / 0.7281 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.742e-05/0.7259, allocations: 104.7 kB / 0.7282 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.526e-05/0.726, allocations: 15.94 kB / 0.7282 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002806/0.7263, allocations: 27.97 kB / 0.7282 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/0.7265, allocations: 64.34 kB / 0.7283 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.753e-05/0.7266, allocations: 16 kB / 0.7283 GB, free: 15.65 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001774/0.7268, allocations: 139.3 kB / 0.7284 GB, free: 15.51 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.85e-07/0.7268, allocations: 0 / 0.7284 GB, free: 15.51 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0006291/0.7274, allocations: 99.94 kB / 0.7285 GB, free: 15.41 MB / 0.6198 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.0002889/0.7277, allocations: 146 kB / 0.7286 GB, free: 15.26 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001014/0.7288, allocations: 422.5 kB / 0.729 GB, free: 14.85 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.454e-06/0.7288, allocations: 8 kB / 0.729 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000451/0.7293, allocations: 202.5 kB / 0.7292 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004041/0.7297, allocations: 31.98 kB / 0.7293 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.7312, allocations: 0.5422 MB / 0.7298 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005774/0.7318, allocations: 0.8312 MB / 0.7306 GB, free: 13.19 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.000368/0.7322, allocations: 67.23 kB / 0.7307 GB, free: 13.13 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.7324, allocations: 39.42 kB / 0.7307 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of SimCode: time 2.059e-06/0.7324, allocations: 0 / 0.7307 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of Templates: time 0.0126/0.745, allocations: 3.728 MB / 0.7344 GB, free: 9.379 MB / 0.6198 GB