3 phase generator and 3 phase photovoltaic inverter working together