The present disclosure provides a method for controlling an energy conversion system. The system includes a rotating electrical machine, a machine-side converter, a DC-link, and a grid-side converter. The method includes modulating the machine-side converter for converting an AC voltage of the…