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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1582
RA = 120.888, Dec = 20.7678
tmin = 649382401, tmax = 649641601
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='76790', job_status='RUN', time_executed='2021-08-28 23:13:38.779443', time_epoch_executed='1630217618.78' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/76790

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/76790/ft1_4FGL_J0803.5+2046_daily_bin1582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/76790/ft2_4FGL_J0803.5+2046_daily_bin1582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/76790/ft1_4FGL_J0803.5+2046_daily_bin1582.fits outfile=/scratch/kocevski/76790/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1582.fits ra=120.888 dec=20.7678 rad=12.0 tmin=649382401.0 tmax=649641601.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 3.45
user 2.52
sys 0.87

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/76790/ft2_4FGL_J0803.5+2046_daily_bin1582.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/76790/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1582.fits evtable="EVENTS" outfile="/scratch/kocevski/76790/ft1_filtered_4FGL_J0803.5+2046_daily_bin1582.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.19
user 0.31
sys 0.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/76790/ft1_filtered_4FGL_J0803.5+2046_daily_bin1582.fits" evtable="EVENTS" scfile=/scratch/kocevski/76790/ft2_4FGL_J0803.5+2046_daily_bin1582.fits sctable="SC_DATA" outfile=/scratch/kocevski/76790/ltcube_649382401_649641601_4FGL_J0803.5+2046_daily_bin1582.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/76790/ft2_4FGL_J0803.5+2046_daily_bin1582.fits
.....................!
real 13.96
user 12.53
sys 1.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/76790/ft1_filtered_4FGL_J0803.5+2046_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/76790/ft2_4FGL_J0803.5+2046_daily_bin1582.fits sctable="SC_DATA" expcube=/scratch/kocevski/76790/ltcube_649382401_649641601_4FGL_J0803.5+2046_daily_bin1582.fits outfile=/scratch/kocevski/76790/expmap_649382401_649641601_4FGL_J0803.5+2046_daily_bin1582.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/76790/ltcube_649382401_649641601_4FGL_J0803.5+2046_daily_bin1582.fits
.....................!
real 192.33
user 186.79
sys 5.04

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/76790/ft1_filtered_4FGL_J0803.5+2046_daily_bin1582.fits scfile=/scratch/kocevski/76790/ft2_4FGL_J0803.5+2046_daily_bin1582.fits outfile=/scratch/kocevski/76790/cmap_649382401_649641601_4FGL_J0803.5+2046_daily_bin1582.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.21
user 0.37
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/76790/ft1_filtered_4FGL_J0803.5+2046_daily_bin1582.fits scfile=/scratch/kocevski/76790/ft2_4FGL_J0803.5+2046_daily_bin1582.fits outfile=/scratch/kocevski/76790/cmap_HighResolution_649382401_649641601_4FGL_J0803.5+2046_daily_bin1582.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.25
user 0.36
sys 0.85

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.5634       1.0000         .10000E-03   10000.    
     3 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .67010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10269E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13133E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    204.98       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.463       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11106E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .16061E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9999.6       1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    20 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    21 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .19373E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .24547       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .29842       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=   270.7808     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2993 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.361        .10530E-06** at limit **
   2  norm          5.5626        4.2624       -.16217E-06    .51653E-04
   3  norm          .10000E-03    5.8821        .81478E-07** at limit **
   4  Prefactor     .10000E-03    73.241       -.66406E-05** at limit **
   5  norm          .10000E-03    34.014        .81712E-06** at limit **
   6  Prefactor     .10000E-03    182.35        .51013E-04** at limit **
   7  Prefactor     204.85        192.47       -.49706E-04    .57285E-05
   8  Prefactor     .10000E-03    130.69       -.20994E-04** at limit **
   9  Prefactor     27.463        20.642       -.67819E-06   -.12104E-04
  10  Prefactor     .10000E-03    383.28       -.28084E-03** at limit **
  11  norm          .10000E-03    53.062        .10354E-05** at limit **
  12  Prefactor     .10000E-03    34.149        .45227E-06** at limit **
  13  Prefactor     .10000E-03    509.84        .29163E-03** at limit **
  14  norm          .10000E-03    1413.1        .78357E-03** at limit **
  15  Prefactor    10000.0        8699.2        .11169E-02** at limit **
  16  Prefactor    10000.0        9978.3        .98606E-02** at limit **
  17  Prefactor    10000.0        9414.6        .16519E-02** at limit **
  18  Prefactor     .10000E-03    95.530        .35473E-05** at limit **
  19  Prefactor    10000.0        8827.2        .21361E-02** at limit **
  20  norm         10000.0        1169.5       -.28302E-03** at limit **
  21  Prefactor    10000.0        8931.7        .37722E-03** at limit **
  22  Prefactor    10000.0        9864.9        .51355E-02** at limit **
  23  Prefactor     .10000E-03    6351.0       -.81147E-04** at limit **
  24  Normalizat    .24540        .45103        .51380E-05    .25679E-04
  25  Prefactor     .29842        .29014        .43884E-05    .19991E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.56259
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 204.848
  Prefactor  = 0.0001
  Prefactor  = 27.4635
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Normalizat = 0.245405
  Prefactor  = 0.298421
 **********
 **   18 **HESSE 
 **********

 FCN=   270.7808     FROM HESSE     STATUS=OK           403 CALLS     3396 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.363        .60966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.5626        4.2806        .27855E-04   -1.5236    
   3  norm          .10000E-03    5.9482        .38991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    73.706        .13776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    34.041        .93827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    182.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     204.85        192.23        .14115E-03   -1.2836    
   8  Prefactor     .10000E-03    130.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.463        20.605        .62229E-04   -1.4659    
  10  Prefactor     .10000E-03    383.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    53.064        .11727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.150        .94045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    509.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1413.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        8698.9        .18598E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        9978.3        .21835E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        9414.6        .18357E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    95.530        .15746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        8827.1        .18293E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm         10000.0        1169.5        .20849E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        8931.6        .20733E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor    10000.0        9864.9        .19068E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6351.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .24540        .47487        .34232E-03   -1.2626    
  25  Prefactor     .29842        .30971        .19095E-03   -1.2236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41549e-10
Minuit parameter uncertainties:
  1  3.68653e-06
  2  4.28083
  3  2.22685e-05
  4  0.000267445
  5  0.00066174
  6  0.000187232
  7  192.828
  8  6.70026e-05
  9  20.6105
  10  0.000653834
  11  3.00848e-06
  12  8.46806e-07
  13  2.9211e-06
  14  0.000840139
  15  0.00274806
  16  0.00913363
  17  0.0910896
  18  1.70395e-07
  19  0.00063338
  20  0.000506647
  21  0.00071753
  22  0.00114641
  23  1.53009e-06
  24  0.483002
  25  0.311443
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  8.401e-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:  2.984e-01  3.114e-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:  2.454e-01  4.830e-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: 1.32e-06 ph cm-2 s-1
Energy Flux Upper Limit: 6.96e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/76790/likelihoodResults_649382401_649641601_4FGL_J0803.5+2046_daily_bin1582.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) = 270.780831341
delta logL = -3.21003005865e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 270.78082824
delta logL = -1.09700636131e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18276E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6613       1.0000          .0000       5.0000    
     3 'Normalizat'    .24540       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .29842       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=   270.7808     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      258 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12988E-03    8376.4        .18142E-01** at limit **
   2  alpha         2.6048        3.2027        .50000        .55304E-07
   3  Normalizat    .24540        .39369E-01    .34232E-03    .46080E-06
   4  Prefactor     .29842        .24775E-01    .19095E-03   -.29099E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000129879
  alpha      = 2.60479
  Normalizat = 0.245403
  Prefactor  = 0.298422
 **********
 **   18 **HESSE 
 **********

 FCN=   270.7808     FROM HESSE     STATUS=NOT POSDEF    25 CALLS      283 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12988E-03    6798.5        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6048        3.6840        .20000        .41929E-01
   3  Normalizat    .24540        .10695        .13693E-04   -1.2626    
   4  Prefactor     .29842        .67338E-01    .76381E-05   -1.2236    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.42875e-08
Minuit parameter uncertainties:
  1  2.7314
  2  38918.1
  3  0.107038
  4  0.0673551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/76790': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 270.780828149
delta logL = -1.8206662844e-08

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.299e-04  2.731e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  2.605e+00  3.892e+04  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:  2.984e-01  6.736e-02  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:  2.454e-01  1.070e-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/76790/cmap_HighResolution_649382401_649641601_4FGL_J0803.5+2046_daily_bin1582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.96e-04', job_status='DONE', photon_flux_upper_limit='1.32e-06', time_completed='2021-08-28 23:19:26.477806', job_id='76790', GAL2='0.30', fit_tolerance='1e-08', EG2='0.25', EG='0.25', time_epoch_completed='1630217966.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.30', dlogl='-1.82e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1582' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:19:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 76790: <4FGL_J0803.5+2046_daily_bin1582> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1582 120.888 20.7678 649382401 649641601 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 :                                   353.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             399.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   530 sec.
    Turnaround time :                            532 sec.

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

