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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1566
RA = 120.888, Dec = 20.7678
tmin = 645235201, tmax = 645494401
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='76766', job_status='RUN', time_executed='2021-08-28 23:11:24.757916', time_epoch_executed='1630217484.76' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1566'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/76766

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/76766/ft1_4FGL_J0803.5+2046_daily_bin1566.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/76766/ft2_4FGL_J0803.5+2046_daily_bin1566.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/76766/ft1_4FGL_J0803.5+2046_daily_bin1566.fits outfile=/scratch/kocevski/76766/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1566.fits ra=120.888 dec=20.7678 rad=12.0 tmin=645235201.0 tmax=645494401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.99
user 2.52
sys 2.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/76766/ft1_filtered_4FGL_J0803.5+2046_daily_bin1566.fits" evtable="EVENTS" scfile=/scratch/kocevski/76766/ft2_4FGL_J0803.5+2046_daily_bin1566.fits sctable="SC_DATA" outfile=/scratch/kocevski/76766/ltcube_645235201_645494401_4FGL_J0803.5+2046_daily_bin1566.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/76766/ft2_4FGL_J0803.5+2046_daily_bin1566.fits
.....................!
real 14.82
user 11.81
sys 2.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/76766/ft1_filtered_4FGL_J0803.5+2046_daily_bin1566.fits evtable="EVENTS" scfile=/scratch/kocevski/76766/ft2_4FGL_J0803.5+2046_daily_bin1566.fits sctable="SC_DATA" expcube=/scratch/kocevski/76766/ltcube_645235201_645494401_4FGL_J0803.5+2046_daily_bin1566.fits outfile=/scratch/kocevski/76766/expmap_645235201_645494401_4FGL_J0803.5+2046_daily_bin1566.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/76766/ltcube_645235201_645494401_4FGL_J0803.5+2046_daily_bin1566.fits
.....................!
real 193.18
user 184.94
sys 7.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/76766/ft1_filtered_4FGL_J0803.5+2046_daily_bin1566.fits scfile=/scratch/kocevski/76766/ft2_4FGL_J0803.5+2046_daily_bin1566.fits outfile=/scratch/kocevski/76766/cmap_645235201_645494401_4FGL_J0803.5+2046_daily_bin1566.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 2.75
user 0.38
sys 2.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/76766/ft1_filtered_4FGL_J0803.5+2046_daily_bin1566.fits scfile=/scratch/kocevski/76766/ft2_4FGL_J0803.5+2046_daily_bin1566.fits outfile=/scratch/kocevski/76766/cmap_HighResolution_645235201_645494401_4FGL_J0803.5+2046_daily_bin1566.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 2.81
user 0.37
sys 2.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8994       1.0000         .10000E-03   10000.    
     2 'norm      '    .56386       1.0000         .10000E-03   10000.    
     3 'norm      '    .80254       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.538       1.0000         .10000E-03   10000.    
     5 'norm      '    9.3681       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    85.105       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.981       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1305       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1689       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.114       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4456       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .25668       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.3300       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3054       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0926       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=   6334.412     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2972 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9008        24.875        .70241E-06   -.83182E-05
   2  norm          .56402        2.0130        .93241E-06   -.40334E-03
   3  norm          .80196        2.7334        .11785E-05    .29138E-03
   4  Prefactor     13.542        22.159       -.14285E-05   -.11391E-03
   5  norm          9.3673        9.2656       -.65667E-07    .58747E-04
   6  Prefactor     .10002E-03    48.438       -.70538E-05** at limit **
   7  Prefactor     85.112        39.803        .86183E-06    .17186E-03
   8  Prefactor     11.968        47.922       -.36481E-05   -.11548E-03
   9  Prefactor     6.1304        4.8227        .22724E-06   -.18508E-03
  10  Prefactor     8.1658        60.298       -.12063E-05   -.69404E-05
  11  norm          .10000E-03    11.434        .22956E-06** at limit **
  12  Prefactor     .10000E-03    5.0309       -.15799E-07** at limit **
  13  Prefactor     .10002E-03    38.738        .65150E-05** at limit **
  14  norm          16.132        212.20        .76166E-05    .26385E-04
  15  Prefactor     3.4445        29.668        .68808E-06   -.54888E-05
  16  Prefactor     .10000E-03    17.959       -.11969E-05** at limit **
  17  Prefactor     .10000E-03    19.041        .22176E-06** at limit **
  18  Prefactor     .10000E-03    5.9204        .56263E-07** at limit **
  19  Prefactor     .10000E-03    11.320        .34398E-06** at limit **
  20  norm          .25655        .75323       -.24063E-06   -.10513E-02
  21  Prefactor     5.3290        8.9173        .48361E-05   -.70558E-03
  22  Prefactor     .10000E-03    3.1510       -.54428E-07** at limit **
  23  Prefactor     .10000E-03    8.8633       -.22214E-06** at limit **
  24  Normalizat    1.3056        .23342       -.10003E-05   -.57470E-04
  25  Prefactor     1.0925        .17417       -.90360E-06   -.77905E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.90083
  norm       = 0.564025
  norm       = 0.801963
  Prefactor  = 13.5421
  norm       = 9.36726
  Prefactor  = 0.000100019
  Prefactor  = 85.1125
  Prefactor  = 11.968
  Prefactor  = 6.13044
  Prefactor  = 8.16581
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  norm       = 16.1321
  Prefactor  = 3.44452
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.256553
  Prefactor  = 5.329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.30556
  Prefactor  = 1.0925
 **********
 **   18 **HESSE 
 **********

 FCN=   6334.412     FROM HESSE     STATUS=OK           427 CALLS     3399 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9008        24.900        .15274E-03   -1.5183    
   2  norm          .56402        2.0442        .20035E-03   -1.5558    
   3  norm          .80196        2.3386        .16226E-02   -1.5529    
   4  Prefactor     13.542        19.994        .10886E-03   -1.4972    
   5  norm          9.3673        9.2126        .13094E-03   -1.5096    
   6  Prefactor     .10002E-03    50.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     85.112        39.785        .43546E-04   -1.3860    
   8  Prefactor     11.968        49.222        .11573E-03   -1.5016    
   9  Prefactor     6.1304        4.8197        .14665E-03   -1.5213    
  10  Prefactor     8.1658        59.782        .14027E-03   -1.5136    
  11  norm          .10000E-03    11.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.0351        .17434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    40.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.132        213.73        .99775E-04   -1.4904    
  15  Prefactor     3.4445        29.646        .21789E-03   -1.5337    
  16  Prefactor     .10000E-03    18.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.9294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .25655        .74349        .10989E-03   -1.5607    
  21  Prefactor     5.3290        9.0301        .87041E-03   -1.5246    
  22  Prefactor     .10000E-03    3.1849        .13794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.8673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3056        .28200        .29456E-03   -.83401    
  25  Prefactor     1.0925        .21127        .24308E-03   -.89707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47471e-09
Minuit parameter uncertainties:
  1  24.9373
  2  2.04445
  3  2.33888
  4  20.0036
  5  9.21401
  6  0.0019815
  7  39.7976
  8  48.611
  9  4.82003
  10  44.2513
  11  3.33286e-05
  12  1.03461e-06
  13  0.00173923
  14  117.955
  15  20.2238
  16  0.0002034
  17  4.34354e-05
  18  6.27316e-06
  19  5.06767e-05
  20  0.743516
  21  9.03244
  22  3.29675e-06
  23  2.72256e-05
  24  0.282334
  25  0.211431
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.613e+01  1.180e+02  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.093e+00  2.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:  1.306e+00  2.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/76766/likelihoodResults_645235201_645494401_4FGL_J0803.5+2046_daily_bin1566.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) = 6334.25557034
delta logL = 0.15606063968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6334.25547206
delta logL = 0.15615891891

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    42.934       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2962       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0880       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=   6334.255     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      282 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          42.861        101.41        .61182E-04   -.14196E-04
   2  alpha         3.2932        1.8264        .48263E-01    .12032E-03
   3  Normalizat    1.2960        .26643        .29541E-03    .40101E-04
   4  Prefactor     1.0880        .20364        .24343E-03   -.14079E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 42.8608
  alpha      = 3.29316
  Normalizat = 1.29598
  Prefactor  = 1.08799
 **********
 **   18 **HESSE 
 **********

 FCN=   6334.255     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          42.861        93.936        .12236E-04   -1.4398    
   2  alpha         3.2932        1.7223        .96526E-02    .32284    
   3  Normalizat    1.2960        .26621        .11816E-04   -.83686    
   4  Prefactor     1.0880        .20348        .48685E-04   -.89851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47005e-10
Minuit parameter uncertainties:
  1  94.2633
  2  1.92782
  3  0.266491
  4  0.203621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/76766': 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) = 6334.25546914
delta logL = 0.15616184386

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  4.286e+01  9.426e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  3.293e+00  1.928e+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.088e+00  2.036e-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.296e+00  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/76766/cmap_HighResolution_645235201_645494401_4FGL_J0803.5+2046_daily_bin1566.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-05', job_status='DONE', photon_flux_upper_limit='6.06e-08', time_completed='2021-08-28 23:23:23.566275', job_id='76766', GAL2='1.09', fit_tolerance='1e-08', EG2='1.30', EG='1.31', time_epoch_completed='1630218203.57', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.56e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1566' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:23:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 76766: <4FGL_J0803.5+2046_daily_bin1566> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1566 120.888 20.7678 645235201 645494401 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 :                                   752.20 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             315.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            771 sec.

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

