Help with determining an error while running check

Hi

I am working on a DSGE model, and Dynare can find the steady state, however after that we get the following error message:
Error in ==> dyn_first_order_solver at 114
e(1:sdyn,k1) = -b2(:,kstate(k1,1)-nstatic);

Error in ==> stochastic_solvers at 172
[dr,info] = dyn_first_order_solver(jacobia_,M_,dr,options_,task);

Error in ==> resol at 118
[dr,info] = stochastic_solvers(dr,check_flag,M,options,oo);

Error in ==> check at 71
[dr,info,M,options,oo] = resol(1,M,options,oo);

Error in ==> capitalflowsv1exss at 561
check(M_,options_,oo_);

Error in ==> dynare at 120
evalin(‘base’,fname) ;

I am not familiar with the underlying programs behind dynare so don’t have any hope of fixing this, so any help would be appreciated.

Thanks

This may be a bug in Dynare. Please post your MOD file to help debug this. Also, which version of Dynare are you using?