Dynare Theoretical moments Nan

I tried to write a code of a model that I found in Sosunov,Zamulin 2007 "Monetary Policy in an Economy sick with Dutch Disease". Unfortunately, I got infinite moments of some variables( 5).
Please, look at my code and I will appreciate any suggestions
Thank you in advance
Please, look at my code and I will appreciate any suggestions
Thank you in advance