Microgrid system battery model and size