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.56/3.56, allocations: 403.9 MB / 411 MB, free: 332 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.228e-05/2.236e-05, allocations: 4 kB / 0.4942 GB, free: 1.387 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4833/0.4833, allocations: 92.69 MB / 0.5847 GB, free: 2.406 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1822/0.6656, allocations: 123.6 MB / 0.7054 GB, free: 6.68 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003029/0.6659, allocations: 95.92 kB / 0.7054 GB, free: 6.586 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.03144/0.6974, allocations: 7.952 MB / 0.7132 GB, free: 14.58 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.09e-06/0.6974, allocations: 0 / 0.7132 GB, free: 14.58 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.207e-05/0.6975, allocations: 12 kB / 0.7132 GB, free: 14.57 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.001267/0.6988, allocations: 0.6109 MB / 0.7138 GB, free: 13.91 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.6988, allocations: 8.031 kB / 0.7138 GB, free: 13.91 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/0.699, allocations: 51.44 kB / 0.7139 GB, free: 13.86 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005853/0.6996, allocations: 331.1 kB / 0.7142 GB, free: 13.49 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.106e-05/0.6997, allocations: 20 kB / 0.7142 GB, free: 13.47 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.982e-05/0.6998, allocations: 32 kB / 0.7142 GB, free: 13.44 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009908/0.7008, allocations: 366.5 kB / 0.7146 GB, free: 13.08 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.7019, allocations: 497.2 kB / 0.7151 GB, free: 12.56 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.173e-05/0.7019, allocations: 352 / 0.7151 GB, free: 12.56 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.536e-05/0.702, allocations: 7.953 kB / 0.7151 GB, free: 12.55 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.61e-05/0.702, allocations: 21.25 kB / 0.7151 GB, free: 12.53 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003248/0.7053, allocations: 1.786 MB / 0.7168 GB, free: 10.68 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007314/0.7061, allocations: 323.5 kB / 0.7171 GB, free: 10.35 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003512/0.7065, allocations: 164.8 kB / 0.7173 GB, free: 10.19 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 5.723e-05/0.7066, allocations: 4 kB / 0.7173 GB, free: 10.18 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004526/0.707, allocations: 206.4 kB / 0.7175 GB, free: 9.969 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 5.235e-06/0.707, allocations: 0 / 0.7175 GB, free: 9.969 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.0008777/0.7079, allocations: 309.9 kB / 0.7178 GB, free: 9.66 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.708, allocations: 59.39 kB / 0.7179 GB, free: 9.59 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003091/0.7083, allocations: 216.8 kB / 0.7181 GB, free: 9.371 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 7.823e-05/0.7084, allocations: 37.69 kB / 0.7181 GB, free: 9.328 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002047/0.7086, allocations: 216.7 kB / 0.7183 GB, free: 9.109 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.7088, allocations: 98.67 kB / 0.7184 GB, free: 9.012 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.646e-05/0.7088, allocations: 4 kB / 0.7184 GB, free: 9.008 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001771/0.709, allocations: 342.8 kB / 0.7187 GB, free: 8.664 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003544/0.7094, allocations: 141.5 kB / 0.7189 GB, free: 8.527 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000442/0.7098, allocations: 260.5 kB / 0.7191 GB, free: 8.223 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004177/0.7103, allocations: 150.8 kB / 0.7193 GB, free: 8.078 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8e-06/0.7103, allocations: 3.953 kB / 0.7193 GB, free: 8.074 MB / 0.6042 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001074/0.7114, allocations: 442.7 kB / 0.7197 GB, free: 7.637 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.7114, allocations: 10.12 kB / 0.7197 GB, free: 7.629 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.7114, allocations: 4 kB / 0.7197 GB, free: 7.625 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.834e-05/0.7115, allocations: 8 kB / 0.7197 GB, free: 7.617 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003757/0.7119, allocations: 67.77 kB / 0.7198 GB, free: 7.551 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.7119, allocations: 8 kB / 0.7198 GB, free: 7.543 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003476/0.7123, allocations: 36.02 kB / 0.7198 GB, free: 7.508 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.774e-05/0.7124, allocations: 27.98 kB / 0.7198 GB, free: 7.48 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.0002101/0.7126, allocations: 154 kB / 0.72 GB, free: 7.324 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.609e-05/0.7127, allocations: 27.67 kB / 0.72 GB, free: 7.297 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00107/0.7137, allocations: 379.8 kB / 0.7204 GB, free: 6.926 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.7138, allocations: 4 kB / 0.7204 GB, free: 6.922 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.584e-06/0.7138, allocations: 0 / 0.7204 GB, free: 6.922 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.7138, allocations: 3.984 kB / 0.7204 GB, free: 6.918 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002157/0.716, allocations: 0.9411 MB / 0.7213 GB, free: 5.934 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.485e-06/0.716, allocations: 0 / 0.7213 GB, free: 5.934 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002589/0.7163, allocations: 39.91 kB / 0.7213 GB, free: 5.895 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-05/0.7163, allocations: 4 kB / 0.7213 GB, free: 5.891 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.275e-05/0.7164, allocations: 0 / 0.7213 GB, free: 5.891 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.821e-06/0.7164, allocations: 4 kB / 0.7213 GB, free: 5.887 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.084e-06/0.7164, allocations: 4 kB / 0.7213 GB, free: 5.883 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009692/0.7174, allocations: 459.7 kB / 0.7218 GB, free: 5.414 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 8.935e-05/0.7175, allocations: 108.7 kB / 0.7219 GB, free: 5.289 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.816e-05/0.7176, allocations: 4 kB / 0.7219 GB, free: 5.285 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002859/0.7179, allocations: 15.98 kB / 0.7219 GB, free: 5.27 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/0.7181, allocations: 72.28 kB / 0.722 GB, free: 5.199 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.724e-05/0.7182, allocations: 15.98 kB / 0.722 GB, free: 5.184 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001521/0.7183, allocations: 132.3 kB / 0.7221 GB, free: 5.055 MB / 0.6042 GB Notification: Performance of sort global known variables: time 7.05e-07/0.7183, allocations: 4 kB / 0.7221 GB, free: 5.051 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0006094/0.719, allocations: 75.92 kB / 0.7222 GB, free: 4.977 MB / 0.6042 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.0002709/0.7192, allocations: 134 kB / 0.7223 GB, free: 4.84 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0009196/0.7202, allocations: 392.2 kB / 0.7227 GB, free: 4.457 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 7.272e-06/0.7202, allocations: 8.375 kB / 0.7227 GB, free: 4.449 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003969/0.7206, allocations: 193.6 kB / 0.7229 GB, free: 4.262 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004075/0.721, allocations: 23.94 kB / 0.7229 GB, free: 4.238 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.7225, allocations: 0.5131 MB / 0.7234 GB, free: 3.703 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000529/0.723, allocations: 0.8309 MB / 0.7242 GB, free: 2.848 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0003661/0.7234, allocations: 71.23 kB / 0.7243 GB, free: 2.773 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001678/0.7236, allocations: 35.42 kB / 0.7243 GB, free: 2.738 MB / 0.6042 GB Notification: Performance of SimCode: time 1.438e-06/0.7236, allocations: 0 / 0.7243 GB, free: 2.738 MB / 0.6042 GB Notification: Performance of Templates: time 0.0121/0.7357, allocations: 3.601 MB / 0.7278 GB, free: 15.16 MB / 0.6198 GB