Error with second order perturbation


I have been using Dynare to solve a model through second order perturbations. Sometimes I am able to get to the solution, but from every now and then the following error message appears when invoking stoch_simul:

??? Error using ==> gensylv
èÄÿ1At gensylv/cc/Vector.cpp:101:Attempt to assign overlapping vectors.

Error in ==> dr1 at 443
dr.ghxx = gensylv(2,A,B,C,D);

Error in ==> resol at 48
[dr,info] = dr1(dr,check_flag);

Error in ==> stoch_simul at 46
[dr_, info] = resol(ys_,0);

Error in ==> EZ_Yields at 428

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

I am using Dynare on the latest Mac OS with Matlab 2007b.

Any help would be much appreciated.



Hi Andreas,

What is the version of your Mac OS ?

What is your architecture (ppc or intel) ?

You can delete the mex file (in dynare_v4/mex/2007b), Dynare will use matlab codes to solve the sylvester equation (obviously stoch_simul will be a bit slower, it depends on the size of your model).


Hi Stephane,

My version of Mac OS is 10.5.2 on an Intel Core Duo.

I’ll try your suggestion. The model is not so big, so it should not be a big deal if it slows down a bit the computations.

Let me know if any fix is found for this problem.