Has anyone seen this error message when running a Dynare deterministic simulation?

I do not understand which matrix dimensions do not agree. The number of equations is equal to the number of variables. The initval and endval block contain a value for all endogenous and exogenous variables.

Thank you!

Error using /

Matrix dimensions must agree.

Error in lnsrch1 (line 82)

alamin = tolx/test ;

Error in solve1 (line 107)

[x,f,fvec,check]=lnsrch1(xold,fold,g,p,stpmax,func,j1,j2,varargin{:});

Error in dynare_solve (line 150)

[x,info]=solve1(func,x,j1(r(i):r(i+1)-1),j2(r(i):r(i+1)-1),jacobian_flag, …

Error in evaluate_steady_state (line 66)

[ys,check] = dynare_solve([M.fname '*static’],…
Error in steady* (line 54)

[steady_state,params,info] =

evaluate_steady_state(oo_.steady_state,M_,options_,oo_,~options_.steadystate.nocheck);

Error in steady (line 81)

[steady_state,M_.params,info] = steady_(M_,options_,oo_);

Error in SAdet (line 641)

steady;

Error in dynare (line 180)

evalin(‘base’,fname) ;