RBC_Est.mod problem

hello,
i have some trouble in running RBC_Est.mod in the dynare user gide, i got the following error message:

??? Error using ==> chol
Matrix must be positive definite.
Error in ==> metropolis_hastings_initialization at 52
d = chol(vv);

Error in ==> random_walk_metropolis_hastings at 43
ix2, ilogpo2, ModelName, MhDirectoryName, fblck,
fline, npar, nblck, nruns, NewFile, MAX_nruns, d ] =

Error in ==> dynare_estimation_1 at 1057
feval(options_.posterior_sampling_method,‘DsgeLikelihood’,options_.proposal_distribution,xparam1,invhess,bounds,gend,data,…

Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});

Error in ==> RBC_Est at 133
dynare_estimation(var_list_);

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

this is the .mod file:

var y c k i l y_l w r z;
varexo e;
parameters beta psi delta alpha rho epsilon;

model;
(1/c) = beta*(1/c(+1))(1+r(+1)-delta);
psi
c/(1-l) = w;
c+i = y;
y = (k(-1)^alpha)(exp(z)l)^(1-alpha);
w = y
((epsilon-1)/epsilon)
(1-alpha)/l;
r = y*((epsilon-1)/epsilon)*alpha/k(-1);
i = k-(1-delta)k(-1);
y_l = y/l;
z = rho
z(-1)+e;
end;

varobs y;

initval;
k = 9;
c = 0.76;
l = 0.3;
w = 2.07;
r = 0.03;
z = 0;
e = 0;
end;

estimated_params;
alpha, beta_pdf, 0.35, 0.02;
beta, beta_pdf, 0.99, 0.002;
delta, beta_pdf, 0.025, 0.003;
psi, gamma_pdf, 1.75, 0.02;
rho, beta_pdf, 0.95, 0.05;
epsilon, gamma_pdf, 10, 0.003;
stderr e, inv_gamma_pdf, 0.01, inf;
end;

estimation(datafile=simuldataRBC,nobs=200,first_obs=500,mh_replic=2000,mh_nblocks=2,mh_drop=0.45,mh_jscale=0.8);

thanks in advance for any help

If you want to delve into the theoretical underpinnings of the problem, look into Gill/King (2004): Numerical Issues Involved
in Inverting Hessian Matrices (gking.harvard.edu/files/numhess.pdf).
To circumvent them, you could use the option

mode_compute=6 in the estimation command (see dynare.org/DynareWiki/MonteCarloOptimization and various forum posts).

thank you very much, it runs!!!