Duty data is written to a file
nonlin data is also written to an h5 file