The general understanding is that you get no pile in after you consolidate into another unit. You're are then locked in combat, and as such cannot move or shoot and will pile in at the end of the next phase. You do not pile in after consolidating into another unit because it only applies to "models that were locked". This is somewhat ambiguous though, as it could mean models that were locked for the whole phase or just models that were locked prior to pile in (because pile in happens last). I know of noone who plays it the second way though.