McStas version 2.7 (Nov. 27, 2020)
Copyright (C) DTU Physics and Risoe National Laboratory, 1997-2020
Additions (C) Institut Laue Langevin, 2003-2020
All rights reserved

- Component library: McStas-2.7, built Nov. 27, 2020

Instrument opened: PANDA_Michal_DV_draft.instr
/usr/share/mcstas/2.7/tools/Python/mcgui/../mccodelib/../../../bin/mcrun: 14: /usr/share/mcstas/2.7/tools/Python/mcgui/../mccodelib/../../../bin/mcrun: [[: not found
INFO: No output directory specified (--dir)
INFO: Using directory: "PANDA_Michal_DV_draft_20201213_183136"
INFO: Regenerating c-file: PANDA_Michal_DV_draft.c
Info:    'Al_window' is a contributed component.
Info:    Defining SPLIT from PG002_mono=Monochromator_curved() to END in instrument PANDA
Info:    Defining SPLIT from PG002_ana=Monochromator_curved() to END in instrument PANDA
CFLAGS=
  INFO: Recompiling: ./PANDA_Michal_DV_draft.out
mccode-r.c: In function ‘sighandler’:
mccode-r.c:3719:5: warning: implicit declaration of function ‘kill’; did you mean ‘ceill’? [-Wimplicit-function-declaration]
/usr/share/mcstas/2.7/tools/Python/mcrun/../mccodelib/../../../samples/Single_crystal.comp: In function ‘off_init’:
/usr/share/mcstas/2.7/tools/Python/mcrun/../mccodelib/../../../samples/Single_crystal.comp:963:7: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
 #endif /* !SINGLE_CRYSTAL_DECL */
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~    
/usr/share/mcstas/2.7/tools/Python/mcrun/../mccodelib/../../../samples/Single_crystal.comp:1050:7: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
             "WARNING setting order=1\n", NAME_CURRENT_COMP);
       ^     ~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/share/mcstas/2.7/tools/Python/mcrun/../mccodelib/../../../samples/Single_crystal.comp:1066:7: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
   struct hkl_data *L;           /* Structure factor list */
       ^~~~~~~~~~~~~~~~~~~~~~
mccode-r.c: In function ‘mcdetector_import’:
mccode-r.c:768:51: warning: ‘ ’ directive output may be truncated writing 1 byte into a region of size between 0 and 1023 [-Wformat-truncation=]
In file included from /usr/include/stdio.h:862:0,
                 from mccode-r.h:43:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output 9 or more bytes (assuming 1032) into a destination of size 1024
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
INFO: ===
begin instrument: PANDA
  Creator: McStas 2.7 - Nov. 27, 2020
  Source: PANDA_Michal_DV_draft.instr
  Parameters:  prim_shut_pos(int) sapphire(int) ca1(int) ca2(int) ca3(int) ca4(int) ms1(double) lms(double) lsa(double) lad(double) ki(double) kf(double) dE(double) Q(double) mth(double) mtt(double) mtx(double) mty(double) mgy(double) mfh(double) mfv(double) scatsense(int) sth(double) stt(double) stx(double) sty(double) stz(double) sgx(double) sgy(double) ss1_width(double) ss1_height(double) ss2_width(double) ss2_height(double) ath(double) att(double) atx(double) aty(double) agy(double) afh(double) afv(double)
  Trace_enabled: yes
  Default_main: yes
  Embedded_runtime: yes
end instrument
begin simulation: .
  Format: McStas
  URL: http://www.mccode.org
  Creator: McStas 2.7 - Nov. 27, 2020
  Instrument: PANDA_Michal_DV_draft.instr
  Ncount: 1000000
  Trace: no
  Gravitation: no
  Seed: 1607880818
  Directory: .
  Param: prim_shut_pos=1
  Param: sapphire=1
  Param: ca1=80
  Param: ca2=80
  Param: ca3=80
  Param: ca4=80
  Param: ms1=0.04
  Param: lms=2.15
  Param: lsa=1.05
  Param: lad=0.95
  Param: ki=0
  Param: kf=0
  Param: dE=0
  Param: Q=0
  Param: mth=0
  Param: mtt=0
  Param: mtx=0
  Param: mty=0
  Param: mgy=0
  Param: mfh=4.5
  Param: mfv=2
  Param: scatsense=-1
  Param: sth=0
  Param: stt=0
  Param: stx=0
  Param: sty=0
  Param: stz=0
  Param: sgx=0
  Param: sgy=0
  Param: ss1_width=0.02
  Param: ss1_height=0.03
  Param: ss2_width=0.02
  Param: ss2_height=0.04
  Param: ath=0
  Param: att=0
  Param: atx=0
  Param: aty=0
  Param: agy=0
  Param: afh=1.7
  Param: afv=0.6
end simulation
info!
mcrun PANDA_Michal_DV_draft.instr -d /mnt/d/Aplikacje/McStas/PANDA_Michal_DV_draft_20201213_183238 -n 1000000  prim_shut_pos=1  sapphire=1  ca1=80  ca2=80  ca3=80  ca4=80  ms1=0.04  lms=2.15  lsa=1.05  lad=0.95  ki=1.55  kf=1.55  dE=0  Q=2.5386  mth=0  mtt=0  mtx=0  mty=0  mgy=0  mfh=4.5  mfv=2  scatsense=-1  sth=144.95  stt=0  stx=0  sty=0  stz=0  sgx=0  sgy=0  ss1_width=0.02  ss1_height=0.03  ss2_width=0.02  ss2_height=0.04  ath=0  att=0  atx=0  aty=0  agy=0  afh=1.7  afv=0.6
/usr/share/mcstas/2.7/tools/Python/mcgui/../mccodelib/../../../bin/mcrun: 14: /usr/share/mcstas/2.7/tools/Python/mcgui/../mccodelib/../../../bin/mcrun: [[: not found
INFO: Using directory: "/mnt/d/Aplikacje/McStas/PANDA_Michal_DV_draft_20201213_183238"
INFO: Using existing c-file: ./PANDA_Michal_DV_draft.c
INFO: Using existing binary: ./PANDA_Michal_DV_draft.out
INFO: ===
ki: 1.550000 A-1
kf: 1.550000 A-1
dE: 0.000000 meV
Lam: 4.053668 A
dLam: 0.121610 A
mth: 37.170838 deg
mtt: 74.341676 deg
sth: 144.950000 deg
stt: 109.950305 deg
ath: 37.170838 deg
att: 74.341676 deg
[PANDA] Initialize
Opening input file '/usr/share/mcstas/2.7/tools/Python/mcrun/../mccodelib/../../../data/Al2O3_sapphire.trm' (Table_Read_Offset)
Opening input file '/usr/share/mcstas/2.7/tools/Python/mcrun/../mccodelib/../../../data/HOPG.rfl' (Table_Read_Offset)
Opening input file './data/Pb.lau' (Table_Read_Offset)
Single_crystal: ./data/Pb.lau structure a=4.95 b=4.95 c=4.95 aa=90 bb=90 cc=90 V0=121.287
Single_crystal: PANDA_cryst: Read 26 reflections from file './data/Pb.lau'
Single_crystal: PANDA_cryst: Vc=121.287 [Angs] sigma_abs=0.684 [barn] sigma_inc=0.012 [barn] reflections=./data/Pb.lau
Warning: 11722 events were removed in Component[37] PSD_scattered=PSD_monitor()
         (negative time, miss next components, rounding errors, Nan, Inf).

Save [PANDA]
Detector: PSD_PrimBeam_I=1.25064e+10 PSD_PrimBeam_ERR=6.3648e+07 PSD_PrimBeam_N=45128 "PSD_PrimBeam.psd"
Detector: LAM_PrimBeam_I=1.25064e+10 LAM_PrimBeam_ERR=6.3648e+07 LAM_PrimBeam_N=45128 "LAM_PrimBeam.L"
Detector: DIV_PrimBeam_I=1.25064e+10 DIV_PrimBeam_ERR=6.3648e+07 DIV_PrimBeam_N=45128 "DIV_PrimBeam.dat"
Detector: PSD_mon1_I=6.54851e+08 PSD_mon1_ERR=3.27039e+06 PSD_mon1_N=44493 "PSD_mon1.psd"
Detector: LAM_mon1_I=6.54851e+08 LAM_mon1_ERR=3.27039e+06 LAM_mon1_N=44493 "LAM_mon1.L"
Detector: PSD_samplepos_I=2.47082e+08 PSD_samplepos_ERR=2.02503e+06 PSD_samplepos_N=15300 "PSD_samplepos.psd"
Detector: Mon_samplepos2_I=7.55973e+07 Mon_samplepos2_ERR=1.12146e+06 Mon_samplepos2_N=4709 "Mon_samplepos2"
Detector: PSD_scattered_I=919849 PSD_scattered_ERR=26590.5 PSD_scattered_N=3255 "scattered.psd"
Detector: PSD_mon2_I=883326 PSD_mon2_ERR=26187 PSD_mon2_N=3021 "PSD_mon2.psd"
Detector: PSD_det_I=146992 PSD_det_ERR=2386.86 PSD_det_N=10319 "PSD_det.psd"
Detector: PSD_det1_I=146519 PSD_det1_ERR=2382.36 PSD_det1_N=10252 "PSD_det1.psd"
Detector: PSD_det2_I=146992 PSD_det2_ERR=2386.86 PSD_det2_N=10319 "PSD_det2.psd"

Finally [PANDA: /mnt/d/Aplikacje/McStas/PANDA_Michal_DV_draft_20201213_183238]. Time: 1 [s] 
INFO: Placing instr file copy PANDA_Michal_DV_draft.instr in dataset /mnt/d/Aplikacje/McStas/PANDA_Michal_DV_draft_20201213_183238

mcplot-pyqtgraph /mnt/d/Aplikacje/McStas/PANDA_Michal_DV_draft_20201213_183238
/usr/share/mcstas/2.7/tools/Python/mcgui/../mccodelib/../../../bin/mcplot-pyqtgraph: 14: /usr/share/mcstas/2.7/tools/Python/mcgui/../mccodelib/../../../bin/mcplot-pyqtgraph: [[: not found

q              - quit
p              - save png
s              - save svg
l              - log toggle
t              - textinfo toggle
c              - cycle colormap
F1/h           - help
F5             - replot
click          - display subplot
right-click/b  - back
ctrl + click   - sweep monitors
x              - expand subplots
Active colormap: jet
/usr/share/mcstas/2.7/tools/Python/mcgui/../mccodelib/../../../bin/mcrun: 14: /usr/share/mcstas/2.7/tools/Python/mcgui/../mccodelib/../../../bin/mcrun: [[: not found
INFO: No output directory specified (--dir)
INFO: Using directory: "PANDA_Michal_DV_draft_20201213_183258"
INFO: Regenerating c-file: PANDA_Michal_DV_draft.c
Info:    'Al_window' is a contributed component.
Info:    Defining SPLIT from PG002_mono=Monochromator_curved() to END in instrument PANDA
Info:    Defining SPLIT from PG002_ana=Monochromator_curved() to END in instrument PANDA
CFLAGS= -Wl,-rpath,NCrystalLink/lib -LNCrystalLink/lib -lNCrystal -INCrystalLink/include
  INFO: Recompiling: ./PANDA_Michal_DV_draft.out
mccode-r.c: In function ‘sighandler’:
mccode-r.c:3719:5: warning: implicit declaration of function ‘kill’; did you mean ‘ceill’? [-Wimplicit-function-declaration]
mccode-r.c: In function ‘mcdetector_import’:
mccode-r.c:768:51: warning: ‘ ’ directive output may be truncated writing 1 byte into a region of size between 0 and 1023 [-Wformat-truncation=]
In file included from /usr/include/stdio.h:862:0,
                 from mccode-r.h:43:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output 9 or more bytes (assuming 1032) into a destination of size 1024
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NCrystalLink/lib/libNCrystal.so: undefined reference to `log2@GLIBC_2.29'
NCrystalLink/lib/libNCrystal.so: undefined reference to `log@GLIBC_2.29'
NCrystalLink/lib/libNCrystal.so: undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()@GLIBCXX_3.4.26'
NCrystalLink/lib/libNCrystal.so: undefined reference to `exp@GLIBC_2.29'
NCrystalLink/lib/libNCrystal.so: undefined reference to `pow@GLIBC_2.29'
collect2: error: ld returned 1 exit status