/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 21 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 = 7407
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0409.8-0359_daily_bin461
RA = 62.4629, Dec = -3.9865
tmin = 358819201, tmax = 359078401
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='279772', job_status='RUN', time_executed='2021-08-20 06:16:53.485444', time_epoch_executed='1629465413.49' WHERE source_name='4FGL J0409.8-0359' and cadence='daily' and bin_id='461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279772

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279772/ft1_4FGL_J0409.8-0359_daily_bin461.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279772/ft2_4FGL_J0409.8-0359_daily_bin461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279772/ft1_4FGL_J0409.8-0359_daily_bin461.fits outfile=/scratch/kocevski/279772/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin461.fits ra=62.4629 dec=-3.9865 rad=12.0 tmin=358819201.0 tmax=359078401.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 6.89
user 5.06
sys 1.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279772/ft2_4FGL_J0409.8-0359_daily_bin461.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/279772/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin461.fits evtable="EVENTS" outfile="/scratch/kocevski/279772/ft1_filtered_4FGL_J0409.8-0359_daily_bin461.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 1.98
user 0.33
sys 1.63

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279772/ft1_filtered_4FGL_J0409.8-0359_daily_bin461.fits" evtable="EVENTS" scfile=/scratch/kocevski/279772/ft2_4FGL_J0409.8-0359_daily_bin461.fits sctable="SC_DATA" outfile=/scratch/kocevski/279772/ltcube_358819201_359078401_4FGL_J0409.8-0359_daily_bin461.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/279772/ft2_4FGL_J0409.8-0359_daily_bin461.fits
.....................!
real 13.36
user 11.32
sys 1.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279772/ft1_filtered_4FGL_J0409.8-0359_daily_bin461.fits evtable="EVENTS" scfile=/scratch/kocevski/279772/ft2_4FGL_J0409.8-0359_daily_bin461.fits sctable="SC_DATA" expcube=/scratch/kocevski/279772/ltcube_358819201_359078401_4FGL_J0409.8-0359_daily_bin461.fits outfile=/scratch/kocevski/279772/expmap_358819201_359078401_4FGL_J0409.8-0359_daily_bin461.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/279772/ltcube_358819201_359078401_4FGL_J0409.8-0359_daily_bin461.fits
.....................!
real 192.62
user 184.83
sys 7.30

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/279772/ft1_filtered_4FGL_J0409.8-0359_daily_bin461.fits scfile=/scratch/kocevski/279772/ft2_4FGL_J0409.8-0359_daily_bin461.fits outfile=/scratch/kocevski/279772/cmap_358819201_359078401_4FGL_J0409.8-0359_daily_bin461.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 1.98
user 0.37
sys 1.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279772/ft1_filtered_4FGL_J0409.8-0359_daily_bin461.fits scfile=/scratch/kocevski/279772/ft2_4FGL_J0409.8-0359_daily_bin461.fits outfile=/scratch/kocevski/279772/cmap_HighResolution_358819201_359078401_4FGL_J0409.8-0359_daily_bin461.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 1.99
user 0.38
sys 1.61

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/279772/ft1_filtered_4FGL_J0409.8-0359_daily_bin461.fits evtable="EVENTS" scfile=/scratch/kocevski/279772/ft2_4FGL_J0409.8-0359_daily_bin461.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/279772/Model_4FGL_J0409.8-0359_daily_bin461.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/279772/ft1_filtered_4FGL_J0409.8-0359_daily_bin461.fits.....................!
real 106.26
user 102.86
sys 3.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/279772/ft1_filtered_4FGL_J0409.8-0359_daily_bin461.fits', '/scratch/kocevski/279772/ft2_4FGL_J0409.8-0359_daily_bin461.fits', expMap='/scratch/kocevski/279772/expmap_358819201_359078401_4FGL_J0409.8-0359_daily_bin461.fits', expCube='/scratch/kocevski/279772/ltcube_358819201_359078401_4FGL_J0409.8-0359_daily_bin461.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/279772/Model_4FGL_J0409.8-0359_daily_bin461.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/279772/ft1_filtered_4FGL_J0409.8-0359_daily_bin461.fits
Spacecraft file(s): /scratch/kocevski/279772/ft2_4FGL_J0409.8-0359_daily_bin461.fits
Exposure map: /scratch/kocevski/279772/expmap_358819201_359078401_4FGL_J0409.8-0359_daily_bin461.fits
Exposure cube: /scratch/kocevski/279772/ltcube_358819201_359078401_4FGL_J0409.8-0359_daily_bin461.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/279772/Model_4FGL_J0409.8-0359_daily_bin461.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) = 8354.95097569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7374       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3061       1.0000         .10000E-03   10000.    
     6 'norm      '    36.166       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.163       1.0000         .10000E-03   10000.    
     8 'norm      '    7.3334       1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    32.836       1.0000         .10000E-03   10000.    
    11 'norm      '    5.6273       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .34916E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4618       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5119       1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.426       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6452       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .61038       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1061       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8354.926     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2084 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.548       -.24607E-05** at limit **
   2  norm          1.7373        1.5040        .96375E-07   -.11358E-03
   3  Prefactor     .10000E-03    14.386        .35252E-06** at limit **
   4  Prefactor     .10000E-03    1.6989        .55995E-07** at limit **
   5  Prefactor     3.3041        10.793        .95757E-05   -.37768E-03
   6  norm          36.166        20.500        .14673E-07    .24063E-05
   7  Prefactor     14.150        19.045       -.60486E-06   -.14749E-03
   8  norm          7.3329        4.3496        .33383E-07   -.27519E-04
   9  norm          .10000E-03    2.4778        .35402E-07** at limit **
  10  norm          32.801        23.235       -.33048E-05   -.79447E-03
  11  norm          5.6276        1.6202       -.33752E-07   -.85374E-04
  12  Prefactor     .10000E-03    .93060       -.83127E-08** at limit **
  13  Prefactor     .10000E-03    23.735        .18562E-05** at limit **
  14  Prefactor     5.4791        96.792        .74832E-05    .82583E-04
  15  Prefactor     .10000E-03    5.4941        .11868E-06** at limit **
  16  norm          2.5117        2.8583        .36516E-06   -.23160E-03
  17  Prefactor     36.431        19.404        .29520E-06    .93173E-04
  18  norm          1.6453        1.7147        .11058E-06   -.13108E-03
  19  Normalizat    .61019        .17110       -.11221E-05   -.55017E-05
  20  Prefactor     1.1062        .92895E-01    .19039E-06   -.10375E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 1.73728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.30411
  norm       = 36.1657
  Prefactor  = 14.1499
  norm       = 7.33292
  norm       = 0.0001
  norm       = 32.8011
  norm       = 5.62764
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 5.47906
  Prefactor  = 0.0001
  norm       = 2.5117
  Prefactor  = 36.4305
  norm       = 1.64526
  Normalizat = 0.610186
  Prefactor  = 1.10622
 **********
 **   18 **HESSE 
 **********

 FCN=   8354.926     FROM HESSE     STATUS=OK           291 CALLS     2375 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7373        1.4887        .98414E-04   -1.5444    
   3  Prefactor     .10000E-03    14.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7047        .11633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3041        11.064        .11133E-02   -1.5344    
   6  norm          36.166        20.502        .66641E-04   -1.4504    
   7  Prefactor     14.150        19.042        .10643E-03   -1.4955    
   8  norm          7.3329        4.3502        .13952E-03   -1.5166    
   9  norm          .10000E-03    2.4909        .14049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          32.801        24.048        .69928E-04   -1.4562    
  11  norm          5.6276        1.6088        .53248E-04   -1.5233    
  12  Prefactor     .10000E-03    5.1428        .14696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4791        83.851        .17193E-03   -1.5240    
  15  Prefactor     .10000E-03    5.5841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5117        2.8475        .15638E-03   -1.5391    
  17  Prefactor     36.431        19.407        .66403E-04   -1.4500    
  18  norm          1.6453        1.6995        .11635E-03   -1.5451    
  19  Normalizat    .61019        .18264        .39533E-03   -1.0755    
  20  Prefactor     1.1062        .10087        .16367E-03   -.89268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23386e-09
Minuit parameter uncertainties:
  1  0.000396447
  2  1.48877
  3  5.04147e-05
  4  2.95275e-06
  5  11.0709
  6  20.506
  7  19.0504
  8  4.35035
  9  8.47262e-07
  10  24.0552
  11  1.60879
  12  8.43465e-06
  13  0.000529977
  14  42.94
  15  2.50611e-06
  16  2.8477
  17  19.4103
  18  1.69957
  19  0.182824
  20  0.100891
Done.

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

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  3.617e+01  2.051e+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:  1.106e+00  1.009e-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:  6.102e-01  1.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.35
Ra Dec: 62.463 -3.986
Photon Index (Fixed Index): 1.68 +/- 0.00
Photon Flux (Fixed Index): 2.60e-08 +/- 1.47e-08
Energy Flux (Fixed Index): 3.55e-05 +/- 2.01e-05

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) = 8354.29069868
delta logL = 0.634853067966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8354.28629422
delta logL = 0.639257528674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.773       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5148       1.0000          .0000       5.0000    
     3 'Normalizat'    .59023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1057       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8354.286     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      303 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.763        22.745        .77423E-04    .15518E-03
   2  alpha         2.5136        .81379        .13405E-01    .32048E-03
   3  Normalizat    .59010        .18110        .40093E-03    .13180E-03
   4  Prefactor     1.1061        .97774E-01    .16349E-03   -.41722E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 26.763
  alpha      = 2.5136
  Normalizat = 0.590101
  Prefactor  = 1.10608
 **********
 **   18 **HESSE 
 **********

 FCN=   8354.286     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.763        20.909        .15485E-04   -1.4673    
   2  alpha         2.5136        .74963        .26811E-02    .54387E-02
   3  Normalizat    .59010        .18049        .16037E-04   -1.0841    
   4  Prefactor     1.1061        .97759E-01    .65396E-05   -.89272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63363e-10
Minuit parameter uncertainties:
  1  20.9148
  2  0.76134
  3  0.180668
  4  0.097775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279772': 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): 0
logL (Free Index) = 8354.28627242
delta logL = 0.639279323646

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  2.676e+01  2.091e+01  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  2.514e+00  7.613e-01  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:  1.106e+00  9.778e-02  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:  5.901e-01  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.61
Ra Dec: 62.463 -3.986
Photon Index (Free Index): 2.51 +/- 0.76
Photon Flux (Free Index): 5.79e-08 +/- 4.71e-08
Energy Flux (Free Index): 2.83e-05 +/- 1.38e-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/279772/cmap_HighResolution_358819201_359078401_4FGL_J0409.8-0359_daily_bin461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.60e-08', energy_flux2='2.83e-05', photon_flux_error='1.47e-08', dlogl='6.39e-01', energy_flux='3.55e-05', photon_flux2='5.79e-08', job_status='DONE', time_completed='2021-08-20 06:27:40.562448', photon_index_error2='0.76', photon_index2='2.51', ts='10.35', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='0.61', time_epoch_completed='1629466060.56', return_code='0', job_id='279772', GAL2='1.11', EG2='0.59', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='4.71e-08', ts2='11.61', photon_index='1.68' WHERE bin_id='461' AND source_name='4FGL J0409.8-0359' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:27:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 279772: <4FGL_J0409.8-0359_daily_bin461> in cluster <slac> Done

Job <4FGL_J0409.8-0359_daily_bin461> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 06:15:40 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 06:15:42 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:15:42 2021
Terminated at Fri Aug 20 06:27:41 2021
Results reported at Fri Aug 20 06:27:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0409.8-0359_daily_bin461 62.4629 -3.9865 358819201 359078401 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 :                                   662.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             335.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            721 sec.

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

