SAN FRANCISCO — On Monday, for the first time since Dec. 29, the Mavericks’ usual starting five finally took the floor together.

Unfortunately for the Mavericks, it wasn’t for a game. It was just practice. Also lamentably, Kristaps Porzingis, the Maverick who finally was able to rejoin fellow starters, felt ill by the end of practice.

“He’s gotten unlucky,” Mavericks coach Rick Carlisle said of Porzingis, though the description applies to the Mavericks in general.

Porzingis has missed the last seven games with right knee soreness, but this also is his second bout with illness, or perhaps a relapse, which has complicated the rehab process.

Carlisle said there remains a chance that Porzingis will return during the Mavericks’ two-game road trip, consisting of games Tuesday against the Warriors and Wednesday at Sacramento. But since the games are back-to-back it’s highly unlikely Porzingis would play in both.

“It wasn’t a full live practice, but there was some contact and a lot of movement,” Carlisle said of Monday’s workout at the Mavericks’ Lympo practice facility, before the team flew to San Francisco. “He [Porzingis] appeared to be doing well, but you never know until the next day.”

The Mavericks (24-15) are 7-8 since Dec. 14. That was the night when Luka Doncic sprained his right ankle 100 seconds into an overtime home loss to Miami.

Doncic missed four games. On Dec. 29, Doncic’s third game back, starting shooting guard Tim Hardaway Jr. strained his left hamstring in the first quarter of a road loss to the Lakers. That also is the game during which Porzingis landed awkwardly and, as he put it, “overextended” his knee.

Hardaway returned on Jan. 8, but Porzingis’ absence has continued.

Dallas’ most-often-used starting lineup, consisting of Doncic, Porzingis, Hardaway, Dorian Finney-Smith and Dwight Powell, has produced a record of 11-4. But that quintet has started just three of the last 14 games.

The Mavericks are 3-4 since Porzingis went out and 4-4 in all games played without him this season.

“His [7-3] presence alone makes guys change up how they play offensively,” Powell said of Porzingis. “When he’s not in there we just have to be more focused and locked in, and keying in on on-ball defense. And make sure we take care of the middle, knowing that we may not have that same length at the rim.”

Porzingis is averaging 17.4 points, a career-high 9.4 rebounds and 2.1 blocks.

“We miss him; that’s obvious,” Carlisle said. “I don’t like getting into the excuse game [about] missing any player, really, because you have a deep roster to make up for that. As a team you’ve just got to find a way to win some games.

“But we are where we are.”

Warrior finale: Tuesday night’s game is the third and last of the season between Dallas and Golden State.

The Mavericks’ 142-94 and 141-121 victories clinched their first season series win over the Warriors since 2011-12, when they went 2-1. The last time Dallas swept Golden State was 2002-2003, when it won all four games.

Despite this season’s lopsided results, the teams’ Dec. 28 meeting at the Warriors’ new Chase Center was tied at 41 after one quarter, with Golden State up 73-71 at halftime.

The injury-ravaged Warriors carried a season-best four-game winning streak into that game, but briefly lost leading scorer D’Angelo Russell that night, after he collided with Doncic in the third quarter. Russell returned for the fourth quarter and finished with 35 points, but he missed Golden State’s next six games, all losses.

He returned Sunday night at Memphis, scoring 34 points, but Golden State again lost and brings an eight-game losing streak into Tuesday’s game, its longest since the 2011-12 season. The Warriors’ 9-32 record is the worst in the Western Conference.

“They’re a very dangerous team,” Carlisle said, adding, “Hey, it’s the NBA. All of these games are hard. They’re supposed to be hard. We’ve got to look forward to the challenge.”