5-period OLG modle with labor and production

Hello! This is M. Kim.
I am currently working on 5-period OLG model with labor and production. And this is my first time to use Dynare.
I want to do deterministic simulation with my model. (I already computed steady states values by hand.)
I think that I rightly put variables, model, initial values for computing steady state, etc. (see the attached mod file), but I have got error message, “impossible to find the steady state, Either the model doesn’t have a steady state, there are an infinity of steady states, or the guess values are too far from the solution.”
Could you please let me know the way to fix this problem?

Best wishes,

M. Kim
fourone.mod (3.24 KB)

An imminent problem is

MODEL_DIAGNOSTICS: The following endogenous variables aren't present at the current period in the model: k2 k3 k4 k5
Also, put resid(1);
before steady to see the residuals:

[code]Residuals of the static equations:

Equation number 1 : 2e-05
Equation number 2 : 0
Equation number 3 : 2.8041e-05
Equation number 4 : 5e-06
Equation number 5 : 1.221e-06
Equation number 6 : 0.053889
Equation number 7 : 1.5974e-05
Equation number 8 : -3.6841e-05
Equation number 9 : -0.0010961
Equation number 10 : -0.0023041
Equation number 11 : -0.0032644
Equation number 12 : -0.007889
Equation number 13 : -5.0159e-05
Equation number 14 : -8.0987e-05
Equation number 15 : 1.5831e-05
Equation number 16 : -5510.735
Equation number 17 : -2505.934
Equation number 18 : -1239.7543
Equation number 19 : -669.5531
Equation number 20 : 4.78e-05[/code]

Equations with big residuals are the ones to focus on. The unstable version of Dynare is nevertheless able to find steady state:

[quote]
STEADY-STATE RESULTS:

Y 0.103462
c1 0.094031
c2 0.101281
c3 0.10909
c4 0.0805531
c5 0.0969894
k2 0.0201647
k3 0.0403336
k4 0.0588342
k5 0.0450634
n1 0.377809
n2 0.329837
n3 0.278166
K 0.0328792
N 0.197162
w 0.335842
r 1.07882
B 0.00331077
C 0.0963889
i 0.00177548[/quote]