[mcstas-users] Still problem running > 4e9 source neutrons...

Peter Kjær Willendrup pkwi at dtu.dk
Thu May 1 18:00:47 CEST 2025


Hi Uli,


Hmm… Would be nice with access to instr code + all required nuts and bolts to reproduce?

That said, I have on my list to dig deeper into a periodic issue with event lists in Monitor_nD, likely relating to dynamic reallocation of the event list buffer.

With unmodified code you might be able to work around the problem by using a bigger event list buffer? Try adjusting the ‘bufsiz’ (is an option of the sim binaries as well as mcrun)

--bufsiz=BUFSIZ     Monitor_nD list/buffer-size (defaults to 10000000)
(from mcrun --help)


Best,
Peter

On 1 May 2025, at 17.30, Wildgruber, Christoph U. via mcstas-users <mcstas-users at mcstas.org> wrote:

Hi everybody,

I was (trying to) follow(ing) Peter’s suggestion and updated the ‘xcode command line tools’ (and reinstalled xcode too)
on my M2 MBP. The the same instrument runs fine with 5e8 source neutrons (I did not try yet 4e9, but I will)
with 5e9 however I get the same error message(s) I got yesterday before the ‘xcode’ update (copy from mcgui-py)
I am running single threaded btw…:

Incoherent: incCube: Vc=13.827 [Angs] sigma_abs=0.001 [barn] sigma_inc=5 [barn]
Monitor_nD: Crystal_15_out is a Intensity Crystal index Neutron_ID Position Position Position Velocity Velocity Velocity Time_Of_Flight Monitor (Square).
Monitor_nD: version $Revision$ with options=user1,n,x,y,z,vx,vy,vz,t,list all neutrons verbose
Monitor_nD: Collimator_in is a Intensity Crystal index Neutron_ID Position Position Position Velocity Velocity Velocity Time_Of_Flight Monitor (Square).
Monitor_nD: version $Revision$ with options=user1,n,x,y,z,vx,vy,vz,t,list all neutrons verbose
Monitor_nD: Collimator_out is a Intensity Crystal index Neutron_ID Position Position Position Velocity Velocity Velocity Time_Of_Flight Monitor (Square).
Monitor_nD: version $Revision$ with options=user1,n,x,y,z,vx,vy,vz,t,list all neutrons verbose

Trace ETA (single process) 1.27806 [h]
0 %
10 %
20 %
30 %
40 %
50 %
60 %
70 %
80 %
90 %

# 3.5.24, git: [pid 95430] Signal 11 detected SIGSEGV (Mem Error)
# Simulation: BMSPEC_Coll (BMSPEC_parallelBeam_3.35_2.0_xtal15.instr)
# Breakpoint: [_Crystal_15_out_trace] component Crystal_15_out=Monitor_nD() TRACE [/Applications/McStas-3.5.24.app/Contents/Resources/miniconda3/share/mcstas/resources/monitors/Monitor_nD.comp:403] 0.00 % ( 0.0/5000000000.0)
# Date: Thu May 1 10:24:24 2025
# Started: Thu May 1 09:18:16 2025
# Last I/O Error: No such file or directory
INFO: call to ./BMSPEC_parallelBeam_3.35_2.0_xtal15.out failed with Command './BMSPEC_parallelBeam_3.35_2.0_xtal15.out --trace=0 --ncount=5000000000.0 --dir=/Users/cwl/boxColl_parallelBeams_dE_xtal_15_HiQ/BMSPEC_parallelBeam_3.35_2.0_xtal15_20250501_091816 --format=McCode --bufsiz=10000000 E_0=3.35 delta_E=2 sample_pos=65 sample_size=0.005 xtal_target_wdth=0.08 xtal_target_hght=0.06 mos=60 collDiv=5 twoThetaTotal=112.797 signalConeAngle=40 zMin=1.5 zMax=2.3 crystalLength=0.07 crystLenScale=1 accTheta=0.001 detOffsetX=2.2 detOffsetZ=2.229 energyLoss=0 excWidth=0' died with <Signals.SIGQUIT: 3>.
Traceback (most recent call last):
File "/Applications/McStas-3.5.24.app/Contents/Resources/miniconda3/share/mcstas/tools/Python/mcrun/mcrun.py", line 612, in <module>
main()
File "/Applications/McStas-3.5.24.app/Contents/Resources/miniconda3/share/mcstas/tools/Python/mcrun/mcrun.py", line 584, in main
mcstas.run() # in mccode.py
^^^^^^^^^^^^
File "/Applications/McStas-3.5.24.app/Contents/Resources/miniconda3/share/mcstas/tools/Python/mcrun/mccode.py", line 341, in run
return self.runMPI(args, pipe, override_mpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/McStas-3.5.24.app/Contents/Resources/miniconda3/share/mcstas/tools/Python/mcrun/mccode.py", line 395, in runMPI
return Process(binpath).run(args, pipe=pipe)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/McStas-3.5.24.app/Contents/Resources/miniconda3/share/mcstas/tools/Python/mcrun/mccode.py", line 77, in run
raise err
File "/Applications/McStas-3.5.24.app/Contents/Resources/miniconda3/share/mcstas/tools/Python/mcrun/mccode.py", line 73, in run
proc = run(command, shell=True, check=True, text=True, capture_output=pipe)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/McStas-3.5.24.app/Contents/Resources/miniconda3/lib/python3.12/subprocess.py", line 573, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command './BMSPEC_parallelBeam_3.35_2.0_xtal15.out --trace=0 --ncount=5000000000.0 --dir=/Users/cwl/boxColl_parallelBeams_dE_xtal_15_HiQ/BMSPEC_parallelBeam_3.35_2.0_xtal15_20250501_091816 --format=McCode --bufsiz=10000000 E_0=3.35 delta_E=2 sample_pos=65 sample_size=0.005 xtal_target_wdth=0.08 xtal_target_hght=0.06 mos=60 collDiv=5 twoThetaTotal=112.797 signalConeAngle=40 zMin=1.5 zMax=2.3 crystalLength=0.07 crystLenScale=1 accTheta=0.001 detOffsetX=2.2 detOffsetZ=2.229 energyLoss=0 excWidth=0' died with <Signals.SIGQUIT: 3>.


It looks like it running just fine til the end but then throws a ‘died with <Signals.SIGQUIT: 3’  …

Any suggestion what I could/should try?

If a code snippet would help I can try to provide it but the error message suggests to me it is something different…


Thanks folks,

Uli

_______________________________________________
mcstas-users mailing list
mcstas-users at mcstas.org<mailto:mcstas-users at mcstas.org>
https://mailman2.mcstas.org/mailman/listinfo/mcstas-users


Peter Kjær Willendrup
Forskningsingeniør, Specialkonsulent

DTU Physics

[image001.gif]


Technical University of Denmark


[image002.gif]


Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby

Main office at
ESS DMSC
Building 305
DK-2800 Kongens Lyngby

Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20250501/c66c8b5e/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20250501/c66c8b5e/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20250501/c66c8b5e/attachment-0003.gif>


More information about the mcstas-users mailing list