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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin981
RA = 122.33, Dec = 40.8954
tmin = 493603201, tmax = 493862401
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='231124', job_status='RUN', time_executed='2021-08-29 07:53:53.796174', time_epoch_executed='1630248833.8' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231124

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231124/ft1_4FGL_J0809.3+4053_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231124/ft2_4FGL_J0809.3+4053_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231124/ft1_4FGL_J0809.3+4053_daily_bin981.fits outfile=/scratch/kocevski/231124/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin981.fits ra=122.33 dec=40.8954 rad=12.0 tmin=493603201.0 tmax=493862401.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.82
user 3.29
sys 0.51

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231124/ft1_filtered_4FGL_J0809.3+4053_daily_bin981.fits" evtable="EVENTS" scfile=/scratch/kocevski/231124/ft2_4FGL_J0809.3+4053_daily_bin981.fits sctable="SC_DATA" outfile=/scratch/kocevski/231124/ltcube_493603201_493862401_4FGL_J0809.3+4053_daily_bin981.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/231124/ft2_4FGL_J0809.3+4053_daily_bin981.fits
.....................!
real 11.87
user 11.17
sys 0.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231124/ft1_filtered_4FGL_J0809.3+4053_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/231124/ft2_4FGL_J0809.3+4053_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/231124/ltcube_493603201_493862401_4FGL_J0809.3+4053_daily_bin981.fits outfile=/scratch/kocevski/231124/expmap_493603201_493862401_4FGL_J0809.3+4053_daily_bin981.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/231124/ltcube_493603201_493862401_4FGL_J0809.3+4053_daily_bin981.fits
.....................!
real 191.19
user 185.25
sys 5.56

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/231124/ft1_filtered_4FGL_J0809.3+4053_daily_bin981.fits scfile=/scratch/kocevski/231124/ft2_4FGL_J0809.3+4053_daily_bin981.fits outfile=/scratch/kocevski/231124/cmap_493603201_493862401_4FGL_J0809.3+4053_daily_bin981.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.89
user 0.39
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231124/ft1_filtered_4FGL_J0809.3+4053_daily_bin981.fits scfile=/scratch/kocevski/231124/ft2_4FGL_J0809.3+4053_daily_bin981.fits outfile=/scratch/kocevski/231124/cmap_HighResolution_493603201_493862401_4FGL_J0809.3+4053_daily_bin981.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.90
user 0.39
sys 0.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0375       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8378       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.997       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.002       1.0000         .10000E-03   10000.    
     6 'norm      '    11.132       1.0000         .10000E-03   10000.    
     7 'norm      '    5.1412       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5931       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2603       1.0000         .10000E-03   10000.    
    12 'norm      '    .12413E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.570       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9647       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3793       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0740       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .79019       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2934       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=   6521.384     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2233 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0367        2.6161        .11276E-05   -.28712E-02
   2  Prefactor     5.8382        9.7062       -.46392E-07   -.22120E-04
   3  Prefactor     18.994        20.444       -.19503E-05   -.33059E-04
   4  Prefactor     .10000E-03    4.5073       -.26822E-06** at limit **
   5  Prefactor     27.003        20.226        .98683E-07    .22025E-04
   6  norm          11.133        11.478        .31580E-07   -.23905E-03
   7  norm          5.1406        2.8198        .17184E-07    .38038E-04
   8  Prefactor     6.5938        10.942       -.62533E-07    .14522E-04
   9  Prefactor     .10000E-03    35.118       -.12233E-04** at limit **
  10  Prefactor     .10000E-03    3.2296       -.47300E-06** at limit **
  11  norm          1.2603        1.2078       -.22085E-08    .74034E-04
  12  norm          .10032E-03    .33451        .20531E-06** at limit **
  13  Prefactor     .10000E-03    23.490        .11824E-04** at limit **
  14  Prefactor     12.570        11.634       -.27312E-06   -.13786E-03
  15  Prefactor     1.9647        2.5512        .67822E-07   -.17299E-03
  16  Prefactor     .10000E-03    22.834        .94125E-05** at limit **
  17  Prefactor     .10000E-03    12.806        .57566E-05** at limit **
  18  norm          .10000E-03    6.9488       -.10315E-05** at limit **
  19  Prefactor     2.3793        3.3254       -.20157E-07   -.14095E-03
  20  Prefactor     .10000E-03    14.902       -.14645E-04** at limit **
  21  Prefactor     1.0740        2.4797       -.10235E-06   -.29799E-03
  22  Normalizat    .79018        .19107       -.44642E-06   -.10048E-03
  23  Prefactor     1.2933        .14683        .42316E-06   -.15848E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.03675
  Prefactor  = 5.83815
  Prefactor  = 18.9942
  Prefactor  = 0.0001
  Prefactor  = 27.0027
  norm       = 11.1326
  norm       = 5.14063
  Prefactor  = 6.5938
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.26029
  norm       = 0.000100319
  Prefactor  = 0.0001
  Prefactor  = 12.57
  Prefactor  = 1.96467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.37931
  Prefactor  = 0.000100001
  Prefactor  = 1.07398
  Normalizat = 0.790179
  Prefactor  = 1.29334
 **********
 **   18 **HESSE 
 **********

 FCN=   6521.384     FROM HESSE     STATUS=OK           386 CALLS     2619 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0367        6.2277        .14487E-02   -1.5423    
   2  Prefactor     5.8382        9.7013        .16622E-03   -1.5225    
   3  Prefactor     18.994        20.441        .91892E-04   -1.4836    
   4  Prefactor     .10000E-03    4.5159        .16742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.003        20.193        .77095E-04   -1.4668    
   6  norm          11.133        11.518        .60038E-03   -1.5041    
   7  norm          5.1406        2.8198        .97479E-04   -1.5254    
   8  Prefactor     6.5938        10.915        .15629E-03   -1.5194    
   9  Prefactor     .10000E-03    35.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3061        .28308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2603        1.2379        .84734E-03   -1.5483    
  12  norm          .10032E-03    .33416        .14841E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.570        11.588        .11298E-03   -1.4999    
  15  Prefactor     1.9647        2.5249        .13731E-03   -1.5428    
  16  Prefactor     .10000E-03    22.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.0777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.3793        3.3166        .16688E-03   -1.5399    
  20  Prefactor     .10000E-03    14.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.0740        1.9274        .18784E-02   -1.5501    
  22  Normalizat    .79018        .21176        .31682E-03   -1.0043    
  23  Prefactor     1.2933        .16526        .20049E-03   -.83505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61984e-08
Minuit parameter uncertainties:
  1  6.22963
  2  9.70387
  3  20.4487
  4  1.5214e-07
  5  20.1982
  6  11.5207
  7  2.81991
  8  10.9179
  9  0.000285325
  10  3.54877e-06
  11  1.23795
  12  0.00065341
  13  0.000213305
  14  11.5904
  15  2.52508
  16  0.000149998
  17  4.43121e-05
  18  8.54719e-06
  19  3.3169
  20  0.000229742
  21  1.92748
  22  0.211981
  23  0.165324
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.293e+00  1.653e-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.902e-01  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/231124/likelihoodResults_493603201_493862401_4FGL_J0809.3+4053_daily_bin981.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) = 6521.38522815
delta logL = -0.00144183289012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6521.38378653
delta logL = -2.16110493056e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5887       1.0000          .0000       10.000    
     3 'Normalizat'    .79015       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2934       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=   6521.384     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1380        .90712E-02** at limit **
   2  Index         2.5892        8.3146        .50000       -.14794E-05
   3  Normalizat    .79018        .76695E-02    .71591E-01    .27859E-03
   4  Prefactor     1.2933        .60759E-02    .32726E-01    .41825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.58919
  Normalizat = 0.79018
  Prefactor  = 1.29334
 **********
 **   18 **HESSE 
 **********

 FCN=   6521.384     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      239 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    419.10        .28308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5892        6.0636        .50000       -.50312    
   3  Normalizat    .79018        .66117E-01    .31682E-03   -1.0043    
   4  Prefactor     1.2933        .52441E-01    .20049E-03   -.83505    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.41739e-07
Minuit parameter uncertainties:
  1  0.000364421
  2  1291.62
  3  0.0661235
  4  0.0524426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231124': 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): 102
logL (Free Index) = 6521.38378631
delta logL = 3.27418092638e-10

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  3.644e-04  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.589e+00  1.292e+03  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.293e+00  5.244e-02  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.902e-01  6.612e-02  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/231124/cmap_HighResolution_493603201_493862401_4FGL_J0809.3+4053_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.62e-08', time_completed='2021-08-29 08:05:28.934215', job_id='231124', GAL2='1.29', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1630249528.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='3.27e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='981' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:05:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 231124: <4FGL_J0809.3+4053_daily_bin981> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin981 122.33 40.8954 493603201 493862401 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 :                                   696.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            884 sec.

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

