extractIds function

Extract ID labels from simulation output