Error in ==> dynare at 132

My apologies if this has been dealt with already. I found similar threads, but not exactly error 132. Can anyone see what the problem is here?

dynare ireland_8May1331

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.1.0).
Starting preprocessing of the model file …
Found 22 equation(s).
Evaluating expressions…done
Computing static model derivatives:

  • order 1
    Computing dynamic model derivatives:
  • order 1
  • order 2
    Processing outputs …done
    Preprocessing completed.
    Starting MATLAB/Octave computing.

??? Error: File: C:\MATLAB7\work\test.m Line: 217 Column: 1
Missing variable or function.

Error in ==> dynare at 132
evalin(‘base’,fname) ;
ireland_8May1331.mod (6.56 KB)

Hi,
you have two obvious issues:

  1. The nested comment

in line 30 must be deleted
2. rhog_i is not set in the parameter section, hence the steady state computation fails.

Thanks so much! I’ve fixed those errors and now get the more promising, but not yet good enough:

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.1.0).
Starting preprocessing of the model file …
Found 25 equation(s).
Evaluating expressions…done
Computing static model derivatives:

  • order 1
    Computing dynamic model derivatives:
  • order 1
    Processing outputs …done
    Preprocessing completed.
    Starting MATLAB/Octave computing.

Residual for equation number 1 is equal to NaN
Residual for equation number 2 is equal to NaN
Residual for equation number 3 is equal to NaN
Residual for equation number 4 is equal to NaN
Residual for equation number 5 is equal to NaN
Residual for equation number 6 is equal to NaN
Residual for equation number 7 is equal to NaN
Residual for equation number 8 is equal to -2.5824
Residual for equation number 9 is equal to NaN
Residual for equation number 10 is equal to -0.7704
Residual for equation number 11 is equal to -0.32319
Residual for equation number 12 is equal to 0
Residual for equation number 13 is equal to NaN
Residual for equation number 14 is equal to 0
Residual for equation number 15 is equal to 0
Residual for equation number 16 is equal to 0
Residual for equation number 17 is equal to 0
Residual for equation number 18 is equal to 0
Residual for equation number 19 is equal to 0
Residual for equation number 20 is equal to 0
Residual for equation number 21 is equal to 0
Residual for equation number 22 is equal to 0
Residual for equation number 23 is equal to NaN
Residual for equation number 24 is equal to NaN
Residual for equation number 25 is equal to NaN

STEADY: numerical initial values incompatible with the following equations
1 2 3 4 5 6 7 9 13 23 24 25

??? Error using ==> dynare_solve
exiting …

Error in ==> steady_ at 124
[oo_.steady_state,check] = dynare_solve([M_.fname ‘_static’],…

Error in ==> steady at 52
steady_;

Error in ==> test at 291
steady;

Error in ==> dynare at 132
evalin(‘base’,fname) ;
ireland_8May2146.mod (7.65 KB)

Hi,
you again did the mistake that you used a variable in a computation before it was defined. This time it is in the initval statement. You have line 101-102

i_c = (conag*conzg_i - 1 + del_c)*k_c; i_i = (conag*conzg_i - 1 + del_i)*k_i;
but k_c and k_i are only defined in lines 111-112

k_c = (1-theta_i)*conag*conzg_i*(gc - beta*gamma)/(gc-gamma)*(theta_c*(conag*conzg_i - beta*(1-del_i)))/(theta_i*(conag*conzg_i - beta*(1-del_c)))*(beta*theta_i/(conag*conzg_i - beta*(1-del_i)))^(1/(1-theta_i)); k_i = (beta*theta_i*(conag*conzg_i-1+del_c)/(conag*conzg_i - beta*(1-del_i) - beta*theta_i*(conag*conzg_i -1 +del_i)))*k_c;

jpfeifer, you are amazing. Thanks :slight_smile: