Notification: Performance of FrontEnd - loaded program: time 8.311e-06/8.52e-06, allocations: 0 / 439.6 MB, free: 9.43 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1094, allocations: 78.98 MB / 0.5065 GB, free: 2.672 MB / 414.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.442/0.5515, allocations: 127.6 MB / 0.6311 GB, free: 37.73 MB / 0.5138 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/0.5519, allocations: 93.52 kB / 0.6312 GB, free: 37.73 MB / 0.5138 GB Notification: Performance of FrontEnd: time 0.1069/0.6589, allocations: 28.58 MB / 0.6591 GB, free: 34.36 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 4.072e-05/0.6591, allocations: 12.55 kB / 0.6591 GB, free: 34.35 MB / 0.5138 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.001936/0.6611, allocations: 0.8208 MB / 0.6599 GB, free: 33.77 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.6611, allocations: 7.812 kB / 0.6599 GB, free: 33.77 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001496/0.6627, allocations: 156.4 kB / 0.66 GB, free: 33.74 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000865/0.6636, allocations: 434.1 kB / 0.6605 GB, free: 33.46 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.037e-05/0.6637, allocations: 21.39 kB / 0.6605 GB, free: 33.46 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.6639, allocations: 31.34 kB / 0.6605 GB, free: 33.46 MB / 0.5138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005344/0.6645, allocations: 194.4 kB / 0.6607 GB, free: 33.46 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007409/0.6653, allocations: 375.8 kB / 0.6611 GB, free: 33.31 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.6654, allocations: 0 / 0.6611 GB, free: 33.31 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.92e-05/0.6655, allocations: 5.734 kB / 0.6611 GB, free: 33.31 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.013e-05/0.6657, allocations: 43.58 kB / 0.6611 GB, free: 33.31 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003846/0.6696, allocations: 2.356 MB / 0.6634 GB, free: 32.09 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000618/0.6703, allocations: 305.3 kB / 0.6637 GB, free: 32.04 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.459e-05/0.6704, allocations: 37 kB / 0.6637 GB, free: 32.02 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004015/0.6709, allocations: 0.6353 MB / 0.6643 GB, free: 31.27 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004345/0.6714, allocations: 229.2 kB / 0.6646 GB, free: 31.18 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=49): time 3.213e-06/0.6714, allocations: 0 / 0.6646 GB, free: 31.18 MB / 0.5138 GB Notification: Performance of matching and sorting (n=49): time 0.0008563/0.6724, allocations: 307.6 kB / 0.6649 GB, free: 31.11 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.0003255/0.6728, allocations: 139.6 kB / 0.665 GB, free: 31.07 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.928e-05/0.6728, allocations: 13.34 kB / 0.665 GB, free: 31.06 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000219/0.6731, allocations: 330.4 kB / 0.6653 GB, free: 30.83 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 6.663e-05/0.6732, allocations: 37.7 kB / 0.6654 GB, free: 30.8 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001372/0.6734, allocations: 217.7 kB / 0.6656 GB, free: 30.66 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.6736, allocations: 100.6 kB / 0.6657 GB, free: 30.6 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.281e-05/0.6737, allocations: 0 / 0.6657 GB, free: 30.6 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 9.715e-05/0.6739, allocations: 355.7 kB / 0.666 GB, free: 30.29 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000187/0.6741, allocations: 71.56 kB / 0.6661 GB, free: 30.29 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002288/0.6744, allocations: 168.5 kB / 0.6662 GB, free: 30.19 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003317/0.6748, allocations: 116.8 kB / 0.6663 GB, free: 30.18 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.19e-06/0.6748, allocations: 3.938 kB / 0.6663 GB, free: 30.18 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.001017/0.6759, allocations: 1.36 MB / 0.6677 GB, free: 29.01 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.676, allocations: 0 / 0.6677 GB, free: 29.01 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.101e-05/0.6761, allocations: 11.72 kB / 0.6677 GB, free: 29.01 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.6761, allocations: 4.609 kB / 0.6677 GB, free: 29.01 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.6772, allocations: 120.5 kB / 0.6678 GB, free: 29 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001235/0.6786, allocations: 55.78 kB / 0.6679 GB, free: 28.98 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.657e-06/0.6787, allocations: 3.938 kB / 0.6679 GB, free: 28.98 MB / 0.5138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001246/0.68, allocations: 254.2 kB / 0.6681 GB, free: 28.95 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.6801, allocations: 3.906 kB / 0.6681 GB, free: 28.95 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.444e-05/0.6802, allocations: 8.469 kB / 0.6681 GB, free: 28.94 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.564e-05/0.6804, allocations: 7.812 kB / 0.6681 GB, free: 28.94 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007627/0.6812, allocations: 111 kB / 0.6682 GB, free: 28.93 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006495/0.6819, allocations: 53.83 kB / 0.6683 GB, free: 28.91 MB / 0.5138 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.0002901/0.6823, allocations: 127.7 kB / 0.6684 GB, free: 28.8 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.6824, allocations: 44.39 kB / 0.6684 GB, free: 28.78 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000857/0.6833, allocations: 338.1 kB / 0.6688 GB, free: 28.73 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.359e-06/0.6834, allocations: 4.375 kB / 0.6688 GB, free: 28.73 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.543e-06/0.6835, allocations: 3.938 kB / 0.6688 GB, free: 28.73 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.6835, allocations: 9.906 kB / 0.6688 GB, free: 28.72 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001552/0.6852, allocations: 1.025 MB / 0.6698 GB, free: 28.21 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.587e-06/0.6852, allocations: 0 / 0.6698 GB, free: 28.21 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007599/0.6861, allocations: 101.1 kB / 0.6699 GB, free: 28.19 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.848e-06/0.6861, allocations: 3.906 kB / 0.6699 GB, free: 28.19 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.728e-05/0.6862, allocations: 0 / 0.6699 GB, free: 28.19 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.032e-06/0.6863, allocations: 7.875 kB / 0.6699 GB, free: 28.18 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.492e-06/0.6864, allocations: 0 / 0.6699 GB, free: 28.18 MB / 0.5138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001035/0.6874, allocations: 0.6378 MB / 0.6705 GB, free: 27.91 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003008/0.6878, allocations: 186.3 kB / 0.6707 GB, free: 27.77 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/0.688, allocations: 7.812 kB / 0.6707 GB, free: 27.77 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006215/0.6887, allocations: 43.33 kB / 0.6707 GB, free: 27.75 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.6889, allocations: 43.97 kB / 0.6708 GB, free: 27.73 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (51): * Single equations (assignments): 49 * 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.0003203/0.6893, allocations: 148.6 kB / 0.6709 GB, free: 27.62 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0009656/0.6903, allocations: 0.5126 MB / 0.6714 GB, free: 27.5 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 6.635e-06/0.6904, allocations: 3.906 kB / 0.6714 GB, free: 27.5 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.0003343/0.6908, allocations: 162.1 kB / 0.6716 GB, free: 27.49 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.692, allocations: 130.7 kB / 0.6717 GB, free: 27.45 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001849/0.6939, allocations: 0.7646 MB / 0.6725 GB, free: 27.08 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000661/0.6947, allocations: 0.99 MB / 0.6734 GB, free: 26.24 MB / 0.5138 GB Notification: Performance of SimCode: time 2.165e-06/0.6947, allocations: 0 / 0.6734 GB, free: 26.24 MB / 0.5138 GB Notification: Performance of Templates: time 0.06178/0.7566, allocations: 11.29 MB / 0.6844 GB, free: 20.72 MB / 0.5138 GB