Parameters are not initialized,The steady state contains NaN or Inf

Dear all professors,

When I run cash-in-advance model, I met following problems:

Warning: Some of the parameters have no value…
Error using print_info (line 32)
The steady state has NaNs or Inf.

I define the parameter definitions in a sequential way and residual is zero. Could anyone help me out?
CIA.mod (2.5 KB)

  1. That’s because you have a clear in the file that does not belong there.
  2. Now there is a problem with paibar being 0 and therefore a variable dropping out.

Thank you professor!
CIA.mod (2.4 KB)
Now I modified paibar = gbar which exclude zero. But dynare tell me that BK condition is not satisfied. Is there something wrong with my calibration?

I found the solution.
I should write p-p(-1) = pai-g; rather than p(+1)-p = pai(+1)-g(+1)