Washington: A NASA study has said that a German supercomputer has finally cracked the mystery behind Gamma-ray burst (GRB) showing how the neutron stars collision is responsible for the cosmic event.

The highest energy form of light, Gamma-ray bursts are among the most energetic cosmic events known, which emit as much energy in a few seconds as our entire galaxy does in a year.

Now, a state-of-the-art simulation on Damiana computer cluster at Albert Einstein Institute in Germany models events that unfold in just 35 milliseconds -- three times faster than the blink of an eye, according to the study.

"For the first time, we've managed to run the simulation well past the merger and the formation of the black hole," said the study's co-author Chryssa Kouveliotou at the US space agency's Marshall Space Flight Center in Huntsville.

GRBs lasting longer than two seconds are widely thought to be triggered by the collapse of a massive star into a black hole. As matter falls toward black hole, some of it forms jets in the opposite direction that move near the speed of light and produce a blast of Gamma rays as they emerge.

"For more than two decades, the leading model of short GRBs was the merger of two neutron stars. Only now can we show the merger of neutron stars actually produces an ultrastrong magnetic field structured like jets needed for a GRB," Bruno Giacomazzo at NASA's Goddard Space Flight Center said.