Final version of the xnet and pardiso using orignial format of the trajectory