INFO: No output directory specified (--dir) INFO: Using directory: "Test_SANS_20251212_134136" INFO: Regenerating c-file: Test_SANS.c WARNING: Full-path code-generator "/u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS" not found!! WARNING: Attempting replacement by "mcstas-antlr -I$MCSTAS" DEBUG: CMD: mcstas-antlr -I$MCSTAS -t -o ./Test_SANS.c Test_SANS.instr 2025-12-12 13:42:32.232 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :SANSPDB(0):mccode-complex-lib :SANSPDBFast(0):mccode-complex-lib 2025-12-12 13:42:32.232 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to mccode-complex-lib 2025-12-12 13:42:32.232 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to mccode-complex-lib line 2:2 extraneous input '%' expecting {, '__extension__', '__m128', '__m128d', '__m128i', '__typeof__', '__inline__', '__stdcall', '__declspec', '__cdecl', '__clrcall', '__fastcall', '__thiscall', '__vectorcall', '__attribute__', 'auto', 'char', 'const', 'double', 'enum', 'extern', 'float', 'inline', 'int', 'long', 'register', 'restrict', 'short', 'signed', 'static', 'struct', 'typedef', 'union', 'unsigned', 'void', 'volatile', '_Alignas', '_Atomic', '_Bool', '_Complex', '_Noreturn', '_Static_assert', '_Thread_local', '(', '*', '^', ';', Identifier} 2025-12-12 13:42:34.012 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 2,2 2025-12-12 13:42:34.012 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~^ extraneous input '%' expecting {, '__extension__', '__m128', '__m128d', '__m128i', '__typeof__', '__inline__', '__stdcall', '__declspec', '__cdecl', '__clrcall', '__fastcall', '__thiscall', '__vectorcall', '__attribute__', 'auto', 'char', 'const', 'double', 'enum', 'extern', 'float', 'inline', 'int', 'long', 'register', 'restrict', 'short', 'signed', 'static', 'struct', 'typedef', 'union', 'unsigned', 'void', 'volatile', '_Alignas', '_Atomic', '_Bool', '_Complex', '_Noreturn', '_Static_assert', '_Thread_local', '(', '*', '^', ';', Identifier} 2025-12-12 13:42:34.012 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - 2025-12-12 13:42:34.012 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - #include line 2:11 no viable alternative at input 'include "read_table-lib"' 2025-12-12 13:42:34.053 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 2,11 2025-12-12 13:42:34.053 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~~~~~~~~^ no viable alternative at input 'include "read_table-lib"' 2025-12-12 13:42:34.053 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - 2025-12-12 13:42:34.053 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - #include line 2:2 extraneous input '%' expecting {, '__extension__', '__m128', '__m128d', '__m128i', '__typeof__', '__inline__', '__stdcall', '__declspec', '__cdecl', '__clrcall', '__fastcall', '__thiscall', '__vectorcall', '__attribute__', 'auto', 'char', 'const', 'double', 'enum', 'extern', 'float', 'inline', 'int', 'long', 'register', 'restrict', 'short', 'signed', 'static', 'struct', 'typedef', 'union', 'unsigned', 'void', 'volatile', '_Alignas', '_Atomic', '_Bool', '_Complex', '_Noreturn', '_Static_assert', '_Thread_local', '(', '*', '^', ';', Identifier} 2025-12-12 13:42:35.224 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 2,2 2025-12-12 13:42:35.225 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~^ extraneous input '%' expecting {, '__extension__', '__m128', '__m128d', '__m128i', '__typeof__', '__inline__', '__stdcall', '__declspec', '__cdecl', '__clrcall', '__fastcall', '__thiscall', '__vectorcall', '__attribute__', 'auto', 'char', 'const', 'double', 'enum', 'extern', 'float', 'inline', 'int', 'long', 'register', 'restrict', 'short', 'signed', 'static', 'struct', 'typedef', 'union', 'unsigned', 'void', 'volatile', '_Alignas', '_Atomic', '_Bool', '_Complex', '_Noreturn', '_Static_assert', '_Thread_local', '(', '*', '^', ';', Identifier} 2025-12-12 13:42:35.225 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - 2025-12-12 13:42:35.225 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - #include line 2:11 no viable alternative at input 'include "read_table-lib"' 2025-12-12 13:42:35.249 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 2,11 2025-12-12 13:42:35.250 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~~~~~~~~^ no viable alternative at input 'include "read_table-lib"' 2025-12-12 13:42:35.250 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - 2025-12-12 13:42:35.250 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - #include The instrument has 9 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component Source -> GPU kernel from component FirstPinhole -> GPU kernel from component SecondPinhole -> GPU kernel from component SamplePos -> GPU kernel from component Sample0 -> GPU kernel from component Sample1 Component Sample2 is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. Component Sample3 is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component Sample3 Component Sample5 is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. Component Sample6 is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component Sample6 Component Sample7 is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component Sample7 Component Sample9 is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component Sample9 Component Sample11 is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component PSDMonitor -> GPU kernel from component QMonitor ----------------------------------------------------------- CFLAGS= -DFUNNEL -lgsl -lgslcblas DEBUG: CMD: mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./Test_SANS.out --> pointing path miniconda3/lib to /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib --> pointing path miniconda3/lib to /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib --> pointing path miniconda3/include to /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include DEBUG: CMD: nvc -o ./Test_SANS.out ./Test_SANS.c -lm -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -DUSE_MPI -lmpi -Wl,-rpath,/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/lib -L,/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/lib -I/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/include -fast -Minfo=accel -acc=gpu -gpu=mem:managed -DOPENACC -DFUNNEL -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -lgsl -lgslcblas -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include "./Test_SANS.c", line 93: warning: Routine "mcgenstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_particle mcgenstate(void); ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Test_SANS.c", line 95: warning: Routine "mcsetstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_particle mcsetstate(double x, double y, double z, double vx, double vy, double vz, double t, double sx, double sy, double sz, double p, int mcgravitation, void * mcMagnet, int allow_backprop); ^ "./Test_SANS.c", line 97: warning: Routine "mcgetstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_particle mcgetstate(_class_particle mcparticle, double * x, double * y, double * z, double * vx, double * vy, double * vz, double * t, double * sx, double * sy, double * sz, double * p); ^ "./Test_SANS.c", line 111: warning: Routine "particle_getvar" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double particle_getvar(_class_particle *p, char *name, int *suc); ^ "./Test_SANS.c", line 115: warning: Routine "str_comp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int str_comp(char *str1, char *str2); ^ "./Test_SANS.c", line 143: warning: Routine "particle_getvar_void" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void* particle_getvar_void(_class_particle *p, char *name, int *suc); ^ "./Test_SANS.c", line 115: warning: Routine "str_comp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int str_comp(char *str1, char *str2); ^ "./Test_SANS.c", line 175: warning: Routine "particle_setvar_void" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int particle_setvar_void(_class_particle *, char *, void*); ^ "./Test_SANS.c", line 200: warning: Routine "particle_setvar_void_array" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int particle_setvar_void_array(_class_particle *, char *, void*, int); ^ "./Test_SANS.c", line 213: warning: Routine "particle_restore" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void particle_restore(_class_particle *p, _class_particle *p0); ^ "./Test_SANS.c", line 230: warning: Routine "particle_getuservar_byid" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double particle_getuservar_byid(_class_particle *p, int id, int *suc){ ^ "./Test_SANS.c", line 241: warning: Routine "particle_uservar_init" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void particle_uservar_init(_class_particle *p){ ^ "./Test_SANS.c", line 308: warning: Routine "noprintf" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int noprintf(); ^ "./Test_SANS.c", line 310: warning: Routine "str_len" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] size_t str_len(const char *s); ^ "./Test_SANS.c", line 661: warning: Routine "mcget_ncount" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] unsigned long long int mcget_ncount(void); /* wrapper to set mcncount */ ^ "./Test_SANS.c", line 882: warning: Routine "_randnorm2" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randnorm2(randstate_t* state); ^ "./Test_SANS.c", line 899: warning: Routine "kiss_srandom" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] uint64_t *kiss_srandom(uint64_t state[7], uint64_t seed); ^ "./Test_SANS.c", line 901: warning: Routine "kiss_random" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] uint64_t kiss_random(uint64_t state[7]); ^ "./Test_SANS.c", line 909: warning: Routine "_rand01" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _rand01(randstate_t* state); ^ "./Test_SANS.c", line 911: warning: Routine "_randpm1" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randpm1(randstate_t* state); ^ "./Test_SANS.c", line 913: warning: Routine "_rand0max" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _rand0max(double max, randstate_t* state); ^ "./Test_SANS.c", line 915: warning: Routine "_randminmax" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randminmax(double min, double max, randstate_t* state); ^ "./Test_SANS.c", line 917: warning: Routine "_randtriangle" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randtriangle(randstate_t* state); ^ "./Test_SANS.c", line 1013: warning: Routine "coords_set" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_set(MCNUM x, MCNUM y, MCNUM z); ^ "./Test_SANS.c", line 1015: warning: Routine "coords_get" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_get(Coords a, MCNUM *x, MCNUM *y, MCNUM *z); ^ "./Test_SANS.c", line 1017: warning: Routine "coords_add" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_add(Coords a, Coords b); ^ "./Test_SANS.c", line 1019: warning: Routine "coords_sub" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_sub(Coords a, Coords b); ^ "./Test_SANS.c", line 1021: warning: Routine "coords_neg" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_neg(Coords a); ^ "./Test_SANS.c", line 1023: warning: Routine "coords_scale" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_scale(Coords b, double scale); ^ "./Test_SANS.c", line 1025: warning: Routine "coords_sp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double coords_sp(Coords a, Coords b); ^ "./Test_SANS.c", line 1027: warning: Routine "coords_xp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_xp(Coords b, Coords c); ^ "./Test_SANS.c", line 1029: warning: Routine "coords_len" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double coords_len(Coords a); ^ "./Test_SANS.c", line 4640: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./Test_SANS.c", line 5095: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] randstate_t randstate[7]; ^ "./Test_SANS.c", line 5014: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Test_SANS.c", line 6341: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_SANS.c", line 7099: warning: Routine "FormfactorSphere" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double FormfactorSphere(double q, double R) ^ "./Test_SANS.c", line 7105: warning: Routine "IntensityOfLiposome" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double IntensityOfLiposome(double q, double R, double ThicknessHead, double ThicknessTail, double ThicknessCH3, double DeltaRhoHead, double DeltaRhoCH2, double DeltaRhoCH3) ^ "./Test_SANS.c", line 7251: warning: function "j0" declared implicitly [implicit_func_decl] ReturnValue = j0(q * r * sin(Alpha)) * sin(q * l * cos(Alpha) / 2.f) / (q * l * cos(Alpha) / 2.f); ^ "./Test_SANS.c", line 7643: error: expected a declaration %include "read_table-lib"; // for Open_File ^ "./Test_SANS.c", line 7749: warning: function "Open_File" declared implicitly [implicit_func_decl] PDBFile = Open_File(PDBFilepath, "r",NULL); ^ "./Test_SANS.c", line 7749: warning: a value of type "int" cannot be assigned to an entity of type "FILE *" (aka "struct _IO_FILE *") [incompatible_assignment_operands] PDBFile = Open_File(PDBFilepath, "r",NULL); ^ "./Test_SANS.c", line 7741: warning: variable "DummyChar" was declared but never referenced [declared_but_not_referenced] char DummyChar; ^ "./Test_SANS.c", line 7742: warning: variable "Atom" was declared but never referenced [declared_but_not_referenced] char Atom; ^ "./Test_SANS.c", line 7819: warning: function "Open_File" declared implicitly [implicit_func_decl] if (NumberOfResidues <= 0 || (PDBFile = Open_File(PDBFilename, "r",NULL)) == 0) { ^ "./Test_SANS.c", line 7819: warning: a value of type "int" cannot be assigned to an entity of type "FILE *" (aka "struct _IO_FILE *") [incompatible_assignment_operands] if (NumberOfResidues <= 0 || (PDBFile = Open_File(PDBFilename, "r",NULL)) == 0) { ^ "./Test_SANS.c", line 7811: warning: variable "AD" was declared but never referenced [declared_but_not_referenced] const double AD = 6.674e-15; ^ "./Test_SANS.c", line 8454: error: expected a declaration %include "read_table-lib"; // for Open_File ^ "./Test_SANS.c", line 9635: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_SANS.c", line 11763: warning: variable "ScatteringLengthOfWater" was declared but never referenced [declared_but_not_referenced] const double ScatteringLengthOfWater = 2.82E-12; ^ "./Test_SANS.c", line 11764: warning: variable "VolumeOfWater" was declared but never referenced [declared_but_not_referenced] const double VolumeOfWater = 30.0; ^ "./Test_SANS.c", line 12410: warning: incompatible redefinition of macro "exit" (declared at line 640) [bad_macro_redef] #define exit(...) noprintf() ^ "./Test_SANS.c", line 12422: warning: Routine "class_Progress_bar_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Progress_bar *class_Progress_bar_trace(_class_Progress_bar *_comp, _class_particle *_particle) { ^ "./Test_SANS.c", line 12512: warning: Routine "class_Source_simple_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Source_simple *class_Source_simple_trace(_class_Source_simple *_comp, _class_particle *_particle) { ^ "./Test_SANS.c", line 12615: warning: Routine "class_Slit_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Slit *class_Slit_trace(_class_Slit *_comp, _class_particle *_particle) { ^ "./Test_SANS.c", line 12660: warning: Routine "class_SANSSpheres_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_SANSSpheres *class_SANSSpheres_trace(_class_SANSSpheres *_comp, _class_particle *_particle) { ^ "./Test_SANS.c", line 12779: warning: Routine "class_SANSShells_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_SANSShells *class_SANSShells_trace(_class_SANSShells *_comp, _class_particle *_particle) { ^ "./Test_SANS.c", line 12909: warning: Routine "class_SANSCylinders_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_SANSCylinders *class_SANSCylinders_trace(_class_SANSCylinders *_comp, _class_particle *_particle) { ^ "./Test_SANS.c", line 13042: warning: Routine "class_SANSEllipticCylinders_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_SANSEllipticCylinders *class_SANSEllipticCylinders_trace(_class_SANSEllipticCylinders *_comp, _class_particle *_particle) { ^ "./Test_SANS.c", line 13193: warning: Routine "class_SANSLiposomes_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_SANSLiposomes *class_SANSLiposomes_trace(_class_SANSLiposomes *_comp, _class_particle *_particle) { ^ "./Test_SANS.c", line 13357: warning: Routine "class_SANSNanodiscs_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_SANSNanodiscs *class_SANSNanodiscs_trace(_class_SANSNanodiscs *_comp, _class_particle *_particle) { ^ "./Test_SANS.c", line 13407: warning: variable "Weight" was declared but never referenced [declared_but_not_referenced] double Weight; ^ "./Test_SANS.c", line 13408: warning: variable "IntensityPart" was declared but never referenced [declared_but_not_referenced] double IntensityPart; ^ "./Test_SANS.c", line 13526: warning: Routine "class_SANSNanodiscsWithTags_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_SANSNanodiscsWithTags *class_SANSNanodiscsWithTags_trace(_class_SANSNanodiscsWithTags *_comp, _class_particle *_particle) { ^ "./Test_SANS.c", line 13581: warning: variable "Weight" was declared but never referenced [declared_but_not_referenced] double Weight; ^ "./Test_SANS.c", line 13582: warning: variable "IntensityPart" was declared but never referenced [declared_but_not_referenced] double IntensityPart; ^ "./Test_SANS.c", line 13705: warning: Routine "class_SANSPDB_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_SANSPDB *class_SANSPDB_trace(_class_SANSPDB *_comp, _class_particle *_particle) { ^ "./Test_SANS.c", line 13729: warning: variable "Weight" was declared but never referenced [declared_but_not_referenced] double Weight; ^ "./Test_SANS.c", line 13730: warning: variable "IntensityPart" was declared but never referenced [declared_but_not_referenced] double IntensityPart; ^ "./Test_SANS.c", line 13741: warning: variable "Slope" was declared but never referenced [declared_but_not_referenced] double Slope; ^ "./Test_SANS.c", line 13742: warning: variable "Offset" was declared but never referenced [declared_but_not_referenced] double Offset; ^ "./Test_SANS.c", line 13874: warning: Routine "class_SANSNanodiscsFast_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_SANSNanodiscsFast *class_SANSNanodiscsFast_trace(_class_SANSNanodiscsFast *_comp, _class_particle *_particle) { ^ "./Test_SANS.c", line 13929: warning: variable "Weight" was declared but never referenced [declared_but_not_referenced] double Weight; ^ "./Test_SANS.c", line 13930: warning: variable "IntensityPart" was declared but never referenced [declared_but_not_referenced] double IntensityPart; ^ "./Test_SANS.c", line 14071: warning: Routine "class_SANSNanodiscsWithTagsFast_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_SANSNanodiscsWithTagsFast *class_SANSNanodiscsWithTagsFast_trace(_class_SANSNanodiscsWithTagsFast *_comp, _class_particle *_particle) { ^ "./Test_SANS.c", line 14131: warning: variable "Weight" was declared but never referenced [declared_but_not_referenced] double Weight; ^ "./Test_SANS.c", line 14132: warning: variable "IntensityPart" was declared but never referenced [declared_but_not_referenced] double IntensityPart; ^ "./Test_SANS.c", line 14278: warning: Routine "class_SANSPDBFast_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_SANSPDBFast *class_SANSPDBFast_trace(_class_SANSPDBFast *_comp, _class_particle *_particle) { ^ "./Test_SANS.c", line 14306: warning: variable "Weight" was declared but never referenced [declared_but_not_referenced] double Weight; ^ "./Test_SANS.c", line 14307: warning: variable "IntensityPart" was declared but never referenced [declared_but_not_referenced] double IntensityPart; ^ "./Test_SANS.c", line 14420: warning: Routine "class_Beamstop_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Beamstop *class_Beamstop_trace(_class_Beamstop *_comp, _class_particle *_particle) { ^ "./Test_SANS.c", line 14468: warning: Routine "class_PSD_monitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_PSD_monitor *class_PSD_monitor_trace(_class_PSD_monitor *_comp, _class_particle *_particle) { ^ "./Test_SANS.c", line 14539: warning: Routine "class_SANSQMonitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_SANSQMonitor *class_SANSQMonitor_trace(_class_SANSQMonitor *_comp, _class_particle *_particle) { ^ "./Test_SANS.c", line 17182: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_SANS.c", line 17183: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_SANS.c", line 1517: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_SANS.c", line 2986: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ 2 errors detected in the compilation of "./Test_SANS.c". INFO: call to nvc failed with Command 'nvc -o ./Test_SANS.out ./Test_SANS.c -lm -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -DUSE_MPI -lmpi -Wl,-rpath,/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/lib -L,/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/lib -I/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/include -fast -Minfo=accel -acc=gpu -gpu=mem:managed -DOPENACC -DFUNNEL -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -lgsl -lgslcblas -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include' returned non-zero exit status 2. ERROR: Compilation failed for ./Test_SANS.c using compiler nvc