This example represents a simple yet complete grid-tied PV inverter system. A long simulation is performed so as to visualize the time evolution of the MPPT control, which is necessarily much slower than the output current control. This long simulation time is manageable because an averaged switch model is being used, which means that the simulation can have longer time steps.
This evolution can be observed by plotting the DC bus voltage as well as the input and output power to the inverter:
As expected, the power factor of the output power is 1 (all active power), having the output current in synch with the grid voltage: