Error mesages - error in vertcat

Hello,

I’m running a very simple model and getting a error in the estimation step.

After some iterations of the optimization, I get the following error mesage. I really don’t how to solve it.

Error using vertcat
Dimensions of matrices being concatenated are not consistent.

I’m pasting my code below.

Thanks in advance for the help!
Rodrigo de Sá

var pimit ons y u ma;
varexo e_u e_ons;

parameters y0 beta rho1 phi1 phi4 ons0 nu;

model(linear);

pimit = 0.25*y + 0.25*y(-1) + 0.25*y(-2) + 0.25*y(-3);
y = y0 + beta*ons + u;
u = rho1 * u(-1) +  phi1*ma(-1) + phi4*ma(-4) + ma;
ma = e_u;
ons = ons0 + nu*ons(-1) + e_ons;

end;

y0 = 65;
beta = 0.23;
rho1 = 0.5;
phi1 = 0;
phi4 = 0;
ons0 = 0;
nu = 0.98;

steady; resid;

estimated_params;

y0, 65,  uniform_pdf, 0, 200;
beta, 0.23, uniform_pdf, , ,0,2 ;
rho1, 0.5, uniform_pdf, , , 0,1 ;
phi1, 0, uniform_pdf, , , -1, 1;
phi4, 0, uniform_pdf, , , -1, 1;
ons0, 0,  uniform_pdf, -100, 100;
nu, 0.5, uniform_pdf, , , 0,1 ;

stderr e_u, 1, uniform_pdf, , , 0, 10;
stderr e_ons, 1, uniform_pdf, , , 0, 10;

end;


varobs pimit ons;

estimation(mode_compute = 8,
    mode_check,
    lik_init = 3,
    mh_replic = 10000,
    mh_nblocks = 1,
    mh_jscale = 0.5,
    mh_drop = 0.3,
    datafile = 'DataONS.mat',
    graph_format = fig) pimit ons;

DataONS.mat (6.4 KB)

That is caused by a bug in the mode-finder. See https://github.com/DynareTeam/dynare/pull/1624
Try a different mode_compute