Error: Reference to non existent field

Hi, I am trying to calibrate and simulate a simple non deterministic model.
I tried to introduce the model with both specifications, in levels and in logs, however I get the same error message.

??? Reference to non-existent field ‘maximum_lag’.

Error in ==> GHH_ps1_levels at 146
oo_.endo_simul=[oo_.steady_state*ones(1,M_.maximum_lag)];

Error in ==> dynare at 132
evalin(‘base’,fname) ;

I join to this message both .mod files.
I am using Dynare 4.1.2 for mac, and matlab 7.1 .

Thank you in advance for your help.
Best Regards.
GHH_ps1_levels.mod (921 Bytes)
GHH_ps1.mod (1.17 KB)

Don’t set a clear at the beginning of the file. Dynare does this automatically. If you set it by hand, Dynare clears the workspace after preprocessing and the mentioned structure is deleted, resulting in the error.