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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1118
RA = 120.888, Dec = 20.7678
tmin = 529113601, tmax = 529372801
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='75098', job_status='RUN', time_executed='2021-08-28 23:09:28.032918', time_epoch_executed='1630217368.03' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75098

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75098/ft1_4FGL_J0803.5+2046_daily_bin1118.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75098/ft2_4FGL_J0803.5+2046_daily_bin1118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75098/ft1_4FGL_J0803.5+2046_daily_bin1118.fits outfile=/scratch/kocevski/75098/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1118.fits ra=120.888 dec=20.7678 rad=12.0 tmin=529113601.0 tmax=529372801.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.14
user 3.68
sys 0.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75098/ft1_filtered_4FGL_J0803.5+2046_daily_bin1118.fits" evtable="EVENTS" scfile=/scratch/kocevski/75098/ft2_4FGL_J0803.5+2046_daily_bin1118.fits sctable="SC_DATA" outfile=/scratch/kocevski/75098/ltcube_529113601_529372801_4FGL_J0803.5+2046_daily_bin1118.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/75098/ft2_4FGL_J0803.5+2046_daily_bin1118.fits
.....................!
real 12.08
user 11.47
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75098/ft1_filtered_4FGL_J0803.5+2046_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/75098/ft2_4FGL_J0803.5+2046_daily_bin1118.fits sctable="SC_DATA" expcube=/scratch/kocevski/75098/ltcube_529113601_529372801_4FGL_J0803.5+2046_daily_bin1118.fits outfile=/scratch/kocevski/75098/expmap_529113601_529372801_4FGL_J0803.5+2046_daily_bin1118.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/75098/ltcube_529113601_529372801_4FGL_J0803.5+2046_daily_bin1118.fits
.....................!
real 190.39
user 184.71
sys 5.32

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/75098/ft1_filtered_4FGL_J0803.5+2046_daily_bin1118.fits scfile=/scratch/kocevski/75098/ft2_4FGL_J0803.5+2046_daily_bin1118.fits outfile=/scratch/kocevski/75098/cmap_529113601_529372801_4FGL_J0803.5+2046_daily_bin1118.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.78
user 0.38
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75098/ft1_filtered_4FGL_J0803.5+2046_daily_bin1118.fits scfile=/scratch/kocevski/75098/ft2_4FGL_J0803.5+2046_daily_bin1118.fits outfile=/scratch/kocevski/75098/cmap_HighResolution_529113601_529372801_4FGL_J0803.5+2046_daily_bin1118.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.77
user 0.37
sys 0.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6800       1.0000         .10000E-03   10000.    
     3 'norm      '    .99483       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5974       1.0000         .10000E-03   10000.    
     5 'norm      '    4.7983       1.0000         .10000E-03   10000.    
     6 'Prefactor '    69.515       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.413       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.621       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.018       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    72.546       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    84.600       1.0000         .10000E-03   10000.    
    20 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .22807E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    46.606       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0224       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0136       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=   7409.458     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2910 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.4417        .44397E-06** at limit **
   2  norm          1.6800        1.2285        .13200E-06   -.49456E-03
   3  norm          .99457        .93620        .23060E-06   -.21001E-03
   4  Prefactor     6.6054        9.4171       -.60223E-05   -.38755E-03
   5  norm          4.7977        5.4061        .63265E-06   -.69410E-03
   6  Prefactor     69.522        52.245        .70579E-05   -.73580E-04
   7  Prefactor     17.416        14.800       -.27095E-06   -.65620E-04
   8  Prefactor     22.654        42.304        .41533E-04    .37684E-05
   9  Prefactor     .10000E-03    1.5768       -.12102E-07** at limit **
  10  Prefactor     .10000E-03    26.061        .46801E-05** at limit **
  11  norm          .10000E-03    20.473       -.13801E-04** at limit **
  12  Prefactor     11.019        9.6352        .66867E-06    .24831E-03
  13  Prefactor     .10000E-03    92.955       -.57050E-04** at limit **
  14  norm          72.555        91.945        .96593E-05   -.65796E-05
  15  Prefactor     .10000E-03    16.689        .10500E-04** at limit **
  16  Prefactor     .10000E-03    77.666        .53608E-04** at limit **
  17  Prefactor     .10000E-03    8.1107       -.23628E-06** at limit **
  18  Prefactor     .10000E-03    4.5905       -.59931E-06** at limit **
  19  Prefactor     84.600        27.505        .78681E-06   -.25261E-03
  20  norm          .10000E-03    .41863        .26434E-07** at limit **
  21  Prefactor     .10000E-03    3.2288       -.20945E-06** at limit **
  22  Prefactor     .10000E-03    11.648       -.13143E-05** at limit **
  23  Prefactor     46.616        40.470        .93978E-05   -.84479E-05
  24  Normalizat    1.0223        .18742       -.46826E-05   -.84671E-04
  25  Prefactor     1.0136        .13683       -.69167E-06   -.30520E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.68002
  norm       = 0.994574
  Prefactor  = 6.60539
  norm       = 4.79775
  Prefactor  = 69.522
  Prefactor  = 17.4163
  Prefactor  = 22.6539
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.0185
  Prefactor  = 0.0001
  norm       = 72.5552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 84.6
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.6164
  Normalizat = 1.02228
  Prefactor  = 1.01361
 **********
 **   18 **HESSE 
 **********

 FCN=   7409.458     FROM HESSE     STATUS=OK           423 CALLS     3333 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.4526        .17717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6800        1.2185        .78367E-04   -1.5449    
   3  norm          .99457        .98495        .73075E-03   -1.5509    
   4  Prefactor     6.6054        9.3575        .15624E-03   -1.5194    
   5  norm          4.7977        5.3544        .16893E-03   -1.5270    
   6  Prefactor     69.522        52.024        .48145E-04   -1.4038    
   7  Prefactor     17.416        14.763        .95979E-04   -1.4873    
   8  Prefactor     22.654        42.358        .84218E-04   -1.4756    
   9  Prefactor     .10000E-03    1.6156        .21091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    20.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.019        9.6331        .12070E-03   -1.5044    
  13  Prefactor     .10000E-03    92.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          72.555        92.114        .47135E-04   -1.4002    
  15  Prefactor     .10000E-03    16.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    78.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.1126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.5934        .18012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     84.600        27.544        .43674E-04   -1.3866    
  20  norm          .10000E-03    .42688        .10839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.2468        .15101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.103        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     46.616        40.498        .58733E-04   -1.4341    
  24  Normalizat    1.0223        .21804        .28953E-03   -.92288    
  25  Prefactor     1.0136        .15936        .22009E-03   -.92277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.0427e-10
Minuit parameter uncertainties:
  1  9.84115e-06
  2  1.21848
  3  0.984966
  4  9.35958
  5  5.35491
  6  52.0576
  7  14.7659
  8  42.414
  9  7.797e-06
  10  0.000172451
  11  7.2805e-05
  12  9.63448
  13  0.000125945
  14  92.2956
  15  1.24958e-06
  16  0.000143422
  17  4.64814e-06
  18  3.69693e-06
  19  27.5478
  20  2.50176e-06
  21  1.33039e-05
  22  0.000116739
  23  40.5223
  24  0.218234
  25  0.159432
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  7.256e+01  9.230e+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.014e+00  1.594e-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.022e+00  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/75098/likelihoodResults_529113601_529372801_4FGL_J0803.5+2046_daily_bin1118.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) = 7409.43039138
delta logL = 0.0279347611859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7409.42900891
delta logL = 0.0293172297843

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    77.289       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7268       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0123       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=   7409.429     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      254 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          77.271        95.826        .45677E-04    .10852E-04
   2  alpha         1.7271        1.0779        .36895E-01    .23631E-05
   3  Normalizat    1.0242        .20684        .28929E-03    .16478E-03
   4  Prefactor     1.0123        .15857        .22021E-03    .16039E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 77.2713
  alpha      = 1.72709
  Normalizat = 1.02423
  Prefactor  = 1.01227
 **********
 **   18 **HESSE 
 **********

 FCN=   7409.429     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          77.271        95.493        .91354E-05   -1.3948    
   2  alpha         1.7271        1.0748        .14758E-02   -.31431    
   3  Normalizat    1.0242        .20699        .11572E-04   -.92223    
   4  Prefactor     1.0123        .15868        .44042E-04   -.92322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46629e-11
Minuit parameter uncertainties:
  1  95.6838
  2  1.11527
  3  0.207153
  4  0.158753
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75098': 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) = 7409.42900886
delta logL = 0.0293172790889

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  7.727e+01  9.568e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.727e+00  1.115e+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.012e+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:  1.024e+00  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.83
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/75098/cmap_HighResolution_529113601_529372801_4FGL_J0803.5+2046_daily_bin1118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-05', job_status='DONE', photon_flux_upper_limit='5.40e-08', time_completed='2021-08-28 23:22:03.425201', job_id='75098', GAL2='1.01', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630218123.43', return_code2='0', ts='0.83', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.93e-02', ts2='0.89', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1118' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:22:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 75098: <4FGL_J0803.5+2046_daily_bin1118> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1118> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 23:05:32 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:05:34 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:05:34 2021
Terminated at Sat Aug 28 23:22:04 2021
Results reported at Sat Aug 28 23:22:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1118 120.888 20.7678 529113601 529372801 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 :                                   756.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            992 sec.

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

