Error in theoretical autocovariance using moments varendo

Hello everyone,

I am running a Bayesian estimation of a model similar to Smets and Wouters (2007). Everything goes well, except when I use moments_varendo and conditional_variance_decomposition I get the following error message (occurring after the display of estimation results):

Subscripted assignment dimension mismatch.

Error in th_autocovariances (line 83)
ghu1(i0,:slight_smile: = ghu(ikx,:);

Error in dsge_simulated_theoretical_covariance (line 103)
tmp = th_autocovariances(dr,ivar,M_,options_,nodecomposition);

Error in posterior_analysis>job (line 54)
[nvar,vartan,NumberOfFiles] = …

Error in posterior_analysis (line 32)
oo_ = job(type,SampleSize,arg1,arg2,arg3,options_,M_,oo_);

Error in compute_moments_varendo (line 68)
oo_ =

Error in dynare_estimation_1 (line 835)
oo_ = compute_moments_varendo(‘posterior’,options_,M_,oo_,var_list_);

Error in dynare_estimation (line 84)

Error in JPT2010a (line 444)

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

Can someone help?
ST.rar (10.2 KB)

Please try the most recent unstable version. There it seems to work.