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


Performing analysis on: 4FGL_J1118.2-0415_daily_bin1520
RA = 169.575, Dec = -4.2539
tmin = 633312001, tmax = 633571201
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='646888', job_status='RUN', time_executed='2021-09-03 14:53:03.101887', time_epoch_executed='1630705983.1' WHERE source_name='4FGL J1118.2-0415' and cadence='daily' and bin_id='1520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/646888

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/646888/ft1_4FGL_J1118.2-0415_daily_bin1520.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/646888/ft2_4FGL_J1118.2-0415_daily_bin1520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/646888/ft1_4FGL_J1118.2-0415_daily_bin1520.fits outfile=/scratch/kocevski/646888/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin1520.fits ra=169.575 dec=-4.2539 rad=12.0 tmin=633312001.0 tmax=633571201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.74
user 3.51
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/646888/ft1_filtered_4FGL_J1118.2-0415_daily_bin1520.fits" evtable="EVENTS" scfile=/scratch/kocevski/646888/ft2_4FGL_J1118.2-0415_daily_bin1520.fits sctable="SC_DATA" outfile=/scratch/kocevski/646888/ltcube_633312001_633571201_4FGL_J1118.2-0415_daily_bin1520.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/646888/ft2_4FGL_J1118.2-0415_daily_bin1520.fits
.....................!
real 14.73
user 14.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/646888/ft1_filtered_4FGL_J1118.2-0415_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/646888/ft2_4FGL_J1118.2-0415_daily_bin1520.fits sctable="SC_DATA" expcube=/scratch/kocevski/646888/ltcube_633312001_633571201_4FGL_J1118.2-0415_daily_bin1520.fits outfile=/scratch/kocevski/646888/expmap_633312001_633571201_4FGL_J1118.2-0415_daily_bin1520.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/646888/ltcube_633312001_633571201_4FGL_J1118.2-0415_daily_bin1520.fits
.....................!
real 190.32
user 185.40
sys 4.45

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/646888/ft1_filtered_4FGL_J1118.2-0415_daily_bin1520.fits scfile=/scratch/kocevski/646888/ft2_4FGL_J1118.2-0415_daily_bin1520.fits outfile=/scratch/kocevski/646888/cmap_633312001_633571201_4FGL_J1118.2-0415_daily_bin1520.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/646888/ft1_filtered_4FGL_J1118.2-0415_daily_bin1520.fits scfile=/scratch/kocevski/646888/ft2_4FGL_J1118.2-0415_daily_bin1520.fits outfile=/scratch/kocevski/646888/cmap_HighResolution_633312001_633571201_4FGL_J1118.2-0415_daily_bin1520.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=169.575 yref=-4.2539 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/646888/ft1_filtered_4FGL_J1118.2-0415_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/646888/ft2_4FGL_J1118.2-0415_daily_bin1520.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/646888/Model_4FGL_J1118.2-0415_daily_bin1520.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/646888/ft1_filtered_4FGL_J1118.2-0415_daily_bin1520.fits.....................!
real 67.26
user 65.83
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14608E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .53047       1.0000         .10000E-03   10000.    
     3 'norm      '    11.258       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.756       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0899       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3569       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.428       1.0000         .10000E-03   10000.    
     9 'norm      '    2.5367       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.047       1.0000         .10000E-03   10000.    
    12 'norm      '    29.233       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .94217       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.7923       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4085       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17843E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.046       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.020       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5310       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .67890       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=   7337.569     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     3127 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    4.3178        .27721E-07** at limit **
   2  norm          .53051        .55071        .25729E-07    .77701E-04
   3  norm          11.258        5.8596        .31974E-05    .26124E-04
   4  Prefactor     15.756        11.936        .22648E-06   -.16581E-04
   5  Prefactor     9.0922        12.176        .14135E-05   -.51930E-05
   6  Prefactor     .10000E-03    9.4483       -.26862E-06** at limit **
   7  Prefactor     2.3542        1.2667        .92922E-07   -.15132E-02
   8  Prefactor     21.437        48.193        .96360E-05   -.30724E-06
   9  norm          2.5384        7.2163       -.32969E-06   -.35628E-04
  10  Prefactor     .10000E-03    3.3858       -.47922E-07** at limit **
  11  Prefactor     24.048        10.236       -.24464E-06   -.29687E-04
  12  norm          29.229        22.556        .38575E-06    .81759E-05
  13  Prefactor     .94223        1.2660       -.36130E-07   -.10136E-04
  14  Prefactor     .10000E-03    20.604       -.96709E-06** at limit **
  15  Prefactor     .10000E-03    12.708       -.26467E-06** at limit **
  16  norm          9.7920        6.9546        .63393E-07   -.17766E-03
  17  Prefactor     5.4086        4.1990        .19374E-07   -.23239E-03
  18  Prefactor     .10006E-03    9.7650        .87672E-06** at limit **
  19  Prefactor     .10000E-03    5.0246       -.50779E-07** at limit **
  20  Prefactor     25.056        27.682        .41018E-06   -.11848E-04
  21  Prefactor     11.019        13.902        .29210E-06   -.18818E-04
  22  Prefactor     .10000E-03    16.491        .14571E-05** at limit **
  23  Normalizat    1.5309        .20037       -.23756E-06   -.70069E-04
  24  Prefactor     .67897        .14280       -.12874E-05   -.50467E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  norm       = 0.530511
  norm       = 11.258
  Prefactor  = 15.7559
  Prefactor  = 9.09216
  Prefactor  = 0.0001
  Prefactor  = 2.35415
  Prefactor  = 21.4374
  norm       = 2.53837
  Prefactor  = 0.0001
  Prefactor  = 24.0475
  norm       = 29.2292
  Prefactor  = 0.942225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.79202
  Prefactor  = 5.40863
  Prefactor  = 0.00010006
  Prefactor  = 0.0001
  Prefactor  = 25.056
  Prefactor  = 11.0195
  Prefactor  = 0.0001
  Normalizat = 1.53091
  Prefactor  = 0.67897
 **********
 **   18 **HESSE 
 **********

 FCN=   7337.569     FROM HESSE     STATUS=OK           415 CALLS     3542 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    7.6704        .58733E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .53051        .53329        .52737E-04   -1.5562    
   3  norm          11.258        5.8624        .11940E-03   -1.5037    
   4  Prefactor     15.756        11.722        .10090E-03   -1.4914    
   5  Prefactor     9.0922        12.153        .13294E-03   -1.5105    
   6  Prefactor     .10000E-03    9.5377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3542        5.4067        .13290E-02   -1.5401    
   8  Prefactor     21.437        48.181        .86528E-04   -1.4782    
   9  norm          2.5384        7.4711        .25642E-03   -1.5389    
  10  Prefactor     .10000E-03    3.4373        .15334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.048        10.253        .81686E-04   -1.4727    
  12  norm          29.229        22.525        .74100E-04   -1.4626    
  13  Prefactor     .94223        1.2660        .51839E-04   -1.5514    
  14  Prefactor     .10000E-03    20.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.7920        6.9587        .64028E-03   -1.5082    
  17  Prefactor     5.4086        4.1139        .13477E-03   -1.5243    
  18  Prefactor     .10006E-03    79.233        .50623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.0256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     25.056        27.671        .80042E-04   -1.4706    
  21  Prefactor     11.019        13.924        .12069E-03   -1.5044    
  22  Prefactor     .10000E-03    16.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5309        .23845        .25534E-03   -.76913    
  24  Prefactor     .67897        .16652        .26472E-03   -1.0436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36554e-09
Minuit parameter uncertainties:
  1  0.000768754
  2  0.533291
  3  5.86269
  4  11.7239
  5  12.156
  6  5.44472e-05
  7  5.40779
  8  48.2682
  9  7.47385
  10  2.12089e-06
  11  10.2534
  12  22.5311
  13  1.266
  14  5.65316e-06
  15  4.45112e-06
  16  6.95926
  17  4.11416
  18  0.00438349
  19  1.09443e-06
  20  27.6849
  21  13.9285
  22  9.58034e-07
  23  0.23863
  24  0.166647
Done.

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

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  2.354e+00  5.408e+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:  6.790e-01  1.666e-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.531e+00  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/646888/likelihoodResults_633312001_633571201_4FGL_J1118.2-0415_daily_bin1520.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) = 7337.49177328
delta logL = 0.0769175384794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7337.48212527
delta logL = 0.0865655492262

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8108       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1218       1.0000          .0000       10.000    
     3 'Normalizat'    1.5167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68542       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=   7337.482     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8092        80.058        .77620E-02    .53921E-03
   2  Index         3.1237        6.5523        .21841        .71186E-05
   3  Normalizat    1.5172        .45093E-01    .57950E-01   -.28600E-03
   4  Prefactor     .68511        .33265E-01    .42207E-01    .15294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.80924
  Index      = 3.12369
  Normalizat = 1.51721
  Prefactor  = 0.685108
 **********
 **   18 **HESSE 
 **********

 FCN=   7337.482     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8092        5.1025        .17823E-03   -1.5439    
   2  Index         3.1237        1.5227        .10931E-01   -.38468    
   3  Normalizat    1.5172        .23262        .25626E-03   -.77296    
   4  Prefactor     .68511        .16591        .26362E-03   -1.0411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.29749e-10
Minuit parameter uncertainties:
  1  5.10368
  2  1.55149
  3  0.232779
  4  0.166025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/646888': 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) = 7337.4821207
delta logL = 0.0865701202538

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.809e+00  5.104e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  3.124e+00  1.551e+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:  6.851e-01  1.660e-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.517e+00  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
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/646888/cmap_HighResolution_633312001_633571201_4FGL_J1118.2-0415_daily_bin1520.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2021-09-03 15:07:26.949732', job_id='646888', GAL2='0.69', fit_tolerance='1e-08', EG2='1.52', EG='1.53', time_epoch_completed='1630706846.95', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='8.66e-02', ts2='0.42', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1520' AND source_name='4FGL J1118.2-0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 15:07:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 646888: <4FGL_J1118.2-0415_daily_bin1520> in cluster <slac> Done

Job <4FGL_J1118.2-0415_daily_bin1520> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 14:51:48 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:52:49 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:52:49 2021
Terminated at Fri Sep  3 15:07:27 2021
Results reported at Fri Sep  3 15:07:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1118.2-0415_daily_bin1520 169.575 -4.2539 633312001 633571201 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 :                                   847.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             370.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            939 sec.

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

