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.593/3.593, allocations: 403.3 MB / 415.4 MB, free: 12.99 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.565e-05/3.576e-05, allocations: 11.88 kB / 0.4991 GB, free: 13.42 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4952/0.4953, allocations: 92.68 MB / 0.5896 GB, free: 14.46 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1877/0.683, allocations: 124.2 MB / 0.7109 GB, free: 2.078 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002801/0.6833, allocations: 91.92 kB / 0.711 GB, free: 1.988 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.0307/0.7141, allocations: 8.092 MB / 0.7189 GB, free: 9.848 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.992e-06/0.7141, allocations: 0 / 0.7189 GB, free: 9.848 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.34e-05/0.7141, allocations: 12 kB / 0.7189 GB, free: 9.836 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.00116/0.7153, allocations: 0.6109 MB / 0.7195 GB, free: 9.176 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.7154, allocations: 8.031 kB / 0.7195 GB, free: 9.168 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.7155, allocations: 63.33 kB / 0.7195 GB, free: 9.105 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005627/0.7161, allocations: 330.7 kB / 0.7199 GB, free: 8.742 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.485e-05/0.7162, allocations: 45 kB / 0.7199 GB, free: 8.699 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.7163, allocations: 55.94 kB / 0.72 GB, free: 8.645 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.7176, allocations: 0.5325 MB / 0.7205 GB, free: 8.082 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.7176, allocations: 4 kB / 0.7205 GB, free: 8.078 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.53e-05/0.7177, allocations: 24 kB / 0.7205 GB, free: 8.055 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.145e-05/0.7178, allocations: 17 kB / 0.7205 GB, free: 8.039 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.7188, allocations: 401.8 kB / 0.7209 GB, free: 7.645 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003278/0.7221, allocations: 1.884 MB / 0.7227 GB, free: 5.684 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008057/0.7229, allocations: 335.5 kB / 0.7231 GB, free: 5.344 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004021/0.7234, allocations: 180.8 kB / 0.7232 GB, free: 5.164 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 6.415e-05/0.7234, allocations: 15.92 kB / 0.7232 GB, free: 5.148 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004812/0.7239, allocations: 210.4 kB / 0.7234 GB, free: 4.93 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 4.266e-06/0.724, allocations: 0 / 0.7234 GB, free: 4.93 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.0008638/0.7248, allocations: 341.9 kB / 0.7238 GB, free: 4.59 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.402e-05/0.7249, allocations: 59.34 kB / 0.7238 GB, free: 4.52 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003182/0.7252, allocations: 217.9 kB / 0.724 GB, free: 4.301 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.277e-05/0.7253, allocations: 49.69 kB / 0.7241 GB, free: 4.246 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001949/0.7255, allocations: 216.7 kB / 0.7243 GB, free: 4.031 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001396/0.7257, allocations: 106.6 kB / 0.7244 GB, free: 3.926 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.732e-05/0.7257, allocations: 16 kB / 0.7244 GB, free: 3.91 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001832/0.7259, allocations: 346.8 kB / 0.7247 GB, free: 3.562 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003871/0.7263, allocations: 149.5 kB / 0.7249 GB, free: 3.414 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005014/0.7268, allocations: 272.5 kB / 0.7251 GB, free: 3.102 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000418/0.7273, allocations: 167.2 kB / 0.7253 GB, free: 2.938 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/0.7273, allocations: 0 / 0.7253 GB, free: 2.938 MB / 0.6042 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001136/0.7284, allocations: 482.8 kB / 0.7258 GB, free: 2.461 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.837e-05/0.7285, allocations: 4 kB / 0.7258 GB, free: 2.457 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.7285, allocations: 7.938 kB / 0.7258 GB, free: 2.449 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.791e-05/0.7285, allocations: 8 kB / 0.7258 GB, free: 2.441 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003453/0.7289, allocations: 63.83 kB / 0.7258 GB, free: 2.379 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.755e-05/0.7289, allocations: 11.94 kB / 0.7259 GB, free: 2.367 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003213/0.7293, allocations: 43.95 kB / 0.7259 GB, free: 2.324 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.257e-05/0.7294, allocations: 31.98 kB / 0.7259 GB, free: 2.293 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.0002161/0.7296, allocations: 166 kB / 0.7261 GB, free: 2.125 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.003e-05/0.7297, allocations: 23.72 kB / 0.7261 GB, free: 2.102 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000999/0.7307, allocations: 423.2 kB / 0.7265 GB, free: 1.688 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.7307, allocations: 4 kB / 0.7265 GB, free: 1.684 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.7307, allocations: 0 / 0.7265 GB, free: 1.684 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.7308, allocations: 3.984 kB / 0.7265 GB, free: 1.68 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002155/0.7329, allocations: 1.038 MB / 0.7275 GB, free: 0.5859 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.759e-06/0.733, allocations: 4 kB / 0.7275 GB, free: 0.582 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002167/0.7332, allocations: 35.92 kB / 0.7276 GB, free: 0.5469 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.128e-05/0.7332, allocations: 4 kB / 0.7276 GB, free: 0.543 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.108e-05/0.7333, allocations: 7.984 kB / 0.7276 GB, free: 0.5352 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.768e-06/0.7333, allocations: 4 kB / 0.7276 GB, free: 0.5312 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.167e-06/0.7333, allocations: 0 / 0.7276 GB, free: 0.5312 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008921/0.7342, allocations: 487.7 kB / 0.728 GB, free: 36 kB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.7343, allocations: 104.7 kB / 0.7281 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.895e-05/0.7344, allocations: 4 kB / 0.7282 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.7347, allocations: 31.97 kB / 0.7282 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002016/0.7349, allocations: 64.34 kB / 0.7282 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-05/0.735, allocations: 19.98 kB / 0.7283 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001636/0.7351, allocations: 139.2 kB / 0.7284 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.34e-07/0.7351, allocations: 0 / 0.7284 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0005995/0.7358, allocations: 95.94 kB / 0.7285 GB, free: 15.57 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.0002614/0.736, allocations: 154 kB / 0.7286 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0009476/0.737, allocations: 408.4 kB / 0.729 GB, free: 15.01 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.04e-06/0.737, allocations: 0 / 0.729 GB, free: 15.01 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004329/0.7375, allocations: 209.8 kB / 0.7292 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003566/0.7378, allocations: 33.48 kB / 0.7293 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.7392, allocations: 0.5302 MB / 0.7298 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005707/0.7398, allocations: 0.8234 MB / 0.7306 GB, free: 13.36 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0003284/0.7402, allocations: 75.23 kB / 0.7307 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000158/0.7404, allocations: 35.42 kB / 0.7307 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of SimCode: time 1.756e-06/0.7404, allocations: 0 / 0.7307 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of Templates: time 0.012/0.7524, allocations: 3.709 MB / 0.7343 GB, free: 9.566 MB / 0.6198 GB