If ALIAS-C++ returns a wrong result a first thing to do is to check he routines that are specific to your problem. A typical mistake is to write expression such as 2/3*x+1/3*y.. that are evaluated to 0 whatever is x, y (such expression should be written as 2./3.*x+1./3.*y). Otherwise see the bug section.