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.

// 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

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

Error in ==> get_ramsey at 22

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)