output statistics.xml and record.txt