Model Reduction of Gradient Systems