What seems to be happening, is that consolidateAllArrays requires a 2d array, however mgetPrimaryMetric is only providing it with a 1d array. There seems in general to be a discrepancy with which mget ...