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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1044
RA = 120.888, Dec = 20.7678
tmin = 509932801, tmax = 510192001
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='73741', job_status='RUN', time_executed='2021-08-28 23:03:40.374611', time_epoch_executed='1630217020.37' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73741

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73741/ft1_4FGL_J0803.5+2046_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73741/ft2_4FGL_J0803.5+2046_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73741/ft1_4FGL_J0803.5+2046_daily_bin1044.fits outfile=/scratch/kocevski/73741/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1044.fits ra=120.888 dec=20.7678 rad=12.0 tmin=509932801.0 tmax=510192001.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 5.25
user 3.27
sys 1.90

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73741/ft1_filtered_4FGL_J0803.5+2046_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/73741/ft2_4FGL_J0803.5+2046_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/73741/ltcube_509932801_510192001_4FGL_J0803.5+2046_daily_bin1044.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/73741/ft2_4FGL_J0803.5+2046_daily_bin1044.fits
.....................!
real 13.99
user 11.68
sys 2.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73741/ft1_filtered_4FGL_J0803.5+2046_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/73741/ft2_4FGL_J0803.5+2046_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/73741/ltcube_509932801_510192001_4FGL_J0803.5+2046_daily_bin1044.fits outfile=/scratch/kocevski/73741/expmap_509932801_510192001_4FGL_J0803.5+2046_daily_bin1044.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/73741/ltcube_509932801_510192001_4FGL_J0803.5+2046_daily_bin1044.fits
.....................!
real 192.43
user 185.16
sys 6.77

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/73741/ft1_filtered_4FGL_J0803.5+2046_daily_bin1044.fits scfile=/scratch/kocevski/73741/ft2_4FGL_J0803.5+2046_daily_bin1044.fits outfile=/scratch/kocevski/73741/cmap_509932801_510192001_4FGL_J0803.5+2046_daily_bin1044.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.19
user 0.36
sys 1.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73741/ft1_filtered_4FGL_J0803.5+2046_daily_bin1044.fits scfile=/scratch/kocevski/73741/ft2_4FGL_J0803.5+2046_daily_bin1044.fits outfile=/scratch/kocevski/73741/cmap_HighResolution_509932801_510192001_4FGL_J0803.5+2046_daily_bin1044.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.24
user 0.38
sys 1.81

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3572       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0323       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0728       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2905       1.0000         .10000E-03   10000.    
     5 'norm      '    2.8092       1.0000         .10000E-03   10000.    
     6 'Prefactor '    65.670       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3759       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .25185E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    210.09       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9919       1.0000         .10000E-03   10000.    
    20 'norm      '    1.8096       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .30165E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.679       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2175       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77247       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=   7379.646     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2925 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3565        9.6552       -.20343E-06   -.95768E-04
   2  norm          1.0329        1.0403       -.66035E-07   -.93502E-03
   3  norm          2.0728        1.4044        .54948E-07    .57062E-04
   4  Prefactor     8.2902        9.3472       -.35271E-06   -.13150E-03
   5  norm          2.8134        4.5013        .11277E-05   -.65576E-03
   6  Prefactor     65.659        45.378       -.70296E-05   -.34558E-04
   7  Prefactor     .10000E-03    18.834        .49671E-05** at limit **
   8  Prefactor     .10000E-03    14.087        .20927E-05** at limit **
   9  Prefactor     3.3764        2.8577       -.26336E-06   -.45967E-03
  10  Prefactor     .10000E-03    14.233        .12172E-05** at limit **
  11  norm          .10007E-03    8.8629        .86465E-06** at limit **
  12  Prefactor     .10000E-03    3.2525       -.36324E-07** at limit **
  13  Prefactor     210.10        151.83        .66723E-05   -.31633E-05
  14  norm          .10000E-03    22.396        .67985E-05** at limit **
  15  Prefactor     .10000E-03    24.911       -.84114E-05** at limit **
  16  Prefactor     .10000E-03    10.172       -.18692E-06** at limit **
  17  Prefactor     .10000E-03    15.803       -.58822E-05** at limit **
  18  Prefactor     .10000E-03    4.0838       -.15037E-07** at limit **
  19  Prefactor     2.9850        32.733        .30426E-05   -.39710E-04
  20  norm          1.8087        1.3428       -.13243E-06   -.56019E-04
  21  Prefactor     .10000E-03    6.5687       -.70554E-06** at limit **
  22  Prefactor     10.678        6.7076        .22802E-05    .38311E-04
  23  Prefactor     .10000E-03    17.612       -.17822E-05** at limit **
  24  Normalizat    1.2175        .18265        .29511E-06    .37145E-04
  25  Prefactor     .77251        .12708       -.34789E-06    .34958E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.35652
  norm       = 1.03293
  norm       = 2.07284
  Prefactor  = 8.29016
  norm       = 2.81335
  Prefactor  = 65.6591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.3764
  Prefactor  = 0.0001
  norm       = 0.000100073
  Prefactor  = 0.0001
  Prefactor  = 210.104
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.98499
  norm       = 1.80866
  Prefactor  = 0.0001
  Prefactor  = 10.6783
  Prefactor  = 0.0001
  Normalizat = 1.21751
  Prefactor  = 0.77251
 **********
 **   18 **HESSE 
 **********

 FCN=   7379.646     FROM HESSE     STATUS=OK           439 CALLS     3364 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3565        9.6671        .17363E-03   -1.5245    
   2  norm          1.0329        .96155        .84618E-03   -1.5505    
   3  norm          2.0728        1.4062        .74100E-04   -1.5420    
   4  Prefactor     8.2902        9.3361        .13923E-03   -1.5132    
   5  norm          2.8134        4.3924        .19607E-03   -1.5372    
   6  Prefactor     65.659        44.597        .49525E-04   -1.4086    
   7  Prefactor     .10000E-03    19.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.3764        2.8600        .12634E-03   -1.5340    
  10  Prefactor     .10000E-03    14.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10007E-03    59.137        .49708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.2579        .15129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     210.10        151.72        .27891E-04   -1.2799    
  14  norm          .10000E-03    22.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.0918        .16954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.9850        31.755        .23469E-03   -1.5362    
  20  norm          1.8087        1.3173        .73685E-04   -1.5439    
  21  Prefactor     .10000E-03    13.014        .59869E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.678        6.7028        .12261E-03   -1.5054    
  23  Prefactor     .10000E-03    17.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2175        .21636        .25997E-03   -.86063    
  25  Prefactor     .77251        .14929        .23025E-03   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65416e-09
Minuit parameter uncertainties:
  1  9.66995
  2  0.961566
  3  1.40623
  4  9.33776
  5  4.39293
  6  44.6198
  7  2.1091e-05
  8  9.94404e-07
  9  2.8601
  10  4.35405e-05
  11  0.00417071
  12  2.26612e-06
  13  152.002
  14  7.40454e-07
  15  3.40399e-05
  16  2.71063e-06
  17  7.20502e-06
  18  1.06986e-06
  19  19.4847
  20  1.31736
  21  0.000127526
  22  6.7033
  23  1.1921e-05
  24  0.216524
  25  0.149373
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  7.405e-07  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:  7.725e-01  1.494e-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.218e+00  2.165e-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: 2.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73741/likelihoodResults_509932801_510192001_4FGL_J0803.5+2046_daily_bin1044.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) = 7379.64668907
delta logL = -0.000212266636481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7379.64647937
delta logL = -2.57508054347e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    .22449       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2175       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77251       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.

 FCN=   7379.646     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      215 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.556        .90712E-02** at limit **
   2  alpha         .22950        2.5825        .50000       -.36776E-05
   3  Normalizat    1.2175        .17154        .58784E-01   -.12424E-03
   4  Prefactor     .77251        .12459        .43358E-01   -.12385E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 0.229498
  Normalizat = 1.21751
  Prefactor  = 0.77251
 **********
 **   18 **HESSE 
 **********

 FCN=   7379.646     FROM HESSE     STATUS=OK            29 CALLS      244 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .22950        2.5817        .20000       -1.1390    
   3  Normalizat    1.2175        .19950        .25997E-03   -.86063    
   4  Prefactor     .77251        .14494        .23025E-03   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67633e-10
Minuit parameter uncertainties:
  1  0.000248431
  2  1.0464
  3  0.199629
  4  0.145011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73741': 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) = 7379.64647929
delta logL = -2.49570530286e-06

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  2.484e-04  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  2.295e-01  1.046e+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:  7.725e-01  1.450e-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.218e+00  1.996e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/73741/cmap_HighResolution_509932801_510192001_4FGL_J0803.5+2046_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-05', job_status='DONE', photon_flux_upper_limit='2.30e-08', time_completed='2021-08-28 23:16:24.103180', job_id='73741', GAL2='0.77', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630217784.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='-2.50e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1044' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:16:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 73741: <4FGL_J0803.5+2046_daily_bin1044> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1044> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 28 23:00:51 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:00:53 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:00:53 2021
Terminated at Sat Aug 28 23:16:25 2021
Results reported at Sat Aug 28 23:16:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1044 120.888 20.7678 509932801 510192001 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 :                                   788.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            934 sec.

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

