Dynare failed to do the deterministic simulation

Dear Prof. Pfeifer,
I am trying to solve perfect foresight model, but dynare failed to solve it. Even with brute force robust_lin_solve, I find it really hard to do the deterministic simulation. How can I improve it or is there any possible wrong with my model?
Thank you very much!
greenTech.mod (5.5 KB)
greenTech_steadystate.m (5.1 KB)
dss.m (1.6 KB)
nss.m (226 Bytes)

It’s hard to tell what is going on. But even using linear_approximation fails, indicating a problem in the Newton step. Have you tried whether a simpler version works?
That being said, using lmmcp seems to solve the simulation.