INFO: No output directory specified (--dir) INFO: Using directory: "RITA-II_20241206_123633" INFO: Regenerating c-file: RITA-II.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./RITA-II.c RITA-II.instr Downloading file 'mcstas-comps/contrib/Source_gen4.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/contrib/Source_gen4.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. 2024-12-06 12:36:37.542 | INFO | mccode_antlr.instr.instance:set_parameter:120 - Multiple definitions of restore_neutron in component instance divmon_guide_end Downloading file 'mcstas-comps/monitors/PSD_monitor_psf_eff.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/monitors/PSD_monitor_psf_eff.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/samples/Phonon_simple.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/samples/Phonon_simple.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/optics/Absorber.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/optics/Absorber.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. 2024-12-06 12:36:40.598 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen4(0):read_table-lib :Guide(0):read_table-lib :Guide(1):ref-lib :ref-lib(0):read_table-lib :Monochromator_curved(0):read_table-lib :Filter_gen(0):read_table-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib :Incoherent(0):read_table-lib :Incoherent(1):interoff-lib :PowderN(0):read_table-lib :PowderN(1):interoff-lib :Single_crystal(0):read_table-lib :Single_crystal(1):interoff-lib :Single_crystal(2):opencl-lib 2024-12-06 12:36:40.598 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib opencl-lib 2024-12-06 12:36:40.598 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib opencl-lib 2024-12-06 12:36:40.599 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib interoff-lib opencl-lib monitor_nd-lib 2024-12-06 12:36:40.599 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib opencl-lib 2024-12-06 12:36:40.599 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib opencl-lib ref-lib 2024-12-06 12:36:40.599 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib opencl-lib 2024-12-06 12:36:40.599 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib opencl-lib 2024-12-06 12:36:40.600 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib interoff-lib opencl-lib monitor_nd-lib 2024-12-06 12:36:48.172 | INFO | mccode_antlr.translators.c_listener:visitDeclarator:304 - Could not convert an integer from MCSX_REFL_SLIST_SIZE due to invalid literal for int() with base 10: 'MCSX_REFL_SLIST_SIZE' The instrument has 85 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT SPLITMREP at component monochromator_curved -> SPLIT SPLITREP at component a3 -> SPLIT SPLITAREP at component focus_ana ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component armSource -> GPU kernel from component source -> GPU kernel from component slitGuideBegin -> GPU kernel from component lmon_guide_start -> GPU kernel from component guideStraight -> GPU kernel from component guideCurved1 -> GPU kernel from component guideCurved2 -> GPU kernel from component guideCurved3 -> GPU kernel from component guideCurved4 -> GPU kernel from component guideCurved5 -> GPU kernel from component guideCurved6 -> GPU kernel from component guideCurved7 -> GPU kernel from component guideCurved8 -> GPU kernel from component guideCurved9 -> GPU kernel from component guideCurved10 -> GPU kernel from component guideCurved11 -> GPU kernel from component guideCurved12 -> GPU kernel from component guideCurved13 -> GPU kernel from component guideCurved14 -> GPU kernel from component guideCurved15 -> GPU kernel from component guideCurved16 -> GPU kernel from component guideCurved17 -> GPU kernel from component guideCurved18 -> GPU kernel from component guideCurved19 -> GPU kernel from component guideCurved20 -> GPU kernel from component guideCurved21 -> GPU kernel from component guideCurved22 -> GPU kernel from component guideCurved23 -> GPU kernel from component guideCurved24 -> GPU kernel from component guideCurved25 -> GPU kernel from component guideCurved26 -> GPU kernel from component guideCurved27 -> GPU kernel from component guideCurved28 -> GPU kernel from component guideCurved29 -> GPU kernel from component guideCurved30 -> GPU kernel from component guideCurved31 -> GPU kernel from component guideCurved32 -> GPU kernel from component guideCurved33 -> GPU kernel from component guideCurved34 -> GPU kernel from component guideCurved35 -> GPU kernel from component guideCurved36 -> GPU kernel from component guideCurved37 -> GPU kernel from component guideCurved38 -> GPU kernel from component guideCurved39 -> GPU kernel from component guideCurved40 -> GPU kernel from component bunker -> GPU kernel from component guide3 -> GPU kernel from component slitGuideEnd -> GPU kernel from component psd_guide_end -> GPU kernel from component emon_guide_end -> GPU kernel from component lmon_guide_end -> GPU kernel from component divmon_guide_end -> GPU kernel from component focus_mono -> SPLIT within buffer at component monochromator_curved -> GPU kernel from component a2 -> GPU kernel from component slitShutter -> GPU kernel from component MSCollimator -> GPU kernel from component infilter -> GPU kernel from component psd_virt -> GPU kernel from component lmon_virt -> GPU kernel from component aa2 -> GPU kernel from component OrderMon -> GPU kernel from component kMoni -> GPU kernel from component kMoni1st -> GPU kernel from component kMoni2nd -> GPU kernel from component kMoni3rd -> GPU kernel from component slitMonochromator -> GPU kernel from component Perspex -> GPU kernel from component psd_samplepos_1cm2 -> GPU kernel from component emon_samplepos_1cm2 -> GPU kernel from component divmon_samplepos_1cm2 -> GPU kernel from component psd_samplepos_large -> SPLIT within buffer at component a3 -> GPU kernel from component aa3 -> GPU kernel from component incohSample -> GPU kernel from component powderSample -> GPU kernel from component crystalSample -> GPU kernel from component phononSample -> GPU kernel from component psd_4pi -> GPU kernel from component a4 -> GPU kernel from component slitSample -> GPU kernel from component filter_coll -> GPU kernel from component filter -> GPU kernel from component ana_slit1 -> GPU kernel from component ana_slit2 -> GPU kernel from component emon_before_ana -> GPU kernel from component psd_before_ana -> GPU kernel from component divmon_before_ana -> SPLIT within buffer at component focus_ana -> GPU kernel from component an1l -> GPU kernel from component an1u -> GPU kernel from component an2l -> GPU kernel from component an2u -> GPU kernel from component an3l -> GPU kernel from component an3u -> GPU kernel from component an4l -> GPU kernel from component an4u -> GPU kernel from component an5l -> GPU kernel from component an5u -> GPU kernel from component an6l -> GPU kernel from component an6u -> GPU kernel from component an7l -> GPU kernel from component an7u -> GPU kernel from component an8l -> GPU kernel from component an8u -> GPU kernel from component an9l -> GPU kernel from component an9u -> GPU kernel from component a6 -> GPU kernel from component emon_before_coarse -> GPU kernel from component psd_before_coarse -> GPU kernel from component ArmR1 -> GPU kernel from component BladeR1 -> GPU kernel from component ArmR2 -> GPU kernel from component BladeR2 -> GPU kernel from component ArmR3 -> GPU kernel from component BladeR3 -> GPU kernel from component ArmR4 -> GPU kernel from component BladeR4 -> GPU kernel from component ArmR5 -> GPU kernel from component BladeR5 -> GPU kernel from component ArmL1 -> GPU kernel from component BladeL1 -> GPU kernel from component ArmL2 -> GPU kernel from component BladeL2 -> GPU kernel from component ArmL3 -> GPU kernel from component BladeL3 -> GPU kernel from component ArmL4 -> GPU kernel from component BladeL4 -> GPU kernel from component ArmL5 -> GPU kernel from component BladeL5 -> GPU kernel from component psd_detector -> GPU kernel from component emon_detector -> GPU kernel from component psd_window1 -> GPU kernel from component emon_window1 -> GPU kernel from component psd_window2 -> GPU kernel from component emon_window2 -> GPU kernel from component psd_window3 -> GPU kernel from component emon_window3 -> GPU kernel from component psd_window4 -> GPU kernel from component emon_window4 -> GPU kernel from component psd_window5 -> GPU kernel from component emon_window5 -> GPU kernel from component psd_window6 -> GPU kernel from component emon_window6 -> GPU kernel from component psd_window7 -> GPU kernel from component emon_window7 -> GPU kernel from component psd_window8 -> GPU kernel from component emon_window8 -> GPU kernel from component psd_window9 -> GPU kernel from component emon_window9 ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./RITA-II.out DEBUG: CMD: nvc -o ./RITA-II.out ./RITA-II.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./RITA-II.c", line 4521: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./RITA-II.c", line 7679: warning: variable "valid" was declared but never referenced [declared_but_not_referenced] char *valid; ^ "./RITA-II.c", line 8800: warning: variable "jglobal" was declared but never referenced [declared_but_not_referenced] int jglobal=-1; ^ "./RITA-II.c", line 8801: warning: variable "coherent_refl" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./RITA-II.c", line 8801: warning: variable "coherent_xsect" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./RITA-II.c", line 9013: warning: variable "q" was set but never used [set_but_not_used] double q, qx, qy, qz, Jq, res_phonon, res_neutron; ^ "./RITA-II.c", line 9199: warning: missing return statement at end of non-void function "findroots" [implicit_return_from_non_void_function] } ^ "./RITA-II.c", line 9222: warning: missing return statement at end of non-void function "findroots_gpu" [implicit_return_from_non_void_function] } ^ "./RITA-II.c", line 14258: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./RITA-II.c", line 14258: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./RITA-II.c", line 14285: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./RITA-II.c", line 14285: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./RITA-II.c", line 14409: warning: variable "minx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./RITA-II.c", line 14409: warning: variable "maxx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./RITA-II.c", line 14409: warning: variable "miny" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./RITA-II.c", line 14409: warning: variable "maxy" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./RITA-II.c", line 14409: warning: variable "minz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./RITA-II.c", line 14409: warning: variable "maxz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./RITA-II.c", line 14766: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./RITA-II.c", line 16461: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./RITA-II.c", line 25204: warning: variable "as" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./RITA-II.c", line 25204: warning: variable "bs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./RITA-II.c", line 25204: warning: variable "cs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./RITA-II.c", line 25205: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i=0; ^ "./RITA-II.c", line 26058: warning: subscript out of range [subscript_out_of_range] XwinMin[9] = 106; ^ "./RITA-II.c", line 26069: warning: subscript out of range [subscript_out_of_range] XwinMax[9] = 115; ^ "./RITA-II.c", line 26080: warning: subscript out of range [subscript_out_of_range] YwinMin[9] = 39; ^ "./RITA-II.c", line 26091: warning: subscript out of range [subscript_out_of_range] YwinMax[9] = 91; ^ "./RITA-II.c", line 25758: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] double tmp=0; ^ "./RITA-II.c", line 27447: warning: variable "v" was declared but never referenced [declared_but_not_referenced] double v, vn; ^ "./RITA-II.c", line 28510: warning: variable "l_i" was set but never used [set_but_not_used] double l_i, l_o=0; /* Flight path lenght in/out for scattered neutron */ ^ "./RITA-II.c", line 28510: warning: variable "l_o" was declared but never referenced [declared_but_not_referenced] double l_i, l_o=0; /* Flight path lenght in/out for scattered neutron */ ^ "./RITA-II.c", line 28817: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./RITA-II.c", line 28818: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./RITA-II.c", line 28821: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./RITA-II.c", line 28824: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./RITA-II.c", line 28828: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./RITA-II.c", line 28830: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./RITA-II.c", line 28831: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./RITA-II.c", line 28832: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./RITA-II.c", line 28834: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./RITA-II.c", line 29294: warning: variable "rho_x" was declared but never referenced [declared_but_not_referenced] double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./RITA-II.c", line 29294: warning: variable "rho_y" was declared but never referenced [declared_but_not_referenced] double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./RITA-II.c", line 29294: warning: variable "rho_z" was declared but never referenced [declared_but_not_referenced] double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./RITA-II.c", line 29295: warning: variable "rho" was declared but never referenced [declared_but_not_referenced] double rho; ^ "./RITA-II.c", line 29296: warning: variable "diff" was declared but never referenced [declared_but_not_referenced] double diff; /* Deviation from Bragg condition */ ^ "./RITA-II.c", line 29297: warning: variable "ox" was declared but never referenced [declared_but_not_referenced] double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./RITA-II.c", line 29297: warning: variable "oy" was declared but never referenced [declared_but_not_referenced] double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./RITA-II.c", line 29297: warning: variable "oz" was declared but never referenced [declared_but_not_referenced] double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./RITA-II.c", line 29298: warning: variable "b1x" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./RITA-II.c", line 29298: warning: variable "b1y" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./RITA-II.c", line 29298: warning: variable "b1z" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./RITA-II.c", line 29299: warning: variable "b2x" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./RITA-II.c", line 29299: warning: variable "b2y" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./RITA-II.c", line 29299: warning: variable "b2z" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./RITA-II.c", line 29300: warning: variable "n11" was declared but never referenced [declared_but_not_referenced] double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./RITA-II.c", line 29300: warning: variable "n12" was declared but never referenced [declared_but_not_referenced] double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./RITA-II.c", line 29300: warning: variable "n22" was declared but never referenced [declared_but_not_referenced] double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./RITA-II.c", line 29301: warning: variable "det_N" was declared but never referenced [declared_but_not_referenced] double det_N; /* Determinant of N */ ^ "./RITA-II.c", line 29302: warning: variable "inv_n11" was declared but never referenced [declared_but_not_referenced] double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./RITA-II.c", line 29302: warning: variable "inv_n12" was declared but never referenced [declared_but_not_referenced] double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./RITA-II.c", line 29302: warning: variable "inv_n22" was declared but never referenced [declared_but_not_referenced] double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./RITA-II.c", line 29303: warning: variable "l11" was declared but never referenced [declared_but_not_referenced] double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./RITA-II.c", line 29303: warning: variable "l12" was declared but never referenced [declared_but_not_referenced] double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./RITA-II.c", line 29303: warning: variable "l22" was declared but never referenced [declared_but_not_referenced] double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./RITA-II.c", line 29304: warning: variable "det_L" was declared but never referenced [declared_but_not_referenced] double det_L; /* Determinant of L */ ^ "./RITA-II.c", line 29305: warning: variable "Bt_D_O_x" was declared but never referenced [declared_but_not_referenced] double Bt_D_O_x, Bt_D_O_y; /* Temporaries */ ^ "./RITA-II.c", line 29305: warning: variable "Bt_D_O_y" was declared but never referenced [declared_but_not_referenced] double Bt_D_O_x, Bt_D_O_y; /* Temporaries */ ^ "./RITA-II.c", line 29306: warning: variable "y0x" was declared but never referenced [declared_but_not_referenced] double y0x, y0y; /* Center of 2D Gauss in plane coordinates */ ^ "./RITA-II.c", line 29306: warning: variable "y0y" was declared but never referenced [declared_but_not_referenced] double y0x, y0y; /* Center of 2D Gauss in plane coordinates */ ^ "./RITA-II.c", line 29307: warning: variable "alpha" was declared but never referenced [declared_but_not_referenced] double alpha; /* Offset of 2D Gauss center from 3D center */ ^ "./RITA-II.c", line 29314: warning: variable "tot_xsect" was declared but never referenced [declared_but_not_referenced] double tot_xsect, tot_xlen; /* Total cross section and length */ ^ "./RITA-II.c", line 29321: warning: variable "theta" was declared but never referenced [declared_but_not_referenced] double theta, phi; /* rotation angles for curved lattice option */ ^ "./RITA-II.c", line 29321: warning: variable "phi" was declared but never referenced [declared_but_not_referenced] double theta, phi; /* rotation angles for curved lattice option */ ^ "./RITA-II.c", line 29330: warning: variable "type" was set but never used [set_but_not_used] char type; /* type of last event: t=transmit,c=coherent or i=incoherent */ ^ "./RITA-II.c", line 33601: warning: subscript out of range [subscript_out_of_range] if (((BinX>=XwinMin[9] && BinX<=XwinMax[9] && BinY>=YwinMin[9] && BinY<=YwinMax[9] && !_instrument_var._parameters.VIRTUALOUT))) // conditional WHEN execution ^ "./RITA-II.c", line 33601: warning: subscript out of range [subscript_out_of_range] if (((BinX>=XwinMin[9] && BinX<=XwinMax[9] && BinY>=YwinMin[9] && BinY<=YwinMax[9] && !_instrument_var._parameters.VIRTUALOUT))) // conditional WHEN execution ^ "./RITA-II.c", line 33601: warning: subscript out of range [subscript_out_of_range] if (((BinX>=XwinMin[9] && BinX<=XwinMax[9] && BinY>=YwinMin[9] && BinY<=YwinMax[9] && !_instrument_var._parameters.VIRTUALOUT))) // conditional WHEN execution ^ "./RITA-II.c", line 33601: warning: subscript out of range [subscript_out_of_range] if (((BinX>=XwinMin[9] && BinX<=XwinMax[9] && BinY>=YwinMin[9] && BinY<=YwinMax[9] && !_instrument_var._parameters.VIRTUALOUT))) // conditional WHEN execution ^ "./RITA-II.c", line 33623: warning: subscript out of range [subscript_out_of_range] if (((BinX>=XwinMin[9] && BinX<=XwinMax[9] && BinY>=YwinMin[9] && BinY<=YwinMax[9] && !_instrument_var._parameters.VIRTUALOUT))) // conditional WHEN execution ^ "./RITA-II.c", line 33623: warning: subscript out of range [subscript_out_of_range] if (((BinX>=XwinMin[9] && BinX<=XwinMax[9] && BinY>=YwinMin[9] && BinY<=YwinMax[9] && !_instrument_var._parameters.VIRTUALOUT))) // conditional WHEN execution ^ "./RITA-II.c", line 33623: warning: subscript out of range [subscript_out_of_range] if (((BinX>=XwinMin[9] && BinX<=XwinMax[9] && BinY>=YwinMin[9] && BinY<=YwinMax[9] && !_instrument_var._parameters.VIRTUALOUT))) // conditional WHEN execution ^ "./RITA-II.c", line 33623: warning: subscript out of range [subscript_out_of_range] if (((BinX>=XwinMin[9] && BinX<=XwinMax[9] && BinY>=YwinMin[9] && BinY<=YwinMax[9] && !_instrument_var._parameters.VIRTUALOUT))) // conditional WHEN execution ^ "./RITA-II.c", line 39762: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./RITA-II.c", line 39763: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./RITA-II.c", line 1530: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./RITA-II.c", line 2933: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 95, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 109, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 147, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 177, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 205, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 217, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 226, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 242, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1577, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1581, Generating acc routine seq Generating NVIDIA GPU code str_len: 1590, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4142, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4573, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4584, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4593, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4605, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4617, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4627, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4637, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4645, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4655, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4677, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4684, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4730, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4765, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4776, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4793, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4804, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4820, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4849, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4860, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4864, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5041, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5072, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5089, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5188, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5272, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5338, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5415, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5687, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5697, Generating acc routine seq Generating NVIDIA GPU code _hash: 5723, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5764, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5775, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5780, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5788, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5796, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5803, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6460, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6556, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6573, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6688, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6743, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7722, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 8152, Generating acc routine seq Generating NVIDIA GPU code SX_list_compare: 8274, Generating acc routine seq Generating NVIDIA GPU code hkl_search: 8790, Generating acc routine seq Generating NVIDIA GPU code hkl_select: 8902, Generating acc routine seq Generating NVIDIA GPU code randrotate: 8917, Generating acc routine seq Generating NVIDIA GPU code randderotate: 8925, Generating acc routine seq Generating NVIDIA GPU code PGrotate: 8933, Generating acc routine seq Generating NVIDIA GPU code PGderotate: 8941, Generating acc routine seq Generating NVIDIA GPU code vec_rotate_2d: 8952, Generating acc routine seq Generating NVIDIA GPU code nbose: 8983, Generating acc routine seq Generating NVIDIA GPU code fatalerror: 9002, Generating acc routine seq Generating NVIDIA GPU code omega_q: 9010, Generating acc routine seq Generating NVIDIA GPU code zridd_gpu: 9113, Generating acc routine seq Generating NVIDIA GPU code findroots_gpu: 9203, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 11367, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 11435, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 11514, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 11982, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 11998, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 12016, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 12082, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 12141, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 13254, Generating acc routine seq Generating NVIDIA GPU code off_F: 14366, Generating acc routine seq Generating NVIDIA GPU code off_sign: 14371, Generating acc routine seq Generating NVIDIA GPU code off_normal: 14381, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 14407, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 14470, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 14601, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 14646, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 14763, Generating acc routine seq Generating NVIDIA GPU code off_compare: 14881, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 14893, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 14928, Generating acc routine seq Generating NVIDIA GPU code Min_int: 15179, Generating acc routine seq Generating NVIDIA GPU code merge: 15186, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 15290, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 15305, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 15359, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 15476, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 15498, Generating acc routine seq Generating NVIDIA GPU code init: 26621, Generating update device(_ana_slit2_var,_source_var,_slitShutter_var,_psd_window9_var,_lmon_guide_end_var,_guideCurved9_var,_guideCurved19_var,_guideCurved29_var,_guideCurved39_var,_guideCurved40_var,_guideCurved4_var,_guideCurved5_var,_guideCurved6_var,_guideCurved7_var,_guideCurved8_var,_guide3_var,_guideCurved10_var,_guideCurved11_var,_guideCurved12_var,_guideCurved13_var,_guideCurved14_var,_guideCurved15_var,_guideCurved16_var,_guideCurved17_var,_guideCurved18_var,_guideCurved1_var,_guideCurved20_var,_guideCurved21_var,_guideCurved22_var,_guideCurved23_var,_guideCurved24_var,_guideCurved25_var,_guideCurved26_var,_guideCurved27_var,_guideCurved28_var,_guideCurved2_var,_guideCurved30_var,_guideCurved31_var,_guideCurved32_var,_guideCurved33_var,_guideCurved34_var,_guideCurved35_var,_guideCurved36_var,_guideCurved37_var,_guideCurved38_var,_guideCurved3_var,_armSource_var,_focus_mono_var,_slitGuideBegin_var,_psd_detector_var,_emon_detector_var,_kMoni_var,_divmon_before_ana_var,_focus_ana_var,_lmon_virt_var,_Perspex_var,_slitSample_var,_BladeR5_var,_incohSample_var,_psd_samplepos_large_var,_lmon_guide_start_var,_a6_var,_MSCollimator_var,_kMoni3rd_var,_instrument_var,_kMoni1st_var,_kMoni2nd_var,_slitGuideEnd_var,_OrderMon_var,_psd_guide_end_var,_emon_guide_end_var,_divmon_guide_end_var,_psd_samplepos_1cm2_var,_a2_var,_aa2_var,_guideStraight_var,_phononSample_var,_bunker_var,_monochromator_curved_var,_powderSample_var,_a3_var,_slitMonochromator_var,_emon_window9_var,_filter_coll_var,_an9u_var,_ana_slit1_var,_divmon_samplepos_1cm2_var,_psd_4pi_var,_crystalSample_var,_filter_var,_aa3_var,_an1l_var,_an1u_var,_an2l_var,_an2u_var,_an3l_var,_an3u_var,_an4l_var,_an4u_var,_an5l_var,_an5u_var,_an6l_var,_an6u_var,_an7l_var,_an7u_var,_an8l_var,_an8u_var,_an9l_var,_a4_var,_emon_before_ana_var,_psd_before_ana_var,_ArmL5_var,_BladeL5_var,_ArmR1_var,_BladeR1_var,_ArmR2_var,_BladeR2_var,_ArmR3_var,_BladeR3_var,_ArmR4_var,_BladeR4_var,_ArmR5_var,_ArmL1_var,_BladeL1_var,_ArmL2_var,_BladeL2_var,_ArmL3_var,_BladeL3_var,_ArmL4_var,_BladeL4_var,_psd_before_coarse_var,_emon_before_coarse_var,_psd_virt_var,_emon_samplepos_1cm2_var,_psd_window1_var,_emon_window1_var,_psd_window2_var,_emon_window2_var,_psd_window3_var,_emon_window3_var,_psd_window4_var,_emon_window4_var,_psd_window5_var,_emon_window5_var,_psd_window6_var,_emon_window6_var,_psd_window7_var,_emon_window7_var,_psd_window8_var,_emon_window8_var,_infilter_var) class_Progress_bar_trace: 26662, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen4_trace: 26752, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 26994, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 27038, Generating acc routine seq Generating NVIDIA GPU code class_Guide_trace: 27111, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 27264, Generating acc routine seq Generating NVIDIA GPU code class_E_monitor_trace: 27335, Generating acc routine seq Generating NVIDIA GPU code class_Divergence_monitor_trace: 27422, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 27512, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 27558, Generating acc routine seq Generating NVIDIA GPU code class_Collimator_linear_trace: 27920, Generating acc routine seq Generating NVIDIA GPU code class_Filter_gen_trace: 27994, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 28077, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_psf_eff_trace: 28367, Generating acc routine seq Generating NVIDIA GPU code class_Incoherent_trace: 28470, Generating acc routine seq Generating NVIDIA GPU code 28667, Reference argument passing prevents parallelization: solid_angle 28670, Reference argument passing prevents parallelization: solid_angle class_PowderN_trace: 28769, Generating acc routine seq Generating NVIDIA GPU code class_Single_crystal_trace: 29236, Generating acc routine seq Generating NVIDIA GPU code class_Phonon_simple_trace: 29798, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_4PI_trace: 29976, Generating acc routine seq Generating NVIDIA GPU code class_Exact_radial_coll_trace: 30054, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_flat_trace: 30172, Generating acc routine seq Generating NVIDIA GPU code class_Absorber_trace: 30455, Generating acc routine seq Generating NVIDIA GPU code raytrace: 30537, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 33683, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 33697, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 33683, Local memory used for .inl_particle_58271,particleN,.inl_.inl_mcneutron_0_58286,.inl_.X2921_58288,.inl_.inl_.X3131_15_58287 33697, Generating implicit firstprivate(seed,_particle) finally: 37512, Generating update self(_ana_slit2_var,_slitShutter_var,_source_var,_psd_window9_var,_lmon_guide_end_var,_guideCurved9_var,_guideCurved19_var,_guideCurved29_var,_guideCurved39_var,_guideCurved40_var,_guideCurved4_var,_guideCurved5_var,_guideCurved6_var,_guideCurved7_var,_guideCurved8_var,_guide3_var,_guideCurved10_var,_guideCurved11_var,_guideCurved12_var,_guideCurved13_var,_guideCurved14_var,_guideCurved15_var,_guideCurved16_var,_guideCurved17_var,_guideCurved18_var,_guideCurved1_var,_guideCurved20_var,_guideCurved21_var,_guideCurved22_var,_guideCurved23_var,_guideCurved24_var,_guideCurved25_var,_guideCurved26_var,_guideCurved27_var,_guideCurved28_var,_guideCurved2_var,_guideCurved30_var,_guideCurved31_var,_guideCurved32_var,_guideCurved33_var,_guideCurved34_var,_guideCurved35_var,_guideCurved36_var,_guideCurved37_var,_guideCurved38_var,_guideCurved3_var,_armSource_var,_focus_mono_var,_slitGuideBegin_var,_psd_detector_var,_emon_detector_var,_kMoni_var,_divmon_before_ana_var,_focus_ana_var,_lmon_virt_var,_Perspex_var,_slitSample_var,_BladeR5_var,_incohSample_var,_psd_samplepos_large_var,_lmon_guide_start_var,_a6_var,_MSCollimator_var,_kMoni3rd_var,_instrument_var,_kMoni1st_var,_kMoni2nd_var,_slitGuideEnd_var,_OrderMon_var,_psd_guide_end_var,_emon_guide_end_var,_divmon_guide_end_var,_psd_samplepos_1cm2_var,_a2_var,_aa2_var,_guideStraight_var,_phononSample_var,_bunker_var,_monochromator_curved_var,_powderSample_var,_a3_var,_slitMonochromator_var,_emon_window9_var,_filter_coll_var,_an9u_var,_ana_slit1_var,_divmon_samplepos_1cm2_var,_psd_4pi_var,_crystalSample_var,_filter_var,_aa3_var,_an1l_var,_an1u_var,_an2l_var,_an2u_var,_an3l_var,_an3u_var,_an4l_var,_an4u_var,_an5l_var,_an5u_var,_an6l_var,_an6u_var,_an7l_var,_an7u_var,_an8l_var,_an8u_var,_an9l_var,_a4_var,_emon_before_ana_var,_psd_before_ana_var,_ArmL5_var,_BladeL5_var,_ArmR1_var,_BladeR1_var,_ArmR2_var,_BladeR2_var,_ArmR3_var,_BladeR3_var,_ArmR4_var,_BladeR4_var,_ArmR5_var,_ArmL1_var,_BladeL1_var,_ArmL2_var,_BladeL2_var,_ArmL3_var,_BladeL3_var,_ArmL4_var,_BladeL4_var,_psd_before_coarse_var,_emon_before_coarse_var,_psd_virt_var,_emon_samplepos_1cm2_var,_psd_window1_var,_emon_window1_var,_psd_window2_var,_emon_window2_var,_psd_window3_var,_emon_window3_var,_psd_window4_var,_emon_window4_var,_psd_window5_var,_emon_window5_var,_psd_window6_var,_emon_window6_var,_psd_window7_var,_emon_window7_var,_psd_window8_var,_emon_window8_var,_infilter_var) mcenabletrace: 5922, Generating update device(mcdotrace) /usr/bin/ld: /tmp/nvcTXQwmhjIyJO5y.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-12-06/ANTLR_openacc_1e7_Linux_1e7/RITA-II/./RITA-II.c:7877: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===