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


Performing analysis on: 4FGL_J1118.2-0415_daily_bin1747
RA = 169.575, Dec = -4.2539
tmin = 692150401, tmax = 692409601
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='796875', job_status='RUN', time_executed='2022-12-11 00:42:10.763529', time_epoch_executed='1670748130.76' WHERE source_name='4FGL J1118.2-0415' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/796875

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/796875/ft1_4FGL_J1118.2-0415_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/796875/ft2_4FGL_J1118.2-0415_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/796875/ft1_4FGL_J1118.2-0415_daily_bin1747.fits outfile=/scratch/kocevski/796875/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin1747.fits ra=169.575 dec=-4.2539 rad=12.0 tmin=692150401.0 tmax=692409601.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.98
user 3.73
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/796875/ft2_4FGL_J1118.2-0415_daily_bin1747.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/796875/ft2_4FGL_J1118.2-0415_daily_bin1747.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/796875/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/796875/ft1_filtered_4FGL_J1118.2-0415_daily_bin1747.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 731

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/796875/ft1_filtered_4FGL_J1118.2-0415_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/796875/ft2_4FGL_J1118.2-0415_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/796875/ltcube_692150401_692409601_4FGL_J1118.2-0415_daily_bin1747.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/796875/ft2_4FGL_J1118.2-0415_daily_bin1747.fits
.....................!
real 11.78
user 11.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/796875/ft1_filtered_4FGL_J1118.2-0415_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/796875/ft2_4FGL_J1118.2-0415_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/796875/ltcube_692150401_692409601_4FGL_J1118.2-0415_daily_bin1747.fits outfile=/scratch/kocevski/796875/expmap_692150401_692409601_4FGL_J1118.2-0415_daily_bin1747.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/796875/ltcube_692150401_692409601_4FGL_J1118.2-0415_daily_bin1747.fits
.....................!
real 191.39
user 186.04
sys 4.96

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 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1118.2-0415 @ 169.575 -4.2539

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/796875/ft1_filtered_4FGL_J1118.2-0415_daily_bin1747.fits scfile=/scratch/kocevski/796875/ft2_4FGL_J1118.2-0415_daily_bin1747.fits outfile=/scratch/kocevski/796875/cmap_692150401_692409601_4FGL_J1118.2-0415_daily_bin1747.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=169.575 yref=-4.2539 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/796875/ft1_filtered_4FGL_J1118.2-0415_daily_bin1747.fits scfile=/scratch/kocevski/796875/ft2_4FGL_J1118.2-0415_daily_bin1747.fits outfile=/scratch/kocevski/796875/cmap_HighResolution_692150401_692409601_4FGL_J1118.2-0415_daily_bin1747.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=169.575 yref=-4.2539 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/796875/ft1_filtered_4FGL_J1118.2-0415_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/796875/ft2_4FGL_J1118.2-0415_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/796875/Model_4FGL_J1118.2-0415_daily_bin1747.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/796875/ft1_filtered_4FGL_J1118.2-0415_daily_bin1747.fits.....................!
real 72.58
user 71.13
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/796875/ft1_filtered_4FGL_J1118.2-0415_daily_bin1747.fits', '/scratch/kocevski/796875/ft2_4FGL_J1118.2-0415_daily_bin1747.fits', expMap='/scratch/kocevski/796875/expmap_692150401_692409601_4FGL_J1118.2-0415_daily_bin1747.fits', expCube='/scratch/kocevski/796875/ltcube_692150401_692409601_4FGL_J1118.2-0415_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/796875/Model_4FGL_J1118.2-0415_daily_bin1747.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1118.2-0415'

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.706e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
283        Index:  2.639e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  6.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/796875/ft1_filtered_4FGL_J1118.2-0415_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/796875/ft2_4FGL_J1118.2-0415_daily_bin1747.fits
Exposure map: /scratch/kocevski/796875/expmap_692150401_692409601_4FGL_J1118.2-0415_daily_bin1747.fits
Exposure cube: /scratch/kocevski/796875/ltcube_692150401_692409601_4FGL_J1118.2-0415_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/796875/Model_4FGL_J1118.2-0415_daily_bin1747.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) = 8015.78319999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.183       1.0000          .0000       .10000E+07
     2 'norm      '    1.4457       1.0000          .0000       .10000E+07
     3 'norm      '    13.783       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.5904       1.0000          .0000       .10000E+07
     5 'Prefactor '    .19745E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .25333E-02   1.0000          .0000       .10000E+07
     7 'norm      '    2.5385       1.0000          .0000       .10000E+07
     8 'Prefactor '    .42697E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    28.448       1.0000          .0000       .10000E+07
    10 'norm      '    14.993       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.3504       1.0000          .0000       .10000E+07
    12 'Prefactor '    .20624       1.0000          .0000       .10000E+07
    13 'Prefactor '    .68261E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .20502E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.5187       1.0000          .0000       .10000E+07
    16 'Prefactor '    8.3679       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.7461       1.0000          .0000       .10000E+07
    18 'Prefactor '    .11670E-01   1.0000          .0000       .10000E+07
    19 'Normalizat'    .75669       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0075       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8015.759     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     1188 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.196        5.4281        .12592E-06    .23483E-01
   2  norm          1.4464        .56897        .20105E-07    .92186E-02
   3  norm          13.766        5.3780       -.14541E-07   -.19356E-02
   4  Prefactor     5.5941        6.4627       -.24978E-06    .28255E-01
   5  Prefactor      .0000        1.3004        .38209E-07** at limit **
   6  Prefactor     .37592E-06    6.1187       -.13573E-06** at limit **
   7  norm          2.5558        4.1639        .45070E-07   -.31564E-03
   8  Prefactor      .0000        4.3910        .51679E-07** at limit **
   9  Prefactor     28.492        1.3333        .14906E-07    .53890E-01
  10  norm          15.352        10.747        .13319E-06    .89233E-01
  11  Prefactor     3.3518        2.4245        .11477E-07   -.29034E-03
  12  Prefactor     .32623E-04    75.225       -.67712E-06** at limit **
  13  Prefactor     .87708E-08    7.6325        .24108E-07** at limit **
  14  norm          .16653E-09    2.5405        .39043E-07** at limit **
  15  Prefactor     1.5113        2.2957       -.18491E-07   -.96618E-03
  16  Prefactor     8.4200        1.1023       -.13821E-07   -.17085E-01
  17  Prefactor     6.9052        1.2782        .23189E-07    .16472E-01
  18  Prefactor     .56366E-06    6.5329        .99657E-08** at limit **
  19  Normalizat    .75678        .18272       -.32946E-05   -.18847E-03
  20  Prefactor     1.0072        .13996        .50694E-06   -.22305E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.1958
  norm       = 1.44643
  norm       = 13.7657
  Prefactor  = 5.59411
  Prefactor  = 0
  Prefactor  = 3.75922e-07
  norm       = 2.55585
  Prefactor  = 0
  Prefactor  = 28.4921
  norm       = 15.3522
  Prefactor  = 3.35179
  Prefactor  = 3.26232e-05
  Prefactor  = 8.77076e-09
  norm       = 1.66533e-10
  Prefactor  = 1.51127
  Prefactor  = 8.42
  Prefactor  = 6.90516
  Prefactor  = 5.6366e-07
  Normalizat = 0.756779
  Prefactor  = 1.00722
 **********
 **   18 **HESSE 
 **********

 FCN=   8015.759     FROM HESSE     STATUS=OK           339 CALLS     1527 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.196        8.7187        .24871E-03   -1.5627    
   2  norm          1.4464        .57962        .89625E-03   -1.5684    
   3  norm          13.766        5.3856        .26954E-03   -1.5634    
   4  Prefactor     5.5941        8.4345        .42466E-03   -1.5661    
   5  Prefactor      .0000        1.3088        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .37592E-06    11.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5558        4.1856        .64073E-03   -1.5676    
   8  Prefactor      .0000        4.3084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.492        8.9750        .18752E-03   -1.5601    
  10  norm          15.352        17.480        .25841E-03   -1.5630    
  11  Prefactor     3.3518        2.4375        .55266E-03   -1.5671    
  12  Prefactor     .32623E-04    14.320        .11666E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .87708E-08    7.6597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .16653E-09    2.5288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5113        2.3562        .86685E-03   -1.5683    
  16  Prefactor     8.4200        9.9535        .34632E-03   -1.5650    
  17  Prefactor     6.9052        10.152        .38608E-03   -1.5655    
  18  Prefactor     .56366E-06    11.291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .75678        .16614        .66927E-01   -1.0169    
  20  Prefactor     1.0072        .12151        .43715E-01   -.92489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76376e-07
Minuit parameter uncertainties:
  1  8.7187
  2  0.57962
  3  5.38557
  4  8.43452
  5  5.28933e-06
  6  0.00421593
  7  4.18559
  8  9.92698e-06
  9  8.97497
  10  17.4799
  11  2.43753
  12  0.0432275
  13  0.000519119
  14  4.32021e-05
  15  2.35616
  16  9.9535
  17  10.1523
  18  0.0050454
  19  0.166249
  20  0.121544
Done.

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

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  0.000e+00  5.289e-06  0.000e+00  1.000e+06 ( 1.000e-12)
283        Index:  2.639e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  6.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.007e+00  1.215e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  7.568e-01  1.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 169.575 -4.254
Photon Flux Upper Limit: 5.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/796875/likelihoodResults_692150401_692409601_4FGL_J1118.2-0415_daily_bin1747.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) = 8015.76138422
delta logL = -0.00228906249686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8015.75909518
delta logL = -2.0786501409e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52736E-08   1.0000          .0000       .10000E+07
     2 'Index     '    .76001       1.0000          .0000       10.000    
     3 'Normalizat'    .75680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0072       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8015.759     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      245 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .79850        .42118E-03** at limit **
   2  Index         3.4293        1.9872        .46615E-05     .0000    
   3  Normalizat    .75678        1.0963        .63730E-05   -.25230E-04
   4  Prefactor     1.0072        1.2757       -.64464E-05    .16538E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.42932
  Normalizat = 0.75678
  Prefactor  = 1.00722
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8015.759     FROM HESSE     STATUS=FAILED         9 CALLS      254 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .79850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3119        2.2617        .46615E-05   -.31955    
   3  Normalizat    .75678        1.0963        .63730E-05   -1.0169    
   4  Prefactor     1.0072        1.2757       -.64464E-05   -.92489    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.45793e-11
Minuit parameter uncertainties:
  1  6.45741e-06
  2  2.0504
  3  1.13088
  4  1.31734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/796875': 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) = 8015.75909515
delta logL = 1.81898940355e-11

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  0.000e+00  6.457e-06  0.000e+00  1.000e+06 ( 1.000e-12)
283        Index:  3.429e+00  2.050e+00  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  6.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.007e+00  1.317e+00  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  7.568e-01  1.131e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 169.575 -4.254

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/796875/cmap_HighResolution_692150401_692409601_4FGL_J1118.2-0415_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-03', job_status='DONE', photon_flux_upper_limit='5.43e-08', time_completed='2022-12-11 00:52:28.013736', job_id='796875', GAL2='1.01', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1670748748.01', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.82e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1747' AND source_name='4FGL J1118.2-0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 00:52:28 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 796875: <4FGL_J1118.2-0415_daily_bin1747> in cluster <slac> Done

Job <4FGL_J1118.2-0415_daily_bin1747> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Dec 11 00:40:16 2022
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 00:40:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 00:40:17 2022
Terminated at Sun Dec 11 00:52:28 2022
Results reported at Sun Dec 11 00:52:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1118.2-0415_daily_bin1747 169.575 -4.2539 692150401 692409601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1118.2-0415 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   619.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            732 sec.

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

