INFO: No output directory specified (--dir) INFO: Using directory: "RITA-II_20241222_090558" INFO: Regenerating c-file: RITA-II.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./RITA-II.c RITA-II.instr 2024-12-22 09:06:18.421 | INFO | mccode_antlr.instr.instance:set_parameter:120 - Multiple definitions of restore_neutron in component instance divmon_guide_end 2024-12-22 09:07:01.048 | 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-22 09:07:01.049 | 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-22 09:07:01.049 | 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-22 09:07:01.049 | 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-22 09:07:01.049 | 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-22 09:07:01.049 | 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-22 09:07:01.049 | 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-22 09:07:01.049 | 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-22 09:07:01.050 | 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-22 09:07:05.344 | INFO | mccode_antlr.translators.c_listener:visitDeclarator:341 - 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 -I$MCSTAS finished INFO: Recompiling: ./RITA-II.out DEBUG: CMD: nvc -o ./RITA-II.out ./RITA-II.c -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./RITA-II.c", line 4522: 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 7680: warning: variable "valid" was declared but never referenced [declared_but_not_referenced] char *valid; ^ "./RITA-II.c", line 8801: warning: variable "jglobal" was declared but never referenced [declared_but_not_referenced] int jglobal=-1; ^ "./RITA-II.c", line 8802: warning: variable "coherent_refl" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./RITA-II.c", line 8802: warning: variable "coherent_xsect" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./RITA-II.c", line 9014: 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 9200: warning: missing return statement at end of non-void function "findroots" [implicit_return_from_non_void_function] } ^ "./RITA-II.c", line 9223: warning: missing return statement at end of non-void function "findroots_gpu" [implicit_return_from_non_void_function] } ^ "./RITA-II.c", line 14274: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./RITA-II.c", line 14274: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./RITA-II.c", line 14301: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./RITA-II.c", line 14301: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./RITA-II.c", line 14425: 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 14425: 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 14425: 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 14425: 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 14425: 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 14425: 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 14782: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./RITA-II.c", line 16477: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./RITA-II.c", line 25220: warning: variable "as" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./RITA-II.c", line 25220: warning: variable "bs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./RITA-II.c", line 25220: warning: variable "cs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./RITA-II.c", line 25221: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i=0; ^ "./RITA-II.c", line 26074: warning: subscript out of range [subscript_out_of_range] XwinMin[9] = 106; ^ "./RITA-II.c", line 26085: warning: subscript out of range [subscript_out_of_range] XwinMax[9] = 115; ^ "./RITA-II.c", line 26096: warning: subscript out of range [subscript_out_of_range] YwinMin[9] = 39; ^ "./RITA-II.c", line 26107: warning: subscript out of range [subscript_out_of_range] YwinMax[9] = 91; ^ "./RITA-II.c", line 25774: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] double tmp=0; ^ "./RITA-II.c", line 27463: warning: variable "v" was declared but never referenced [declared_but_not_referenced] double v, vn; ^ "./RITA-II.c", line 28526: 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 28526: 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 28833: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./RITA-II.c", line 28834: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./RITA-II.c", line 28837: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./RITA-II.c", line 28840: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./RITA-II.c", line 28844: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./RITA-II.c", line 28846: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./RITA-II.c", line 28847: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./RITA-II.c", line 28848: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./RITA-II.c", line 28850: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./RITA-II.c", line 29310: 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 29310: 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 29310: 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 29311: warning: variable "rho" was declared but never referenced [declared_but_not_referenced] double rho; ^ "./RITA-II.c", line 29312: warning: variable "diff" was declared but never referenced [declared_but_not_referenced] double diff; /* Deviation from Bragg condition */ ^ "./RITA-II.c", line 29313: 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 29313: 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 29313: 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 29314: 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 29314: 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 29314: 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 29315: 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 29315: 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 29315: 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 29316: 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 29316: 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 29316: 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 29317: warning: variable "det_N" was declared but never referenced [declared_but_not_referenced] double det_N; /* Determinant of N */ ^ "./RITA-II.c", line 29318: 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 29318: 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 29318: 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 29319: 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 29319: 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 29319: 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 29320: warning: variable "det_L" was declared but never referenced [declared_but_not_referenced] double det_L; /* Determinant of L */ ^ "./RITA-II.c", line 29321: 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 29321: 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 29322: 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 29322: 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 29323: 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 29330: 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 29337: 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 29337: 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 29346: 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 33617: 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 33617: 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 33617: 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 33617: 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 33639: 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 33639: 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 33639: 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 33639: 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 39778: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./RITA-II.c", line 39779: 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: 4143, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4574, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4585, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4594, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4606, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4618, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4628, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4638, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4646, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4656, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4678, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4685, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4731, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4766, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4777, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4794, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4805, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4821, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4850, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4861, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4865, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5042, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5073, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5090, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5189, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5273, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5339, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5416, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5688, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5698, Generating acc routine seq Generating NVIDIA GPU code _hash: 5724, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5765, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5776, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5781, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5789, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5797, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5804, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6461, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6557, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6574, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6689, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6744, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7723, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 8153, Generating acc routine seq Generating NVIDIA GPU code SX_list_compare: 8275, Generating acc routine seq Generating NVIDIA GPU code hkl_search: 8791, Generating acc routine seq Generating NVIDIA GPU code hkl_select: 8903, Generating acc routine seq Generating NVIDIA GPU code randrotate: 8918, Generating acc routine seq Generating NVIDIA GPU code randderotate: 8926, Generating acc routine seq Generating NVIDIA GPU code PGrotate: 8934, Generating acc routine seq Generating NVIDIA GPU code PGderotate: 8942, Generating acc routine seq Generating NVIDIA GPU code vec_rotate_2d: 8953, Generating acc routine seq Generating NVIDIA GPU code nbose: 8984, Generating acc routine seq Generating NVIDIA GPU code fatalerror: 9003, Generating acc routine seq Generating NVIDIA GPU code omega_q: 9011, Generating acc routine seq Generating NVIDIA GPU code zridd_gpu: 9114, Generating acc routine seq Generating NVIDIA GPU code findroots_gpu: 9204, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 11368, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 11436, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 11515, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 11983, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 11999, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 12017, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 12083, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 12142, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 13255, Generating acc routine seq Generating NVIDIA GPU code off_F: 14382, Generating acc routine seq Generating NVIDIA GPU code off_sign: 14387, Generating acc routine seq Generating NVIDIA GPU code off_normal: 14397, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 14423, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 14486, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 14617, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 14662, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 14779, Generating acc routine seq Generating NVIDIA GPU code off_compare: 14897, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 14909, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 14944, Generating acc routine seq Generating NVIDIA GPU code Min_int: 15195, Generating acc routine seq Generating NVIDIA GPU code merge: 15202, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 15306, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 15321, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 15375, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 15492, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 15514, Generating acc routine seq Generating NVIDIA GPU code init: 26637, 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: 26678, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen4_trace: 26768, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 27010, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 27054, Generating acc routine seq Generating NVIDIA GPU code class_Guide_trace: 27127, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 27280, Generating acc routine seq Generating NVIDIA GPU code class_E_monitor_trace: 27351, Generating acc routine seq Generating NVIDIA GPU code class_Divergence_monitor_trace: 27438, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 27528, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 27574, Generating acc routine seq Generating NVIDIA GPU code class_Collimator_linear_trace: 27936, Generating acc routine seq Generating NVIDIA GPU code class_Filter_gen_trace: 28010, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 28093, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_psf_eff_trace: 28383, Generating acc routine seq Generating NVIDIA GPU code class_Incoherent_trace: 28486, Generating acc routine seq Generating NVIDIA GPU code 28683, Reference argument passing prevents parallelization: solid_angle 28686, Reference argument passing prevents parallelization: solid_angle class_PowderN_trace: 28785, Generating acc routine seq Generating NVIDIA GPU code class_Single_crystal_trace: 29252, Generating acc routine seq Generating NVIDIA GPU code class_Phonon_simple_trace: 29814, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_4PI_trace: 29992, Generating acc routine seq Generating NVIDIA GPU code class_Exact_radial_coll_trace: 30070, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_flat_trace: 30188, Generating acc routine seq Generating NVIDIA GPU code class_Absorber_trace: 30471, Generating acc routine seq Generating NVIDIA GPU code raytrace: 30553, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 33699, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 33713, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 33699, Local memory used for .inl_particle_58271,particleN,.inl_.inl_mcneutron_0_58286,.inl_.X2921_58288,.inl_.inl_.X3131_15_58287 33713, Generating implicit firstprivate(seed,_particle) finally: 37528, 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: 5923, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: /tmp/nvcgY7ahsXKftmsN.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-12-22/ANTLR_openacc_1e7_Linux_1e7/RITA-II/./RITA-II.c:7878: warning: the use of `tmpnam' is dangerous, better use `mkstemp' /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatP08ah7MrpD0KC.o: missing .note.GNU-stack section implies executable stack /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker DEBUG: CMD: nvc finished INFO: ===