Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadModel(Buildings): time 4.086/4.086, allocations: 464.6 MB / 476.8 MB, free: 2.188 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.496e-05/3.505e-05, allocations: 4 kB / 0.5731 GB, free: 5.711 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.202, allocations: 107.2 MB / 0.6778 GB, free: 10.35 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7794/0.9815, allocations: 150.6 MB / 0.8249 GB, free: 12.43 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/0.9818, allocations: 99.09 kB / 0.825 GB, free: 12.41 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.09917/1.081, allocations: 27.16 MB / 0.8515 GB, free: 12.88 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.389e-06/1.081, allocations: 4 kB / 0.8515 GB, free: 12.88 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.329e-05/1.081, allocations: 8 kB / 0.8515 GB, free: 12.87 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.002142/1.083, allocations: 0.821 MB / 0.8523 GB, free: 12.03 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/1.083, allocations: 8.031 kB / 0.8523 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001352/1.085, allocations: 147 kB / 0.8524 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001018/1.086, allocations: 448.3 kB / 0.8529 GB, free: 11.48 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.056e-05/1.086, allocations: 35.06 kB / 0.8529 GB, free: 11.46 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/1.086, allocations: 54.27 kB / 0.853 GB, free: 11.42 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/1.087, allocations: 0.64 MB / 0.8536 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.493e-05/1.088, allocations: 4 kB / 0.8536 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.602e-05/1.088, allocations: 29.39 kB / 0.8536 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-05/1.088, allocations: 43.42 kB / 0.8537 GB, free: 10.9 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001254/1.089, allocations: 0.5082 MB / 0.8542 GB, free: 10.56 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005113/1.094, allocations: 2.837 MB / 0.8569 GB, free: 7.961 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/1.095, allocations: 0.5452 MB / 0.8575 GB, free: 7.574 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005049/1.096, allocations: 242.8 kB / 0.8577 GB, free: 7.418 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006374/1.097, allocations: 0.5683 MB / 0.8582 GB, free: 6.727 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000833/1.097, allocations: 387.7 kB / 0.8586 GB, free: 6.43 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 4.596e-06/1.098, allocations: 3.938 kB / 0.8586 GB, free: 6.426 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.001293/1.099, allocations: 0.5154 MB / 0.8591 GB, free: 6.043 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.733e-05/1.099, allocations: 88.61 kB / 0.8592 GB, free: 5.938 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005062/1.099, allocations: 291.3 kB / 0.8595 GB, free: 5.695 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001008/1.1, allocations: 40.58 kB / 0.8595 GB, free: 5.66 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002783/1.1, allocations: 280.3 kB / 0.8598 GB, free: 5.445 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002019/1.1, allocations: 161.3 kB / 0.8599 GB, free: 5.316 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.739e-05/1.1, allocations: 10.44 kB / 0.86 GB, free: 5.312 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002098/1.1, allocations: 355 kB / 0.8603 GB, free: 4.977 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005126/1.101, allocations: 219.6 kB / 0.8605 GB, free: 4.848 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006503/1.102, allocations: 342.6 kB / 0.8608 GB, free: 4.566 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005973/1.102, allocations: 268.6 kB / 0.8611 GB, free: 4.383 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.722e-06/1.102, allocations: 4 kB / 0.8611 GB, free: 4.379 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00153/1.104, allocations: 0.6511 MB / 0.8617 GB, free: 3.898 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006294/1.104, allocations: 1.08 MB / 0.8628 GB, free: 2.75 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/1.104, allocations: 4 kB / 0.8628 GB, free: 2.746 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.558e-05/1.104, allocations: 4 kB / 0.8628 GB, free: 2.742 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008215/1.105, allocations: 114.8 kB / 0.8629 GB, free: 2.633 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.747e-05/1.105, allocations: 8 kB / 0.8629 GB, free: 2.625 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007199/1.106, allocations: 70.19 kB / 0.863 GB, free: 2.566 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.753e-05/1.106, allocations: 19.94 kB / 0.863 GB, free: 2.551 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/1.106, allocations: 4 kB / 0.863 GB, free: 2.547 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001323/1.108, allocations: 0.5458 MB / 0.8635 GB, free: 2.16 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/1.108, allocations: 4 kB / 0.8635 GB, free: 2.156 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/1.108, allocations: 4 kB / 0.8635 GB, free: 2.152 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006422/1.108, allocations: 110.2 kB / 0.8636 GB, free: 2.051 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/1.108, allocations: 4 kB / 0.8636 GB, free: 2.047 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006702/1.109, allocations: 77.75 kB / 0.8637 GB, free: 1.98 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.375e-05/1.109, allocations: 23.48 kB / 0.8637 GB, free: 1.961 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.0002583/1.109, allocations: 146.5 kB / 0.8639 GB, free: 1.832 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001493/1.109, allocations: 51.45 kB / 0.8639 GB, free: 1.781 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001353/1.111, allocations: 0.5603 MB / 0.8645 GB, free: 1.402 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/1.111, allocations: 4 kB / 0.8645 GB, free: 1.398 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.489e-06/1.111, allocations: 0 / 0.8645 GB, free: 1.398 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.381e-05/1.111, allocations: 11.95 kB / 0.8645 GB, free: 1.387 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001115/1.112, allocations: 0.6185 MB / 0.8651 GB, free: 0.8867 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.725e-06/1.112, allocations: 0 / 0.8651 GB, free: 0.8867 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007138/1.113, allocations: 99.23 kB / 0.8652 GB, free: 0.793 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.1e-06/1.113, allocations: 0 / 0.8652 GB, free: 0.793 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.522e-05/1.113, allocations: 14.73 kB / 0.8652 GB, free: 0.7852 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.149e-05/1.113, allocations: 4 kB / 0.8652 GB, free: 0.7812 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.603e-06/1.113, allocations: 0 / 0.8652 GB, free: 0.7812 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001876/1.115, allocations: 0.87 MB / 0.8661 GB, free: 168 kB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004195/1.115, allocations: 182.9 kB / 0.8662 GB, free: 15.99 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001131/1.115, allocations: 11.06 kB / 0.8662 GB, free: 15.99 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004818/1.116, allocations: 39.52 kB / 0.8663 GB, free: 15.96 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001918/1.116, allocations: 54.31 kB / 0.8663 GB, free: 15.91 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.191e-05/1.116, allocations: 23.81 kB / 0.8664 GB, free: 15.89 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0003985/1.117, allocations: 240.2 kB / 0.8666 GB, free: 15.71 MB / 0.6667 GB Notification: Performance of sort global known variables: time 9.84e-07/1.117, allocations: 0 / 0.8666 GB, free: 15.71 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001163/1.118, allocations: 278.8 kB / 0.8668 GB, free: 15.46 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.0003261/1.118, allocations: 154.9 kB / 0.867 GB, free: 15.32 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001975/1.12, allocations: 0.9257 MB / 0.8679 GB, free: 14.64 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 5.602e-06/1.12, allocations: 0 / 0.8679 GB, free: 14.64 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0005957/1.121, allocations: 259.8 kB / 0.8681 GB, free: 14.46 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/1.122, allocations: 146.1 kB / 0.8683 GB, free: 14.35 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0021/1.124, allocations: 0.8085 MB / 0.8691 GB, free: 13.64 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007015/1.125, allocations: 0.9037 MB / 0.87 GB, free: 12.73 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0009793/1.126, allocations: 160.4 kB / 0.8701 GB, free: 12.57 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002113/1.126, allocations: 47.12 kB / 0.8702 GB, free: 12.53 MB / 0.6667 GB Notification: Performance of SimCode: time 1.77e-06/1.126, allocations: 0 / 0.8702 GB, free: 12.53 MB / 0.6667 GB Notification: Performance of Templates: time 0.02268/1.149, allocations: 8.216 MB / 0.8782 GB, free: 4.418 MB / 0.6667 GB