aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 80 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1772
RA = 120.888, Dec = 20.7678
tmin = 698630401, tmax = 698889601
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='620831', job_status='RUN', time_executed='2023-02-24 00:56:47.503347', time_epoch_executed='1677229007.5' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/620831

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/620831/ft1_4FGL_J0803.5+2046_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/620831/ft2_4FGL_J0803.5+2046_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/620831/ft1_4FGL_J0803.5+2046_daily_bin1772.fits outfile=/scratch/kocevski/620831/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1772.fits ra=120.888 dec=20.7678 rad=12.0 tmin=698630401.0 tmax=698889601.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 2.97
user 2.78
sys 0.18

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

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

Number of photons that the gtmktime cut: 170

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/620831/ft1_filtered_4FGL_J0803.5+2046_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/620831/ft2_4FGL_J0803.5+2046_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/620831/ltcube_698630401_698889601_4FGL_J0803.5+2046_daily_bin1772.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/620831/ft2_4FGL_J0803.5+2046_daily_bin1772.fits
.....................!
real 12.28
user 11.95
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/620831/ft1_filtered_4FGL_J0803.5+2046_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/620831/ft2_4FGL_J0803.5+2046_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/620831/ltcube_698630401_698889601_4FGL_J0803.5+2046_daily_bin1772.fits outfile=/scratch/kocevski/620831/expmap_698630401_698889601_4FGL_J0803.5+2046_daily_bin1772.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/620831/ltcube_698630401_698889601_4FGL_J0803.5+2046_daily_bin1772.fits
.....................!
real 191.52
user 186.33
sys 4.83

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/620831/ft1_filtered_4FGL_J0803.5+2046_daily_bin1772.fits scfile=/scratch/kocevski/620831/ft2_4FGL_J0803.5+2046_daily_bin1772.fits outfile=/scratch/kocevski/620831/cmap_698630401_698889601_4FGL_J0803.5+2046_daily_bin1772.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.55
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/620831/ft1_filtered_4FGL_J0803.5+2046_daily_bin1772.fits scfile=/scratch/kocevski/620831/ft2_4FGL_J0803.5+2046_daily_bin1772.fits outfile=/scratch/kocevski/620831/cmap_HighResolution_698630401_698889601_4FGL_J0803.5+2046_daily_bin1772.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.54
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/620831/ft1_filtered_4FGL_J0803.5+2046_daily_bin1772.fits', '/scratch/kocevski/620831/ft2_4FGL_J0803.5+2046_daily_bin1772.fits', expMap='/scratch/kocevski/620831/expmap_698630401_698889601_4FGL_J0803.5+2046_daily_bin1772.fits', expCube='/scratch/kocevski/620831/ltcube_698630401_698889601_4FGL_J0803.5+2046_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/620831/Model_4FGL_J0803.5+2046_daily_bin1772.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  0.000e+00  1.000e+06 ( 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 -5.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/620831/ft1_filtered_4FGL_J0803.5+2046_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/620831/ft2_4FGL_J0803.5+2046_daily_bin1772.fits
Exposure map: /scratch/kocevski/620831/expmap_698630401_698889601_4FGL_J0803.5+2046_daily_bin1772.fits
Exposure cube: /scratch/kocevski/620831/ltcube_698630401_698889601_4FGL_J0803.5+2046_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/620831/Model_4FGL_J0803.5+2046_daily_bin1772.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) = 1985.25736106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    42.931       1.0000          .0000       .10000E+07
     2 'norm      '    2.5273       1.0000          .0000       .10000E+07
     3 'norm      '    9.2846       1.0000          .0000       .10000E+07
     4 'norm      '    .68947E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    32.423       1.0000          .0000       .10000E+07
     6 'Prefactor '    .15433E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .89698E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    6.3636       1.0000          .0000       .10000E+07
     9 'norm      '    .40907E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .46062E-03   1.0000          .0000       .10000E+07
    11 'norm      '    406.35       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.2266       1.0000          .0000       .10000E+07
    13 'Prefactor '    .43377       1.0000          .0000       .10000E+07
    14 'Prefactor '    .40951E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    233.55       1.0000          .0000       .10000E+07
    16 'norm      '    .36472E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .36864E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    9.5796       1.0000          .0000       .10000E+07
    19 'Normalizat'    .63574       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86522       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1985.251     FROM MIGRAD    STATUS=CONVERGED    220 CALLS     1621 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          42.875        21.399        .19061E-07   -.46512E-03
   2  norm          2.5271        2.4906        .42824E-07    .16738E-02
   3  norm          9.2826        3.8043        .22947E-07    .14358E-02
   4  norm           .0000        6.5504        .26778E-07** at limit **
   5  Prefactor     34.292        81.073       -.22609E-07   -.33485E-03
   6  Prefactor     .55511E-10    17.543       -.10671E-06** at limit **
   7  Prefactor     .14988E-08    27.055       -.36805E-06** at limit **
   8  Prefactor     6.4365        6.5567       -.11423E-07   -.31138E-03
   9  norm          .11102E-09    25.906       -.16353E-06** at limit **
  10  Prefactor     .22204E-09    27.831        .56526E-08** at limit **
  11  norm          405.93        18.607       -.18445E-06   -.10427E-01
  12  Prefactor     4.5934        895.15        .70586E-05   -.20047E-04
  13  Prefactor     .11657E-08    100.05        .50905E-06** at limit **
  14  Prefactor     .55511E-10    37.693       -.11880E-06** at limit **
  15  Prefactor     233.88        115.59       -.29105E-06    .11557E-02
  16  norm           .0000        7.7252       -.15186E-08** at limit **
  17  Prefactor     .10547E-08    112.21       -.38234E-06** at limit **
  18  Prefactor     .15556E-05    10461.       -.33559E-04** at limit **
  19  Normalizat    .63604        .45991       -.77783E-05    .13919E-04
  20  Prefactor     .86501        .28886        .10665E-05    .42542E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 42.875
  norm       = 2.52708
  norm       = 9.28264
  norm       = 0
  Prefactor  = 34.2918
  Prefactor  = 5.55112e-11
  Prefactor  = 1.4988e-09
  Prefactor  = 6.43648
  norm       = 1.11022e-10
  Prefactor  = 2.22045e-10
  norm       = 405.932
  Prefactor  = 4.59338
  Prefactor  = 1.16573e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 233.878
  norm       = 0
  Prefactor  = 1.05471e-09
  Prefactor  = 1.55559e-06
  Normalizat = 0.636041
  Prefactor  = 0.865014
 **********
 **   18 **HESSE 
 **********

 FCN=   1985.251     FROM HESSE     STATUS=OK           327 CALLS     1948 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          42.875        21.460        .15263E-03   -1.5577    
   2  norm          2.5271        2.5049        .64227E-03   -1.5676    
   3  norm          9.2826        3.8130        .32866E-03   -1.5647    
   4  norm           .0000        6.6167        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.292        81.268        .17564E-03   -1.5591    
   6  Prefactor     .55511E-10    17.507        .17358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .14988E-08    27.255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.4365        6.5688        .39765E-03   -1.5657    
   9  norm          .11102E-09    25.965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22204E-09    27.932        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          405.93        270.80        .49618E-04   -1.5305    
  12  Prefactor     4.5934        916.04        .40206E-03   -1.5665    
  13  Prefactor     .11657E-08    100.18        .85674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    37.919        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     233.88        114.48        .65442E-04   -1.5402    
  16  norm           .0000        7.7136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10547E-08    111.96        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .15556E-05    10514.        .32354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .63604        .39754        .80452E-01   -1.0647    
  20  Prefactor     .86501        .24792        .44560E-01   -.97375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03457e-08
Minuit parameter uncertainties:
  1  21.4597
  2  2.50488
  3  3.81304
  4  3.52981e-06
  5  81.271
  6  6.62973e-05
  7  0.00040253
  8  6.56886
  9  0.00011695
  10  0.000164189
  11  270.807
  12  129.754
  13  0.000686891
  14  9.52461e-05
  15  114.477
  16  8.46653e-07
  17  0.00069528
  18  0.256226
  19  0.39935
  20  0.248243
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  4.059e+02  2.708e+02  0.000e+00  1.000e+06 ( 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 -5.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:  8.650e-01  2.482e-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:  6.360e-01  3.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.75
Ra Dec: 120.888 20.768
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.42e-08 +/- 4.95e-08
Energy Flux (Fixed Index): 3.90e-05 +/- 2.60e-05

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) = 1985.23359394
delta logL = 0.0174886667301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1985.23288538
delta logL = 0.0181972274183

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    401.14       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2071       1.0000          .0000       5.0000    
     3 'Normalizat'    .62516       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86888       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=   1985.233     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      179 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          401.24        268.05        .51215E-05    .29279E-03
   2  alpha         2.2062        1.0506       -.36828E-04   -.46053E-04
   3  Normalizat    .62508        .36749       -.91201E-07   -.29045E-04
   4  Prefactor     .86895        .24606       -.22380E-05    .42924E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 401.245
  alpha      = 2.20621
  Normalizat = 0.625076
  Prefactor  = 0.868951
 **********
 **   18 **HESSE 
 **********

 FCN=   1985.233     FROM HESSE     STATUS=OK            27 CALLS      206 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          401.24        268.21        .99878E-05   -1.5307    
   2  alpha         2.2062        1.0546        .16606E-02   -.11779    
   3  Normalizat    .62508        .42462        .35915E-03   -1.0693    
   4  Prefactor     .86895        .28526        .20566E-03   -.97235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86843e-10
Minuit parameter uncertainties:
  1  268.221
  2  1.0892
  3  0.426869
  4  0.285751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/620831': 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) = 1985.23288495
delta logL = 0.0181976606814

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  4.012e+02  2.682e+02  0.000e+00  1.000e+06 ( 1.000e-13)
274        alpha:  2.206e+00  1.089e+00  0.000e+00  5.000e+00 ( 1.000e+00)
275         beta:  7.702e-01  0.000e+00 -5.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:  8.690e-01  2.858e-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:  6.251e-01  4.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.73
Ra Dec: 120.888 20.768
Photon Index (Free Index): 2.21 +/- 1.09
Photon Flux (Free Index): 8.31e-08 +/- 7.41e-08
Energy Flux (Free Index): 3.89e-05 +/- 2.56e-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/620831/cmap_HighResolution_698630401_698889601_4FGL_J0803.5+2046_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.42e-08', energy_flux2='3.89e-05', photon_flux_error='4.95e-08', dlogl='1.82e-02', energy_flux='3.90e-05', photon_flux2='8.31e-08', job_status='DONE', time_completed='2023-02-24 01:03:00.689135', photon_index_error2='1.09', photon_index2='2.21', ts='7.75', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='2.56e-05', EG='0.64', time_epoch_completed='1677229380.69', return_code='0', job_id='620831', GAL2='0.87', EG2='0.63', return_code2='0', energy_flux_error='2.60e-05', photon_flux_error2='7.41e-08', ts2='7.73', photon_index='2.00' WHERE bin_id='1772' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:03:00 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 620831: <4FGL_J0803.5+2046_daily_bin1772> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1772> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb 24 00:55:13 2023
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 00:55:14 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 00:55:14 2023
Terminated at Fri Feb 24 01:03:01 2023
Results reported at Fri Feb 24 01:03:01 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1772 120.888 20.7678 698630401 698889601 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 :                                   375.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   468 sec.
    Turnaround time :                            468 sec.

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

