INFO: No output directory specified (--dir) INFO: Using directory: "FZJ_BenchmarkSfin2_20250812_143539" INFO: Regenerating c-file: FZJ_BenchmarkSfin2.c DEBUG: CMD: /home/willend/micromamba/bin/mcstas -t -o ./FZJ_BenchmarkSfin2.c FZJ_BenchmarkSfin2.instr Info: 'CavitiesIn' is a contributed component. Info: 'Transmission_polarisatorABSnT' is a contributed component. Info: 'CavitiesOut' is a contributed component. Info: 'SANS_benchmark2' is a contributed component. Info: 'TOFSANSdet' is a contributed component. CFLAGS= ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT N at component repeat ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component repeat ----------------------------------------------------------- DEBUG: CMD: /home/willend/micromamba/bin/mcstas finished INFO: Linting generated code: ./FZJ_BenchmarkSfin2.c DEBUG: CMD: cppcheck ./FZJ_BenchmarkSfin2.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 FZJ_BenchmarkSfin2.c ... Checking FZJ_BenchmarkSfin2.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... FZJ_BenchmarkSfin2.c:2134:38: error: Array 'needle[2]' accessed at index 8, which is out of bounds. [arrayIndexOutOfBounds] unsigned char c2 = needle[j]; ^ FZJ_BenchmarkSfin2.c:2474:37: note: Calling function 'strcasestr', 2nd argument '"transpose"' value is "transpose" if (strcasestr(detector.format, "transpose")) istransposed = !istransposed; ^ FZJ_BenchmarkSfin2.c:2126:20: note: Assignment 'nlen=strlen(needle)', assigned value is 9 int nlen = strlen(needle); ^ FZJ_BenchmarkSfin2.c:2132:19: note: Assuming that condition 'j_parameters.Nqc*4)', assigned value is 0 calibNf = (double*)malloc(sizeof(double)*Nqc*4); ^ FZJ_BenchmarkSfin2.c:20792:7: note: Null pointer dereference calibN(qi,si) = 0.0; ^ FZJ_BenchmarkSfin2.c:20793:7: warning: If memory allocation fails, then there is a possible null pointer dereference: calibIf [nullPointerOutOfMemory] calibI(qi,si) = 0.0; ^ FZJ_BenchmarkSfin2.c:20759:28: note: Assuming allocation function fails calibIf = (double*)malloc(sizeof(double)*Nqc*4); ^ FZJ_BenchmarkSfin2.c:20759:13: note: Assignment 'calibIf=(double*)malloc(sizeof(double)*_comp->_parameters.Nqc*4)', assigned value is 0 calibIf = (double*)malloc(sizeof(double)*Nqc*4); ^ FZJ_BenchmarkSfin2.c:20793:7: note: Null pointer dereference calibI(qi,si) = 0.0; ^ FZJ_BenchmarkSfin2.c:20794:7: warning: If memory allocation fails, then there is a possible null pointer dereference: calibIef [nullPointerOutOfMemory] calibIe(qi,si)= 0.0; ^ FZJ_BenchmarkSfin2.c:20760:28: note: Assuming allocation function fails calibIef= (double*)malloc(sizeof(double)*Nqc*4); ^ FZJ_BenchmarkSfin2.c:20760:13: note: Assignment 'calibIef=(double*)malloc(sizeof(double)*_comp->_parameters.Nqc*4)', assigned value is 0 calibIef= (double*)malloc(sizeof(double)*Nqc*4); ^ FZJ_BenchmarkSfin2.c:20794:7: note: Null pointer dereference calibIe(qi,si)= 0.0; ^ FZJ_BenchmarkSfin2.c:20795:7: warning: If memory allocation fails, then there is a possible null pointer dereference: calibWtf [nullPointerOutOfMemory] calibWt(qi,si)= 0.0; ^ FZJ_BenchmarkSfin2.c:20761:28: note: Assuming allocation function fails calibWtf= (double*)malloc(sizeof(double)*Nqc*4); ^ FZJ_BenchmarkSfin2.c:20761:13: note: Assignment 'calibWtf=(double*)malloc(sizeof(double)*_comp->_parameters.Nqc*4)', assigned value is 0 calibWtf= (double*)malloc(sizeof(double)*Nqc*4); ^ FZJ_BenchmarkSfin2.c:20795:7: note: Null pointer dereference calibWt(qi,si)= 0.0; ^ FZJ_BenchmarkSfin2.c:20798:7: warning: If memory allocation fails, then there is a possible null pointer dereference: sectnNf [nullPointerOutOfMemory] sectnN(qi,si) = 0.0; ^ FZJ_BenchmarkSfin2.c:20762:28: note: Assuming allocation function fails sectnNf = (double*)malloc(sizeof(double)*Nqc*20); ^ FZJ_BenchmarkSfin2.c:20762:13: note: Assignment 'sectnNf=(double*)malloc(sizeof(double)*_comp->_parameters.Nqc*20)', assigned value is 0 sectnNf = (double*)malloc(sizeof(double)*Nqc*20); ^ FZJ_BenchmarkSfin2.c:20798:7: note: Null pointer dereference sectnN(qi,si) = 0.0; ^ FZJ_BenchmarkSfin2.c:20799:7: warning: If memory allocation fails, then there is a possible null pointer dereference: sectnIf [nullPointerOutOfMemory] sectnI(qi,si) = 0.0; ^ FZJ_BenchmarkSfin2.c:20763:28: note: Assuming allocation function fails sectnIf = (double*)malloc(sizeof(double)*Nqc*20); ^ FZJ_BenchmarkSfin2.c:20763:13: note: Assignment 'sectnIf=(double*)malloc(sizeof(double)*_comp->_parameters.Nqc*20)', assigned value is 0 sectnIf = (double*)malloc(sizeof(double)*Nqc*20); ^ FZJ_BenchmarkSfin2.c:20799:7: note: Null pointer dereference sectnI(qi,si) = 0.0; ^ FZJ_BenchmarkSfin2.c:20800:7: warning: If memory allocation fails, then there is a possible null pointer dereference: sectnIef [nullPointerOutOfMemory] sectnIe(qi,si)= 0.0; ^ FZJ_BenchmarkSfin2.c:20764:28: note: Assuming allocation function fails sectnIef= (double*)malloc(sizeof(double)*Nqc*20); ^ FZJ_BenchmarkSfin2.c:20764:13: note: Assignment 'sectnIef=(double*)malloc(sizeof(double)*_comp->_parameters.Nqc*20)', assigned value is 0 sectnIef= (double*)malloc(sizeof(double)*Nqc*20); ^ FZJ_BenchmarkSfin2.c:20800:7: note: Null pointer dereference sectnIe(qi,si)= 0.0; ^ FZJ_BenchmarkSfin2.c:20801:7: warning: If memory allocation fails, then there is a possible null pointer dereference: sectnWtf [nullPointerOutOfMemory] sectnWt(qi,si)= 0.0; ^ FZJ_BenchmarkSfin2.c:20765:28: note: Assuming allocation function fails sectnWtf= (double*)malloc(sizeof(double)*Nqc*20); ^ FZJ_BenchmarkSfin2.c:20765:13: note: Assignment 'sectnWtf=(double*)malloc(sizeof(double)*_comp->_parameters.Nqc*20)', assigned value is 0 sectnWtf= (double*)malloc(sizeof(double)*Nqc*20); ^ FZJ_BenchmarkSfin2.c:20801:7: note: Null pointer dereference sectnWt(qi,si)= 0.0; ^ FZJ_BenchmarkSfin2.c:21141:11: warning: If memory allocation fails, then there is a possible null pointer dereference: calibIf [nullPointerOutOfMemory] if (calibI(qi,si)>0.0 && calibWt(qi,si)>0.0) { ^ FZJ_BenchmarkSfin2.c:20759:28: note: Assuming allocation function fails calibIf = (double*)malloc(sizeof(double)*Nqc*4); ^ FZJ_BenchmarkSfin2.c:20759:13: note: Assignment 'calibIf=(double*)malloc(sizeof(double)*_comp->_parameters.Nqc*4)', assigned value is 0 calibIf = (double*)malloc(sizeof(double)*Nqc*4); ^ FZJ_BenchmarkSfin2.c:21141:11: note: Null pointer dereference if (calibI(qi,si)>0.0 && calibWt(qi,si)>0.0) { ^ FZJ_BenchmarkSfin2.c:21141:32: warning: If memory allocation fails, then there is a possible null pointer dereference: calibWtf [nullPointerOutOfMemory] if (calibI(qi,si)>0.0 && calibWt(qi,si)>0.0) { ^ FZJ_BenchmarkSfin2.c:20761:28: note: Assuming allocation function fails calibWtf= (double*)malloc(sizeof(double)*Nqc*4); ^ FZJ_BenchmarkSfin2.c:20761:13: note: Assignment 'calibWtf=(double*)malloc(sizeof(double)*_comp->_parameters.Nqc*4)', assigned value is 0 calibWtf= (double*)malloc(sizeof(double)*Nqc*4); ^ FZJ_BenchmarkSfin2.c:21141:32: note: Null pointer dereference if (calibI(qi,si)>0.0 && calibWt(qi,si)>0.0) { ^ FZJ_BenchmarkSfin2.c:21147:11: warning: If memory allocation fails, then there is a possible null pointer dereference: sectnIf [nullPointerOutOfMemory] if (sectnI(qi,si)>0.0 && sectnWt(qi,si)>0.0) { ^ FZJ_BenchmarkSfin2.c:20763:28: note: Assuming allocation function fails sectnIf = (double*)malloc(sizeof(double)*Nqc*20); ^ FZJ_BenchmarkSfin2.c:20763:13: note: Assignment 'sectnIf=(double*)malloc(sizeof(double)*_comp->_parameters.Nqc*20)', assigned value is 0 sectnIf = (double*)malloc(sizeof(double)*Nqc*20); ^ FZJ_BenchmarkSfin2.c:21147:11: note: Null pointer dereference if (sectnI(qi,si)>0.0 && sectnWt(qi,si)>0.0) { ^ FZJ_BenchmarkSfin2.c:21147:32: warning: If memory allocation fails, then there is a possible null pointer dereference: sectnWtf [nullPointerOutOfMemory] if (sectnI(qi,si)>0.0 && sectnWt(qi,si)>0.0) { ^ FZJ_BenchmarkSfin2.c:20765:28: note: Assuming allocation function fails sectnWtf= (double*)malloc(sizeof(double)*Nqc*20); ^ FZJ_BenchmarkSfin2.c:20765:13: note: Assignment 'sectnWtf=(double*)malloc(sizeof(double)*_comp->_parameters.Nqc*20)', assigned value is 0 sectnWtf= (double*)malloc(sizeof(double)*Nqc*20); ^ FZJ_BenchmarkSfin2.c:21147:32: note: Null pointer dereference if (sectnI(qi,si)>0.0 && sectnWt(qi,si)>0.0) { ^ FZJ_BenchmarkSfin2.c:21192:18: warning: If memory allocation fails, then there is a possible null pointer dereference: calibNf [nullPointerOutOfMemory] simplN[qi]= calibN(qi,si); ^ FZJ_BenchmarkSfin2.c:20758:28: note: Assuming allocation function fails calibNf = (double*)malloc(sizeof(double)*Nqc*4); ^ FZJ_BenchmarkSfin2.c:20758:13: note: Assignment 'calibNf=(double*)malloc(sizeof(double)*_comp->_parameters.Nqc*4)', assigned value is 0 calibNf = (double*)malloc(sizeof(double)*Nqc*4); ^ FZJ_BenchmarkSfin2.c:21192:18: note: Null pointer dereference simplN[qi]= calibN(qi,si); ^ FZJ_BenchmarkSfin2.c:21193:18: warning: If memory allocation fails, then there is a possible null pointer dereference: calibIf [nullPointerOutOfMemory] simplI[qi]= calibI(qi,si); ^ FZJ_BenchmarkSfin2.c:20759:28: note: Assuming allocation function fails calibIf = (double*)malloc(sizeof(double)*Nqc*4); ^ FZJ_BenchmarkSfin2.c:20759:13: note: Assignment 'calibIf=(double*)malloc(sizeof(double)*_comp->_parameters.Nqc*4)', assigned value is 0 calibIf = (double*)malloc(sizeof(double)*Nqc*4); ^ FZJ_BenchmarkSfin2.c:21193:18: note: Null pointer dereference simplI[qi]= calibI(qi,si); ^ FZJ_BenchmarkSfin2.c:21194:18: warning: If memory allocation fails, then there is a possible null pointer dereference: calibIef [nullPointerOutOfMemory] simplIe[qi]=calibIe(qi,si); ^ FZJ_BenchmarkSfin2.c:20760:28: note: Assuming allocation function fails calibIef= (double*)malloc(sizeof(double)*Nqc*4); ^ FZJ_BenchmarkSfin2.c:20760:13: note: Assignment 'calibIef=(double*)malloc(sizeof(double)*_comp->_parameters.Nqc*4)', assigned value is 0 calibIef= (double*)malloc(sizeof(double)*Nqc*4); ^ FZJ_BenchmarkSfin2.c:21194:18: note: Null pointer dereference simplIe[qi]=calibIe(qi,si); ^ FZJ_BenchmarkSfin2.c:21220:18: warning: If memory allocation fails, then there is a possible null pointer dereference: sectnNf [nullPointerOutOfMemory] simplN[qi]= sectnN(qi,si); ^ FZJ_BenchmarkSfin2.c:20762:28: note: Assuming allocation function fails sectnNf = (double*)malloc(sizeof(double)*Nqc*20); ^ FZJ_BenchmarkSfin2.c:20762:13: note: Assignment 'sectnNf=(double*)malloc(sizeof(double)*_comp->_parameters.Nqc*20)', assigned value is 0 sectnNf = (double*)malloc(sizeof(double)*Nqc*20); ^ FZJ_BenchmarkSfin2.c:21220:18: note: Null pointer dereference simplN[qi]= sectnN(qi,si); ^ FZJ_BenchmarkSfin2.c:21221:18: warning: If memory allocation fails, then there is a possible null pointer dereference: sectnIf [nullPointerOutOfMemory] simplI[qi]= sectnI(qi,si); ^ FZJ_BenchmarkSfin2.c:20763:28: note: Assuming allocation function fails sectnIf = (double*)malloc(sizeof(double)*Nqc*20); ^ FZJ_BenchmarkSfin2.c:20763:13: note: Assignment 'sectnIf=(double*)malloc(sizeof(double)*_comp->_parameters.Nqc*20)', assigned value is 0 sectnIf = (double*)malloc(sizeof(double)*Nqc*20); ^ FZJ_BenchmarkSfin2.c:21221:18: note: Null pointer dereference simplI[qi]= sectnI(qi,si); ^ FZJ_BenchmarkSfin2.c:21222:18: warning: If memory allocation fails, then there is a possible null pointer dereference: sectnIef [nullPointerOutOfMemory] simplIe[qi]=sectnIe(qi,si); ^ FZJ_BenchmarkSfin2.c:20764:28: note: Assuming allocation function fails sectnIef= (double*)malloc(sizeof(double)*Nqc*20); ^ FZJ_BenchmarkSfin2.c:20764:13: note: Assignment 'sectnIef=(double*)malloc(sizeof(double)*_comp->_parameters.Nqc*20)', assigned value is 0 sectnIef= (double*)malloc(sizeof(double)*Nqc*20); ^ FZJ_BenchmarkSfin2.c:21222:18: note: Null pointer dereference simplIe[qi]=sectnIe(qi,si); ^ Checking FZJ_BenchmarkSfin2.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 FZJ_BenchmarkSfin2.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 FZJ_BenchmarkSfin2.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 FZJ_BenchmarkSfin2.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 FZJ_BenchmarkSfin2.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 FZJ_BenchmarkSfin2.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 FZJ_BenchmarkSfin2.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 FZJ_BenchmarkSfin2.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 FZJ_BenchmarkSfin2.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 FZJ_BenchmarkSfin2.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 FZJ_BenchmarkSfin2.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 ./FZJ_BenchmarkSfin2.c