Instrument opened: BNL_H8.instr INFO: No output directory specified (--dir) INFO: Using directory: "BNL_H8_20191003_141219" INFO: Regenerating c-file: BNL_H8.c Warning: 'V_sample' is an obsolete component (not maintained). Info: Defining SPLIT from PG1Xtal=Monochromator_flat() to END in instrument BNL_H8 Info: Defining SPLIT from Sample=V_sample() to END in instrument BNL_H8 Info: Defining SPLIT from PG2Xtal=Monochromator_flat() to END in instrument BNL_H8 CFLAGS= INFO: Recompiling: ./BNL_H8.out mccode-r.c:517:48: warning: address of array 'detector.filename' will always evaluate to 'true' [-Wpointer-bool-conversion] if (!detector.p1 || !detector.m || !detector.filename) ~~~~~~~~~~^~~~~~~~ mccode-r.c:724:5: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] m=abs(m); n=abs(n); p=abs(p); /* make sure dimensions are positive */ ^ mccode-r.c:724:5: note: use function 'labs' instead m=abs(m); n=abs(n); p=abs(p); /* make sure dimensions are positive */ ^~~ labs mccode-r.c:724:15: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] m=abs(m); n=abs(n); p=abs(p); /* make sure dimensions are positive */ ^ mccode-r.c:724:15: note: use function 'labs' instead m=abs(m); n=abs(n); p=abs(p); /* make sure dimensions are positive */ ^~~ labs mccode-r.c:724:25: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] m=abs(m); n=abs(n); p=abs(p); /* make sure dimensions are positive */ ^ mccode-r.c:724:25: note: use function 'labs' instead m=abs(m); n=abs(n); p=abs(p); /* make sure dimensions are positive */ ^~~ labs mccode-r.c:1973:7: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] if (abs(m) == 1) {/* n>1 on Y, m==1 on X: 1D, no X axis*/ ^ mccode-r.c:1973:7: note: use function 'labs' instead if (abs(m) == 1) {/* n>1 on Y, m==1 on X: 1D, no X axis*/ ^~~ labs mccode-r.c:1981:14: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] } else if (abs(n)==1) {/* m>1 on X, n==1 on Y: 1D, no Y axis*/ ^ mccode-r.c:1981:14: note: use function 'labs' instead } else if (abs(n)==1) {/* m>1 on X, n==1 on Y: 1D, no Y axis*/ ^~~ labs mccode-r.c:2029:21: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 1,abs(m),1,abs(n), ^ mccode-r.c:2029:21: note: use function 'labs' instead 1,abs(m),1,abs(n), ^~~ labs mccode-r.c:2029:30: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 1,abs(m),1,abs(n), ^ mccode-r.c:2029:30: note: use function 'labs' instead 1,abs(m),1,abs(n), ^~~ labs /private/var/folders/f2/t60lndkj42v3sqstrpkjkbyr0000gq/T/AppTranslocation/3A9FC6ED-6695-4F3A-B3B5-BFADA5D2BA86/d/McStas-2.5.app/Contents/Resources/mcstas/2.5/tools/Python/mcrun/../mccodelib/../../../optics/Guide.comp:347:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /private/var/folders/f2/t60lndkj42v3sqstrpkjkbyr0000gq/T/AppTranslocation/3A9FC6ED-6695-4F3A-B3B5-BFADA5D2BA86/d/McStas-2.5.app/Contents/Resources/mcstas/2.5/tools/Python/mcrun/../mccodelib/../../../optics/Guide.comp:374:21: warning: address of array 'mcinstrument_source' will always evaluate to 'true' [-Wpointer-bool-conversion] if (!hfile && mcinstrument_source && strlen(mcinstrument_source)) /* search in instrument source location */ ~~ ^~~~~~~~~~~~~~~~~~~ /private/var/folders/f2/t60lndkj42v3sqstrpkjkbyr0000gq/T/AppTranslocation/3A9FC6ED-6695-4F3A-B3B5-BFADA5D2BA86/d/McStas-2.5.app/Contents/Resources/mcstas/2.5/tools/Python/mcrun/../mccodelib/../../../optics/Guide.comp:802:17: warning: address of array 'Table->filename' will always evaluate to 'true' [-Wpointer-bool-conversion] (Table->filename ? Table->filename : ""), ~~~~~~~^~~~~~~~ ~ /private/var/folders/f2/t60lndkj42v3sqstrpkjkbyr0000gq/T/AppTranslocation/3A9FC6ED-6695-4F3A-B3B5-BFADA5D2BA86/d/McStas-2.5.app/Contents/Resources/mcstas/2.5/tools/Python/mcrun/../mccodelib/../../../optics/Guide.comp:1094:13: warning: address of array 'Table.filename' will always evaluate to 'true' [-Wpointer-bool-conversion] Table.filename ? Table.filename : "", buffer); ~~~~~~^~~~~~~~ ~ 12 warnings generated. INFO: === begin instrument: BNL_H8 Creator: McStas 2.5 - Dec. 12, 2018 Source: BNL_H8.instr Parameters: lambda(double) Trace_enabled: yes Default_main: yes Embedded_runtime: yes end instrument begin simulation: . Format: McStas URL: http://www.mccode.org Creator: McStas 2.5 - Dec. 12, 2018 Instrument: BNL_H8.instr Ncount: 1000000 Trace: no Gravitation: no Seed: 1570109871 Directory: . Param: lambda=2.36 end simulation loading user configuration from /Users/Chris/.mcstas/2.5/mccode_config.json info! mcrun BNL_H8.instr -d /Users/Chris/Downloads/BNL_H8_20191003_141235 -n 1000000 lambda=2.36 INFO: Using directory: "/Users/Chris/Downloads/BNL_H8_20191003_141235" INFO: Using existing c-file: ./BNL_H8.c INFO: Using existing binary: ./BNL_H8.out INFO: === Instrument: BNL_H8 on localhost. Monochromator : DM = 3.3539 A1 = 20.60, A2 = 41.20 (deg) Ki = 2.662 Angs-1 Energy = 14.69 meV Velocity = 1676 m/s, lambda = 2.36 Angs [BNL_H8] Initialize Save [BNL_H8] Detector: D0_Source_I=0.00316827 D0_Source_ERR=1.39467e-05 D0_Source_N=51606 "D0_Source.psd" Detector: D1_SC1_Out_I=0.0204261 D1_SC1_Out_ERR=3.53996e-05 D1_SC1_Out_N=334796 "D1_SC1_Out.psd" Detector: D2_A4_I=0.013764 D2_A4_ERR=2.90618e-05 D2_A4_N=225913 "D2_A4.psd" Detector: D4_SC2_In_I=0.00154255 D4_SC2_In_ERR=3.07645e-06 D4_SC2_In_N=255058 "D4_SC2_In.psd" Detector: D5_SC2_Out_I=0.0012074 D5_SC2_Out_ERR=2.72153e-06 D5_SC2_Out_N=201265 "D5_SC2_Out.psd" Detector: D7_SC3_In_I=1.22021e-07 D7_SC3_In_ERR=2.22182e-10 D7_SC3_In_N=331765 "D7_SC3_In.psd" Detector: D8_SC3_Out_I=2.33472e-08 D8_SC3_Out_ERR=9.77073e-11 D8_SC3_Out_N=62790 "D8_SC3_Out.psd" Detector: D10_SC4_In_I=1.23071e-09 D10_SC4_In_ERR=7.10554e-12 D10_SC4_In_N=33072 "D10_SC4_In.psd" Detector: He3H_I=9.39249e-10 He3H_ERR=6.20718e-12 He3H_N=25185 "He3.psd" Finally [BNL_H8: /Users/Chris/Downloads/BNL_H8_20191003_141235]. Time: 1 [s] INFO: Placing instr file copy BNL_H8.instr in dataset /Users/Chris/Downloads/BNL_H8_20191003_141235 loading user configuration from /Users/Chris/.mcstas/2.5/mccode_config.json