Tim O’Leary SC, prosecuting, then told the court the DPP was withdrawing the charges against the man and Mr Justice Butler said he was free to go.

Earlier in the trial, Sean Guerin SC, who is defending the 35-year-old, said his client accepts he had sex with the complainant but does not accept consent was absent.

On Wednesday, the complainant’s cousin, who was out with her on the night of the alleged incident, told the jury one of the singer’s team told women attending the after gig party in a nightclub: “I’ve already picked my two girls.”

She also said that every man left the nightclub and headed for the tour bus holding hands with a woman who had attended the after gig party.

She told the jury that the complainant remarked to one of Jason Derulo’s entourage: “You know us, can we go on the bus?”

The witness said they then boarded the tour bus, but she left soon afterwards and rang and texted the complainant telling her to get off the bus as it was going to Dublin.

The jury then viewed CCTV of the complainant and friends leaving the nightclub and walking down an alley in the direction of the tour bus.

The witness agreed with Mr Guerin when he described the complainant as striding towards the tour bus “as fast as a woman can go in those heels, in that surface, in the rain” in the CCTV footage.

The trial also heard from a Garda detective who took the complaint’s first formal statement to gardaí hours after the alleged incident, and also took her second statement, given 10 days later.

Contradictory

Mr Guerin asked the detective if she had ever come across a case when the formal statement of a complainant, taken immediately after an incident, has been “simply cast to one side and not included in the book of evidence”.

The witness replied that she had never been involved in a case where that had happened prior to this one. She told the court she was now aware that what the complainant said in her first and second statements, particularly regarding the order in which sexual acts occurred, were contradictory.

“I can’t say now why I didn’t go back to her and clarify, but at the time I was happy that I had enough detail,” she said.

The court also heard from a garda who sat in a patrol car with the complainant and took notes of the alleged incident before alerting colleagues not to allow the tour bus to depart the scene.

She told the jury that an informal ID parade was carried out in the car park of the Anglesea Street Garda station in Cork as all males who were aboard the bus at the time of the alleged incident disembarked.

“She (the complainant) tipped me on the arm when the defendant got off the bus. I then arrested him at 5.38am,” she said.

A Garda inspector told the court that when he boarded the vehicle he recognised Jason Derulo.

“He came up and introduced himself, I recognised him, I knew him from the TV. He introduced me to the brother of his too.”

The inspector said that all those onboard the bus vacated it immediately in a very co-operative manner.

“I had no issue with anyone on the night,” he said.

The trial continues before Mr Justice Butler and a jury of 10 men and two women.