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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin99
RA = 122.33, Dec = 40.8954
tmin = 264988801, tmax = 265248001
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='225340', job_status='RUN', time_executed='2021-08-29 07:34:14.055379', time_epoch_executed='1630247654.06' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='99'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225340

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225340/ft1_4FGL_J0809.3+4053_daily_bin99.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225340/ft2_4FGL_J0809.3+4053_daily_bin99.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225340/ft1_4FGL_J0809.3+4053_daily_bin99.fits outfile=/scratch/kocevski/225340/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin99.fits ra=122.33 dec=40.8954 rad=12.0 tmin=264988801.0 tmax=265248001.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.07
user 1.26
sys 0.79

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225340/ft1_filtered_4FGL_J0809.3+4053_daily_bin99.fits" evtable="EVENTS" scfile=/scratch/kocevski/225340/ft2_4FGL_J0809.3+4053_daily_bin99.fits sctable="SC_DATA" outfile=/scratch/kocevski/225340/ltcube_264988801_265248001_4FGL_J0809.3+4053_daily_bin99.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/225340/ft2_4FGL_J0809.3+4053_daily_bin99.fits
.....................!
real 13.12
user 12.04
sys 1.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225340/ft1_filtered_4FGL_J0809.3+4053_daily_bin99.fits evtable="EVENTS" scfile=/scratch/kocevski/225340/ft2_4FGL_J0809.3+4053_daily_bin99.fits sctable="SC_DATA" expcube=/scratch/kocevski/225340/ltcube_264988801_265248001_4FGL_J0809.3+4053_daily_bin99.fits outfile=/scratch/kocevski/225340/expmap_264988801_265248001_4FGL_J0809.3+4053_daily_bin99.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/225340/ltcube_264988801_265248001_4FGL_J0809.3+4053_daily_bin99.fits
.....................!
real 190.02
user 185.09
sys 4.43

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/225340/ft1_filtered_4FGL_J0809.3+4053_daily_bin99.fits scfile=/scratch/kocevski/225340/ft2_4FGL_J0809.3+4053_daily_bin99.fits outfile=/scratch/kocevski/225340/cmap_264988801_265248001_4FGL_J0809.3+4053_daily_bin99.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.16
user 0.39
sys 0.75

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8901       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4032       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6312       1.0000         .10000E-03   10000.    
     6 'norm      '    6.0201       1.0000         .10000E-03   10000.    
     7 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.717       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5612       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1938       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7697       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.163       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.092       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10608E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0199       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96061       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=   7746.537     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2192 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8897        6.0379       -.10894E-06   -.25391E-03
   2  Prefactor     7.4027        10.972       -.49402E-07    .63191E-04
   3  Prefactor     .10001E-03    14.378       -.25540E-06** at limit **
   4  Prefactor     .10000E-03    6.0683       -.35940E-08** at limit **
   5  Prefactor     7.6295        13.068       -.81589E-07    .23902E-03
   6  norm          6.0197        10.199       -.54761E-07    .11189E-04
   7  norm          .10000E-03    1.5662        .16293E-07** at limit **
   8  Prefactor     13.716        8.1008        .32613E-07    .55543E-05
   9  Prefactor     .10000E-03    20.604       -.95012E-07** at limit **
  10  Prefactor     6.5610        2.2184       -.38867E-06   -.93549E-03
  11  norm          1.1938        1.5758       -.16638E-07   -.12066E-03
  12  norm          1.7696        .65136        .20710E-07   -.42691E-04
  13  Prefactor     .10000E-03    9.8612        .21775E-07** at limit **
  14  Prefactor     10.162        10.785        .16476E-07   -.86794E-04
  15  Prefactor     .10000E-03    .94429        .65209E-08** at limit **
  16  Prefactor     20.092        23.693       -.17980E-06    .52143E-03
  17  Prefactor     .10000E-03    2.7507       -.41106E-09** at limit **
  18  norm          .10000E-03    3.3546       -.53167E-07** at limit **
  19  Prefactor     .10000E-03    1.8474       -.20679E-07** at limit **
  20  Prefactor     .10002E-03    16.165        .33759E-06** at limit **
  21  Prefactor     .10000E-03    1.5510       -.45686E-08** at limit **
  22  Normalizat    1.0200        .16871        .17973E-06   -.12894E-04
  23  Prefactor     .96060        .12580        .25695E-08   -.47206E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.88968
  Prefactor  = 7.40268
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 7.62949
  norm       = 6.01967
  norm       = 0.000100001
  Prefactor  = 13.7158
  Prefactor  = 0.000100002
  Prefactor  = 6.56102
  norm       = 1.19376
  norm       = 1.76965
  Prefactor  = 0.0001
  Prefactor  = 10.1619
  Prefactor  = 0.0001
  Prefactor  = 20.0917
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Normalizat = 1.01998
  Prefactor  = 0.960595
 **********
 **   18 **HESSE 
 **********

 FCN=   7746.537     FROM HESSE     STATUS=OK           372 CALLS     2564 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8897        6.2251        .71374E-03   -1.5146    
   2  Prefactor     7.4027        10.967        .14740E-03   -1.5164    
   3  Prefactor     .10001E-03    14.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.6295        13.043        .14517E-03   -1.5155    
   6  norm          6.0197        10.199        .16365E-03   -1.5217    
   7  norm          .10000E-03    3.4255        .21308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.716        8.1101        .10815E-03   -1.4967    
   9  Prefactor     .10000E-03    20.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5610        5.3241        .78335E-03   -1.5196    
  11  norm          1.1938        1.5492        .12337E-03   -1.5489    
  12  norm          1.7696        .66113        .40646E-04   -1.5442    
  13  Prefactor     .10000E-03    9.8756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.162        10.761        .62845E-03   -1.5070    
  15  Prefactor     .10000E-03    .95703        .83403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.092        23.661        .89354E-04   -1.4811    
  17  Prefactor     .10000E-03    2.7535        .14253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.4152        .15735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.6571        .22972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    16.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.5622        .10701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0200        .19146        .27133E-03   -.92364    
  23  Prefactor     .96060        .14343        .21264E-03   -.94055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7295e-09
Minuit parameter uncertainties:
  1  6.22562
  2  10.9704
  3  0.000800693
  4  6.34662e-07
  5  13.0483
  6  10.2017
  7  9.37065e-05
  8  8.11078
  9  0.000374098
  10  5.32447
  11  1.54929
  12  0.661135
  13  6.31583e-05
  14  10.7632
  15  1.29182e-06
  16  23.6718
  17  2.77325e-06
  18  7.80799e-05
  19  5.09262e-06
  20  0.0011341
  21  2.03971e-06
  22  0.191591
  23  0.143491
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  6.561e+00  5.324e+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:  9.606e-01  1.435e-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.020e+00  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.27
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 5.44e-08 +/- 4.41e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.17e-05

TS (Fixed Index): 2.27
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/225340/likelihoodResults_264988801_265248001_4FGL_J0809.3+4053_daily_bin99.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) = 7745.98200403
delta logL = 0.555371722223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7745.96292423
delta logL = 0.57445151879

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4342       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6058       1.0000          .0000       10.000    
     3 'Normalizat'    .98179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98165       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=   7745.963     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      244 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4342        23.468        .65567E-02    .22547E-02
   2  Index         3.6059        3.0209        .16412        .12166E-03
   3  Normalizat    .98181        .51296E-01    .45938E-01   -.50942E-05
   4  Prefactor     .98165        .38509E-01    .46037E-01   -.11519E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.43419
  Index      = 3.60587
  Normalizat = 0.981813
  Prefactor  = 0.981646
 **********
 **   18 **HESSE 
 **********

 FCN=   7745.963     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4342        11.969        .81929E-04   -1.5396    
   2  Index         3.6059        2.7894        .57459E-02   -.28257    
   3  Normalizat    .98181        .19545        .27566E-03   -.93642    
   4  Prefactor     .98165        .14863        .21061E-03   -.93344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95829e-08
Minuit parameter uncertainties:
  1  10.7986
  2  2.97634
  3  0.195596
  4  0.14869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225340': 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) = 7745.96292419
delta logL = 0.57445156778

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.434e+00  1.080e+01  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  3.606e+00  2.976e+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.816e-01  1.487e-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:  9.818e-01  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.56
Ra Dec: 122.330 40.895
Photon Index (Free Index): 3.61 +/- 2.98
Photon Flux (Free Index): 8.40e-08 +/- 5.34e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.22e-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/225340/cmap_HighResolution_264988801_265248001_4FGL_J0809.3+4053_daily_bin99.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='5.44e-08', energy_flux2='1.36e-05', photon_flux_error='4.41e-08', dlogl='5.74e-01', energy_flux='1.44e-05', photon_flux2='8.40e-08', job_status='DONE', time_completed='2021-08-29 07:46:34.901143', photon_index_error2='2.98', photon_index2='3.61', ts='2.27', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.22e-05', EG='1.02', time_epoch_completed='1630248394.9', return_code='0', job_id='225340', GAL2='0.98', EG2='0.98', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='5.34e-08', ts2='3.56', photon_index='2.59' WHERE bin_id='99' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:46:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 225340: <4FGL_J0809.3+4053_daily_bin99> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin99> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Aug 29 07:30:55 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:30:56 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:56 2021
Terminated at Sun Aug 29 07:46:35 2021
Results reported at Sun Aug 29 07:46:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin99 122.33 40.8954 264988801 265248001 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 :                                   750.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            940 sec.

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

