Levin's code_ramsey policy

I have been trying to solve ramsey policy with Levin’s code. I used Dynare version 3 with MatlabR2010a in windows. I followed exactly the same procedure in the readme text file of levin’s code. But I get the following error message when I run the basemodel.mod file.

infilename=‘basemodel’;
outfilename=‘basemodel_out’;
get_ramsey;
// Monetary Policy Rule
Note: 1 policy rules declared in model file
??? Error using ==> sym.sym>checkindex at 2590
Index must be a positive integer or logical.

Error in ==> sym.sym>privformatscalar at 2540
checkindex(x);

Error in ==> sym.sym>privformat at 2524
s = privformatscalar(x);

Error in ==> sym.sym>sym.subsref at 1364
[inds{k},refs{k}] = privformat(inds{k});

Error in ==> dynmod2sym at 425
eval(alleqns);

Error in ==> get_ramsey at 22
dynmod2sym;

I am uploading my basemodel.mod in this post. Can anyone please tell me what I am doing wrong? I just want to get the policy functions and the IRFs.
basemodel.mod (1.69 KB)