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.44/3.44, allocations: 403.3 MB / 415.4 MB, free: 12.98 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.378e-05/3.394e-05, allocations: 7.875 kB / 0.499 GB, free: 13.44 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4969/0.497, allocations: 92.69 MB / 0.5895 GB, free: 14.49 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.21/0.7071, allocations: 140.3 MB / 0.7266 GB, free: 1.965 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003264/0.7074, allocations: 91.94 kB / 0.7267 GB, free: 1.875 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.1113/0.8187, allocations: 28.94 MB / 0.7549 GB, free: 4.652 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.266e-06/0.8188, allocations: 0 / 0.7549 GB, free: 4.652 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.246e-05/0.8188, allocations: 15.94 kB / 0.755 GB, free: 4.637 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.001889/0.8207, allocations: 0.8182 MB / 0.7558 GB, free: 3.762 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.8208, allocations: 8.031 kB / 0.7558 GB, free: 3.754 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001192/0.822, allocations: 151 kB / 0.7559 GB, free: 3.605 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008808/0.8229, allocations: 439.3 kB / 0.7563 GB, free: 3.137 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.922e-05/0.823, allocations: 33 kB / 0.7564 GB, free: 3.105 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001323/0.8231, allocations: 59.97 kB / 0.7564 GB, free: 3.047 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001484/0.8246, allocations: 0.6497 MB / 0.757 GB, free: 2.371 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.8247, allocations: 0 / 0.757 GB, free: 2.371 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.85e-05/0.8248, allocations: 27.98 kB / 0.7571 GB, free: 2.344 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.421e-05/0.8249, allocations: 40.97 kB / 0.7571 GB, free: 2.301 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001268/0.8261, allocations: 0.5348 MB / 0.7576 GB, free: 1.766 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00455/0.8307, allocations: 2.373 MB / 0.76 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001293/0.8321, allocations: 0.5409 MB / 0.7605 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005251/0.8326, allocations: 250.4 kB / 0.7607 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006006/0.8332, allocations: 0.5544 MB / 0.7613 GB, free: 13.78 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008185/0.8341, allocations: 396 kB / 0.7616 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 3.715e-06/0.8341, allocations: 4 kB / 0.7616 GB, free: 13.37 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.001318/0.8354, allocations: 0.5189 MB / 0.7621 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.76e-05/0.8355, allocations: 85.55 kB / 0.7622 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004936/0.836, allocations: 295.5 kB / 0.7625 GB, free: 12.44 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.013e-05/0.8361, allocations: 41.7 kB / 0.7626 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002806/0.8364, allocations: 276.5 kB / 0.7628 GB, free: 12.12 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001905/0.8366, allocations: 157.8 kB / 0.763 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.886e-05/0.8367, allocations: 12 kB / 0.763 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002057/0.8369, allocations: 363.1 kB / 0.7633 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000526/0.8374, allocations: 221 kB / 0.7635 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006478/0.8381, allocations: 342.3 kB / 0.7639 GB, free: 11 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005935/0.8387, allocations: 273.6 kB / 0.7641 GB, free: 10.72 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.048e-06/0.8387, allocations: 4 kB / 0.7641 GB, free: 10.72 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00158/0.8403, allocations: 0.6623 MB / 0.7648 GB, free: 10.04 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.000581/0.8409, allocations: 1.072 MB / 0.7658 GB, free: 8.883 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.841, allocations: 192 / 0.7658 GB, free: 8.883 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.581e-05/0.841, allocations: 12.05 kB / 0.7658 GB, free: 8.871 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007827/0.8418, allocations: 119.8 kB / 0.7659 GB, free: 8.754 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.99e-05/0.8418, allocations: 8 kB / 0.766 GB, free: 8.746 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006697/0.8425, allocations: 75.56 kB / 0.766 GB, free: 8.672 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.325e-05/0.8426, allocations: 20 kB / 0.766 GB, free: 8.652 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.8426, allocations: 4 kB / 0.766 GB, free: 8.648 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001327/0.844, allocations: 0.5522 MB / 0.7666 GB, free: 8.09 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.102e-06/0.844, allocations: 7.922 kB / 0.7666 GB, free: 8.082 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.844, allocations: 8 kB / 0.7666 GB, free: 8.074 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006315/0.8447, allocations: 99.88 kB / 0.7667 GB, free: 7.977 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.863e-05/0.8447, allocations: 11.94 kB / 0.7667 GB, free: 7.965 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000595/0.8453, allocations: 67.94 kB / 0.7668 GB, free: 7.898 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.161e-05/0.8454, allocations: 20 kB / 0.7668 GB, free: 7.879 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.0002498/0.8456, allocations: 143 kB / 0.7669 GB, free: 7.73 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.8458, allocations: 47.44 kB / 0.767 GB, free: 7.684 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001362/0.8471, allocations: 0.5595 MB / 0.7675 GB, free: 7.117 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.8472, allocations: 4 kB / 0.7675 GB, free: 7.113 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.22e-06/0.8472, allocations: 8 kB / 0.7675 GB, free: 7.105 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.8472, allocations: 0 / 0.7675 GB, free: 7.105 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001087/0.8483, allocations: 0.6263 MB / 0.7681 GB, free: 6.43 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.749e-06/0.8483, allocations: 4 kB / 0.7681 GB, free: 6.426 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007296/0.8491, allocations: 95.8 kB / 0.7682 GB, free: 6.332 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-05/0.8491, allocations: 4 kB / 0.7682 GB, free: 6.328 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.785e-05/0.8492, allocations: 11.98 kB / 0.7683 GB, free: 6.316 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.2e-06/0.8492, allocations: 8.078 kB / 0.7683 GB, free: 6.309 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.385e-06/0.8492, allocations: 4 kB / 0.7683 GB, free: 6.305 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001881/0.8511, allocations: 0.868 MB / 0.7691 GB, free: 5.41 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003629/0.8515, allocations: 188.3 kB / 0.7693 GB, free: 5.207 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.8516, allocations: 15.95 kB / 0.7693 GB, free: 5.191 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004841/0.8521, allocations: 39.95 kB / 0.7693 GB, free: 5.152 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001807/0.8523, allocations: 52.36 kB / 0.7694 GB, free: 5.102 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.819e-05/0.8524, allocations: 19.92 kB / 0.7694 GB, free: 5.082 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003863/0.8528, allocations: 238.2 kB / 0.7696 GB, free: 4.855 MB / 0.6511 GB Notification: Performance of sort global known variables: time 7.78e-07/0.8528, allocations: 0 / 0.7696 GB, free: 4.855 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001046/0.8539, allocations: 271.1 kB / 0.7699 GB, free: 4.59 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.0002838/0.8542, allocations: 156.9 kB / 0.7701 GB, free: 4.43 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002019/0.8562, allocations: 0.9363 MB / 0.771 GB, free: 3.469 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.75e-06/0.8562, allocations: 0 / 0.771 GB, free: 3.469 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0006437/0.8569, allocations: 266.4 kB / 0.7712 GB, free: 3.207 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009831/0.8579, allocations: 143.6 kB / 0.7714 GB, free: 3.066 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00204/0.8599, allocations: 0.8208 MB / 0.7722 GB, free: 2.227 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006777/0.8607, allocations: 0.9074 MB / 0.773 GB, free: 1.289 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0009222/0.8616, allocations: 168.3 kB / 0.7732 GB, free: 1.121 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002077/0.8618, allocations: 35.44 kB / 0.7732 GB, free: 1.086 MB / 0.6511 GB Notification: Performance of SimCode: time 1.811e-06/0.8618, allocations: 0 / 0.7732 GB, free: 1.086 MB / 0.6511 GB Notification: Performance of Templates: time 0.4633/1.325, allocations: 8.221 MB / 0.7813 GB, free: 165.5 MB / 0.6511 GB