IRFs graphs are not smooth

Hello everyone, I constructed a standard DSGE model and try to study the IRFs diagram. However, the graphs dynare produced based on my model is very strange, unlike smooth curves they are kinked. Is there anything I did wrong wit hthe model? I attached my m. file below. Thank you for your help.
DSGE.m (1.33 KB)

This seems to be related to a complex eigenvalue arising from a timing error. Are you sure that the timing for capital is correct, particularly in the production function? It looks incompatible with Dynare’s convention.