Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_5.0.1_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadModel(Buildings): time 3.545/3.545, allocations: 402 MB / 415.9 MB, free: 10.12 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.208e-05/3.223e-05, allocations: 4 kB / 0.5003 GB, free: 8.227 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1658/0.1659, allocations: 92.69 MB / 0.5909 GB, free: 11.37 MB / 0.4948 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.606/0.7719, allocations: 138.9 MB / 0.7265 GB, free: 3.527 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003306/0.7723, allocations: 99.94 kB / 0.7266 GB, free: 3.43 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.1041/0.8765, allocations: 27.27 MB / 0.7532 GB, free: 7.926 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.16e-06/0.8765, allocations: 0 / 0.7532 GB, free: 7.926 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.41e-05/0.8766, allocations: 19.94 kB / 0.7532 GB, free: 7.906 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.001898/0.8785, allocations: 0.8191 MB / 0.754 GB, free: 7.031 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.8785, allocations: 8.031 kB / 0.754 GB, free: 7.023 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001204/0.8798, allocations: 159 kB / 0.7542 GB, free: 6.867 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009139/0.8807, allocations: 444.7 kB / 0.7546 GB, free: 6.391 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.511e-05/0.8808, allocations: 40.98 kB / 0.7547 GB, free: 6.352 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/0.8809, allocations: 48 kB / 0.7547 GB, free: 6.305 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001657/0.8826, allocations: 0.6848 MB / 0.7554 GB, free: 5.59 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.8826, allocations: 0 / 0.7554 GB, free: 5.59 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.67e-05/0.8827, allocations: 20 kB / 0.7554 GB, free: 5.57 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.101e-05/0.8828, allocations: 40.98 kB / 0.7554 GB, free: 5.531 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001583/0.8844, allocations: 0.5854 MB / 0.756 GB, free: 4.945 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004683/0.8891, allocations: 2.373 MB / 0.7583 GB, free: 2.457 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001609/0.8908, allocations: 0.6033 MB / 0.7589 GB, free: 1.832 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006003/0.8914, allocations: 0.5586 MB / 0.7595 GB, free: 1.145 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009736/0.8924, allocations: 412.4 kB / 0.7598 GB, free: 0.7266 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=49): time 3.685e-06/0.8924, allocations: 0 / 0.7598 GB, free: 0.7266 MB / 0.6198 GB Notification: Performance of matching and sorting (n=49): time 0.002202/0.8946, allocations: 0.7719 MB / 0.7606 GB, free: 15.95 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.756e-05/0.8948, allocations: 93.47 kB / 0.7607 GB, free: 15.84 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000525/0.8953, allocations: 300.8 kB / 0.761 GB, free: 15.53 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 9.725e-05/0.8954, allocations: 41.7 kB / 0.761 GB, free: 15.48 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002893/0.8957, allocations: 280.4 kB / 0.7613 GB, free: 15.21 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001983/0.8959, allocations: 153.9 kB / 0.7614 GB, free: 15.06 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.143e-05/0.896, allocations: 16 kB / 0.7614 GB, free: 15.04 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002145/0.8962, allocations: 358.7 kB / 0.7618 GB, free: 14.68 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007064/0.8969, allocations: 241 kB / 0.762 GB, free: 14.45 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008171/0.8978, allocations: 366.3 kB / 0.7624 GB, free: 14.05 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007438/0.8985, allocations: 293.5 kB / 0.7626 GB, free: 13.75 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.8986, allocations: 0 / 0.7626 GB, free: 13.75 MB / 0.6355 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001871/0.9004, allocations: 0.7131 MB / 0.7633 GB, free: 13.03 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006348/0.9011, allocations: 1.079 MB / 0.7644 GB, free: 11.86 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.665e-05/0.9011, allocations: 3.984 kB / 0.7644 GB, free: 11.86 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.7e-05/0.9012, allocations: 8 kB / 0.7644 GB, free: 11.85 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007389/0.9019, allocations: 111.8 kB / 0.7645 GB, free: 11.74 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.828e-05/0.9019, allocations: 11.94 kB / 0.7645 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006699/0.9026, allocations: 71.56 kB / 0.7646 GB, free: 11.66 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.962e-05/0.9027, allocations: 27.98 kB / 0.7646 GB, free: 11.63 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.9027, allocations: 4 kB / 0.7646 GB, free: 11.63 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001608/0.9044, allocations: 0.5875 MB / 0.7652 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.503e-06/0.9044, allocations: 7.891 kB / 0.7652 GB, free: 11.03 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.9044, allocations: 8 kB / 0.7652 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005973/0.905, allocations: 111.8 kB / 0.7653 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.377e-05/0.9051, allocations: 8 kB / 0.7653 GB, free: 10.9 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005886/0.9057, allocations: 59.64 kB / 0.7654 GB, free: 10.84 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.94e-05/0.9057, allocations: 20 kB / 0.7654 GB, free: 10.82 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.0004919/0.9062, allocations: 220.9 kB / 0.7656 GB, free: 10.6 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.9064, allocations: 47.42 kB / 0.7657 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001658/0.908, allocations: 0.6143 MB / 0.7663 GB, free: 9.93 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.237e-05/0.9081, allocations: 8 kB / 0.7663 GB, free: 9.922 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.538e-06/0.9081, allocations: 0 / 0.7663 GB, free: 9.922 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.9081, allocations: 3.984 kB / 0.7663 GB, free: 9.918 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.9092, allocations: 0.634 MB / 0.7669 GB, free: 9.23 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.793e-06/0.9092, allocations: 0 / 0.7669 GB, free: 9.23 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006919/0.9099, allocations: 91.86 kB / 0.767 GB, free: 9.141 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.074e-05/0.91, allocations: 4 kB / 0.767 GB, free: 9.137 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.511e-05/0.91, allocations: 12 kB / 0.767 GB, free: 9.125 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.927e-06/0.9101, allocations: 11.94 kB / 0.767 GB, free: 9.113 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.296e-06/0.9101, allocations: 4 kB / 0.767 GB, free: 9.109 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002332/0.9124, allocations: 0.9321 MB / 0.7679 GB, free: 8.156 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003709/0.9128, allocations: 176.5 kB / 0.7681 GB, free: 7.965 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/0.9129, allocations: 15.95 kB / 0.7681 GB, free: 7.949 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000462/0.9134, allocations: 43.95 kB / 0.7681 GB, free: 7.906 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001799/0.9136, allocations: 48.36 kB / 0.7682 GB, free: 7.855 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.489e-05/0.9137, allocations: 19.98 kB / 0.7682 GB, free: 7.836 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0004062/0.9141, allocations: 243.2 kB / 0.7684 GB, free: 7.602 MB / 0.6355 GB Notification: Performance of sort global known variables: time 9.27e-07/0.9141, allocations: 0 / 0.7684 GB, free: 7.602 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001047/0.9152, allocations: 275.2 kB / 0.7687 GB, free: 7.332 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.000288/0.9155, allocations: 158.9 kB / 0.7689 GB, free: 7.168 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.002434/0.9179, allocations: 1.021 MB / 0.7699 GB, free: 6.121 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.982e-06/0.9179, allocations: 128 / 0.7699 GB, free: 6.121 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0007303/0.9187, allocations: 290.4 kB / 0.7701 GB, free: 5.84 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009831/0.9197, allocations: 147.9 kB / 0.7703 GB, free: 5.699 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002594/0.9223, allocations: 1.274 MB / 0.7715 GB, free: 4.398 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007162/0.9231, allocations: 0.9114 MB / 0.7724 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0008965/0.924, allocations: 160.4 kB / 0.7726 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002073/0.9242, allocations: 47.38 kB / 0.7726 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of SimCode: time 1.568e-06/0.9242, allocations: 0 / 0.7726 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of Templates: time 0.02156/0.9458, allocations: 8.222 MB / 0.7806 GB, free: 11.11 MB / 0.6511 GB