If non-zero,
diagnotics information is dumped only for the last iteration. Otherwise, information is dumped on all
iterations. Note, if parameter "diag.cleaned" is non-zero, the initial cleaned data is still dumped
even if diag.lastonly is non-zero. [0]