Closed climbcat closed 3 years ago
@willend do you know why so many target values can not be extracted?
Here's the latest version:
jaga@HP-EliteBook-840-G4:/tmp$ mctest-dev 3.0-dev ncount is: 1e6 Testing: 3.0-dev Finding instruments in: /usr/share/mcstas/3.0-dev Copying instruments to: /tmp/mctest/20191120_1725_12/3.0-dev Compiling instruments [seconds]... BNL_H8 : 2.80 BNL_H8_simple : 2.73 Demo_shape_primitives : 1.96 ESS_2001_bispectral : 2.98 ESS_2015_test : 2.24 ESS_Brilliance_2001 : 4.07 ESS_Brilliance_2013 : 4.46 ESS_Brilliance_2014 : 4.82 ESS_Brilliance_2015 : 4.46 ESS_Brilliance_TDR : 4.60 ESS_IN5_reprate : 4.74 ESS_butterfly_Guide_curved_test : 6.11 ESS_butterfly_MCPL_test : 5.46 ESS_butterfly_test : 4.90 ESS_butterfly_tfocus_NOFOCUS_test : 5.45 ESS_butterfly_tfocus_test : 5.35 ESS_mcpl2hist : 4.09 FZJ_BenchmarkSfin2 : 6.84 FZJ_KWS2_Lens : 2.37 FZJ_SANS_KWS2_AnySample : 2.92 Gallmeier_SNS_decoupled_poisoned : 1.97 Granroth_SNS_decoupled_poisoned : 2.85 HZB_FLEX : 6.16 HZB_NEAT : 8.44 Histogrammer : 4.18 ILL_D2B : 6.48 ILL_D4 : 5.80 ILL_H10_IN8 : 6.22 ILL_H113 : 10.56 ILL_H13_IN20 : 6.85 ILL_H142 : 11.15 ILL_H142_IN12 : 14.45 ILL_H143_LADI : 9.05 ILL_H15 : 7.45 ILL_H15_IN6 : 10.92 ILL_H16 : 6.37 ILL_H16_IN5 : 9.42 ILL_H16_IN5_Mantid : 9.43 ILL_H16_Mantid : 5.58 ILL_H22 : 9.94 ILL_H22_D1A : 12.51 ILL_H22_D1B : 13.34 ILL_H22_VIVALDI : 13.91 ILL_H24 : 9.99 ILL_H25 : 9.70 ILL_H25_IN22 : 12.86 ILL_H5 : 34.08 ILL_H512_D22 : 11.68 ILL_H53 : 11.09 ILL_H53_D16 : 11.27 ILL_H8_IN1 : 6.20 ILL_IN13 : 5.56 ILL_IN4 : 10.02 ILL_IN5 : 8.08 ILL_IN5_Mantid : 8.60 ILL_IN6 : 7.24 ILL_Lagrange : 7.59 ISIS_CRISP : 4.17 ISIS_GEM : 4.78 ISIS_HET : 5.57 ISIS_MERLIN : 4.30 ISIS_OSIRIS : 8.28 ISIS_Prisma2 : 5.87 ISIS_SANS2d : 4.41 ISIS_SANS2d_Mantid : 6.74 ISIS_TS1_Brilliance : 2.24 ISIS_TS2_Brilliance : 2.28 ISIS_test : 4.35 LLB_6T2 : 5.28 MCPL2hist : 3.88 Mezei_SNS_decoupled_poisoned : 1.91 PSI_DMC : 6.79 PSI_DMC_simple : 6.58 PSI_Focus : 7.98 PSI_source : 1.91 RITA-II : 21.22 RTP_DIF : 6.34 RTP_Laue : 6.39 RTP_NeutronRadiography : 5.82 RTP_SANS : 7.13 SAFARI_MPISI : 8.10 SAFARI_PITSI : 6.75 SNS_ARCS : 5.47 SNS_BASIS : 12.91 SNS_analytic_test : 3.51 SNS_test : 3.20 Samples_Incoherent : 6.51 Samples_Incoherent_off : 3.46 Samples_Isotropic_Sqw : 4.23 Samples_Phonon : 1.63 Samples_vanadium : 1.64 TestSANS : 1.72 Test_Collimator_Radial : 3.99 Test_FocalisationMirrors : 2.24 Test_Jump_Iterate : 3.35 Test_Lens : 4.67 Test_MCPL_input : 3.15 Test_MCPL_output : 2.99 Test_Monochromators : 3.85 Test_PSD_Detector : 3.09 Test_Pol_Guide_Vmirror : 3.23 Test_Pol_MSF : 2.34 Test_Pol_Mirror : 2.51 Test_Pol_SF_ideal : 1.86 Test_Pol_Set : 2.01 Test_PowderN_Res : 3.86 Test_PreMonitor_nD : 3.61 Test_SSR_SSW : 1.43 Test_SSR_SSW_Guide : 1.93 Test_Sample_nxs_diffraction : 2.69 Test_Sample_nxs_imaging : 2.78 Test_Selectors : 3.51 Test_Sources : 4.64 Tomography : 3.59 Vin_test : 2.07 Vout_test : 2.55 h8_test_legacy : 3.34 linup-1 : 2.65 linup-2 : 2.66 linup-3 : 2.87 linup-4 : 3.24 linup-5 : 3.12 linup-6 : 3.72 linup-7 : 3.38 micro : 1.72 mini : 2.19 nano : 1.72 template : 1.46 templateDIFF : 5.01 templateLaue : 3.24 templateLaueGPU : COMPILE ERROR using: mcrun --info /tmp/mctest/20191120_1725_12/3.0-dev/templateLaueGPU/templateLaueGPU.instr templateLaueGPU_SXonly : COMPILE ERROR using: mcrun --info /tmp/mctest/20191120_1725_12/3.0-dev/templateLaueGPU_SXonly/templateLaueGPU_SXonly.instr templateLaueGPU_rngonly : COMPILE ERROR using: mcrun --info /tmp/mctest/20191120_1725_12/3.0-dev/templateLaueGPU_rngonly/templateLaueGPU_rngonly.instr templateNMX : 3.85 templateNMX_TOF : 3.75 templateSANS : 2.19 templateSANS_Mantid : 3.91 templateSasView : 2.09 templateSasView_Mantid : 3.91 templateTAS : 6.03 templateVanadiumMultipleScat_Mantid : 3.64 template_simple : 1.39 Running tests... BNL_H8 : 1.98 BNL_H8_simple : 0.76 Demo_shape_primitives : NO TEST ESS_2001_bispectral : NO TEST ESS_2015_test : NO TEST ESS_Brilliance_2001 : NO TEST ESS_Brilliance_2013 : NO TEST ESS_Brilliance_2014 : NO TEST ESS_Brilliance_2015 : NO TEST ESS_Brilliance_TDR : NO TEST ESS_IN5_reprate : 3.23 ESS_butterfly_Guide_curved_test : NO TEST ESS_butterfly_MCPL_test : NO TEST ESS_butterfly_test : NO TEST ESS_butterfly_tfocus_NOFOCUS_test : NO TEST ESS_butterfly_tfocus_test : NO TEST ESS_mcpl2hist : NO TEST FZJ_BenchmarkSfin2 : NO TEST FZJ_KWS2_Lens : 1.09 FZJ_SANS_KWS2_AnySample : 1.51 FZJ_SANS_KWS2_AnySample_2 : 0.78 FZJ_SANS_KWS2_AnySample_3 : 0.69 FZJ_SANS_KWS2_AnySample_4 : 0.64 Gallmeier_SNS_decoupled_poisoned : NO TEST Granroth_SNS_decoupled_poisoned : NO TEST HZB_FLEX : NO TEST HZB_NEAT : 8.23 HZB_NEAT_2 : 4.31 Histogrammer : NO TEST ILL_D2B : 1.43 ILL_D4 : 12.31 ILL_H10_IN8 : 2.48 ILL_H113 : 11.19 ILL_H13_IN20 : 2.28 ILL_H142 : 10.54 ILL_H142_IN12 : 2.46 ERROR: targetval for monitor name D7_SC3_1D could not be extracted from instr. ILL_H142_IN12 ILL_H143_LADI : NO TEST ILL_H15 : 8.80 ILL_H15_IN6 : NO TEST ILL_H16 : 2.62 ILL_H16_IN5 : 1.53 ILL_H16_IN5_2 : 1.52 ILL_H16_IN5_Mantid : 1.60 ILL_H16_IN5_Mantid_2 : 1.54 ILL_H16_Mantid : NO TEST ILL_H22 : 2.11 ILL_H22_D1A : 6.25 ERROR: targetval for monitor name BananaPSD could not be extracted from instr. ILL_H22_D1A ILL_H22_D1B : 5.17 ILL_H22_VIVALDI : 7.00 ERROR: targetval for monitor name PSD_Vivaldi could not be extracted from instr. ILL_H22_VIVALDI ILL_H24 : 1.79 ILL_H25 : 6.27 ILL_H25_IN22 : 2.22 ILL_H5 : NO TEST ILL_H512_D22 : 2.42 ERROR: targetval for monitor name D22_Detector could not be extracted from instr. ILL_H512_D22 ILL_H53 : 4.21 ERROR: targetval for monitor name H53_P5_Out_Phic could not be extracted from instr. ILL_H53 ILL_H53_D16 : NO TEST ILL_H8_IN1 : 5.62 ILL_IN13 : 30.41 ILL_IN4 : 0.79 ERROR: targetval for monitor name sample_flux could not be extracted from instr. ILL_IN4 ILL_IN5 : 1.56 ILL_IN5_Mantid : 1.02 ILL_IN6 : NO TEST ILL_Lagrange : 16.73 ISIS_CRISP : NO TEST ISIS_GEM : 5.82 ISIS_HET : 3.13 ISIS_MERLIN : NO TEST ISIS_OSIRIS : NO TEST ISIS_Prisma2 : 1.40 ERROR: targetval for monitor name mon9 could not be extracted from instr. ISIS_Prisma2 ISIS_SANS2d : NO TEST ISIS_SANS2d_Mantid : NO TEST ISIS_TS1_Brilliance : NO TEST ISIS_TS2_Brilliance : NO TEST ISIS_test : 0.88 LLB_6T2 : NO TEST MCPL2hist : NO TEST Mezei_SNS_decoupled_poisoned : NO TEST PSI_DMC : 1.71 PSI_DMC_simple : 0.92 PSI_Focus : 4.53 PSI_source : 0.45 RITA-II : NO TEST RTP_DIF : NO TEST RTP_Laue : NO TEST RTP_NeutronRadiography : NO TEST RTP_SANS : NO TEST SAFARI_MPISI : NO TEST SAFARI_PITSI : NO TEST SNS_ARCS : NO TEST SNS_BASIS : NO TEST SNS_analytic_test : NO TEST SNS_test : NO TEST Samples_Incoherent : 1.70 Samples_Incoherent_2 : 1.95 Samples_Incoherent_3 : 1.41 Samples_Incoherent_4 : 1.52 Samples_Incoherent_5 : 1.91 Samples_Incoherent_6 : 2.12 Samples_Incoherent_7 : 2.53 Samples_Incoherent_8 : 2.18 Samples_Incoherent_9 : 3.10 Samples_Incoherent_10 : 2.08 Samples_Incoherent_off : 26.43 Samples_Isotropic_Sqw : 7.81 Samples_Phonon : 30.67 Samples_vanadium : 0.88 TestSANS : NO TEST Test_Collimator_Radial : 2.10 Test_Collimator_Radial_2 : 0.94 Test_Collimator_Radial_3 : 0.96 Test_FocalisationMirrors : 0.91 Test_Jump_Iterate : 1.74 ERROR: targetval for monitor name Mon_LambdaDX_Out could not be extracted from instr. Test_Jump_Iterate Test_Lens : NO TEST Test_MCPL_input : 0.15 Test_MCPL_output : 9.86 Test_Monochromators : 0.97 Test_Monochromators_2 : 0.77 Test_Monochromators_3 : 0.79 Test_Monochromators_4 : 1.06 Test_Monochromators_5 : 1.36 Test_PSD_Detector : 0.74 Test_Pol_Guide_Vmirror : 1.42 Test_Pol_MSF : 0.78 Test_Pol_Mirror : 0.73 Test_Pol_SF_ideal : NO TEST Test_Pol_Set : 0.90 ERROR: targetval for monitor name polMonitor3 could not be extracted from instr. Test_Pol_Set Test_PowderN_Res : NO TEST Test_PreMonitor_nD : NO TEST Test_SSR_SSW : NO TEST Test_SSR_SSW_Guide : NO TEST Test_Sample_nxs_diffraction : NO TEST Test_Sample_nxs_imaging : NO TEST Test_Selectors : 0.55 Test_Selectors_2 : 1.15 Test_Sources : 1.40 Test_Sources_2 : 1.05 Test_Sources_3 : 1.46 Test_Sources_4 : 1.06 Test_Sources_5 : 1.26 Test_Sources_6 : 1.03 Test_Sources_7 : 1.20 Test_Sources_8 : 1.08 Tomography : 31.21 Vin_test : NO TEST Vout_test : NO TEST h8_test_legacy : NO TEST linup-1 : 0.92 ERROR: targetval for monitor name sng could not be extracted from instr. linup-1 linup-2 : 0.99 ERROR: targetval for monitor name sng could not be extracted from instr. linup-2 linup-3 : 0.97 ERROR: targetval for monitor name sng could not be extracted from instr. linup-3 linup-4 : 0.97 ERROR: targetval for monitor name sng could not be extracted from instr. linup-4 linup-5 : 0.96 ERROR: targetval for monitor name sng could not be extracted from instr. linup-5 linup-6 : 0.99 ERROR: targetval for monitor name sng could not be extracted from instr. linup-6 linup-7 : 0.95 ERROR: targetval for monitor name sng could not be extracted from instr. linup-7 micro : NO TEST mini : 0.36 nano : NO TEST template : NO TEST templateDIFF : 2.30 templateLaue : 0.91 templateLaue_2 : 2.73 templateLaueGPU did not compile templateLaueGPU_SXonly did not compile templateLaueGPU_rngonly did not compile templateNMX : NO TEST templateNMX_TOF : NO TEST templateSANS : 0.58 templateSANS_Mantid : 0.58 templateSasView : NO TEST templateSasView_Mantid : NO TEST templateTAS : 4.49 templateTAS_2 : 4.47 ERROR: targetval for monitor name He3H could not be extracted from instr. templateTAS templateVanadiumMultipleScat_Mantid : NO TEST template_simple : NO TEST
@climbcat I am sure the reason for the non-extractability has to do with the simulation crashing - likely access to global structures in a non-atomic way. The stdout/stderr will tell us in that case.
Ok, I'll double-check a few examples. Then these actually need to turn red as viewtest output.
Hmm, linup-1 gives the right output when the old perl-based, test is run,
mcrun.pl --test linup-1 PGPLOT unactivated: install perl-PGPLOT first PGPLOT unactivated: install perl-PDL first *** No directory given - placing data in linup-1_20191121_110618 *** # mcstas self-test (mcrun.pl --test) McStas version 3.0-dev (Nov. 20, 2019) # Installing 'selftest_0vs0' directory in /zhome/89/0/38697/tmp # Copying instruments from /zhome/89/0/38697/McStas/mcstas/3.0-dev/examples/ # Counts: 1000000 # Output format: PGPLOT # Start Date: Thu Nov 21 11:06:18 2019 INSTRUMENT linup-1: The conventional cold-source triple-axis spectrometer TAS1 at Risoe National Laboratory used as a diffractometer for monochromator rocking curves Executing: mcrun.pl linup-1.instr PHM=-37.077 -n 1000000 --format=PGPLOT -d linup-1/0 PGPLOT unactivated: install perl-PGPLOT first PGPLOT unactivated: install perl-PDL first CFLAGS= linup-1.c: In function 'sighandler': linup-1.c:4929:5: warning: implicit declaration of function 'kill' [-Wimplicit-function-declaration] kill(0, SIGKILL); /* kill myself if error occurs within sighandler: loops */ ^~~~ [OK] linup-1: sng_I = 0.000427037 +/- 4.21218e-06, equals 0.000429426 within 1 % Test Abstract for selftest_0vs0 [OK] linup-1_1 (accuracy, 1 %) # Execution check: OK. Computing time: 5 [sec] for 1 tests. # Accuracy check: OK. # End Date: Thu Nov 21 11:06:23 2019
I will now try to see what is going on in the mctest-driven case
outdated
Aside from a few (fixable) compile errors, the prevailing point of failure seems to be "targetval for monitor name XXXX could not be extracted". We should look into the causes for these. A few times, I have noticed that the component name and the monitor output filename are not the same, and fixed that somewhat, but there might be more along the same lines.
Nearly all instruments should compile. At one point, they all did, and I moved the non-compiling ones to "parked" after evaluating whether they were worth fixing ta the time. What remains thus consists of new errors that have arisen as side effects, or consist of non-functional instruments (e.g. *_gpu.instr).