From GridLAB-D Wiki
The dumpall option produces a model dump output from GridLAB-D when the simulation is done. It is managed by the global variable dumpall, which is by default FALSE.
GLM
To enable dumpall mode use the directive
#set dumpall=1
To disable dumpall mode use the directive
#set dumpall=0
Command line
To toggle dumpall mode use the option
host% gridlabd --dumpall
To enable dumpall mode use the option
host% gridlabd -D dumpall=1
To disable dumpall mode use the option
host% gridlabd -D dumpall=0