Collard - Smets - Boissay

Hi every body.
I’m trying to write code of the model proposed by Collard, Smets and Boissay with a little modification done by me, witha deepen flop.
The problem is that for some reason some values of the variables at the steady state are zero ore Nan, and i’m couldn’t understand the reasons
I upload my starting code and the link where find the text with my modification.
There are someone that could help me, please?
BaseUnifNT.mod (2.72 KB) … -23-46.pdf
look at this for the text

Several equations of your model are clearly not linear. Your second equation for example has a k raised to the power of something.