Rotemberg model with third-order approximation

Dear All,

I’m working on a medium-scale DSGE model with Rotemberg price and wage adjustment costs. The model features stochastic volatility. When I try to solve it using pruning, the error message below appears. Any tips on how to handle this issue?

Any help is greatly appreciated!

Error using *
Incorrect dimensions for matrix multiplication. Check that the number of columns in the first matrix matches the number of rows in the second matrix. To operate on each element of the matrix
individually, use TIMES (.*) for elementwise multiplication.

Error in **\[pruned_SS.pruned_state_space_system\](matlab:matlab.lang.internal.introspective.errorDocCallback $'pruned_SS.pruned_state_space_system', 'C:\dynare\6.5\matlab\+pruned_SS\pruned_state_space_system.m', 724$)** (\[line 724\](matlab: opentoline $'C:\dynare\6.5\matlab\+pruned_SS\pruned_state_space_system.m',724,0$))
B(id_z6_xf_xf_xf , id_inov5_xf_xf_u) = hx_hx_hu + kron(hx,K_x_x\*hx_hu) + hu_hx_hx\*K_u_xx;
^
Error in **\[disp_th_moments_pruned_state_space\](matlab:matlab.lang.internal.introspective.errorDocCallback $'disp_th_moments_pruned_state_space', 'C:\dynare\6.5\matlab\moments\disp_th_moments_pruned_state_space.m', 55$)** (\[line 55\](matlab: opentoline $'C:\dynare\6.5\matlab\moments\disp_th_moments_pruned_state_space.m',55,0$))
pruned_state_space = pruned_SS.pruned_state_space_system(M\_, options\_, dr, obs_var, options\_.ar, 1, 0);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in **\[stoch_simul\](matlab:matlab.lang.internal.introspective.errorDocCallback $'stoch_simul', 'C:\dynare\6.5\matlab\stochastic_solver\stoch_simul.m', 210$)** (\[line 210\](matlab: opentoline $'C:\dynare\6.5\matlab\stochastic_solver\stoch_simul.m',210,0$))
oo\_=disp_th_moments_pruned_state_space(oo\_.dr,M\_,options\_,i_var,oo\_);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in **\[RA_NoUnemp_Rotemberg.driver\](matlab:matlab.lang.internal.introspective.errorDocCallback $'RA_NoUnemp_Rotemberg.driver', 'C:\Users\julio\Downloads\+RA_NoUnemp_Rotemberg\driver.m', 1090$)** (\[line 1090\](matlab: opentoline $'C:\Users\julio\Downloads\+RA_NoUnemp_Rotemberg\driver.m',1090,0$))
\[info, oo\_, options\_, M\_\] = stoch_simul(M\_, options\_, oo\_, var_list\_);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in **\[dynare\](matlab:matlab.lang.internal.introspective.errorDocCallback $'dynare', 'C:\dynare\6.5\matlab\dynare.m', 306$)** (\[line 306\](matlab: opentoline $'C:\dynare\6.5\matlab\dynare.m',306,0$))
evalin(‘base’,\[fname ‘.driver’\]);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
**[Related documentation](matlab:helpview\('matlab','error_innerdim'\))**

That looks like a bug. I would need to see the codes.