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_J1118.2-0415_daily_bin1758
RA = 169.575, Dec = -4.2539
tmin = 695001601, tmax = 695260801
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='363698', job_status='RUN', time_executed='2023-01-13 00:37:45.204561', time_epoch_executed='1673599065.2' WHERE source_name='4FGL J1118.2-0415' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363698

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363698/ft1_4FGL_J1118.2-0415_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363698/ft2_4FGL_J1118.2-0415_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363698/ft1_4FGL_J1118.2-0415_daily_bin1758.fits outfile=/scratch/kocevski/363698/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin1758.fits ra=169.575 dec=-4.2539 rad=12.0 tmin=695001601.0 tmax=695260801.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.81
user 2.59
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/363698/ft2_4FGL_J1118.2-0415_daily_bin1758.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/363698/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin1758.fits evtable="EVENTS" outfile="/scratch/kocevski/363698/ft1_filtered_4FGL_J1118.2-0415_daily_bin1758.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.54
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 717

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363698/ft1_filtered_4FGL_J1118.2-0415_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/363698/ft2_4FGL_J1118.2-0415_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/363698/ltcube_695001601_695260801_4FGL_J1118.2-0415_daily_bin1758.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/363698/ft2_4FGL_J1118.2-0415_daily_bin1758.fits
.....................!
real 15.11
user 14.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363698/ft1_filtered_4FGL_J1118.2-0415_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/363698/ft2_4FGL_J1118.2-0415_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/363698/ltcube_695001601_695260801_4FGL_J1118.2-0415_daily_bin1758.fits outfile=/scratch/kocevski/363698/expmap_695001601_695260801_4FGL_J1118.2-0415_daily_bin1758.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/363698/ltcube_695001601_695260801_4FGL_J1118.2-0415_daily_bin1758.fits
.....................!
real 192.84
user 186.94
sys 5.54

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/363698/ft1_filtered_4FGL_J1118.2-0415_daily_bin1758.fits scfile=/scratch/kocevski/363698/ft2_4FGL_J1118.2-0415_daily_bin1758.fits outfile=/scratch/kocevski/363698/cmap_695001601_695260801_4FGL_J1118.2-0415_daily_bin1758.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363698/ft1_filtered_4FGL_J1118.2-0415_daily_bin1758.fits scfile=/scratch/kocevski/363698/ft2_4FGL_J1118.2-0415_daily_bin1758.fits outfile=/scratch/kocevski/363698/cmap_HighResolution_695001601_695260801_4FGL_J1118.2-0415_daily_bin1758.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/363698/ft1_filtered_4FGL_J1118.2-0415_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/363698/ft2_4FGL_J1118.2-0415_daily_bin1758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/363698/Model_4FGL_J1118.2-0415_daily_bin1758.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/363698/ft1_filtered_4FGL_J1118.2-0415_daily_bin1758.fits.....................!
real 71.99
user 70.51
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/363698/ft1_filtered_4FGL_J1118.2-0415_daily_bin1758.fits', '/scratch/kocevski/363698/ft2_4FGL_J1118.2-0415_daily_bin1758.fits', expMap='/scratch/kocevski/363698/expmap_695001601_695260801_4FGL_J1118.2-0415_daily_bin1758.fits', expCube='/scratch/kocevski/363698/ltcube_695001601_695260801_4FGL_J1118.2-0415_daily_bin1758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/363698/Model_4FGL_J1118.2-0415_daily_bin1758.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/363698/ft1_filtered_4FGL_J1118.2-0415_daily_bin1758.fits
Spacecraft file(s): /scratch/kocevski/363698/ft2_4FGL_J1118.2-0415_daily_bin1758.fits
Exposure map: /scratch/kocevski/363698/expmap_695001601_695260801_4FGL_J1118.2-0415_daily_bin1758.fits
Exposure cube: /scratch/kocevski/363698/ltcube_695001601_695260801_4FGL_J1118.2-0415_daily_bin1758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/363698/Model_4FGL_J1118.2-0415_daily_bin1758.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) = 7784.2318065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17302E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .97649       1.0000          .0000       .10000E+07
     3 'norm      '    4.8966       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.0943       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10013E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .14273E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .20403E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    11.538       1.0000          .0000       .10000E+07
     9 'Prefactor '    207.89       1.0000          .0000       .10000E+07
    10 'norm      '    .23298E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.2478       1.0000          .0000       .10000E+07
    12 'Prefactor '    .30963E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    25.187       1.0000          .0000       .10000E+07
    14 'norm      '    .26649E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .19390E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .45755E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10996E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    7.6523       1.0000          .0000       .10000E+07
    19 'Normalizat'    .45171       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3265       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=   7784.056     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1241 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.6616       -.48683E-07** at limit **
   2  norm          .97672        .64528        .11492E-07    .71262E-02
   3  norm          4.9345        4.1841        .29855E-07    .22733E-02
   4  Prefactor     8.0579        9.6033        .24142E-08    .18076E-01
   5  Prefactor      .0000        2.4040        .41473E-07** at limit **
   6  Prefactor     .66397E-06    12.506        .43194E-07** at limit **
   7  norm           .0000        4.5410       -.29120E-08** at limit **
   8  Prefactor     11.542        4.7371       -.68010E-07   -.89872E-02
   9  Prefactor     207.81        4.6938        .93475E-08   -.88123E-01
  10  norm          .19929E-07    10.180        .85378E-08** at limit **
  11  Prefactor     4.2489        2.4763       -.15325E-07   -.22764E-02
  12  Prefactor     .29976E-08    2.5629       -.49472E-07** at limit **
  13  Prefactor     26.034        14.947       -.97647E-07    .10571    
  14  norm          .23109E-06    2.1061        .89495E-08** at limit **
  15  Prefactor     .39968E-08    6.0400        .74996E-07** at limit **
  16  Prefactor     .96256E-07    7.3577        .19247E-07** at limit **
  17  Prefactor     .17801E-05    13.729        .19901E-06** at limit **
  18  Prefactor     8.0724        44.489       -.34923E-06   -.11594E-01
  19  Normalizat    .45201        .22238       -.19346E-05    .28755E-05
  20  Prefactor     1.3259        .17191        .14065E-05    .12147E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.976722
  norm       = 4.93449
  Prefactor  = 8.05786
  Prefactor  = 0
  Prefactor  = 6.63969e-07
  norm       = 0
  Prefactor  = 11.5422
  Prefactor  = 207.806
  norm       = 1.99285e-08
  Prefactor  = 4.24888
  Prefactor  = 2.9976e-09
  Prefactor  = 26.0341
  norm       = 2.31093e-07
  Prefactor  = 3.9968e-09
  Prefactor  = 9.62563e-08
  Prefactor  = 1.78013e-06
  Prefactor  = 8.07237
  Normalizat = 0.452008
  Prefactor  = 1.32593
 **********
 **   18 **HESSE 
 **********

 FCN=   7784.056     FROM HESSE     STATUS=OK           331 CALLS     1572 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.1769        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .97672        .64909        .42932E-03   -1.5688    
   3  norm          4.9345        4.1814        .45431E-03   -1.5664    
   4  Prefactor     8.0579        9.6655        .35217E-03   -1.5651    
   5  Prefactor      .0000        2.3986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66397E-06    14.567        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        4.5395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.542        4.7499        .29468E-03   -1.5640    
   9  Prefactor     207.81        20.546        .69363E-04   -1.5420    
  10  norm          .19929E-07    10.484        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2489        2.4836        .48864E-03   -1.5667    
  12  Prefactor     .29976E-08    5.2034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.034        23.764        .19930E-03   -1.5606    
  14  norm          .23109E-06    9.7450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .39968E-08    5.9640        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .96256E-07    8.5246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .17801E-05    17.632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.0724        46.437        .36227E-03   -1.5651    
  19  Normalizat    .45201        .20680        .10014       -1.1469    
  20  Prefactor     1.3259        .15646        .47562E-01   -.82539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8889e-07
Minuit parameter uncertainties:
  1  1.97201e-05
  2  0.649089
  3  4.18145
  4  9.66552
  5  1.38749e-05
  6  0.00621996
  7  1.4171e-05
  8  4.74994
  9  20.5464
  10  0.000914696
  11  2.48356
  12  0.000249749
  13  23.7642
  14  0.00300152
  15  0.000309686
  16  0.00181167
  17  0.0112049
  18  38.7227
  19  0.207153
  20  0.156513
Done.

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

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  0.000e+00  1.387e-05  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.326e+00  1.565e-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:  4.520e-01  2.072e-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: 8.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/363698/likelihoodResults_695001601_695260801_4FGL_J1118.2-0415_daily_bin1758.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) = 7784.0570654
delta logL = -0.0015355915175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7784.05553301
delta logL = -3.20096296491e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74496E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.5163       1.0000          .0000       10.000    
     3 'Normalizat'    .45177       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3259       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=   7784.056     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      241 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.1542        .42118E-03** at limit **
   2  Index         2.7421        1.3024       -.23111E-04     .0000    
   3  Normalizat    .45201        .77858       -.20995E-04   -.20635E-04
   4  Prefactor     1.3259        1.0724        .79321E-05   -.54967E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.74211
  Normalizat = 0.452009
  Prefactor  = 1.32593
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7784.056     FROM HESSE     STATUS=FAILED         9 CALLS      250 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.1542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .85160        1.9889       -.23111E-04   -.46853    
   3  Normalizat    .45201        .77858       -.20995E-04   -1.1469    
   4  Prefactor     1.3259        1.0724        .79321E-05   -.82539    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.16452e-12
Minuit parameter uncertainties:
  1  1.36464e-08
  2  1.32163
  3  0.798536
  4  1.09108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363698': 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) = 7784.05552981
delta logL = 1.63709046319e-11

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  0.000e+00  1.365e-08  0.000e+00  1.000e+06 ( 1.000e-12)
283        Index:  2.742e+00  1.322e+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.326e+00  1.091e+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:  4.520e-01  7.985e-01  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/363698/cmap_HighResolution_695001601_695260801_4FGL_J1118.2-0415_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.33e-03', job_status='DONE', photon_flux_upper_limit='8.07e-08', time_completed='2023-01-13 00:48:02.170755', job_id='363698', GAL2='1.33', fit_tolerance='1e-08', EG2='0.45', EG='0.45', time_epoch_completed='1673599682.17', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='1.64e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1758' AND source_name='4FGL J1118.2-0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 00:48:02 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 363698: <4FGL_J1118.2-0415_daily_bin1758> in cluster <slac> Done

Job <4FGL_J1118.2-0415_daily_bin1758> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jan 13 00:35:17 2023
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:36:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:36:16 2023
Terminated at Fri Jan 13 00:48:03 2023
Results reported at Fri Jan 13 00:48:03 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1118.2-0415_daily_bin1758 169.575 -4.2539 695001601 695260801 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.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            766 sec.

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

