returning simulation summary in OCaml record instead of string