Found steady state, but Dynare keeps returning error

I have a problem with the steady state of my model (see attachments)

Dynare keeps saying “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”.

Can anyone help?

Best
Giorgio
steadystate.m (2.54 KB)
detMODEL.mod (3.71 KB)

Even computing the ss by hand and imposing those values in the initval block, it continues to give me residuals… Could it be a bug?

A bug here is highly unlikely. Your posted file stops with error message

[quote]Error using trustnleqn (line 28)
Objective function is returning undefined values at initial point. FSOLVE cannot continue.

Error in fsolve (line 403)
[x,FVAL,JACOB,EXITFLAG,OUTPUT,msgData]=…

Error in detMODEL (line 303)
x = fsolve(@steadystate, x0, options, csistar, etastar, Ystar, csi, eta, omegabar, chi, psi, beta, s, alpha, tauf, sigman, sigmau, etal, tauw, tauc, epsilon,
A, gi, rho, delta, ti)
[/quote]

Please provide the mod-file with the steady state values in the initval block.