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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin570
RA = 120.888, Dec = 20.7678
tmin = 387072001, tmax = 387331201
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='72052', job_status='RUN', time_executed='2021-08-28 22:56:14.724121', time_epoch_executed='1630216574.72' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72052

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72052/ft1_4FGL_J0803.5+2046_daily_bin570.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72052/ft2_4FGL_J0803.5+2046_daily_bin570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72052/ft1_4FGL_J0803.5+2046_daily_bin570.fits outfile=/scratch/kocevski/72052/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin570.fits ra=120.888 dec=20.7678 rad=12.0 tmin=387072001.0 tmax=387331201.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 4.59
user 3.21
sys 1.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/72052/ft2_4FGL_J0803.5+2046_daily_bin570.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/72052/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin570.fits evtable="EVENTS" outfile="/scratch/kocevski/72052/ft1_filtered_4FGL_J0803.5+2046_daily_bin570.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.64
user 0.33
sys 1.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/72052/ft1_filtered_4FGL_J0803.5+2046_daily_bin570.fits" evtable="EVENTS" scfile=/scratch/kocevski/72052/ft2_4FGL_J0803.5+2046_daily_bin570.fits sctable="SC_DATA" outfile=/scratch/kocevski/72052/ltcube_387072001_387331201_4FGL_J0803.5+2046_daily_bin570.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/72052/ft2_4FGL_J0803.5+2046_daily_bin570.fits
.....................!
real 12.87
user 11.22
sys 1.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72052/ft1_filtered_4FGL_J0803.5+2046_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/72052/ft2_4FGL_J0803.5+2046_daily_bin570.fits sctable="SC_DATA" expcube=/scratch/kocevski/72052/ltcube_387072001_387331201_4FGL_J0803.5+2046_daily_bin570.fits outfile=/scratch/kocevski/72052/expmap_387072001_387331201_4FGL_J0803.5+2046_daily_bin570.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/72052/ltcube_387072001_387331201_4FGL_J0803.5+2046_daily_bin570.fits
.....................!
real 192.52
user 186.53
sys 5.60

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/72052/ft1_filtered_4FGL_J0803.5+2046_daily_bin570.fits scfile=/scratch/kocevski/72052/ft2_4FGL_J0803.5+2046_daily_bin570.fits outfile=/scratch/kocevski/72052/cmap_387072001_387331201_4FGL_J0803.5+2046_daily_bin570.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 1.70
user 0.36
sys 1.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72052/ft1_filtered_4FGL_J0803.5+2046_daily_bin570.fits scfile=/scratch/kocevski/72052/ft2_4FGL_J0803.5+2046_daily_bin570.fits outfile=/scratch/kocevski/72052/cmap_HighResolution_387072001_387331201_4FGL_J0803.5+2046_daily_bin570.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 1.66
user 0.38
sys 1.27

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/72052/ft1_filtered_4FGL_J0803.5+2046_daily_bin570.fits', '/scratch/kocevski/72052/ft2_4FGL_J0803.5+2046_daily_bin570.fits', expMap='/scratch/kocevski/72052/expmap_387072001_387331201_4FGL_J0803.5+2046_daily_bin570.fits', expCube='/scratch/kocevski/72052/ltcube_387072001_387331201_4FGL_J0803.5+2046_daily_bin570.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/72052/Model_4FGL_J0803.5+2046_daily_bin570.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/72052/ft1_filtered_4FGL_J0803.5+2046_daily_bin570.fits
Spacecraft file(s): /scratch/kocevski/72052/ft2_4FGL_J0803.5+2046_daily_bin570.fits
Exposure map: /scratch/kocevski/72052/expmap_387072001_387331201_4FGL_J0803.5+2046_daily_bin570.fits
Exposure cube: /scratch/kocevski/72052/ltcube_387072001_387331201_4FGL_J0803.5+2046_daily_bin570.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/72052/Model_4FGL_J0803.5+2046_daily_bin570.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) = 6690.54038353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.580       1.0000         .10000E-03   10000.    
     2 'norm      '    .94933       1.0000         .10000E-03   10000.    
     3 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.641       1.0000         .10000E-03   10000.    
     5 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    50.273       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.957       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.593       1.0000         .10000E-03   10000.    
    11 'norm      '    17.587       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .93762E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.093       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.999       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.936       1.0000         .10000E-03   10000.    
    20 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    62.572       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68464       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2982       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=   6690.497     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     3009 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.577        18.766        .45450E-07   -.81619E-04
   2  norm          .94929        1.7755        .75829E-06    .40382E-03
   3  norm          .10000E-03    1.7506        .10962E-05** at limit **
   4  Prefactor     33.621        13.135       -.10544E-05   -.12974E-02
   5  norm          .10000E-03    3.3812        .26460E-06** at limit **
   6  Prefactor     50.275        43.467        .62404E-07    .23914E-04
   7  Prefactor     .10000E-03    7.7034        .78948E-07** at limit **
   8  Prefactor     27.952        29.816        .43042E-08   -.12286E-03
   9  Prefactor     .10000E-03    2.2386        .97829E-07** at limit **
  10  Prefactor     18.593        39.977        .18996E-06    .11181E-05
  11  norm          17.596        17.429        .17593E-06   -.36605E-03
  12  Prefactor     .10035E-03    15.119        .40430E-05** at limit **
  13  Prefactor     .10000E-03    32.016       -.10408E-06** at limit **
  14  norm          .10000E-03    88.354       -.68982E-07** at limit **
  15  Prefactor     .10000E-03    12.044       -.56116E-07** at limit **
  16  Prefactor     10.092        25.385        .12395E-06   -.63900E-05
  17  Prefactor     24.988        36.420       -.93584E-06   -.16579E-03
  18  Prefactor     .10000E-03    31.522       -.34206E-06** at limit **
  19  Prefactor     12.937        18.409       -.34018E-08   -.15187E-04
  20  norm          .10000E-03    .74561       -.21036E-08** at limit **
  21  Prefactor     .10000E-03    15.143        .22384E-06** at limit **
  22  Prefactor     .10000E-03    4.6278       -.66686E-07** at limit **
  23  Prefactor     62.556        56.209       -.13905E-05   -.23444E-03
  24  Normalizat    .68462        .21487        .23390E-05   -.34142E-03
  25  Prefactor     1.2983        .16000       -.14711E-05   -.62481E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.5773
  norm       = 0.949293
  norm       = 0.0001
  Prefactor  = 33.6209
  norm       = 0.0001
  Prefactor  = 50.2749
  Prefactor  = 0.0001
  Prefactor  = 27.9525
  Prefactor  = 0.0001
  Prefactor  = 18.593
  norm       = 17.5964
  Prefactor  = 0.000100353
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0923
  Prefactor  = 24.988
  Prefactor  = 0.0001
  Prefactor  = 12.9368
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.5563
  Normalizat = 0.684624
  Prefactor  = 1.29827
 **********
 **   18 **HESSE 
 **********

 FCN=   6690.497     FROM HESSE     STATUS=OK           421 CALLS     3430 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.577        18.798        .90516E-04   -1.4823    
   2  norm          .94929        1.7589        .13827E-03   -1.5513    
   3  norm          .10000E-03    3.1049        .19228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     33.621        13.929        .69089E-04   -1.4548    
   5  norm          .10000E-03    3.4215        .14608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     50.275        43.320        .56560E-04   -1.4289    
   7  Prefactor     .10000E-03    7.7247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.952        29.808        .75769E-04   -1.4650    
   9  Prefactor     .10000E-03    2.2969        .23860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.593        39.903        .92887E-04   -1.4845    
  11  norm          17.596        16.870        .95505E-04   -1.4869    
  12  Prefactor     .10035E-03    47.785        .44254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    88.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.092        25.368        .12613E-03   -1.5072    
  17  Prefactor     24.988        36.686        .80118E-04   -1.4708    
  18  Prefactor     .10000E-03    31.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.937        17.491        .11137E-03   -1.4988    
  20  norm          .10000E-03    1.3715        .12880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.6765        .17177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     62.556        56.897        .50728E-04   -1.4124    
  24  Normalizat    .68462        .23057        .34843E-03   -1.0450    
  25  Prefactor     1.2983        .17523        .20232E-03   -.83358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85049e-09
Minuit parameter uncertainties:
  1  18.8035
  2  1.75901
  3  4.90786e-05
  4  13.9302
  5  1.90665e-05
  6  43.3474
  7  6.57872e-06
  8  29.824
  9  4.83719e-06
  10  39.9602
  11  16.8748
  12  0.00822437
  13  6.80946e-05
  14  0.00010842
  15  8.9761e-06
  16  25.395
  17  36.7188
  18  0.000174186
  19  17.4975
  20  1.74905e-06
  21  1.21185e-05
  22  2.06511e-06
  23  56.9464
  24  0.230901
  25  0.175314
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  1.084e-04  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:  1.298e+00  1.753e-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:  6.846e-01  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 120.888 20.768
Photon Flux Upper Limit: 3.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/72052/likelihoodResults_387072001_387331201_4FGL_J0803.5+2046_daily_bin570.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) = 6690.49747287
delta logL = -5.34615146535e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6690.49741998
delta logL = -5.78539584239e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8889       1.0000          .0000       5.0000    
     3 'Normalizat'    .68462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2983       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.

 FCN=   6690.497     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      240 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    42.720        .90712E-02** at limit **
   2  alpha         3.8911        3.6942        .50000       -.17535E-06
   3  Normalizat    .68462        .19518        .78692E-01    .30943E-04
   4  Prefactor     1.2983        .15214        .32640E-01   -.29130E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.89112
  Normalizat = 0.684625
  Prefactor  = 1.29827
 **********
 **   18 **HESSE 
 **********

 FCN=   6690.497     FROM HESSE     STATUS=OK            31 CALLS      271 TOTAL
                     EDM=   .61E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    42.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.8911        3.6937        .20000        .59010    
   3  Normalizat    .68462        .21634        .34842E-03   -1.0450    
   4  Prefactor     1.2983        .16909        .20232E-03   -.83358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0545e-14
Minuit parameter uncertainties:
  1  1.50931e-05
  2  2.07722
  3  0.216614
  4  0.169157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72052': 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) = 6690.49741998
delta logL = -5.78351318836e-07

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  1.509e-05  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  3.891e+00  2.077e+00  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:  1.298e+00  1.692e-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:  6.846e-01  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 120.888 20.768

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/72052/cmap_HighResolution_387072001_387331201_4FGL_J0803.5+2046_daily_bin570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-05', job_status='DONE', photon_flux_upper_limit='3.50e-08', time_completed='2021-08-28 23:08:19.157737', job_id='72052', GAL2='1.30', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630217299.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='-5.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='570' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:08:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 72052: <4FGL_J0803.5+2046_daily_bin570> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin570> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 28 22:55:36 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 22:55:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 22:55:37 2021
Terminated at Sat Aug 28 23:08:21 2021
Results reported at Sat Aug 28 23:08:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin570 120.888 20.7678 387072001 387331201 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 :                                   741.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            765 sec.

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

