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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin40
RA = 120.888, Dec = 20.7678
tmin = 249696001, tmax = 249955201
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='69082', job_status='RUN', time_executed='2021-08-28 22:49:26.074643', time_epoch_executed='1630216166.07' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69082

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69082/ft1_4FGL_J0803.5+2046_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69082/ft2_4FGL_J0803.5+2046_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69082/ft1_4FGL_J0803.5+2046_daily_bin40.fits outfile=/scratch/kocevski/69082/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin40.fits ra=120.888 dec=20.7678 rad=12.0 tmin=249696001.0 tmax=249955201.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 6.63
user 1.29
sys 5.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/69082/ft2_4FGL_J0803.5+2046_daily_bin40.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/69082/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin40.fits evtable="EVENTS" outfile="/scratch/kocevski/69082/ft1_filtered_4FGL_J0803.5+2046_daily_bin40.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 5.69
user 0.32
sys 5.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69082/ft1_filtered_4FGL_J0803.5+2046_daily_bin40.fits" evtable="EVENTS" scfile=/scratch/kocevski/69082/ft2_4FGL_J0803.5+2046_daily_bin40.fits sctable="SC_DATA" outfile=/scratch/kocevski/69082/ltcube_249696001_249955201_4FGL_J0803.5+2046_daily_bin40.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/69082/ft2_4FGL_J0803.5+2046_daily_bin40.fits
.....................!
real 18.52
user 12.38
sys 6.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69082/ft1_filtered_4FGL_J0803.5+2046_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/69082/ft2_4FGL_J0803.5+2046_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/69082/ltcube_249696001_249955201_4FGL_J0803.5+2046_daily_bin40.fits outfile=/scratch/kocevski/69082/expmap_249696001_249955201_4FGL_J0803.5+2046_daily_bin40.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/69082/ltcube_249696001_249955201_4FGL_J0803.5+2046_daily_bin40.fits
.....................!
real 198.74
user 186.74
sys 11.57

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/69082/ft1_filtered_4FGL_J0803.5+2046_daily_bin40.fits scfile=/scratch/kocevski/69082/ft2_4FGL_J0803.5+2046_daily_bin40.fits outfile=/scratch/kocevski/69082/cmap_249696001_249955201_4FGL_J0803.5+2046_daily_bin40.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 5.77
user 0.37
sys 5.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69082/ft1_filtered_4FGL_J0803.5+2046_daily_bin40.fits scfile=/scratch/kocevski/69082/ft2_4FGL_J0803.5+2046_daily_bin40.fits outfile=/scratch/kocevski/69082/cmap_HighResolution_249696001_249955201_4FGL_J0803.5+2046_daily_bin40.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 5.66
user 0.39
sys 5.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    88.696       1.0000         .10000E-03   10000.    
     2 'norm      '    .91425       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4760       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.4380       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6427       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22804E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    29.407       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5908       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9970       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.065       1.0000         .10000E-03   10000.    
    20 'norm      '    .14694       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.169       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2484       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94613       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93195       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=   5803.985     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     2592 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          88.706        22.022        .12256E-06    .16461E-04
   2  norm          .91448        .85689        .16990E-07    .46857E-05
   3  norm          1.4763        1.1906        .30280E-07   -.90543E-05
   4  Prefactor     .10000E-03    6.8532        .10610E-07** at limit **
   5  norm          3.4399        3.4018        .18983E-06   -.23211E-04
   6  Prefactor     .10000E-03    17.731       -.14264E-07** at limit **
   7  Prefactor     .10000E-03    4.5239        .13983E-07** at limit **
   8  Prefactor     .10000E-03    28.762        .77332E-07** at limit **
   9  Prefactor     2.6320        3.3954        .27539E-06   -.86144E-04
  10  Prefactor     .10000E-03    115.87        .39533E-06** at limit **
  11  norm          .10000E-03    13.953        .28224E-07** at limit **
  12  Prefactor     .29135        10.493        .39495E-06   -.94452E-04
  13  Prefactor     .10000E-03    382.03       -.28970E-05** at limit **
  14  norm          29.450        62.716        .44969E-05    .10898E-03
  15  Prefactor     1.6007        86.078        .29980E-05    .46544E-05
  16  Prefactor     .10000E-03    12.774       -.16180E-07** at limit **
  17  Prefactor     .10000E-03    15.355       -.46312E-07** at limit **
  18  Prefactor     1.9969        19.212        .14303E-05   -.95807E-05
  19  Prefactor     14.091        21.379       -.14416E-06    .62790E-04
  20  norm          .14518        .99499       -.18920E-08    .33191E-03
  21  Prefactor     19.184        12.702       -.45515E-06   -.35005E-04
  22  Prefactor     5.2500        5.7570        .16754E-05   -.10826E-03
  23  Prefactor     .10000E-03    38.857       -.24958E-06** at limit **
  24  Normalizat    .94591        .19665       -.64206E-06   -.59423E-04
  25  Prefactor     .93183        .14405       -.37725E-06   -.67340E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 88.7062
  norm       = 0.914476
  norm       = 1.4763
  Prefactor  = 0.0001
  norm       = 3.43994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.63197
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.291349
  Prefactor  = 0.000100002
  norm       = 29.4501
  Prefactor  = 1.60069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.99688
  Prefactor  = 14.0907
  norm       = 0.145178
  Prefactor  = 19.1837
  Prefactor  = 5.24998
  Prefactor  = 0.0001
  Normalizat = 0.945915
  Prefactor  = 0.93183
 **********
 **   18 **HESSE 
 **********

 FCN=   5803.985     FROM HESSE     STATUS=OK           431 CALLS     3023 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          88.706        22.041        .42663E-04   -1.3821    
   2  norm          .91448        .87382        .66110E-04   -1.5517    
   3  norm          1.4763        1.1939        .72121E-04   -1.5465    
   4  Prefactor     .10000E-03    6.9610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4399        3.3947        .13310E-03   -1.5337    
   6  Prefactor     .10000E-03    17.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5260        .15825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6320        3.3747        .14665E-03   -1.5383    
  10  Prefactor     .10000E-03    118.67        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    13.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .29135        118.20        .46092E-02   -1.5600    
  13  Prefactor     .10000E-03    386.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          29.450        65.652        .73882E-04   -1.4622    
  15  Prefactor     1.6007        86.987        .33642E-03   -1.5455    
  16  Prefactor     .10000E-03    12.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.9969        19.298        .29311E-03   -1.5425    
  19  Prefactor     14.091        21.525        .10680E-03   -1.4957    
  20  norm          .14518        3.3697        .12077E-02   -1.5632    
  21  Prefactor     19.184        12.695        .91481E-04   -1.4832    
  22  Prefactor     5.2500        5.8157        .87726E-03   -1.5250    
  23  Prefactor     .10000E-03    39.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94591        .22753        .27123E-03   -.94865    
  25  Prefactor     .93183        .16716        .21075E-03   -.95038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37483e-10
Minuit parameter uncertainties:
  1  22.0429
  2  0.873828
  3  1.19388
  4  6.31454e-06
  5  3.39492
  6  1.64772e-06
  7  1.21299e-06
  8  1.72876e-05
  9  3.37495
  10  0.000194897
  11  6.29197e-06
  12  11.758
  13  0.00177095
  14  65.8141
  15  23.6355
  16  9.44e-06
  17  3.17971e-06
  18  12.4205
  19  21.5364
  20  1.39847
  21  12.6963
  22  5.81632
  23  3.41324e-05
  24  0.227758
  25  0.167257
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  2.945e+01  6.581e+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:  9.318e-01  1.673e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  9.459e-01  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/69082/likelihoodResults_249696001_249955201_4FGL_J0803.5+2046_daily_bin40.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) = 5803.07467163
delta logL = 0.910190311713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5803.00906607
delta logL = 0.975795864943

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.920       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .85548       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96875       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=   5803.009     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      263 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.931        13.341        .26838E-02    .60130E-04
   2  alpha         5.0000        3.2542        .46408    ** at limit **
   3  Normalizat    .85572        .18683        .64173E-01    .20081E-04
   4  Prefactor     .96853        .14110        .45875E-01    .21169E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.9307
  alpha      = 5
  Normalizat = 0.85572
  Prefactor  = 0.968526
 **********
 **   18 **HESSE 
 **********

 FCN=   5803.009     FROM HESSE     STATUS=OK            35 CALLS      298 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.931        12.561        .10735E-03   -1.4961    
   2  alpha         5.0000        3.1452        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .85572        .21981        .28386E-03   -.98034    
   4  Prefactor     .96853        .16549        .20709E-03   -.93786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98951e-13
Minuit parameter uncertainties:
  1  12.563
  2  1.90786e-06
  3  0.220035
  4  0.165578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69082': 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) = 5803.00906445
delta logL = 0.975797485487

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.393e+01  1.256e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  5.000e+00  1.908e-06  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:  9.685e-01  1.656e-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:  8.557e-01  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.34
Ra Dec: 120.888 20.768
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.23e-08 +/- 6.52e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.12e-05

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/69082/cmap_HighResolution_249696001_249955201_4FGL_J0803.5+2046_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.38e-05', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='9.76e-01', photon_flux2='7.23e-08', job_status='DONE', time_completed='2021-08-28 23:01:16.753188', photon_index_error2='0.00', photon_index2='5.00', ts='0.28', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='4.52e-08', energy_flux_error2='1.12e-05', EG='0.95', time_epoch_completed='1630216876.75', return_code='0', job_id='69082', GAL2='0.97', EG2='0.86', return_code2='0', photon_flux_error2='6.52e-08', ts2='2.34', photon_index='2.00' WHERE bin_id='40' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:01:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 69082: <4FGL_J0803.5+2046_daily_bin40> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin40> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Aug 28 22:45:55 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 22:45:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 22:45:57 2021
Terminated at Sat Aug 28 23:01:18 2021
Results reported at Sat Aug 28 23:01:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin40 120.888 20.7678 249696001 249955201 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 :                                   790.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            923 sec.

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

