The National Science Foundation has awarded $39 million to a team of engineers and computer scientists at the University of California San Diego to build a first-of-its-kind testbed to better understand how to integrate distributed energy sources such as solar panels, wind turbines, smart buildings and electric vehicle batteries into the power grid. The goal is to make the testbed available to outside research teams and industry by 2025.