/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 124 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 = 7685
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin52
RA = 122.33, Dec = 40.8954
tmin = 252806401, tmax = 253065601
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='225266', job_status='RUN', time_executed='2021-08-29 07:33:20.092211', time_epoch_executed='1630247600.09' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225266

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225266/ft1_4FGL_J0809.3+4053_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225266/ft2_4FGL_J0809.3+4053_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225266/ft1_4FGL_J0809.3+4053_daily_bin52.fits outfile=/scratch/kocevski/225266/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin52.fits ra=122.33 dec=40.8954 rad=12.0 tmin=252806401.0 tmax=253065601.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 2.47
user 1.22
sys 1.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/225266/ft2_4FGL_J0809.3+4053_daily_bin52.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/225266/ft2_4FGL_J0809.3+4053_daily_bin52.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/225266/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin52.fits evtable="EVENTS" outfile="/scratch/kocevski/225266/ft1_filtered_4FGL_J0809.3+4053_daily_bin52.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.55
user 0.33
sys 1.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225266/ft1_filtered_4FGL_J0809.3+4053_daily_bin52.fits" evtable="EVENTS" scfile=/scratch/kocevski/225266/ft2_4FGL_J0809.3+4053_daily_bin52.fits sctable="SC_DATA" outfile=/scratch/kocevski/225266/ltcube_252806401_253065601_4FGL_J0809.3+4053_daily_bin52.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/225266/ft2_4FGL_J0809.3+4053_daily_bin52.fits
.....................!
real 13.61
user 12.07
sys 1.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225266/ft1_filtered_4FGL_J0809.3+4053_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/225266/ft2_4FGL_J0809.3+4053_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/225266/ltcube_252806401_253065601_4FGL_J0809.3+4053_daily_bin52.fits outfile=/scratch/kocevski/225266/expmap_252806401_253065601_4FGL_J0809.3+4053_daily_bin52.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/225266/ltcube_252806401_253065601_4FGL_J0809.3+4053_daily_bin52.fits
.....................!
real 193.85
user 186.58
sys 6.85

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

Setting source of interest to:
4FGL J0809.3+4053 @ 122.33 40.8954

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/225266/ft1_filtered_4FGL_J0809.3+4053_daily_bin52.fits scfile=/scratch/kocevski/225266/ft2_4FGL_J0809.3+4053_daily_bin52.fits outfile=/scratch/kocevski/225266/cmap_252806401_253065601_4FGL_J0809.3+4053_daily_bin52.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.33 yref=40.8954 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.56
user 0.37
sys 1.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225266/ft1_filtered_4FGL_J0809.3+4053_daily_bin52.fits scfile=/scratch/kocevski/225266/ft2_4FGL_J0809.3+4053_daily_bin52.fits outfile=/scratch/kocevski/225266/cmap_HighResolution_252806401_253065601_4FGL_J0809.3+4053_daily_bin52.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.33 yref=40.8954 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.57
user 0.38
sys 1.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/225266/ft1_filtered_4FGL_J0809.3+4053_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/225266/ft2_4FGL_J0809.3+4053_daily_bin52.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/225266/Model_4FGL_J0809.3+4053_daily_bin52.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/225266/ft1_filtered_4FGL_J0809.3+4053_daily_bin52.fits.....................!
real 87.51
user 84.60
sys 2.61

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/225266/ft1_filtered_4FGL_J0809.3+4053_daily_bin52.fits', '/scratch/kocevski/225266/ft2_4FGL_J0809.3+4053_daily_bin52.fits', expMap='/scratch/kocevski/225266/expmap_252806401_253065601_4FGL_J0809.3+4053_daily_bin52.fits', expCube='/scratch/kocevski/225266/ltcube_252806401_253065601_4FGL_J0809.3+4053_daily_bin52.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/225266/Model_4FGL_J0809.3+4053_daily_bin52.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.3+4053'

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.019e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/225266/ft1_filtered_4FGL_J0809.3+4053_daily_bin52.fits
Spacecraft file(s): /scratch/kocevski/225266/ft2_4FGL_J0809.3+4053_daily_bin52.fits
Exposure map: /scratch/kocevski/225266/expmap_252806401_253065601_4FGL_J0809.3+4053_daily_bin52.fits
Exposure cube: /scratch/kocevski/225266/ltcube_252806401_253065601_4FGL_J0809.3+4053_daily_bin52.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/225266/Model_4FGL_J0809.3+4053_daily_bin52.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) = 9111.88558555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.185       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12417E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.132       1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10362E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2516       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.191       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0648       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5702       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2121       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91991       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9111.792     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2216 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3886        .90712E-02** at limit **
   2  Prefactor     .10000E-03    2.9523        .90712E-02** at limit **
   3  Prefactor     55.182        31.292        .13499E-02    .82234E-03
   4  Prefactor     .10000E-03    14.245        .90712E-02** at limit **
   5  Prefactor     .10000E-03    10.736        .90712E-02** at limit **
   6  norm          10.132        9.8818        .31470E-02    .13948E-03
   7  norm          .10000E-03    .84098        .90712E-02** at limit **
   8  Prefactor     .10000E-03    3.5044        .90712E-02** at limit **
   9  Prefactor     .10000E-03    102.01        .90712E-02** at limit **
  10  Prefactor     .10000E-03    3.7948        .90712E-02** at limit **
  11  norm          .10000E-03    1.0770        .30976E-01** at limit **
  12  norm          1.2517        .52724        .97618E-02   -.20912E-03
  13  Prefactor     .10003E-03    28.512        .90712E-02** at limit **
  14  Prefactor     .10000E-03    7.1030        .90712E-02** at limit **
  15  Prefactor     .10000E-03    1.1280        .90712E-02** at limit **
  16  Prefactor     15.180        20.838        .25690E-02   -.43695E-03
  17  Prefactor     .10000E-03    6.8818        .90712E-02** at limit **
  18  norm          .10000E-03    1.7568        .90712E-02** at limit **
  19  Prefactor     2.0650        2.6802        .71886E-02    .99280E-03
  20  Prefactor     .10003E-03    29.374        .90712E-02** at limit **
  21  Prefactor     2.5708        4.3223        .63651E-02    .94998E-03
  22  Normalizat    1.2120        .15907        .58986E-01    .18931E-04
  23  Prefactor     .91997        .11388        .45258E-01    .68640E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.1821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.1323
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.25169
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1802
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.06504
  Prefactor  = 0.000100031
  Prefactor  = 2.57083
  Normalizat = 1.21202
  Prefactor  = 0.919968
 **********
 **   18 **HESSE 
 **********

 FCN=   9111.792     FROM HESSE     STATUS=OK           360 CALLS     2576 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4041        .14406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.9573        .16017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     55.182        31.282        .53997E-04   -1.4221    
   4  Prefactor     .10000E-03    14.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.132        9.8809        .12588E-03   -1.5071    
   7  norm          .10000E-03    .84726        .85463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.5315        .17447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    103.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.9018        .36244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.3034        .19265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2517        .52668        .43048E-04   -1.5484    
  13  Prefactor     .10003E-03    28.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.1484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1628        .19780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.180        20.841        .10276E-03   -1.4929    
  17  Prefactor     .10000E-03    6.9628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.7650        .12354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.0650        2.6743        .17106E-03   -1.5421    
  20  Prefactor     .10003E-03    29.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5708        4.3342        .24489E-03   -1.5387    
  22  Normalizat    1.2120        .18664        .26087E-03   -.86232    
  23  Prefactor     .91997        .13367        .21717E-03   -.95447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94951e-09
Minuit parameter uncertainties:
  1  2.40454e-06
  2  3.14311e-07
  3  31.2909
  4  5.62614e-05
  5  4.15073e-05
  6  9.88248
  7  8.32199e-07
  8  1.8855e-06
  9  0.00109536
  10  4.51651e-06
  11  1.32695e-07
  12  0.526682
  13  0.00190124
  14  4.20609e-05
  15  2.31091e-06
  16  20.8512
  17  2.16403e-05
  18  7.57266e-08
  19  2.67448
  20  0.00192049
  21  4.33476
  22  0.186746
  23  0.13372
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  4.517e-06  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.200e-01  1.337e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.212e+00  1.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 7.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/225266/likelihoodResults_252806401_253065601_4FGL_J0809.3+4053_daily_bin52.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) = 9111.79353778
delta logL = -0.00122321003255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9111.79231479
delta logL = -2.17913111555e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6218       1.0000          .0000       10.000    
     3 'Normalizat'    1.2122       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91990       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9111.773     FROM MIGRAD    STATUS=FAILED       153 CALLS      310 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12186        16.191        .36285E-02   -.46968E-02
   2  Index         4.0682        2.1732        .50000        .11321E-04
   3  Normalizat    1.2023        .19697E-01    .26087E-03    .13388E-03
   4  Prefactor     .92379        .14552E-01    .21717E-03    .80199E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9111.773     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      383 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12186        16.191        .17941E-03   -.46968E-02
   2  Index         4.0682        2.1732        .39918E-02    .11321E-04
   3  Normalizat    1.2023        .19697E-01    .72062E-04    .13388E-03
   4  Prefactor     .92379        .14552E-01    .39829E-04    .80199E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9111.773     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      417 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12186        2.4509        .14514E-03    .10653E-04
   2  Index         4.0682        3.8029        .90408E-02    .42003E-04
   3  Normalizat    1.2023        .18434        .10435E-04    .11026E-03
   4  Prefactor     .92379        .13309        .86868E-05    .62295E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.121862
  Index      = 4.06818
  Normalizat = 1.20232
  Prefactor  = 0.923786
 **********
 **   18 **HESSE 
 **********

 FCN=   9111.773     FROM HESSE     STATUS=OK            25 CALLS      442 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12186        2.0339        .58056E-05   -1.5778    
   2  Index         4.0682        3.5418        .18082E-02   -.18746    
   3  Normalizat    1.2023        .18465        .20870E-05   -.86531    
   4  Prefactor     .92379        .13330        .17374E-05   -.95315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06032e-11
Minuit parameter uncertainties:
  1  0.995325
  2  3.95569
  3  0.184751
  4  0.133344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225266': 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) = 9111.77318068
delta logL = 0.0191338910208

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.219e-01  9.953e-01  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  4.068e+00  3.956e+00  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.238e-01  1.333e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.202e+00  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.330 40.895

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/225266/cmap_HighResolution_252806401_253065601_4FGL_J0809.3+4053_daily_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='7.40e-08', time_completed='2021-08-29 07:47:22.824957', job_id='225266', GAL2='0.92', fit_tolerance='1e-08', EG2='1.20', EG='1.21', time_epoch_completed='1630248442.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.91e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='52' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:47:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 225266: <4FGL_J0809.3+4053_daily_bin52> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin52> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Aug 29 07:30:49 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:30:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 07:30:51 2021
Terminated at Sun Aug 29 07:47:23 2021
Results reported at Sun Aug 29 07:47:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin52 122.33 40.8954 252806401 253065601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.3+4053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   858.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            994 sec.

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

