Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadModel(Buildings): time 3.876/3.876, allocations: 432.8 MB / 444.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.043e-05/3.055e-05, allocations: 7.719 kB / 0.5337 GB, free: 12.25 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1729, allocations: 98.71 MB / 0.6301 GB, free: 6.211 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2202/0.3931, allocations: 144.7 MB / 0.7714 GB, free: 5.312 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003081/0.3935, allocations: 91.94 kB / 0.7715 GB, free: 5.223 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.545/0.9385, allocations: 29.03 MB / 0.7999 GB, free: 137 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.21e-06/0.9385, allocations: 0 / 0.7999 GB, free: 137 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.354e-05/0.9386, allocations: 14.75 kB / 0.7999 GB, free: 137 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.001872/0.9405, allocations: 0.8112 MB / 0.8007 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.9405, allocations: 9.125 kB / 0.8007 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001454/0.942, allocations: 155.2 kB / 0.8008 GB, free: 136.2 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000909/0.9429, allocations: 437.4 kB / 0.8012 GB, free: 135.9 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.652e-05/0.943, allocations: 39.62 kB / 0.8013 GB, free: 135.9 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/0.9432, allocations: 48.94 kB / 0.8013 GB, free: 135.8 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.9446, allocations: 0.6481 MB / 0.802 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.443e-05/0.9446, allocations: 11.84 kB / 0.802 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.984e-05/0.9447, allocations: 23.8 kB / 0.802 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.66e-05/0.9448, allocations: 44.05 kB / 0.802 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001171/0.946, allocations: 0.5198 MB / 0.8025 GB, free: 135.2 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004268/0.9503, allocations: 2.835 MB / 0.8053 GB, free: 132.6 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001197/0.9516, allocations: 0.5487 MB / 0.8058 GB, free: 132.3 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004765/0.9521, allocations: 245.6 kB / 0.8061 GB, free: 132.2 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004033/0.9525, allocations: 0.5617 MB / 0.8066 GB, free: 131.6 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007449/0.9533, allocations: 387.9 kB / 0.807 GB, free: 131.3 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 3.82e-06/0.9533, allocations: 0 / 0.807 GB, free: 131.3 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.00121/0.9545, allocations: 0.515 MB / 0.8075 GB, free: 131 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.811e-05/0.9546, allocations: 85.39 kB / 0.8076 GB, free: 130.9 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004305/0.955, allocations: 292.2 kB / 0.8079 GB, free: 130.8 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.267e-05/0.9551, allocations: 41.67 kB / 0.8079 GB, free: 130.7 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002083/0.9553, allocations: 279.9 kB / 0.8082 GB, free: 130.5 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001538/0.9555, allocations: 166.8 kB / 0.8083 GB, free: 130.3 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.524e-05/0.9556, allocations: 13.41 kB / 0.8083 GB, free: 130.3 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 9.038e-05/0.9557, allocations: 350.8 kB / 0.8087 GB, free: 130 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004952/0.9562, allocations: 225.1 kB / 0.8089 GB, free: 129.8 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005652/0.9568, allocations: 333.3 kB / 0.8092 GB, free: 129.4 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005396/0.9573, allocations: 270.2 kB / 0.8095 GB, free: 129.1 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.157e-06/0.9573, allocations: 3.953 kB / 0.8095 GB, free: 129.1 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00142/0.9588, allocations: 0.6546 MB / 0.8101 GB, free: 128.4 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002593/0.9591, allocations: 1.076 MB / 0.8112 GB, free: 127.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.9591, allocations: 192 / 0.8112 GB, free: 127.3 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.9591, allocations: 12 kB / 0.8112 GB, free: 127.3 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007244/0.9599, allocations: 115.8 kB / 0.8113 GB, free: 127.1 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.654e-05/0.9599, allocations: 11.94 kB / 0.8113 GB, free: 127.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006527/0.9606, allocations: 67.62 kB / 0.8114 GB, free: 127.1 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.032e-05/0.9606, allocations: 20 kB / 0.8114 GB, free: 127.1 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.9607, allocations: 4 kB / 0.8114 GB, free: 127 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00112/0.9618, allocations: 0.5367 MB / 0.8119 GB, free: 126.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.527e-06/0.9618, allocations: 4 kB / 0.8119 GB, free: 126.5 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.9618, allocations: 7.953 kB / 0.8119 GB, free: 126.5 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005724/0.9624, allocations: 107.8 kB / 0.812 GB, free: 126.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.9625, allocations: 4 kB / 0.812 GB, free: 126.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005779/0.963, allocations: 67.89 kB / 0.8121 GB, free: 126.3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.405e-05/0.9631, allocations: 27.98 kB / 0.8121 GB, free: 126.3 MB / 0.6511 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.000193/0.9633, allocations: 143 kB / 0.8123 GB, free: 126.1 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.9635, allocations: 43.44 kB / 0.8123 GB, free: 126.1 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001193/0.9647, allocations: 0.5711 MB / 0.8128 GB, free: 125.5 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-06/0.9647, allocations: 7.953 kB / 0.8129 GB, free: 125.5 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.834e-06/0.9647, allocations: 4 kB / 0.8129 GB, free: 125.5 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.425e-06/0.9647, allocations: 3.938 kB / 0.8129 GB, free: 125.5 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00088/0.9656, allocations: 0.6302 MB / 0.8135 GB, free: 124.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.298e-06/0.9656, allocations: 0 / 0.8135 GB, free: 124.8 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006709/0.9663, allocations: 91.86 kB / 0.8136 GB, free: 124.7 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.367e-06/0.9664, allocations: 0 / 0.8136 GB, free: 124.7 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.213e-05/0.9664, allocations: 15.98 kB / 0.8136 GB, free: 124.7 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.409e-06/0.9664, allocations: 4.188 kB / 0.8136 GB, free: 124.7 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.033e-06/0.9664, allocations: 7.953 kB / 0.8136 GB, free: 124.7 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001592/0.968, allocations: 0.8736 MB / 0.8144 GB, free: 123.8 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003033/0.9684, allocations: 176.5 kB / 0.8146 GB, free: 123.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/0.9685, allocations: 16 kB / 0.8146 GB, free: 123.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004433/0.9689, allocations: 35.91 kB / 0.8147 GB, free: 123.6 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.9691, allocations: 56.36 kB / 0.8147 GB, free: 123.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.6e-05/0.9692, allocations: 19.98 kB / 0.8147 GB, free: 123.5 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003223/0.9695, allocations: 234.2 kB / 0.815 GB, free: 123.3 MB / 0.6511 GB Notification: Performance of sort global known variables: time 7.52e-07/0.9696, allocations: 0 / 0.815 GB, free: 123.3 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0009768/0.9705, allocations: 287 kB / 0.8152 GB, free: 123 MB / 0.6511 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.0002443/0.9708, allocations: 151 kB / 0.8154 GB, free: 122.8 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001686/0.9725, allocations: 0.9285 MB / 0.8163 GB, free: 121.9 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.281e-06/0.9725, allocations: 0 / 0.8163 GB, free: 121.9 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000512/0.9731, allocations: 261.5 kB / 0.8165 GB, free: 121.6 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009342/0.974, allocations: 148 kB / 0.8167 GB, free: 121.5 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.976, allocations: 0.8136 MB / 0.8175 GB, free: 120.6 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003885/0.9764, allocations: 0.9074 MB / 0.8184 GB, free: 119.7 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0008568/0.9773, allocations: 160.3 kB / 0.8185 GB, free: 119.5 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001966/0.9775, allocations: 51.42 kB / 0.8186 GB, free: 119.5 MB / 0.6511 GB Notification: Performance of SimCode: time 1.696e-06/0.9775, allocations: 0 / 0.8186 GB, free: 119.5 MB / 0.6511 GB Notification: Performance of Templates: time 0.0188/0.9963, allocations: 8.204 MB / 0.8266 GB, free: 111.4 MB / 0.6511 GB