Writing the minimal empirical error to file

Signed-off-by: Renato Stoffalette Joao <renatosjoao@gmail.com>