/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 17 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1118.2-0415_daily_bin994
RA = 169.575, Dec = -4.2539
tmin = 496972801, tmax = 497232001
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='643739', job_status='RUN', time_executed='2021-09-03 14:43:06.359020', time_epoch_executed='1630705386.36' WHERE source_name='4FGL J1118.2-0415' and cadence='daily' and bin_id='994'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/643739

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/643739/ft1_4FGL_J1118.2-0415_daily_bin994.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/643739/ft2_4FGL_J1118.2-0415_daily_bin994.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/643739/ft1_4FGL_J1118.2-0415_daily_bin994.fits outfile=/scratch/kocevski/643739/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin994.fits ra=169.575 dec=-4.2539 rad=12.0 tmin=496972801.0 tmax=497232001.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 5.23
user 4.89
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/643739/ft2_4FGL_J1118.2-0415_daily_bin994.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/643739/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin994.fits evtable="EVENTS" outfile="/scratch/kocevski/643739/ft1_filtered_4FGL_J1118.2-0415_daily_bin994.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/643739/ft1_filtered_4FGL_J1118.2-0415_daily_bin994.fits" evtable="EVENTS" scfile=/scratch/kocevski/643739/ft2_4FGL_J1118.2-0415_daily_bin994.fits sctable="SC_DATA" outfile=/scratch/kocevski/643739/ltcube_496972801_497232001_4FGL_J1118.2-0415_daily_bin994.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/643739/ft2_4FGL_J1118.2-0415_daily_bin994.fits
.....................!
real 15.38
user 15.02
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/643739/ft1_filtered_4FGL_J1118.2-0415_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/643739/ft2_4FGL_J1118.2-0415_daily_bin994.fits sctable="SC_DATA" expcube=/scratch/kocevski/643739/ltcube_496972801_497232001_4FGL_J1118.2-0415_daily_bin994.fits outfile=/scratch/kocevski/643739/expmap_496972801_497232001_4FGL_J1118.2-0415_daily_bin994.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/643739/ltcube_496972801_497232001_4FGL_J1118.2-0415_daily_bin994.fits
.....................!
real 191.72
user 186.51
sys 4.75

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/643739/ft1_filtered_4FGL_J1118.2-0415_daily_bin994.fits scfile=/scratch/kocevski/643739/ft2_4FGL_J1118.2-0415_daily_bin994.fits outfile=/scratch/kocevski/643739/cmap_496972801_497232001_4FGL_J1118.2-0415_daily_bin994.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/643739/ft1_filtered_4FGL_J1118.2-0415_daily_bin994.fits scfile=/scratch/kocevski/643739/ft2_4FGL_J1118.2-0415_daily_bin994.fits outfile=/scratch/kocevski/643739/cmap_HighResolution_496972801_497232001_4FGL_J1118.2-0415_daily_bin994.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/643739/ft1_filtered_4FGL_J1118.2-0415_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/643739/ft2_4FGL_J1118.2-0415_daily_bin994.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/643739/Model_4FGL_J1118.2-0415_daily_bin994.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/643739/ft1_filtered_4FGL_J1118.2-0415_daily_bin994.fits.....................!
real 61.76
user 60.27
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/643739/ft1_filtered_4FGL_J1118.2-0415_daily_bin994.fits', '/scratch/kocevski/643739/ft2_4FGL_J1118.2-0415_daily_bin994.fits', expMap='/scratch/kocevski/643739/expmap_496972801_497232001_4FGL_J1118.2-0415_daily_bin994.fits', expCube='/scratch/kocevski/643739/ltcube_496972801_497232001_4FGL_J1118.2-0415_daily_bin994.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/643739/Model_4FGL_J1118.2-0415_daily_bin994.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  1.000e-04  1.000e+04 ( 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/643739/ft1_filtered_4FGL_J1118.2-0415_daily_bin994.fits
Spacecraft file(s): /scratch/kocevski/643739/ft2_4FGL_J1118.2-0415_daily_bin994.fits
Exposure map: /scratch/kocevski/643739/expmap_496972801_497232001_4FGL_J1118.2-0415_daily_bin994.fits
Exposure cube: /scratch/kocevski/643739/ltcube_496972801_497232001_4FGL_J1118.2-0415_daily_bin994.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/643739/Model_4FGL_J1118.2-0415_daily_bin994.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) = 6760.96443901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.2621       1.0000         .10000E-03   10000.    
     3 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.161       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30235E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8196       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .81064E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.3346       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7499       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.592       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4346       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7750       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5537       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2402       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1868       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1402       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6760.884     FROM MIGRAD    STATUS=CONVERGED    958 CALLS     3139 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9518        .17840E-02** at limit **
   2  norm          2.2621        1.0611        .47929E-04    .40087E-04
   3  norm          .10000E-03    3.7708        .15504E-02** at limit **
   4  Prefactor     12.155        13.582        .11487E-03    .11481E-04
   5  Prefactor     .10000E-03    11.385        .18142E-02** at limit **
   6  Prefactor     .10018E-03    44.509        .43918E-02** at limit **
   7  Prefactor     .10000E-03    2.8618        .13515E-02** at limit **
   8  Prefactor     .10000E-03    17.187        .18142E-02** at limit **
   9  norm          .10000E-03    5.8470        .18142E-02** at limit **
  10  Prefactor     3.8260        8.0967        .10326E-02    .43522E-04
  11  Prefactor     .10116E-03    4.7536        .60458E-01** at limit **
  12  norm          5.2921        35.494        .17400E-03   -.75005E-04
  13  Prefactor     2.7492        2.1508        .10307E-03    .68057E-04
  14  Prefactor     17.604        33.519        .95492E-04    .17977E-04
  15  Prefactor     .10000E-03    9.4997        .18142E-02** at limit **
  16  norm          3.4350        5.1102        .21185E-03    .29461E-04
  17  Prefactor     4.7751        3.8504        .13368E-03    .64888E-04
  18  Prefactor     .10000E-03    11.629        .18142E-02** at limit **
  19  Prefactor     6.5568        16.761        .15676E-03    .40613E-05
  20  Prefactor     .10000E-03    9.5512        .18142E-02** at limit **
  21  Prefactor     4.2402        10.532        .19568E-03    .77270E-05
  22  Prefactor     .10000E-03    10.657        .18142E-02** at limit **
  23  Normalizat    1.1873        .27131        .30862E-03    .16345E-03
  24  Prefactor     1.1400        .19177        .23195E-03    .72147E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.26214
  norm       = 0.0001
  Prefactor  = 12.1551
  Prefactor  = 0.0001
  Prefactor  = 0.000100178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.82598
  Prefactor  = 0.000101163
  norm       = 5.29211
  Prefactor  = 2.74916
  Prefactor  = 17.6045
  Prefactor  = 0.0001
  norm       = 3.43502
  Prefactor  = 4.77508
  Prefactor  = 0.0001
  Prefactor  = 6.55677
  Prefactor  = 0.0001
  Prefactor  = 4.24016
  Prefactor  = 0.0001
  Normalizat = 1.18728
  Prefactor  = 1.14
 **********
 **   18 **HESSE 
 **********

 FCN=   6760.884     FROM HESSE     STATUS=OK           385 CALLS     3524 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9523        .35679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2621        1.0611        .19171E-05   -1.5407    
   3  norm          .10000E-03    3.7721        .31008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.155        13.583        .45947E-05   -1.5011    
   5  Prefactor     .10000E-03    11.389        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10018E-03    45.107        .87835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.8623        .27031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.187        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.8480        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8260        8.0499        .41304E-04   -1.5317    
  11  Prefactor     .10116E-03    4.7406        .60618E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.2921        35.308        .69602E-05   -1.5248    
  13  Prefactor     2.7492        2.1508        .41227E-05   -1.5376    
  14  Prefactor     17.604        33.464        .38197E-05   -1.4869    
  15  Prefactor     .10000E-03    9.4998        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4350        5.1094        .84741E-05   -1.5337    
  17  Prefactor     4.7751        3.8498        .53473E-05   -1.5271    
  18  Prefactor     .10000E-03    11.631        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5568        16.761        .62704E-05   -1.5196    
  20  Prefactor     .10000E-03    9.5513        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.2402        10.531        .78272E-05   -1.5296    
  22  Prefactor     .10000E-03    10.657        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1873        .27143        .12345E-04   -.86997    
  24  Prefactor     1.1400        .19195        .92781E-05   -.88198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76873e-09
Minuit parameter uncertainties:
  1  4.75781e-07
  2  1.06108
  3  1.69951e-06
  4  13.5863
  5  6.92185e-05
  6  0.00566503
  7  1.33687e-05
  8  7.11417e-05
  9  1.94026e-05
  10  8.05216
  11  0.00469693
  12  27.3622
  13  2.15084
  14  33.4992
  15  1.82988e-05
  16  5.11009
  17  3.85004
  18  1.73644e-05
  19  16.7733
  20  1.84312e-05
  21  10.5356
  22  2.52803e-05
  23  0.271757
  24  0.192064
Done.

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

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.337e-05  1.000e-04  1.000e+04 ( 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.140e+00  1.921e-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:  1.187e+00  2.718e-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: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/643739/likelihoodResults_496972801_497232001_4FGL_J1118.2-0415_daily_bin994.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) = 6760.88547647
delta logL = -0.00166176246967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6760.88381472
delta logL = -2.09802237805e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6305       1.0000          .0000       10.000    
     3 'Normalizat'    1.1873       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1400       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6760.884     FROM MIGRAD    STATUS=FAILED        89 CALLS      244 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10101E-03    128.74        .13552E-02** at limit **
   2  Index         2.5474        6.2419        .50000        .19447E-04
   3  Normalizat    1.1873        .38482E-01    .30862E-03   -.71242E-04
   4  Prefactor     1.1400        .28560E-01    .23195E-03   -.70677E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6760.884     FROM SIMPLEX   STATUS=UNCHANGED    139 CALLS      383 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10101E-03    128.74        .34914E-03** at limit **
   2  Index         2.5474        6.2419        .48954E-03    .19447E-04
   3  Normalizat    1.1873        .38482E-01    .64135E-05   -.71242E-04
   4  Prefactor     1.1400        .28560E-01    .59538E-05   -.70677E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6760.884     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      424 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    700.47        .27104E-03** at limit **
   2  Index         2.2874        6.9333        .50000        .12860E-06
   3  Normalizat    1.1873        .18429        .12345E-04    .40649E-03
   4  Prefactor     1.1400        .13667        .92780E-05    .55949E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.28735
  Normalizat = 1.18728
  Prefactor  = 1.14
 **********
 **   18 **HESSE 
 **********

 FCN=   6760.884     FROM HESSE     STATUS=OK            29 CALLS      453 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2109        .54208E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2874        5.5255        .50000       -.57345    
   3  Normalizat    1.1873        .25514        .24690E-05   -.86997    
   4  Prefactor     1.1400        .18945        .18556E-05   -.88198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.824e-10
Minuit parameter uncertainties:
  1  2.33165e-06
  2  112.769
  3  0.255411
  4  0.189566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/643739': 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) = 6760.88381364
delta logL = 1.06538027467e-06

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  2.332e-06  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.287e+00  1.128e+02  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.140e+00  1.896e-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:  1.187e+00  2.554e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/643739/cmap_HighResolution_496972801_497232001_4FGL_J1118.2-0415_daily_bin994.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.95e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-03 14:57:00.256498', job_id='643739', GAL2='1.14', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630706220.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='994' AND source_name='4FGL J1118.2-0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:57:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 643739: <4FGL_J1118.2-0415_daily_bin994> in cluster <slac> Done

Job <4FGL_J1118.2-0415_daily_bin994> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 14:41:37 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:42:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 14:42:26 2021
Terminated at Fri Sep  3 14:57:01 2021
Results reported at Fri Sep  3 14:57:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1118.2-0415_daily_bin994 169.575 -4.2539 496972801 497232001 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 :                                   811.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            924 sec.

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

