Thank you GerritGroot,
I'm removed from my code everything that was unnecessary,
all the subroutines/functions, I've transformed allocatable array in fixed length array.
I've also checked that any operation exceed the arrays boundary.
I run the code under Valgrind, with the memcheck tool and...