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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1503
RA = 120.888, Dec = 20.7678
tmin = 628905601, tmax = 629164801
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='76665', job_status='RUN', time_executed='2021-08-28 23:14:26.910357', time_epoch_executed='1630217666.91' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/76665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/76665/ft1_4FGL_J0803.5+2046_daily_bin1503.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/76665/ft2_4FGL_J0803.5+2046_daily_bin1503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/76665/ft1_4FGL_J0803.5+2046_daily_bin1503.fits outfile=/scratch/kocevski/76665/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1503.fits ra=120.888 dec=20.7678 rad=12.0 tmin=628905601.0 tmax=629164801.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.67
user 3.33
sys 4.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/76665/ft1_filtered_4FGL_J0803.5+2046_daily_bin1503.fits" evtable="EVENTS" scfile=/scratch/kocevski/76665/ft2_4FGL_J0803.5+2046_daily_bin1503.fits sctable="SC_DATA" outfile=/scratch/kocevski/76665/ltcube_628905601_629164801_4FGL_J0803.5+2046_daily_bin1503.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/76665/ft2_4FGL_J0803.5+2046_daily_bin1503.fits
.....................!
real 16.99
user 11.98
sys 4.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/76665/ft1_filtered_4FGL_J0803.5+2046_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/76665/ft2_4FGL_J0803.5+2046_daily_bin1503.fits sctable="SC_DATA" expcube=/scratch/kocevski/76665/ltcube_628905601_629164801_4FGL_J0803.5+2046_daily_bin1503.fits outfile=/scratch/kocevski/76665/expmap_628905601_629164801_4FGL_J0803.5+2046_daily_bin1503.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/76665/ltcube_628905601_629164801_4FGL_J0803.5+2046_daily_bin1503.fits
.....................!
real 197.18
user 186.79
sys 9.95

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/76665/ft1_filtered_4FGL_J0803.5+2046_daily_bin1503.fits scfile=/scratch/kocevski/76665/ft2_4FGL_J0803.5+2046_daily_bin1503.fits outfile=/scratch/kocevski/76665/cmap_628905601_629164801_4FGL_J0803.5+2046_daily_bin1503.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.49
user 0.38
sys 4.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/76665/ft1_filtered_4FGL_J0803.5+2046_daily_bin1503.fits scfile=/scratch/kocevski/76665/ft2_4FGL_J0803.5+2046_daily_bin1503.fits outfile=/scratch/kocevski/76665/cmap_HighResolution_628905601_629164801_4FGL_J0803.5+2046_daily_bin1503.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.53
user 0.40
sys 4.11

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.184       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9783       1.0000         .10000E-03   10000.    
     3 'norm      '    2.4087       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .17436E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.765       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.684       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0148       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6019       1.0000         .10000E-03   10000.    
    13 'Prefactor '    87.682       1.0000         .10000E-03   10000.    
    14 'norm      '    145.59       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.809       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.809       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.136       1.0000         .10000E-03   10000.    
    20 'norm      '    .86005       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.7555       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2258       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .68761       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=   7078.984     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2909 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.183        17.412        .11948E-06   -.25150E-04
   2  norm          1.9783        1.1934        .31185E-07   -.74725E-04
   3  norm          2.4082        1.2861        .15202E-07   -.13672E-03
   4  Prefactor     .10000E-03    4.0980        .16675E-07** at limit **
   5  norm          .10058E-03    2.3346        .10308E-05** at limit **
   6  Prefactor     31.796        42.364       -.81772E-06   -.16226E-03
   7  Prefactor     .10000E-03    38.012        .40533E-06** at limit **
   8  Prefactor     .10000E-03    12.799        .13810E-07** at limit **
   9  Prefactor     .10000E-03    1.4130       -.50647E-07** at limit **
  10  Prefactor     20.686        32.433       -.29817E-05   -.28216E-03
  11  norm          1.0144        9.5877        .30532E-05   -.75631E-03
  12  Prefactor     6.5974        12.296        .47756E-07    .59474E-05
  13  Prefactor     87.662        99.450       -.29388E-05   -.11717E-03
  14  norm          145.58        96.712       -.15782E-06   -.35685E-04
  15  Prefactor     .10000E-03    7.9208        .12440E-07** at limit **
  16  Prefactor     11.810        21.088        .18823E-06   -.47634E-04
  17  Prefactor     16.796        34.360       -.17014E-05   -.12874E-03
  18  Prefactor     .10000E-03    18.358       -.48353E-06** at limit **
  19  Prefactor     43.152        23.510        .80066E-07   -.94959E-04
  20  norm          .85843        1.1809        .41120E-07   -.53714E-04
  21  Prefactor     .10000E-03    1.8409       -.13503E-07** at limit **
  22  Prefactor     4.7553        5.9797       -.39409E-06   -.35109E-03
  23  Prefactor     .10000E-03    18.953        .40830E-06** at limit **
  24  Normalizat    1.2259        .17961       -.17151E-05   -.66713E-03
  25  Prefactor     .68756        .12746        .32218E-06   -.66999E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 37.1833
  norm       = 1.97825
  norm       = 2.40824
  Prefactor  = 0.0001
  norm       = 0.000100576
  Prefactor  = 31.7962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6858
  norm       = 1.01437
  Prefactor  = 6.5974
  Prefactor  = 87.662
  norm       = 145.584
  Prefactor  = 0.0001
  Prefactor  = 11.8097
  Prefactor  = 16.7958
  Prefactor  = 0.0001
  Prefactor  = 43.1519
  norm       = 0.858432
  Prefactor  = 0.0001
  Prefactor  = 4.75534
  Prefactor  = 0.0001
  Normalizat = 1.2259
  Prefactor  = 0.687555
 **********
 **   18 **HESSE 
 **********

 FCN=   7078.984     FROM HESSE     STATUS=OK           433 CALLS     3342 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.183        17.432        .65725E-04   -1.4488    
   2  norm          1.9783        1.1885        .68785E-04   -1.5427    
   3  norm          2.4082        1.2857        .67425E-04   -1.5398    
   4  Prefactor     .10000E-03    4.1170        .16619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10058E-03    9.5404        .35695E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.796        47.999        .71093E-04   -1.4580    
   7  Prefactor     .10000E-03    39.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.4351        .97499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.686        33.014        .88068E-04   -1.4798    
  11  norm          1.0144        17.495        .96504E-01   -1.5507    
  12  Prefactor     6.5974        13.819        .15618E-03   -1.5194    
  13  Prefactor     87.662        99.921        .21453E-03   -1.3833    
  14  norm          145.58        96.736        .33396E-04   -1.3289    
  15  Prefactor     .10000E-03    7.9231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.810        21.084        .58288E-03   -1.5021    
  17  Prefactor     16.796        34.439        .97690E-04   -1.4888    
  18  Prefactor     .10000E-03    19.098        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     43.152        22.861        .61039E-04   -1.4393    
  20  norm          .85843        1.0505        .94358E-03   -1.5523    
  21  Prefactor     .10000E-03    1.8426        .11147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.7553        6.0007        .18451E-03   -1.5272    
  23  Prefactor     .10000E-03    19.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2259        .20850        .25169E-03   -.85806    
  25  Prefactor     .68756        .14772        .23667E-03   -1.0402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16141e-09
Minuit parameter uncertainties:
  1  17.4344
  2  1.18847
  3  1.28572
  4  6.58174e-06
  5  0.00468922
  6  48.0575
  7  9.43604e-05
  8  9.32941e-06
  9  3.05831e-06
  10  33.0428
  11  8.4277
  12  13.8261
  13  100.114
  14  96.841
  15  4.49677e-06
  16  21.0976
  17  34.4793
  18  4.00425e-05
  19  22.866
  20  1.0505
  21  1.36397e-06
  22  6.00148
  23  8.12336e-05
  24  0.208642
  25  0.147801
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.456e+02  9.684e+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:  6.876e-01  1.478e-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.226e+00  2.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.14
Ra Dec: 120.888 20.768
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.66e-08 +/- 1.77e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 9.31e-06

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) = 7077.68588982
delta logL = 1.2985029558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7077.67250315
delta logL = 1.31188962697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    104.30       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4866       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70410       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=   7077.672     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      301 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          104.34        92.104        .19687E-03    .82232E-04
   2  alpha         3.4865        .94425        .18240E-01    .13628E-04
   3  Normalizat    1.1754        .20422        .25607E-03   -.97405E-04
   4  Prefactor     .70443        .14621        .23379E-03    .20516E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 104.341
  alpha      = 3.48651
  Normalizat = 1.17542
  Prefactor  = 0.704427
 **********
 **   18 **HESSE 
 **********

 FCN=   7077.672     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          104.34        84.859        .78748E-05   -1.3661    
   2  alpha         3.4865        .87275        .72961E-03    .40564    
   3  Normalizat    1.1754        .20362        .10243E-04   -.87366    
   4  Prefactor     .70443        .14596        .93517E-05   -1.0335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16013e-10
Minuit parameter uncertainties:
  1  84.9582
  2  0.895239
  3  0.203756
  4  0.146041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/76665': 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) = 7077.67249992
delta logL = 1.31189285493

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.043e+02  8.496e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  3.487e+00  8.952e-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.044e-01  1.460e-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.175e+00  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.73
Ra Dec: 120.888 20.768
Photon Index (Free Index): 3.49 +/- 0.90
Photon Flux (Free Index): 7.11e-08 +/- 4.72e-08
Energy Flux (Free Index): 1.84e-05 +/- 9.64e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/76665/cmap_HighResolution_628905601_629164801_4FGL_J0803.5+2046_daily_bin1503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.66e-08', energy_flux2='1.84e-05', photon_flux_error='1.77e-08', dlogl='1.31e+00', energy_flux='1.40e-05', photon_flux2='7.11e-08', job_status='DONE', time_completed='2021-08-28 23:26:17.955369', photon_index_error2='0.90', photon_index2='3.49', ts='4.14', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='9.64e-06', EG='1.23', time_epoch_completed='1630218377.96', return_code='0', job_id='76665', GAL2='0.70', EG2='1.18', return_code2='0', energy_flux_error='9.31e-06', photon_flux_error2='4.72e-08', ts2='6.73', photon_index='2.00' WHERE bin_id='1503' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:26:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 76665: <4FGL_J0803.5+2046_daily_bin1503> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1503> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 23:10:24 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:10:26 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:10:26 2021
Terminated at Sat Aug 28 23:26:19 2021
Results reported at Sat Aug 28 23:26:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1503 120.888 20.7678 628905601 629164801 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 :                                   772.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            955 sec.

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

