Flushes the data in the buffers to the data file. Also flushes the postamble data if flush_post is non-zero.
void dtFlushTraceObj(dt *dtobj, int flush_post)