I analysed this a long time ago, but it probably still holds.
Basic exp = basic strength divided by 40 (for example: Marauder = 40/40 = 1, Bonnie = 19/40 = 0.475, etc), counting only dead units, of course.
Divide this by 6 for defending off (and, I suspect, offensive def).
Not completely sure, but I think you also divide by 1, 2, or 3, depending on (in)activity of the player.
Your battle exp is the total exp (computed as described above) of your enemy's dead troops + (that of your own divided by 5).
Then apply any bonuses that you might have.
Simple. (and, I hope, still mostly correct)
I said "basic score", so "L32" is meaningless in terms of exp. :-)
From what I see in the report, and assuming that Brethren's units' basic score is the same as for the normal ones (I think it's not, but it's close),
1000 / 5 + (30 + 3*(400+500+600+850)/4 + 2*400 + 2*(380+380+500+400) + 150) / 40 = 351.56
Assuming that you have exp bonus, roughly 50% (from Captain's headquarters, items, pearls, etc), this would give us
1.50 * 351.56 = 527.340,
which is quote close to your exp.
As for the tournament points, I'm not sure. Some tournaments don't take your side into account (example: hit a Bastion during a Bastion tournament, and you'll get points only for the enemy units, not your own). If this was the case, however, you would've still gotten 152 points.
However, some of the scoring is deliberately skewed in highly disproportionate battles (I think it's, at least officially, to minimise cheating), and this was obviously one such battle, but I'm only guessing here.
This is all from my experience and observation. I don't think you'll get an official answer, because the algorithms behind the game are "secret" and "for players to discover" (or something like that). I hope this'll help you at least a bit.