VLA-COSMOS 3GHz Large Project: The infrared-radio correlation of star-forming galaxies and AGN to $z\lesssim6$ — arXiv2