/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 154 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7382
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0409.8-0359_daily_bin24
RA = 62.4629, Dec = -3.9865
tmin = 245548801, tmax = 245808001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='277744', job_status='RUN', time_executed='2021-08-20 06:13:15.778255', time_epoch_executed='1629465195.78' WHERE source_name='4FGL J0409.8-0359' and cadence='daily' and bin_id='24'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277744

Creating custom pfile directory:
/scratch/kocevski/277744/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=245548801.0 && nMetStart<245808001.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=245548801.0 && nMetStart<245808001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277744/ft1_4FGL_J0409.8-0359_daily_bin24.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=245548801.0 && nMetStart<245808001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277744/ft2_4FGL_J0409.8-0359_daily_bin24.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277744/ft1_4FGL_J0409.8-0359_daily_bin24.fits outfile=/scratch/kocevski/277744/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin24.fits ra=62.4629 dec=-3.9865 rad=12.0 tmin=245548801.0 tmax=245808001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.62
user 0.95
sys 0.67

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/277744/ft2_4FGL_J0409.8-0359_daily_bin24.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/277744/ft2_4FGL_J0409.8-0359_daily_bin24.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/277744/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin24.fits evtable="EVENTS" outfile="/scratch/kocevski/277744/ft1_filtered_4FGL_J0409.8-0359_daily_bin24.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.90
user 0.26
sys 0.63

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/277744/ft1_filtered_4FGL_J0409.8-0359_daily_bin24.fits" evtable="EVENTS" scfile=/scratch/kocevski/277744/ft2_4FGL_J0409.8-0359_daily_bin24.fits sctable="SC_DATA" outfile=/scratch/kocevski/277744/ltcube_245548801_245808001_4FGL_J0409.8-0359_daily_bin24.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/277744/ft2_4FGL_J0409.8-0359_daily_bin24.fits
.....................!
real 14.03
user 13.13
sys 0.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277744/ft1_filtered_4FGL_J0409.8-0359_daily_bin24.fits evtable="EVENTS" scfile=/scratch/kocevski/277744/ft2_4FGL_J0409.8-0359_daily_bin24.fits sctable="SC_DATA" expcube=/scratch/kocevski/277744/ltcube_245548801_245808001_4FGL_J0409.8-0359_daily_bin24.fits outfile=/scratch/kocevski/277744/expmap_245548801_245808001_4FGL_J0409.8-0359_daily_bin24.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/277744/ltcube_245548801_245808001_4FGL_J0409.8-0359_daily_bin24.fits
.....................!
real 146.04
user 141.63
sys 4.19

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 143 point sources and 0 extended sources

Setting source of interest to:
4FGL J0409.8-0359 @ 62.4629 -3.9865

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/277744/ft1_filtered_4FGL_J0409.8-0359_daily_bin24.fits scfile=/scratch/kocevski/277744/ft2_4FGL_J0409.8-0359_daily_bin24.fits outfile=/scratch/kocevski/277744/cmap_245548801_245808001_4FGL_J0409.8-0359_daily_bin24.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=62.4629 yref=-3.9865 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.94
user 0.29
sys 0.63

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277744/ft1_filtered_4FGL_J0409.8-0359_daily_bin24.fits scfile=/scratch/kocevski/277744/ft2_4FGL_J0409.8-0359_daily_bin24.fits outfile=/scratch/kocevski/277744/cmap_HighResolution_245548801_245808001_4FGL_J0409.8-0359_daily_bin24.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=62.4629 yref=-3.9865 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.92
user 0.29
sys 0.62

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/277744/ft1_filtered_4FGL_J0409.8-0359_daily_bin24.fits evtable="EVENTS" scfile=/scratch/kocevski/277744/ft2_4FGL_J0409.8-0359_daily_bin24.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/277744/Model_4FGL_J0409.8-0359_daily_bin24.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/277744/ft1_filtered_4FGL_J0409.8-0359_daily_bin24.fits.....................!
real 90.18
user 88.36
sys 1.65

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/277744/ft1_filtered_4FGL_J0409.8-0359_daily_bin24.fits', '/scratch/kocevski/277744/ft2_4FGL_J0409.8-0359_daily_bin24.fits', expMap='/scratch/kocevski/277744/expmap_245548801_245808001_4FGL_J0409.8-0359_daily_bin24.fits', expCube='/scratch/kocevski/277744/ltcube_245548801_245808001_4FGL_J0409.8-0359_daily_bin24.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/277744/Model_4FGL_J0409.8-0359_daily_bin24.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0409.8-0359'

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  2.695e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  1.677e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
239         beta:  2.988e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.671e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/277744/ft1_filtered_4FGL_J0409.8-0359_daily_bin24.fits
Spacecraft file(s): /scratch/kocevski/277744/ft2_4FGL_J0409.8-0359_daily_bin24.fits
Exposure map: /scratch/kocevski/277744/expmap_245548801_245808001_4FGL_J0409.8-0359_daily_bin24.fits
Exposure cube: /scratch/kocevski/277744/ltcube_245548801_245808001_4FGL_J0409.8-0359_daily_bin24.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/277744/Model_4FGL_J0409.8-0359_daily_bin24.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9007.62900491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9007.58815654

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2189       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.210       1.0000         .10000E-03   10000.    
     6 'norm      '    9.3258       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8438       1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.420       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11259E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.536       1.0000         .10000E-03   10000.    
    18 'norm      '    5.8187       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1692       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95649       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9007.588     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     1802 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3951        .90712E-02** at limit **
   2  norm          1.2187        1.1559        .10218E-02    .21640E-03
   3  Prefactor     .10000E-03    67.132        .90712E-02** at limit **
   4  Prefactor     .10000E-03    2.2746        .90712E-02** at limit **
   5  Prefactor     35.214        19.196        .16884E-02   -.35245E-03
   6  norm          9.3259        11.862        .32809E-02   -.88888E-04
   7  Prefactor     .10000E-03    8.9390        .90712E-02** at limit **
   8  norm          .10000E-03    1.8611        .44369E-01** at limit **
   9  norm          .10000E-03    2.8584        .90712E-02** at limit **
  10  norm          .10000E-03    10.349        .90712E-02** at limit **
  11  norm          .10000E-03    .39955        .23001E-01** at limit **
  12  Prefactor     1.8443        1.5707        .76787E-02    .77325E-03
  13  Prefactor     31.412        20.566        .17870E-02    .86236E-03
  14  Prefactor     .10000E-03    11.882        .90712E-02** at limit **
  15  Prefactor     .10000E-03    2.9111        .90792E-01** at limit **
  16  norm          .10000E-03    .61206        .90712E-02** at limit **
  17  Prefactor     21.533        21.273        .21578E-02    .46762E-03
  18  norm          5.8191        2.3010        .41623E-02    .22570E-03
  19  Normalizat    1.1694        .17808        .73420E-01    .20695E-04
  20  Prefactor     .95644        .88379E-01    .45721E-01    .10449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.21869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.2141
  norm       = 9.32585
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.84428
  Prefactor  = 31.4119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.5326
  norm       = 5.81915
  Normalizat = 1.16942
  Prefactor  = 0.95644
 **********
 **   18 **HESSE 
 **********

 FCN=   9007.588     FROM HESSE     STATUS=OK           291 CALLS     2093 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2187        1.1555        .40873E-04   -1.5487    
   3  Prefactor     .10000E-03    67.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.2847        .13976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.214        19.215        .67536E-04   -1.4520    
   6  norm          9.3259        11.846        .13123E-03   -1.5097    
   7  Prefactor     .10000E-03    8.9479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.4409        .25055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.8681        .15668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .67299        .11433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8443        1.5368        .10335E-03   -1.5436    
  13  Prefactor     31.412        20.540        .71482E-04   -1.4586    
  14  Prefactor     .10000E-03    11.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    39.789        .31029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .61412        .72435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.533        21.295        .86310E-04   -1.4780    
  18  norm          5.8191        2.2989        .86839E-04   -1.5225    
  19  Normalizat    1.1694        .19909        .32490E-03   -.87553    
  20  Prefactor     .95644        .10006        .17782E-03   -.94196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64564e-09
Minuit parameter uncertainties:
  1  1.59012e-06
  2  1.15552
  3  0.000300866
  4  5.98396e-07
  5  19.2182
  6  11.8493
  7  2.51972e-06
  8  1.41686e-06
  9  7.46222e-07
  10  6.23664e-06
  11  2.19193e-07
  12  1.53679
  13  20.5448
  14  6.91729e-06
  15  5.03102e-05
  16  1.07557e-07
  17  21.3025
  18  2.29893
  19  0.19922
  20  0.100083
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9007.58801769

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  9.326e+00  1.185e+01  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  1.677e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
239         beta:  2.988e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.671e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  9.564e-01  1.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
461        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
462        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
459   Normalization:  1.169e+00  1.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.33
Ra Dec: 62.463 -3.986
Photon Index (Fixed Index): 1.68 +/- 0.00
Photon Flux (Fixed Index): 6.70e-09 +/- 8.52e-09
Energy Flux (Fixed Index): 9.15e-06 +/- 1.16e-05

TS (Fixed Index): 1.33
Ra Dec: 62.463 -3.986
Photon Flux Upper Limit: 3.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277744/likelihoodResults_245548801_245808001_4FGL_J0409.8-0359_daily_bin24.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9005.95105698
delta logL = 1.63696071187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9005.9208647
delta logL = 1.66715299218

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0307       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8134       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0913       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96873       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9005.921     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      303 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0307        26.453        .58273E-02    .40022E-03
   2  alpha         3.8133        3.9641        .28491        .10514E-03
   3  Normalizat    1.0913        .69378E-01    .75549E-01    .12018E-04
   4  Prefactor     .96875        .31478E-01    .45875E-01   -.21706E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.03072
  alpha      = 3.81329
  Normalizat = 1.09129
  Prefactor  = 0.968746
 **********
 **   18 **HESSE 
 **********

 FCN=   9005.921     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      334 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0307        48.323        .90607E-04   -1.5360    
   2  alpha         3.8133        4.3945        .11021E-01    .55309    
   3  Normalizat    1.0913        .27559        .33436E-03   -.90032    
   4  Prefactor     .96875        .11801        .17661E-03   -.93779    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.06548e-09
Minuit parameter uncertainties:
  1  24.2265
  2  4.22075
  3  0.27595
  4  0.118037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277744': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9005.92086467
delta logL = 1.66715302684

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  3.031e+00  2.423e+01  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  3.813e+00  4.221e+00  0.000e+00  5.000e+00 ( 1.000e+00)
239         beta:  2.988e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.671e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  9.687e-01  1.180e-01  0.000e+00  1.000e+01 ( 1.000e+00)
461        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
462        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
459   Normalization:  1.091e+00  2.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.74
Ra Dec: 62.463 -3.986
Photon Index (Free Index): 3.81 +/- 4.22
Photon Flux (Free Index): 8.87e-08 +/- 1.42e-07
Energy Flux (Free Index): 1.86e-05 +/- 1.10e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/277744/cmap_HighResolution_245548801_245808001_4FGL_J0409.8-0359_daily_bin24.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/277744

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.66e-05', comment='SUCCESS', photon_flux='6.70e-09', energy_flux2='1.86e-05', photon_flux_error='8.52e-09', dlogl='1.67e+00', energy_flux='9.15e-06', photon_flux2='8.87e-08', job_status='DONE', time_completed='2021-08-20 06:21:51.211852', photon_index_error2='4.22', photon_index2='3.81', ts='1.33', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='3.42e-08', energy_flux_error2='1.10e-05', EG='1.17', time_epoch_completed='1629465711.21', return_code='0', job_id='277744', GAL2='0.97', EG2='1.09', return_code2='102', energy_flux_error='1.16e-05', photon_flux_error2='1.42e-07', ts2='4.74', photon_index='1.68' WHERE bin_id='24' AND source_name='4FGL J0409.8-0359' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:21:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 277744: <4FGL_J0409.8-0359_daily_bin24> in cluster <slac> Done

Job <4FGL_J0409.8-0359_daily_bin24> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 06:10:26 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 06:10:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 06:10:27 2021
Terminated at Fri Aug 20 06:21:51 2021
Results reported at Fri Aug 20 06:21:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0409.8-0359_daily_bin24 62.4629 -3.9865 245548801 245808001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0409.8-0359 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   522.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             292.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            685 sec.

The output (if any) is above this job summary.

