Error using extended path

Hello everyone!

I need to use extended path command to simulate a DSGE model for my thesis. The code can be run well using stoch_simul in dynare 4.4.3, but now my director needs me to use extended path to run the same codes and same deterministic model, as preparation for next step. However I got the following message. Can someone help me how to solve the probelms?
Error using chol
Matrix must be positive definite.

Error in setup_stochastic_perfect_foresight_model_solver (line 23)
pfm.Omega = chol(pfm.Sigma,‘upper’); % Sigma = Omega’*Omega

Error in extended_path (line 39)
pfm = setup_stochastic_perfect_foresight_model_solver(M_,options_,oo_,‘Tensor-Gaussian-Quadrature’);

Error in BKKexp (line 1253)
extended_path([], 100);

Error in dynare (line 180)
evalin(‘base’,fname) ;

Error in runBKK(lime 28)
dynare BKKexp nowarn

Any idea is appreciated so much and thanks in advance!

Which Dynare version are you using? Also, provide the mod-file.

Thank you for reply! I think there are some mistakes and I have corrected them. I used 4.4.3 version before and now I use 4.7 unstable version and run it successfully. I am very sorry that this mod-file is from my director and can’t be circulated here.

Now I want to draw IRFs using the result from extended path, if you can tell me how to do this I will appreciate it very much!

See Impuse response figure