INFO: No output directory specified (--dir) INFO: Using directory: "ISIS_TOSCA_preupgrade_Mantid_20250814_020154" INFO: Regenerating c-file: ISIS_TOSCA_preupgrade_Mantid.c DEBUG: CMD: /home/willend/micromamba/bin/mcstas -t -o ./ISIS_TOSCA_preupgrade_Mantid.c ISIS_TOSCA_preupgrade_Mantid.instr Info: 'ISIS_moderator' is a contributed component. CFLAGS= @NEXUSFLAGS@ --> Added COMPONENT monocr_b1 USERVAR ncol_25 with type int --> Added COMPONENT monocr_b1 USERVAR nrow_25 with type int --> Added COMPONENT monocr_b2 USERVAR ncol_26 with type int --> Added COMPONENT monocr_b2 USERVAR nrow_26 with type int --> Added COMPONENT monocr_b3 USERVAR ncol_27 with type int --> Added COMPONENT monocr_b3 USERVAR nrow_27 with type int --> Added COMPONENT monocr_b4 USERVAR ncol_28 with type int --> Added COMPONENT monocr_b4 USERVAR nrow_28 with type int --> Added COMPONENT monocr_b5 USERVAR ncol_29 with type int --> Added COMPONENT monocr_b5 USERVAR nrow_29 with type int --> Added COMPONENT monocr_f6 USERVAR ncol_30 with type int --> Added COMPONENT monocr_f6 USERVAR nrow_30 with type int --> Added COMPONENT monocr_f7 USERVAR ncol_31 with type int --> Added COMPONENT monocr_f7 USERVAR nrow_31 with type int --> Added COMPONENT monocr_f8 USERVAR ncol_32 with type int --> Added COMPONENT monocr_f8 USERVAR nrow_32 with type int --> Added COMPONENT monocr_f9 USERVAR ncol_33 with type int --> Added COMPONENT monocr_f9 USERVAR nrow_33 with type int --> Added COMPONENT monocr_f10 USERVAR ncol_34 with type int --> Added COMPONENT monocr_f10 USERVAR nrow_34 with type int WARNING: The parameter powder_format of powder is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT N at component powder -> SPLIT N at component Repeat ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component powder -> SPLIT within buffer at component Repeat ----------------------------------------------------------- DEBUG: CMD: /home/willend/micromamba/bin/mcstas finished INFO: Linting generated code: ./ISIS_TOSCA_preupgrade_Mantid.c DEBUG: CMD: cppcheck ./ISIS_TOSCA_preupgrade_Mantid.c --check-level=exhaustive --force -DMCDEFAULT_NCOUNT=1000000 -UMC_PORTABLE -DND_BUFFER=10000000 -UNOABSORB_INF_NAN -UOMPI_MPI_H -DSIGABRT -DSIGBREAK -DSIGBUS -DSIGPE -DSIGHUP -DSIGILL -DSIGINT -DSIGKILL -DSIGUSR1 -DSIGUSR2 -DSIGPIPE -DSIGQUIT -DSIGSEGV -DSIGTRAP -DSIGURG -DSIGFPE -DSIGKILL -DSIGTERM -UTEST -UUSE_OPENCL -UWIN32 -UOPENACC -UGCCOFFLOAD -U_MSC_VER -U_MSC_EXTENSIONS -U_WIN32 -UWIN32 -D__unix__ -UDANSE -UFUNNEL -UMC_ANCIENT_COMPATIBILITY -UMC_POL_COMPAT -UNEUTRONICS -Uisnan -Uisinf Checking ISIS_TOSCA_preupgrade_Mantid.c ... Checking ISIS_TOSCA_preupgrade_Mantid.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1... ISIS_TOSCA_preupgrade_Mantid.c:7223:3: warning: If memory allocation fails, then there is a possible null pointer dereference: C [nullPointerOutOfMemory] C[0]=Y[0]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7213:21: note: Assuming allocation function fails double *C = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7213:21: note: Assignment 'C=malloc(Psize*sizeof(double))', assigned value is 0 double *C = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7223:3: note: Null pointer dereference C[0]=Y[0]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7224:3: warning: If memory allocation fails, then there is a possible null pointer dereference: D [nullPointerOutOfMemory] D[0]=Y[0]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7214:21: note: Assuming allocation function fails double *D = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7214:21: note: Assignment 'D=malloc(Psize*sizeof(double))', assigned value is 0 double *D = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7224:3: note: Null pointer dereference D[0]=Y[0]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7233:7: warning: If memory allocation fails, then there is a possible null pointer dereference: C [nullPointerOutOfMemory] C[i]=Y[i]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7213:21: note: Assuming allocation function fails double *C = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7213:21: note: Assignment 'C=malloc(Psize*sizeof(double))', assigned value is 0 double *C = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7233:7: note: Null pointer dereference C[i]=Y[i]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7234:7: warning: If memory allocation fails, then there is a possible null pointer dereference: D [nullPointerOutOfMemory] D[i]=Y[i]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7214:21: note: Assuming allocation function fails double *D = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7214:21: note: Assignment 'D=malloc(Psize*sizeof(double))', assigned value is 0 double *D = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7234:7: note: Null pointer dereference D[i]=Y[i]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7246:6: warning: If memory allocation fails, then there is a possible null pointer dereference: C [nullPointerOutOfMemory] w=C[i+1]-D[i]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7213:21: note: Assuming allocation function fails double *C = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7213:21: note: Assignment 'C=malloc(Psize*sizeof(double))', assigned value is 0 double *C = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7246:6: note: Null pointer dereference w=C[i+1]-D[i]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7246:13: warning: If memory allocation fails, then there is a possible null pointer dereference: D [nullPointerOutOfMemory] w=C[i+1]-D[i]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7214:21: note: Assuming allocation function fails double *D = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7214:21: note: Assignment 'D=malloc(Psize*sizeof(double))', assigned value is 0 double *D = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7246:13: note: Null pointer dereference w=C[i+1]-D[i]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7249:4: warning: If memory allocation fails, then there is a possible null pointer dereference: D [nullPointerOutOfMemory] D[i]=hp*den; ^ ISIS_TOSCA_preupgrade_Mantid.c:7214:21: note: Assuming allocation function fails double *D = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7214:21: note: Assignment 'D=malloc(Psize*sizeof(double))', assigned value is 0 double *D = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7249:4: note: Null pointer dereference D[i]=hp*den; ^ ISIS_TOSCA_preupgrade_Mantid.c:7250:4: warning: If memory allocation fails, then there is a possible null pointer dereference: C [nullPointerOutOfMemory] C[i]=ho*den; ^ ISIS_TOSCA_preupgrade_Mantid.c:7213:21: note: Assuming allocation function fails double *C = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7213:21: note: Assignment 'C=malloc(Psize*sizeof(double))', assigned value is 0 double *C = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7250:4: note: Null pointer dereference C[i]=ho*den; ^ ISIS_TOSCA_preupgrade_Mantid.c:7253:38: warning: If memory allocation fails, then there is a possible null pointer dereference: C [nullPointerOutOfMemory] errOut= (2*(ns+1)<(Psize-m)) ? C[ns+1] : D[ns--]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7213:21: note: Assuming allocation function fails double *C = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7213:21: note: Assignment 'C=malloc(Psize*sizeof(double))', assigned value is 0 double *C = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7253:38: note: Null pointer dereference errOut= (2*(ns+1)<(Psize-m)) ? C[ns+1] : D[ns--]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7253:48: warning: If memory allocation fails, then there is a possible null pointer dereference: D [nullPointerOutOfMemory] errOut= (2*(ns+1)<(Psize-m)) ? C[ns+1] : D[ns--]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7214:21: note: Assuming allocation function fails double *D = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7214:21: note: Assignment 'D=malloc(Psize*sizeof(double))', assigned value is 0 double *D = malloc(Psize*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7253:48: note: Null pointer dereference errOut= (2*(ns+1)<(Psize-m)) ? C[ns+1] : D[ns--]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7317:7: warning: If memory allocation fails, then there is a possible null pointer dereference: ss [nullPointerOutOfMemory] ss[j]=mc[i]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7312:12: note: Assuming allocation function fails ss=malloc(sizeof(char)*(len+1)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7312:12: note: Assignment 'ss=malloc(sizeof(char)*(len+1))', assigned value is 0 ss=malloc(sizeof(char)*(len+1)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7317:7: note: Null pointer dereference ss[j]=mc[i]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7785:4: warning: If memory allocation fails, then there is a possible null pointer dereference: ss [nullPointerOutOfMemory] ss[j]=mc[i]; ^ ISIS_TOSCA_preupgrade_Mantid.c:7780:16: note: Assuming allocation function fails ss=malloc(sizeof(char)*(len+1)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7780:16: note: Assignment 'ss=malloc(sizeof(char)*(len+1))', assigned value is 0 ss=malloc(sizeof(char)*(len+1)); ^ ISIS_TOSCA_preupgrade_Mantid.c:7785:4: note: Null pointer dereference ss[j]=mc[i]; ^ ISIS_TOSCA_preupgrade_Mantid.c:14748:37: warning: If memory allocation fails, then there is a possible null pointer dereference: w_file2full [nullPointerOutOfMemory] for (index_w=0; index_w < w_bins; w_file2full[index_w++]=0); ^ ISIS_TOSCA_preupgrade_Mantid.c:14746:31: note: Assuming allocation function fails double *w_file2full = malloc(w_bins*sizeof(double)); /* lookup table for fast file -> Sqw_full allocation */ ^ ISIS_TOSCA_preupgrade_Mantid.c:14746:31: note: Assignment 'w_file2full=malloc(w_bins*sizeof(double))', assigned value is 0 double *w_file2full = malloc(w_bins*sizeof(double)); /* lookup table for fast file -> Sqw_full allocation */ ^ ISIS_TOSCA_preupgrade_Mantid.c:14748:37: note: Null pointer dereference for (index_w=0; index_w < w_bins; w_file2full[index_w++]=0); ^ ISIS_TOSCA_preupgrade_Mantid.c:14788:39: warning: If memory allocation fails, then there is a possible null pointer dereference: q_file2full [nullPointerOutOfMemory] for (index_q=0; index_q < q_bins; q_file2full[index_q++]=0); ^ ISIS_TOSCA_preupgrade_Mantid.c:14787:29: note: Assuming allocation function fails double *q_file2full=malloc(q_bins*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:14787:29: note: Assignment 'q_file2full=malloc(q_bins*sizeof(double))', assigned value is 0 double *q_file2full=malloc(q_bins*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:14788:39: note: Null pointer dereference for (index_q=0; index_q < q_bins; q_file2full[index_q++]=0); ^ ISIS_TOSCA_preupgrade_Mantid.c:14807:5: warning: If memory allocation fails, then there is a possible null pointer dereference: q_file2full [nullPointerOutOfMemory] q_file2full[index_q] = index_q_file; ^ ISIS_TOSCA_preupgrade_Mantid.c:14787:29: note: Assuming allocation function fails double *q_file2full=malloc(q_bins*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:14787:29: note: Assignment 'q_file2full=malloc(q_bins*sizeof(double))', assigned value is 0 double *q_file2full=malloc(q_bins*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:14807:5: note: Null pointer dereference q_file2full[index_q] = index_q_file; ^ ISIS_TOSCA_preupgrade_Mantid.c:14817:20: warning: If memory allocation fails, then there is a possible null pointer dereference: q_file2full [nullPointerOutOfMemory] index_q_file = q_file2full[index_q]; ^ ISIS_TOSCA_preupgrade_Mantid.c:14787:29: note: Assuming allocation function fails double *q_file2full=malloc(q_bins*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:14787:29: note: Assignment 'q_file2full=malloc(q_bins*sizeof(double))', assigned value is 0 double *q_file2full=malloc(q_bins*sizeof(double)); ^ ISIS_TOSCA_preupgrade_Mantid.c:14817:20: note: Null pointer dereference index_q_file = q_file2full[index_q]; ^ Checking ISIS_TOSCA_preupgrade_Mantid.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;OFF_LEGACY... Checking ISIS_TOSCA_preupgrade_Mantid.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;SIGKILL;SIGUSR1;SIGUSR2... Checking ISIS_TOSCA_preupgrade_Mantid.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;USE_MPI... Checking ISIS_TOSCA_preupgrade_Mantid.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;USE_MPI;USE_NEXUS... Checking ISIS_TOSCA_preupgrade_Mantid.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;USE_NEXUS... Checking ISIS_TOSCA_preupgrade_Mantid.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;__APPLE__;__GNUC__... Checking ISIS_TOSCA_preupgrade_Mantid.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;__APPLE__;__unix__... Checking ISIS_TOSCA_preupgrade_Mantid.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;__FreeBSD__... Checking ISIS_TOSCA_preupgrade_Mantid.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;__GNUC__... Checking ISIS_TOSCA_preupgrade_Mantid.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;__GNUC__;__clang__... Checking ISIS_TOSCA_preupgrade_Mantid.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;__dest_os... DEBUG: CMD: cppcheck finished INFO: End of linting ./ISIS_TOSCA_preupgrade_Mantid.c