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.597/3.597, allocations: 402.1 MB / 416 MB, free: 10.18 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 4.736e-05/4.77e-05, allocations: 8 kB / 0.5004 GB, free: 8.223 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1954/0.1955, allocations: 92.67 MB / 0.5909 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6591/0.8546, allocations: 140.4 MB / 0.7279 GB, free: 2.051 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003267/0.855, allocations: 99.94 kB / 0.728 GB, free: 1.953 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.1111/0.9662, allocations: 29.18 MB / 0.7565 GB, free: 4.504 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.549e-06/0.9662, allocations: 0 / 0.7565 GB, free: 4.504 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.018e-05/0.9663, allocations: 12 kB / 0.7565 GB, free: 4.492 MB / 0.6198 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.001968/0.9682, allocations: 0.8268 MB / 0.7573 GB, free: 3.609 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.9683, allocations: 12.03 kB / 0.7573 GB, free: 3.598 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001224/0.9695, allocations: 151 kB / 0.7575 GB, free: 3.449 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009205/0.9705, allocations: 436.8 kB / 0.7579 GB, free: 2.98 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.706e-05/0.9706, allocations: 40.98 kB / 0.7579 GB, free: 2.941 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001336/0.9707, allocations: 55.98 kB / 0.758 GB, free: 2.887 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001659/0.9724, allocations: 0.677 MB / 0.7587 GB, free: 2.18 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.913e-05/0.9724, allocations: 0 / 0.7587 GB, free: 2.18 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.975e-05/0.9725, allocations: 23.98 kB / 0.7587 GB, free: 2.156 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.886e-05/0.9726, allocations: 40.97 kB / 0.7587 GB, free: 2.117 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001536/0.9742, allocations: 0.5854 MB / 0.7593 GB, free: 1.531 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004734/0.9789, allocations: 2.374 MB / 0.7616 GB, free: 15.04 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001567/0.9805, allocations: 0.5964 MB / 0.7622 GB, free: 14.43 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000596/0.9812, allocations: 0.5622 MB / 0.7627 GB, free: 13.73 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009733/0.9821, allocations: 421 kB / 0.7631 GB, free: 13.31 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=49): time 3.74e-06/0.9822, allocations: 0 / 0.7631 GB, free: 13.31 MB / 0.6355 GB Notification: Performance of matching and sorting (n=49): time 0.002179/0.9844, allocations: 0.7679 MB / 0.7639 GB, free: 12.54 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.785e-05/0.9845, allocations: 85.53 kB / 0.764 GB, free: 12.43 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005305/0.985, allocations: 300.8 kB / 0.7643 GB, free: 12.13 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.9851, allocations: 49.69 kB / 0.7643 GB, free: 12.07 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002928/0.9854, allocations: 280.8 kB / 0.7646 GB, free: 11.8 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002003/0.9857, allocations: 157.8 kB / 0.7647 GB, free: 11.64 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.585e-05/0.9857, allocations: 8 kB / 0.7647 GB, free: 11.63 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002101/0.9859, allocations: 362.7 kB / 0.7651 GB, free: 11.27 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006793/0.9866, allocations: 241 kB / 0.7653 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007911/0.9874, allocations: 370.6 kB / 0.7657 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007483/0.9882, allocations: 297.6 kB / 0.766 GB, free: 10.33 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.9882, allocations: 0 / 0.766 GB, free: 10.33 MB / 0.6355 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001832/0.9901, allocations: 0.7092 MB / 0.7666 GB, free: 9.609 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006208/0.9907, allocations: 1.082 MB / 0.7677 GB, free: 8.441 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.9908, allocations: 4 kB / 0.7677 GB, free: 8.438 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/0.9908, allocations: 4 kB / 0.7677 GB, free: 8.434 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000747/0.9915, allocations: 115.8 kB / 0.7678 GB, free: 8.32 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.462e-05/0.9916, allocations: 4 kB / 0.7678 GB, free: 8.316 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006958/0.9923, allocations: 79.56 kB / 0.7679 GB, free: 8.238 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.17e-05/0.9924, allocations: 27.98 kB / 0.7679 GB, free: 8.211 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.9924, allocations: 0 / 0.7679 GB, free: 8.211 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001563/0.994, allocations: 0.5833 MB / 0.7685 GB, free: 7.621 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.994, allocations: 7.953 kB / 0.7685 GB, free: 7.613 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.994, allocations: 4 kB / 0.7685 GB, free: 7.609 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005852/0.9946, allocations: 115.7 kB / 0.7686 GB, free: 7.496 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/0.9947, allocations: 7.938 kB / 0.7686 GB, free: 7.488 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005927/0.9953, allocations: 55.7 kB / 0.7687 GB, free: 7.434 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.972e-05/0.9954, allocations: 24.16 kB / 0.7687 GB, free: 7.41 MB / 0.6355 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.0005282/0.9959, allocations: 227.9 kB / 0.7689 GB, free: 7.176 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.996, allocations: 47.44 kB / 0.769 GB, free: 7.129 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001623/0.9977, allocations: 0.6066 MB / 0.7696 GB, free: 6.512 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.9977, allocations: 4.375 kB / 0.7696 GB, free: 6.508 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.33e-06/0.9977, allocations: 0 / 0.7696 GB, free: 6.508 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.9977, allocations: 3.984 kB / 0.7696 GB, free: 6.504 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.9989, allocations: 0.6341 MB / 0.7702 GB, free: 5.816 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.458e-06/0.9989, allocations: 0 / 0.7702 GB, free: 5.816 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006833/0.9996, allocations: 103.7 kB / 0.7703 GB, free: 5.715 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.706e-06/0.9996, allocations: 0 / 0.7703 GB, free: 5.715 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.23e-05/0.9997, allocations: 8 kB / 0.7703 GB, free: 5.707 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.109e-05/0.9997, allocations: 15.94 kB / 0.7703 GB, free: 5.691 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.373e-06/0.9997, allocations: 0 / 0.7703 GB, free: 5.691 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002295/1.002, allocations: 0.9321 MB / 0.7712 GB, free: 4.738 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003889/1.002, allocations: 176.4 kB / 0.7714 GB, free: 4.547 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/1.003, allocations: 15.95 kB / 0.7714 GB, free: 4.531 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000452/1.003, allocations: 39.95 kB / 0.7714 GB, free: 4.492 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001828/1.003, allocations: 52.36 kB / 0.7715 GB, free: 4.438 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.082e-05/1.003, allocations: 23.98 kB / 0.7715 GB, free: 4.414 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0004013/1.004, allocations: 243.1 kB / 0.7717 GB, free: 4.18 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.96e-07/1.004, allocations: 0 / 0.7717 GB, free: 4.18 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001078/1.005, allocations: 275.2 kB / 0.772 GB, free: 3.91 MB / 0.6355 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.0003049/1.005, allocations: 152.5 kB / 0.7721 GB, free: 3.754 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.002457/1.008, allocations: 1.016 MB / 0.7731 GB, free: 2.711 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/1.008, allocations: 8.125 kB / 0.7731 GB, free: 2.703 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0007442/1.008, allocations: 290.3 kB / 0.7734 GB, free: 2.422 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009576/1.009, allocations: 152.5 kB / 0.7736 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002541/1.012, allocations: 1.272 MB / 0.7748 GB, free: 0.9805 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006896/1.013, allocations: 0.9114 MB / 0.7757 GB, free: 40 kB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0009578/1.014, allocations: 164.3 kB / 0.7759 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002084/1.014, allocations: 39.44 kB / 0.7759 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of SimCode: time 1.547e-06/1.014, allocations: 0 / 0.7759 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of Templates: time 0.02181/1.036, allocations: 8.227 MB / 0.7839 GB, free: 7.695 MB / 0.6511 GB