Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadModel(Buildings): time 3.986/3.986, allocations: 432.8 MB / 444.9 MB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.818e-05/3.844e-05, allocations: 8.219 kB / 0.5337 GB, free: 12.29 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1732/0.1733, allocations: 98.71 MB / 0.6301 GB, free: 6.234 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2184/0.3917, allocations: 143.2 MB / 0.77 GB, free: 6.793 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003065/0.3921, allocations: 91.94 kB / 0.7701 GB, free: 6.703 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.5753/0.9673, allocations: 27.12 MB / 0.7966 GB, free: 138.6 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.207e-06/0.9674, allocations: 0 / 0.7966 GB, free: 138.6 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.334e-05/0.9675, allocations: 15.19 kB / 0.7966 GB, free: 138.6 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.001727/0.9692, allocations: 0.8201 MB / 0.7974 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.9692, allocations: 9.531 kB / 0.7974 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001219/0.9705, allocations: 151.9 kB / 0.7975 GB, free: 137.8 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008027/0.9713, allocations: 441.8 kB / 0.798 GB, free: 137.5 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.668e-05/0.9714, allocations: 34.09 kB / 0.798 GB, free: 137.4 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.9715, allocations: 57.91 kB / 0.798 GB, free: 137.4 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.9729, allocations: 0.6417 MB / 0.7987 GB, free: 137 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.25e-05/0.973, allocations: 5.25 kB / 0.7987 GB, free: 137 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.234e-05/0.9731, allocations: 22.11 kB / 0.7987 GB, free: 137 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.816e-05/0.9731, allocations: 41.94 kB / 0.7987 GB, free: 137 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/0.9743, allocations: 0.525 MB / 0.7992 GB, free: 136.8 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003823/0.9782, allocations: 2.834 MB / 0.802 GB, free: 134.2 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.9792, allocations: 0.542 MB / 0.8025 GB, free: 133.9 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004211/0.9797, allocations: 252.9 kB / 0.8028 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003636/0.9801, allocations: 0.5643 MB / 0.8033 GB, free: 133.1 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007239/0.9808, allocations: 386.1 kB / 0.8037 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 4.205e-06/0.9808, allocations: 3.281 kB / 0.8037 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.001114/0.982, allocations: 0.5097 MB / 0.8042 GB, free: 132.6 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.982, allocations: 88.34 kB / 0.8043 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003999/0.9824, allocations: 298.6 kB / 0.8046 GB, free: 132.3 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 7.4e-05/0.9825, allocations: 37.14 kB / 0.8046 GB, free: 132.3 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001876/0.9827, allocations: 275 kB / 0.8049 GB, free: 132.1 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.9829, allocations: 168 kB / 0.805 GB, free: 131.9 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.309e-05/0.9829, allocations: 11.88 kB / 0.805 GB, free: 131.9 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 9.136e-05/0.9831, allocations: 350.4 kB / 0.8054 GB, free: 131.6 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004396/0.9835, allocations: 224.5 kB / 0.8056 GB, free: 131.5 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005242/0.984, allocations: 334.8 kB / 0.8059 GB, free: 131.2 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004907/0.9845, allocations: 270.6 kB / 0.8062 GB, free: 131.1 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.874e-06/0.9846, allocations: 3.953 kB / 0.8062 GB, free: 131.1 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001282/0.9859, allocations: 0.6606 MB / 0.8068 GB, free: 130.7 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002371/0.9861, allocations: 1.076 MB / 0.8079 GB, free: 129.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.9861, allocations: 3.906 kB / 0.8079 GB, free: 129.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.9862, allocations: 11.89 kB / 0.8079 GB, free: 129.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007052/0.9869, allocations: 113.3 kB / 0.808 GB, free: 129.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.414e-05/0.9869, allocations: 11.75 kB / 0.808 GB, free: 129.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000629/0.9876, allocations: 66.94 kB / 0.8081 GB, free: 129.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.631e-05/0.9876, allocations: 19.56 kB / 0.8081 GB, free: 129.5 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.9877, allocations: 4.594 kB / 0.8081 GB, free: 129.5 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001092/0.9888, allocations: 0.5412 MB / 0.8086 GB, free: 129.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.588e-06/0.9888, allocations: 3.812 kB / 0.8086 GB, free: 129.2 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.9888, allocations: 11.67 kB / 0.8086 GB, free: 129.2 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005468/0.9894, allocations: 103.8 kB / 0.8087 GB, free: 129.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.9894, allocations: 3.969 kB / 0.8087 GB, free: 129.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005602/0.99, allocations: 75.73 kB / 0.8088 GB, free: 129.1 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.993e-05/0.9901, allocations: 23.73 kB / 0.8088 GB, free: 129.1 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.0001706/0.9902, allocations: 138.7 kB / 0.809 GB, free: 129 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.9904, allocations: 47 kB / 0.809 GB, free: 129 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001132/0.9915, allocations: 0.5677 MB / 0.8096 GB, free: 128.6 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.84e-06/0.9915, allocations: 19.09 kB / 0.8096 GB, free: 128.6 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.083e-06/0.9915, allocations: 4 kB / 0.8096 GB, free: 128.6 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.971e-06/0.9916, allocations: 0 / 0.8096 GB, free: 128.6 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008332/0.9924, allocations: 0.6274 MB / 0.8102 GB, free: 128.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.027e-06/0.9924, allocations: 4 kB / 0.8102 GB, free: 128.1 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006705/0.9931, allocations: 91.86 kB / 0.8103 GB, free: 128 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.978e-06/0.9931, allocations: 4 kB / 0.8103 GB, free: 128 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.792e-05/0.9932, allocations: 11.98 kB / 0.8103 GB, free: 127.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.882e-06/0.9932, allocations: 0 / 0.8103 GB, free: 127.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.187e-06/0.9932, allocations: 3.953 kB / 0.8103 GB, free: 127.9 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/0.9947, allocations: 0.8658 MB / 0.8112 GB, free: 127.1 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002721/0.995, allocations: 180.5 kB / 0.8113 GB, free: 126.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.971e-05/0.9951, allocations: 12 kB / 0.8113 GB, free: 126.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004412/0.9956, allocations: 47.84 kB / 0.8114 GB, free: 126.8 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.9958, allocations: 52.36 kB / 0.8114 GB, free: 126.7 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.138e-05/0.9958, allocations: 12 kB / 0.8114 GB, free: 126.7 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003006/0.9961, allocations: 250 kB / 0.8117 GB, free: 126.5 MB / 0.6511 GB Notification: Performance of sort global known variables: time 7.56e-07/0.9962, allocations: 0 / 0.8117 GB, free: 126.5 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0009665/0.9971, allocations: 283.1 kB / 0.812 GB, free: 126.2 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.0002372/0.9974, allocations: 147.1 kB / 0.8121 GB, free: 126.1 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001596/0.999, allocations: 0.9324 MB / 0.813 GB, free: 125.1 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.96e-06/0.999, allocations: 0 / 0.813 GB, free: 125.1 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0004827/0.9995, allocations: 261.5 kB / 0.8133 GB, free: 124.8 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008863/1, allocations: 148 kB / 0.8134 GB, free: 124.7 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001835/1.002, allocations: 0.8114 MB / 0.8142 GB, free: 123.9 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003882/1.003, allocations: 0.9036 MB / 0.8151 GB, free: 122.9 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0008214/1.004, allocations: 168.4 kB / 0.8152 GB, free: 122.8 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001913/1.004, allocations: 39.42 kB / 0.8153 GB, free: 122.7 MB / 0.6511 GB Notification: Performance of SimCode: time 1.881e-06/1.004, allocations: 0 / 0.8153 GB, free: 122.7 MB / 0.6511 GB Notification: Performance of Templates: time 0.0185/1.022, allocations: 8.22 MB / 0.8233 GB, free: 114.6 MB / 0.6511 GB