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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin1522
RA = 122.33, Dec = 40.8954
tmin = 633830401, tmax = 634089601
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='235803', job_status='RUN', time_executed='2021-08-29 08:01:51.982344', time_epoch_executed='1630249311.98' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='1522'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/235803

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/235803/ft1_4FGL_J0809.3+4053_daily_bin1522.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/235803/ft2_4FGL_J0809.3+4053_daily_bin1522.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/235803/ft1_4FGL_J0809.3+4053_daily_bin1522.fits outfile=/scratch/kocevski/235803/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin1522.fits ra=122.33 dec=40.8954 rad=12.0 tmin=633830401.0 tmax=634089601.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 6.77
user 3.38
sys 3.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/235803/ft1_filtered_4FGL_J0809.3+4053_daily_bin1522.fits" evtable="EVENTS" scfile=/scratch/kocevski/235803/ft2_4FGL_J0809.3+4053_daily_bin1522.fits sctable="SC_DATA" outfile=/scratch/kocevski/235803/ltcube_633830401_634089601_4FGL_J0809.3+4053_daily_bin1522.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/235803/ft2_4FGL_J0809.3+4053_daily_bin1522.fits
.....................!
real 15.56
user 11.67
sys 3.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/235803/ft1_filtered_4FGL_J0809.3+4053_daily_bin1522.fits evtable="EVENTS" scfile=/scratch/kocevski/235803/ft2_4FGL_J0809.3+4053_daily_bin1522.fits sctable="SC_DATA" expcube=/scratch/kocevski/235803/ltcube_633830401_634089601_4FGL_J0809.3+4053_daily_bin1522.fits outfile=/scratch/kocevski/235803/expmap_633830401_634089601_4FGL_J0809.3+4053_daily_bin1522.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/235803/ltcube_633830401_634089601_4FGL_J0809.3+4053_daily_bin1522.fits
.....................!
real 195.20
user 186.44
sys 7.81

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/235803/ft1_filtered_4FGL_J0809.3+4053_daily_bin1522.fits scfile=/scratch/kocevski/235803/ft2_4FGL_J0809.3+4053_daily_bin1522.fits outfile=/scratch/kocevski/235803/cmap_633830401_634089601_4FGL_J0809.3+4053_daily_bin1522.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 3.53
user 0.36
sys 3.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/235803/ft1_filtered_4FGL_J0809.3+4053_daily_bin1522.fits scfile=/scratch/kocevski/235803/ft2_4FGL_J0809.3+4053_daily_bin1522.fits outfile=/scratch/kocevski/235803/cmap_HighResolution_633830401_634089601_4FGL_J0809.3+4053_daily_bin1522.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 3.49
user 0.36
sys 3.11

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5758       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2615       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10632E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .37378E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10370E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    62.681       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .86287E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1315       1.0000         .10000E-03   10000.    
    12 'norm      '    .40175       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8566       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26212E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.955       1.0000         .10000E-03   10000.    
    18 'norm      '    6.2558       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7471       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2257       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82725       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=   7005.940     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2613 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.5176       -.24274E-06** at limit **
   2  Prefactor     4.5680        15.701       -.77660E-06   -.17569E-04
   3  Prefactor     5.2575        20.312       -.41447E-06    .12512E-04
   4  Prefactor     .10000E-03    11.042        .18961E-06** at limit **
   5  Prefactor     .10000E-03    61.507        .76638E-05** at limit **
   6  norm          .10000E-03    42.190        .12348E-04** at limit **
   7  norm          .10000E-03    1.6216        .30486E-06** at limit **
   8  Prefactor     .10000E-03    3.9441        .16640E-05** at limit **
   9  Prefactor     62.663        47.394        .16468E-05    .16225E-04
  10  Prefactor     .10000E-03    2.0034        .61688E-07** at limit **
  11  norm          1.1315        1.0318        .41787E-07   -.25820E-04
  12  norm          .40190        .41307        .19024E-06    .60919E-03
  13  Prefactor     .10000E-03    11.309       -.43498E-07** at limit **
  14  Prefactor     3.8669        10.314       -.31817E-05   -.31735E-03
  15  Prefactor     .23584E-01    1.4883        .12676E-05   -.41570E-03
  16  Prefactor     .10000E-03    8.2706        .37143E-06** at limit **
  17  Prefactor     10.956        11.335       -.73082E-07   -.10455E-03
  18  norm          6.2569        6.0320       -.14897E-06    .24901E-05
  19  Prefactor     .10000E-03    1.6327        .17840E-07** at limit **
  20  Prefactor     .10000E-03    17.595        .44040E-06** at limit **
  21  Prefactor     1.7472        1.9924        .11770E-06   -.34506E-04
  22  Normalizat    1.2256        .18202       -.19801E-05   -.32675E-03
  23  Prefactor     .82732        .12863        .95070E-06   -.83641E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 4.56804
  Prefactor  = 5.25755
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.663
  Prefactor  = 0.000100001
  norm       = 1.13148
  norm       = 0.401902
  Prefactor  = 0.0001
  Prefactor  = 3.8669
  Prefactor  = 0.0235839
  Prefactor  = 0.0001
  Prefactor  = 10.9563
  norm       = 6.25689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.74719
  Normalizat = 1.22556
  Prefactor  = 0.827317
 **********
 **   18 **HESSE 
 **********

 FCN=   7005.940     FROM HESSE     STATUS=OK           380 CALLS     2993 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.6499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.5680        15.655        .18818E-03   -1.5280    
   3  Prefactor     5.2575        20.304        .17523E-03   -1.5249    
   4  Prefactor     .10000E-03    11.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    62.341        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    41.834        .36765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6864        .20789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.9204        .16136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     62.663        47.432        .50684E-04   -1.4123    
  10  Prefactor     .10000E-03    23.197        .22343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1315        1.0393        .79175E-04   -1.5495    
  12  norm          .40190        .38424        .52031E-03   -1.5581    
  13  Prefactor     .10000E-03    11.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8669        10.777        .20549E-03   -1.5315    
  15  Prefactor     .23584E-01    2.8143        .31718E-01   -1.5677    
  16  Prefactor     .10000E-03    8.2834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.956        11.345        .12105E-03   -1.5046    
  18  norm          6.2569        6.0313        .16049E-03   -1.5208    
  19  Prefactor     .10000E-03    1.6910        .20867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.7472        1.9923        .12289E-03   -1.5444    
  22  Normalizat    1.2256        .20470        .24884E-03   -.85816    
  23  Prefactor     .82732        .14436        .21816E-03   -.98729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37267e-09
Minuit parameter uncertainties:
  1  4.4807e-06
  2  15.6688
  3  20.3305
  4  2.51374e-05
  5  0.000383997
  6  0.000151876
  7  6.17351e-06
  8  2.98378e-05
  9  47.4606
  10  0.000294522
  11  1.03936
  12  0.384243
  13  1.5866e-05
  14  10.7821
  15  0.514188
  16  2.80622e-05
  17  11.3474
  18  6.03187
  19  1.07821e-05
  20  6.74864e-05
  21  1.99241
  22  0.204831
  23  0.144423
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  2.945e-04  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:  8.273e-01  1.444e-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.226e+00  2.048e-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.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/235803/likelihoodResults_633830401_634089601_4FGL_J0809.3+4053_daily_bin1522.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) = 7005.9400693
delta logL = -0.000204373665838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7005.93986486
delta logL = 6.38956407784e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6214       1.0000          .0000       10.000    
     3 'Normalizat'    1.2256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82732       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=   7005.940     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      240 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .12280        .65164E-01** at limit **
   2  Index         2.6491        5.9401        .50000       -.85060E-05
   3  Normalizat    1.2256        .11463E-02    .56272E-01   -.28642E-03
   4  Prefactor     .82732        .84768E-03    .44072E-01   -.22334E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.64915
  Normalizat = 1.22556
  Prefactor  = 0.827322
 **********
 **   18 **HESSE 
 **********

 FCN=   7005.940     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      275 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    272.06        .22207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6491        6.1207        .50000       -.48948    
   3  Normalizat    1.2256        .14906E-01    .24884E-03   -.85817    
   4  Prefactor     .82732        .11026E-01    .21816E-03   -.98729    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.71641e-07
Minuit parameter uncertainties:
  1  0.000545394
  2  450.197
  3  0.0149065
  4  0.0110259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/235803': 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) = 7005.93986477
delta logL = 1.52099346451e-07

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  5.454e-04  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.649e+00  4.502e+02  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:  8.273e-01  1.103e-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:  1.226e+00  1.491e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/235803/cmap_HighResolution_633830401_634089601_4FGL_J0809.3+4053_daily_bin1522.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', job_status='DONE', photon_flux_upper_limit='7.82e-08', time_completed='2021-08-29 08:15:05.933639', job_id='235803', GAL2='0.83', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630250105.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1522' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:15:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 235803: <4FGL_J0809.3+4053_daily_bin1522> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin1522> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 08:00:48 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:00:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 08:00:50 2021
Terminated at Sun Aug 29 08:15:07 2021
Results reported at Sun Aug 29 08:15:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin1522 122.33 40.8954 633830401 634089601 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 :                                   827.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            859 sec.

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

