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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1012
RA = 120.888, Dec = 20.7678
tmin = 501638401, tmax = 501897601
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='73692', job_status='RUN', time_executed='2021-08-28 23:05:05.019234', time_epoch_executed='1630217105.02' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73692

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73692/ft1_4FGL_J0803.5+2046_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73692/ft2_4FGL_J0803.5+2046_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73692/ft1_4FGL_J0803.5+2046_daily_bin1012.fits outfile=/scratch/kocevski/73692/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1012.fits ra=120.888 dec=20.7678 rad=12.0 tmin=501638401.0 tmax=501897601.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.62
user 3.26
sys 1.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73692/ft2_4FGL_J0803.5+2046_daily_bin1012.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/73692/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1012.fits evtable="EVENTS" outfile="/scratch/kocevski/73692/ft1_filtered_4FGL_J0803.5+2046_daily_bin1012.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.69
user 0.34
sys 1.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73692/ft1_filtered_4FGL_J0803.5+2046_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/73692/ft2_4FGL_J0803.5+2046_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/73692/ltcube_501638401_501897601_4FGL_J0803.5+2046_daily_bin1012.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/73692/ft2_4FGL_J0803.5+2046_daily_bin1012.fits
.....................!
real 13.11
user 11.46
sys 1.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73692/ft1_filtered_4FGL_J0803.5+2046_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/73692/ft2_4FGL_J0803.5+2046_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/73692/ltcube_501638401_501897601_4FGL_J0803.5+2046_daily_bin1012.fits outfile=/scratch/kocevski/73692/expmap_501638401_501897601_4FGL_J0803.5+2046_daily_bin1012.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/73692/ltcube_501638401_501897601_4FGL_J0803.5+2046_daily_bin1012.fits
.....................!
real 191.45
user 185.58
sys 5.45

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/73692/ft1_filtered_4FGL_J0803.5+2046_daily_bin1012.fits scfile=/scratch/kocevski/73692/ft2_4FGL_J0803.5+2046_daily_bin1012.fits outfile=/scratch/kocevski/73692/cmap_501638401_501897601_4FGL_J0803.5+2046_daily_bin1012.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=120.888 yref=20.7678 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.66
user 0.37
sys 1.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73692/ft1_filtered_4FGL_J0803.5+2046_daily_bin1012.fits scfile=/scratch/kocevski/73692/ft2_4FGL_J0803.5+2046_daily_bin1012.fits outfile=/scratch/kocevski/73692/cmap_HighResolution_501638401_501897601_4FGL_J0803.5+2046_daily_bin1012.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=120.888 yref=20.7678 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.66
user 0.36
sys 1.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32428       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2252       1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1806       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.306       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12765E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.2654       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.586       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.561       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1647       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.011       1.0000         .10000E-03   10000.    
    20 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.8802       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .44221       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3998       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=   6964.425     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2915 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28733        7.5122       -.16795E-05    .26831E-03
   2  norm          1.2252        1.0024       -.43537E-07   -.19985E-03
   3  norm          .10000E-03    .48478       -.45424E-08** at limit **
   4  Prefactor     .10000E-03    3.3349        .21790E-07** at limit **
   5  norm          2.1814        4.0067       -.76480E-06   -.96730E-03
   6  Prefactor     .10000E-03    13.900        .81817E-05** at limit **
   7  Prefactor     24.304        17.464        .17721E-06   -.21539E-06
   8  Prefactor     .10000E-03    13.203       -.73495E-05** at limit **
   9  Prefactor     .10000E-03    1.4050       -.50035E-07** at limit **
  10  Prefactor     .10000E-03    9.5147        .37701E-06** at limit **
  11  norm          2.2647        35.642       -.21774E-05   -.81777E-04
  12  Prefactor     14.587        10.897        .16162E-06    .32736E-04
  13  Prefactor     .10000E-03    35.638       -.13310E-04** at limit **
  14  norm          .10000E-03    69.185       -.23474E-04** at limit **
  15  Prefactor     .10000E-03    55.808        .21849E-04** at limit **
  16  Prefactor     .10000E-03    20.626       -.57072E-06** at limit **
  17  Prefactor     23.555        27.920       -.44865E-05   -.33847E-04
  18  Prefactor     5.1638        11.093       -.37734E-06   -.89164E-04
  19  Prefactor     24.021        17.121       -.52542E-06   -.74900E-04
  20  norm          .10000E-03    .56010        .71913E-07** at limit **
  21  Prefactor     8.8843        8.3338       -.42950E-06   -.16932E-03
  22  Prefactor     .10000E-03    5.3669        .60217E-08** at limit **
  23  Prefactor     .10000E-03    42.322        .13411E-04** at limit **
  24  Normalizat    .44230        .20019        .50986E-06   -.55459E-04
  25  Prefactor     1.3998        .15199        .30829E-06    .50306E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.287333
  norm       = 1.22515
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18144
  Prefactor  = 0.0001
  Prefactor  = 24.3043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.26472
  Prefactor  = 14.5874
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.5553
  Prefactor  = 5.16384
  Prefactor  = 24.0214
  norm       = 0.0001
  Prefactor  = 8.88427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.4423
  Prefactor  = 1.39978
 **********
 **   18 **HESSE 
 **********

 FCN=   6964.425     FROM HESSE     STATUS=OK           431 CALLS     3346 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28733        96.512        .43810E-02   -1.5601    
   2  norm          1.2252        .99042        .73129E-04   -1.5487    
   3  norm          .10000E-03    .79332        .11277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3594        .14871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1814        3.9873        .20006E-03   -1.5413    
   6  Prefactor     .10000E-03    13.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.304        17.335        .81250E-04   -1.4722    
   8  Prefactor     .10000E-03    13.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.7555        .18818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.5172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2647        35.465        .27289E-03   -1.5407    
  12  Prefactor     14.587        10.805        .10487E-03   -1.4944    
  13  Prefactor     .10000E-03    35.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    68.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    55.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.555        27.933        .82522E-04   -1.4737    
  18  Prefactor     5.1638        11.082        .17690E-03   -1.5253    
  19  Prefactor     24.021        16.693        .81747E-04   -1.4727    
  20  norm          .10000E-03    2.2265        .11483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.8843        8.2135        .13450E-03   -1.5112    
  22  Prefactor     .10000E-03    5.4394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    42.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .44230        .20879        .39152E-03   -1.1517    
  25  Prefactor     1.3998        .16309        .18323E-03   -.80387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28748e-09
Minuit parameter uncertainties:
  1  10.5474
  2  0.990432
  3  1.34732e-06
  4  5.52419e-07
  5  3.98776
  6  1.11701e-05
  7  17.339
  8  1.56079e-07
  9  3.9101e-06
  10  3.97053e-06
  11  17.9364
  12  10.8063
  13  1.44815e-06
  14  4.23659e-06
  15  7.58142e-05
  16  4.20741e-06
  17  27.9482
  18  11.0863
  19  16.6967
  20  4.19017e-06
  21  8.21451
  22  3.72506e-06
  23  5.47309e-05
  24  0.209156
  25  0.163146
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  4.237e-06  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.400e+00  1.631e-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:  4.423e-01  2.092e-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.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73692/likelihoodResults_501638401_501897601_4FGL_J0803.5+2046_daily_bin1012.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) = 6964.42543769
delta logL = -6.89463431627e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6964.4253697
delta logL = -9.49721652432e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1489       1.0000          .0000       5.0000    
     3 'Normalizat'    .44230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3998       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=   6964.425     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      271 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1929.2        .18142E-01** at limit **
   2  alpha         1.7337        4.1042        .17223        .54326E-07
   3  Normalizat    .44230        .24028E-01    .39151E-03    .47622E-05
   4  Prefactor     1.3998        .19254E-01    .18323E-03    .41570E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 1.73368
  Normalizat = 0.442301
  Prefactor  = 1.39978
 **********
 **   18 **HESSE 
 **********

 FCN=   6964.425     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    98.638        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7337        4.0262        .68891E-02   -.31154    
   3  Normalizat    .44230        .19785        .15661E-04   -1.1517    
   4  Prefactor     1.3998        .15873        .73293E-05   -.80387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32752e-10
Minuit parameter uncertainties:
  1  0.00142366
  2  1355.14
  3  0.198168
  4  0.158784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73692': 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) = 6964.42536872
delta logL = 3.23370841215e-08

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  1.424e-03  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.734e+00  1.355e+03  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.400e+00  1.588e-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:  4.423e-01  1.982e-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/73692/cmap_HighResolution_501638401_501897601_4FGL_J0803.5+2046_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-05', job_status='DONE', photon_flux_upper_limit='3.76e-08', time_completed='2021-08-28 23:17:07.473898', job_id='73692', GAL2='1.40', fit_tolerance='1e-08', EG2='0.44', EG='0.44', time_epoch_completed='1630217827.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='3.23e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1012' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:17:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 73692: <4FGL_J0803.5+2046_daily_bin1012> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1012 120.888 20.7678 501638401 501897601 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 :                                   739.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

