Can someone help me to check the code for RBC model?

I try to run the code for RBC model. But it said

There are 4 eigenvalue(s) larger than 1 in modulus for 7 forward-looking variable(s)
The rank condition isn’t verified…

I check all next period variables’ c(+1), k(+1), mu(+1),…

Can someone help to check??
final.mod (1.36 KB)

Apparently, you did not check the timing. Capital in your model is predetermined. Either truly use Dynare’s stock at the end of period notation or the predetermined_variables command. I guess there is another predetermined state in your model as well.