/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 24 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 = 7389
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0409.8-0359_daily_bin509
RA = 62.4629, Dec = -3.9865
tmin = 371260801, tmax = 371520001
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='279851', job_status='RUN', time_executed='2021-08-20 06:16:46.501187', time_epoch_executed='1629465406.5' WHERE source_name='4FGL J0409.8-0359' and cadence='daily' and bin_id='509'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279851

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279851/ft1_4FGL_J0409.8-0359_daily_bin509.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279851/ft2_4FGL_J0409.8-0359_daily_bin509.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279851/ft1_4FGL_J0409.8-0359_daily_bin509.fits outfile=/scratch/kocevski/279851/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin509.fits ra=62.4629 dec=-3.9865 rad=12.0 tmin=371260801.0 tmax=371520001.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.01
user 5.06
sys 0.92

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279851/ft2_4FGL_J0409.8-0359_daily_bin509.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/279851/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin509.fits evtable="EVENTS" outfile="/scratch/kocevski/279851/ft1_filtered_4FGL_J0409.8-0359_daily_bin509.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.20
user 0.32
sys 0.85

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279851/ft1_filtered_4FGL_J0409.8-0359_daily_bin509.fits" evtable="EVENTS" scfile=/scratch/kocevski/279851/ft2_4FGL_J0409.8-0359_daily_bin509.fits sctable="SC_DATA" outfile=/scratch/kocevski/279851/ltcube_371260801_371520001_4FGL_J0409.8-0359_daily_bin509.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/279851/ft2_4FGL_J0409.8-0359_daily_bin509.fits
.....................!
real 12.53
user 11.39
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279851/ft1_filtered_4FGL_J0409.8-0359_daily_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/279851/ft2_4FGL_J0409.8-0359_daily_bin509.fits sctable="SC_DATA" expcube=/scratch/kocevski/279851/ltcube_371260801_371520001_4FGL_J0409.8-0359_daily_bin509.fits outfile=/scratch/kocevski/279851/expmap_371260801_371520001_4FGL_J0409.8-0359_daily_bin509.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/279851/ltcube_371260801_371520001_4FGL_J0409.8-0359_daily_bin509.fits
.....................!
real 191.61
user 185.43
sys 5.82

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/279851/ft1_filtered_4FGL_J0409.8-0359_daily_bin509.fits scfile=/scratch/kocevski/279851/ft2_4FGL_J0409.8-0359_daily_bin509.fits outfile=/scratch/kocevski/279851/cmap_371260801_371520001_4FGL_J0409.8-0359_daily_bin509.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.23
user 0.36
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279851/ft1_filtered_4FGL_J0409.8-0359_daily_bin509.fits scfile=/scratch/kocevski/279851/ft2_4FGL_J0409.8-0359_daily_bin509.fits outfile=/scratch/kocevski/279851/cmap_HighResolution_371260801_371520001_4FGL_J0409.8-0359_daily_bin509.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.23
user 0.38
sys 0.84

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/279851/ft1_filtered_4FGL_J0409.8-0359_daily_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/279851/ft2_4FGL_J0409.8-0359_daily_bin509.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/279851/Model_4FGL_J0409.8-0359_daily_bin509.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/279851/ft1_filtered_4FGL_J0409.8-0359_daily_bin509.fits.....................!
real 96.15
user 93.97
sys 1.99

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.696       1.0000         .10000E-03   10000.    
     2 'norm      '    .62945       1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.857       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .86078       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.469       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.7172       1.0000         .10000E-03   10000.    
     9 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .16637       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.484       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12702E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0166       1.0000         .10000E-03   10000.    
    16 'norm      '    .25741E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    50.256       1.0000         .10000E-03   10000.    
    18 'norm      '    3.9547       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1324       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91987       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=   6625.555     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2167 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.689        27.469        .12935E-06    .97892E-05
   2  norm          .62975        1.1508        .31370E-06    .32795E-03
   3  Prefactor     48.844        61.173       -.29155E-05   -.34447E-04
   4  Prefactor     .86098        4.0453        .14287E-05   -.13573E-03
   5  Prefactor     12.465        21.408        .14417E-05    .30538E-04
   6  norm          .10000E-03    6.3540        .22220E-07** at limit **
   7  Prefactor     .10000E-03    11.824        .89298E-07** at limit **
   8  norm          2.7168        4.6098       -.25326E-06   -.12225E-03
   9  norm          .10000E-03    18.554        .82200E-07** at limit **
  10  norm          .10000E-03    11.210       -.16174E-06** at limit **
  11  norm          .16622        .89170        .75628E-06   -.95191E-04
  12  Prefactor     .10000E-03    .83889       -.23386E-06** at limit **
  13  Prefactor     28.512        24.640       -.91784E-06   -.13093E-03
  14  Prefactor     .10000E-03    162.64       -.35703E-05** at limit **
  15  Prefactor     1.0153        5.3792       -.60616E-06    .14477E-03
  16  norm          .10001E-03    1.5184       -.17125E-06** at limit **
  17  Prefactor     50.232        32.520       -.11633E-05   -.49703E-04
  18  norm          3.9548        2.3020        .44177E-07    .77931E-04
  19  Normalizat    1.1324        .21992       -.20255E-06    .39672E-04
  20  Prefactor     .91993        .10164        .35430E-06    .19120E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.6892
  norm       = 0.629754
  Prefactor  = 48.8443
  Prefactor  = 0.860976
  Prefactor  = 12.4654
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.71675
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.166224
  Prefactor  = 0.0001
  Prefactor  = 28.5119
  Prefactor  = 0.0001
  Prefactor  = 1.01533
  norm       = 0.000100009
  Prefactor  = 50.2322
  norm       = 3.95483
  Normalizat = 1.13237
  Prefactor  = 0.919929
 **********
 **   18 **HESSE 
 **********

 FCN=   6625.555     FROM HESSE     STATUS=OK           301 CALLS     2468 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.689        27.552        .64432E-04   -1.4463    
   2  norm          .62975        .99694        .11595E-02   -1.5549    
   3  Prefactor     48.844        61.334        .57370E-04   -1.4309    
   4  Prefactor     .86098        4.0491        .32400E-03   -1.5522    
   5  Prefactor     12.465        21.486        .11344E-03   -1.5002    
   6  norm          .10000E-03    6.3568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.7168        4.4967        .20793E-03   -1.5378    
   9  norm          .10000E-03    19.074        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    11.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .16622        .88845        .14089E-03   -1.5626    
  12  Prefactor     .10000E-03    1.7918        .14151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.512        24.823        .75066E-04   -1.4640    
  14  Prefactor     .10000E-03    169.84        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0153        19.385        .33913E-02   -1.5506    
  16  norm          .10001E-03    7.4655        .18056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     50.232        32.593        .56570E-04   -1.4289    
  18  norm          3.9548        2.2986        .90036E-04   -1.5310    
  19  Normalizat    1.1324        .24706        .33033E-03   -.88719    
  20  Prefactor     .91993        .11540        .17490E-03   -.95448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71459e-09
Minuit parameter uncertainties:
  1  27.5609
  2  0.996965
  3  61.4136
  4  3.73448
  5  21.4989
  6  3.52446e-07
  7  1.18669e-06
  8  4.49729
  9  3.82116e-06
  10  5.14556e-06
  11  0.768374
  12  2.82628e-06
  13  24.8315
  14  0.000439796
  15  8.87584
  16  0.000526473
  17  32.6048
  18  2.29864
  19  0.247308
  20  0.115429
Done.

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

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  3.524e-07  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.199e-01  1.154e-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.132e+00  2.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/279851/likelihoodResults_371260801_371520001_4FGL_J0409.8-0359_daily_bin509.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) = 6625.55531622
delta logL = -0.000744158198358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6625.55457206
delta logL = 1.72440195456e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6749       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1324       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91993       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=   6625.555     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      242 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1177.2        .18142E-02** at limit **
   2  alpha         1.5938        4.0972        .17768       -.19835E-08
   3  Normalizat    1.1324        .12010        .33033E-03    .61604E-05
   4  Prefactor     .91993        .58345E-01    .17490E-03    .12350E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.59383
  Normalizat = 1.13237
  Prefactor  = 0.919929
 **********
 **   18 **HESSE 
 **********

 FCN=   6625.555     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.3832        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5938        3.6651        .71071E-02   -.37091    
   3  Normalizat    1.1324        .22982        .13213E-04   -.88719    
   4  Prefactor     .91993        .11169        .69962E-05   -.95448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94218e-12
Minuit parameter uncertainties:
  1  2.10532e-05
  2  334.439
  3  0.23002
  4  0.11172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279851': 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) = 6625.55457203
delta logL = 3.14103090204e-08

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  2.105e-05  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  1.594e+00  3.344e+02  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.199e-01  1.117e-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.132e+00  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 62.463 -3.986

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/279851/cmap_HighResolution_371260801_371520001_4FGL_J0409.8-0359_daily_bin509.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-05', job_status='DONE', photon_flux_upper_limit='2.48e-08', time_completed='2021-08-20 06:27:06.654003', job_id='279851', GAL2='0.92', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1629466026.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.68' WHERE bin_id='509' AND source_name='4FGL J0409.8-0359' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:27:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 279851: <4FGL_J0409.8-0359_daily_bin509> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0409.8-0359_daily_bin509 62.4629 -3.9865 371260801 371520001 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 :                                   627.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             310.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            683 sec.

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

