Syntax error, unexpected $end dynare

Can someone please help me to understand what ‘‘syntax error, unexpected $end dynare’’ means?
It always mentions the problem in the line after ‘stoch_simul;’ command although there is no such line in my code…

Please post the mod-file. There may be an end; missing somewhere before.

Thanks. Its solved.

After a long search trying the error debugging on my attached code, I am not sure why the subject error appears at all its versions of the .mod file.
The file is attached and it would be acknowledged if someone could help me trace the issue to its bottom to get the .mod file working.
Best Regards

Your problem is the

in line 35. It must be either times or divided.