INFO: No output directory specified (--dir) INFO: Using directory: "ILL_H53_D16_20250813_095945" INFO: Regenerating c-file: ILL_H53_D16.c DEBUG: CMD: /home/willend/micromamba/bin/mcstas -t -o ./ILL_H53_D16.c ILL_H53_D16.instr Info: 'Al_window' is a contributed component. Info: 'PSD_Detector' is a contributed component. CFLAGS= --> Added COMPONENT mono USERVAR ncol_87 with type int --> Added COMPONENT mono USERVAR nrow_87 with type int WARNING: --> USERVAR flag_al is of type char and may need specific --> per-particle initialisation through an --> EXTEND block! WARNING: --> USERVAR flag_sample is of type char and may need specific --> per-particle initialisation through an --> EXTEND block! WARNING: The parameter format of SampleP 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 mono -> SPLIT N at component D16_xy ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component mono -> SPLIT within buffer at component D16_xy ----------------------------------------------------------- DEBUG: CMD: /home/willend/micromamba/bin/mcstas finished INFO: Linting generated code: ./ILL_H53_D16.c DEBUG: CMD: cppcheck ./ILL_H53_D16.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 ILL_H53_D16.c ... Checking ILL_H53_D16.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... ILL_H53_D16.c:25524:5: warning: If memory allocation fails, then there is a possible null pointer dereference: E_p [nullPointerOutOfMemory] E_p[i] = Table_Index(Part_He_3_p,i,0); ^ ILL_H53_D16.c:25520:26: note: Assuming allocation function fails E_p = (double *) malloc(nH_p*sizeof(double)); ^ ILL_H53_D16.c:25520:9: note: Assignment 'E_p=(double*)malloc(_comp->_parameters.nH_p*sizeof(double))', assigned value is 0 E_p = (double *) malloc(nH_p*sizeof(double)); ^ ILL_H53_D16.c:25524:5: note: Null pointer dereference E_p[i] = Table_Index(Part_He_3_p,i,0); ^ ILL_H53_D16.c:25525:9: warning: If memory allocation fails, then there is a possible null pointer dereference: E_p [nullPointerOutOfMemory] if (E_p[i] != Table_Index(Part_Stop_p,i,0)) { ^ ILL_H53_D16.c:25520:26: note: Assuming allocation function fails E_p = (double *) malloc(nH_p*sizeof(double)); ^ ILL_H53_D16.c:25520:9: note: Assignment 'E_p=(double*)malloc(_comp->_parameters.nH_p*sizeof(double))', assigned value is 0 E_p = (double *) malloc(nH_p*sizeof(double)); ^ ILL_H53_D16.c:25525:9: note: Null pointer dereference if (E_p[i] != Table_Index(Part_Stop_p,i,0)) { ^ ILL_H53_D16.c:25530:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dEdx_p [nullPointerOutOfMemory] dEdx_p[i] = PressureConv*Table_Index(Part_He_3_p,i,1) + PressureStop*Table_Index(Part_Stop_p,i,1); ^ ILL_H53_D16.c:25522:29: note: Assuming allocation function fails dEdx_p = (double *) malloc(nH_p*sizeof(double)); ^ ILL_H53_D16.c:25522:12: note: Assignment 'dEdx_p=(double*)malloc(_comp->_parameters.nH_p*sizeof(double))', assigned value is 0 dEdx_p = (double *) malloc(nH_p*sizeof(double)); ^ ILL_H53_D16.c:25525:16: note: Assuming condition is false if (E_p[i] != Table_Index(Part_Stop_p,i,0)) { ^ ILL_H53_D16.c:25530:5: note: Null pointer dereference dEdx_p[i] = PressureConv*Table_Index(Part_He_3_p,i,1) + PressureStop*Table_Index(Part_Stop_p,i,1); ^ ILL_H53_D16.c:25532:17: warning: If memory allocation fails, then there is a possible null pointer dereference: E_p [nullPointerOutOfMemory] FullEnergyP = E_p[nH_p-1]; ^ ILL_H53_D16.c:25520:26: note: Assuming allocation function fails E_p = (double *) malloc(nH_p*sizeof(double)); ^ ILL_H53_D16.c:25520:9: note: Assignment 'E_p=(double*)malloc(_comp->_parameters.nH_p*sizeof(double))', assigned value is 0 E_p = (double *) malloc(nH_p*sizeof(double)); ^ ILL_H53_D16.c:25525:16: note: Assuming condition is false if (E_p[i] != Table_Index(Part_Stop_p,i,0)) { ^ ILL_H53_D16.c:25532:17: note: Null pointer dereference FullEnergyP = E_p[nH_p-1]; ^ ILL_H53_D16.c:25538:30: warning: If memory allocation fails, then there is a possible null pointer dereference: DAP [nullPointerOutOfMemory] for (i=0; i_parameters.nH_p*sizeof(double))', assigned value is 0 DAP = (double *) malloc((nH_p)*sizeof(double)); ^ ILL_H53_D16.c:25538:30: note: Null pointer dereference for (i=0; i_parameters.nH_p+1)*sizeof(double))', assigned value is 0 MuAP = (double *) malloc((nH_p+1)*sizeof(double)); ^ ILL_H53_D16.c:25541:3: note: Null pointer dereference MuAP[0] = 0; ^ ILL_H53_D16.c:25542:30: warning: If memory allocation fails, then there is a possible null pointer dereference: MuAP [nullPointerOutOfMemory] for (i=1; i_parameters.nH_p+1)*sizeof(double))', assigned value is 0 MuAP = (double *) malloc((nH_p+1)*sizeof(double)); ^ ILL_H53_D16.c:25542:30: note: Null pointer dereference for (i=1; i_parameters.nH_p*sizeof(double))', assigned value is 0 DAP = (double *) malloc((nH_p)*sizeof(double)); ^ ILL_H53_D16.c:25542:45: note: Null pointer dereference for (i=1; i_parameters.nH_p+1)*sizeof(double))', assigned value is 0 MuAP = (double *) malloc((nH_p+1)*sizeof(double)); ^ ILL_H53_D16.c:25547:63: note: Null pointer dereference for (i=1; i_parameters.nH_p+1)*sizeof(double))', assigned value is 0 TempVar34 = (double *) malloc((nH_p+1)*sizeof(double)); ^ ILL_H53_D16.c:25552:30: note: Null pointer dereference for (i=0; i_parameters.nH_p+1)*sizeof(double))', assigned value is 0 TempVar34 = (double *) malloc((nH_p+1)*sizeof(double)); ^ ILL_H53_D16.c:25553:45: note: Null pointer dereference for (i=0; i_parameters.nH_p+1)*sizeof(double))', assigned value is 0 TempVar34 = (double *) malloc((nH_p+1)*sizeof(double)); ^ ILL_H53_D16.c:25554:30: note: Null pointer dereference for (i=0; i_parameters.nH_p+1)*sizeof(double))', assigned value is 0 TempVar34 = (double *) malloc((nH_p+1)*sizeof(double)); ^ ILL_H53_D16.c:25555:45: note: Null pointer dereference for (i=0; i_parameters.nH_p*sizeof(double))', assigned value is 0 ETP1 = (double *) malloc((nH_p)*sizeof(double)); ^ ILL_H53_D16.c:25560:28: note: Null pointer dereference for (i=0; i_parameters.nH_p*sizeof(double))', assigned value is 0 PTP1 = (double *) malloc((nH_p)*sizeof(double)); ^ ILL_H53_D16.c:25563:28: note: Null pointer dereference for (i=0; i_parameters.nH_p*sizeof(double))', assigned value is 0 PTP1 = (double *) malloc((nH_p)*sizeof(double)); ^ ILL_H53_D16.c:25568:52: note: Null pointer dereference for (i=1; i_parameters.nH_p*sizeof(double))', assigned value is 0 ETP1 = (double *) malloc((nH_p)*sizeof(double)); ^ ILL_H53_D16.c:25568:62: note: Null pointer dereference for (i=1; i_parameters.nH_t*sizeof(double))', assigned value is 0 E_t = (double *) malloc(nH_t*sizeof(double)); ^ ILL_H53_D16.c:25578:5: note: Null pointer dereference E_t[i] = Table_Index(Part_He_3_t,i,0); ^ ILL_H53_D16.c:25579:9: warning: If memory allocation fails, then there is a possible null pointer dereference: E_t [nullPointerOutOfMemory] if (E_t[i] != Table_Index(Part_Stop_t,i,0)) { ^ ILL_H53_D16.c:25574:26: note: Assuming allocation function fails E_t = (double *) malloc(nH_t*sizeof(double)); ^ ILL_H53_D16.c:25574:9: note: Assignment 'E_t=(double*)malloc(_comp->_parameters.nH_t*sizeof(double))', assigned value is 0 E_t = (double *) malloc(nH_t*sizeof(double)); ^ ILL_H53_D16.c:25579:9: note: Null pointer dereference if (E_t[i] != Table_Index(Part_Stop_t,i,0)) { ^ ILL_H53_D16.c:25584:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dEdx_t [nullPointerOutOfMemory] dEdx_t[i] = PressureConv*Table_Index(Part_He_3_t,i,1) + PressureStop*Table_Index(Part_Stop_t,i,1); ^ ILL_H53_D16.c:25576:29: note: Assuming allocation function fails dEdx_t = (double *) malloc(nH_t*sizeof(double)); ^ ILL_H53_D16.c:25576:12: note: Assignment 'dEdx_t=(double*)malloc(_comp->_parameters.nH_t*sizeof(double))', assigned value is 0 dEdx_t = (double *) malloc(nH_t*sizeof(double)); ^ ILL_H53_D16.c:25579:16: note: Assuming condition is false if (E_t[i] != Table_Index(Part_Stop_t,i,0)) { ^ ILL_H53_D16.c:25584:5: note: Null pointer dereference dEdx_t[i] = PressureConv*Table_Index(Part_He_3_t,i,1) + PressureStop*Table_Index(Part_Stop_t,i,1); ^ ILL_H53_D16.c:25586:17: warning: If memory allocation fails, then there is a possible null pointer dereference: E_t [nullPointerOutOfMemory] FullEnergyT = E_t[nH_t-1]; ^ ILL_H53_D16.c:25574:26: note: Assuming allocation function fails E_t = (double *) malloc(nH_t*sizeof(double)); ^ ILL_H53_D16.c:25574:9: note: Assignment 'E_t=(double*)malloc(_comp->_parameters.nH_t*sizeof(double))', assigned value is 0 E_t = (double *) malloc(nH_t*sizeof(double)); ^ ILL_H53_D16.c:25579:16: note: Assuming condition is false if (E_t[i] != Table_Index(Part_Stop_t,i,0)) { ^ ILL_H53_D16.c:25586:17: note: Null pointer dereference FullEnergyT = E_t[nH_t-1]; ^ ILL_H53_D16.c:25594:30: warning: If memory allocation fails, then there is a possible null pointer dereference: DAT [nullPointerOutOfMemory] for (i=0; i_parameters.nH_t*sizeof(double))', assigned value is 0 DAT = (double *) malloc((nH_t)*sizeof(double)); ^ ILL_H53_D16.c:25594:30: note: Null pointer dereference for (i=0; i_parameters.nH_t+1)*sizeof(double))', assigned value is 0 MuAT = (double *) malloc((nH_t+1)*sizeof(double)); ^ ILL_H53_D16.c:25597:3: note: Null pointer dereference MuAT[0] = 0; ^ ILL_H53_D16.c:25598:30: warning: If memory allocation fails, then there is a possible null pointer dereference: MuAT [nullPointerOutOfMemory] for (i=1; i_parameters.nH_t+1)*sizeof(double))', assigned value is 0 MuAT = (double *) malloc((nH_t+1)*sizeof(double)); ^ ILL_H53_D16.c:25598:30: note: Null pointer dereference for (i=1; i_parameters.nH_t*sizeof(double))', assigned value is 0 DAT = (double *) malloc((nH_t)*sizeof(double)); ^ ILL_H53_D16.c:25598:40: note: Null pointer dereference for (i=1; i_parameters.nH_t+1)*sizeof(double))', assigned value is 0 MuAT = (double *) malloc((nH_t+1)*sizeof(double)); ^ ILL_H53_D16.c:25603:59: note: Null pointer dereference for (i=1; i_parameters.nH_t+1)*sizeof(double))', assigned value is 0 TempVar35 = (double *) malloc((nH_t+1)*sizeof(double)); ^ ILL_H53_D16.c:25608:30: note: Null pointer dereference for (i=0; i_parameters.nH_t+1)*sizeof(double))', assigned value is 0 TempVar35 = (double *) malloc((nH_t+1)*sizeof(double)); ^ ILL_H53_D16.c:25609:45: note: Null pointer dereference for (i=0; i_parameters.nH_t+1)*sizeof(double))', assigned value is 0 TempVar35 = (double *) malloc((nH_t+1)*sizeof(double)); ^ ILL_H53_D16.c:25610:30: note: Null pointer dereference for (i=0; i_parameters.nH_t+1)*sizeof(double))', assigned value is 0 TempVar35 = (double *) malloc((nH_t+1)*sizeof(double)); ^ ILL_H53_D16.c:25611:45: note: Null pointer dereference for (i=0; i_parameters.nH_t*sizeof(double))', assigned value is 0 ETT1 = (double *) malloc((nH_t)*sizeof(double)); ^ ILL_H53_D16.c:25616:28: note: Null pointer dereference for (i=0; i_parameters.nH_t*sizeof(double))', assigned value is 0 PTT1 = (double *) malloc((nH_t)*sizeof(double)); ^ ILL_H53_D16.c:25619:28: note: Null pointer dereference for (i=0; i_parameters.nH_t*sizeof(double))', assigned value is 0 PTT1 = (double *) malloc((nH_t)*sizeof(double)); ^ ILL_H53_D16.c:25624:52: note: Null pointer dereference for (i=1; i_parameters.nH_t*sizeof(double))', assigned value is 0 ETT1 = (double *) malloc((nH_t)*sizeof(double)); ^ ILL_H53_D16.c:25624:62: note: Null pointer dereference for (i=1; i