Add grp_rank to analysis results
Calculate second-moments tensor of each source model