ST. LOUIS (AP) — Aaron Wilkerson took a perfect game into the sixth inning, Brett Phillips hit a three-run homer and the Milwaukee Brewers closed out their near-miss of a season with a 6-1 victory over the St. Louis Cardinals on Sunday.

Jesus Aguliar added a two-run homer in the eighth for the Brewers, who finished 86-76, 13 games ahead of last year's pace. They were in first place or tied for the top spot in the NL Central for 65 days, but ultimately they were eliminated from wild-card contention with a loss on Saturday.

St. Louis finished 83-79, three games worse than last year. The Cardinals failed to make the postseason in back-to-back years for the first time since 2007-2008.

Wilkerson (1-0) allowed one run on two hits over seven innings. He set down the first 17 hitters before Jose Martinez delivered a pinch-hit single to right with two out in the sixth.

Phillips, a September call-up, highlighted a four-run first inning with his fourth homer of the season.

Randal Grichuk homered in the seventh for the Cardinals, who lost four of their last five.

Jack Flaherty (0-2) gave up five hits and four runs over five innings.

The Cardinals drew 3,447,937 fans, the fifth-highest attendance in franchise history. It was their 14th successive season of 3 million-plus.

TRAINER'S ROOM

Cardinals: RHP Adam Wainwright will undergo arthroscopic surgery on his right shoulder Tuesday. The recovery time is six weeks, and he expects to be healthy in time for next season. ... 3B Aledmys Diaz left the game in the second inning with a hamstring issue.

___

More MLB baseball: https://apnews.com/tag/MLBbaseball