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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin78
RA = 122.33, Dec = 40.8954
tmin = 259545601, tmax = 259804801
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='225306', job_status='RUN', time_executed='2021-08-29 07:35:20.005986', time_epoch_executed='1630247720.01' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='78'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225306

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225306/ft1_4FGL_J0809.3+4053_daily_bin78.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225306/ft2_4FGL_J0809.3+4053_daily_bin78.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225306/ft1_4FGL_J0809.3+4053_daily_bin78.fits outfile=/scratch/kocevski/225306/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin78.fits ra=122.33 dec=40.8954 rad=12.0 tmin=259545601.0 tmax=259804801.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.60
user 1.48
sys 2.05

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225306/ft1_filtered_4FGL_J0809.3+4053_daily_bin78.fits" evtable="EVENTS" scfile=/scratch/kocevski/225306/ft2_4FGL_J0809.3+4053_daily_bin78.fits sctable="SC_DATA" outfile=/scratch/kocevski/225306/ltcube_259545601_259804801_4FGL_J0809.3+4053_daily_bin78.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/225306/ft2_4FGL_J0809.3+4053_daily_bin78.fits
.....................!
real 14.41
user 11.99
sys 2.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225306/ft1_filtered_4FGL_J0809.3+4053_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/225306/ft2_4FGL_J0809.3+4053_daily_bin78.fits sctable="SC_DATA" expcube=/scratch/kocevski/225306/ltcube_259545601_259804801_4FGL_J0809.3+4053_daily_bin78.fits outfile=/scratch/kocevski/225306/expmap_259545601_259804801_4FGL_J0809.3+4053_daily_bin78.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/225306/ltcube_259545601_259804801_4FGL_J0809.3+4053_daily_bin78.fits
.....................!
real 192.81
user 185.24
sys 6.95

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/225306/ft1_filtered_4FGL_J0809.3+4053_daily_bin78.fits scfile=/scratch/kocevski/225306/ft2_4FGL_J0809.3+4053_daily_bin78.fits outfile=/scratch/kocevski/225306/cmap_259545601_259804801_4FGL_J0809.3+4053_daily_bin78.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 2.41
user 0.37
sys 1.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225306/ft1_filtered_4FGL_J0809.3+4053_daily_bin78.fits scfile=/scratch/kocevski/225306/ft2_4FGL_J0809.3+4053_daily_bin78.fits outfile=/scratch/kocevski/225306/cmap_HighResolution_259545601_259804801_4FGL_J0809.3+4053_daily_bin78.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 2.39
user 0.38
sys 1.98

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.806       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5600       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .19286E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.815       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.327       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2373       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5076       1.0000         .10000E-03   10000.    
    12 'norm      '    2.4748       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .88240       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0740       1.0000         .10000E-03   10000.    
    18 'norm      '    7.9763       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.124       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0762       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0184       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=   6293.309     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2512 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.0928        .33123E-07** at limit **
   2  Prefactor     .10000E-03    16.576       -.20451E-06** at limit **
   3  Prefactor     38.807        48.461        .99182E-07    .20410E-05
   4  Prefactor     3.5585        13.851        .17590E-06   -.38352E-04
   5  Prefactor     .10000E-03    13.921       -.24032E-07** at limit **
   6  norm          .10001E-03    5.8589        .77675E-06** at limit **
   7  norm          .10000E-03    .86379       -.40584E-08** at limit **
   8  Prefactor     23.816        13.843       -.47878E-06   -.16565E-03
   9  Prefactor     23.331        51.888        .13810E-05    .27197E-04
  10  Prefactor     2.2382        5.3971        .28682E-07   -.34441E-03
  11  norm          1.5075        1.2924       -.69433E-08    .16385E-04
  12  norm          2.4750        .77018       -.24661E-07   -.29468E-04
  13  Prefactor     .81862        19.840        .71461E-06   -.98704E-04
  14  Prefactor     .10000E-03    5.4939       -.34047E-07** at limit **
  15  Prefactor     .10000E-03    .89929       -.25783E-07** at limit **
  16  Prefactor     .10000E-03    11.548       -.15258E-06** at limit **
  17  Prefactor     5.0755        8.0012        .27421E-05   -.70527E-03
  18  norm          7.9763        5.1900        .10594E-06    .10726E-03
  19  Prefactor     .10000E-03    .79442        .13288E-07** at limit **
  20  Prefactor     15.108        33.893       -.70614E-05   -.26218E-03
  21  Prefactor     .10000E-03    1.4857       -.34786E-07** at limit **
  22  Normalizat    1.0762        .19190       -.20155E-06   -.11139E-03
  23  Prefactor     1.0184        .14289       -.17521E-06   -.11849E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.8067
  Prefactor  = 3.55851
  Prefactor  = 0.0001
  norm       = 0.00010001
  norm       = 0.0001
  Prefactor  = 23.8157
  Prefactor  = 23.3315
  Prefactor  = 2.23822
  norm       = 1.50754
  norm       = 2.47495
  Prefactor  = 0.818619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.07554
  norm       = 7.97632
  Prefactor  = 0.0001
  Prefactor  = 15.1076
  Prefactor  = 0.0001
  Normalizat = 1.07625
  Prefactor  = 1.0184
 **********
 **   18 **HESSE 
 **********

 FCN=   6293.309     FROM HESSE     STATUS=OK           370 CALLS     2882 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.1595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     38.807        48.246        .64342E-04   -1.4461    
   4  Prefactor     3.5585        13.790        .21421E-03   -1.5331    
   5  Prefactor     .10000E-03    13.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    22.135        .36613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .86583        .71966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.816        13.854        .82082E-04   -1.4732    
   9  Prefactor     23.331        51.993        .82934E-04   -1.4742    
  10  Prefactor     2.2382        5.4614        .27010E-03   -1.5409    
  11  norm          1.5075        1.2925        .81476E-04   -1.5462    
  12  norm          2.4750        .76991        .36887E-04   -1.5393    
  13  Prefactor     .81862        146.26        .67633E-02   -1.5527    
  14  Prefactor     .10000E-03    5.5101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .90598        .73429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.0755        8.8712        .89250E-03   -1.5257    
  18  norm          7.9763        5.1939        .70977E-03   -1.5143    
  19  Prefactor     .10000E-03    .79820        .69042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.108        36.626        .10299E-03   -1.4930    
  21  Prefactor     .10000E-03    1.4968        .94406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0762        .22195        .27580E-03   -.90518    
  23  Prefactor     1.0184        .16534        .21583E-03   -.92119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28118e-09
Minuit parameter uncertainties:
  1  7.95917e-07
  2  3.42462e-05
  3  48.2941
  4  13.8022
  5  4.40554e-06
  6  0.000942267
  7  4.55086e-08
  8  13.8562
  9  52.0944
  10  5.46263
  11  1.29253
  12  0.769912
  13  21.9379
  14  1.07099e-06
  15  1.17758e-07
  16  1.96714e-05
  17  8.87349
  18  5.19422
  19  8.04578e-08
  20  36.6809
  21  5.6314e-06
  22  0.222137
  23  0.165419
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.238e+00  5.463e+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.018e+00  1.654e-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.076e+00  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.21
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/225306/likelihoodResults_259545601_259804801_4FGL_J0809.3+4053_daily_bin78.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) = 6293.2823639
delta logL = 0.0268225815907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6293.2769701
delta logL = 0.0322163876081

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7367       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0814       1.0000          .0000       10.000    
     3 'Normalizat'    1.0650       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0238       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=   6293.277     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      269 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7428        6.1164        .20164E-03   -.10774E-03
   2  Index         3.0804        2.3509        .95448E-02   -.11498E-04
   3  Normalizat    1.0648        .22259        .27705E-03   -.85311E-04
   4  Prefactor     1.0238        .16689        .21531E-03   -.12672E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.74279
  Index      = 3.08037
  Normalizat = 1.06483
  Prefactor  = 1.0238
 **********
 **   18 **HESSE 
 **********

 FCN=   6293.277     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7428        5.1429        .80657E-05   -1.5444    
   2  Index         3.0804        2.0011        .38179E-03   -.39404    
   3  Normalizat    1.0648        .22237        .11082E-04   -.90889    
   4  Prefactor     1.0238        .16658        .86125E-05   -.91940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28886e-11
Minuit parameter uncertainties:
  1  5.14421
  2  2.06976
  3  0.222569
  4  0.166668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225306': 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) = 6293.27696848
delta logL = 0.0322180086441

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.743e+00  5.144e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  3.080e+00  2.070e+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:  1.024e+00  1.667e-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.065e+00  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
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/225306/cmap_HighResolution_259545601_259804801_4FGL_J0809.3+4053_daily_bin78.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.66e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-08-29 07:47:14.965424', job_id='225306', GAL2='1.02', fit_tolerance='1e-08', EG2='1.06', EG='1.08', time_epoch_completed='1630248434.97', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.22e-02', ts2='0.28', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='78' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:47:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 225306: <4FGL_J0809.3+4053_daily_bin78> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin78 122.33 40.8954 259545601 259804801 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 :                                   742.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

