Error when running the OSR example in octave

Created by: felipeboralli

When trying to run the Optimal simple rule example from the documentation, an error was generated in Octave. GNU Octave, version 3.8.1 "i686-w64-mingw32". Dynare unstable (version 2016-08-23).

Example run(the same in the documentation):

var y inflation r; 
varexo y_ inf_;

parameters delta sigma alpha kappa gammarr gammax0 gammac0 gamma_y_ gamma_inf_;

delta =  0.44;
kappa =  0.18;
alpha =  0.48;
sigma = -0.06;

gammarr = 0;
gammax0 = 0.2;
gammac0 = 1.5;
gamma_y_ = 8;
gamma_inf_ = 3;

model(linear); 
y  = delta * y(-1)  + (1-delta)*y(+1)+sigma *(r - inflation(+1)) + y_;
inflation  =   alpha * inflation(-1) + (1-alpha) * inflation(+1) + kappa*y + inf_;
r = gammax0*y(-1)+gammac0*inflation(-1)+gamma_y_*y_+gamma_inf_*inf_; 
end;

shocks; 
var y_; stderr 0.63; 
var inf_; stderr 0.4; 
end;

optim_weights; 
inflation 1; 
y 1; 
y, inflation 0.5; 
end;

osr_params gammax0 gammac0 gamma_y_ gamma_inf_; 
osr y; 

Output with error:

>> dynare vtest

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Local state space iteration (second order).
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
[mex] Quasi Monte-Carlo sequence (Sobol).
[mex] Markov Switching SBVAR.

Using 32-bit preprocessor
Starting Dynare (version 2016-08-23).
Starting preprocessing of the model file ...
Found 3 equation(s).
Evaluating expressions...done
Computing static model derivatives:
 - order 1
Computing dynamic model derivatives:
 - order 1
 - order 2
Processing outputs ...
done
Preprocessing completed.

error: strmatch: S must be a string
error: called from:
error:   [redacted]\octave-3.8.1\share\octave\3.8.1\m\strings\strmatch.m at line 61, column 5
error:   [redacted]\dynare-2016-08-23-win\matlab\osr.m at line 54, column 17
error:   [redacted]\vtest.m at line 164, column 9
error:   [redacted]\dynare-2016-08-23-win\matlab\dynare.m at line 223, column 1