Thank you for your time to reading my problems:

When I run the dynare to simulate my model ,these problems as follow occured:

Error using print_info (line 49)

The Jacobian matrix evaluated at the steady state contains elements that are not real or are infinite

Error in stoch_simul (line 81)

print_info(info, options_.noprint);

Error in FE (line 300)

info = stoch_simul(var_list_);

Error in dynare (line 120)

evalin(‘base’,fname) ;

Can U tell me the cause for this problems?

my mod file is uplodded.

is there problem with my parameters’ values?

FE.mod (2.45 KB)

Yes, your steady state value parameters are totally wrong. Both capital and labor are negative. Hence, when you compute

```
y_st = (k_st^(1-alpha))*(l_st^alpha)-m_fst;
```

You end up with a complex number because you take a root of a negative number.

GKOPEN1feb9.mod (17.3 KB)Dear jpfeifer,

I am running the Gertler and Karadi model11, it works well for a closed economy, however when I opened it, and include a couple of equations more, it seems there is a problem with the Jacobian matrix, I got this message:

Error using print_info (line 51)

The Jacobian matrix evaluated at the steady state contains elements that are not real or are infinite

Error in check (line 76)

print_info(info, 0, options);

Error in GKOPEN1feb9 (line 490)

oo_.dr.eigval = check(M_,options_,oo_);

Error in dynare (line 180)

evalin(‘base’,fname) ;

Would you mind give me some advice, I have no idea how I should solve the problem. I have been looking in the M_.params but I can see any parameter with NAN. I have read a couple of case in the forum, but I cannot figure out which equation is making a mess in my model. Any help you can give will be grateful.

Best,

alfaomega