/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 150 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 = 7473
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1118.2-0415_daily_bin39
RA = 169.575, Dec = -4.2539
tmin = 249436801, tmax = 249696001
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='640126', job_status='RUN', time_executed='2021-09-03 14:33:56.901879', time_epoch_executed='1630704836.9' WHERE source_name='4FGL J1118.2-0415' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640126

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640126/ft1_4FGL_J1118.2-0415_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640126/ft2_4FGL_J1118.2-0415_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640126/ft1_4FGL_J1118.2-0415_daily_bin39.fits outfile=/scratch/kocevski/640126/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin39.fits ra=169.575 dec=-4.2539 rad=12.0 tmin=249436801.0 tmax=249696001.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.45
user 1.28
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640126/ft1_filtered_4FGL_J1118.2-0415_daily_bin39.fits" evtable="EVENTS" scfile=/scratch/kocevski/640126/ft2_4FGL_J1118.2-0415_daily_bin39.fits sctable="SC_DATA" outfile=/scratch/kocevski/640126/ltcube_249436801_249696001_4FGL_J1118.2-0415_daily_bin39.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/640126/ft2_4FGL_J1118.2-0415_daily_bin39.fits
.....................!
real 19.09
user 18.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640126/ft1_filtered_4FGL_J1118.2-0415_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/640126/ft2_4FGL_J1118.2-0415_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/640126/ltcube_249436801_249696001_4FGL_J1118.2-0415_daily_bin39.fits outfile=/scratch/kocevski/640126/expmap_249436801_249696001_4FGL_J1118.2-0415_daily_bin39.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/640126/ltcube_249436801_249696001_4FGL_J1118.2-0415_daily_bin39.fits
.....................!
real 195.16
user 188.92
sys 5.76

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/640126/ft1_filtered_4FGL_J1118.2-0415_daily_bin39.fits scfile=/scratch/kocevski/640126/ft2_4FGL_J1118.2-0415_daily_bin39.fits outfile=/scratch/kocevski/640126/cmap_249436801_249696001_4FGL_J1118.2-0415_daily_bin39.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640126/ft1_filtered_4FGL_J1118.2-0415_daily_bin39.fits scfile=/scratch/kocevski/640126/ft2_4FGL_J1118.2-0415_daily_bin39.fits outfile=/scratch/kocevski/640126/cmap_HighResolution_249436801_249696001_4FGL_J1118.2-0415_daily_bin39.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97756E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4202       1.0000         .10000E-03   10000.    
     3 'norm      '    14.612       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .97522       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.4070       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7331       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.114       1.0000         .10000E-03   10000.    
    12 'norm      '    .10455E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.831       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0471       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2038       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10670E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.572       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0644       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2410       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.

 FCN=   7099.498     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2739 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1572        .21056E-06** at limit **
   2  norm          1.4205        .55802        .44942E-07   -.31191E-03
   3  norm          14.611        8.4232        .27822E-06    .60248E-05
   4  Prefactor     .10000E-03    3.0751       -.42113E-08** at limit **
   5  Prefactor     .96793        9.3637        .59004E-06    .13939E-03
   6  Prefactor     .10000E-03    4.5073        .51248E-08** at limit **
   7  Prefactor     .10000E-03    4.2123        .64766E-06** at limit **
   8  Prefactor     .10000E-03    64.405        .14151E-05** at limit **
   9  norm          6.4064        6.8316       -.37690E-07   -.42022E-04
  10  Prefactor     2.7290        3.9867        .12301E-05    .11080E-03
  11  Prefactor     25.113        11.247        .30262E-06    .13214E-04
  12  norm          .10000E-03    24.088        .11742E-05** at limit **
  13  Prefactor     .10000E-03    1.1116        .28001E-06** at limit **
  14  Prefactor     21.814        28.498       -.14282E-05   -.62466E-04
  15  Prefactor     3.0492        41.001        .25758E-06    .27670E-06
  16  norm          1.1979        6.1548        .25018E-05   -.17581E-03
  17  Prefactor     .10000E-03    3.4826        .66974E-06** at limit **
  18  Prefactor     16.562        16.654        .31428E-06   -.37373E-04
  19  Prefactor     .10000E-03    47.618       -.57722E-05** at limit **
  20  Prefactor     .10000E-03    16.962       -.24373E-07** at limit **
  21  Prefactor     .10000E-03    17.934        .96477E-06** at limit **
  22  Prefactor     .10000E-03    21.799        .22793E-06** at limit **
  23  Normalizat    1.0647        .21639       -.29512E-05   -.80858E-04
  24  Prefactor     1.2408        .16052        .70473E-06   -.36652E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 1.42055
  norm       = 14.6108
  Prefactor  = 0.0001
  Prefactor  = 0.967928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.40635
  Prefactor  = 2.72902
  Prefactor  = 25.1128
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8138
  Prefactor  = 3.04921
  norm       = 1.19787
  Prefactor  = 0.0001
  Prefactor  = 16.5622
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06468
  Prefactor  = 1.24076
 **********
 **   18 **HESSE 
 **********

 FCN=   7099.498     FROM HESSE     STATUS=OK           401 CALLS     3140 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.434        .32324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4205        .55705        .37901E-04   -1.5470    
   3  norm          14.611        8.4249        .52390E-03   -1.4943    
   4  Prefactor     .10000E-03    3.0877        .14421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .96793        26.003        .46957E-02   -1.5511    
   6  Prefactor     .10000E-03    4.5141        .17461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.3359        .33735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    64.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.4064        6.8032        .15857E-03   -1.5202    
  10  Prefactor     2.7290        3.9643        .18247E-03   -1.5378    
  11  Prefactor     25.113        11.246        .79934E-04   -1.4705    
  12  norm          .10000E-03    24.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1369        .86939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.814        28.599        .85727E-04   -1.4774    
  15  Prefactor     3.0492        41.055        .23243E-03   -1.5359    
  16  norm          1.1979        6.3961        .20116E-02   -1.5489    
  17  Prefactor     .10000E-03    3.6361        .30685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.562        16.610        .98386E-04   -1.4894    
  19  Prefactor     .10000E-03    47.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0647        .24323        .31116E-03   -.90894    
  24  Prefactor     1.2408        .18415        .22431E-03   -.85086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17885e-09
Minuit parameter uncertainties:
  1  0.000408241
  2  0.557055
  3  8.42557
  4  1.5577e-06
  5  10.0381
  6  3.67752e-06
  7  1.55026e-05
  8  0.000292311
  9  6.80401
  10  3.96473
  11  11.2466
  12  0.000104983
  13  6.17609e-06
  14  28.6166
  15  22.3957
  16  5.53664
  17  1.44604e-05
  18  16.6146
  19  0.000240014
  20  1.08897e-05
  21  7.89714e-05
  22  3.42197e-05
  23  0.243482
  24  0.184242
Done.

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

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.550e-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.241e+00  1.842e-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.065e+00  2.435e-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: 9.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/640126/likelihoodResults_249436801_249696001_4FGL_J1118.2-0415_daily_bin39.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) = 7099.49887093
delta logL = -0.00110112387392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7099.4977709
delta logL = -1.09518441604e-06

Fit tolerance = 1e-08

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

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

 FCN=   7099.498     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      219 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 42.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    4.4946       -.31092E-05** at limit **
   2  Index         2.6832        6.1797        .77430E-04   -.48572E-04
   3  Normalizat    1.0647        .19872        .91354E-07    .24308E-03
   4  Prefactor     1.2408        .15394       -.48668E-08    .27035E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.68318
  Normalizat = 1.06468
  Prefactor  = 1.24076
 **********
 **   18 **HESSE 
 **********

 FCN=   7099.498     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    5.9557        .34355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6832        6.3371        .50000       -.48179    
   3  Normalizat    1.0647        .23479        .31116E-03   -.90894    
   4  Prefactor     1.2408        .18212        .22431E-03   -.85086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00323e-08
Minuit parameter uncertainties:
  1  0.000534689
  2  5.09012
  3  0.235018
  4  0.182209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640126': 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) = 7099.49776933
delta logL = 4.71623934573e-07

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  5.347e-04  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.683e+00  5.090e+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.241e+00  1.822e-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.065e+00  2.350e-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/640126/cmap_HighResolution_249436801_249696001_4FGL_J1118.2-0415_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.53e-03', job_status='DONE', photon_flux_upper_limit='9.60e-08', time_completed='2021-09-03 14:47:07.238188', job_id='640126', GAL2='1.24', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630705627.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='4.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='39' AND source_name='4FGL J1118.2-0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:47:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 640126: <4FGL_J1118.2-0415_daily_bin39> in cluster <slac> Done

Job <4FGL_J1118.2-0415_daily_bin39> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 14:31:12 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:31:17 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:31:17 2021
Terminated at Fri Sep  3 14:47:08 2021
Results reported at Fri Sep  3 14:47:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1118.2-0415_daily_bin39 169.575 -4.2539 249436801 249696001 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 :                                   788.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            956 sec.

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

