/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 6 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 = 7423
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0803.5+2046_daily_bin266
RA = 120.888, Dec = 20.7678
tmin = 308275201, tmax = 308534401
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='70407', job_status='RUN', time_executed='2021-08-28 22:50:47.417963', time_epoch_executed='1630216247.42' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='266'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70407

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70407/ft1_4FGL_J0803.5+2046_daily_bin266.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70407/ft2_4FGL_J0803.5+2046_daily_bin266.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70407/ft1_4FGL_J0803.5+2046_daily_bin266.fits outfile=/scratch/kocevski/70407/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin266.fits ra=120.888 dec=20.7678 rad=12.0 tmin=308275201.0 tmax=308534401.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.13
user 2.58
sys 0.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/70407/ft2_4FGL_J0803.5+2046_daily_bin266.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/70407/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin266.fits evtable="EVENTS" outfile="/scratch/kocevski/70407/ft1_filtered_4FGL_J0803.5+2046_daily_bin266.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.70
user 0.28
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70407/ft1_filtered_4FGL_J0803.5+2046_daily_bin266.fits" evtable="EVENTS" scfile=/scratch/kocevski/70407/ft2_4FGL_J0803.5+2046_daily_bin266.fits sctable="SC_DATA" outfile=/scratch/kocevski/70407/ltcube_308275201_308534401_4FGL_J0803.5+2046_daily_bin266.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/70407/ft2_4FGL_J0803.5+2046_daily_bin266.fits
.....................!
real 11.64
user 9.96
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70407/ft1_filtered_4FGL_J0803.5+2046_daily_bin266.fits evtable="EVENTS" scfile=/scratch/kocevski/70407/ft2_4FGL_J0803.5+2046_daily_bin266.fits sctable="SC_DATA" expcube=/scratch/kocevski/70407/ltcube_308275201_308534401_4FGL_J0803.5+2046_daily_bin266.fits outfile=/scratch/kocevski/70407/expmap_308275201_308534401_4FGL_J0803.5+2046_daily_bin266.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/70407/ltcube_308275201_308534401_4FGL_J0803.5+2046_daily_bin266.fits
.....................!
real 157.01
user 150.91
sys 5.65

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/70407/ft1_filtered_4FGL_J0803.5+2046_daily_bin266.fits scfile=/scratch/kocevski/70407/ft2_4FGL_J0803.5+2046_daily_bin266.fits outfile=/scratch/kocevski/70407/cmap_308275201_308534401_4FGL_J0803.5+2046_daily_bin266.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.83
user 0.32
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70407/ft1_filtered_4FGL_J0803.5+2046_daily_bin266.fits scfile=/scratch/kocevski/70407/ft2_4FGL_J0803.5+2046_daily_bin266.fits outfile=/scratch/kocevski/70407/cmap_HighResolution_308275201_308534401_4FGL_J0803.5+2046_daily_bin266.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.73
user 0.31
sys 0.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10363E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1503       1.0000         .10000E-03   10000.    
     3 'norm      '    .99266       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.205       1.0000         .10000E-03   10000.    
     5 'norm      '    .30961       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1132       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.015       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6013       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5939       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    39.661       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.859       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.156       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.938       1.0000         .10000E-03   10000.    
    20 'norm      '    3.0045       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.263       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1168       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99450       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0464       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=   7004.329     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2960 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    33.167        .17568E-05** at limit **
   2  norm          2.1504        1.2972        .11447E-06   -.20528E-04
   3  norm          .98764        1.6092        .85797E-07   -.57996E-04
   4  Prefactor     10.228        15.186        .15258E-06   -.13672E-03
   5  norm          .32801        16.175        .16452E-04   -.26026E-03
   6  Prefactor     9.0015        48.354       -.12016E-04   -.17310E-04
   7  Prefactor     .10000E-03    14.741        .56337E-06** at limit **
   8  Prefactor     44.011        57.686       -.15833E-06   -.93897E-04
   9  Prefactor     4.6014        4.0397        .20970E-06    .98528E-04
  10  Prefactor     .10000E-03    11.118        .52200E-06** at limit **
  11  norm          .10000E-03    18.064        .27869E-06** at limit **
  12  Prefactor     5.5942        15.180        .82904E-06    .65510E-05
  13  Prefactor     .10000E-03    150.94       -.21637E-05** at limit **
  14  norm          39.564        66.513        .42526E-05    .16395E-03
  15  Prefactor     .10000E-03    25.916        .11024E-06** at limit **
  16  Prefactor     23.867        32.145        .36380E-06   -.25937E-04
  17  Prefactor     .10000E-03    12.958        .25004E-06** at limit **
  18  Prefactor     36.159        23.531        .54189E-06   -.51496E-04
  19  Prefactor     25.938        28.225        .12280E-06   -.72094E-04
  20  norm          3.0044        1.6189        .74278E-07   -.53638E-04
  21  Prefactor     11.264        9.7360        .33883E-06   -.96266E-05
  22  Prefactor     1.1173        3.6213        .12153E-06    .55373E-03
  23  Prefactor     .10000E-03    13.278        .19242E-07** at limit **
  24  Normalizat    .99425        .21471       -.28089E-06   -.26537E-03
  25  Prefactor     1.0466        .14207       -.27691E-05   -.11099E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  norm       = 2.15041
  norm       = 0.987643
  Prefactor  = 10.2276
  norm       = 0.328009
  Prefactor  = 9.00148
  Prefactor  = 0.0001
  Prefactor  = 44.0115
  Prefactor  = 4.60142
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.59422
  Prefactor  = 0.000100002
  norm       = 39.5639
  Prefactor  = 0.0001
  Prefactor  = 23.8674
  Prefactor  = 0.0001
  Prefactor  = 36.1591
  Prefactor  = 25.9384
  norm       = 3.00445
  Prefactor  = 11.2641
  Prefactor  = 1.11733
  Prefactor  = 0.0001
  Normalizat = 0.994246
  Prefactor  = 1.04658
 **********
 **   18 **HESSE 
 **********

 FCN=   7004.329     FROM HESSE     STATUS=OK           433 CALLS     3393 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    33.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1504        1.2938        .71303E-04   -1.5415    
   3  norm          .98764        1.6083        .52559E-04   -1.5509    
   4  Prefactor     10.228        15.128        .12543E-03   -1.5068    
   5  norm          .32801        17.109        .23696E-02   -1.5593    
   6  Prefactor     9.0015        49.602        .13276E-03   -1.5108    
   7  Prefactor     .10000E-03    14.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     44.011        57.670        .60429E-04   -1.4380    
   9  Prefactor     4.6014        4.0323        .14454E-03   -1.5279    
  10  Prefactor     .10000E-03    11.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    18.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.5942        15.119        .16986E-03   -1.5235    
  13  Prefactor     .10000E-03    150.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          39.564        66.578        .31823E-03   -1.4449    
  15  Prefactor     .10000E-03    25.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.867        32.164        .82006E-04   -1.4730    
  17  Prefactor     .10000E-03    12.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.159        23.630        .66649E-04   -1.4505    
  19  Prefactor     25.938        28.281        .78656E-04   -1.4689    
  20  norm          3.0044        1.6129        .67781E-04   -1.5361    
  21  Prefactor     11.264        9.7428        .11937E-03   -1.5037    
  22  Prefactor     1.1173        3.5512        .27785E-03   -1.5497    
  23  Prefactor     .10000E-03    13.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .99425        .24899        .30642E-03   -.93223    
  25  Prefactor     1.0466        .16705        .21991E-03   -.91193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33415e-09
Minuit parameter uncertainties:
  1  0.00100383
  2  1.29384
  3  1.60842
  4  15.1339
  5  4.7386
  6  42.3147
  7  8.72862e-05
  8  57.7431
  9  4.03258
  10  3.27825e-05
  11  5.14394e-05
  12  15.1291
  13  0.00104926
  14  66.7039
  15  0.0001019
  16  32.1872
  17  7.73471e-05
  18  23.6358
  19  28.2954
  20  1.61296
  21  9.74415
  22  3.55187
  23  2.9767e-05
  24  0.249284
  25  0.167132
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  3.956e+01  6.670e+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:  1.047e+00  1.671e-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:  9.942e-01  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/70407/likelihoodResults_308275201_308534401_4FGL_J0803.5+2046_daily_bin266.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) = 7004.16341199
delta logL = 0.165747644671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7004.12531119
delta logL = 0.203848440688

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.967       1.0000         .10000E-03   10000.    
     2 'alpha     '    .52968       1.0000          .0000       5.0000    
     3 'Normalizat'    .99812       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0458       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=   7004.125     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      219 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.986        47.998        .54680E-05    .88367E-04
   2  alpha         .52980        2.5433        .17472E-03   -.28706E-05
   3  Normalizat    .99809        .19224       -.15789E-06   -.13629E-03
   4  Prefactor     1.0458        .14194        .12572E-06   -.14153E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 23.9859
  alpha      = 0.529801
  Normalizat = 0.998087
  Prefactor  = 1.04582
 **********
 **   18 **HESSE 
 **********

 FCN=   7004.125     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.986        44.799        .81822E-04   -1.4728    
   2  alpha         .52980        2.5927        .86320E-01   -.90768    
   3  Normalizat    .99809        .22207        .30586E-03   -.93095    
   4  Prefactor     1.0458        .16425        .21993E-03   -.91217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35637e-09
Minuit parameter uncertainties:
  1  44.862
  2  1.83794
  3  0.222273
  4  0.164326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70407': 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) = 7004.12531105
delta logL = 0.203848577566

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  2.399e+01  4.486e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  5.298e-01  1.838e+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.046e+00  1.643e-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:  9.981e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.57
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/70407/cmap_HighResolution_308275201_308534401_4FGL_J0803.5+2046_daily_bin266.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-05', job_status='DONE', photon_flux_upper_limit='4.60e-08', time_completed='2021-08-28 23:00:58.265500', job_id='70407', GAL2='1.05', fit_tolerance='1e-08', EG2='1.00', EG='0.99', time_epoch_completed='1630216858.27', return_code2='0', ts='0.57', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.04e-01', ts2='0.98', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='266' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:00:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 70407: <4FGL_J0803.5+2046_daily_bin266> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin266> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 22:50:28 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 22:50:29 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:50:29 2021
Terminated at Sat Aug 28 23:00:59 2021
Results reported at Sat Aug 28 23:00:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin266 120.888 20.7678 308275201 308534401 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 :                                   608.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            631 sec.

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

