Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_5.0.1_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadModel(Buildings): time 3.694/3.694, allocations: 403.9 MB / 411 MB, free: 376 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.588e-05/2.594e-05, allocations: 7.938 kB / 0.4942 GB, free: 1.375 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4918/0.4918, allocations: 92.69 MB / 0.5847 GB, free: 2.375 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.206/0.6979, allocations: 139.7 MB / 0.7211 GB, free: 6.512 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003167/0.6982, allocations: 91.94 kB / 0.7212 GB, free: 6.422 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.1088/0.8071, allocations: 28.82 MB / 0.7493 GB, free: 9.32 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.754e-06/0.8071, allocations: 0 / 0.7493 GB, free: 9.32 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.384e-05/0.8072, allocations: 12 kB / 0.7493 GB, free: 9.309 MB / 0.6355 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.001871/0.8091, allocations: 0.8185 MB / 0.7501 GB, free: 8.438 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.8091, allocations: 12.02 kB / 0.7501 GB, free: 8.426 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001224/0.8104, allocations: 155 kB / 0.7503 GB, free: 8.273 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000924/0.8113, allocations: 435.3 kB / 0.7507 GB, free: 7.805 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.028e-05/0.8114, allocations: 16 kB / 0.7507 GB, free: 7.789 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.8115, allocations: 31.94 kB / 0.7507 GB, free: 7.758 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001107/0.8126, allocations: 454.5 kB / 0.7512 GB, free: 7.312 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/0.8139, allocations: 0.5871 MB / 0.7518 GB, free: 6.695 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.404e-05/0.814, allocations: 0 / 0.7518 GB, free: 6.695 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.623e-05/0.8141, allocations: 15.91 kB / 0.7518 GB, free: 6.68 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.002e-05/0.8142, allocations: 41.25 kB / 0.7518 GB, free: 6.637 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004607/0.8188, allocations: 2.268 MB / 0.754 GB, free: 4.266 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.8201, allocations: 0.5177 MB / 0.7545 GB, free: 3.727 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004942/0.8206, allocations: 237.6 kB / 0.7548 GB, free: 3.488 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005766/0.8212, allocations: 0.5668 MB / 0.7553 GB, free: 2.793 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007687/0.822, allocations: 370.9 kB / 0.7557 GB, free: 2.414 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=49): time 3.967e-06/0.822, allocations: 0 / 0.7557 GB, free: 2.414 MB / 0.6355 GB Notification: Performance of matching and sorting (n=49): time 0.001308/0.8233, allocations: 0.4917 MB / 0.7561 GB, free: 1.914 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6e-05/0.8234, allocations: 81.55 kB / 0.7562 GB, free: 1.816 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004523/0.8239, allocations: 286.3 kB / 0.7565 GB, free: 1.535 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 8.874e-05/0.824, allocations: 29.7 kB / 0.7565 GB, free: 1.5 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002706/0.8243, allocations: 280.5 kB / 0.7568 GB, free: 1.219 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001833/0.8245, allocations: 149.8 kB / 0.7569 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.945e-05/0.8245, allocations: 0 / 0.7569 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000186/0.8247, allocations: 350.8 kB / 0.7573 GB, free: 0.7188 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004788/0.8252, allocations: 217 kB / 0.7575 GB, free: 0.5078 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005787/0.8258, allocations: 333.7 kB / 0.7578 GB, free: 140 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006186/0.8264, allocations: 243.8 kB / 0.758 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.8264, allocations: 0 / 0.758 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001467/0.8279, allocations: 0.5945 MB / 0.7586 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005458/0.8285, allocations: 1.072 MB / 0.7596 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/0.8285, allocations: 4 kB / 0.7597 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.869e-05/0.8286, allocations: 4 kB / 0.7597 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007752/0.8293, allocations: 119.8 kB / 0.7598 GB, free: 14.01 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/0.8294, allocations: 8 kB / 0.7598 GB, free: 14 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000674/0.8301, allocations: 63.56 kB / 0.7598 GB, free: 13.94 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.006e-05/0.8302, allocations: 24 kB / 0.7599 GB, free: 13.92 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.8302, allocations: 4 kB / 0.7599 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00123/0.8314, allocations: 472 kB / 0.7603 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.322e-06/0.8315, allocations: 0 / 0.7603 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.8315, allocations: 11.95 kB / 0.7603 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005987/0.8321, allocations: 107.8 kB / 0.7604 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.8321, allocations: 8 kB / 0.7604 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005837/0.8327, allocations: 43.7 kB / 0.7605 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.21e-05/0.8328, allocations: 20 kB / 0.7605 GB, free: 13.27 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.0002472/0.8331, allocations: 144.3 kB / 0.7606 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/0.8332, allocations: 47.44 kB / 0.7607 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00136/0.8346, allocations: 0.5283 MB / 0.7612 GB, free: 12.53 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.8346, allocations: 7.953 kB / 0.7612 GB, free: 12.52 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.711e-06/0.8346, allocations: 4 kB / 0.7612 GB, free: 12.52 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.712e-06/0.8347, allocations: 0 / 0.7612 GB, free: 12.52 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009863/0.8357, allocations: 0.5373 MB / 0.7617 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.341e-06/0.8357, allocations: 4 kB / 0.7617 GB, free: 11.94 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000685/0.8364, allocations: 103.8 kB / 0.7618 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.044e-06/0.8364, allocations: 0 / 0.7618 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.328e-05/0.8365, allocations: 4 kB / 0.7618 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.48e-06/0.8365, allocations: 3.938 kB / 0.7618 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.431e-06/0.8365, allocations: 4 kB / 0.7618 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00183/0.8383, allocations: 0.8345 MB / 0.7627 GB, free: 10.97 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003647/0.8387, allocations: 180.4 kB / 0.7628 GB, free: 10.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.8389, allocations: 7.984 kB / 0.7628 GB, free: 10.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004695/0.8394, allocations: 31.95 kB / 0.7629 GB, free: 10.73 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001773/0.8395, allocations: 56.25 kB / 0.7629 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.385e-05/0.8396, allocations: 16 kB / 0.7629 GB, free: 10.66 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003609/0.84, allocations: 228.6 kB / 0.7632 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.42e-07/0.84, allocations: 0 / 0.7632 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001072/0.8411, allocations: 239.2 kB / 0.7634 GB, free: 10.21 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.0002941/0.8414, allocations: 144.1 kB / 0.7635 GB, free: 10.06 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001893/0.8433, allocations: 0.8932 MB / 0.7644 GB, free: 9.145 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.8433, allocations: 256 / 0.7644 GB, free: 9.145 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005548/0.8439, allocations: 257.5 kB / 0.7646 GB, free: 8.895 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009672/0.8449, allocations: 154.7 kB / 0.7648 GB, free: 8.746 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001939/0.8469, allocations: 0.793 MB / 0.7656 GB, free: 7.922 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006571/0.8476, allocations: 0.9035 MB / 0.7664 GB, free: 6.992 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.000922/0.8485, allocations: 156.3 kB / 0.7666 GB, free: 6.84 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002095/0.8487, allocations: 43.42 kB / 0.7666 GB, free: 6.797 MB / 0.6511 GB Notification: Performance of SimCode: time 1.531e-06/0.8487, allocations: 0 / 0.7666 GB, free: 6.797 MB / 0.6511 GB Notification: Performance of Templates: time 0.4357/1.284, allocations: 7.85 MB / 0.7743 GB, free: 169 MB / 0.6511 GB