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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin787
RA = 122.33, Dec = 40.8954
tmin = 443318401, tmax = 443577601
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='230832', job_status='RUN', time_executed='2021-08-29 07:50:46.507569', time_epoch_executed='1630248646.51' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='787'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230832

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230832/ft1_4FGL_J0809.3+4053_daily_bin787.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230832/ft2_4FGL_J0809.3+4053_daily_bin787.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230832/ft1_4FGL_J0809.3+4053_daily_bin787.fits outfile=/scratch/kocevski/230832/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin787.fits ra=122.33 dec=40.8954 rad=12.0 tmin=443318401.0 tmax=443577601.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 4.99
user 4.39
sys 0.53

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230832/ft1_filtered_4FGL_J0809.3+4053_daily_bin787.fits" evtable="EVENTS" scfile=/scratch/kocevski/230832/ft2_4FGL_J0809.3+4053_daily_bin787.fits sctable="SC_DATA" outfile=/scratch/kocevski/230832/ltcube_443318401_443577601_4FGL_J0809.3+4053_daily_bin787.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/230832/ft2_4FGL_J0809.3+4053_daily_bin787.fits
.....................!
real 12.17
user 11.51
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230832/ft1_filtered_4FGL_J0809.3+4053_daily_bin787.fits evtable="EVENTS" scfile=/scratch/kocevski/230832/ft2_4FGL_J0809.3+4053_daily_bin787.fits sctable="SC_DATA" expcube=/scratch/kocevski/230832/ltcube_443318401_443577601_4FGL_J0809.3+4053_daily_bin787.fits outfile=/scratch/kocevski/230832/expmap_443318401_443577601_4FGL_J0809.3+4053_daily_bin787.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/230832/ltcube_443318401_443577601_4FGL_J0809.3+4053_daily_bin787.fits
.....................!
real 191.17
user 185.98
sys 4.79

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/230832/ft1_filtered_4FGL_J0809.3+4053_daily_bin787.fits scfile=/scratch/kocevski/230832/ft2_4FGL_J0809.3+4053_daily_bin787.fits outfile=/scratch/kocevski/230832/cmap_443318401_443577601_4FGL_J0809.3+4053_daily_bin787.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.83
user 0.37
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230832/ft1_filtered_4FGL_J0809.3+4053_daily_bin787.fits scfile=/scratch/kocevski/230832/ft2_4FGL_J0809.3+4053_daily_bin787.fits outfile=/scratch/kocevski/230832/cmap_HighResolution_443318401_443577601_4FGL_J0809.3+4053_daily_bin787.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.84
user 0.40
sys 0.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3373       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.2574       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3395       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1247       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.217       1.0000         .10000E-03   10000.    
     6 'norm      '    2.5992       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3467       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11578E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.512       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1113       1.0000         .10000E-03   10000.    
    12 'norm      '    .99075       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.942       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12893E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4066       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .70573       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0457       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=   6321.073     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2550 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3377        6.2474       -.21253E-06   -.21269E-04
   2  Prefactor     9.2572        8.5242       -.19639E-06   -.37495E-04
   3  Prefactor     7.3389        24.775       -.23469E-05   -.23210E-05
   4  Prefactor     1.1242        2.3890        .39743E-06   -.76521E-03
   5  Prefactor     19.215        12.560        .70309E-06   -.14224E-04
   6  norm          2.5975        8.5334       -.61975E-06   -.27407E-03
   7  norm          1.3468        2.0932        .11774E-06    .72473E-04
   8  Prefactor     .10001E-03    13.207        .18868E-05** at limit **
   9  Prefactor     27.496        37.019       -.21175E-04   -.36268E-04
  10  Prefactor     .10000E-03    2.4997       -.13702E-06** at limit **
  11  norm          4.1113        2.1090       -.14760E-07    .14112E-04
  12  norm          .99076        .52968        .16624E-06    .58696E-03
  13  Prefactor     .10000E-03    9.6980       -.25852E-07** at limit **
  14  Prefactor     15.941        13.126        .94181E-07    .77625E-04
  15  Prefactor     .10000E-03    1.3643       -.18315E-06** at limit **
  16  Prefactor     .10000E-03    7.6559        .24280E-06** at limit **
  17  Prefactor     .10000E-03    3.5389       -.84271E-08** at limit **
  18  norm          .10000E-03    2.1472       -.29977E-06** at limit **
  19  Prefactor     2.4065        2.9491       -.27281E-06   -.43740E-05
  20  Prefactor     .10000E-03    26.781        .30873E-06** at limit **
  21  Prefactor     .10000E-03    1.6473        .11893E-06** at limit **
  22  Normalizat    .70577        .16547        .24963E-05   -.20220E-04
  23  Prefactor     1.0456        .12744        .37934E-07    .71386E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.33768
  Prefactor  = 9.25718
  Prefactor  = 7.33892
  Prefactor  = 1.12417
  Prefactor  = 19.2153
  norm       = 2.59746
  norm       = 1.34677
  Prefactor  = 0.000100006
  Prefactor  = 27.4962
  Prefactor  = 0.0001
  norm       = 4.11133
  norm       = 0.99076
  Prefactor  = 0.0001
  Prefactor  = 15.9407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.40653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.705766
  Prefactor  = 1.04561
 **********
 **   18 **HESSE 
 **********

 FCN=   6321.073     FROM HESSE     STATUS=OK           374 CALLS     2924 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3377        6.2643        .22156E-03   -1.5343    
   2  Prefactor     9.2572        8.5277        .65860E-03   -1.5099    
   3  Prefactor     7.3389        24.953        .14805E-03   -1.5166    
   4  Prefactor     1.1242        12.676        .22092E-02   -1.5496    
   5  Prefactor     19.215        12.550        .91366E-04   -1.4831    
   6  norm          2.5975        8.8466        .12653E-02   -1.5386    
   7  norm          1.3468        2.0785        .13787E-03   -1.5476    
   8  Prefactor     .10001E-03    13.951        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.496        37.039        .76378E-04   -1.4659    
  10  Prefactor     .10000E-03    2.6136        .24524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1113        2.1076        .80417E-04   -1.5302    
  12  norm          .99076        .53097        .39679E-04   -1.5509    
  13  Prefactor     .10000E-03    9.7163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.941        12.711        .10031E-03   -1.4909    
  15  Prefactor     .10000E-03    2.1743        .17394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.6613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.5489        .14606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1535        .11375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4065        2.9452        .14460E-03   -1.5398    
  20  Prefactor     .10000E-03    26.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.6549        .99623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .70577        .18773        .28706E-03   -1.0367    
  23  Prefactor     1.0456        .14590        .18816E-03   -.91224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48305e-09
Minuit parameter uncertainties:
  1  6.2655
  2  8.52881
  3  24.9887
  4  7.5514
  5  12.552
  6  8.85108
  7  2.07863
  8  0.000588213
  9  37.0699
  10  1.26142e-05
  11  2.1076
  12  0.53097
  13  1.01669e-05
  14  12.7132
  15  7.68479e-06
  16  1.0245e-07
  17  2.25776e-06
  18  6.81673e-07
  19  2.94539
  20  1.5641e-05
  21  3.62352e-06
  22  0.1879
  23  0.14596
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.261e-05  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.046e+00  1.460e-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.058e-01  1.879e-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: 5.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230832/likelihoodResults_443318401_443577601_4FGL_J0809.3+4053_daily_bin787.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) = 6321.0752434
delta logL = -0.00182774553923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6321.07341036
delta logL = 5.28896362084e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5060       1.0000          .0000       10.000    
     3 'Normalizat'    .70572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0456       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=   6320.824     FROM MIGRAD    STATUS=CONVERGED    124 CALLS      290 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3398        2.5415        .90712E-02   -.36410E-03
   2  Index         1.4703        .59865        .23514       -.98044E-04
   3  Normalizat    .71226        .15845        .64608E-01   -.23544E-03
   4  Prefactor     1.0373        .12515        .40172E-01   -.28506E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.3398
  Index      = 1.47031
  Normalizat = 0.71226
  Prefactor  = 1.03727
 **********
 **   18 **HESSE 
 **********

 FCN=   6320.824     FROM HESSE     STATUS=OK            31 CALLS      321 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3398        2.4885        .16059E-03   -1.5939    
   2  Index         1.4703        .71696        .12444E-01   -.78375    
   3  Normalizat    .71226        .17969        .28584E-03   -1.0341    
   4  Prefactor     1.0373        .14211        .18875E-03   -.91497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87844e-10
Minuit parameter uncertainties:
  1  2.48872
  2  0.721951
  3  0.179842
  4  0.142157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230832': 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) = 6320.82387837
delta logL = 0.249537279632

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.340e+00  2.489e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  1.470e+00  7.220e-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.037e+00  1.422e-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.123e-01  1.798e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/230832/cmap_HighResolution_443318401_443577601_4FGL_J0809.3+4053_daily_bin787.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-03', job_status='DONE', photon_flux_upper_limit='5.83e-08', time_completed='2021-08-29 08:02:45.125800', job_id='230832', GAL2='1.04', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630249365.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.50e-01', ts2='0.50', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='787' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:02:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 230832: <4FGL_J0809.3+4053_daily_bin787> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin787> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 07:50:23 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:50:25 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:50:25 2021
Terminated at Sun Aug 29 08:02:46 2021
Results reported at Sun Aug 29 08:02:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin787 122.33 40.8954 443318401 443577601 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 :                                   721.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            743 sec.

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

