/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 94 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 = 7632
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1165
RA = 120.888, Dec = 20.7678
tmin = 541296001, tmax = 541555201
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='75171', job_status='RUN', time_executed='2021-08-28 23:08:36.871327', time_epoch_executed='1630217316.87' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75171

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75171/ft1_4FGL_J0803.5+2046_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75171/ft2_4FGL_J0803.5+2046_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75171/ft1_4FGL_J0803.5+2046_daily_bin1165.fits outfile=/scratch/kocevski/75171/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1165.fits ra=120.888 dec=20.7678 rad=12.0 tmin=541296001.0 tmax=541555201.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 7.61
user 3.48
sys 4.08

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/75171/ft2_4FGL_J0803.5+2046_daily_bin1165.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75171/ft2_4FGL_J0803.5+2046_daily_bin1165.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/75171/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1165.fits evtable="EVENTS" outfile="/scratch/kocevski/75171/ft1_filtered_4FGL_J0803.5+2046_daily_bin1165.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 4.38
user 0.34
sys 4.01

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75171/ft1_filtered_4FGL_J0803.5+2046_daily_bin1165.fits" evtable="EVENTS" scfile=/scratch/kocevski/75171/ft2_4FGL_J0803.5+2046_daily_bin1165.fits sctable="SC_DATA" outfile=/scratch/kocevski/75171/ltcube_541296001_541555201_4FGL_J0803.5+2046_daily_bin1165.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/75171/ft2_4FGL_J0803.5+2046_daily_bin1165.fits
.....................!
real 16.46
user 11.76
sys 4.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75171/ft1_filtered_4FGL_J0803.5+2046_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/75171/ft2_4FGL_J0803.5+2046_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/75171/ltcube_541296001_541555201_4FGL_J0803.5+2046_daily_bin1165.fits outfile=/scratch/kocevski/75171/expmap_541296001_541555201_4FGL_J0803.5+2046_daily_bin1165.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/75171/ltcube_541296001_541555201_4FGL_J0803.5+2046_daily_bin1165.fits
.....................!
real 196.56
user 186.62
sys 9.50

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J0803.5+2046 @ 120.888 20.7678

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/75171/ft1_filtered_4FGL_J0803.5+2046_daily_bin1165.fits scfile=/scratch/kocevski/75171/ft2_4FGL_J0803.5+2046_daily_bin1165.fits outfile=/scratch/kocevski/75171/cmap_541296001_541555201_4FGL_J0803.5+2046_daily_bin1165.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=120.888 yref=20.7678 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 4.30
user 0.37
sys 3.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75171/ft1_filtered_4FGL_J0803.5+2046_daily_bin1165.fits scfile=/scratch/kocevski/75171/ft2_4FGL_J0803.5+2046_daily_bin1165.fits outfile=/scratch/kocevski/75171/cmap_HighResolution_541296001_541555201_4FGL_J0803.5+2046_daily_bin1165.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=120.888 yref=20.7678 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 4.24
user 0.38
sys 3.84

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/75171/ft1_filtered_4FGL_J0803.5+2046_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/75171/ft2_4FGL_J0803.5+2046_daily_bin1165.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75171/Model_4FGL_J0803.5+2046_daily_bin1165.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/75171/ft1_filtered_4FGL_J0803.5+2046_daily_bin1165.fits.....................!
real 89.23
user 82.67
sys 6.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75171/ft1_filtered_4FGL_J0803.5+2046_daily_bin1165.fits', '/scratch/kocevski/75171/ft2_4FGL_J0803.5+2046_daily_bin1165.fits', expMap='/scratch/kocevski/75171/expmap_541296001_541555201_4FGL_J0803.5+2046_daily_bin1165.fits', expCube='/scratch/kocevski/75171/ltcube_541296001_541555201_4FGL_J0803.5+2046_daily_bin1165.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75171/Model_4FGL_J0803.5+2046_daily_bin1165.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0803.5+2046'

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  9.736e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/75171/ft1_filtered_4FGL_J0803.5+2046_daily_bin1165.fits
Spacecraft file(s): /scratch/kocevski/75171/ft2_4FGL_J0803.5+2046_daily_bin1165.fits
Exposure map: /scratch/kocevski/75171/expmap_541296001_541555201_4FGL_J0803.5+2046_daily_bin1165.fits
Exposure cube: /scratch/kocevski/75171/ltcube_541296001_541555201_4FGL_J0803.5+2046_daily_bin1165.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75171/Model_4FGL_J0803.5+2046_daily_bin1165.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) = 7883.35194528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.209       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7049       1.0000         .10000E-03   10000.    
     3 'norm      '    .10438E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .35126E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6375       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.157       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4700       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.050       1.0000         .10000E-03   10000.    
    14 'norm      '    157.17       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.997       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2908       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.6343       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.8606       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75242       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7883.340     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     3323 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.209        18.234        .18676E-06   -.21338E-04
   2  norm          1.7048        1.3562        .12890E-06   -.42972E-04
   3  norm          .10000E-03    1.1380       -.21280E-06** at limit **
   4  Prefactor     .10000E-03    5.2148        .46758E-06** at limit **
   5  norm          1.6372        3.7156        .10934E-05    .34149E-04
   6  Prefactor     .10000E-03    10.543       -.16771E-07** at limit **
   7  Prefactor     .10000E-03    6.9569       -.18094E-06** at limit **
   8  Prefactor     .10000E-03    115.50       -.53619E-07** at limit **
   9  Prefactor     .10000E-03    2.4245        .38636E-05** at limit **
  10  Prefactor     27.163        35.134       -.43467E-07   -.10637E-04
  11  norm          .10000E-03    7.9284        .77130E-07** at limit **
  12  Prefactor     7.4716        10.150        .30857E-06   -.94803E-04
  13  Prefactor     23.390        240.36        .18902E-05    .51693E-04
  14  norm          157.16        123.51        .71078E-06   -.24485E-04
  15  Prefactor     .10000E-03    16.872       -.12639E-06** at limit **
  16  Prefactor     .10000E-03    14.679       -.48267E-07** at limit **
  17  Prefactor     .10000E-03    12.824       -.22549E-06** at limit **
  18  Prefactor     .10000E-03    6.1159        .13504E-07** at limit **
  19  Prefactor     18.995        36.622        .11920E-05   -.34716E-04
  20  norm          2.2909        1.8300        .59260E-07   -.12945E-03
  21  Prefactor     .10000E-03    7.9411       -.57420E-06** at limit **
  22  Prefactor     4.6357        8.5620        .82130E-05    .70784E-04
  23  Prefactor     .10000E-03    17.991       -.34637E-06** at limit **
  24  Normalizat    1.8604        .21695       -.43467E-05   -.27454E-04
  25  Prefactor     .75254        .15084        .25245E-05   -.40990E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 37.2091
  norm       = 1.70478
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 1.6372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.1634
  norm       = 0.0001
  Prefactor  = 7.47161
  Prefactor  = 23.3897
  norm       = 157.157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9951
  norm       = 2.29093
  Prefactor  = 0.0001
  Prefactor  = 4.63566
  Prefactor  = 0.0001
  Normalizat = 1.86036
  Prefactor  = 0.752544
 **********
 **   18 **HESSE 
 **********

 FCN=   7883.340     FROM HESSE     STATUS=OK           429 CALLS     3752 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.209        18.258        .65703E-04   -1.4487    
   2  norm          1.7048        1.3467        .88277E-04   -1.5447    
   3  norm          .10000E-03    2.0245        .16963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    60.600        .35883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6372        3.6757        .23831E-03   -1.5452    
   6  Prefactor     .10000E-03    10.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.9642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    116.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.4818        .26944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.163        34.951        .76875E-04   -1.4665    
  11  norm          .10000E-03    7.9305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.4716        10.139        .14674E-03   -1.5161    
  13  Prefactor     23.390        234.04        .41716E-03   -1.4740    
  14  norm          157.16        123.56        .16080E-03   -1.3194    
  15  Prefactor     .10000E-03    16.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.1254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.995        36.557        .91893E-04   -1.4836    
  20  norm          2.2909        1.8131        .86789E-04   -1.5405    
  21  Prefactor     .10000E-03    8.0111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.6357        8.5844        .93480E-03   -1.5277    
  23  Prefactor     .10000E-03    18.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.8604        .25116        .26658E-03   -.68098    
  25  Prefactor     .75254        .17419        .27929E-03   -1.0150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05725e-09
Minuit parameter uncertainties:
  1  18.2603
  2  1.34676
  3  2.66222e-05
  4  0.00085532
  5  3.67619
  6  9.31539e-06
  7  2.08644e-06
  8  0.000365008
  9  1.26681e-05
  10  34.9775
  11  6.96865e-06
  12  10.141
  13  148.734
  14  123.761
  15  4.24691e-05
  16  4.71022e-05
  17  3.23591e-05
  18  6.47679e-06
  19  36.5998
  20  1.81315
  21  2.34684e-05
  22  8.58665
  23  5.85417e-05
  24  0.251339
  25  0.174315
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.572e+02  1.238e+02  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  7.525e-01  1.743e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.860e+00  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.84
Ra Dec: 120.888 20.768
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.87e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.19e-05

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) = 7880.9741877
delta logL = 2.36578621341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7880.96333349
delta logL = 2.37664042832

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    133.04       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9466       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79947       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+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=   7880.963     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      299 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          132.95        109.27        .17456E-03   -.15676E-03
   2  alpha         3.9461        .76536        .77251E-02   -.26955E-04
   3  Normalizat    1.7136        .25055        .27448E-03    .45037E-03
   4  Prefactor     .79970        .17287        .27078E-03   -.33227E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 132.949
  alpha      = 3.94613
  Normalizat = 1.71358
  Prefactor  = 0.799697
 **********
 **   18 **HESSE 
 **********

 FCN=   7880.963     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          132.95        102.47        .69825E-05   -1.3397    
   2  alpha         3.9461        .71929        .30900E-03    .61683    
   3  Normalizat    1.7136        .24995        .54896E-04   -.71941    
   4  Prefactor     .79970        .17255        .10831E-04   -.99740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56852e-09
Minuit parameter uncertainties:
  1  102.604
  2  0.735111
  3  0.250138
  4  0.172663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75171': 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) = 7880.9633285
delta logL = 2.37664541417

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.329e+02  1.026e+02  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  3.946e+00  7.351e-01  0.000e+00  5.000e+00 ( 1.000e+00)
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  7.997e-01  1.727e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.714e+00  2.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.67
Ra Dec: 120.888 20.768
Photon Index (Free Index): 3.95 +/- 0.74
Photon Flux (Free Index): 1.59e-07 +/- 7.96e-08
Energy Flux (Free Index): 3.51e-05 +/- 1.45e-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/75171/cmap_HighResolution_541296001_541555201_4FGL_J0803.5+2046_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.87e-08', energy_flux2='3.51e-05', photon_flux_error='2.26e-08', dlogl='2.38e+00', energy_flux='1.51e-05', photon_flux2='1.59e-07', job_status='DONE', time_completed='2021-08-28 23:21:51.628909', photon_index_error2='0.74', photon_index2='3.95', ts='4.84', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.86', time_epoch_completed='1630218111.63', return_code='0', job_id='75171', GAL2='0.80', EG2='1.71', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='7.96e-08', ts2='9.67', photon_index='2.00' WHERE bin_id='1165' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:21:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 75171: <4FGL_J0803.5+2046_daily_bin1165> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1165> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 23:05:38 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:05:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 23:05:40 2021
Terminated at Sat Aug 28 23:21:52 2021
Results reported at Sat Aug 28 23:21:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1165 120.888 20.7678 541296001 541555201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0803.5+2046 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   849.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            974 sec.

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

