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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin775
RA = 120.888, Dec = 20.7678
tmin = 440208001, tmax = 440467201
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='72333', job_status='RUN', time_executed='2021-08-28 22:56:17.496435', time_epoch_executed='1630216577.5' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72333

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72333/ft1_4FGL_J0803.5+2046_daily_bin775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72333/ft2_4FGL_J0803.5+2046_daily_bin775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72333/ft1_4FGL_J0803.5+2046_daily_bin775.fits outfile=/scratch/kocevski/72333/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin775.fits ra=120.888 dec=20.7678 rad=12.0 tmin=440208001.0 tmax=440467201.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.70
user 3.22
sys 0.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/72333/ft2_4FGL_J0803.5+2046_daily_bin775.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/72333/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin775.fits evtable="EVENTS" outfile="/scratch/kocevski/72333/ft1_filtered_4FGL_J0803.5+2046_daily_bin775.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.76
user 0.33
sys 0.41

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72333/ft1_filtered_4FGL_J0803.5+2046_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/72333/ft2_4FGL_J0803.5+2046_daily_bin775.fits sctable="SC_DATA" expcube=/scratch/kocevski/72333/ltcube_440208001_440467201_4FGL_J0803.5+2046_daily_bin775.fits outfile=/scratch/kocevski/72333/expmap_440208001_440467201_4FGL_J0803.5+2046_daily_bin775.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/72333/ltcube_440208001_440467201_4FGL_J0803.5+2046_daily_bin775.fits
.....................!
real 193.61
user 188.43
sys 4.81

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/72333/ft1_filtered_4FGL_J0803.5+2046_daily_bin775.fits scfile=/scratch/kocevski/72333/ft2_4FGL_J0803.5+2046_daily_bin775.fits outfile=/scratch/kocevski/72333/cmap_440208001_440467201_4FGL_J0803.5+2046_daily_bin775.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.80
user 0.39
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72333/ft1_filtered_4FGL_J0803.5+2046_daily_bin775.fits scfile=/scratch/kocevski/72333/ft2_4FGL_J0803.5+2046_daily_bin775.fits outfile=/scratch/kocevski/72333/cmap_HighResolution_440208001_440467201_4FGL_J0803.5+2046_daily_bin775.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.80
user 0.38
sys 0.40

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4884       1.0000         .10000E-03   10000.    
     2 'norm      '    .90482       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .68769E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .68692       1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.341       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.386       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7371       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.988       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .12638E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.128       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0179       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1440       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .21535       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2427       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91437       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=   7080.966     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2908 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4878        12.707       -.97770E-07   -.52892E-04
   2  norm          .90552        1.6320       -.32861E-07   -.60999E-03
   3  norm          .10000E-03    .55294        .12782E-07** at limit **
   4  Prefactor     .10003E-03    8.4561        .35193E-05** at limit **
   5  norm          .68920        3.1193        .29043E-06   -.12819E-03
   6  Prefactor     39.342        44.667        .55681E-06   -.18591E-04
   7  Prefactor     .10000E-03    7.1940        .44209E-06** at limit **
   8  Prefactor     54.434        44.574       -.43163E-05   -.27633E-03
   9  Prefactor     3.7379        3.0270        .89658E-07   -.31506E-03
  10  Prefactor     .10000E-03    12.284        .62377E-06** at limit **
  11  norm          .10000E-03    7.0193       -.36425E-06** at limit **
  12  Prefactor     12.985        13.713        .33687E-06   -.20942E-04
  13  Prefactor     .10000E-03    35.046        .12794E-05** at limit **
  14  norm          .10000E-03    86.842        .17858E-05** at limit **
  15  Prefactor     13.130        13.054        .45833E-07   -.13120E-05
  16  Prefactor     .10000E-03    9.1638       -.34822E-06** at limit **
  17  Prefactor     .10000E-03    17.638       -.17784E-05** at limit **
  18  Prefactor     .10000E-03    5.6511       -.40796E-07** at limit **
  19  Prefactor     .10000E-03    21.975        .12327E-05** at limit **
  20  norm          1.0177        .97342       -.25599E-08   -.40092E-04
  21  Prefactor     3.1431        9.7108        .35615E-05   -.32942E-04
  22  Prefactor     .21910        5.9639        .98993E-07   -.13740E-03
  23  Prefactor     .10000E-03    43.716       -.33154E-05** at limit **
  24  Normalizat    1.2427        .20028       -.23570E-05   -.48239E-03
  25  Prefactor     .91452        .13883        .14295E-05   -.53272E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.4878
  norm       = 0.905516
  norm       = 0.0001
  Prefactor  = 0.000100032
  norm       = 0.689197
  Prefactor  = 39.3419
  Prefactor  = 0.0001
  Prefactor  = 54.4336
  Prefactor  = 3.73793
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9846
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.1297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.01772
  Prefactor  = 3.14314
  Prefactor  = 0.2191
  Prefactor  = 0.0001
  Normalizat = 1.24268
  Prefactor  = 0.914524
 **********
 **   18 **HESSE 
 **********

 FCN=   7080.966     FROM HESSE     STATUS=OK           429 CALLS     3337 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4878        12.743        .13759E-03   -1.5125    
   2  norm          .90552        1.6127        .13502E-03   -1.5518    
   3  norm          .10000E-03    .56017        .60914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    27.466        .40963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .68920        4.8696        .24379E-02   -1.5542    
   6  Prefactor     39.342        42.510        .63904E-04   -1.4453    
   7  Prefactor     .10000E-03    7.2051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     54.434        45.727        .54390E-04   -1.4231    
   9  Prefactor     3.7379        3.0216        .12539E-03   -1.5321    
  10  Prefactor     .10000E-03    12.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.0157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.985        13.699        .55573E-03   -1.4987    
  13  Prefactor     .10000E-03    35.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    86.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.130        13.057        .11055E-03   -1.4983    
  16  Prefactor     .10000E-03    9.1710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.6560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.377        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0177        .93822        .76793E-03   -1.5506    
  21  Prefactor     3.1431        9.8122        .11431E-02   -1.5353    
  22  Prefactor     .21910        51.054        .38135E-02   -1.5614    
  23  Prefactor     .10000E-03    43.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2427        .22771        .26839E-03   -.85294    
  25  Prefactor     .91452        .16010        .22686E-03   -.95635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34478e-08
Minuit parameter uncertainties:
  1  12.747
  2  1.61279
  3  2.05632e-06
  4  0.00188559
  5  3.66408
  6  42.5423
  7  1.85572e-05
  8  45.7561
  9  3.02169
  10  3.35664e-05
  11  1.10022e-05
  12  13.7025
  13  9.28193e-05
  14  0.000201795
  15  13.0595
  16  9.60741e-06
  17  9.143e-05
  18  1.1318e-06
  19  0.000189376
  20  0.938234
  21  9.81722
  22  6.69331
  23  0.000253609
  24  0.227895
  25  0.160178
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  2.018e-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:  9.145e-01  1.602e-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.243e+00  2.279e-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.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/72333/likelihoodResults_440208001_440467201_4FGL_J0803.5+2046_daily_bin775.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) = 7080.96640974
delta logL = -5.28579384991e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7080.74796695
delta logL = 0.218389934233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.980       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4072       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92023       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7080.748     FROM MIGRAD    STATUS=FAILED        91 CALLS      315 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.007        1569.1        .10713E-03    .85960E-05
   2  alpha         4.4059        2.9559        .71377E-01    .12821E-03
   3  Normalizat    1.2147        .25713        .27099E-03   -.19927E-04
   4  Prefactor     .92025        .19031        .22616E-03    .10244E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7080.748     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      404 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.007        1569.1        .50197E-03    .85960E-05
   2  alpha         4.4059        2.9559        .65213E-02    .12821E-03
   3  Normalizat    1.2147        .25713        .12278E-03   -.19927E-04
   4  Prefactor     .92025        .19031        .12172E-03    .10244E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7080.748     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      434 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.007        48.392        .42851E-05   -.58368E-05
   2  alpha         4.4059        4.3753        .14275E-01   -.58933E-06
   3  Normalizat    1.2147        .21701        .10840E-04   -.20556E-04
   4  Prefactor     .92025        .15762        .90466E-05    .99278E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.0068
  alpha      = 4.4059
  Normalizat = 1.21466
  Prefactor  = 0.920246
 **********
 **   18 **HESSE 
 **********

 FCN=   7080.748     FROM HESSE     STATUS=OK            25 CALLS      459 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.007        42.552        .85701E-06   -1.4959    
   2  alpha         4.4059        4.1893        .57101E-03    .86695    
   3  Normalizat    1.2147        .21653        .21679E-05   -.86151    
   4  Prefactor     .92025        .15724        .18093E-05   -.95437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21675e-11
Minuit parameter uncertainties:
  1  42.6445
  2  2.42179
  3  0.216689
  4  0.157322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72333': 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) = 7080.74796674
delta logL = 0.218390141358

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.401e+01  4.264e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  4.406e+00  2.422e+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:  9.202e-01  1.573e-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.215e+00  2.167e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/72333/cmap_HighResolution_440208001_440467201_4FGL_J0803.5+2046_daily_bin775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.02e-05', job_status='DONE', photon_flux_upper_limit='3.84e-08', time_completed='2021-08-28 23:08:37.768201', job_id='72333', GAL2='0.92', fit_tolerance='1e-08', EG2='1.21', EG='1.24', time_epoch_completed='1630217317.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.18e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='775' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:08:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 72333: <4FGL_J0803.5+2046_daily_bin775> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin775> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 28 22:55:58 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 22:56:00 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:56:00 2021
Terminated at Sat Aug 28 23:08:38 2021
Results reported at Sat Aug 28 23:08:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin775 120.888 20.7678 440208001 440467201 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 :                                   743.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            760 sec.

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

