Capacitor and transformer are closed simultaneously