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


Performing analysis on: 4FGL_J1118.2-0415_daily_bin684
RA = 169.575, Dec = -4.2539
tmin = 416620801, tmax = 416880001
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='642282', job_status='RUN', time_executed='2021-09-03 14:42:53.228876', time_epoch_executed='1630705373.23' WHERE source_name='4FGL J1118.2-0415' and cadence='daily' and bin_id='684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642282

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642282/ft1_4FGL_J1118.2-0415_daily_bin684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642282/ft2_4FGL_J1118.2-0415_daily_bin684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642282/ft1_4FGL_J1118.2-0415_daily_bin684.fits outfile=/scratch/kocevski/642282/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin684.fits ra=169.575 dec=-4.2539 rad=12.0 tmin=416620801.0 tmax=416880001.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 4.84
user 4.11
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642282/ft1_filtered_4FGL_J1118.2-0415_daily_bin684.fits" evtable="EVENTS" scfile=/scratch/kocevski/642282/ft2_4FGL_J1118.2-0415_daily_bin684.fits sctable="SC_DATA" outfile=/scratch/kocevski/642282/ltcube_416620801_416880001_4FGL_J1118.2-0415_daily_bin684.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/642282/ft2_4FGL_J1118.2-0415_daily_bin684.fits
.....................!
real 17.20
user 16.68
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642282/ft1_filtered_4FGL_J1118.2-0415_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/642282/ft2_4FGL_J1118.2-0415_daily_bin684.fits sctable="SC_DATA" expcube=/scratch/kocevski/642282/ltcube_416620801_416880001_4FGL_J1118.2-0415_daily_bin684.fits outfile=/scratch/kocevski/642282/expmap_416620801_416880001_4FGL_J1118.2-0415_daily_bin684.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/642282/ltcube_416620801_416880001_4FGL_J1118.2-0415_daily_bin684.fits
.....................!
real 158.62
user 153.45
sys 4.30

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/642282/ft1_filtered_4FGL_J1118.2-0415_daily_bin684.fits scfile=/scratch/kocevski/642282/ft2_4FGL_J1118.2-0415_daily_bin684.fits outfile=/scratch/kocevski/642282/cmap_416620801_416880001_4FGL_J1118.2-0415_daily_bin684.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.51
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642282/ft1_filtered_4FGL_J1118.2-0415_daily_bin684.fits scfile=/scratch/kocevski/642282/ft2_4FGL_J1118.2-0415_daily_bin684.fits outfile=/scratch/kocevski/642282/cmap_HighResolution_416620801_416880001_4FGL_J1118.2-0415_daily_bin684.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.51
user 0.33
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/642282/ft1_filtered_4FGL_J1118.2-0415_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/642282/ft2_4FGL_J1118.2-0415_daily_bin684.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/642282/Model_4FGL_J1118.2-0415_daily_bin684.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/642282/ft1_filtered_4FGL_J1118.2-0415_daily_bin684.fits.....................!
real 44.48
user 43.18
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6831       1.0000         .10000E-03   10000.    
     2 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.487       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.657       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1278       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10405E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5753       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0072       1.0000         .10000E-03   10000.    
    12 'norm      '    .10719E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .49523E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.445       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0086       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23727E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.823       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10915E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.918       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.579       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4979       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76271       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=   5135.711     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2760 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6795        13.255        .71070E-06   -.37041E-04
   2  norm          .10000E-03    .37243        .20657E-07** at limit **
   3  norm          10.484        8.8224        .39986E-06   -.25530E-04
   4  Prefactor     26.645        16.558        .38700E-06   -.10531E-03
   5  Prefactor     .10000E-03    8.2799        .58609E-06** at limit **
   6  Prefactor     .10000E-03    3.3221       -.11121E-07** at limit **
   7  Prefactor     6.1296        6.4712        .49445E-06    .19976E-05
   8  Prefactor     .10000E-03    22.191       -.10259E-05** at limit **
   9  norm          .10000E-03    6.3782       -.29173E-06** at limit **
  10  Prefactor     3.5529        7.0894       -.10077E-05   -.32222E-03
  11  Prefactor     5.0041        8.4419        .44987E-05   -.23657E-03
  12  norm          .10000E-03    29.575       -.11799E-05** at limit **
  13  Prefactor     .10016E-03    1.7392        .84763E-06** at limit **
  14  Prefactor     37.483        44.683        .61188E-05    .23743E-03
  15  Prefactor     .10000E-03    21.022        .37664E-06** at limit **
  16  norm          2.0087        5.8179        .11849E-05   -.15485E-03
  17  Prefactor     .10065E-03    2.0676        .60289E-06** at limit **
  18  Prefactor     .10000E-03    8.3527       -.61788E-06** at limit **
  19  Prefactor     18.818        23.851       -.26764E-06   -.76619E-04
  20  Prefactor     .10000E-03    67.581       -.65545E-06** at limit **
  21  Prefactor     11.913        18.411        .51988E-06   -.60702E-04
  22  Prefactor     26.570        55.541       -.18937E-05   -.65744E-04
  23  Normalizat    1.4986        .25547       -.38195E-05   -.23656E-03
  24  Prefactor     .76248        .16929        .98652E-06   -.41922E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.67955
  norm       = 0.0001
  norm       = 10.4835
  Prefactor  = 26.6448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.12965
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.55292
  Prefactor  = 5.00415
  norm       = 0.0001
  Prefactor  = 0.000100158
  Prefactor  = 37.4829
  Prefactor  = 0.0001
  norm       = 2.0087
  Prefactor  = 0.000100652
  Prefactor  = 0.0001
  Prefactor  = 18.8179
  Prefactor  = 0.0001
  Prefactor  = 11.9134
  Prefactor  = 26.5704
  Normalizat = 1.49855
  Prefactor  = 0.762476
 **********
 **   18 **HESSE 
 **********

 FCN=   5135.711     FROM HESSE     STATUS=OK           397 CALLS     3157 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6795        13.183        .18596E-03   -1.5275    
   2  norm          .10000E-03    .44544        .77596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.484        8.8129        .12372E-03   -1.5060    
   4  Prefactor     26.645        15.290        .77591E-04   -1.4675    
   5  Prefactor     .10000E-03    8.3330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3238        .12756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.1296        6.4555        .16218E-03   -1.5213    
   8  Prefactor     .10000E-03    22.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.4001        .17651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5529        7.2418        .21373E-03   -1.5331    
  11  Prefactor     5.0041        8.7148        .89855E-03   -1.5261    
  12  norm          .10000E-03    29.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10016E-03    21.127        .17403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     37.483        47.434        .65497E-04   -1.4483    
  15  Prefactor     .10000E-03    21.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0087        5.6376        .27385E-03   -1.5425    
  17  Prefactor     .10065E-03    43.928        .18962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.3894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.818        23.883        .92316E-04   -1.4840    
  20  Prefactor     .10000E-03    67.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.913        18.377        .11604E-03   -1.5018    
  22  Prefactor     26.570        55.531        .77705E-04   -1.4677    
  23  Normalizat    1.4986        .29010        .26223E-03   -.77819    
  24  Prefactor     .76248        .19640        .25433E-03   -1.0113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23807e-08
Minuit parameter uncertainties:
  1  13.191
  2  1.03437e-06
  3  8.81394
  4  15.2925
  5  5.70723e-05
  6  8.0064e-07
  7  6.45621
  8  0.000124018
  9  3.24346e-06
  10  7.24362
  11  8.71705
  12  0.000138902
  13  0.00365065
  14  47.4821
  15  4.37809e-05
  16  5.63907
  17  0.0107114
  18  4.636e-05
  19  23.8948
  20  8.38832e-06
  21  18.3861
  22  55.6395
  23  0.290426
  24  0.196582
Done.

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

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  6.130e+00  6.456e+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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  7.625e-01  1.966e-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.499e+00  2.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 169.575 -4.254
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 6.04e-08 +/- 6.36e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.61e-05

TS (Fixed Index): 1.31
Ra Dec: 169.575 -4.254
Photon Flux Upper Limit: 1.92e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.50e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/642282/likelihoodResults_416620801_416880001_4FGL_J1118.2-0415_daily_bin684.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5135.22607319
delta logL = 0.484937090571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5135.22114793
delta logL = 0.489862356242

Fit tolerance = 1e-08

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

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

 FCN=   5135.221     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      247 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2648        48.704        .56026E-02    .36046E-03
   2  Index         3.4952        3.6061        .15827        .91786E-04
   3  Normalizat    1.4444        .77629E-01    .60149E-01    .35780E-05
   4  Prefactor     .78712        .54559E-01    .43549E-01    .12585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.26478
  Index      = 3.49518
  Normalizat = 1.44437
  Prefactor  = 0.787123
 **********
 **   18 **HESSE 
 **********

 FCN=   5135.221     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2648        5.5699        .92159E-04   -1.5347    
   2  Index         3.4952        1.1129        .56501E-02   -.30570    
   3  Normalizat    1.4444        .27936        .26601E-03   -.79354    
   4  Prefactor     .78712        .19683        .25062E-03   -1.0020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.469e-11
Minuit parameter uncertainties:
  1  5.57073
  2  1.12331
  3  0.279654
  4  0.19701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642282': 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) = 5135.22114792
delta logL = 0.489862366627

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  3.265e+00  5.571e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  3.495e+00  1.123e+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:  7.871e-01  1.970e-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.444e+00  2.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 169.575 -4.254
Photon Index (Free Index): 3.50 +/- 1.12
Photon Flux (Free Index): 1.10e-07 +/- 8.72e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.43e-05

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/642282/cmap_HighResolution_416620801_416880001_4FGL_J1118.2-0415_daily_bin684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', comment='SUCCESS', photon_flux='6.04e-08', energy_flux2='1.84e-05', photon_flux_error='6.36e-08', dlogl='4.90e-01', energy_flux='1.53e-05', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-09-03 14:52:26.209411', photon_index_error2='1.12', photon_index2='3.50', ts='1.31', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.92e-07', energy_flux_error2='1.43e-05', EG='1.50', time_epoch_completed='1630705946.21', return_code='0', job_id='642282', GAL2='0.79', EG2='1.44', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='8.72e-08', ts2='2.36', photon_index='2.64' WHERE bin_id='684' AND source_name='4FGL J1118.2-0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:52:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 642282: <4FGL_J1118.2-0415_daily_bin684> in cluster <slac> Done

Job <4FGL_J1118.2-0415_daily_bin684> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep  3 14:36:44 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:40:09 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:40:09 2021
Terminated at Fri Sep  3 14:52:26 2021
Results reported at Fri Sep  3 14:52:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1118.2-0415_daily_bin684 169.575 -4.2539 416620801 416880001 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 :                                   564.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            942 sec.

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

