# Residuals are zero but dynare cant find steady states

hi,
I have a model that I compute steady states analytically.
my residuals almost are zero, but the model can not find steady states.
non_linear.mod (4.3 KB)

It seems your model features a unit root in`M`. In this case, there are infinitely many steady state and you typically cannot endogenously compute one of them. You need to provide one.

BUT I solve steady state analytically.I have two questions:
1)My analyticall steady state says that I have two steady state.when I provide one of them in dynare,it can not compute the steady state.
2)in my previous code that i upload,I use one of my steady states that i reach analytically for them.
how to fix this unit root problem?
please provide more detail that i know how to fix this problem???

Because my steady states return sum of residuals zero,then it say my equations and steady states not wrong.
If its wrong,tell to me.and provide some mateials to fix this problem.
With very very thanks professor

Clearly, your residuals are not zero:

``````Residuals of the static equations:
Equation number 1 : 0.00031154 : Y
Equation number 2 : -0.00041536 : K
Equation number 3 : 7.2504e-05 : C
Equation number 4 : -0.00031695 : w
Equation number 5 : -0.00027404 : M
Equation number 6 : 0.00061637 : 6
Equation number 7 : 0.00061561 : N
Equation number 8 : -0.00030365 : r
Equation number 9 : 4.0966e-06 : P_e
Equation number 10 : 0.0025957 : pay_tild
Equation number 11 : 0.00018831 : e_h
Equation number 12 : 0.00020951 : 12
Equation number 13 : 9.9867e-06 : 13
Equation number 14 : -0.00011699 : 14
Equation number 15 : -0.00038708 : i
Equation number 16 : 0.000676 : G
Equation number 17 : 2.8782e-05 : V
Equation number 18 : -0.00023695 : 18
``````