TiEMPO:Time-Dependent End-to-End Model for Post-process Optimization of the DESHIMA Spectrometer