The error complains about a calling to jtimes

I’ve read the this topics.But,maybe it’s different.
MHE using algebraic variables - User Questions - acados forum

look forward to your reply.

One really can’t say anything without knowing what you put in as a model and cost expression.