Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadModel(Buildings): time 4.395/4.395, allocations: 464.6 MB / 476.8 MB, free: 2.109 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.411e-05/3.424e-05, allocations: 4 kB / 0.5731 GB, free: 5.711 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2405, allocations: 107.2 MB / 0.6778 GB, free: 10.36 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.732/0.9726, allocations: 152.1 MB / 0.8263 GB, free: 12.12 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/0.9729, allocations: 102.1 kB / 0.8264 GB, free: 12.1 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.1036/1.077, allocations: 29.06 MB / 0.8548 GB, free: 10.21 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.351e-06/1.077, allocations: 0 / 0.8548 GB, free: 10.21 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.549e-05/1.077, allocations: 19.94 kB / 0.8548 GB, free: 10.2 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.00195/1.079, allocations: 0.8171 MB / 0.8556 GB, free: 9.363 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/1.079, allocations: 8.031 kB / 0.8556 GB, free: 9.355 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001284/1.08, allocations: 153.9 kB / 0.8557 GB, free: 9.207 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009311/1.081, allocations: 436 kB / 0.8562 GB, free: 8.816 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.757e-05/1.081, allocations: 35.31 kB / 0.8562 GB, free: 8.797 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/1.081, allocations: 62.42 kB / 0.8563 GB, free: 8.754 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/1.083, allocations: 0.6399 MB / 0.8569 GB, free: 8.281 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.168e-05/1.083, allocations: 3.938 kB / 0.8569 GB, free: 8.277 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.017e-05/1.083, allocations: 24.81 kB / 0.8569 GB, free: 8.27 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.064e-05/1.083, allocations: 43.98 kB / 0.8569 GB, free: 8.23 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/1.084, allocations: 0.5157 MB / 0.8575 GB, free: 7.891 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004999/1.089, allocations: 2.835 MB / 0.8602 GB, free: 5.293 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/1.09, allocations: 0.5463 MB / 0.8608 GB, free: 4.906 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005051/1.091, allocations: 244.4 kB / 0.861 GB, free: 4.75 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006148/1.092, allocations: 0.5693 MB / 0.8615 GB, free: 4.059 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008153/1.092, allocations: 380.7 kB / 0.8619 GB, free: 3.766 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 4.021e-06/1.092, allocations: 0 / 0.8619 GB, free: 3.766 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.001324/1.094, allocations: 0.5096 MB / 0.8624 GB, free: 3.391 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.363e-05/1.094, allocations: 89.58 kB / 0.8625 GB, free: 3.281 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005277/1.094, allocations: 294.3 kB / 0.8628 GB, free: 3.039 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001116/1.095, allocations: 44.52 kB / 0.8628 GB, free: 3 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002907/1.095, allocations: 280.5 kB / 0.8631 GB, free: 2.785 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002075/1.095, allocations: 163.6 kB / 0.8632 GB, free: 2.652 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.448e-05/1.095, allocations: 10.19 kB / 0.8632 GB, free: 2.652 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002059/1.095, allocations: 352.8 kB / 0.8636 GB, free: 2.316 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005341/1.096, allocations: 221 kB / 0.8638 GB, free: 2.188 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006303/1.097, allocations: 340.6 kB / 0.8641 GB, free: 1.91 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005777/1.097, allocations: 284.2 kB / 0.8644 GB, free: 1.711 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.448e-06/1.097, allocations: 0 / 0.8644 GB, free: 1.711 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001519/1.099, allocations: 0.6476 MB / 0.865 GB, free: 1.23 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006046/1.099, allocations: 1.072 MB / 0.8661 GB, free: 92 kB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/1.099, allocations: 7.984 kB / 0.8661 GB, free: 84 kB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.519e-05/1.099, allocations: 4 kB / 0.8661 GB, free: 80 kB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007691/1.1, allocations: 118.7 kB / 0.8662 GB, free: 15.97 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.697e-05/1.1, allocations: 8 kB / 0.8662 GB, free: 15.96 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006772/1.101, allocations: 69.88 kB / 0.8663 GB, free: 15.9 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.59e-05/1.101, allocations: 22.88 kB / 0.8663 GB, free: 15.88 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/1.101, allocations: 4 kB / 0.8663 GB, free: 15.88 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001273/1.102, allocations: 0.5444 MB / 0.8668 GB, free: 15.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/1.102, allocations: 0 / 0.8668 GB, free: 15.5 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/1.102, allocations: 8 kB / 0.8668 GB, free: 15.49 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005994/1.103, allocations: 103.7 kB / 0.8669 GB, free: 15.39 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.605e-05/1.103, allocations: 8 kB / 0.8669 GB, free: 15.38 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005947/1.104, allocations: 66.59 kB / 0.867 GB, free: 15.32 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.95e-05/1.104, allocations: 31.05 kB / 0.867 GB, free: 15.3 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition2,$PRE.bat_ideal.cha.underCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.overCharged,$whenCondition3,$PRE.bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.overCharged,$whenCondition4,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,$whenCondition1,$PRE.pow.T_start,pow.T_start,$PRE.pow.count,pow.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * 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.0002426/1.104, allocations: 146.6 kB / 0.8672 GB, free: 15.17 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/1.104, allocations: 47.44 kB / 0.8672 GB, free: 15.12 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001326/1.105, allocations: 0.5635 MB / 0.8678 GB, free: 14.74 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/1.106, allocations: 4 kB / 0.8678 GB, free: 14.73 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/1.106, allocations: 4 kB / 0.8678 GB, free: 14.73 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/1.106, allocations: 7.984 kB / 0.8678 GB, free: 14.72 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/1.107, allocations: 0.6205 MB / 0.8684 GB, free: 14.22 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.463e-06/1.107, allocations: 8 kB / 0.8684 GB, free: 14.21 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000675/1.107, allocations: 91.42 kB / 0.8685 GB, free: 14.13 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-05/1.107, allocations: 4 kB / 0.8685 GB, free: 14.12 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.628e-05/1.107, allocations: 14.92 kB / 0.8685 GB, free: 14.12 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.025e-06/1.108, allocations: 3.984 kB / 0.8685 GB, free: 14.11 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/1.108, allocations: 0 / 0.8685 GB, free: 14.11 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001819/1.109, allocations: 0.8681 MB / 0.8694 GB, free: 13.5 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003825/1.11, allocations: 184.8 kB / 0.8695 GB, free: 13.32 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/1.11, allocations: 14.25 kB / 0.8695 GB, free: 13.32 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004738/1.11, allocations: 38.64 kB / 0.8696 GB, free: 13.29 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/1.111, allocations: 54.38 kB / 0.8696 GB, free: 13.24 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.452e-05/1.111, allocations: 11.62 kB / 0.8696 GB, free: 13.23 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0003977/1.111, allocations: 248.4 kB / 0.8699 GB, free: 13.04 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.012e-06/1.111, allocations: 0 / 0.8699 GB, free: 13.04 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001164/1.112, allocations: 274.3 kB / 0.8701 GB, free: 12.8 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (bat_ideal.cha.SOC,bat_loss_acdc.cha.SOC,bat.cha.SOC) * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,pow.T_start,pow.count,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of discrete states: 7 (pow.count,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0003299/1.113, allocations: 149.4 kB / 0.8703 GB, free: 12.65 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002013/1.115, allocations: 0.9193 MB / 0.8712 GB, free: 11.98 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 6.788e-06/1.115, allocations: 3.375 kB / 0.8712 GB, free: 11.98 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0005932/1.115, allocations: 266.7 kB / 0.8714 GB, free: 11.79 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/1.116, allocations: 146 kB / 0.8716 GB, free: 11.68 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002159/1.119, allocations: 0.8005 MB / 0.8724 GB, free: 10.99 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007029/1.119, allocations: 0.9124 MB / 0.8733 GB, free: 10.07 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0009441/1.12, allocations: 164.4 kB / 0.8734 GB, free: 9.902 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002074/1.12, allocations: 35.44 kB / 0.8734 GB, free: 9.871 MB / 0.6667 GB Notification: Performance of SimCode: time 1.553e-06/1.12, allocations: 0 / 0.8734 GB, free: 9.871 MB / 0.6667 GB Notification: Performance of Templates: time 0.02202/1.142, allocations: 8.208 MB / 0.8815 GB, free: 1.766 MB / 0.6667 GB