INFO: No output directory specified (--dir) INFO: Using directory: "Test_TOFRes_sample_20250514_112303" INFO: Regenerating c-file: Test_TOFRes_sample.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_TOFRes_sample.c Test_TOFRes_sample.instr 2025-05-14 11:23:30.735 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Guide(0):read_table-lib :Guide(1):ref-lib :ref-lib(0):read_table-lib :TOFRes_monitor(0):monitor_nd-lib :TOFRes_monitor(1):cov-lib 2025-05-14 11:23:30.736 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib cov-lib ref-lib 2025-05-14 11:23:30.736 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib cov-lib No initialization present? ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component a1 -> GPU kernel from component source -> GPU kernel from component TOFL1 -> GPU kernel from component slit1 -> GPU kernel from component chop1 -> GPU kernel from component slit2 -> GPU kernel from component chop2 -> GPU kernel from component TOFL2 -> GPU kernel from component g -> GPU kernel from component chop3 -> GPU kernel from component PSD -> GPU kernel from component TOFL3 -> GPU kernel from component sample -> GPU kernel from component arm2 -> GPU kernel from component detector ----------------------------------------------------------- DEBUG: CMD: mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./Test_TOFRes_sample.out DEBUG: CMD: nvc -o ./Test_TOFRes_sample.out ./Test_TOFRes_sample.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 -fast -Minfo=accel -acc=gpu -gpu=mem:managed -DOPENACC "./Test_TOFRes_sample.c", line 103: 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_TOFRes_sample.c", line 105: 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_TOFRes_sample.c", line 107: 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_TOFRes_sample.c", line 121: 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_TOFRes_sample.c", line 125: 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_TOFRes_sample.c", line 163: 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_TOFRes_sample.c", line 125: 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_TOFRes_sample.c", line 205: 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_TOFRes_sample.c", line 240: 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_TOFRes_sample.c", line 253: 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_TOFRes_sample.c", line 270: 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_TOFRes_sample.c", line 290: 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_TOFRes_sample.c", line 372: 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_TOFRes_sample.c", line 374: 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_TOFRes_sample.c", line 724: 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_TOFRes_sample.c", line 945: 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_TOFRes_sample.c", line 962: 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_TOFRes_sample.c", line 964: 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_TOFRes_sample.c", line 972: 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_TOFRes_sample.c", line 974: 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_TOFRes_sample.c", line 976: 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_TOFRes_sample.c", line 978: 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_TOFRes_sample.c", line 980: 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_TOFRes_sample.c", line 1076: 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_TOFRes_sample.c", line 1078: 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_TOFRes_sample.c", line 1080: 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_TOFRes_sample.c", line 1082: 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_TOFRes_sample.c", line 1084: 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_TOFRes_sample.c", line 1086: 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_TOFRes_sample.c", line 1088: 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_TOFRes_sample.c", line 1090: 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_TOFRes_sample.c", line 1092: 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_TOFRes_sample.c", line 4644: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./Test_TOFRes_sample.c", line 6345: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_TOFRes_sample.c", line 7063: warning: Routine "Table_Index" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Index(t_Table Table, long i, long j); /* get indexed value */ ^ "./Test_TOFRes_sample.c", line 7065: warning: Routine "Table_Value" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Value(t_Table Table, double X, long j); /* search X in 1st column and return interpolated value in j-column */ ^ "./Test_TOFRes_sample.c", line 7072: warning: Routine "Table_Value2d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Value2d(t_Table Table, double X, double Y); /* same as Table_Index with non-integer indices and 2d interpolation */ ^ "./Test_TOFRes_sample.c", line 7092: warning: Routine "Table_Interp1d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Interp1d(double x, double x1, double y1, double x2, double y2); ^ "./Test_TOFRes_sample.c", line 7094: warning: Routine "Table_Interp1d_nearest" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Interp1d_nearest(double x, double x1, double y1, double x2, double y2); ^ "./Test_TOFRes_sample.c", line 7096: warning: Routine "Table_Interp2d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Interp2d(double x, double y, double x1, double y1, double x2, double y2, ^ "./Test_TOFRes_sample.c", line 7297: warning: Routine "Monitor_nD_Trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int Monitor_nD_Trace(MonitornD_Defines_type *, MonitornD_Variables_type *, _class_particle* _particle); ^ "./Test_TOFRes_sample.c", line 7356: error: expected a ")" extern void tl2_mat_zero(double* M, int I, int J); ^ "./Test_TOFRes_sample.c", line 7371: error: expected a ")" extern void tl2_mat_cpy(double* DST, const double* SRC, int I, int J); ^ "./Test_TOFRes_sample.c", line 7386: error: expected a ")" extern int tl2_inverse(const double* M, double* I, int N); ^ "./Test_TOFRes_sample.c", line 7392: error: expected a ")" double *RES, int I, int J, int K); ^ "./Test_TOFRes_sample.c", line 7398: error: expected a ")" double *res, int I, int J); ^ "./Test_TOFRes_sample.c", line 7454: error: expected a ")" double *RES, int I, int J); ^ "./Test_TOFRes_sample.c", line 7460: error: expected a ")" double *RES, int I, int J); ^ "./Test_TOFRes_sample.c", line 7465: error: expected a ")" extern void tl2_mat_neg(const double* M, double *RES, int I, int J); ^ "./Test_TOFRes_sample.c", line 7471: error: expected a ")" double *RES, int I, int J); ^ "./Test_TOFRes_sample.c", line 7477: error: expected a ")" double *RES, int I, int J); ^ "./Test_TOFRes_sample.c", line 7509: warning: Routine "tl2_k_to_E" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] extern double tl2_k_to_E(double kix, double kiy, double kiz, double kfx, double kfy, double kfz); ^ "./Test_TOFRes_sample.c", line 7511: error: expected a ")" extern void tl2_print_vec(const double* vec, const char* title, int I); ^ "./Test_TOFRes_sample.c", line 7512: error: expected a ")" extern void tl2_print_mat(const double* mat, const char* title, int I, int J); ^ "./Test_TOFRes_sample.c", line 11566: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_TOFRes_sample.c", line 11566: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_TOFRes_sample.c", line 11593: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_TOFRes_sample.c", line 11593: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_TOFRes_sample.c", line 11682: error: expected a ")" void tl2_print_vec(const double* vec, const char* title, int I) ^ "./Test_TOFRes_sample.c", line 11682: warning: unnamed prototyped parameters not allowed when body is present [all_proto_params_must_be_named] void tl2_print_vec(const double* vec, const char* title, int I) ^ "./Test_TOFRes_sample.c", line 11686: error: complex type is not allowed for(int i = 0; i < I; ++i) ^ "./Test_TOFRes_sample.c", line 11692: error: expected a ")" void tl2_print_mat(const double* mat, const char* title, int I, int J) ^ "./Test_TOFRes_sample.c", line 11692: warning: unnamed prototyped parameters not allowed when body is present [all_proto_params_must_be_named] void tl2_print_mat(const double* mat, const char* title, int I, int J) ^ "./Test_TOFRes_sample.c", line 11696: error: complex type is not allowed for(int i = 0; i < I; ++i) ^ "./Test_TOFRes_sample.c", line 11773: error: expected a ")" void tl2_mat_zero(double* M, int I, int J) ^ "./Test_TOFRes_sample.c", line 11773: warning: unnamed prototyped parameters not allowed when body is present [all_proto_params_must_be_named] void tl2_mat_zero(double* M, int I, int J) ^ "./Test_TOFRes_sample.c", line 11778: error: complex type is not allowed for(int i = 0; i < I; ++i) ^ "./Test_TOFRes_sample.c", line 11813: error: expected a ")" void tl2_mat_cpy(double* DST, const double* SRC, int I, int J) ^ "./Test_TOFRes_sample.c", line 11813: warning: unnamed prototyped parameters not allowed when body is present [all_proto_params_must_be_named] void tl2_mat_cpy(double* DST, const double* SRC, int I, int J) ^ "./Test_TOFRes_sample.c", line 11818: error: complex type is not allowed for(int i = 0; i < I; ++i) ^ "./Test_TOFRes_sample.c", line 11915: error: expected a ")" int tl2_inverse(const double* M, double* I, int N) ^ "./Test_TOFRes_sample.c", line 11915: warning: unnamed prototyped parameters not allowed when body is present [all_proto_params_must_be_named] int tl2_inverse(const double* M, double* I, int N) ^ "./Test_TOFRes_sample.c", line 11936: error: expression must have pointer-to-object type but it has type "float __complex__" I[j*N + i] = tl2_determinant(submat, N - 1) * sgn / fullDet; ^ "./Test_TOFRes_sample.c", line 11948: error: expected a ")" void tl2_matmat_mul(const double* M1, const double* M2, double *RES, int I, int J, int K) ^ "./Test_TOFRes_sample.c", line 11948: warning: unnamed prototyped parameters not allowed when body is present [all_proto_params_must_be_named] void tl2_matmat_mul(const double* M1, const double* M2, double *RES, int I, int J, int K) ^ "./Test_TOFRes_sample.c", line 11953: error: complex type is not allowed for(int i = 0; i < I; ++i) ^ "./Test_TOFRes_sample.c", line 11969: error: expected a ")" void tl2_matvec_mul(const double* M, const double* v, double *res, int I, int J) ^ "./Test_TOFRes_sample.c", line 11969: warning: unnamed prototyped parameters not allowed when body is present [all_proto_params_must_be_named] void tl2_matvec_mul(const double* M, const double* v, double *res, int I, int J) ^ "./Test_TOFRes_sample.c", line 11974: error: complex type is not allowed for(int i = 0; i < I; ++i) ^ "./Test_TOFRes_sample.c", line 12120: error: expected a ")" void tl2_mat_add(const double* M0, const double* M1, double *RES, int I, int J) ^ "./Test_TOFRes_sample.c", line 12120: warning: unnamed prototyped parameters not allowed when body is present [all_proto_params_must_be_named] void tl2_mat_add(const double* M0, const double* M1, double *RES, int I, int J) ^ "./Test_TOFRes_sample.c", line 12125: error: complex type is not allowed for(int i = 0; i < I; ++i) ^ "./Test_TOFRes_sample.c", line 12134: error: expected a ")" void tl2_mat_sub(const double* M0, const double* M1, double *RES, int I, int J) ^ "./Test_TOFRes_sample.c", line 12134: warning: unnamed prototyped parameters not allowed when body is present [all_proto_params_must_be_named] void tl2_mat_sub(const double* M0, const double* M1, double *RES, int I, int J) ^ "./Test_TOFRes_sample.c", line 12139: error: complex type is not allowed for(int i = 0; i < I; ++i) ^ "./Test_TOFRes_sample.c", line 12148: error: expected a ")" void tl2_mat_neg(const double* M, double *RES, int I, int J) ^ "./Test_TOFRes_sample.c", line 12148: warning: unnamed prototyped parameters not allowed when body is present [all_proto_params_must_be_named] void tl2_mat_neg(const double* M, double *RES, int I, int J) ^ "./Test_TOFRes_sample.c", line 12153: error: complex type is not allowed for(int i = 0; i < I; ++i) ^ "./Test_TOFRes_sample.c", line 12162: error: expected a ")" void tl2_mat_mul(const double* M, double s, double *RES, int I, int J) ^ "./Test_TOFRes_sample.c", line 12162: warning: unnamed prototyped parameters not allowed when body is present [all_proto_params_must_be_named] void tl2_mat_mul(const double* M, double s, double *RES, int I, int J) ^ "./Test_TOFRes_sample.c", line 12167: error: complex type is not allowed for(int i = 0; i < I; ++i) ^ "./Test_TOFRes_sample.c", line 12176: error: expected a ")" void tl2_mat_div(const double* M, double s, double *RES, int I, int J) ^ "./Test_TOFRes_sample.c", line 12176: warning: unnamed prototyped parameters not allowed when body is present [all_proto_params_must_be_named] void tl2_mat_div(const double* M, double s, double *RES, int I, int J) ^ "./Test_TOFRes_sample.c", line 12697: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_TOFRes_sample.c", line 14260: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./Test_TOFRes_sample.c", line 14470: warning: Routine "class_ESS_moderator_short_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_ESS_moderator_short *class_ESS_moderator_short_trace(_class_ESS_moderator_short *_comp, _class_particle *_particle) { ^ "./Test_TOFRes_sample.c", line 14497: warning: variable "E" was declared but never referenced [declared_but_not_referenced] double v,tau_l,E,lambda,k,r,xf,yf,dx,dy,w_focus; ^ "./Test_TOFRes_sample.c", line 14617: warning: Routine "class_TOFLambda_monitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_TOFLambda_monitor *class_TOFLambda_monitor_trace(_class_TOFLambda_monitor *_comp, _class_particle *_particle) { ^ "./Test_TOFRes_sample.c", line 14642: warning: variable "div" was declared but never referenced [declared_but_not_referenced] double div; ^ "./Test_TOFRes_sample.c", line 14705: 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_TOFRes_sample.c", line 14749: warning: Routine "class_DiskChopper_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_DiskChopper *class_DiskChopper_trace(_class_DiskChopper *_comp, _class_particle *_particle) { ^ "./Test_TOFRes_sample.c", line 14839: warning: Routine "class_Guide_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Guide *class_Guide_trace(_class_Guide *_comp, _class_particle *_particle) { ^ "./Test_TOFRes_sample.c", line 14992: 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_TOFRes_sample.c", line 15063: warning: Routine "class_TOFRes_sample_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_TOFRes_sample *class_TOFRes_sample_trace(_class_TOFRes_sample *_comp, _class_particle *_particle) { ^ "./Test_TOFRes_sample.c", line 15099: warning: variable "E" was declared but never referenced [declared_but_not_referenced] double E; ^ "./Test_TOFRes_sample.c", line 15235: warning: Routine "class_TOFRes_monitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_TOFRes_monitor *class_TOFRes_monitor_trace(_class_TOFRes_monitor *_comp, _class_particle *_particle) { ^ "./Test_TOFRes_sample.c", line 15468: warning: Routine "raytrace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int raytrace(_class_particle* _particle) { /* single event propagation, called by mccode_main for Test_TOFRes_sample:TRACE */ ^ "./Test_TOFRes_sample.c", line 17535: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_TOFRes_sample.c", line 17536: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_TOFRes_sample.c", line 1581: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_TOFRes_sample.c", line 3001: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ 35 errors detected in the compilation of "./Test_TOFRes_sample.c". INFO: call to nvc failed with Command 'nvc -o ./Test_TOFRes_sample.out ./Test_TOFRes_sample.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 -fast -Minfo=accel -acc=gpu -gpu=mem:managed -DOPENACC' returned non-zero exit status 2. Traceback (most recent call last): File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 616, in main() File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 524, in main mcstas.prepare(options) File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 311, in prepare Process(lexer.quote(options.cc)).run(args) File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 77, in run raise err File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 73, in run proc = run(command, shell=True, check=True, text=True, capture_output=pipe) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'nvc -o ./Test_TOFRes_sample.out ./Test_TOFRes_sample.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 -fast -Minfo=accel -acc=gpu -gpu=mem:managed -DOPENACC' returned non-zero exit status 2.