Error in computing Steady State Values

Dear All.

I have, without success, tried to locate my error in my model. Unfortunately i have no idea how MatLab give numbers to equations so i have no idea if i am looking for the error the right places.

I get the error:
Residuals of the static equations:

Equation number 1 : 0
Equation number 2 : 0
Equation number 3 : 0
Equation number 4 : -0.10148
Equation number 5 : 0
Equation number 6 : 0
Equation number 7 : 0
Equation number 8 : -0.10665
Equation number 9 : 0
Equation number 10 : 0
Equation number 11 : 0
Equation number 12 : 0
Equation number 13 : 0
Equation number 14 : 0
Equation number 15 : 0
Equation number 16 : 0
Equation number 17 : 0
Equation number 18 : 0
Equation number 19 : 0
Equation number 20 : 0
Equation number 21 : 0
Equation number 22 : 0
Equation number 23 : 0
Equation number 24 : 0
Equation number 25 : 0
Equation number 26 : 0
Equation number 27 : 0
Equation number 28 : 0
Equation number 29 : 0
Equation number 30 : 0
Equation number 31 : 0
Equation number 32 : 0
Equation number 33 : 0
Equation number 34 : 0
Equation number 35 : 0
Equation number 36 : 0
Equation number 37 : 0
Equation number 38 : 0
Equation number 39 : 0
Equation number 40 : 0

“The steadystate file did not compute the steady state”

Which i interpret as there is an error or mismatch for equation 4 and 8.
But i have no idea which equation is 4 and 8 (i did not write the code myself):
Hopefully somene can help me a bit here (i am still new to dynare).

Best Regards:

Baby00 = Model file
Baby00_steadystate = st. st file
Findss = numerical solver for some equations
paramfile_baby00 = parameter values:
runsimFig_3 = Is the main file i am trying to run:
baby00_steadystate.m (2.6 KB)
baby00.log (7.1 KB)
findSS.m (1.1 KB)
paramfile_baby00.m (890 Bytes)
runsimFig_3.m (4.8 KB)

Simply count the equations in the model-block.

Thank you professor.
Unfortunately the equations seem quite right. Could the error lie in the parameter values or the steady state?baby00.mod (5.0 KB)

What do you mean? With debugging I can verify that
//% 4 q*uc = uh + BETA*q(+1)*uc(1);
is the fourth equation and that it has a residual.

Yeah, but when i am checking both equation 4 and 8 there does not seem to be anything wrong with them (They look like they should according to the given model). So was just wondering if the error could be somewhere else than in those equations explicitly.

It’s not necessarily the case that this equation is wrong. The message only tells you that the equation and the analytically provided steady state do not match. Hence, the steady state computationm may be wrong. I find it quite unusual that q is close to 0.

I should find q close to be around 14 according to the original model. I am guessing you are refering to the inital values for the other equations (which q are dependent on).

At the end of your steady state file
q = 3.7679e-06

I am not able to find that part of the code?
But no q=0 is not at all what i am looking for.

I put a debugging breakpoint at the end of the steady state file to see this.

Thank you, i have now found the same.

I have now modified the files and the steady state values (when debugging) seems more reasonable, though it can still not find the steady state, now with more residuals.
baby00.mod (5.1 KB)
baby00_steadystate.m (2.5 KB)
findSS.m (1.4 KB)
paramfile_baby00.m (907 Bytes)
runsimFig_3.m (4.8 KB)

You need to check all steady state computations and make sure they are consistent with your model. Otherwise, your debugging will take forever.