Hard to work with this little information. A negative exit code often means that the OS had issues starting the process. As far as I know gdxrrw does not actually run GAMS jobs, it just helps reading and writing GDX files. How do you start GAMS jobs and what kind of output do you get? It might help to start GAMS with lo=3 (see https://www.gams.com/latest/docs/UG_GamsCall.html#GAMSAOLogOption) so the log is sent to standard out and you can try to capture a more meaningful error message.