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


Performing analysis on: 4FGL_J1118.2-0415_daily_bin1227
RA = 169.575, Dec = -4.2539
tmin = 557366401, tmax = 557625601
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='645350', job_status='RUN', time_executed='2021-09-03 14:48:20.977590', time_epoch_executed='1630705700.98' WHERE source_name='4FGL J1118.2-0415' and cadence='daily' and bin_id='1227'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/645350

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/645350/ft1_4FGL_J1118.2-0415_daily_bin1227.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/645350/ft2_4FGL_J1118.2-0415_daily_bin1227.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/645350/ft1_4FGL_J1118.2-0415_daily_bin1227.fits outfile=/scratch/kocevski/645350/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin1227.fits ra=169.575 dec=-4.2539 rad=12.0 tmin=557366401.0 tmax=557625601.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.79
user 3.54
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/645350/ft2_4FGL_J1118.2-0415_daily_bin1227.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/645350/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin1227.fits evtable="EVENTS" outfile="/scratch/kocevski/645350/ft1_filtered_4FGL_J1118.2-0415_daily_bin1227.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.52
user 0.37
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/645350/ft1_filtered_4FGL_J1118.2-0415_daily_bin1227.fits" evtable="EVENTS" scfile=/scratch/kocevski/645350/ft2_4FGL_J1118.2-0415_daily_bin1227.fits sctable="SC_DATA" outfile=/scratch/kocevski/645350/ltcube_557366401_557625601_4FGL_J1118.2-0415_daily_bin1227.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/645350/ft2_4FGL_J1118.2-0415_daily_bin1227.fits
.....................!
real 17.37
user 16.87
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/645350/ft1_filtered_4FGL_J1118.2-0415_daily_bin1227.fits evtable="EVENTS" scfile=/scratch/kocevski/645350/ft2_4FGL_J1118.2-0415_daily_bin1227.fits sctable="SC_DATA" expcube=/scratch/kocevski/645350/ltcube_557366401_557625601_4FGL_J1118.2-0415_daily_bin1227.fits outfile=/scratch/kocevski/645350/expmap_557366401_557625601_4FGL_J1118.2-0415_daily_bin1227.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/645350/ltcube_557366401_557625601_4FGL_J1118.2-0415_daily_bin1227.fits
.....................!
real 193.62
user 187.89
sys 5.23

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/645350/ft1_filtered_4FGL_J1118.2-0415_daily_bin1227.fits scfile=/scratch/kocevski/645350/ft2_4FGL_J1118.2-0415_daily_bin1227.fits outfile=/scratch/kocevski/645350/cmap_557366401_557625601_4FGL_J1118.2-0415_daily_bin1227.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.57
user 0.39
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/645350/ft1_filtered_4FGL_J1118.2-0415_daily_bin1227.fits evtable="EVENTS" scfile=/scratch/kocevski/645350/ft2_4FGL_J1118.2-0415_daily_bin1227.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/645350/Model_4FGL_J1118.2-0415_daily_bin1227.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/645350/ft1_filtered_4FGL_J1118.2-0415_daily_bin1227.fits.......................!
real 25.82
user 24.06
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51395E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.9297       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    113.70       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11914E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13755E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.636       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9923       1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.323       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.273       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .20860E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.8041       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=   1417.243     FROM MIGRAD    STATUS=FAILED       931 CALLS     3492 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7682.4        .21144E-02** at limit **
   2  norm          .10000E-03    10.024        .11709E-02** at limit **
   3  norm          3.9220        61.870        .20350E-03   -.77638E-04
   4  Prefactor     .10000E-03    178.05        .18142E-02** at limit **
   5  Prefactor     113.58        165.86        .18864E-03   -.11664E-03
   6  Prefactor     .10000E-03    59.160        .18142E-02** at limit **
   7  Prefactor     .10000E-03    10.843        .12168E-02** at limit **
   8  Prefactor     .10000E-03    388.99        .18142E-02** at limit **
   9  norm          .10000E-03    18.850        .16044E-02** at limit **
  10  Prefactor     .10000E-03    8.3694        .10672E-02** at limit **
  11  Prefactor     15.598        47.252        .50644E-03   -.14731E-03
  12  norm          .10000E-03    33.706        .18142E-02** at limit **
  13  Prefactor     .10000E-03    7.8689        .10358E-02** at limit **
  14  Prefactor     .10000E-03    28.031        .18142E-02** at limit **
  15  Prefactor     .10000E-03    32.082        .18142E-02** at limit **
  16  norm          .10000E-03    8.1520        .10537E-02** at limit **
  17  Prefactor     3.9917        7.3623        .12276E-03   -.18108E-03
  18  Prefactor     38.320        40.441        .64744E-04   -.11444E-03
  19  Prefactor     .10000E-03    34.806        .18142E-02** at limit **
  20  Prefactor     .10000E-03    59.114        .18142E-02** at limit **
  21  Prefactor     23.299        96.330        .83030E-04   -.12558E-03
  22  Prefactor     .10000E-03    122.57        .18142E-02** at limit **
  23  Normalizat    .18938E-01    6.4728        .13423E-01   -.54975E-04
  24  Prefactor     1.8050        2.2612        .20086E-03   -.26184E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1417.243     FROM SIMPLEX   STATUS=UNCHANGED   1411 CALLS     4903 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7682.4        .72307E-02** at limit **
   2  norm          .10000E-03    10.024        .60136E-03** at limit **
   3  norm          3.9220        61.870        .11406E-05   -.77638E-04
   4  Prefactor     .10000E-03    178.05        .11400E-04** at limit **
   5  Prefactor     113.58        165.86        .10112E-05   -.11664E-03
   6  Prefactor     .10000E-03    59.160        .31547E-05** at limit **
   7  Prefactor     .10000E-03    10.843        .62039E-05** at limit **
   8  Prefactor     .10000E-03    388.99        .23350E-04** at limit **
   9  norm          .10000E-03    18.850        .79149E-05** at limit **
  10  Prefactor     .10000E-03    8.3694        .81524E-05** at limit **
  11  Prefactor     15.598        47.252        .11115E-05   -.14731E-03
  12  norm          .10000E-03    33.706        .63600E-03** at limit **
  13  Prefactor     .10000E-03    7.8689        .14517E-03** at limit **
  14  Prefactor     .10000E-03    28.031        .15705E-03** at limit **
  15  Prefactor     .10000E-03    32.082        .29278E-03** at limit **
  16  norm          .10000E-03    8.1520        .22010E-03** at limit **
  17  Prefactor     3.9917        7.3623        .11405E-05   -.18108E-03
  18  Prefactor     38.320        40.441        .10774E-05   -.11444E-03
  19  Prefactor     .10000E-03    34.806        .39357E-03** at limit **
  20  Prefactor     .10000E-03    59.114        .11275E-02** at limit **
  21  Prefactor     23.299        96.330        .10992E-05   -.12558E-03
  22  Prefactor     .10000E-03    122.57        .39783E-03** at limit **
  23  Normalizat    .18938E-01    6.4728        .11638E-05   -.54975E-04
  24  Prefactor     1.8050        2.2612        .51667E-06   -.26184E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1417.243     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     5284 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7705.3        .42288E-03** at limit **
   2  norm          .10000E-03    10.136        .23418E-03** at limit **
   3  norm          3.9222        63.058        .81402E-05   -.79607E-05
   4  Prefactor     .10000E-03    180.03        .36285E-03** at limit **
   5  Prefactor     113.58        98.170        .37728E-04   -.14117E-04
   6  Prefactor     .10000E-03    59.821        .36285E-03** at limit **
   7  Prefactor     .10000E-03    10.964        .24337E-03** at limit **
   8  Prefactor     .10000E-03    393.29        .36285E-03** at limit **
   9  norm          .10000E-03    19.062        .32088E-03** at limit **
  10  Prefactor     .10000E-03    8.4634        .21344E-03** at limit **
  11  Prefactor     15.598        26.832        .20258E-04   -.18015E-04
  12  norm          .10000E-03    34.083        .36285E-03** at limit **
  13  Prefactor     .10000E-03    7.9563        .20716E-03** at limit **
  14  Prefactor     .10000E-03    28.344        .36285E-03** at limit **
  15  Prefactor     .10000E-03    32.441        .36285E-03** at limit **
  16  norm          .10000E-03    8.2435        .21074E-03** at limit **
  17  Prefactor     3.9917        6.9675        .49103E-05   -.17017E-04
  18  Prefactor     38.320        34.708        .12949E-04   -.11194E-04
  19  Prefactor     .10000E-03    35.193        .36285E-03** at limit **
  20  Prefactor     .10000E-03    59.775        .36285E-03** at limit **
  21  Prefactor     23.298        39.731        .16606E-04   -.12391E-04
  22  Prefactor     .10000E-03    123.94        .36285E-03** at limit **
  23  Normalizat    .19013E-01    9.3676        .53691E-03   -.23133E-05
  24  Prefactor     1.8050        .49529        .40172E-04   -.39832E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.92222
  Prefactor  = 0.0001
  Prefactor  = 113.578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5977
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.99167
  Prefactor  = 38.3199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.298
  Prefactor  = 0.0001
  Normalizat = 0.0190133
  Prefactor  = 1.80501
 **********
 **   18 **HESSE 
 **********

 FCN=   1417.243     FROM HESSE     STATUS=OK           373 CALLS     5657 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7705.5        .84575E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.136        .46835E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9222        63.247        .16280E-05   -1.5312    
   4  Prefactor     .10000E-03    180.03        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     113.58        98.053        .75456E-05   -1.3572    
   6  Prefactor     .10000E-03    59.822        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.964        .48674E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    393.29        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    19.062        .64175E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.4634        .42688E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.598        26.795        .40515E-05   -1.4918    
  12  norm          .10000E-03    34.083        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.9563        .41432E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.344        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    32.441        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.2435        .42148E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.9917        6.9664        .98206E-06   -1.5308    
  18  Prefactor     38.320        34.705        .25898E-05   -1.4469    
  19  Prefactor     .10000E-03    35.193        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    59.775        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.298        39.615        .33212E-05   -1.4742    
  22  Prefactor     .10000E-03    123.95        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .19013E-01    9.2811        .21477E-04   -1.5107    
  24  Prefactor     1.8050        .48724        .80344E-05   -.69320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56468e-12
Minuit parameter uncertainties:
  1  0.000110924
  2  8.43109e-09
  3  31.5395
  4  6.01316e-06
  5  98.1939
  6  2.37984e-05
  7  1.82053e-06
  8  0.000115113
  9  3.92516e-06
  10  1.69954e-06
  11  26.8159
  12  1.46556e-06
  13  7.49487e-07
  14  2.29084e-06
  15  2.84704e-06
  16  1.34534e-06
  17  6.96783
  18  34.7232
  19  2.85724e-06
  20  8.21917e-06
  21  39.6601
  22  1.75462e-05
  23  0.729368
  24  0.488553
Done.

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

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.821e-06  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.805e+00  4.886e-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.901e-02  7.294e-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: 4.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.83e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/645350/likelihoodResults_557366401_557625601_4FGL_J1118.2-0415_daily_bin1227.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) = 1417.24349523
delta logL = -0.000369249901723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1417.24312596
delta logL = 2.84962879959e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6263       1.0000          .0000       10.000    
     3 'Normalizat'    .19003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.8050       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=   1417.243     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      268 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.264        .12269E-01** at limit **
   2  Index         2.2010        5.0683        .50000        .16502E-07
   3  Normalizat    .19002E-01    .28355E-01    .13426E-01    .55697E-04
   4  Prefactor     1.8050        .20126E-01    .20086E-03    .75714E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.20096
  Normalizat = 0.019002
  Prefactor  = 1.80502
 **********
 **   18 **HESSE 
 **********

 FCN=   1417.243     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      299 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    497.33        .13053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2010        6.1670        .50000       -.59416    
   3  Normalizat    .19002E-01    .21438        .26852E-02   -1.5108    
   4  Prefactor     1.8050        .62162E-01    .40172E-04   -.69319    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.82951e-11
Minuit parameter uncertainties:
  1  1.41171e-05
  2  1389.86
  3  0.0882188
  4  0.0621648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/645350': 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): 102
logL (Free Index) = 1417.24312539
delta logL = 5.96231302552e-07

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.412e-05  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.201e+00  1.390e+03  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.805e+00  6.216e-02  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.900e-02  8.822e-02  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/645350/cmap_HighResolution_557366401_557625601_4FGL_J1118.2-0415_daily_bin1227.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-02', job_status='DONE', photon_flux_upper_limit='4.88e-07', time_completed='2021-09-03 14:56:13.792985', job_id='645350', GAL2='1.81', fit_tolerance='1e-08', EG2='0.02', EG='0.02', time_epoch_completed='1630706173.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.81', dlogl='5.96e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1227' AND source_name='4FGL J1118.2-0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:56:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 645350: <4FGL_J1118.2-0415_daily_bin1227> in cluster <slac> Done

Job <4FGL_J1118.2-0415_daily_bin1227> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 14:46:46 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:48:07 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:48:07 2021
Terminated at Fri Sep  3 14:56:14 2021
Results reported at Fri Sep  3 14:56:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1118.2-0415_daily_bin1227 169.575 -4.2539 557366401 557625601 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 :                                   462.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   487 sec.
    Turnaround time :                            568 sec.

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

