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


Performing analysis on: 4FGL_J1118.2-0415_daily_bin1525
RA = 169.575, Dec = -4.2539
tmin = 634608001, tmax = 634867201
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='646896', job_status='RUN', time_executed='2021-09-03 14:54:56.442614', time_epoch_executed='1630706096.44' WHERE source_name='4FGL J1118.2-0415' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/646896

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/646896/ft1_4FGL_J1118.2-0415_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/646896/ft2_4FGL_J1118.2-0415_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/646896/ft1_4FGL_J1118.2-0415_daily_bin1525.fits outfile=/scratch/kocevski/646896/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin1525.fits ra=169.575 dec=-4.2539 rad=12.0 tmin=634608001.0 tmax=634867201.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.09
user 2.86
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/646896/ft1_filtered_4FGL_J1118.2-0415_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/646896/ft2_4FGL_J1118.2-0415_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/646896/ltcube_634608001_634867201_4FGL_J1118.2-0415_daily_bin1525.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/646896/ft2_4FGL_J1118.2-0415_daily_bin1525.fits
.....................!
real 15.51
user 15.11
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/646896/ft1_filtered_4FGL_J1118.2-0415_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/646896/ft2_4FGL_J1118.2-0415_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/646896/ltcube_634608001_634867201_4FGL_J1118.2-0415_daily_bin1525.fits outfile=/scratch/kocevski/646896/expmap_634608001_634867201_4FGL_J1118.2-0415_daily_bin1525.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/646896/ltcube_634608001_634867201_4FGL_J1118.2-0415_daily_bin1525.fits
.....................!
real 192.52
user 186.22
sys 5.26

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/646896/ft1_filtered_4FGL_J1118.2-0415_daily_bin1525.fits scfile=/scratch/kocevski/646896/ft2_4FGL_J1118.2-0415_daily_bin1525.fits outfile=/scratch/kocevski/646896/cmap_634608001_634867201_4FGL_J1118.2-0415_daily_bin1525.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/646896/ft1_filtered_4FGL_J1118.2-0415_daily_bin1525.fits scfile=/scratch/kocevski/646896/ft2_4FGL_J1118.2-0415_daily_bin1525.fits outfile=/scratch/kocevski/646896/cmap_HighResolution_634608001_634867201_4FGL_J1118.2-0415_daily_bin1525.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    91.274       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.3185       1.0000         .10000E-03   10000.    
     4 'Prefactor '    105.47       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    54.642       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.483       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11847E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .99192       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.951       1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.165       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .55075       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2726       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=   1808.354     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2771 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     91.283        183.75        .95575E-05   -.11702E-04
   2  norm          .10000E-03    2.7524        .70330E-07** at limit **
   3  norm          8.3155        20.244       -.46300E-05   -.71328E-03
   4  Prefactor     105.46        105.22       -.81485E-05    .57624E-04
   5  Prefactor     .10000E-03    28.534       -.27365E-05** at limit **
   6  Prefactor     .10000E-03    13.181        .23661E-06** at limit **
   7  Prefactor     .10000E-03    5.7787        .67566E-07** at limit **
   8  Prefactor     .10000E-03    86.812        .12373E-04** at limit **
   9  norm          .10000E-03    6.0815       -.13453E-07** at limit **
  10  Prefactor     .10000E-03    3.5716        .26368E-07** at limit **
  11  Prefactor     54.641        23.822       -.29161E-06    .10470E-04
  12  norm          .10000E-03    30.491        .14855E-04** at limit **
  13  Prefactor     .10000E-03    17.354       -.59024E-06** at limit **
  14  Prefactor     36.477        65.109       -.50388E-05    .15626E-04
  15  Prefactor     .10000E-03    322.33       -.10069E-04** at limit **
  16  norm          .98739        34.269       -.20925E-06   -.96996E-04
  17  Prefactor     13.953        12.537       -.60766E-06    .16427E-03
  18  Prefactor     31.163        27.957        .11778E-06    .86723E-05
  19  Prefactor     .10000E-03    24.647        .10189E-04** at limit **
  20  Prefactor     .10000E-03    28.260       -.85855E-05** at limit **
  21  Prefactor     .10000E-03    26.058       -.11406E-04** at limit **
  22  Prefactor     .10000E-03    67.514       -.10328E-04** at limit **
  23  Normalizat    .55078        .51171        .80890E-05    .30902E-04
  24  Prefactor     1.2726        .32403       -.51280E-06    .72517E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 91.283
  norm       = 0.0001
  norm       = 8.3155
  Prefactor  = 105.457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.6415
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 36.4774
  Prefactor  = 0.000100002
  norm       = 0.987392
  Prefactor  = 13.9534
  Prefactor  = 31.1634
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 0.000100003
  Normalizat = 0.550781
  Prefactor  = 1.27262
 **********
 **   18 **HESSE 
 **********

 FCN=   1808.354     FROM HESSE     STATUS=OK           389 CALLS     3160 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     91.283        183.52        .42062E-04   -1.3794    
   2  norm          .10000E-03    2.7559        .68690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.3155        21.633        .69499E-03   -1.5131    
   4  Prefactor     105.46        105.28        .39157E-04   -1.3650    
   5  Prefactor     .10000E-03    28.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.196        .15081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.7845        .99835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    86.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.0822        .10243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5724        .78471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     54.641        23.768        .54263E-04   -1.4228    
  12  norm          .10000E-03    29.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.813        .34520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.477        65.121        .66351E-04   -1.4499    
  15  Prefactor     .10000E-03    330.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .98739        53.528        .33284E-02   -1.5509    
  17  Prefactor     13.953        11.250        .95308E-04   -1.4961    
  18  Prefactor     31.163        27.955        .71773E-04   -1.4591    
  19  Prefactor     .10000E-03    24.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    67.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .55078        .55999        .45029E-03   -1.1012    
  24  Prefactor     1.2726        .36216        .21392E-03   -.84125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80428e-09
Minuit parameter uncertainties:
  1  184.679
  2  2.19321e-05
  3  21.6533
  4  105.467
  5  0.000139786
  6  9.52775e-06
  7  2.2254e-06
  8  0.00116085
  9  1.4814e-06
  10  5.83782e-06
  11  23.7724
  12  0.000755335
  13  1.15304e-05
  14  65.2488
  15  0.00154313
  16  14.553
  17  11.2516
  18  27.9671
  19  0.000504999
  20  0.000454065
  21  0.000594727
  22  0.000859071
  23  0.56588
  24  0.36288
Done.

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

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  2.225e-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.273e+00  3.629e-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:  5.508e-01  5.659e-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: 2.79e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/646896/likelihoodResults_634608001_634867201_4FGL_J1118.2-0415_daily_bin1525.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) = 1808.3545006
delta logL = -0.000779649824608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1808.35372093
delta logL = 2.17546585191e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6307       1.0000          .0000       10.000    
     3 'Normalizat'    .55076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2726       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=   1808.354     FROM MIGRAD    STATUS=FAILED        89 CALLS      247 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10114E-03    250.00        .10011E-02** at limit **
   2  Index         2.5432        8.7111        .50000        .10063E-04
   3  Normalizat    .55078        .74404E-01    .45028E-03   -.56808E-07
   4  Prefactor     1.2726        .52294E-01    .21392E-03    .16209E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1808.354     FROM SIMPLEX   STATUS=PROGRESS     142 CALLS      389 TOTAL
                     EDM=   .47E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10016E-03    250.00        .27332E-03** at limit **
   2  Index         2.5431        8.7111        .55956E-04    .10063E-04
   3  Normalizat    .55077        .74404E-01    .52597E-05   -.56808E-07
   4  Prefactor     1.2726        .52294E-01    .15248E-05    .16209E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1808.354     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      435 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1363.5        .20022E-03** at limit **
   2  Index         2.2297        6.0351        .50000       -.78165E-07
   3  Normalizat    .55078        .33637        .18011E-04    .30929E-05
   4  Prefactor     1.2726        .23702        .85569E-05    .17803E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22968
  Normalizat = 0.55078
  Prefactor  = 1.27262
 **********
 **   18 **HESSE 
 **********

 FCN=   1808.354     FROM HESSE     STATUS=OK            29 CALLS      464 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5951        .40045E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2297        5.4039        .50000       -.58724    
   3  Normalizat    .55078        .50888        .36023E-05   -1.1012    
   4  Prefactor     1.2726        .35999        .17114E-05   -.84125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49719e-11
Minuit parameter uncertainties:
  1  6.91881e-05
  2  190.383
  3  0.513284
  4  0.360691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/646896': 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) = 1808.35372034
delta logL = 6.07396486885e-07

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  6.919e-05  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.230e+00  1.904e+02  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  6.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.273e+00  3.607e-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:  5.508e-01  5.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 169.575 -4.254

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/646896/cmap_HighResolution_634608001_634867201_4FGL_J1118.2-0415_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-02', job_status='DONE', photon_flux_upper_limit='2.79e-07', time_completed='2021-09-03 15:05:55.486551', job_id='646896', GAL2='1.27', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1630706755.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='6.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1525' AND source_name='4FGL J1118.2-0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 15:05:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 646896: <4FGL_J1118.2-0415_daily_bin1525> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1118.2-0415_daily_bin1525 169.575 -4.2539 634608001 634867201 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 :                                   440.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             212.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            847 sec.

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

