Croatia is the same, our serial killer that started killing when he was 16 is being released soon, killed someone on a free weekend while serving time, got married in prison. Not sure what to say of such a system, I'm not really in favor.
And 40 years is like the max, for raping and killing it's more like 15-20, eg a deranged man who chopped of a tourist's head is released in a few years after serving 15, another man that raped and killed a minor is soon to be out as well after 22 years in prison.