Log-linearize toolbox

I would like to log-linearize my model to use it at first in dynare then in adaptive learning process. I did it once by hand, but I am not sure that it is correct! Is there any software or toolbox in matlab or Octave which could calculate it?
I have found one but, I don’t know why it is not able to solve even its own example (that is written in its codes). I put the .m file here.
Many Thanks!
LogLin.m (9.82 KB)