Error message that says a variable r has been declared twice


I am trying to run my mod file and I get the following error,

Configuring Dynare …
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.

Starting Dynare (version 4.2.5).
Starting preprocessing of the model file …
ERROR: MPFP.mod:6.12-104: Symbol r declared twice with different types!

??? Error using ==> dynare at 114
DYNARE: preprocessing failed
MPFP.mod (2.07 KB)

  1. In the 6th row, there should not be a space between ‘rho_’ and ‘r’;

  2. There should be an ‘end’ before the ‘initval’ section, and you type the ‘initval’ wrong.

  3. There are convergence problems, thus recheck the correctness of model and initial conditons again.