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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1750
RA = 120.888, Dec = 20.7678
tmin = 692928001, tmax = 693187201
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='3546', job_status='RUN', time_executed='2022-12-20 00:26:08.344109', time_epoch_executed='1671524768.34' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3546

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3546/ft1_4FGL_J0803.5+2046_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3546/ft2_4FGL_J0803.5+2046_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3546/ft1_4FGL_J0803.5+2046_daily_bin1750.fits outfile=/scratch/kocevski/3546/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1750.fits ra=120.888 dec=20.7678 rad=12.0 tmin=692928001.0 tmax=693187201.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.44
user 3.22
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/3546/ft2_4FGL_J0803.5+2046_daily_bin1750.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/3546/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/3546/ft1_filtered_4FGL_J0803.5+2046_daily_bin1750.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.33
sys 0.16

Number of photons that the gtmktime cut: 656

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3546/ft1_filtered_4FGL_J0803.5+2046_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/3546/ft2_4FGL_J0803.5+2046_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/3546/ltcube_692928001_693187201_4FGL_J0803.5+2046_daily_bin1750.fits outfile=/scratch/kocevski/3546/expmap_692928001_693187201_4FGL_J0803.5+2046_daily_bin1750.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/3546/ltcube_692928001_693187201_4FGL_J0803.5+2046_daily_bin1750.fits
.....................!
real 191.36
user 186.31
sys 4.69

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/3546/ft1_filtered_4FGL_J0803.5+2046_daily_bin1750.fits scfile=/scratch/kocevski/3546/ft2_4FGL_J0803.5+2046_daily_bin1750.fits outfile=/scratch/kocevski/3546/cmap_692928001_693187201_4FGL_J0803.5+2046_daily_bin1750.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3546/ft1_filtered_4FGL_J0803.5+2046_daily_bin1750.fits scfile=/scratch/kocevski/3546/ft2_4FGL_J0803.5+2046_daily_bin1750.fits outfile=/scratch/kocevski/3546/cmap_HighResolution_692928001_693187201_4FGL_J0803.5+2046_daily_bin1750.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.524       1.0000          .0000       .10000E+07
     2 'norm      '    .92972       1.0000          .0000       .10000E+07
     3 'norm      '    14.503       1.0000          .0000       .10000E+07
     4 'norm      '    .15296E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.4254       1.0000          .0000       .10000E+07
     6 'Prefactor '    29.865       1.0000          .0000       .10000E+07
     7 'Prefactor '    .16186E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .54238E-04   1.0000          .0000       .10000E+07
     9 'norm      '    .62505E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.1289       1.0000          .0000       .10000E+07
    11 'norm      '    .35849E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .73741E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .68873E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .56314E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .11773E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .14342E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .76586E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .23542       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0613       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1366       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=   7381.846     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1528 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.519        12.995        .23265E-08   -.13541    
   2  norm          .93128        1.3934       -.49632E-07   -.51993E-02
   3  norm          14.494        2.9515        .73639E-08    .32677E-02
   4  norm          .52156E-05    3.9838        .20795E-08** at limit **
   5  Prefactor     2.3116        3.9558       -.32676E-07    .12057E-01
   6  Prefactor     29.961        4.2672        .22280E-07    .15775E-02
   7  Prefactor     .37416E-05    16.555       -.14938E-06** at limit **
   8  Prefactor     .31641E-08    6.8981        .93012E-07** at limit **
   9  norm          .18704E-05    15.707       -.21644E-07** at limit **
  10  Prefactor     4.3669        15.224       -.13682E-06   -.12041E-01
  11  norm          .19171E-05    31.719       -.30545E-07** at limit **
  12  Prefactor     .13989E-07    13.015        .13921E-06** at limit **
  13  Prefactor     .83267E-09    7.0483        .17300E-06** at limit **
  14  Prefactor     .90039E-07    19.152        .12456E-06** at limit **
  15  Prefactor     .59447E-06    119.79        .57813E-06** at limit **
  16  norm          .55511E-10    .62757        .41929E-07** at limit **
  17  Prefactor     .55622E-07    10.314       -.41991E-07** at limit **
  18  Prefactor     .86192E-06    5.1824       -.86942E-07** at limit **
  19  Normalizat    1.0611        .24144       -.27587E-05   -.48865E-04
  20  Prefactor     1.1366        .18373        .22454E-05    .10290E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 25.519
  norm       = 0.931277
  norm       = 14.4942
  norm       = 5.21561e-06
  Prefactor  = 2.31161
  Prefactor  = 29.961
  Prefactor  = 3.74162e-06
  Prefactor  = 3.16414e-09
  norm       = 1.87039e-06
  Prefactor  = 4.3669
  norm       = 1.91708e-06
  Prefactor  = 1.39888e-08
  Prefactor  = 8.32667e-10
  Prefactor  = 9.00391e-08
  Prefactor  = 5.94469e-07
  norm       = 5.55112e-11
  Prefactor  = 5.56222e-08
  Prefactor  = 8.61922e-07
  Normalizat = 1.06107
  Prefactor  = 1.13664
 **********
 **   18 **HESSE 
 **********

 FCN=   7381.846     FROM HESSE     STATUS=OK           337 CALLS     1865 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.519        16.149        .19798E-03   -1.5607    
   2  norm          .93128        1.3983        .43727E-03   -1.5689    
   3  norm          14.494        2.9589        .26274E-03   -1.5632    
   4  norm          .52156E-05    4.2011        .52544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3116        211.96        .65688E-03   -1.5678    
   6  Prefactor     29.961        24.952        .18302E-03   -1.5598    
   7  Prefactor     .37416E-05    32.574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .31641E-08    6.7495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .18704E-05    25.496        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3669        15.474        .49584E-03   -1.5666    
  11  norm          .19171E-05    38.528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .13989E-07    13.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    7.0791        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .90039E-07    19.655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .59447E-06    119.99        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .55511E-10    .61991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55622E-07    29.802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .86192E-06    212.35        .11177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0611        .20816        .69548E-01   -.91012    
  20  Prefactor     1.1366        .15546        .36337E-01   -.88304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52388e-07
Minuit parameter uncertainties:
  1  16.1491
  2  1.39827
  3  2.95894
  4  0.00936188
  5  44.2723
  6  24.9522
  7  0.0220797
  8  0.000291269
  9  0.0138113
  10  15.4738
  11  0.0171886
  12  0.000855794
  13  0.000153904
  14  0.00266089
  15  0.0168918
  16  8.72349e-06
  17  0.00257523
  18  0.0270586
  19  0.208317
  20  0.155527
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.917e-06  1.719e-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:  1.137e+00  1.555e-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.061e+00  2.083e-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.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/3546/likelihoodResults_692928001_693187201_4FGL_J0803.5+2046_daily_bin1750.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) = 7381.77184526
delta logL = 0.0736588700438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7381.77022255
delta logL = 0.0752815714332

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6835       1.0000          .0000       .10000E+07
     2 'alpha     '    4.3832       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1410       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7381.770     FROM MIGRAD    STATUS=FAILED        96 CALLS      321 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6883        59.324        .12871E-04    .87442E-04
   2  alpha         4.3830        4.3614        .86360E-01    .12039E-03
   3  Normalizat    1.0416        .24427        .31020E-03    .57100E-04
   4  Prefactor     1.1411        .18148        .22384E-03   -.25903E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7381.770     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      400 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6883        59.324        .69311E-04   -1.5646    
   2  alpha         4.3830        4.3614        .57699E-02    .85290    
   3  Normalizat    1.0416        .24427        .24871E-03   -.91649    
   4  Prefactor     1.1411        .18148        .22368E-03   -.88164    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7381.770     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      428 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6882        34.538        .51486E-06   -.57297E-04
   2  alpha         4.3830        3.8700        .17272E-01    .64110E-06
   3  Normalizat    1.0416        .24485        .12408E-04   -.36650E-06
   4  Prefactor     1.1411        .18162        .89535E-05   -.50790E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 9.68825
  alpha      = 4.38298
  Normalizat = 1.04162
  Prefactor  = 1.14109
 **********
 **   18 **HESSE 
 **********

 FCN=   7381.770     FROM HESSE     STATUS=OK            25 CALLS      453 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6882        33.036        .37302E-06   -1.5646    
   2  alpha         4.3830        3.8072        .69088E-03    .85290    
   3  Normalizat    1.0416        .24490        .24816E-05   -.91649    
   4  Prefactor     1.1411        .18159        .17907E-05   -.88164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01395e-12
Minuit parameter uncertainties:
  1  33.0366
  2  1.89091
  3  0.245164
  4  0.181685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3546': 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) = 7381.77022245
delta logL = 0.0752816800868

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  9.688e+00  3.304e+01  0.000e+00  1.000e+06 ( 1.000e-13)
274        alpha:  4.383e+00  1.891e+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:  1.141e+00  1.817e-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.042e+00  2.452e-01  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/3546/cmap_HighResolution_692928001_693187201_4FGL_J0803.5+2046_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-05', job_status='DONE', photon_flux_upper_limit='3.39e-08', time_completed='2022-12-20 00:36:01.009181', job_id='3546', GAL2='1.14', fit_tolerance='1e-08', EG2='1.04', EG='1.06', time_epoch_completed='1671525361.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='7.53e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1750' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 00:36:01 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 3546: <4FGL_J0803.5+2046_daily_bin1750> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1750> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec 20 00:25:16 2022
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:25:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:25:18 2022
Terminated at Tue Dec 20 00:36:01 2022
Results reported at Tue Dec 20 00:36:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1750 120.888 20.7678 692928001 693187201 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 :                                   594.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             388.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            645 sec.

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

