It doesn't seem that jacval is what you want here. The jacobian matrix contains values of the partial derivatives of the constraint functions, evaluated at a given point. If y1 and gamma12 are both variables, then the jacobian will contain the partials -0.05*gamma12 and -0.05*y1 evaluated at the current values of y1 and gamma12, but in general you won't find -0.05 there. (Probably you called jacval when all the variables were at zero, and hence these jacobian values were also zero.)
If you want access to the actual nonlinear constraint functions using the ASL routines, you will need to process the expression trees that the ASL reader sets up. This is not easy, as there is no documentation for using the ASL data structures in this way. I have some example code I can provide to get you started, but it's not supported and to figure it out you'll need to be familiar with C structures and programming.
Alternatively if your nonlinear functions have only a few simple forms, you might be able to create your own reader for the nl files that AMPL writes. The commands
option nl_comments 1;
write gtest;
will write a text file
test.nl with some comments to help you understand it (perhaps with the help of the attached report). Possibly you could make use of the C++ NL Reader project that is described at
https://ampl.github.io/nl-reader.html. Unlike ASL it has documented methods for dealing with nonlinear functions. However this is an experimental reader and so (unlike ASL) it not supported.