An Open-source Platform for Simulation and Optimization of Clean Energy Technologies