Hello, After doing some testing, I am nearly certain that Sympy & Numpy don't play well together, especially when tree depth and min nodes are higher than 5. There are many references on stack overflow regarding this issue.