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.549/3.549, allocations: 403.3 MB / 415.4 MB, free: 13 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.442e-05/3.455e-05, allocations: 4 kB / 0.4991 GB, free: 13.43 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4787/0.4788, allocations: 92.69 MB / 0.5896 GB, free: 14.47 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2036/0.6825, allocations: 138.9 MB / 0.7252 GB, free: 3.406 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003031/0.6828, allocations: 91.94 kB / 0.7253 GB, free: 3.316 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.105/0.7878, allocations: 27.04 MB / 0.7517 GB, free: 8.023 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.473e-06/0.7879, allocations: 0 / 0.7517 GB, free: 8.023 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.305e-05/0.7879, allocations: 16 kB / 0.7517 GB, free: 8.008 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.001934/0.7899, allocations: 0.8181 MB / 0.7525 GB, free: 7.133 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.7899, allocations: 8.031 kB / 0.7525 GB, free: 7.125 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00122/0.7912, allocations: 159 kB / 0.7527 GB, free: 6.969 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008915/0.7921, allocations: 431.3 kB / 0.7531 GB, free: 6.508 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.585e-05/0.7922, allocations: 37 kB / 0.7531 GB, free: 6.473 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.7923, allocations: 55.98 kB / 0.7532 GB, free: 6.418 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.7938, allocations: 0.6439 MB / 0.7538 GB, free: 5.746 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.221e-05/0.7939, allocations: 4 kB / 0.7538 GB, free: 5.742 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.525e-05/0.794, allocations: 19.98 kB / 0.7538 GB, free: 5.723 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.472e-05/0.7941, allocations: 52.95 kB / 0.7539 GB, free: 5.672 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00129/0.7954, allocations: 0.525 MB / 0.7544 GB, free: 5.145 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004664/0.8001, allocations: 2.374 MB / 0.7567 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.8014, allocations: 0.5442 MB / 0.7572 GB, free: 2.094 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005332/0.802, allocations: 249.5 kB / 0.7575 GB, free: 1.844 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005976/0.8026, allocations: 0.559 MB / 0.758 GB, free: 1.156 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008348/0.8035, allocations: 386.9 kB / 0.7584 GB, free: 0.7617 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=49): time 3.864e-06/0.8035, allocations: 0 / 0.7584 GB, free: 0.7617 MB / 0.6355 GB Notification: Performance of matching and sorting (n=49): time 0.001324/0.8048, allocations: 0.5073 MB / 0.7589 GB, free: 252 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.166e-05/0.8049, allocations: 85.55 kB / 0.759 GB, free: 148 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005441/0.8055, allocations: 295.5 kB / 0.7592 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.8056, allocations: 49.69 kB / 0.7593 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002832/0.8059, allocations: 276.7 kB / 0.7595 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001936/0.8061, allocations: 157.8 kB / 0.7597 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.965e-05/0.8062, allocations: 12 kB / 0.7597 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002019/0.8064, allocations: 362.7 kB / 0.7601 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005335/0.8069, allocations: 217.1 kB / 0.7603 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006633/0.8076, allocations: 345.2 kB / 0.7606 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006094/0.8082, allocations: 261.6 kB / 0.7608 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.13e-05/0.8083, allocations: 4 kB / 0.7608 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001598/0.8099, allocations: 0.6545 MB / 0.7615 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005882/0.8105, allocations: 1.08 MB / 0.7625 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/0.8105, allocations: 4 kB / 0.7625 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.485e-05/0.8105, allocations: 4.188 kB / 0.7625 GB, free: 12.28 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007894/0.8113, allocations: 115.8 kB / 0.7627 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.152e-05/0.8114, allocations: 15.97 kB / 0.7627 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006913/0.8121, allocations: 67.58 kB / 0.7627 GB, free: 12.09 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.994e-05/0.8122, allocations: 27.98 kB / 0.7628 GB, free: 12.06 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.8122, allocations: 4 kB / 0.7628 GB, free: 12.05 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001364/0.8136, allocations: 0.5328 MB / 0.7633 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.8136, allocations: 4 kB / 0.7633 GB, free: 11.51 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.8136, allocations: 4 kB / 0.7633 GB, free: 11.51 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006467/0.8143, allocations: 112 kB / 0.7634 GB, free: 11.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/0.8143, allocations: 8 kB / 0.7634 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006062/0.8149, allocations: 63.64 kB / 0.7635 GB, free: 11.33 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.74e-05/0.815, allocations: 20 kB / 0.7635 GB, free: 11.31 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.0002505/0.8153, allocations: 147.1 kB / 0.7636 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.8154, allocations: 47.42 kB / 0.7637 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001377/0.8168, allocations: 0.5673 MB / 0.7642 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/0.8169, allocations: 4 kB / 0.7642 GB, free: 10.53 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.874e-06/0.8169, allocations: 0 / 0.7642 GB, free: 10.53 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.8169, allocations: 7.922 kB / 0.7642 GB, free: 10.52 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001086/0.818, allocations: 0.6263 MB / 0.7649 GB, free: 9.848 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.394e-06/0.818, allocations: 0 / 0.7649 GB, free: 9.848 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007368/0.8188, allocations: 99.8 kB / 0.7649 GB, free: 9.75 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.243e-06/0.8188, allocations: 0 / 0.7649 GB, free: 9.75 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.464e-05/0.8189, allocations: 12 kB / 0.765 GB, free: 9.738 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.264e-06/0.8189, allocations: 11.95 kB / 0.765 GB, free: 9.727 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.533e-06/0.8189, allocations: 192 / 0.765 GB, free: 9.727 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/0.8208, allocations: 0.8659 MB / 0.7658 GB, free: 8.836 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000353/0.8212, allocations: 180.4 kB / 0.766 GB, free: 8.641 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.8213, allocations: 15.95 kB / 0.766 GB, free: 8.625 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004881/0.8218, allocations: 47.94 kB / 0.7661 GB, free: 8.578 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/0.822, allocations: 52.31 kB / 0.7661 GB, free: 8.527 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.227e-05/0.8221, allocations: 19.98 kB / 0.7661 GB, free: 8.508 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003869/0.8225, allocations: 230.2 kB / 0.7663 GB, free: 8.289 MB / 0.6511 GB Notification: Performance of sort global known variables: time 8.45e-07/0.8225, allocations: 0 / 0.7663 GB, free: 8.289 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001074/0.8236, allocations: 283.1 kB / 0.7666 GB, free: 8.012 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.000295/0.8239, allocations: 146.9 kB / 0.7667 GB, free: 7.855 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.00205/0.826, allocations: 0.9318 MB / 0.7677 GB, free: 6.895 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.482e-06/0.826, allocations: 0 / 0.7677 GB, free: 6.895 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0006129/0.8266, allocations: 269.5 kB / 0.7679 GB, free: 6.633 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/0.8277, allocations: 151.8 kB / 0.7681 GB, free: 6.484 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002032/0.8297, allocations: 0.8183 MB / 0.7689 GB, free: 5.645 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006696/0.8304, allocations: 0.9035 MB / 0.7697 GB, free: 4.711 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0009035/0.8313, allocations: 160.4 kB / 0.7699 GB, free: 4.551 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000213/0.8316, allocations: 43.42 kB / 0.7699 GB, free: 4.508 MB / 0.6511 GB Notification: Performance of SimCode: time 1.803e-06/0.8316, allocations: 0 / 0.7699 GB, free: 4.508 MB / 0.6511 GB Notification: Performance of Templates: time 0.4265/1.258, allocations: 8.184 MB / 0.7779 GB, free: 165.7 MB / 0.6511 GB