/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 213 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 = 7440
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin174
RA = 122.33, Dec = 40.8954
tmin = 284428801, tmax = 284688001
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='226541', job_status='RUN', time_executed='2021-08-29 07:39:23.796283', time_epoch_executed='1630247963.8' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='174'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226541

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226541/ft1_4FGL_J0809.3+4053_daily_bin174.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226541/ft2_4FGL_J0809.3+4053_daily_bin174.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226541/ft1_4FGL_J0809.3+4053_daily_bin174.fits outfile=/scratch/kocevski/226541/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin174.fits ra=122.33 dec=40.8954 rad=12.0 tmin=284428801.0 tmax=284688001.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 3.79
user 3.33
sys 0.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226541/ft2_4FGL_J0809.3+4053_daily_bin174.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/226541/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin174.fits evtable="EVENTS" outfile="/scratch/kocevski/226541/ft1_filtered_4FGL_J0809.3+4053_daily_bin174.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226541/ft1_filtered_4FGL_J0809.3+4053_daily_bin174.fits" evtable="EVENTS" scfile=/scratch/kocevski/226541/ft2_4FGL_J0809.3+4053_daily_bin174.fits sctable="SC_DATA" outfile=/scratch/kocevski/226541/ltcube_284428801_284688001_4FGL_J0809.3+4053_daily_bin174.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/226541/ft2_4FGL_J0809.3+4053_daily_bin174.fits
.....................!
real 12.05
user 11.41
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226541/ft1_filtered_4FGL_J0809.3+4053_daily_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/226541/ft2_4FGL_J0809.3+4053_daily_bin174.fits sctable="SC_DATA" expcube=/scratch/kocevski/226541/ltcube_284428801_284688001_4FGL_J0809.3+4053_daily_bin174.fits outfile=/scratch/kocevski/226541/expmap_284428801_284688001_4FGL_J0809.3+4053_daily_bin174.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/226541/ltcube_284428801_284688001_4FGL_J0809.3+4053_daily_bin174.fits
.....................!
real 190.32
user 185.55
sys 4.41

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/226541/ft1_filtered_4FGL_J0809.3+4053_daily_bin174.fits scfile=/scratch/kocevski/226541/ft2_4FGL_J0809.3+4053_daily_bin174.fits outfile=/scratch/kocevski/226541/cmap_284428801_284688001_4FGL_J0809.3+4053_daily_bin174.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 0.76
user 0.36
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226541/ft1_filtered_4FGL_J0809.3+4053_daily_bin174.fits scfile=/scratch/kocevski/226541/ft2_4FGL_J0809.3+4053_daily_bin174.fits outfile=/scratch/kocevski/226541/cmap_HighResolution_284428801_284688001_4FGL_J0809.3+4053_daily_bin174.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 0.76
user 0.37
sys 0.38

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/226541/ft1_filtered_4FGL_J0809.3+4053_daily_bin174.fits', '/scratch/kocevski/226541/ft2_4FGL_J0809.3+4053_daily_bin174.fits', expMap='/scratch/kocevski/226541/expmap_284428801_284688001_4FGL_J0809.3+4053_daily_bin174.fits', expCube='/scratch/kocevski/226541/ltcube_284428801_284688001_4FGL_J0809.3+4053_daily_bin174.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/226541/Model_4FGL_J0809.3+4053_daily_bin174.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/226541/ft1_filtered_4FGL_J0809.3+4053_daily_bin174.fits
Spacecraft file(s): /scratch/kocevski/226541/ft2_4FGL_J0809.3+4053_daily_bin174.fits
Exposure map: /scratch/kocevski/226541/expmap_284428801_284688001_4FGL_J0809.3+4053_daily_bin174.fits
Exposure cube: /scratch/kocevski/226541/ltcube_284428801_284688001_4FGL_J0809.3+4053_daily_bin174.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/226541/Model_4FGL_J0809.3+4053_daily_bin174.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) = 7184.34798429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6365       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.145       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.317       1.0000         .10000E-03   10000.    
     6 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .13747E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9495       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.748       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2987       1.0000         .10000E-03   10000.    
    12 'norm      '    .42894       1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.158       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .78962       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.740       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.2641       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .60065       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1991       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .72533       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2718       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.

 FCN=   7184.346     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2576 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6368        7.9198        .70563E-07   -.58041E-04
   2  Prefactor     .10000E-03    13.749        .13109E-05** at limit **
   3  Prefactor     .10000E-03    10.409       -.43559E-06** at limit **
   4  Prefactor     23.145        15.553        .16787E-06    .73291E-04
   5  Prefactor     20.319        20.485        .53965E-06    .61767E-04
   6  norm          .10001E-03    26.094        .94386E-05** at limit **
   7  norm          .10000E-03    2.1902       -.95199E-07** at limit **
   8  Prefactor     3.9482        9.0397        .13400E-07   -.38987E-04
   9  Prefactor     .10000E-03    20.306       -.59931E-05** at limit **
  10  Prefactor     12.747        7.0565       -.60501E-07   -.10764E-03
  11  norm          1.2987        1.3094        .20077E-07   -.93457E-04
  12  norm          .42913        .56668        .48013E-07   -.41634E-03
  13  Prefactor     35.159        32.269        .20074E-06   -.12151E-04
  14  Prefactor     .10000E-03    3.8775        .26961E-06** at limit **
  15  Prefactor     .79064        1.8323        .22020E-06   -.20640E-03
  16  Prefactor     24.741        26.069        .36770E-06    .17933E-04
  17  Prefactor     .10000E-03    4.0465        .15722E-06** at limit **
  18  norm          3.2644        3.1863        .10731E-05   -.22776E-02
  19  Prefactor     .60069        1.7031        .32075E-07   -.50030E-03
  20  Prefactor     .10000E-03    37.172       -.54441E-05** at limit **
  21  Prefactor     1.1986        2.5732        .21051E-06    .74156E-04
  22  Normalizat    .72521        .19906       -.51639E-06   -.10831E-03
  23  Prefactor     1.2718        .14669       -.68175E-07   -.15634E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.63676
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1453
  Prefactor  = 20.3189
  norm       = 0.000100008
  norm       = 0.0001
  Prefactor  = 3.94822
  Prefactor  = 0.000100004
  Prefactor  = 12.7469
  norm       = 1.29868
  norm       = 0.429131
  Prefactor  = 35.1586
  Prefactor  = 0.0001
  Prefactor  = 0.790638
  Prefactor  = 24.7409
  Prefactor  = 0.0001
  norm       = 3.2644
  Prefactor  = 0.600692
  Prefactor  = 0.000100003
  Prefactor  = 1.19856
  Normalizat = 0.725208
  Prefactor  = 1.2718
 **********
 **   18 **HESSE 
 **********

 FCN=   7184.346     FROM HESSE     STATUS=OK           384 CALLS     2960 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6368        7.9347        .16920E-03   -1.5233    
   2  Prefactor     .10000E-03    13.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.145        14.918        .83259E-04   -1.4745    
   5  Prefactor     20.319        20.449        .88859E-04   -1.4806    
   6  norm          .10001E-03    27.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.7332        .23215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.9482        8.9994        .20298E-03   -1.5311    
   9  Prefactor     .10000E-03    20.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.747        6.9598        .11219E-03   -1.4994    
  11  norm          1.2987        1.2836        .94902E-04   -1.5480    
  12  norm          .42913        .52933        .68327E-03   -1.5577    
  13  Prefactor     35.159        32.276        .67586E-04   -1.4521    
  14  Prefactor     .10000E-03    3.8820        .16297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .79064        1.5168        .16823E-02   -1.5530    
  16  Prefactor     24.741        25.994        .80535E-04   -1.4713    
  17  Prefactor     .10000E-03    4.0513        .16645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.2644        4.5673        .10407E-02   -1.5347    
  19  Prefactor     .60069        1.5775        .17969E-02   -1.5553    
  20  Prefactor     .10000E-03    37.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.1986        1.9828        .19465E-02   -1.5489    
  22  Normalizat    .72521        .22092        .34240E-03   -1.0291    
  23  Prefactor     1.2718        .16474        .20212E-03   -.84149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14666e-08
Minuit parameter uncertainties:
  1  7.93616
  2  9.64577e-05
  3  3.02738e-05
  4  14.92
  5  20.4556
  6  0.000942358
  7  9.97254e-06
  8  9.00249
  9  0.000577541
  10  6.96028
  11  1.2836
  12  0.529335
  13  32.2918
  14  1.05807e-05
  15  1.51686
  16  26.0056
  17  5.28656e-06
  18  4.5678
  19  1.57762
  20  0.000699216
  21  1.98287
  22  0.221195
  23  0.164809
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.275e+01  6.960e+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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.272e+00  1.648e-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:  7.252e-01  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.10
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 5.77e-08
Energy Flux (Fixed Index): 2.80e-05 +/- 1.53e-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) = 7183.67686156
delta logL = 0.669295560881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7183.67557365
delta logL = 0.670583470897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4047       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1876       1.0000          .0000       10.000    
     3 'Normalizat'    .68857       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2912       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.

 FCN=   7183.676     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      275 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4044        7.2222        .10316E-03    .72611E-03
   2  Index         3.1877        .64762        .49116E-02    .13142E-03
   3  Normalizat    .68861        .21695        .35041E-03   -.45194E-04
   4  Prefactor     1.2912        .16320        .20077E-03   -.33847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.40435
  Index      = 3.18767
  Normalizat = 0.688605
  Prefactor  = 1.29117
 **********
 **   18 **HESSE 
 **********

 FCN=   7183.676     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4044        6.4162        .41265E-05   -1.5164    
   2  Index         3.1877        .57532        .19647E-03   -.37091    
   3  Normalizat    .68861        .21705        .14016E-04   -1.0434    
   4  Prefactor     1.2912        .16315        .40153E-04   -.83570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60737e-10
Minuit parameter uncertainties:
  1  6.41683
  2  0.576793
  3  0.217319
  4  0.163219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226541': 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) = 7183.67557362
delta logL = 0.670583500549

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  7.404e+00  6.417e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  3.188e+00  5.768e-01  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:  1.291e+00  1.632e-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:  6.886e-01  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.59
Ra Dec: 122.330 40.895
Photon Index (Free Index): 3.19 +/- 0.58
Photon Flux (Free Index): 1.38e-07 +/- 6.76e-08
Energy Flux (Free Index): 2.54e-05 +/- 1.25e-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/226541/cmap_HighResolution_284428801_284688001_4FGL_J0809.3+4053_daily_bin174.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='2.54e-05', photon_flux_error='5.77e-08', dlogl='6.71e-01', energy_flux='2.80e-05', photon_flux2='1.38e-07', job_status='DONE', time_completed='2021-08-29 07:50:38.038188', photon_index_error2='0.58', photon_index2='3.19', ts='5.10', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='0.73', time_epoch_completed='1630248638.04', return_code='0', job_id='226541', GAL2='1.29', EG2='0.69', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='6.76e-08', ts2='6.59', photon_index='2.59' WHERE bin_id='174' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:50:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 226541: <4FGL_J0809.3+4053_daily_bin174> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin174> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 07:35:34 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:35:35 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:35:35 2021
Terminated at Sun Aug 29 07:50:38 2021
Results reported at Sun Aug 29 07:50:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin174 122.33 40.8954 284428801 284688001 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 :                                   676.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            904 sec.

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

