Dynare/Octave hangs after running codes

It may be a graphics driver issue. See