Permanent deterministic simulation

Hello,
I am trying to run a permanent deterministic simulation in Dynare, but I keep getting the following error message: matrix close to singular, so there is no path found by Dynare between the two steady states. The same model is working properly when doing stochastic simulation or a temporary deterministic simulation. Could you please have a look at the attached code and give me some comments?
Thank you!
I am trying to run a permanent deterministic simulation in Dynare, but I keep getting the following error message: matrix close to singular, so there is no path found by Dynare between the two steady states. The same model is working properly when doing stochastic simulation or a temporary deterministic simulation. Could you please have a look at the attached code and give me some comments?
Thank you!