# Error: The steady state has NaNs or Inf

**URL:** https://forum.dynare.org/t/error-the-steady-state-has-nans-or-inf/15621
**Category:** Steady state
**Created:** [18 April 2020 21:29 UTC](https://forum.dynare.org/t/error-the-steady-state-has-nans-or-inf/15621 "2020-04-18T21:29:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Anakin\_04](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/e9bcb4/32.png) [@Anakin\_04](https://forum.dynare.org/u/Anakin_04)
#### Post date: [18 April 2020 21:29 UTC](https://forum.dynare.org/t/error-the-steady-state-has-nans-or-inf/15621/1 "2020-04-18T21:29:51Z")

</div>

Dear professor,

I’m new in dynare and I’m having trouble with the attached .mod file. When I run the model, it does calculate the values, but it jumps out the following message: “error: The steady state has NaNs or Inf.” whit a huge bunch of warnings. Could you help me?

Thank you very much.

Ivan

[Prueba1\_Macro1\_PD.mod](https://forum.dynare.org/uploads/short-url/1rvfbnNRTjfSOWZB8UmaWrJGJAN.mod) (2.2 KB)

---

<div class="post-metadata">

### Author: ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)
#### Post date: [19 April 2020 08:43 UTC](https://forum.dynare.org/t/error-the-steady-state-has-nans-or-inf/15621/2 "2020-04-19T08:43:26Z")

</div>

Your exogenous processes are inconsistently defined. Sometimes you are correctly using an `exp()`-substitution, sometimes not. Only do an exp-substitution once the model works.  
I would recommend going for option 3 at

> [@Question about understanding irfs in dynare](https://forum.dynare.org/t/question-about-understanding-irfs-in-dynare/10622/4):
>
> To be more precise: it depends on how the variables in your model are measured. As @stepan-a says, Dynare conducts a linearization. If you for example have a nonlinear model and your model variable is simply the level of output, the IRF will measure the difference between the variable and its steady state (or its mean at higher order). This is the case with [https://github.com/DynareTeam/dynare/blob/master/examples/example1.mod](https://github.com/DynareTeam/dynare/blob/master/examples/example1.mod) In contrast, if your model variable already measures percentage…
