Assertion failed

Dear professor, I hope you can answer my questions in your busy schedule. I refer to the article a model of unconventional montary policy. On this basis, I divide K into direct financing and indirect financing (S), the ratio of the two is theta, and it serves as a shock. When I proceeded to the last step, the assertion failed when the error was reported. May I ask why this happens, and the professor can advise me. I don’t know if the program is wrong, please take a look at it.Untitled2.mod (6.7 KB)

When I run your code, I get

Unrecognized function or variable ‘shock_psi_ss’.

and indeed, shock_psi_ss is not defined.

new.mod (6.7 KB) Professor, this is my modified mod file. The error is: The steady state has NaNs or Inf.
Error stoch_simul (line 103)
print_info(info, options_.noprint, options_);
Error Untitled1.driver (line 529)
[info, oo_, options_, M_] = stoch_simul(M_, options_, oo_, var_list_);
Error dynare (line 293)
evalin(‘base’,[fname’.driver’]);
I don’t know what I need to do to get the result