Notification: Performance of FrontEnd - loaded program: time 1.591e-05/1.601e-05, allocations: 1.25 kB / 0.5177 GB, free: 12.79 MB / 416.2 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1179, allocations: 76.94 MB / 0.5929 GB, free: 15.78 MB / 496.2 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6824/0.8003, allocations: 120.5 MB / 0.7105 GB, free: 36.52 MB / 0.5022 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000119/0.8005, allocations: 53.75 kB / 0.7106 GB, free: 36.46 MB / 0.5022 GB Notification: Performance of FrontEnd: time 4.296/5.096, allocations: 0.8531 GB / 1.564 GB, free: 115.7 MB / 0.6115 GB Notification: Performance of Transformations before backend: time 0.0009984/5.097, allocations: 233.9 kB / 1.564 GB, free: 115.7 MB / 0.6115 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3139 * Number of variables: 3139 Notification: Performance of Generate backend data structure: time 0.1543/5.252, allocations: 49.39 MB / 1.612 GB, free: 108.2 MB / 0.6115 GB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/5.252, allocations: 9.188 kB / 1.612 GB, free: 108.2 MB / 0.6115 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008479/5.26, allocations: 1.182 MB / 1.613 GB, free: 107.6 MB / 0.6115 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03685/5.297, allocations: 9.494 MB / 1.623 GB, free: 106.1 MB / 0.6115 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007469/5.298, allocations: 386.4 kB / 1.623 GB, free: 106.1 MB / 0.6115 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009959/5.308, allocations: 1.202 MB / 1.624 GB, free: 106 MB / 0.6115 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2837/5.592, allocations: 109.2 MB / 1.731 GB, free: 32.62 MB / 0.6115 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05865/5.65, allocations: 21.58 MB / 1.752 GB, free: 16.17 MB / 0.6115 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007339/5.651, allocations: 34.28 kB / 1.752 GB, free: 16.14 MB / 0.6115 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005709/5.657, allocations: 3.953 kB / 1.752 GB, free: 16.14 MB / 0.6115 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003614/5.657, allocations: 443.5 kB / 1.752 GB, free: 15.71 MB / 0.6115 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4479/6.105, allocations: 87.06 MB / 1.837 GB, free: 120.5 MB / 0.6272 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1055/6.211, allocations: 48.66 MB / 1.885 GB, free: 103.3 MB / 0.6272 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.04725/6.258, allocations: 24.94 MB / 1.909 GB, free: 93.97 MB / 0.6272 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003125/6.261, allocations: 491.8 kB / 1.91 GB, free: 93.89 MB / 0.6272 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002273/6.261, allocations: 308.4 kB / 1.91 GB, free: 93.66 MB / 0.6272 GB Notification: Performance of pre-optimization done (n=2722): time 4.453e-05/6.261, allocations: 0 / 1.91 GB, free: 93.66 MB / 0.6272 GB Notification: Performance of matching and sorting (n=2722): time 0.08801/6.349, allocations: 36.28 MB / 1.945 GB, free: 67.72 MB / 0.6272 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000212/6.35, allocations: 332.7 kB / 1.946 GB, free: 67.38 MB / 0.6272 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004021/6.354, allocations: 2.5 MB / 1.948 GB, free: 65.29 MB / 0.6272 GB Notification: Performance of collectPreVariables (initialization): time 0.005679/6.359, allocations: 27.67 kB / 1.948 GB, free: 65.26 MB / 0.6272 GB Notification: Performance of collectInitialEqns (initialization): time 0.001341/6.361, allocations: 1.545 MB / 1.95 GB, free: 63.98 MB / 0.6272 GB Notification: Performance of collectInitialBindings (initialization): time 0.01142/6.372, allocations: 9.165 MB / 1.959 GB, free: 56.1 MB / 0.6272 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005403/6.378, allocations: 0 / 1.959 GB, free: 56.1 MB / 0.6272 GB Notification: Performance of setup shared object (initialization): time 4.872e-05/6.378, allocations: 301.1 kB / 1.959 GB, free: 55.8 MB / 0.6272 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03492/6.413, allocations: 17.14 MB / 1.976 GB, free: 41.2 MB / 0.6272 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03842/6.451, allocations: 19.27 MB / 1.994 GB, free: 24.54 MB / 0.6272 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04008/6.491, allocations: 19.89 MB / 2.014 GB, free: 8.457 MB / 0.6272 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001717/6.491, allocations: 8 kB / 2.014 GB, free: 8.449 MB / 0.6272 GB Notification: Performance of matching and sorting (n=3236) (initialization): time 0.358/6.849, allocations: 41.13 MB / 2.054 GB, free: 119 MB / 0.6272 GB Notification: Performance of prepare postOptimizeDAE: time 9.012e-05/6.85, allocations: 16.22 kB / 2.054 GB, free: 119 MB / 0.6272 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001061/6.85, allocations: 22 kB / 2.054 GB, free: 119 MB / 0.6272 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002162/6.85, allocations: 128.1 kB / 2.054 GB, free: 119 MB / 0.6272 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.05071/6.901, allocations: 7.726 MB / 2.062 GB, free: 118.8 MB / 0.6272 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000315/6.901, allocations: 140.7 kB / 2.062 GB, free: 118.8 MB / 0.6272 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0249/6.926, allocations: 2.785 MB / 2.065 GB, free: 118.8 MB / 0.6272 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007325/6.933, allocations: 0.8904 MB / 2.065 GB, free: 118.8 MB / 0.6272 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 98 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3236): * Single equations (assignments): 3236 * Array equations: 0 * Algorithm blocks: 0 * 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.00969/6.943, allocations: 442.3 kB / 2.066 GB, free: 118.3 MB / 0.6272 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006352/6.949, allocations: 1.047 MB / 2.067 GB, free: 118.1 MB / 0.6272 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.163/7.112, allocations: 63.87 MB / 2.129 GB, free: 106.7 MB / 0.6272 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002596/7.113, allocations: 352.7 kB / 2.13 GB, free: 106.7 MB / 0.6272 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.575e-05/7.113, allocations: 0 / 2.13 GB, free: 106.7 MB / 0.6272 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008094/7.114, allocations: 176.7 kB / 2.13 GB, free: 106.7 MB / 0.6272 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04698/7.161, allocations: 22.36 MB / 2.152 GB, free: 97.81 MB / 0.6272 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003079/7.161, allocations: 0 / 2.152 GB, free: 97.81 MB / 0.6272 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.05173/7.213, allocations: 8.63 MB / 2.16 GB, free: 90.73 MB / 0.6272 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004088/7.213, allocations: 119.7 kB / 2.16 GB, free: 90.62 MB / 0.6272 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.006451/7.22, allocations: 0.5152 MB / 2.161 GB, free: 90.26 MB / 0.6272 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002228/7.22, allocations: 120 kB / 2.161 GB, free: 90.14 MB / 0.6272 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/7.22, allocations: 0 / 2.161 GB, free: 90.14 MB / 0.6272 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.748/8.968, allocations: 475.6 MB / 2.625 GB, free: 94.08 MB / 0.6428 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01827/8.986, allocations: 5.48 MB / 2.631 GB, free: 92.32 MB / 0.6428 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008215/8.994, allocations: 286.7 kB / 2.631 GB, free: 92.27 MB / 0.6428 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02227/9.016, allocations: 1.527 MB / 2.632 GB, free: 92.27 MB / 0.6428 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.008/9.025, allocations: 1.945 MB / 2.634 GB, free: 92.01 MB / 0.6428 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.006771/9.031, allocations: 0.9037 MB / 2.635 GB, free: 91.79 MB / 0.6428 GB Notification: Performance of sorting global known variables: time 0.003081/9.034, allocations: 1.79 MB / 2.637 GB, free: 91.18 MB / 0.6428 GB Notification: Performance of sort global known variables: time 7.15e-07/9.034, allocations: 1.641 kB / 2.637 GB, free: 91.18 MB / 0.6428 GB Notification: Performance of remove unused functions: time 0.03831/9.073, allocations: 8.217 MB / 2.645 GB, free: 91.07 MB / 0.6428 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 385 (P_sfc,generator[1].theta,generator[1].omega,generator[1].p,generator[1].q_ev,generator[1].y_t,generator[1].p_t_lp,generator[1].T_s[1],generator[1].T_s[2],generator[1].T_s[3],generator[1].T_s[4],generator[1].err_p_t_int,generator[1].err_p_int,generator[2].theta,generator[2].omega,generator[2].p,generator[2].q_ev,generator[2].y_t,generator[2].p_t_lp,generator[2].T_s[1],generator[2].T_s[2],generator[2].T_s[3],generator[2].T_s[4],generator[2].err_p_t_int,generator[2].err_p_int,generator[3].theta,generator[3].omega,generator[3].p,generator[3].q_ev,generator[3].y_t,generator[3].p_t_lp,generator[3].T_s[1],generator[3].T_s[2],generator[3].T_s[3],generator[3].T_s[4],generator[3].err_p_t_int,generator[3].err_p_int,generator[4].theta,generator[4].omega,generator[4].p,generator[4].q_ev,generator[4].y_t,generator[4].p_t_lp,generator[4].T_s[1],generator[4].T_s[2],generator[4].T_s[3],generator[4].T_s[4],generator[4].err_p_t_int,generator[4].err_p_int,generator[5].theta,generator[5].omega,generator[5].p,generator[5].q_ev,generator[5].y_t,generator[5].p_t_lp,generator[5].T_s[1],generator[5].T_s[2],generator[5].T_s[3],generator[5].T_s[4],generator[5].err_p_t_int,generator[5].err_p_int,generator[6].theta,generator[6].omega,generator[6].p,generator[6].q_ev,generator[6].y_t,generator[6].p_t_lp,generator[6].T_s[1],generator[6].T_s[2],generator[6].T_s[3],generator[6].T_s[4],generator[6].err_p_t_int,generator[6].err_p_int,generator[7].theta,generator[7].omega,generator[7].p,generator[7].q_ev,generator[7].y_t,generator[7].p_t_lp,generator[7].T_s[1],generator[7].T_s[2],generator[7].T_s[3],generator[7].T_s[4],generator[7].err_p_t_int,generator[7].err_p_int,generator[8].theta,generator[8].omega,generator[8].p,generator[8].q_ev,generator[8].y_t,generator[8].p_t_lp,generator[8].T_s[1],generator[8].T_s[2],generator[8].T_s[3],generator[8].T_s[4],generator[8].err_p_t_int,generator[8].err_p_int,generator[9].theta,generator[9].omega,generator[9].p,generator[9].q_ev,generator[9].y_t,generator[9].p_t_lp,generator[9].T_s[1],generator[9].T_s[2],generator[9].T_s[3],generator[9].T_s[4],generator[9].err_p_t_int,generator[9].err_p_int,generator[10].theta,generator[10].omega,generator[10].p,generator[10].q_ev,generator[10].y_t,generator[10].p_t_lp,generator[10].T_s[1],generator[10].T_s[2],generator[10].T_s[3],generator[10].T_s[4],generator[10].err_p_t_int,generator[10].err_p_int,generator[11].theta,generator[11].omega,generator[11].p,generator[11].q_ev,generator[11].y_t,generator[11].p_t_lp,generator[11].T_s[1],generator[11].T_s[2],generator[11].T_s[3],generator[11].T_s[4],generator[11].err_p_t_int,generator[11].err_p_int,generator[12].theta,generator[12].omega,generator[12].p,generator[12].q_ev,generator[12].y_t,generator[12].p_t_lp,generator[12].T_s[1],generator[12].T_s[2],generator[12].T_s[3],generator[12].T_s[4],generator[12].err_p_t_int,generator[12].err_p_int,generator[13].theta,generator[13].omega,generator[13].p,generator[13].q_ev,generator[13].y_t,generator[13].p_t_lp,generator[13].T_s[1],generator[13].T_s[2],generator[13].T_s[3],generator[13].T_s[4],generator[13].err_p_t_int,generator[13].err_p_int,generator[14].theta,generator[14].omega,generator[14].p,generator[14].q_ev,generator[14].y_t,generator[14].p_t_lp,generator[14].T_s[1],generator[14].T_s[2],generator[14].T_s[3],generator[14].T_s[4],generator[14].err_p_t_int,generator[14].err_p_int,generator[15].theta,generator[15].omega,generator[15].p,generator[15].q_ev,generator[15].y_t,generator[15].p_t_lp,generator[15].T_s[1],generator[15].T_s[2],generator[15].T_s[3],generator[15].T_s[4],generator[15].err_p_t_int,generator[15].err_p_int,generator[16].theta,generator[16].omega,generator[16].p,generator[16].q_ev,generator[16].y_t,generator[16].p_t_lp,generator[16].T_s[1],generator[16].T_s[2],generator[16].T_s[3],generator[16].T_s[4],generator[16].err_p_t_int,generator[16].err_p_int,generator[17].theta,generator[17].omega,generator[17].p,generator[17].q_ev,generator[17].y_t,generator[17].p_t_lp,generator[17].T_s[1],generator[17].T_s[2],generator[17].T_s[3],generator[17].T_s[4],generator[17].err_p_t_int,generator[17].err_p_int,generator[18].theta,generator[18].omega,generator[18].p,generator[18].q_ev,generator[18].y_t,generator[18].p_t_lp,generator[18].T_s[1],generator[18].T_s[2],generator[18].T_s[3],generator[18].T_s[4],generator[18].err_p_t_int,generator[18].err_p_int,generator[19].theta,generator[19].omega,generator[19].p,generator[19].q_ev,generator[19].y_t,generator[19].p_t_lp,generator[19].T_s[1],generator[19].T_s[2],generator[19].T_s[3],generator[19].T_s[4],generator[19].err_p_t_int,generator[19].err_p_int,generator[20].theta,generator[20].omega,generator[20].p,generator[20].q_ev,generator[20].y_t,generator[20].p_t_lp,generator[20].T_s[1],generator[20].T_s[2],generator[20].T_s[3],generator[20].T_s[4],generator[20].err_p_t_int,generator[20].err_p_int,generator[21].theta,generator[21].omega,generator[21].p,generator[21].q_ev,generator[21].y_t,generator[21].p_t_lp,generator[21].T_s[1],generator[21].T_s[2],generator[21].T_s[3],generator[21].T_s[4],generator[21].err_p_t_int,generator[21].err_p_int,generator[22].theta,generator[22].omega,generator[22].p,generator[22].q_ev,generator[22].y_t,generator[22].p_t_lp,generator[22].T_s[1],generator[22].T_s[2],generator[22].T_s[3],generator[22].T_s[4],generator[22].err_p_t_int,generator[22].err_p_int,generator[23].theta,generator[23].omega,generator[23].p,generator[23].q_ev,generator[23].y_t,generator[23].p_t_lp,generator[23].T_s[1],generator[23].T_s[2],generator[23].T_s[3],generator[23].T_s[4],generator[23].err_p_t_int,generator[23].err_p_int,generator[24].theta,generator[24].omega,generator[24].p,generator[24].q_ev,generator[24].y_t,generator[24].p_t_lp,generator[24].T_s[1],generator[24].T_s[2],generator[24].T_s[3],generator[24].T_s[4],generator[24].err_p_t_int,generator[24].err_p_int,generator[25].theta,generator[25].omega,generator[25].p,generator[25].q_ev,generator[25].y_t,generator[25].p_t_lp,generator[25].T_s[1],generator[25].T_s[2],generator[25].T_s[3],generator[25].T_s[4],generator[25].err_p_t_int,generator[25].err_p_int,generator[26].theta,generator[26].omega,generator[26].p,generator[26].q_ev,generator[26].y_t,generator[26].p_t_lp,generator[26].T_s[1],generator[26].T_s[2],generator[26].T_s[3],generator[26].T_s[4],generator[26].err_p_t_int,generator[26].err_p_int,generator[27].theta,generator[27].omega,generator[27].p,generator[27].q_ev,generator[27].y_t,generator[27].p_t_lp,generator[27].T_s[1],generator[27].T_s[2],generator[27].T_s[3],generator[27].T_s[4],generator[27].err_p_t_int,generator[27].err_p_int,generator[28].theta,generator[28].omega,generator[28].p,generator[28].q_ev,generator[28].y_t,generator[28].p_t_lp,generator[28].T_s[1],generator[28].T_s[2],generator[28].T_s[3],generator[28].T_s[4],generator[28].err_p_t_int,generator[28].err_p_int,generator[29].theta,generator[29].omega,generator[29].p,generator[29].q_ev,generator[29].y_t,generator[29].p_t_lp,generator[29].T_s[1],generator[29].T_s[2],generator[29].T_s[3],generator[29].T_s[4],generator[29].err_p_t_int,generator[29].err_p_int,generator[30].theta,generator[30].omega,generator[30].p,generator[30].q_ev,generator[30].y_t,generator[30].p_t_lp,generator[30].T_s[1],generator[30].T_s[2],generator[30].T_s[3],generator[30].T_s[4],generator[30].err_p_t_int,generator[30].err_p_int,generator[31].theta,generator[31].omega,generator[31].p,generator[31].q_ev,generator[31].y_t,generator[31].p_t_lp,generator[31].T_s[1],generator[31].T_s[2],generator[31].T_s[3],generator[31].T_s[4],generator[31].err_p_t_int,generator[31].err_p_int,generator[32].theta,generator[32].omega,generator[32].p,generator[32].q_ev,generator[32].y_t,generator[32].p_t_lp,generator[32].T_s[1],generator[32].T_s[2],generator[32].T_s[3],generator[32].T_s[4],generator[32].err_p_t_int,generator[32].err_p_int) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3714): * Single equations (assignments): 3714 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.007128/9.08, allocations: 0.7772 MB / 2.646 GB, free: 90.59 MB / 0.6428 GB Notification: Performance of simCode: created initialization part: time 0.08135/9.161, allocations: 40.96 MB / 2.686 GB, free: 56.59 MB / 0.6428 GB Notification: Performance of simCode: created event and clocks part: time 4.918e-06/9.161, allocations: 3.422 kB / 2.686 GB, free: 56.59 MB / 0.6428 GB Notification: Performance of simCode: created simulation system equations: time 0.04585/9.207, allocations: 23.01 MB / 2.708 GB, free: 36 MB / 0.6428 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009721/9.217, allocations: 89.88 kB / 2.708 GB, free: 35.91 MB / 0.6428 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3969/9.614, allocations: 84.23 MB / 2.79 GB, free: 118.8 MB / 0.6584 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01479/9.629, allocations: 9.356 MB / 2.8 GB, free: 117.6 MB / 0.6584 GB Notification: Performance of simCode: alias equations: time 0.06519/9.694, allocations: 16.91 MB / 2.816 GB, free: 117.4 MB / 0.6584 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02875/9.723, allocations: 2.429 MB / 2.818 GB, free: 117.4 MB / 0.6584 GB Notification: Performance of SimCode: time 1.776e-06/9.723, allocations: 0.9062 kB / 2.818 GB, free: 117.4 MB / 0.6584 GB Notification: Performance of Templates: time 1.034/10.76, allocations: 355.9 MB / 3.166 GB, free: 91.03 MB / 0.674 GB