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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin60
RA = 120.888, Dec = 20.7678
tmin = 254880001, tmax = 255139201
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='69102', job_status='RUN', time_executed='2021-08-28 22:48:59.248106', time_epoch_executed='1630216139.25' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='60'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69102

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69102/ft1_4FGL_J0803.5+2046_daily_bin60.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69102/ft2_4FGL_J0803.5+2046_daily_bin60.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69102/ft1_4FGL_J0803.5+2046_daily_bin60.fits outfile=/scratch/kocevski/69102/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin60.fits ra=120.888 dec=20.7678 rad=12.0 tmin=254880001.0 tmax=255139201.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 1.65
user 1.22
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/69102/ft2_4FGL_J0803.5+2046_daily_bin60.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/69102/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin60.fits evtable="EVENTS" outfile="/scratch/kocevski/69102/ft1_filtered_4FGL_J0803.5+2046_daily_bin60.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.74
user 0.32
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69102/ft1_filtered_4FGL_J0803.5+2046_daily_bin60.fits" evtable="EVENTS" scfile=/scratch/kocevski/69102/ft2_4FGL_J0803.5+2046_daily_bin60.fits sctable="SC_DATA" outfile=/scratch/kocevski/69102/ltcube_254880001_255139201_4FGL_J0803.5+2046_daily_bin60.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/69102/ft2_4FGL_J0803.5+2046_daily_bin60.fits
.....................!
real 12.79
user 12.18
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69102/ft1_filtered_4FGL_J0803.5+2046_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/69102/ft2_4FGL_J0803.5+2046_daily_bin60.fits sctable="SC_DATA" expcube=/scratch/kocevski/69102/ltcube_254880001_255139201_4FGL_J0803.5+2046_daily_bin60.fits outfile=/scratch/kocevski/69102/expmap_254880001_255139201_4FGL_J0803.5+2046_daily_bin60.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/69102/ltcube_254880001_255139201_4FGL_J0803.5+2046_daily_bin60.fits
.....................!
real 192.16
user 186.26
sys 5.59

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/69102/ft1_filtered_4FGL_J0803.5+2046_daily_bin60.fits scfile=/scratch/kocevski/69102/ft2_4FGL_J0803.5+2046_daily_bin60.fits outfile=/scratch/kocevski/69102/cmap_254880001_255139201_4FGL_J0803.5+2046_daily_bin60.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 0.77
user 0.36
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69102/ft1_filtered_4FGL_J0803.5+2046_daily_bin60.fits scfile=/scratch/kocevski/69102/ft2_4FGL_J0803.5+2046_daily_bin60.fits outfile=/scratch/kocevski/69102/cmap_HighResolution_254880001_255139201_4FGL_J0803.5+2046_daily_bin60.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 0.81
user 0.38
sys 0.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10310E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.3816       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7690       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.032       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.2970       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.339       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    26.693       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7103       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.478       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6980       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.993       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3650       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.670       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.6533       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89858       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99014       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=   5518.337     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2886 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    36.049        .50554E-06** at limit **
   2  norm          4.3815        1.6632        .27665E-07    .10210E-03
   3  norm          1.7690        1.3254        .46890E-08   -.85723E-04
   4  Prefactor     .10000E-03    6.7196       -.18280E-07** at limit **
   5  norm          .10000E-03    1.2140        .37575E-08** at limit **
   6  Prefactor     .10000E-03    19.349       -.26153E-06** at limit **
   7  Prefactor     26.033        20.534       -.15436E-07   -.68421E-04
   8  Prefactor     .10000E-03    27.634        .10590E-05** at limit **
   9  Prefactor     .10000E-03    2.4805        .58672E-07** at limit **
  10  Prefactor     .10000E-03    51.962        .11039E-05** at limit **
  11  norm          9.2966        13.940        .15566E-06   -.79015E-06
  12  Prefactor     13.340        12.057       -.48525E-07   -.21869E-06
  13  Prefactor     .10000E-03    39.709       -.11685E-05** at limit **
  14  norm          26.677        88.531        .19797E-05   -.82143E-05
  15  Prefactor     1.7066        83.185        .15950E-05    .49326E-06
  16  Prefactor     11.480        23.312       -.38303E-06   -.38365E-04
  17  Prefactor     .10000E-03    13.162        .23170E-07** at limit **
  18  Prefactor     1.6999        25.088        .11546E-04   -.56479E-05
  19  Prefactor     15.987        20.578        .27495E-06   -.13193E-04
  20  norm          1.3656        1.4395        .53817E-08   -.18580E-03
  21  Prefactor     19.669        11.060        .11417E-06   -.53938E-05
  22  Prefactor     .10000E-03    3.2397        .14086E-07** at limit **
  23  Prefactor     7.6529        30.254       -.11338E-07   -.12367E-05
  24  Normalizat    .89859        .20026       -.14298E-05   -.19451E-04
  25  Prefactor     .99009        .15069        .45429E-06    .50922E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  norm       = 4.38153
  norm       = 1.769
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.0328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.29656
  Prefactor  = 13.3395
  Prefactor  = 0.0001
  norm       = 26.6766
  Prefactor  = 1.70655
  Prefactor  = 11.4802
  Prefactor  = 0.0001
  Prefactor  = 1.69986
  Prefactor  = 15.9873
  norm       = 1.36561
  Prefactor  = 19.6689
  Prefactor  = 0.0001
  Prefactor  = 7.65293
  Normalizat = 0.89859
  Prefactor  = 0.990091
 **********
 **   18 **HESSE 
 **********

 FCN=   5518.337     FROM HESSE     STATUS=OK           431 CALLS     3317 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    37.292        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3815        1.6634        .56895E-04   -1.5289    
   3  norm          1.7690        1.3227        .71505E-04   -1.5442    
   4  Prefactor     .10000E-03    6.7771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.2175        .79894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.033        20.550        .78515E-04   -1.4687    
   8  Prefactor     .10000E-03    27.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5911        .22815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    52.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.2966        13.934        .65720E-03   -1.5098    
  12  Prefactor     13.340        12.057        .10967E-03   -1.4977    
  13  Prefactor     .10000E-03    39.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          26.677        88.688        .77538E-04   -1.4675    
  15  Prefactor     1.7066        83.208        .32144E-03   -1.5447    
  16  Prefactor     11.480        23.196        .11825E-03   -1.5030    
  17  Prefactor     .10000E-03    13.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.6999        25.141        .16144E-02   -1.5447    
  19  Prefactor     15.987        20.479        .10015E-03   -1.4908    
  20  norm          1.3656        1.4052        .79014E-04   -1.5474    
  21  Prefactor     19.669        11.046        .90307E-04   -1.4821    
  22  Prefactor     .10000E-03    3.2599        .13055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.6529        30.251        .14496E-03   -1.5155    
  24  Normalizat    .89859        .23121        .27853E-03   -.96510    
  25  Prefactor     .99009        .17532        .20707E-03   -.93061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28346e-10
Minuit parameter uncertainties:
  1  0.000662962
  2  1.6634
  3  1.32273
  4  1.7146e-06
  5  5.24764e-07
  6  7.78729e-06
  7  20.5553
  8  6.61508e-05
  9  6.28241e-06
  10  0.000230426
  11  13.9389
  12  12.0592
  13  3.64286e-05
  14  89.1305
  15  23.8672
  16  23.2145
  17  8.31549e-07
  18  13.0808
  19  20.4876
  20  1.4052
  21  11.047
  22  2.01898e-06
  23  30.3119
  24  0.231462
  25  0.175423
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  2.668e+01  8.913e+01  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:  9.901e-01  1.754e-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:  8.986e-01  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/69102/likelihoodResults_254880001_255139201_4FGL_J0803.5+2046_daily_bin60.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5517.83702644
delta logL = 0.500456417577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5517.77683087
delta logL = 0.560651986952

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.635       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5284       1.0000          .0000       5.0000    
     3 'Normalizat'    .84125       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0095       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=   5517.777     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      288 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.573        926.59        .88172E-04    .80843E-04
   2  alpha         4.5316        2.8700        .43021E-01    .20513E-04
   3  Normalizat    .84028        .25487        .28728E-03    .13696E-03
   4  Prefactor     1.0103        .21088        .20510E-03    .71683E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.5734
  alpha      = 4.53158
  Normalizat = 0.840278
  Prefactor  = 1.01029
 **********
 **   18 **HESSE 
 **********

 FCN=   5517.777     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.573        52.913        .35269E-05   -1.4800    
   2  alpha         4.5316        3.8996        .17208E-02    .94866    
   3  Normalizat    .84028        .22690        .11491E-04   -.98592    
   4  Prefactor     1.0103        .17386        .41019E-04   -.92387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23554e-10
Minuit parameter uncertainties:
  1  53.0341
  2  1.83679
  3  0.227159
  4  0.173959
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69102': 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) = 5517.77681952
delta logL = 0.560663334562

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  2.057e+01  5.303e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  4.532e+00  1.837e+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.010e+00  1.740e-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:  8.403e-01  2.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 120.888 20.768
Photon Index (Free Index): 4.53 +/- 1.84
Photon Flux (Free Index): 5.42e-08 +/- 5.58e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.06e-05

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/69102/cmap_HighResolution_254880001_255139201_4FGL_J0803.5+2046_daily_bin60.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-05', comment='SUCCESS', energy_flux2='1.02e-05', dlogl='5.61e-01', photon_flux2='5.42e-08', job_status='DONE', time_completed='2021-08-28 22:59:37.706876', photon_index_error2='1.84', photon_index2='4.53', ts='0.11', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='5.23e-08', energy_flux_error2='1.06e-05', EG='0.90', time_epoch_completed='1630216777.71', return_code='0', job_id='69102', GAL2='1.01', EG2='0.84', return_code2='0', photon_flux_error2='5.58e-08', ts2='1.26', photon_index='2.00' WHERE bin_id='60' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 22:59:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 69102: <4FGL_J0803.5+2046_daily_bin60> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin60> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Aug 28 22:45:57 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 22:45:59 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:45:59 2021
Terminated at Sat Aug 28 22:59:39 2021
Results reported at Sat Aug 28 22:59:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin60 120.888 20.7678 254880001 255139201 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 :                                   642.00 sec.
    Max Memory :                                 1115 MB
    Average Memory :                             301.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            822 sec.

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

