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.672/3.672, allocations: 403.9 MB / 411 MB, free: 412 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.171e-05/2.179e-05, allocations: 7.938 kB / 0.4942 GB, free: 1.406 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5315/0.5316, allocations: 92.7 MB / 0.5847 GB, free: 2.402 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2355/0.7671, allocations: 138.2 MB / 0.7197 GB, free: 8.012 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002865/0.7674, allocations: 95.92 kB / 0.7197 GB, free: 7.918 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.1032/0.8706, allocations: 26.92 MB / 0.746 GB, free: 12.75 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.496e-06/0.8707, allocations: 0 / 0.746 GB, free: 12.75 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.005e-05/0.8707, allocations: 20 kB / 0.7461 GB, free: 12.73 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.001857/0.8726, allocations: 0.8107 MB / 0.7468 GB, free: 11.86 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.8727, allocations: 16.02 kB / 0.7469 GB, free: 11.85 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001165/0.8739, allocations: 155 kB / 0.747 GB, free: 11.7 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008822/0.8748, allocations: 435.3 kB / 0.7474 GB, free: 11.23 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.972e-05/0.8748, allocations: 12 kB / 0.7474 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.8749, allocations: 32 kB / 0.7475 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001116/0.8761, allocations: 454.4 kB / 0.7479 GB, free: 10.74 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001295/0.8774, allocations: 0.591 MB / 0.7485 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.8774, allocations: 0 / 0.7485 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.745e-05/0.8775, allocations: 7.984 kB / 0.7485 GB, free: 10.1 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.072e-05/0.8776, allocations: 41.25 kB / 0.7485 GB, free: 10.06 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004429/0.882, allocations: 2.268 MB / 0.7507 GB, free: 7.691 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001229/0.8833, allocations: 0.5334 MB / 0.7513 GB, free: 7.137 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004829/0.8838, allocations: 233.6 kB / 0.7515 GB, free: 6.902 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005932/0.8845, allocations: 0.559 MB / 0.752 GB, free: 6.215 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008225/0.8853, allocations: 374.9 kB / 0.7524 GB, free: 5.832 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=49): time 3.706e-06/0.8853, allocations: 3.938 kB / 0.7524 GB, free: 5.828 MB / 0.6355 GB Notification: Performance of matching and sorting (n=49): time 0.001361/0.8867, allocations: 491.5 kB / 0.7529 GB, free: 5.34 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.572e-05/0.8868, allocations: 89.53 kB / 0.7529 GB, free: 5.234 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004804/0.8873, allocations: 278.3 kB / 0.7532 GB, free: 4.961 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 9.492e-05/0.8874, allocations: 33.7 kB / 0.7532 GB, free: 4.922 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002938/0.8877, allocations: 280.5 kB / 0.7535 GB, free: 4.641 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001909/0.8879, allocations: 150 kB / 0.7537 GB, free: 4.492 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.017e-05/0.888, allocations: 0 / 0.7537 GB, free: 4.492 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001948/0.8882, allocations: 362.7 kB / 0.754 GB, free: 4.129 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004802/0.8887, allocations: 209.1 kB / 0.7542 GB, free: 3.926 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005943/0.8893, allocations: 334.4 kB / 0.7545 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006298/0.8899, allocations: 247.7 kB / 0.7548 GB, free: 3.312 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.369e-06/0.8899, allocations: 0 / 0.7548 GB, free: 3.312 MB / 0.6355 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001549/0.8915, allocations: 0.5866 MB / 0.7553 GB, free: 2.719 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005946/0.8921, allocations: 1.08 MB / 0.7564 GB, free: 1.551 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.8922, allocations: 4 kB / 0.7564 GB, free: 1.547 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/0.8922, allocations: 4 kB / 0.7564 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007858/0.893, allocations: 115.8 kB / 0.7565 GB, free: 1.43 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.893, allocations: 7.984 kB / 0.7565 GB, free: 1.422 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006947/0.8937, allocations: 59.58 kB / 0.7566 GB, free: 1.363 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.141e-05/0.8938, allocations: 27.98 kB / 0.7566 GB, free: 1.336 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.8939, allocations: 4 kB / 0.7566 GB, free: 1.332 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001247/0.8951, allocations: 471.8 kB / 0.757 GB, free: 0.8711 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.704e-06/0.8951, allocations: 4 kB / 0.757 GB, free: 0.8672 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.8952, allocations: 7.953 kB / 0.7571 GB, free: 0.8594 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000597/0.8958, allocations: 112 kB / 0.7572 GB, free: 0.75 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.783e-06/0.8958, allocations: 8 kB / 0.7572 GB, free: 0.7422 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005785/0.8964, allocations: 51.64 kB / 0.7572 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.207e-05/0.8965, allocations: 20 kB / 0.7572 GB, free: 0.6719 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.0002238/0.8967, allocations: 123.1 kB / 0.7574 GB, free: 0.543 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.8968, allocations: 51.42 kB / 0.7574 GB, free: 0.4922 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001347/0.8982, allocations: 0.5282 MB / 0.7579 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.364e-05/0.8982, allocations: 11.95 kB / 0.7579 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.758e-06/0.8982, allocations: 0 / 0.7579 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.279e-06/0.8983, allocations: 3.938 kB / 0.7579 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000935/0.8992, allocations: 0.5332 MB / 0.7585 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.8992, allocations: 0 / 0.7585 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006717/0.8999, allocations: 95.86 kB / 0.7585 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.261e-05/0.8999, allocations: 4 kB / 0.7585 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.997e-05/0.9, allocations: 16.05 kB / 0.7586 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.988e-06/0.9, allocations: 12 kB / 0.7586 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.967e-06/0.9, allocations: 0 / 0.7586 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001763/0.9018, allocations: 0.8344 MB / 0.7594 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003553/0.9022, allocations: 176.6 kB / 0.7596 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001125/0.9023, allocations: 7.984 kB / 0.7596 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004536/0.9028, allocations: 39.94 kB / 0.7596 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.903, allocations: 52.33 kB / 0.7597 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.593e-05/0.903, allocations: 19.98 kB / 0.7597 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003338/0.9034, allocations: 212.6 kB / 0.7599 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of sort global known variables: time 5.78e-07/0.9034, allocations: 0 / 0.7599 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001018/0.9044, allocations: 255.1 kB / 0.7601 GB, free: 13.62 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.0002823/0.9047, allocations: 142.9 kB / 0.7603 GB, free: 13.47 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001833/0.9066, allocations: 0.8964 MB / 0.7611 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.222e-06/0.9066, allocations: 0 / 0.7611 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005432/0.9071, allocations: 257.5 kB / 0.7614 GB, free: 12.3 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009455/0.9081, allocations: 145.8 kB / 0.7615 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001983/0.9101, allocations: 0.7922 MB / 0.7623 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006642/0.9108, allocations: 0.9035 MB / 0.7632 GB, free: 10.41 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0009044/0.9117, allocations: 168.4 kB / 0.7633 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002059/0.9119, allocations: 43.42 kB / 0.7634 GB, free: 10.2 MB / 0.6511 GB Notification: Performance of SimCode: time 1.564e-06/0.912, allocations: 0 / 0.7634 GB, free: 10.2 MB / 0.6511 GB Notification: Performance of Templates: time 0.02077/0.9327, allocations: 7.853 MB / 0.771 GB, free: 2.441 MB / 0.6511 GB