I am trying to simulate three-agent NK-DSGE model but dynare keeps failing

Dynare states that

EIGENVALUES:

Modulus Real Imaginary

```
2.287e-16 2.287e-16 0
4.045e-14 -4.045e-14 0
9.192e-10 -9.192e-10 0
9.192e-10 9.192e-10 0
0.606 0.606 0
0.8794 0.8794 0
0.948 0.9448 0.07763
0.948 0.9448 -0.07763
0.95 0.95 0
1.01 1.01 0
1.011 1.011 0
1.106 1.105 0.05568
1.106 1.105 -0.05568
1.215 1.215 0
39.25 39.25 0
Inf Inf 0
Inf Inf 0
```

There are 8 eigenvalue(s) larger than 1 in modulus

for 8 forward-looking variable(s)

The rank condition ISN’T verified!

MODEL_DIAGNOSTICS: No obvious problems with this mod-file were detected.

In my knowledge, BK condition requires equal number of unstable eigenvalues and jump variables and my model have same number of both objects.

I cannot find where the problem comes from. Please help me.

execution.m (1.8 KB)

thrank_nonlin.mod (4.5 KB)