RegardingERROR: GHH.mod:59.1: syntax error, unexpected NAME

Regarding the problem with the java heap space, a workaround can be found at [Java Heap Space/Out of Memory).
For the parameters, everything you need is stored in the oo_ - structure as documented in the manual. You just have to write you own code to read out the information after Dynare has finished running.