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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin598
RA = 122.453, Dec = 5.1313
tmin = 394329601, tmax = 394588801
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='251623', job_status='RUN', time_executed='2021-08-29 08:59:30.383729', time_epoch_executed='1630252770.38' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251623

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251623/ft1_4FGL_J0809.8+0507_daily_bin598.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251623/ft2_4FGL_J0809.8+0507_daily_bin598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251623/ft1_4FGL_J0809.8+0507_daily_bin598.fits outfile=/scratch/kocevski/251623/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin598.fits ra=122.453 dec=5.1313 rad=12.0 tmin=394329601.0 tmax=394588801.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 8.36
user 7.28
sys 1.03

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/251623/ft2_4FGL_J0809.8+0507_daily_bin598.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251623/ft2_4FGL_J0809.8+0507_daily_bin598.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/251623/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin598.fits evtable="EVENTS" outfile="/scratch/kocevski/251623/ft1_filtered_4FGL_J0809.8+0507_daily_bin598.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.24
user 0.32
sys 0.90

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251623/ft1_filtered_4FGL_J0809.8+0507_daily_bin598.fits" evtable="EVENTS" scfile=/scratch/kocevski/251623/ft2_4FGL_J0809.8+0507_daily_bin598.fits sctable="SC_DATA" outfile=/scratch/kocevski/251623/ltcube_394329601_394588801_4FGL_J0809.8+0507_daily_bin598.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/251623/ft2_4FGL_J0809.8+0507_daily_bin598.fits
.....................!
real 12.09
user 10.89
sys 1.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251623/ft1_filtered_4FGL_J0809.8+0507_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/251623/ft2_4FGL_J0809.8+0507_daily_bin598.fits sctable="SC_DATA" expcube=/scratch/kocevski/251623/ltcube_394329601_394588801_4FGL_J0809.8+0507_daily_bin598.fits outfile=/scratch/kocevski/251623/expmap_394329601_394588801_4FGL_J0809.8+0507_daily_bin598.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/251623/ltcube_394329601_394588801_4FGL_J0809.8+0507_daily_bin598.fits
.....................!
real 191.80
user 186.13
sys 5.28

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0809.8+0507 @ 122.453 5.1313

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/251623/ft1_filtered_4FGL_J0809.8+0507_daily_bin598.fits scfile=/scratch/kocevski/251623/ft2_4FGL_J0809.8+0507_daily_bin598.fits outfile=/scratch/kocevski/251623/cmap_394329601_394588801_4FGL_J0809.8+0507_daily_bin598.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=122.453 yref=5.1313 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.31
user 0.40
sys 0.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251623/ft1_filtered_4FGL_J0809.8+0507_daily_bin598.fits scfile=/scratch/kocevski/251623/ft2_4FGL_J0809.8+0507_daily_bin598.fits outfile=/scratch/kocevski/251623/cmap_HighResolution_394329601_394588801_4FGL_J0809.8+0507_daily_bin598.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=122.453 yref=5.1313 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.29
user 0.39
sys 0.88

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/251623/ft1_filtered_4FGL_J0809.8+0507_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/251623/ft2_4FGL_J0809.8+0507_daily_bin598.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/251623/Model_4FGL_J0809.8+0507_daily_bin598.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/251623/ft1_filtered_4FGL_J0809.8+0507_daily_bin598.fits.....................!
real 77.19
user 74.66
sys 2.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/251623/ft1_filtered_4FGL_J0809.8+0507_daily_bin598.fits', '/scratch/kocevski/251623/ft2_4FGL_J0809.8+0507_daily_bin598.fits', expMap='/scratch/kocevski/251623/expmap_394329601_394588801_4FGL_J0809.8+0507_daily_bin598.fits', expCube='/scratch/kocevski/251623/ltcube_394329601_394588801_4FGL_J0809.8+0507_daily_bin598.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/251623/Model_4FGL_J0809.8+0507_daily_bin598.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.8+0507'

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  4.437e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/251623/ft1_filtered_4FGL_J0809.8+0507_daily_bin598.fits
Spacecraft file(s): /scratch/kocevski/251623/ft2_4FGL_J0809.8+0507_daily_bin598.fits
Exposure map: /scratch/kocevski/251623/expmap_394329601_394588801_4FGL_J0809.8+0507_daily_bin598.fits
Exposure cube: /scratch/kocevski/251623/ltcube_394329601_394588801_4FGL_J0809.8+0507_daily_bin598.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/251623/Model_4FGL_J0809.8+0507_daily_bin598.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) = 6329.84761347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.335       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11103E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.3205       1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.573       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10374E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.326       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    55.382       1.0000         .10000E-03   10000.    
    11 'norm      '    7.4204       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2898       1.0000         .10000E-03   10000.    
    13 'norm      '    .44304E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.6193       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.5441       1.0000         .10000E-03   10000.    
    18 'norm      '    .10327E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11438E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0106       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94655       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6329.830     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2536 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.354        46.825        .13177E-04   -.14237E-03
   2  Prefactor     .10000E-03    45.094        .74348E-05** at limit **
   3  norm          6.3215        2.6697       -.13938E-06   -.47498E-03
   4  Prefactor     40.570        25.545        .12341E-06   -.83847E-05
   5  Prefactor     .10000E-03    1.4181       -.22387E-07** at limit **
   6  norm          .10049E-03    17.260        .17764E-05** at limit **
   7  Prefactor     19.342        16.167       -.36751E-06   -.40984E-03
   8  Prefactor     .10000E-03    58.096       -.23628E-04** at limit **
   9  Prefactor     .10000E-03    2.8796        .58596E-07** at limit **
  10  Prefactor     55.322        36.923       -.18304E-04   -.17851E-03
  11  norm          7.4220        9.6013       -.32665E-05    .41873E-04
  12  norm          1.2902        2.3766       -.33549E-06   -.80405E-03
  13  norm          .10537E-03    19.878        .72165E-05** at limit **
  14  norm          3.6186        3.2705        .54422E-06   -.21713E-03
  15  Prefactor     .10000E-03    23.391        .91634E-06** at limit **
  16  Prefactor     .10000E-03    22.623       -.10754E-05** at limit **
  17  norm          4.5435        1.4207       -.25371E-07   -.67693E-03
  18  norm          .10000E-03    7.2581       -.60727E-07** at limit **
  19  Prefactor     .10001E-03    71.739        .17952E-04** at limit **
  20  Normalizat    1.0109        .20474        .37229E-05   -.65165E-03
  21  Prefactor     .94629        .13513       -.83009E-06   -.42159E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.3545
  Prefactor  = 0.000100001
  norm       = 6.32146
  Prefactor  = 40.5698
  Prefactor  = 0.0001
  norm       = 0.000100495
  Prefactor  = 19.3418
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 55.3224
  norm       = 7.42196
  norm       = 1.29022
  norm       = 0.000105373
  norm       = 3.61863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.54351
  norm       = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 1.01088
  Prefactor  = 0.946286
 **********
 **   18 **HESSE 
 **********

 FCN=   6329.830     FROM HESSE     STATUS=OK           321 CALLS     2857 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.354        46.682        .66486E-04   -1.4501    
   2  Prefactor     .10000E-03    45.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.3215        2.6697        .79240E-04   -1.5205    
   4  Prefactor     40.570        25.562        .62930E-04   -1.4433    
   5  Prefactor     .10000E-03    1.4303        .92461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10049E-03    140.54        .57808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.342        14.750        .91108E-04   -1.4828    
   8  Prefactor     .10000E-03    57.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8834        .13182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     55.322        38.509        .53902E-04   -1.4219    
  11  norm          7.4220        9.5772        .14723E-03   -1.5163    
  12  norm          1.2902        2.3500        .16036E-03   -1.5481    
  13  norm          .10537E-03    21.918        .10178       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6186        3.2708        .13193E-03   -1.5327    
  15  Prefactor     .10000E-03    23.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.5435        1.4233        .50551E-04   -1.5282    
  18  norm          .10000E-03    7.4666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    71.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0109        .23534        .30467E-03   -.92667    
  21  Prefactor     .94629        .15624        .21139E-03   -.94542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80877e-09
Minuit parameter uncertainties:
  1  46.7294
  2  0.000434083
  3  2.66977
  4  25.5684
  5  3.78251e-06
  6  0.016717
  7  14.7532
  8  0.00103609
  9  8.15898e-06
  10  38.5263
  11  9.5792
  12  2.35021
  13  0.0217108
  14  3.27101
  15  4.74218e-05
  16  1.54625e-05
  17  1.42334
  18  1.89822e-05
  19  0.00123178
  20  0.235586
  21  0.156317
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.054e-04  2.171e-02  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.463e-01  1.563e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.011e+00  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 8.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251623/likelihoodResults_394329601_394588801_4FGL_J0809.8+0507_daily_bin598.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): 102
logL (Free Index) = 6329.82984957
delta logL = -1.67021535162e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6329.73489995
delta logL = 0.0949329118102

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6329.735     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      330 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2947        38.627        .67336E-02    .81077E-03
   2  alpha         5.0000        2.5479        .46318    ** at limit **
   3  Normalizat    .97902        .20691        .69819E-01    .23876E-04
   4  Prefactor     .95819        .13373        .45741E-01    .10292E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.29471
  alpha      = 5
  Normalizat = 0.979024
  Prefactor  = 0.958194
 **********
 **   18 **HESSE 
 **********

 FCN=   6329.735     FROM HESSE     STATUS=OK            35 CALLS      365 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2947        6.4287        .26526E-03   -1.5405    
   2  alpha         5.0000        4.2981        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .97902        .23861        .30888E-03   -.93736    
   4  Prefactor     .95819        .15584        .21018E-03   -.94136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.63685e-11
Minuit parameter uncertainties:
  1  6.43062
  2  0.00098647
  3  0.238873
  4  0.155914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251623': 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) = 6329.7348727
delta logL = 0.0949601659258

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.295e+00  6.431e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  5.000e+00  9.865e-04  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.582e-01  1.559e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.790e-01  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.453 5.131

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/251623/cmap_HighResolution_394329601_394588801_4FGL_J0809.8+0507_daily_bin598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.28e-05', job_status='DONE', photon_flux_upper_limit='8.67e-08', time_completed='2021-08-29 09:10:40.293752', job_id='251623', GAL2='0.96', fit_tolerance='1e-08', EG2='0.98', EG='1.01', time_epoch_completed='1630253440.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='9.50e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='598' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:10:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 251623: <4FGL_J0809.8+0507_daily_bin598> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin598> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:55:37 2021
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:55:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 08:55:39 2021
Terminated at Sun Aug 29 09:10:40 2021
Results reported at Sun Aug 29 09:10:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin598 122.453 5.1313 394329601 394588801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.8+0507 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   676.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             220.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

