Model reduction for dynamic real-time optimization of chemical processes