SOE Model Help

Hi experts,

I’m using dynare to solve Bianca de Paoli model: MONETARY POLICY AND WELFARE IN A SMALL OPEN ECONOMY. in levels, and I’m using ramsey, but it doesn’t work.
Could someone help me please!!!
I attached the .mod file.
Thanks in advance for your help,

Bianca10.mod (3.91 KB)

Place the definitions of miu_bar, l and phis before the definition of lx1 and it will work.