Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_5.0.1_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadModel(Buildings): time 3.47/3.47, allocations: 403.3 MB / 415.4 MB, free: 13.03 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.556e-05/3.568e-05, allocations: 7.938 kB / 0.4991 GB, free: 13.44 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.475/0.4751, allocations: 92.67 MB / 0.5896 GB, free: 14.5 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2074/0.6825, allocations: 140.4 MB / 0.7266 GB, free: 1.957 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003152/0.6829, allocations: 91.94 kB / 0.7267 GB, free: 1.867 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.1112/0.7941, allocations: 28.94 MB / 0.755 GB, free: 4.645 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.551e-06/0.7941, allocations: 0 / 0.755 GB, free: 4.645 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.243e-05/0.7942, allocations: 12 kB / 0.755 GB, free: 4.633 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.001997/0.7962, allocations: 0.8182 MB / 0.7558 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.7963, allocations: 8.031 kB / 0.7558 GB, free: 3.75 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00127/0.7975, allocations: 155 kB / 0.7559 GB, free: 3.598 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009127/0.7985, allocations: 431.3 kB / 0.7563 GB, free: 3.137 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.409e-05/0.7986, allocations: 44.92 kB / 0.7564 GB, free: 3.094 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.7987, allocations: 51.98 kB / 0.7564 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.8002, allocations: 0.6478 MB / 0.7571 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.345e-05/0.8002, allocations: 3.938 kB / 0.7571 GB, free: 2.363 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.445e-05/0.8003, allocations: 24 kB / 0.7571 GB, free: 2.34 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.721e-05/0.8004, allocations: 44.97 kB / 0.7571 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/0.8017, allocations: 0.5173 MB / 0.7576 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004633/0.8064, allocations: 2.373 MB / 0.76 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00129/0.8077, allocations: 0.5411 MB / 0.7605 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005382/0.8083, allocations: 253.6 kB / 0.7607 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006/0.8089, allocations: 0.5593 MB / 0.7613 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008331/0.8098, allocations: 395.4 kB / 0.7617 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 4.045e-06/0.8098, allocations: 4 kB / 0.7617 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.001313/0.8111, allocations: 0.4995 MB / 0.7621 GB, free: 12.88 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.611e-05/0.8112, allocations: 81.55 kB / 0.7622 GB, free: 12.78 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005067/0.8117, allocations: 299.5 kB / 0.7625 GB, free: 12.47 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.715e-05/0.8118, allocations: 49.64 kB / 0.7626 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002781/0.8121, allocations: 276.5 kB / 0.7628 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.8123, allocations: 157.8 kB / 0.763 GB, free: 11.99 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.645e-05/0.8124, allocations: 8 kB / 0.763 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002123/0.8126, allocations: 371 kB / 0.7633 GB, free: 11.61 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005354/0.8132, allocations: 217.1 kB / 0.7635 GB, free: 11.4 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006428/0.8138, allocations: 337.3 kB / 0.7639 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000603/0.8144, allocations: 281.5 kB / 0.7641 GB, free: 10.74 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.395e-06/0.8145, allocations: 4 kB / 0.7641 GB, free: 10.74 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001552/0.816, allocations: 0.6468 MB / 0.7648 GB, free: 10.08 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.000591/0.8166, allocations: 1.072 MB / 0.7658 GB, free: 8.918 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.8167, allocations: 4 kB / 0.7658 GB, free: 8.914 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.687e-05/0.8167, allocations: 8 kB / 0.7658 GB, free: 8.906 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007586/0.8175, allocations: 119.8 kB / 0.7659 GB, free: 8.789 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.805e-05/0.8175, allocations: 7.938 kB / 0.7659 GB, free: 8.781 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006662/0.8182, allocations: 71.56 kB / 0.766 GB, free: 8.711 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.402e-05/0.8183, allocations: 20 kB / 0.766 GB, free: 8.691 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.8183, allocations: 5.562 kB / 0.766 GB, free: 8.688 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001298/0.8196, allocations: 0.5367 MB / 0.7666 GB, free: 8.145 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.789e-06/0.8196, allocations: 0 / 0.7666 GB, free: 8.145 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.8197, allocations: 8.375 kB / 0.7666 GB, free: 8.137 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005977/0.8203, allocations: 107.8 kB / 0.7667 GB, free: 8.031 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.8203, allocations: 8 kB / 0.7667 GB, free: 8.023 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006076/0.8209, allocations: 63.95 kB / 0.7667 GB, free: 7.961 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.99e-05/0.821, allocations: 27.94 kB / 0.7668 GB, free: 7.934 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.0002382/0.8213, allocations: 147 kB / 0.7669 GB, free: 7.781 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000128/0.8214, allocations: 47.44 kB / 0.767 GB, free: 7.734 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001382/0.8228, allocations: 0.5634 MB / 0.7675 GB, free: 7.164 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.8228, allocations: 8.031 kB / 0.7675 GB, free: 7.156 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.959e-06/0.8228, allocations: 8 kB / 0.7675 GB, free: 7.148 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.8229, allocations: 3.984 kB / 0.7675 GB, free: 7.145 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.8239, allocations: 0.6263 MB / 0.7681 GB, free: 6.469 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.71e-06/0.824, allocations: 0 / 0.7681 GB, free: 6.469 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007136/0.8247, allocations: 91.86 kB / 0.7682 GB, free: 6.379 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.5e-05/0.8247, allocations: 4 kB / 0.7682 GB, free: 6.375 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.268e-05/0.8248, allocations: 15.94 kB / 0.7682 GB, free: 6.359 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.992e-06/0.8248, allocations: 3.953 kB / 0.7682 GB, free: 6.355 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.421e-06/0.8248, allocations: 3.984 kB / 0.7683 GB, free: 6.352 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001874/0.8267, allocations: 0.868 MB / 0.7691 GB, free: 5.461 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000356/0.8271, allocations: 184.4 kB / 0.7693 GB, free: 5.262 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/0.8272, allocations: 19.94 kB / 0.7693 GB, free: 5.242 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004531/0.8277, allocations: 31.95 kB / 0.7693 GB, free: 5.211 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001648/0.8279, allocations: 56.36 kB / 0.7694 GB, free: 5.156 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.695e-05/0.8279, allocations: 16 kB / 0.7694 GB, free: 5.141 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003827/0.8283, allocations: 242.2 kB / 0.7696 GB, free: 4.91 MB / 0.6511 GB Notification: Performance of sort global known variables: time 8.27e-07/0.8284, allocations: 0 / 0.7696 GB, free: 4.91 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001061/0.8294, allocations: 267.2 kB / 0.7699 GB, free: 4.648 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.0002949/0.8297, allocations: 153.1 kB / 0.77 GB, free: 4.492 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002059/0.8318, allocations: 0.928 MB / 0.7709 GB, free: 3.535 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.82e-06/0.8318, allocations: 0 / 0.7709 GB, free: 3.535 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0006156/0.8325, allocations: 265.5 kB / 0.7712 GB, free: 3.277 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.8335, allocations: 147 kB / 0.7713 GB, free: 3.133 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002025/0.8356, allocations: 0.8199 MB / 0.7721 GB, free: 2.289 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006673/0.8363, allocations: 0.9035 MB / 0.773 GB, free: 1.355 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0009248/0.8372, allocations: 165.1 kB / 0.7732 GB, free: 1.191 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002078/0.8374, allocations: 43.42 kB / 0.7732 GB, free: 1.148 MB / 0.6511 GB Notification: Performance of SimCode: time 3.774e-06/0.8374, allocations: 0 / 0.7732 GB, free: 1.148 MB / 0.6511 GB Notification: Performance of Templates: time 0.4269/1.264, allocations: 8.187 MB / 0.7812 GB, free: 165.5 MB / 0.6511 GB