The matrix is close to singular value, or scaling errors

dear all:
Hello! I’m new. I can’t find the steady state of my model. Could you help me?

Residuals of the static equations:

Equation number 1 : 0 : lamda
Equation number 2 : 0 : 2
Equation number 3 : 0 : 3
Equation number 4 : 0 : q
Equation number 5 : 0 : k
Equation number 6 : 0 : y1
Equation number 7 : 0 : y2
Equation number 8 : 0 : vp
Equation number 9 : 0 : pi
Equation number 10 : 0 : pistar
Equation number 11 : 0 : g1
Equation number 12 : 0 : g2
Equation number 13 : 0 : mc0
Equation number 14 : 0 : mc
Equation number 15 : 0 : 15
Equation number 16 : 0 : w
Equation number 17 : 0 : u
Equation number 18 : 0 : em
Equation number 19 : 0 : emcost
Equation number 20 : 0 : ce
Equation number 21 : -0.026498 : Xat
Equation number 22 : -0.026497 : Xup
Equation number 23 : -0.026497 : Xlo
Equation number 24 : -56.5282 : F
Equation number 25 : 0 : Tat
Equation number 26 : 0 : Tlo
Equation number 27 : 0 : en
Equation number 28 : 0 : y
Equation number 29 : 0 : 29
Equation number 30 : 0 : 30
Equation number 31 : 0 : 31
Equation number 32 : 0 : 32
Equation number 33 : 0 : 33
Equation number 34 : 0 : 34
Equation number 35 : 0 : 35

错误使用 print_info (第 32 行)
Impossible to find the steady state (the sum of square residuals of the static equations is
3195.4417). 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

oceansinkl.mod (7.5 KB)
myfunction.m (120 Bytes)

many thanks!!!

Put resid before other calls to commands to see that there is a residual

Equation number 21 : -0.079492 : Xat

So it seems your system in equations 21 to 24 is problematic.

many thanks,dear professor!!

Dear prfessor
When I choose the the order in “stoch_simul(order=2,irf=40) ;” to be 2,the dynare Warning: the matrix is close to singular value, or scaling error. The results may not be accurate ,what should to solve this problem?
nk.mod (4.1 KB)
nk_steadystate.m (2.8 KB)
nkss.m (875 Bytes)

The message is most likely caused by the unit roots in the model. Also note that at order=2 the shock variances matter. You set them to 100 percent. I am again attaching a steady state file compatible with Dynare 5.3.

nk2_steadystate.m (2.8 KB)