Matrix is close to singular value, or scaling error

dear all:
I can’t find the steady state of my model. Could you help me?
oceansink.mod (8.1 KB)
myfunction.m (120 Bytes)

Using 64-bit preprocessor
Starting Dynare (version 4.6.4).
Calling Dynare with arguments: none
Starting preprocessing of the model file …
Found 39 equation(s).
Evaluating expressions…done
Computing static model derivatives (order 1).
Computing dynamic model derivatives (order 1).
Processing outputs …
done
Preprocessing completed.

Randomize initial guess…
DYNARE_SOLVE (solve_algo=2|4): number of blocks = 9
DYNARE_SOLVE (solve_algo=2|4): solving block 8, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 7, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 6, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 5, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 4, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 3, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 2, of size 32

Can you please explain what this means and what I can do about it? Thank you so much!

Your initial values cannot be sequentially computed. r depends on lamda2, which is only computed later.

thanks professor!there must be something wrong with equations,i will check it soon!

dear professor,i modified the codes but still have problems.why still remains NaNs?

Using 64-bit preprocessor
Starting Dynare (version 4.6.4).
Calling Dynare with arguments: none
Starting preprocessing of the model file …
Found 41 equation(s).
Evaluating expressions…done
Computing static model derivatives (order 1).
Computing dynamic model derivatives (order 1).
Processing outputs …
done
Preprocessing completed.

MODEL_DIAGNOSTICS: The steady state cannot be computed
MODEL_DIAGNOSTICS: Steady state contains NaNs

Residuals of the static equations:

Equation number 1 : NaN : lamda
Equation number 2 : 0 : 2
Equation number 3 : NaN : 3
Equation number 4 : 0 : 4
Equation number 5 : 0 : q
Equation number 6 : NaN : k
Equation number 7 : NaN : wstar
Equation number 8 : NaN : f1
Equation number 9 : NaN : f2
Equation number 10 : NaN : 10
Equation number 11 : NaN : pistar
Equation number 12 : NaN : g1
Equation number 13 : NaN : g2
Equation number 14 : 0 : 14
Equation number 15 : 0 : vp
Equation number 16 : NaN : mc
Equation number 17 : NaN : wl
Equation number 18 : NaN : r
Equation number 19 : NaN : u
Equation number 20 : NaN : em
Equation number 21 : NaN : emcost
Equation number 22 : 0 : ce
Equation number 23 : 0 : y1
Equation number 24 : 0 : y2
Equation number 25 : NaN : omega
Equation number 26 : NaN : Xat
Equation number 27 : NaN : Xup
Equation number 28 : NaN : Xlo
Equation number 29 : NaN : F
Equation number 30 : NaN : Tat
Equation number 31 : NaN : Tlo
Equation number 32 : NaN : en
Equation number 33 : NaN : y
Equation number 34 : NaN : 34
Equation number 35 : 0 : 35
Equation number 36 : NaN : a
Equation number 37 : NaN : as
Equation number 38 : 0 : 38
Equation number 39 : 0 : 39
Equation number 40 : 0 : 40
Equation number 41 : 0 : g
oceansink.mod (8.3 KB)
myfunction.m (120 Bytes)

how can i do next? thanks,professor!