# The steadystate file did not compute the steady state

**URL:** <https://forum.dynare.org/t/the-steadystate-file-did-not-compute-the-steady-state/4517>\
**Category:** Dynare help (legacy posts)\
**Created:** [27 February 2015 15:36 UTC](https://forum.dynare.org/t/the-steadystate-file-did-not-compute-the-steady-state/4517 "2015-02-27T15:36:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![asha1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/90ced4/32.png) [@asha1](https://forum.dynare.org/u/asha1)\
**Post date:** [27 February 2015 15:36 UTC](https://forum.dynare.org/t/the-steadystate-file-did-not-compute-the-steady-state/4517/1 "2015-02-27T15:36:29Z")

</div>

Dear colleagues,

I receive this error “The steadystate file did not compute the steady state” when I run dynare, but all my Residuals of the static equations are 0.  
Does anybody have a clue of the origin of the error I get? I uploaded the code. The main file is dyn\_main.mod.

Thank you so much for your help.  
[asha1.zip](https://forum.dynare.org/uploads/default/original/2X/2/2d75e3248ca24aaf0f4613452043460fc6a394d1.zip) (16.7 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:** [28 February 2015 16:55 UTC](https://forum.dynare.org/t/the-steadystate-file-did-not-compute-the-steady-state/4517/2 "2015-02-28T16:55:59Z")

</div>

Please provide the full codes.

---

<div class="post-metadata">

**Author:** ![asha1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/90ced4/32.png) [@asha1](https://forum.dynare.org/u/asha1)\
**Post date:** [3 March 2015 10:07 UTC](https://forum.dynare.org/t/the-steadystate-file-did-not-compute-the-steady-state/4517/3 "2015-03-03T10:07:23Z")

</div>

Jpfeifer, I have just updated my question with the full code.

Thank you so much.

---

<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:** [4 March 2015 12:50 UTC](https://forum.dynare.org/t/the-steadystate-file-did-not-compute-the-steady-state/4517/4 "2015-03-04T12:50:04Z")

</div>

You still did not provide a running code. There are several functions missing like e.g. sseqs and the external functions

---

<div class="post-metadata">

**Author:** ![asha1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/90ced4/32.png) [@asha1](https://forum.dynare.org/u/asha1)\
**Post date:** [5 March 2015 10:37 UTC](https://forum.dynare.org/t/the-steadystate-file-did-not-compute-the-steady-state/4517/5 "2015-03-05T10:37:14Z")

</div>

… Please, find the zip file with the full code. I tried and I think I did not forget any file this time… Thank you and sorry.

---

<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:** [8 March 2015 08:35 UTC](https://forum.dynare.org/t/the-steadystate-file-did-not-compute-the-steady-state/4517/6 "2015-03-08T08:35:40Z")

</div>

The reason is that your function

```auto

```

tries to access oo\_.steady\_state before it has been set by Dynare. In contrast, the computation of residuals happens after oo\_.steady\_state has been updated. You need to get rid of this circular definition.

---

<div class="post-metadata">

**Author:** ![asha1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/90ced4/32.png) [@asha1](https://forum.dynare.org/u/asha1)\
**Post date:** [27 March 2015 12:03 UTC](https://forum.dynare.org/t/the-steadystate-file-did-not-compute-the-steady-state/4517/7 "2015-03-27T12:03:15Z")

</div>

Dear JPFeifer,  
Thank you for all your help… I did not reply before because I am still trying to solve the problem you managed to find in my code.
