Contradicts itself

Rating: 5/10 (15 January 2017)

If you're just looking for a decent action/spy thriller with lots of explosions (or, rather, the same explosion over and over again), then you might like this movie. If you actually use your brain at all, the crazy plot holes will ruin it for you.
The premise is that a military pilot gets "volunteered" to take part in a program where he relives the last eight minutes of the life of the victim of a train crash, over and over again, "Groundhog Day" style. The train was destroyed by a bomb killing hundreds of people, and the authorities have reason to believe the bomber intends something bigger like nuking a major city. Our hero has to find the bomber and report his identity so he can be stopped.
(SPOILERS BELOW)
Now, the movie clearly sets out that the military has developed some method to preserve the last eight minutes of someone's short term memory after they die. That's not too much of a stretch - I could see them being very interested in a project like that. Furthermore, they can "inject" someone into those memories to relive them as if they were reality. OK, starting to reach there, but lets run with it...
The problem is that once our hero gets inside the memory, he starts doing things the original person never did, seeing things they never saw, etc. So it's not just a memory, it's more of a complete simulation of the train based on a memory, including things the original person couldn't have possibly known (like where the bomb is hidden).
It gets worse. By the end of the film, it's not just a total simulation, it's an alternate reality. So the good guy not only manages to stop the original bombing, but gets to live happily ever after with the girl he just met, call his father and give him closure about his death, and send an email to the technician running the military project to let her know what he did. I guess the implication is that the people who created this miracle technology thought they were only running a simulation (a fact that they state over and over again in explaining why the past can't be changed), but our hero knows better and has figured out a way to turn it into an alternate reality.
Makes absolutely no sense. They should have just ended it after he reported back the identity of the bomber, but then the movie would have only been an hour long. And just what happens to the poor SOB whose body the main character takes over in the end? Too bad for him, I guess.
I really wanted to like this movie, but it just went too far, contradicted itself and broke any possible willing suspension of disbelief.