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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1749
RA = 120.888, Dec = 20.7678
tmin = 692668801, tmax = 692928001
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='946675', job_status='RUN', time_executed='2022-12-17 00:26:08.488127', time_epoch_executed='1671265568.49' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946675

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946675/ft1_4FGL_J0803.5+2046_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946675/ft2_4FGL_J0803.5+2046_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946675/ft1_4FGL_J0803.5+2046_daily_bin1749.fits outfile=/scratch/kocevski/946675/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1749.fits ra=120.888 dec=20.7678 rad=12.0 tmin=692668801.0 tmax=692928001.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.68
user 3.43
sys 0.20

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

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

Number of photons that the gtmktime cut: 652

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946675/ft1_filtered_4FGL_J0803.5+2046_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/946675/ft2_4FGL_J0803.5+2046_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/946675/ltcube_692668801_692928001_4FGL_J0803.5+2046_daily_bin1749.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/946675/ft2_4FGL_J0803.5+2046_daily_bin1749.fits
.....................!
real 12.39
user 12.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946675/ft1_filtered_4FGL_J0803.5+2046_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/946675/ft2_4FGL_J0803.5+2046_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/946675/ltcube_692668801_692928001_4FGL_J0803.5+2046_daily_bin1749.fits outfile=/scratch/kocevski/946675/expmap_692668801_692928001_4FGL_J0803.5+2046_daily_bin1749.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/946675/ltcube_692668801_692928001_4FGL_J0803.5+2046_daily_bin1749.fits
.....................!
real 193.93
user 187.06
sys 5.87

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/946675/ft1_filtered_4FGL_J0803.5+2046_daily_bin1749.fits scfile=/scratch/kocevski/946675/ft2_4FGL_J0803.5+2046_daily_bin1749.fits outfile=/scratch/kocevski/946675/cmap_692668801_692928001_4FGL_J0803.5+2046_daily_bin1749.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946675/ft1_filtered_4FGL_J0803.5+2046_daily_bin1749.fits scfile=/scratch/kocevski/946675/ft2_4FGL_J0803.5+2046_daily_bin1749.fits outfile=/scratch/kocevski/946675/cmap_HighResolution_692668801_692928001_4FGL_J0803.5+2046_daily_bin1749.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    30.229       1.0000          .0000       .10000E+07
     2 'norm      '    .64681       1.0000          .0000       .10000E+07
     3 'norm      '    7.9588       1.0000          .0000       .10000E+07
     4 'norm      '    5.1461       1.0000          .0000       .10000E+07
     5 'Prefactor '    13.058       1.0000          .0000       .10000E+07
     6 'Prefactor '    19.405       1.0000          .0000       .10000E+07
     7 'Prefactor '    65.830       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10444E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .36943E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    35.284       1.0000          .0000       .10000E+07
    11 'norm      '    .15781E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .12916E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    9.9290       1.0000          .0000       .10000E+07
    14 'Prefactor '    .83016E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .80556E-03   1.0000          .0000       .10000E+07
    16 'norm      '    2.1623       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22903E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .13842       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0244       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93257       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=   7428.634     FROM MIGRAD    STATUS=CONVERGED    109 CALLS     1499 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          30.217        1.2250       -.99044E-08    .17853E-01
   2  norm          .64690        .88847       -.21524E-06    .80309E-02
   3  norm          7.9564        2.2335       -.53126E-07   -.34080E-04
   4  norm          5.1353        5.0683        .49480E-06    .57951E-03
   5  Prefactor     13.116        1.0415        .22191E-07    .38748E-02
   6  Prefactor     19.533        1.2251        .47057E-07   -.83406E-02
   7  Prefactor     66.128        3.7668        .31725E-07   -.34504    
   8  Prefactor     .42077E-07    11.031       -.89000E-06** at limit **
   9  norm          .31075E-06    6.1332       -.62036E-06** at limit **
  10  Prefactor     35.329        6.9765       -.84610E-07   -.98348E-02
  11  norm          .82523E-06    62.257       -.20536E-06** at limit **
  12  Prefactor     .32102E-06    3.7915       -.85235E-06** at limit **
  13  Prefactor     9.8290        1.9635       -.52321E-07    .52975E-01
  14  Prefactor      .0000        8.4547       -.13053E-05** at limit **
  15  Prefactor     .23870E-08    23.268       -.39679E-06** at limit **
  16  norm          2.1647        1.4301       -.22952E-06    .12663E-01
  17  Prefactor     .12934E-07    5.1665       -.76386E-06** at limit **
  18  Prefactor     .13878E-08    25.779       -.74267E-06** at limit **
  19  Normalizat    1.0244        .22200       -.96915E-05    .52537E-03
  20  Prefactor     .93245        .16148       -.23780E-05    .62580E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 30.2166
  norm       = 0.646901
  norm       = 7.95643
  norm       = 5.13532
  Prefactor  = 13.1161
  Prefactor  = 19.5331
  Prefactor  = 66.1285
  Prefactor  = 4.20775e-08
  norm       = 3.10751e-07
  Prefactor  = 35.3293
  norm       = 8.25229e-07
  Prefactor  = 3.21021e-07
  Prefactor  = 9.82896
  Prefactor  = 0
  Prefactor  = 2.38698e-09
  norm       = 2.16472
  Prefactor  = 1.29341e-08
  Prefactor  = 1.38778e-09
  Normalizat = 1.02439
  Prefactor  = 0.93245
 **********
 **   18 **HESSE 
 **********

 FCN=   7428.634     FROM HESSE     STATUS=OK           335 CALLS     1834 TOTAL
                     EDM=   .52E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          30.217        15.776        .18191E-03   -1.5598    
   2  norm          .64690        .89937        .65136E-03   -1.5692    
   3  norm          7.9564        2.2651        .35517E-03   -1.5652    
   4  norm          5.1353        6.4168        .44294E-03   -1.5663    
   5  Prefactor     13.116        43.166        .27694E-03   -1.5636    
   6  Prefactor     19.533        25.657        .22709E-03   -1.5620    
   7  Prefactor     66.128        52.902        .12326E-03   -1.5545    
   8  Prefactor     .42077E-07    2.4730        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .31075E-06    8.5382        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     35.329        14.883        .16837E-03   -1.5589    
  11  norm          .82523E-06    62.608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .32102E-06    9.8815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.8290        20.025        .31776E-03   -1.5645    
  14  Prefactor      .0000        10.192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .23870E-08    23.248        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1647        1.4371        .70018E-03   -1.5679    
  17  Prefactor     .12934E-07    5.2918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .13878E-08    25.580        .12994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0244        .19238        .66269E-01   -.92218    
  20  Prefactor     .93245        .13744        .45419E-01   -.95016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20338e-06
Minuit parameter uncertainties:
  1  15.7759
  2  0.899375
  3  2.26514
  4  6.41679
  5  43.1673
  6  25.6569
  7  52.9019
  8  0.000645181
  9  0.00325787
  10  14.8831
  11  0.0143761
  12  0.00356221
  13  20.0249
  14  2.72393e-07
  15  0.000468454
  16  1.43708
  17  0.000523617
  18  0.00037529
  19  0.192514
  20  0.13749
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  8.252e-07  1.438e-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:  9.325e-01  1.375e-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  1.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/946675/likelihoodResults_692668801_692928001_4FGL_J0803.5+2046_daily_bin1749.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7428.64121123
delta logL = -0.007645741749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7428.63356606
delta logL = -5.72954377276e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .87780E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    4.7506       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93257       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7428.634     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      261 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11102E-09    25.984        .42118E-03** at limit **
   2  alpha         .77842        .90463       -.30409E-03   -.33765E-11
   3  Normalizat    1.0244        1.2524        .13867E-04    .14465E-03
   4  Prefactor     .93245        1.2757       -.45747E-05    .18664E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11022e-10
  alpha      = 0.778417
  Normalizat = 1.02439
  Prefactor  = 0.93245
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7428.634     FROM HESSE     STATUS=FAILED         7 CALLS      268 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11102E-09    25.984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .11254        .90463       -.30409E-03   -.75960    
   3  Normalizat    1.0244        1.2524        .13867E-04   -.92218    
   4  Prefactor     .93245        1.2757       -.45747E-05   -.95016    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.4652e-11
Minuit parameter uncertainties:
  1  9.45987e-05
  2  0.947135
  3  1.29144
  4  1.32067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946675': 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): 101
logL (Free Index) = 7428.63356548
delta logL = 6.74208422424e-09

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.110e-10  9.460e-05  0.000e+00  1.000e+06 ( 1.000e-13)
274        alpha:  7.784e-01  9.471e-01  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:  9.324e-01  1.321e+00  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  1.291e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 120.888 20.768

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/946675/cmap_HighResolution_692668801_692928001_4FGL_J0803.5+2046_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-05', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2022-12-17 00:35:49.639038', job_id='946675', GAL2='0.93', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1671266149.64', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='6.74e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1749' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:35:49 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 946675: <4FGL_J0803.5+2046_daily_bin1749> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1749> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Dec 17 00:25:22 2022
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:25:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:25:23 2022
Terminated at Sat Dec 17 00:35:50 2022
Results reported at Sat Dec 17 00:35:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1749 120.888 20.7678 692668801 692928001 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 :                                   580.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             322.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            628 sec.

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

