ENERGY STORAGE BIDIRECTIONAL INVERTER MODEL