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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin893
RA = 120.888, Dec = 20.7678
tmin = 470793601, tmax = 471052801
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='73508', job_status='RUN', time_executed='2021-08-28 23:00:56.555552', time_epoch_executed='1630216856.56' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='893'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73508

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73508/ft1_4FGL_J0803.5+2046_daily_bin893.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73508/ft2_4FGL_J0803.5+2046_daily_bin893.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73508/ft1_4FGL_J0803.5+2046_daily_bin893.fits outfile=/scratch/kocevski/73508/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin893.fits ra=120.888 dec=20.7678 rad=12.0 tmin=470793601.0 tmax=471052801.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.93
user 3.30
sys 0.60

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73508/ft1_filtered_4FGL_J0803.5+2046_daily_bin893.fits" evtable="EVENTS" scfile=/scratch/kocevski/73508/ft2_4FGL_J0803.5+2046_daily_bin893.fits sctable="SC_DATA" outfile=/scratch/kocevski/73508/ltcube_470793601_471052801_4FGL_J0803.5+2046_daily_bin893.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/73508/ft2_4FGL_J0803.5+2046_daily_bin893.fits
.....................!
real 12.22
user 11.43
sys 0.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73508/ft1_filtered_4FGL_J0803.5+2046_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/73508/ft2_4FGL_J0803.5+2046_daily_bin893.fits sctable="SC_DATA" expcube=/scratch/kocevski/73508/ltcube_470793601_471052801_4FGL_J0803.5+2046_daily_bin893.fits outfile=/scratch/kocevski/73508/expmap_470793601_471052801_4FGL_J0803.5+2046_daily_bin893.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/73508/ltcube_470793601_471052801_4FGL_J0803.5+2046_daily_bin893.fits
.....................!
real 190.98
user 185.51
sys 5.16

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/73508/ft1_filtered_4FGL_J0803.5+2046_daily_bin893.fits scfile=/scratch/kocevski/73508/ft2_4FGL_J0803.5+2046_daily_bin893.fits outfile=/scratch/kocevski/73508/cmap_470793601_471052801_4FGL_J0803.5+2046_daily_bin893.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.90
user 0.38
sys 0.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73508/ft1_filtered_4FGL_J0803.5+2046_daily_bin893.fits scfile=/scratch/kocevski/73508/ft2_4FGL_J0803.5+2046_daily_bin893.fits outfile=/scratch/kocevski/73508/cmap_HighResolution_470793601_471052801_4FGL_J0803.5+2046_daily_bin893.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.91
user 0.38
sys 0.52

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6682       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2410       1.0000         .10000E-03   10000.    
     5 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.389       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.130       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4517       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.7344       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.822       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    86.727       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7419       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .30389       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76988       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1608       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=   6116.235     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2888 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6680        5.9535        .40011E-07    .87654E-04
   2  norm          .10000E-03    .45333       -.31880E-07** at limit **
   3  norm          .10000E-03    .82450       -.19582E-05** at limit **
   4  Prefactor     5.2490        7.8308        .59977E-05   -.94666E-03
   5  norm          .10000E-03    1.4584       -.28098E-07** at limit **
   6  Prefactor     27.377        30.938       -.15954E-05   -.12407E-03
   7  Prefactor     19.125        16.111        .20888E-06    .33123E-04
   8  Prefactor     .10000E-03    16.834        .30124E-05** at limit **
   9  Prefactor     1.4513        2.7877        .38261E-07   -.19905E-03
  10  Prefactor     .10000E-03    13.054        .11829E-05** at limit **
  11  norm          3.6815        37.463       -.11255E-04   -.20485E-03
  12  Prefactor     16.840        16.456        .24703E-05    .37087E-03
  13  Prefactor     .10000E-03    36.522        .30045E-06** at limit **
  14  norm          86.723        77.063       -.69374E-06   -.22105E-04
  15  Prefactor     .10000E-03    26.766       -.34763E-05** at limit **
  16  Prefactor     .10000E-03    42.395        .42399E-05** at limit **
  17  Prefactor     .10000E-03    14.476       -.15467E-05** at limit **
  18  Prefactor     5.7402        9.8158        .61310E-07   -.23542E-04
  19  Prefactor     .10000E-03    6.8693        .41420E-07** at limit **
  20  norm          .10000E-03    .21297        .25636E-08** at limit **
  21  Prefactor     .10000E-03    12.828       -.15390E-06** at limit **
  22  Prefactor     .27536        4.0934       -.63898E-07    .18743E-03
  23  Prefactor     .10000E-03    14.630       -.13110E-05** at limit **
  24  Normalizat    .77011        .18803       -.14062E-05    .31109E-03
  25  Prefactor     1.1607        .14365        .30590E-06    .42237E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.668
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.24901
  norm       = 0.0001
  Prefactor  = 27.3771
  Prefactor  = 19.1255
  Prefactor  = 0.000100001
  Prefactor  = 1.45132
  Prefactor  = 0.0001
  norm       = 3.68152
  Prefactor  = 16.8403
  Prefactor  = 0.0001
  norm       = 86.7226
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 5.74016
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.275361
  Prefactor  = 0.0001
  Normalizat = 0.770113
  Prefactor  = 1.16072
 **********
 **   18 **HESSE 
 **********

 FCN=   6116.235     FROM HESSE     STATUS=OK           425 CALLS     3313 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6680        5.9569        .16872E-03   -1.5232    
   2  norm          .10000E-03    .47515        .10278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.2882        .13745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.2490        8.5813        .87790E-03   -1.5250    
   5  norm          .10000E-03    1.4700        .92076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.377        31.098        .76549E-04   -1.4661    
   7  Prefactor     19.125        16.119        .91574E-04   -1.4833    
   8  Prefactor     .10000E-03    16.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4513        2.7496        .17071E-03   -1.5467    
  10  Prefactor     .10000E-03    13.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6815        40.189        .20895E-03   -1.5324    
  12  Prefactor     16.840        16.650        .97653E-04   -1.4887    
  13  Prefactor     .10000E-03    36.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          86.723        77.116        .21570E-03   -1.3843    
  15  Prefactor     .10000E-03    27.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    42.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7402        9.8110        .16762E-03   -1.5229    
  19  Prefactor     .10000E-03    6.8822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .21297        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.339        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .27536        44.832        .29852E-02   -1.5603    
  23  Prefactor     .10000E-03    14.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .77011        .21656        .29547E-03   -1.0119    
  25  Prefactor     1.1607        .16504        .19538E-03   -.87549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13106e-09
Minuit parameter uncertainties:
  1  5.95755
  2  1.30527e-06
  3  4.59731e-05
  4  8.58328
  5  6.40602e-06
  6  31.1163
  7  16.1227
  8  0.00027197
  9  2.74987
  10  0.000119733
  11  24.3479
  12  16.655
  13  3.38893e-05
  14  77.2053
  15  0.000422443
  16  0.000603937
  17  0.000137821
  18  9.81375
  19  7.29739e-07
  20  1.96998e-08
  21  5.17598e-06
  22  7.03116
  23  0.000117162
  24  0.2168
  25  0.165112
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  8.672e+01  7.721e+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.161e+00  1.651e-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:  7.701e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.87
Ra Dec: 120.888 20.768
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.59e-08 +/- 1.41e-08
Energy Flux (Fixed Index): 8.34e-06 +/- 7.42e-06

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

Saving results to:
/scratch/kocevski/73508/likelihoodResults_470793601_471052801_4FGL_J0803.5+2046_daily_bin893.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) = 6116.12400585
delta logL = 0.111222780816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6116.11263418
delta logL = 0.122594449887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    74.023       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1452       1.0000          .0000       5.0000    
     3 'Normalizat'    .77604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1597       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=   6116.113     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      196 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          73.829        83.725       -.38980E-04   -.11375E-04
   2  alpha         1.1430        1.4833       -.73410E-03    .49598E-05
   3  Normalizat    .77557        .17912        .45406E-06    .11857E-02
   4  Prefactor     1.1597        .14339        .15972E-05    .15933E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 73.8288
  alpha      = 1.14298
  Normalizat = 0.77557
  Prefactor  = 1.15969
 **********
 **   18 **HESSE 
 **********

 FCN=   6116.113     FROM HESSE     STATUS=OK            29 CALLS      225 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          73.829        81.009        .23333E-03   -1.3987    
   2  alpha         1.1430        1.4461        .51399E-01   -.57378    
   3  Normalizat    .77557        .20528        .29453E-03   -1.0098    
   4  Prefactor     1.1597        .16466        .19547E-03   -.87581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10107e-09
Minuit parameter uncertainties:
  1  81.1306
  2  1.59519
  3  0.205486
  4  0.164736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73508': 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) = 6116.11261945
delta logL = 0.122609182175

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  7.383e+01  8.113e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.143e+00  1.595e+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.160e+00  1.647e-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:  7.756e-01  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.10
Ra Dec: 120.888 20.768
Photon Index (Free Index): 1.14 +/- 1.60
Photon Flux (Free Index): 1.03e-08 +/- 1.19e-08
Energy Flux (Free Index): 9.07e-06 +/- 8.88e-06

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/73508/cmap_HighResolution_470793601_471052801_4FGL_J0803.5+2046_daily_bin893.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-05', comment='SUCCESS', photon_flux='1.59e-08', energy_flux2='9.07e-06', photon_flux_error='1.41e-08', dlogl='1.23e-01', energy_flux='8.34e-06', photon_flux2='1.03e-08', job_status='DONE', time_completed='2021-08-28 23:12:12.069464', photon_index_error2='1.60', photon_index2='1.14', ts='3.87', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='5.48e-08', energy_flux_error2='8.88e-06', EG='0.77', time_epoch_completed='1630217532.07', return_code='0', job_id='73508', GAL2='1.16', EG2='0.78', return_code2='0', energy_flux_error='7.42e-06', photon_flux_error2='1.19e-08', ts2='4.10', photon_index='2.00' WHERE bin_id='893' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:12:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 73508: <4FGL_J0803.5+2046_daily_bin893> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin893 120.888 20.7678 470793601 471052801 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 :                                   680.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            701 sec.

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

