Energy storage inverter modeling