Replication of a paper - failure

Dear all,
Attached a paper I wanna replicate and my dynare code. I tried lot of tentatives to obtain the same IRFs but still have the following error message “The steady state has NaNs or Inf.”.

Could someone please help me to find the source of the error.

For your info, I run the mod file directly from the shell matlab file. ans the error is at the level of stochastic simul (line 278)
14_2023.LMV.pdf (1.1 MB)
shell.m (6.3 KB)
model.mod (11.7 KB)

Thank you in advance.

You should put resid; after initval to see that many equations show NaN residuals. This usually suggests a problem in the initialization of variables. You should assign values for all non-zero variables.

Thank you very much Professor