Tools for Energy Model Optimization and Analysis