Jelling does seem to be a tricky matter. Cooking longer, more sugar, less water, more pectin, even the acidity of the fruit seems to all contribute to gelling. The good thing, though, is that when it doesn't gel, it makes awesome pancake syrup... Since I like my jelly/jam tart it took a lot of experimenting to get things to gel with less sugar.