US electric vehicle maker Tesla announced that it will open a new factory in Shanghai to produce its Megapack energy storage batteries used to stabilize electricity grids and prevent power outages.