Matrix is singular to working precision problem

It seems the fundamental problem is the same one as at

Have a look at the attached file where I reduced the crazy tolerance you set, increased periods and substituted in for the Lagrange multiplier.
Dynare_forum.mod (11.9 KB)