Error in deterministic simulation

Hi all
I’m working on a simple 3 period OLG model where I study some tax/spending reforms. I was trying a deterministic shock (exogenous decrease in a tax rate) to check the transitional dynamics of my model. But when I ran the mod file this message appears:

Error using simul (line 60)
SIMUL: error in model specification : variable km doesn’t appear as current

Error in OLG_log (line 449)

Error in dynare (line 180)
evalin(‘base’,fname) ;

What “doesn’t appear as current variable” means?I post the mod file.Any ideas??

Thank you!
OLG_log.mod (7.78 KB)

No worries
It was a variable timing problem. Solved it.