The rank condition is not verified

Hello, I'm working on an OLG model with dynare and get the message that the rank condition is not verified.
I worked on that for days but didn't fix it, could anyone help on this ?
The codes are attached.
I worked on that for days but didn't fix it, could anyone help on this ?
The codes are attached.