Residuals of SS equations in Bayesian estimation


When running the attached Bayesian estimation file, I receive an error message which shows that several of the residuals of the equations (in the SS) are not zero. For instance, the residuals of equations 42 and 43 are 0.094061.
However, when I only run the SS file, and save the values of all the variables in equations 42 and 43, the residuals are actually 0 (please see the attached Excel file).
Any suggestions would be more than welcome!

Thank you,

Please write a proper steady state file that assures that the variables are passed back to Dynare in the correct order. An example is the NK_baseline_steady_state.m in the Dynare examples folder

Thanks, I change the order, now it works!