Hello Tiago
From what I understand, the process of attach (nrHelper->AttachToEnb) is completed once before the simulation starts(Simurator::Run()).
I've never seen the example of re-attach or initial access(gNB searches unconnected UE and attach to it) during simulation time.
But, one thing I'm stuck on, was there any process of disconnection in ns-3/5G-LENA?
Once a gNB-UE pair was attached, I think they would keep sending packets even if their SINR is extremely low.
I have a feeling that there is some other cause, such as packet generation has stopped.
Best regards,
Kent