INFO: No output directory specified (--dir) INFO: Using directory: "Test_Monochromators_20250815_022718" INFO: Regenerating c-file: Test_Monochromators.c DEBUG: CMD: /home/willend/micromamba/bin/mcstas -t -o ./Test_Monochromators.c Test_Monochromators.instr Info: 'Monochromator_2foc' is a contributed component. CFLAGS= @NCRYSTALFLAGS@ -DFUNNEL --> Added COMPONENT Mono4 USERVAR ncol_9 with type int --> Added COMPONENT Mono4 USERVAR nrow_9 with type int WARNING: The parameter mosaic_AB of Mono6 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: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component Mono7 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component Mono7 -> GPU kernel from component Sphere1 ----------------------------------------------------------- DEBUG: CMD: /home/willend/micromamba/bin/mcstas finished INFO: Linting generated code: ./Test_Monochromators.c --> launching cmd: ncrystal-config --show buildflags DEBUG: CMD: cppcheck ./Test_Monochromators.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 Test_Monochromators.c ... Checking Test_Monochromators.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... Test_Monochromators.c:12274:16: error: Memory leak: OUTFILE [memleak] if (!file) return(NULL); ^ Test_Monochromators.c:9160:3: warning: If memory allocation fails, then there is a possible null pointer dereference: node [nullPointerOutOfMemory] node->depth = depth; ^ Test_Monochromators.c:9159:26: note: Assuming allocation function fails treeNode *node = malloc(sizeof(treeNode)); ^ Test_Monochromators.c:9159:26: note: Assignment 'node=malloc(sizeof(struct treeNode))', assigned value is 0 treeNode *node = malloc(sizeof(treeNode)); ^ Test_Monochromators.c:9160:3: note: Null pointer dereference node->depth = depth; ^ Test_Monochromators.c:9163:3: warning: If memory allocation fails, then there is a possible null pointer dereference: node [nullPointerOutOfMemory] node->point = points[med]; ^ Test_Monochromators.c:9159:26: note: Assuming allocation function fails treeNode *node = malloc(sizeof(treeNode)); ^ Test_Monochromators.c:9159:26: note: Assignment 'node=malloc(sizeof(struct treeNode))', assigned value is 0 treeNode *node = malloc(sizeof(treeNode)); ^ Test_Monochromators.c:9163:3: note: Null pointer dereference node->point = points[med]; ^ Test_Monochromators.c:9165:3: warning: If memory allocation fails, then there is a possible null pointer dereference: node [nullPointerOutOfMemory] node->lChild = kdtree_addToTree(points, left, med-1, depth + 1); ^ Test_Monochromators.c:9159:26: note: Assuming allocation function fails treeNode *node = malloc(sizeof(treeNode)); ^ Test_Monochromators.c:9159:26: note: Assignment 'node=malloc(sizeof(struct treeNode))', assigned value is 0 treeNode *node = malloc(sizeof(treeNode)); ^ Test_Monochromators.c:9165:3: note: Null pointer dereference node->lChild = kdtree_addToTree(points, left, med-1, depth + 1); ^ Test_Monochromators.c:9166:3: warning: If memory allocation fails, then there is a possible null pointer dereference: node [nullPointerOutOfMemory] node->rChild = kdtree_addToTree(points, med+1, right, depth + 1); ^ Test_Monochromators.c:9159:26: note: Assuming allocation function fails treeNode *node = malloc(sizeof(treeNode)); ^ Test_Monochromators.c:9159:26: note: Assignment 'node=malloc(sizeof(struct treeNode))', assigned value is 0 treeNode *node = malloc(sizeof(treeNode)); ^ Test_Monochromators.c:9166:3: note: Null pointer dereference node->rChild = kdtree_addToTree(points, med+1, right, depth + 1); ^ Test_Monochromators.c:9292:9: warning: If memory allocation fails, then there is a possible null pointer dereference: indices [nullPointerOutOfMemory] if (indices[i] < 0) indices[i]=0; ^ Test_Monochromators.c:9574:27: note: Assuming allocation function fails long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ Test_Monochromators.c:9574:27: note: Assignment 'indices=malloc((int)interpolator->space_dimensionality*sizeof(double))', assigned value is 0 long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ Test_Monochromators.c:9578:60: note: Calling function 'interpolator_offset', 3rd argument 'indices' value is 0 long index = interpolator_offset(3, interpolator->bin, indices); ^ Test_Monochromators.c:9292:9: note: Null pointer dereference if (indices[i] < 0) indices[i]=0; ^ Test_Monochromators.c:9293:9: warning: If memory allocation fails, then there is a possible null pointer dereference: indices [nullPointerOutOfMemory] if (indices[i] >= dimInfo[i]) indices[i]=dimInfo[i]-1; ^ Test_Monochromators.c:9574:27: note: Assuming allocation function fails long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ Test_Monochromators.c:9574:27: note: Assignment 'indices=malloc((int)interpolator->space_dimensionality*sizeof(double))', assigned value is 0 long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ Test_Monochromators.c:9578:60: note: Calling function 'interpolator_offset', 3rd argument 'indices' value is 0 long index = interpolator_offset(3, interpolator->bin, indices); ^ Test_Monochromators.c:9293:9: note: Null pointer dereference if (indices[i] >= dimInfo[i]) indices[i]=dimInfo[i]-1; ^ Test_Monochromators.c:9297:23: warning: If memory allocation fails, then there is a possible null pointer dereference: indices [nullPointerOutOfMemory] result = i == 0 ? indices[0] ^ Test_Monochromators.c:9574:27: note: Assuming allocation function fails long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ Test_Monochromators.c:9574:27: note: Assignment 'indices=malloc((int)interpolator->space_dimensionality*sizeof(double))', assigned value is 0 long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ Test_Monochromators.c:9578:60: note: Calling function 'interpolator_offset', 3rd argument 'indices' value is 0 long index = interpolator_offset(3, interpolator->bin, indices); ^ Test_Monochromators.c:9297:23: note: Null pointer dereference result = i == 0 ? indices[0] ^ Test_Monochromators.c:9298:45: warning: If memory allocation fails, then there is a possible null pointer dereference: indices [nullPointerOutOfMemory] : result * dimInfo[i] + indices[i]; ^ Test_Monochromators.c:9574:27: note: Assuming allocation function fails long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ Test_Monochromators.c:9574:27: note: Assignment 'indices=malloc((int)interpolator->space_dimensionality*sizeof(double))', assigned value is 0 long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ Test_Monochromators.c:9578:60: note: Calling function 'interpolator_offset', 3rd argument 'indices' value is 0 long index = interpolator_offset(3, interpolator->bin, indices); ^ Test_Monochromators.c:9298:45: note: Null pointer dereference : result * dimInfo[i] + indices[i]; ^ Test_Monochromators.c:9391:7: warning: If memory allocation fails, then there is a possible null pointer dereference: vector [nullPointerOutOfMemory] vector[index] = x; ^ Test_Monochromators.c:9383:38: note: Assuming allocation function fails double* vector = (double*) calloc(sizeof(double), table.rows); ^ Test_Monochromators.c:9383:22: note: Assignment 'vector=(double*)calloc(sizeof(double),table.rows)', assigned value is 0 double* vector = (double*) calloc(sizeof(double), table.rows); ^ Test_Monochromators.c:9391:7: note: Null pointer dereference vector[index] = x; ^ Test_Monochromators.c:9394:11: warning: If memory allocation fails, then there is a possible null pointer dereference: vector [nullPointerOutOfMemory] qsort(vector, table.rows, sizeof(double), interpolator_double_vector_compare); ^ Test_Monochromators.c:9383:38: note: Assuming allocation function fails double* vector = (double*) calloc(sizeof(double), table.rows); ^ Test_Monochromators.c:9383:22: note: Assignment 'vector=(double*)calloc(sizeof(double),table.rows)', assigned value is 0 double* vector = (double*) calloc(sizeof(double), table.rows); ^ Test_Monochromators.c:9394:11: note: Null pointer dereference qsort(vector, table.rows, sizeof(double), interpolator_double_vector_compare); ^ Test_Monochromators.c:9398:18: warning: If memory allocation fails, then there is a possible null pointer dereference: vector [nullPointerOutOfMemory] double x = vector[index]; ^ Test_Monochromators.c:9383:38: note: Assuming allocation function fails double* vector = (double*) calloc(sizeof(double), table.rows); ^ Test_Monochromators.c:9383:22: note: Assignment 'vector=(double*)calloc(sizeof(double),table.rows)', assigned value is 0 double* vector = (double*) calloc(sizeof(double), table.rows); ^ Test_Monochromators.c:9398:18: note: Null pointer dereference double x = vector[index]; ^ Test_Monochromators.c:9474:11: warning: If memory allocation fails, then there is a possible null pointer dereference: indices [nullPointerOutOfMemory] indices[axis] = round((x - interpolator->min[axis])/interpolator->step[axis]); ^ Test_Monochromators.c:9467:31: note: Assuming allocation function fails long *indices = malloc(interpolator->space_dimensionality*sizeof(long)); ^ Test_Monochromators.c:9467:31: note: Assignment 'indices=malloc(interpolator->space_dimensionality*sizeof(long))', assigned value is 0 long *indices = malloc(interpolator->space_dimensionality*sizeof(long)); ^ Test_Monochromators.c:9474:11: note: Null pointer dereference indices[axis] = round((x - interpolator->min[axis])/interpolator->step[axis]); ^ Test_Monochromators.c:9576:7: warning: If memory allocation fails, then there is a possible null pointer dereference: indices [nullPointerOutOfMemory] indices[axis] = round((space[axis]-interpolator->min[axis])/interpolator->step[axis]); ^ Test_Monochromators.c:9574:27: note: Assuming allocation function fails long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ Test_Monochromators.c:9574:27: note: Assignment 'indices=malloc((int)interpolator->space_dimensionality*sizeof(double))', assigned value is 0 long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ Test_Monochromators.c:9576:7: note: Null pointer dereference indices[axis] = round((space[axis]-interpolator->min[axis])/interpolator->step[axis]); ^ Test_Monochromators.c:9762:5: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] stack[i+1]=stack[i]; ^ Test_Monochromators.c:9754:31: note: Assuming allocation function fails _particle->mcMagnet=calloc(MCMAGNET_STACKSIZE,sizeof(mcmagnet_field_info *)); ^ Test_Monochromators.c:9754:31: note: Assignment '_particle->mcMagnet=calloc(12,sizeof(struct mcmagnet_field_info*))', assigned value is 0 _particle->mcMagnet=calloc(MCMAGNET_STACKSIZE,sizeof(mcmagnet_field_info *)); ^ Test_Monochromators.c:9757:30: note: stack is assigned '(struct mcmagnet_field_info**)_particle->mcMagnet' here. mcmagnet_field_info **stack=((mcmagnet_field_info **) _particle->mcMagnet); ^ Test_Monochromators.c:9762:5: note: Null pointer dereference stack[i+1]=stack[i]; ^ Test_Monochromators.c:9762:16: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] stack[i+1]=stack[i]; ^ Test_Monochromators.c:9754:31: note: Assuming allocation function fails _particle->mcMagnet=calloc(MCMAGNET_STACKSIZE,sizeof(mcmagnet_field_info *)); ^ Test_Monochromators.c:9754:31: note: Assignment '_particle->mcMagnet=calloc(12,sizeof(struct mcmagnet_field_info*))', assigned value is 0 _particle->mcMagnet=calloc(MCMAGNET_STACKSIZE,sizeof(mcmagnet_field_info *)); ^ Test_Monochromators.c:9757:30: note: stack is assigned '(struct mcmagnet_field_info**)_particle->mcMagnet' here. mcmagnet_field_info **stack=((mcmagnet_field_info **) _particle->mcMagnet); ^ Test_Monochromators.c:9762:16: note: Null pointer dereference stack[i+1]=stack[i]; ^ Test_Monochromators.c:9768:3: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] stack[0]=calloc(1, sizeof(mcmagnet_field_info)); ^ Test_Monochromators.c:9754:31: note: Assuming allocation function fails _particle->mcMagnet=calloc(MCMAGNET_STACKSIZE,sizeof(mcmagnet_field_info *)); ^ Test_Monochromators.c:9754:31: note: Assignment '_particle->mcMagnet=calloc(12,sizeof(struct mcmagnet_field_info*))', assigned value is 0 _particle->mcMagnet=calloc(MCMAGNET_STACKSIZE,sizeof(mcmagnet_field_info *)); ^ Test_Monochromators.c:9757:30: note: stack is assigned '(struct mcmagnet_field_info**)_particle->mcMagnet' here. mcmagnet_field_info **stack=((mcmagnet_field_info **) _particle->mcMagnet); ^ Test_Monochromators.c:9768:3: note: Null pointer dereference stack[0]=calloc(1, sizeof(mcmagnet_field_info)); ^ Test_Monochromators.c:9771:3: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] mcmagnet_pack(stack[0],func_id,magnet_rot,magnet_pos,stopbit,prms); ^ Test_Monochromators.c:9754:31: note: Assuming allocation function fails _particle->mcMagnet=calloc(MCMAGNET_STACKSIZE,sizeof(mcmagnet_field_info *)); ^ Test_Monochromators.c:9754:31: note: Assignment '_particle->mcMagnet=calloc(12,sizeof(struct mcmagnet_field_info*))', assigned value is 0 _particle->mcMagnet=calloc(MCMAGNET_STACKSIZE,sizeof(mcmagnet_field_info *)); ^ Test_Monochromators.c:9757:30: note: stack is assigned '(struct mcmagnet_field_info**)_particle->mcMagnet' here. mcmagnet_field_info **stack=((mcmagnet_field_info **) _particle->mcMagnet); ^ Test_Monochromators.c:9771:3: note: Null pointer dereference mcmagnet_pack(stack[0],func_id,magnet_rot,magnet_pos,stopbit,prms); ^ Test_Monochromators.c:9771:3: warning: If memory allocation fails, then there is a possible null pointer dereference: mctmp_p [nullPointerOutOfMemory] mcmagnet_pack(stack[0],func_id,magnet_rot,magnet_pos,stopbit,prms); ^ Test_Monochromators.c:9768:18: note: Assuming allocation function fails stack[0]=calloc(1, sizeof(mcmagnet_field_info)); ^ Test_Monochromators.c:9768:18: note: Assignment 'stack[0]=calloc(1,sizeof(struct mcmagnet_field_info))', assigned value is 0 stack[0]=calloc(1, sizeof(mcmagnet_field_info)); ^ Test_Monochromators.c:9771:3: note: mctmp_p is assigned 'stack[0]' here. mcmagnet_pack(stack[0],func_id,magnet_rot,magnet_pos,stopbit,prms); ^ Test_Monochromators.c:9771:3: note: Null pointer dereference mcmagnet_pack(stack[0],func_id,magnet_rot,magnet_pos,stopbit,prms); ^ Test_Monochromators.c:12523:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].h = h; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12523:7: note: Null pointer dereference list[i].h = h; ^ Test_Monochromators.c:12524:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].k = k; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12524:7: note: Null pointer dereference list[i].k = k; ^ Test_Monochromators.c:12525:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].l = l; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12525:7: note: Null pointer dereference list[i].l = l; ^ Test_Monochromators.c:12526:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].F2 = F2; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12526:7: note: Null pointer dereference list[i].F2 = F2; ^ Test_Monochromators.c:12529:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau_x = h*info->asx + k*info->bsx + l*info->csx; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12529:7: note: Null pointer dereference list[i].tau_x = h*info->asx + k*info->bsx + l*info->csx; ^ Test_Monochromators.c:12530:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau_y = h*info->asy + k*info->bsy + l*info->csy; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12530:7: note: Null pointer dereference list[i].tau_y = h*info->asy + k*info->bsy + l*info->csy; ^ Test_Monochromators.c:12531:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau_z = h*info->asz + k*info->bsz + l*info->csz; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12531:7: note: Null pointer dereference list[i].tau_z = h*info->asz + k*info->bsz + l*info->csz; ^ Test_Monochromators.c:12532:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau = sqrt(list[i].tau_x*list[i].tau_x + ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12532:7: note: Null pointer dereference list[i].tau = sqrt(list[i].tau_x*list[i].tau_x + ^ Test_Monochromators.c:12532:26: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau = sqrt(list[i].tau_x*list[i].tau_x + ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12532:26: note: Null pointer dereference list[i].tau = sqrt(list[i].tau_x*list[i].tau_x + ^ Test_Monochromators.c:12532:40: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau = sqrt(list[i].tau_x*list[i].tau_x + ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12532:40: note: Null pointer dereference list[i].tau = sqrt(list[i].tau_x*list[i].tau_x + ^ Test_Monochromators.c:12533:26: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau_y*list[i].tau_y + ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12533:26: note: Null pointer dereference list[i].tau_y*list[i].tau_y + ^ Test_Monochromators.c:12533:40: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau_y*list[i].tau_y + ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12533:40: note: Null pointer dereference list[i].tau_y*list[i].tau_y + ^ Test_Monochromators.c:12534:26: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau_z*list[i].tau_z); ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12534:26: note: Null pointer dereference list[i].tau_z*list[i].tau_z); ^ Test_Monochromators.c:12534:40: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau_z*list[i].tau_z); ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12534:40: note: Null pointer dereference list[i].tau_z*list[i].tau_z); ^ Test_Monochromators.c:12535:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1x = list[i].tau_x/list[i].tau; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12535:7: note: Null pointer dereference list[i].u1x = list[i].tau_x/list[i].tau; ^ Test_Monochromators.c:12535:21: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1x = list[i].tau_x/list[i].tau; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12535:21: note: Null pointer dereference list[i].u1x = list[i].tau_x/list[i].tau; ^ Test_Monochromators.c:12535:35: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1x = list[i].tau_x/list[i].tau; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12535:35: note: Null pointer dereference list[i].u1x = list[i].tau_x/list[i].tau; ^ Test_Monochromators.c:12536:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1y = list[i].tau_y/list[i].tau; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12536:7: note: Null pointer dereference list[i].u1y = list[i].tau_y/list[i].tau; ^ Test_Monochromators.c:12536:21: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1y = list[i].tau_y/list[i].tau; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12536:21: note: Null pointer dereference list[i].u1y = list[i].tau_y/list[i].tau; ^ Test_Monochromators.c:12536:35: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1y = list[i].tau_y/list[i].tau; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12536:35: note: Null pointer dereference list[i].u1y = list[i].tau_y/list[i].tau; ^ Test_Monochromators.c:12537:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1z = list[i].tau_z/list[i].tau; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12537:7: note: Null pointer dereference list[i].u1z = list[i].tau_z/list[i].tau; ^ Test_Monochromators.c:12537:21: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1z = list[i].tau_z/list[i].tau; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12537:21: note: Null pointer dereference list[i].u1z = list[i].tau_z/list[i].tau; ^ Test_Monochromators.c:12537:35: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1z = list[i].tau_z/list[i].tau; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12537:35: note: Null pointer dereference list[i].u1z = list[i].tau_z/list[i].tau; ^ Test_Monochromators.c:12538:41: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] sig1 = FWHM2RMS*info->m_delta_d_d*list[i].tau; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12538:41: note: Null pointer dereference sig1 = FWHM2RMS*info->m_delta_d_d*list[i].tau; ^ Test_Monochromators.c:12542:18: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1x, list[i].u1y, list[i].u1z); ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12542:18: note: Null pointer dereference list[i].u1x, list[i].u1y, list[i].u1z); ^ Test_Monochromators.c:12542:31: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1x, list[i].u1y, list[i].u1z); ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12542:31: note: Null pointer dereference list[i].u1x, list[i].u1y, list[i].u1z); ^ Test_Monochromators.c:12542:44: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1x, list[i].u1y, list[i].u1z); ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12542:44: note: Null pointer dereference list[i].u1x, list[i].u1y, list[i].u1z); ^ Test_Monochromators.c:12543:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] vec_prod(b2[0], b2[1], b2[2], ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12543:7: note: Null pointer dereference vec_prod(b2[0], b2[1], b2[2], ^ Test_Monochromators.c:12550:9: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u2x = b1[0]; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12550:9: note: Null pointer dereference list[i].u2x = b1[0]; ^ Test_Monochromators.c:12551:9: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u2y = b1[1]; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12551:9: note: Null pointer dereference list[i].u2y = b1[1]; ^ Test_Monochromators.c:12552:9: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u2z = b1[2]; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12552:9: note: Null pointer dereference list[i].u2z = b1[2]; ^ Test_Monochromators.c:12553:25: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] sig2 = FWHM2RMS*list[i].tau*MIN2RAD*SC_mosaic; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12553:25: note: Null pointer dereference sig2 = FWHM2RMS*list[i].tau*MIN2RAD*SC_mosaic; ^ Test_Monochromators.c:12554:9: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u3x = b2[0]; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12554:9: note: Null pointer dereference list[i].u3x = b2[0]; ^ Test_Monochromators.c:12555:9: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u3y = b2[1]; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12555:9: note: Null pointer dereference list[i].u3y = b2[1]; ^ Test_Monochromators.c:12556:9: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u3z = b2[2]; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12556:9: note: Null pointer dereference list[i].u3z = b2[2]; ^ Test_Monochromators.c:12557:25: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] sig3 = FWHM2RMS*list[i].tau*MIN2RAD*SC_mosaic; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12557:25: note: Null pointer dereference sig3 = FWHM2RMS*list[i].tau*MIN2RAD*SC_mosaic; ^ Test_Monochromators.c:12675:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].sig123 = sig1*sig2*sig3; ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12675:7: note: Null pointer dereference list[i].sig123 = sig1*sig2*sig3; ^ Test_Monochromators.c:12676:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].m1 = 1/(2*sig1*sig1); ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12676:7: note: Null pointer dereference list[i].m1 = 1/(2*sig1*sig1); ^ Test_Monochromators.c:12677:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].m2 = 1/(2*sig2*sig2); ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12677:7: note: Null pointer dereference list[i].m2 = 1/(2*sig2*sig2); ^ Test_Monochromators.c:12678:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].m3 = 1/(2*sig3*sig3); ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12678:7: note: Null pointer dereference list[i].m3 = 1/(2*sig3*sig3); ^ Test_Monochromators.c:12694:11: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] qsort(list, i, sizeof(struct hkl_data), SX_list_compare); ^ Test_Monochromators.c:12506:37: note: Assuming allocation function fails list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12506:12: note: Assignment 'list=(struct hkl_data*)malloc(size*sizeof(struct hkl_data))', assigned value is 0 list = (struct hkl_data*) malloc(size*sizeof(struct hkl_data)); ^ Test_Monochromators.c:12694:11: note: Null pointer dereference qsort(list, i, sizeof(struct hkl_data), SX_list_compare); ^ Test_Monochromators.c:9300:10: warning: Uninitialized variable: result [uninitvar] return result; ^ Test_Monochromators.c:9296:15: note: Assuming condition is false for (i=0; i < dim; i++) { ^ Test_Monochromators.c:9300:10: note: Uninitialized variable: result return result; ^ Test_Monochromators.c:9298:23: error: Uninitialized variable: result [legacyUninitvar] : result * dimInfo[i] + indices[i]; ^ Test_Monochromators.c:12648:14: error: Uninitialized variable: c1 [legacyUninitvar] if ((c1==0) && (c2==0)){ ^ Test_Monochromators.c:12654:74: error: Uninitialized variable: c2 [legacyUninitvar] sig_tau_c = MIN2RAD*sqrt(c1*SC_mosaic_AB[0]*c1*SC_mosaic_AB[0] + c2*SC_mosaic_AB[1]*c2*SC_mosaic_AB[1]); ^ Checking Test_Monochromators.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;MULTICORE... Checking Test_Monochromators.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 Test_Monochromators.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 Test_Monochromators.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 Test_Monochromators.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 Test_Monochromators.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 Test_Monochromators.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;_WIN64... Checking Test_Monochromators.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 Test_Monochromators.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 Test_Monochromators.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 Test_Monochromators.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 Test_Monochromators.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 Test_Monochromators.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 ./Test_Monochromators.c