Add simulation metadata to file output.
Use sort indices for accelerations.