Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when runing synapps #16

Open
ngc4594 opened this issue Apr 12, 2018 · 6 comments
Open

Errors when runing synapps #16

ngc4594 opened this issue Apr 12, 2018 · 6 comments

Comments

@ngc4594
Copy link

ngc4594 commented Apr 12, 2018

I am trying to run your SYNAPPS code to fit a couple spectra of a type Ia supernova. When I tried to get the program running with the default synapps.yaml (with specified line_dir, ref_file, and target_file) and input spectrum: demo.dat from /es-master/example/,
mpirun -np 2 synapps synapps.yaml
it does not give me outputs.
syn++ works fine on my Ubuntu 14.04.

I've checked HeloiseS and your post but it doesn't fix the problem.
May I kindly ask you to help you to help me figure it out? With many thanks for your help and consideration!


APPSPACK: Asynchronous Parallel Pattern Search
Written by T. G. Kolda et al., Sandia National Labs
For more information visit
http://software.sandia.gov/appspack

###########################################

APPSPACK Initialization Results

*** Parameter List ***
Add Projected Compass = false [default]
Add Projected Normals = true [default]
Bounds Tolerance = 0.005 [default]
Cache Comparison Tolerance = 0.005 [default]
Cache File Precision = 14 [default]
Cache Input File = "target.cache"
Cache Output File = "target.cache"
Contraction Factor = 0.5 [default]
Debug = 3 [default]
Epsilon Max = 0.02 [default]
Initial Step = 1 [default]
Initial X = [ 1.00e+00 -2.60e+00 -5.00e+00 1.07e+01 3.00e+01 1.14e+01 1.14e+00 1.07e+01 3.00e+01 1.35e+00 2.02e+01 ]
Max Queue Size = 0 [default]
Maximum Exchange Return = 1000 [default]
Minimum Exchange Return = 1 [default]
Minimum Step = 0.02 [default]
Precision = 2
Snap To Boundary = true [default]
Step Tolerance = 0.01 [default]
Sufficient Decrease Factor = 0.01 [default]
Synchronous = false [default]
Use Projected Compass = true [unused]
Use Random Order = true

*** Constraints ***

Bound Constraints
lower = [ 0.00e+00 -1.00e+01 -1.00e+01 5.00e+00 1.50e+01 5.00e+00 -2.00e+00 5.00e+00 1.50e+01 1.00e-01 5.00e+00 ]
upper = [ 1.00e+01 1.00e+01 1.00e+01 1.50e+01 3.00e+01 2.50e+01 2.00e+00 1.50e+01 3.00e+01 5.00e+00 2.50e+01 ]
scaling = [ 1.00e+01 2.00e+01 2.00e+01 1.00e+01 1.00e+00 2.00e+01 1.00e+00 1.00e+00 1.00e+00 1.00e+00 1.00e+00 ]

Inequality Constraints
Inequality matrix = [
0.00e+00 0.00e+00 0.00e+00 -1.00e+00 1.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00
0.00e+00 0.00e+00 0.00e+00 -1.00e+00 0.00e+00 0.00e+00 0.00e+00 1.00e+00 0.00e+00 0.00e+00 0.00e+00
0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 -1.00e+00 1.00e+00 0.00e+00 0.00e+00
0.00e+00 0.00e+00 0.00e+00 0.00e+00 1.00e+00 0.00e+00 0.00e+00 0.00e+00 -1.00e+00 0.00e+00 0.00e+00
]
Inequality lower = [ 0.00e+00 0.00e+00 0.00e+00 0.00e+00 ]
Inequality upper = [ DNE DNE DNE DNE ]

Equality Constraints
Equality matrix = [
0.00e+00 0.00e+00 0.00e+00 -1.00e+00 0.00e+00 0.00e+00 0.00e+00 1.00e+00 0.00e+00 0.00e+00 0.00e+00
0.00e+00 0.00e+00 0.00e+00 0.00e+00 1.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00
0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 1.00e+00 0.00e+00 0.00e+00
]
Equality bound = [ 0.00e+00 3.00e+01 3.00e+01 ]
Problem size summary:
Number of variables: 11
Number of variable bounds: 22 (11 lower, 11 upper)
Number of inequality constraints: 4 (4 lower, 0 upper)
Number of equality constraints: 3

*** Conveyor ***

Using MPI Executor with 1 workers

End APPSPACK Initialization Results

###########################################

New Min: f= DNE x=[ 1.00e+00 -2.60e+00 -5.00e+00 1.07e+01 3.00e+01 1.14e+01 1.14e+00 1.07e+01 3.00e+01 1.35e+00 2.02e+01 ] step=1.00e+00 tag=0 state=Evaluated (Initial Point)
dim. of lineality space: 8
no. of extreme rays in pointy part: 0
terminate called after throwing an instance of 'std::length_error'
what(): vector::_M_fill_insert

===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= PID 13356 RUNNING AT ngc4594-ThinkPad-W520
= EXIT CODE: 134
= CLEANING UP REMAINING PROCESSES
= YOU CAN IGNORE THE BELOW CLEANUP MESSAGES

YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Aborted (signal 6)
This typically refers to a problem with your application.
Please see the FAQ page for debugging suggestions

@rcthomas
Copy link
Owner

@ngc4594 Are you still having this problem? If so please email me your synapps.yaml and I'll see if I can reproduce the problem. Let me know once you've sent it.

@ngc4594
Copy link
Author

ngc4594 commented Apr 16, 2018

@rcthomas Thanks so much!! I just emailed the synapps.yaml and the spectra to your gmail address. May I kindly request to to look into this whenever it's convenient for you?

@rcthomas
Copy link
Owner

You can't do a fit with 0 for the error column, so for your science problem you need to come up with an estimate for the flux uncertainty.

For the demo problem I was able to modify your synapps.yaml to point to my line list and refs.dat file, and change the target_file to fit the demo.dat and it ran without any error. My guess would be an MPI configuration is at fault if you can't get the demo going, and that's hard for me to debug remotely.

@ngc4594
Copy link
Author

ngc4594 commented Apr 24, 2018

@rcthomas I just got time to investigate into the issue and sorry for my delay in response.
Finally, I got the synapps running with the demo.dat and the default settings in synapps.yaml by carefully following your instructions in the README file. I will move on to fit some early type Ia SN spectra with synapps. With many thanks for your help and consideration!

@ngc4594
Copy link
Author

ngc4594 commented Apr 26, 2018

@rcthomas
Sorry for bothering again.. I'm trying to fit an early Ia spectrum with synapps. The input spectrum should be fine (wavelength, flux, fluxerr), and I am starting with four ions. i.e., the regions section looks like:
regions :
apply : [ Yes] # fit this wavelength region or not
weight : [ 1.00] # weight the region by this number
lower : [ 3300.00] # min. wavelength for region definition
upper : [ 9000.00] # max. wavelength for region definition

and the config:
a0 : { fixed: No, start: 1, lower: 0, upper: 10, scale: 10 }
a1 : { fixed: No, start: -2.6, lower: -10, upper: 10, scale: 20 }
a2 : { fixed: No, start: -5.0, lower: -10, upper: 10, scale: 20 }
v_phot : { fixed: No, start: 10.7, lower: 5, upper: 15, scale: 10 }
v_outer : { fixed: Yes, start: 30, lower: 15, upper: 30, scale: 1 }
t_phot : { fixed: No, start: 11.4, lower: 5, upper: 25, scale: 20 }

ions        :  [ 1401, 1100, 1601, 2001]
active      :  [  Yes,  Yes,  Yes,  Yes]
detach      :  [   No,   No,   No,   No] 
                            
log_tau     :               
    fixed   :  [   No,   No,    No,    No]
    start   :  [ 1.14,    0,  2.04,  3.95]
    lower   :  [   -2,   -2, -3.00, -3.00]
    upper   :  [    2,    2,  4.00,  4.00]
    scale   :  [    1,    1,  1.00,  1.00]
v_min       :               
    fixed   :  [   No,   No,    No ,    No]
    start   :  [ 10.7,   10,  11.50, 11.50]
    lower   :  [    5,    5,   5.00,  5.00]
    upper   :  [   15,   15, 15.00,  15.00]
    scale   :  [    1,    1,  1.00,   1.00]
v_max       :               
    fixed   :  [  Yes,  Yes,   Yes,    Yes]
    start   :  [   30,   30, 30.00,  30.00]
    lower   :  [   15,   15, 15.00,  15.00]
    upper   :  [   30,   30, 30.00,  30.00]
    scale   :  [    1,    1,  1.00,   1.00]
aux         :               
    fixed   :  [   No,   No,    No,     No]
    start   :  [ 1.35,  1.6,  0.61,   0.37]
    lower   :  [  0.1,  0.1,  0.10,   0.10]
    upper   :  [    5,    5, 10.00,  10.00]
    scale   :  [    1,    1,  1.00,   1.00]
temp        :               
    fixed   :  [   No,   No,    No,     No]
    start   :  [ 20.2,   10, 11.20,  10.00]
    lower   :  [    5,    5,  5.00,   5.00]
    upper   :  [   25,   25, 25.00,  25.00]
    scale   :  [    1,    1,  1.00,   1.00]

The fitting ran for a couple hours and aborted without generating a fitted spectrum. The fit of the 'demo.dat' did give both a fitted spectrum and a .cache file.
May I kindly ask what is the best way to implement the fitting from the .cache file/generate a spectrum from the output in the .cache file, or make the synapps continue to fit?
the output looks like:

......
New Min: f=3.75e+14 x=[ 2.65e-01 -1.61e+00 2.10e+00 5.00e+00 3.00e+01 5.00e+00 2.00e+00 2.00e+00 4.00e+00 4.00e+00 5.00e+00 5.00e+00 5.00e+00 5.00e+00 3.00e+01 3.00e+01 3.00e+01 3.00e+01 5.00e+00 5.00e+00 1.00e+01 1.00e+01 2.50e+01 2.50e+01 2.50e+01 2.50e+01 ] step=2.00e-02 tag=5638 state=Evaluated Success: 1042

New Min: f=3.74e+14 x=[ 2.65e-01 -1.61e+00 2.30e+00 5.00e+00 3.00e+01 5.00e+00 2.00e+00 2.00e+00 4.00e+00 4.00e+00 5.00e+00 5.00e+00 5.00e+00 5.00e+00 3.00e+01 3.00e+01 3.00e+01 3.00e+01 5.00e+00 5.00e+00 1.00e+01 1.00e+01 2.50e+01 2.50e+01 2.50e+01 2.50e+01 ] step=1.00e-02 tag=5694 state=Evaluated Success: 1066

Final State: Step Converged

Final Min: f=3.74e+14 x=[ 2.65e-01 -1.61e+00 2.30e+00 5.00e+00 3.00e+01 5.00e+00 2.00e+00 2.00e+00 4.00e+00 4.00e+00 5.00e+00 5.00e+00 5.00e+00 5.00e+00 3.00e+01 3.00e+01 3.00e+01 3.00e+01 5.00e+00 5.00e+00 1.00e+01 1.00e+01 2.50e+01 2.50e+01 2.50e+01 2.50e+01 ] step=1.00e-02 tag=5694 state=Evaluated Success: 1066

Number of Evaluations : 1105
Number of Cached Evaluations: 299
Evaluation Breakdown by Message Type...
Success: 1105
Evaluation Breakdown by Processor and Message Type...
Worker #1
Success: 369
Worker #2
Success: 368
Worker #3
Success: 368
Final Directions:
0 : d = [ 1.00e+01 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 ] step = 5.00e-03
1 : d = [ 0.00e+00 2.00e+01 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 ] step = 5.00e-03
2 : d = [ 0.00e+00 0.00e+00 2.00e+01 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 ] step = 5.00e-03
3 : d = [-1.00e+01 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 ] step = 5.00e-03
...(here I omitted the 4-42)
43 : d = [ 8.83e+00 -2.04e+00 -1.18e+00 2.27e-01 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 2.27e-01 2.27e-01 2.27e-01 2.27e-01 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 ] step = 5.00e-03
44 : d = [ 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 ] step = 5.00e-03
45 : d = [ 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 ] step = 5.00e-03
Number of times directions calculated by...
LAPACK: 0
CDDLIB: 21
Cached: 9
Max directions in single iteration : 46
Number of times directions appended: 0


Thank you!
APPSPACK: Asynchronous Parallel Pattern Search
Written by T. G. Kolda et al., Sandia National Labs
For more information visit
http://software.sandia.gov/appspack

terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
[ngc4594-ThinkPad-W520:11580] *** Process received signal ***
[ngc4594-ThinkPad-W520:11580] Signal: Aborted (6)
[ngc4594-ThinkPad-W520:11580] Signal code: (-6)
[ngc4594-ThinkPad-W520:11580] [ 0] [0xb7785410]
[ngc4594-ThinkPad-W520:11580] [ 1] [0xb7785428]
[ngc4594-ThinkPad-W520:11580] [ 2] /lib/i386-linux-gnu/libc.so.6(gsignal+0x47)[0xb6d86687]
[ngc4594-ThinkPad-W520:11580] [ 3] /lib/i386-linux-gnu/libc.so.6(abort+0x143)[0xb6d89ab3]
[ngc4594-ThinkPad-W520:11580] [ 4] /usr/lib/i386-linux-gnu/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x195)[0xb6fe6405]
[ngc4594-ThinkPad-W520:11580] [ 5] /usr/lib/i386-linux-gnu/libstdc++.so.6(+0x4a063)[0xb6fe4063]
[ngc4594-ThinkPad-W520:11580] [ 6] /usr/lib/i386-linux-gnu/libstdc++.so.6(+0x4a09f)[0xb6fe409f]
[ngc4594-ThinkPad-W520:11580] [ 7] /usr/lib/i386-linux-gnu/libstdc++.so.6(+0x4a306)[0xb6fe4306]
[ngc4594-ThinkPad-W520:11580] [ 8] /usr/lib/i386-linux-gnu/libstdc++.so.6(+0xa1f92)[0xb703bf92]
[ngc4594-ThinkPad-W520:11580] [ 9] /usr/local/lib/libappspack.so.0(+0x352bd)[0xb77552bd]
[ngc4594-ThinkPad-W520:11580] [10] synapps[0x80512e5]
[ngc4594-ThinkPad-W520:11580] [11] /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb6d71af3]
[ngc4594-ThinkPad-W520:11580] [12] synapps[0x8069f76]
[ngc4594-ThinkPad-W520:11580] *** End of error message ***

Primary job terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.


mpirun noticed that process rank 0 with PID 0 on node ngc4594-ThinkPad-W520 exited on signal 6 (Aborted).

Thanks again!

@amitkundupabra
Copy link

@rcthomas
Sorry for bothering again.. I'm trying to fit an early Ia spectrum with synapps. The input spectrum should be fine (wavelength, flux, fluxerr), and I am starting with four ions. i.e., the regions section looks like:
regions :
apply : [ Yes] # fit this wavelength region or not
weight : [ 1.00] # weight the region by this number
lower : [ 3300.00] # min. wavelength for region definition
upper : [ 9000.00] # max. wavelength for region definition

and the config:
a0 : { fixed: No, start: 1, lower: 0, upper: 10, scale: 10 }
a1 : { fixed: No, start: -2.6, lower: -10, upper: 10, scale: 20 }
a2 : { fixed: No, start: -5.0, lower: -10, upper: 10, scale: 20 }
v_phot : { fixed: No, start: 10.7, lower: 5, upper: 15, scale: 10 }
v_outer : { fixed: Yes, start: 30, lower: 15, upper: 30, scale: 1 }
t_phot : { fixed: No, start: 11.4, lower: 5, upper: 25, scale: 20 }

ions        :  [ 1401, 1100, 1601, 2001]
active      :  [  Yes,  Yes,  Yes,  Yes]
detach      :  [   No,   No,   No,   No] 
                            
log_tau     :               
    fixed   :  [   No,   No,    No,    No]
    start   :  [ 1.14,    0,  2.04,  3.95]
    lower   :  [   -2,   -2, -3.00, -3.00]
    upper   :  [    2,    2,  4.00,  4.00]
    scale   :  [    1,    1,  1.00,  1.00]
v_min       :               
    fixed   :  [   No,   No,    No ,    No]
    start   :  [ 10.7,   10,  11.50, 11.50]
    lower   :  [    5,    5,   5.00,  5.00]
    upper   :  [   15,   15, 15.00,  15.00]
    scale   :  [    1,    1,  1.00,   1.00]
v_max       :               
    fixed   :  [  Yes,  Yes,   Yes,    Yes]
    start   :  [   30,   30, 30.00,  30.00]
    lower   :  [   15,   15, 15.00,  15.00]
    upper   :  [   30,   30, 30.00,  30.00]
    scale   :  [    1,    1,  1.00,   1.00]
aux         :               
    fixed   :  [   No,   No,    No,     No]
    start   :  [ 1.35,  1.6,  0.61,   0.37]
    lower   :  [  0.1,  0.1,  0.10,   0.10]
    upper   :  [    5,    5, 10.00,  10.00]
    scale   :  [    1,    1,  1.00,   1.00]
temp        :               
    fixed   :  [   No,   No,    No,     No]
    start   :  [ 20.2,   10, 11.20,  10.00]
    lower   :  [    5,    5,  5.00,   5.00]
    upper   :  [   25,   25, 25.00,  25.00]
    scale   :  [    1,    1,  1.00,   1.00]

The fitting ran for a couple hours and aborted without generating a fitted spectrum. The fit of the 'demo.dat' did give both a fitted spectrum and a .cache file. May I kindly ask what is the best way to implement the fitting from the .cache file/generate a spectrum from the output in the .cache file, or make the synapps continue to fit? the output looks like:

......
New Min: f=3.75e+14 x=[ 2.65e-01 -1.61e+00 2.10e+00 5.00e+00 3.00e+01 5.00e+00 2.00e+00 2.00e+00 4.00e+00 4.00e+00 5.00e+00 5.00e+00 5.00e+00 5.00e+00 3.00e+01 3.00e+01 3.00e+01 3.00e+01 5.00e+00 5.00e+00 1.00e+01 1.00e+01 2.50e+01 2.50e+01 2.50e+01 2.50e+01 ] step=2.00e-02 tag=5638 state=Evaluated Success: 1042

New Min: f=3.74e+14 x=[ 2.65e-01 -1.61e+00 2.30e+00 5.00e+00 3.00e+01 5.00e+00 2.00e+00 2.00e+00 4.00e+00 4.00e+00 5.00e+00 5.00e+00 5.00e+00 5.00e+00 3.00e+01 3.00e+01 3.00e+01 3.00e+01 5.00e+00 5.00e+00 1.00e+01 1.00e+01 2.50e+01 2.50e+01 2.50e+01 2.50e+01 ] step=1.00e-02 tag=5694 state=Evaluated Success: 1066

Final State: Step Converged

Final Min: f=3.74e+14 x=[ 2.65e-01 -1.61e+00 2.30e+00 5.00e+00 3.00e+01 5.00e+00 2.00e+00 2.00e+00 4.00e+00 4.00e+00 5.00e+00 5.00e+00 5.00e+00 5.00e+00 3.00e+01 3.00e+01 3.00e+01 3.00e+01 5.00e+00 5.00e+00 1.00e+01 1.00e+01 2.50e+01 2.50e+01 2.50e+01 2.50e+01 ] step=1.00e-02 tag=5694 state=Evaluated Success: 1066

Number of Evaluations : 1105
Number of Cached Evaluations: 299
Evaluation Breakdown by Message Type...
Success: 1105
Evaluation Breakdown by Processor and Message Type...
Worker #1
Success: 369
Worker #2
Success: 368
Worker #3
Success: 368
Final Directions:
0 : d = [ 1.00e+01 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 ] step = 5.00e-03
1 : d = [ 0.00e+00 2.00e+01 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 ] step = 5.00e-03
2 : d = [ 0.00e+00 0.00e+00 2.00e+01 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 ] step = 5.00e-03
3 : d = [-1.00e+01 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 -0.00e+00 ] step = 5.00e-03
...(here I omitted the 4-42)
43 : d = [ 8.83e+00 -2.04e+00 -1.18e+00 2.27e-01 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 2.27e-01 2.27e-01 2.27e-01 2.27e-01 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 ] step = 5.00e-03
44 : d = [ 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 ] step = 5.00e-03
45 : d = [ 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.00e+00 ] step = 5.00e-03
Number of times directions calculated by...
LAPACK: 0
CDDLIB: 21
Cached: 9
Max directions in single iteration : 46
Number of times directions appended: 0

Thank you!

APPSPACK: Asynchronous Parallel Pattern Search
Written by T. G. Kolda et al., Sandia National Labs
For more information visit
http://software.sandia.gov/appspack

terminate called after throwing an instance of 'std::bad_alloc'

what(): std::bad_alloc
[ngc4594-ThinkPad-W520:11580] *** Process received signal ***
[ngc4594-ThinkPad-W520:11580] Signal: Aborted (6)
[ngc4594-ThinkPad-W520:11580] Signal code: (-6)
[ngc4594-ThinkPad-W520:11580] [ 0] [0xb7785410]
[ngc4594-ThinkPad-W520:11580] [ 1] [0xb7785428]
[ngc4594-ThinkPad-W520:11580] [ 2] /lib/i386-linux-gnu/libc.so.6(gsignal+0x47)[0xb6d86687]
[ngc4594-ThinkPad-W520:11580] [ 3] /lib/i386-linux-gnu/libc.so.6(abort+0x143)[0xb6d89ab3]
[ngc4594-ThinkPad-W520:11580] [ 4] /usr/lib/i386-linux-gnu/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x195)[0xb6fe6405]
[ngc4594-ThinkPad-W520:11580] [ 5] /usr/lib/i386-linux-gnu/libstdc++.so.6(+0x4a063)[0xb6fe4063]
[ngc4594-ThinkPad-W520:11580] [ 6] /usr/lib/i386-linux-gnu/libstdc++.so.6(+0x4a09f)[0xb6fe409f]
[ngc4594-ThinkPad-W520:11580] [ 7] /usr/lib/i386-linux-gnu/libstdc++.so.6(+0x4a306)[0xb6fe4306]
[ngc4594-ThinkPad-W520:11580] [ 8] /usr/lib/i386-linux-gnu/libstdc++.so.6(+0xa1f92)[0xb703bf92]
[ngc4594-ThinkPad-W520:11580] [ 9] /usr/local/lib/libappspack.so.0(+0x352bd)[0xb77552bd]
[ngc4594-ThinkPad-W520:11580] [10] synapps[0x80512e5]
[ngc4594-ThinkPad-W520:11580] [11] /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb6d71af3]
[ngc4594-ThinkPad-W520:11580] [12] synapps[0x8069f76]
[ngc4594-ThinkPad-W520:11580] *** End of error message ***

Primary job terminated normally, but 1 process returned

a non-zero exit code. Per user-direction, the job has been aborted.

mpirun noticed that process rank 0 with PID 0 on node ngc4594-ThinkPad-W520 exited on signal 6 (Aborted).

Thanks again!

I am working on a sample of hydrogen stripped enveloped supernovae and try to fit spectra using code SYNAPPS. I installed SYNAPPS on my laptop (CORE i5, 8th gen, 8 GB RAM). Whenever I am running code, I am also facing the same error:-

""" terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc """""""

May you please suggest me how to come over it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants