Error Using steady_state_model Command

Hi all,

I have a deterministic growth model with two sources of growth: TFP and population. I detrended the model by hand and created a .mod file to simulate the detrended model. The code is attached. I’m using the steady_state_model command to calculate the steady state of the model. Regarding this command and determinist models, on page 34 of the manual is written the following:

When I do this, the following error happens:

??? Error using ==> print_info at 72
The steadystate file did not compute the steady state

Error in ==> resid at 112
    print_info(info,options_.noprint, options_)

Error in ==> steady at 90
        resid;

Error in ==> code2 at 138
steady;

Error in ==> dynare at 180
evalin('base',fname) ;

If I comment the steady command after the initval block, then the code runs. However, the final steady state is equal to the values of the initval block, not equal to the values calculated by the steady_state_model command.

Please, someone help me with this issue!

Best to all!
code2.mod (3.03 KB)

Sorry guys, I found an error in my code. The attached code now runs correctly with the steady command after the initval block. The steady state values, as expected, are equal to the values calculated in the steady_state_model block.
code2.mod (3.03 KB)

Sorry, but I lost track what the actual question is after your change.

After my change the code started running fine. It was an error on my code that generated the error msg.