/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 152 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 = 7409
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1118.2-0415_daily_bin326
RA = 169.575, Dec = -4.2539
tmin = 323827201, tmax = 324086401
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='641740', job_status='RUN', time_executed='2021-09-03 14:38:46.841204', time_epoch_executed='1630705126.84' WHERE source_name='4FGL J1118.2-0415' and cadence='daily' and bin_id='326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641740

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641740/ft1_4FGL_J1118.2-0415_daily_bin326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641740/ft2_4FGL_J1118.2-0415_daily_bin326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641740/ft1_4FGL_J1118.2-0415_daily_bin326.fits outfile=/scratch/kocevski/641740/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin326.fits ra=169.575 dec=-4.2539 rad=12.0 tmin=323827201.0 tmax=324086401.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.42
user 3.15
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641740/ft2_4FGL_J1118.2-0415_daily_bin326.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/641740/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin326.fits evtable="EVENTS" outfile="/scratch/kocevski/641740/ft1_filtered_4FGL_J1118.2-0415_daily_bin326.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.56
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641740/ft1_filtered_4FGL_J1118.2-0415_daily_bin326.fits" evtable="EVENTS" scfile=/scratch/kocevski/641740/ft2_4FGL_J1118.2-0415_daily_bin326.fits sctable="SC_DATA" outfile=/scratch/kocevski/641740/ltcube_323827201_324086401_4FGL_J1118.2-0415_daily_bin326.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/641740/ft2_4FGL_J1118.2-0415_daily_bin326.fits
.....................!
real 16.48
user 16.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641740/ft1_filtered_4FGL_J1118.2-0415_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/641740/ft2_4FGL_J1118.2-0415_daily_bin326.fits sctable="SC_DATA" expcube=/scratch/kocevski/641740/ltcube_323827201_324086401_4FGL_J1118.2-0415_daily_bin326.fits outfile=/scratch/kocevski/641740/expmap_323827201_324086401_4FGL_J1118.2-0415_daily_bin326.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/641740/ltcube_323827201_324086401_4FGL_J1118.2-0415_daily_bin326.fits
.....................!
real 192.95
user 187.44
sys 5.01

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/641740/ft1_filtered_4FGL_J1118.2-0415_daily_bin326.fits scfile=/scratch/kocevski/641740/ft2_4FGL_J1118.2-0415_daily_bin326.fits outfile=/scratch/kocevski/641740/cmap_323827201_324086401_4FGL_J1118.2-0415_daily_bin326.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.65
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641740/ft1_filtered_4FGL_J1118.2-0415_daily_bin326.fits scfile=/scratch/kocevski/641740/ft2_4FGL_J1118.2-0415_daily_bin326.fits outfile=/scratch/kocevski/641740/cmap_HighResolution_323827201_324086401_4FGL_J1118.2-0415_daily_bin326.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.72
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641740/ft1_filtered_4FGL_J1118.2-0415_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/641740/ft2_4FGL_J1118.2-0415_daily_bin326.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641740/Model_4FGL_J1118.2-0415_daily_bin326.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/641740/ft1_filtered_4FGL_J1118.2-0415_daily_bin326.fits.....................!
real 48.85
user 46.59
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6953       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1592       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1610       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8833       1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.215       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.168       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5988       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    74.337       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .56212E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .62866       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0880       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=   4791.030     FROM MIGRAD    STATUS=CONVERGED    980 CALLS     3595 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6956        7.3090        .12870E-03    .31183E-04
   2  norm          3.1593        1.0239        .31250E-04    .10732E-03
   3  norm          1.1612        4.7492        .29412E-03   -.36992E-04
   4  Prefactor     1.8795        16.024        .30331E-03    .20315E-04
   5  Prefactor     45.209        21.062        .59625E-04    .11310E-03
   6  Prefactor     .10000E-03    11.043        .18142E-02** at limit **
   7  Prefactor     .10000E-03    1.4434        .81059E-03** at limit **
   8  Prefactor     .10000E-03    19.363        .18142E-02** at limit **
   9  norm          .10000E-03    4.1041        .13670E-02** at limit **
  10  Prefactor     .10000E-03    2.2114        .99875E-03** at limit **
  11  Prefactor     .10000E-03    45.776        .32406E-02** at limit **
  12  norm          18.163        18.879        .93965E-04   -.32062E-04
  13  Prefactor     3.5987        2.5384        .88150E-04    .56876E-04
  14  Prefactor     .10000E-03    6.4292        .17137E-02** at limit **
  15  Prefactor     .10000E-03    17.627        .18142E-02** at limit **
  16  norm          .10000E-03    4.1952        .13764E-02** at limit **
  17  Prefactor     .10000E-03    3.3236        .24291E-03** at limit **
  18  Prefactor     .10000E-03    16.663        .18142E-02** at limit **
  19  Prefactor     .10000E-03    8.6927        .18142E-02** at limit **
  20  Prefactor     74.183        87.569        .46568E-04   -.10898E-03
  21  Prefactor     .10000E-03    9.3461        .18142E-02** at limit **
  22  Prefactor     .10001E-03    155.60        .18238    ** at limit **
  23  Normalizat    .62867        .25347        .32828E-03    .13617E-03
  24  Prefactor     1.0880        .19032        .19530E-03    .12116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.6956
  norm       = 3.15932
  norm       = 1.16122
  Prefactor  = 1.87954
  Prefactor  = 45.209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.1631
  Prefactor  = 3.59875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.1832
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Normalizat = 0.628669
  Prefactor  = 1.08805
 **********
 **   18 **HESSE 
 **********

 FCN=   4791.030     FROM HESSE     STATUS=OK           383 CALLS     3978 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6956        7.3089        .51479E-05   -1.5085    
   2  norm          3.1593        1.0221        .12500E-05   -1.5352    
   3  norm          1.1612        4.7485        .11765E-04   -1.5492    
   4  Prefactor     1.8795        15.964        .12132E-04   -1.5434    
   5  Prefactor     45.209        21.061        .11925E-04   -1.4362    
   6  Prefactor     .10000E-03    11.045        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.4434        .16212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.363        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.1044        .27339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2117        .19975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    46.435        .64812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.163        18.882        .37586E-05   -1.4855    
  13  Prefactor     3.5987        2.5384        .35260E-05   -1.5329    
  14  Prefactor     .10000E-03    6.4294        .34274E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.628        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.1962        .27529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3237        .48582E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.6930        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     74.183        88.359        .93136E-05   -1.3983    
  21  Prefactor     .10000E-03    9.3467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    172.80        .17239       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .62867        .25363        .13131E-04   -1.0678    
  24  Prefactor     1.0880        .19046        .39061E-04   -.89850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5021e-10
Minuit parameter uncertainties:
  1  7.30957
  2  1.02211
  3  4.69686
  4  10.9592
  5  21.0644
  6  2.93783e-06
  7  2.07857e-06
  8  3.81406e-05
  9  4.75368e-06
  10  3.18036e-06
  11  9.19571e-05
  12  18.8879
  13  2.53844
  14  2.77276e-06
  15  0.000118962
  16  6.75854e-08
  17  1.29426e-06
  18  8.89212e-05
  19  2.14877e-06
  20  88.5155
  21  6.12427e-06
  22  0.00272567
  23  0.254101
  24  0.190576
Done.

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

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  2.079e-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.088e+00  1.906e-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:  6.287e-01  2.541e-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: 7.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/641740/likelihoodResults_323827201_324086401_4FGL_J1118.2-0415_daily_bin326.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) = 4791.03318192
delta logL = -0.00321168304799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4791.02997012
delta logL = 1.20710865303e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6287       1.0000          .0000       10.000    
     3 'Normalizat'    .62867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0881       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=   4791.030     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      245 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.586        .81403E-02** at limit **
   2  Index         2.1185        8.9373        .50000        .37983E-06
   3  Normalizat    .62867        .20577E-01    .32828E-03   -.16744E-03
   4  Prefactor     1.0880        .15866E-01    .19530E-03   -.26281E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.11853
  Normalizat = 0.628667
  Prefactor  = 1.08805
 **********
 **   18 **HESSE 
 **********

 FCN=   4791.030     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    221.76        .86282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1185        6.0580        .50000       -.61419    
   3  Normalizat    .62867        .75836E-01    .13131E-04   -1.0678    
   4  Prefactor     1.0880        .58476E-01    .39061E-04   -.89850    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2528e-07
Minuit parameter uncertainties:
  1  0.00149744
  2  1133.71
  3  0.0758483
  4  0.0584792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641740': 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) = 4791.02996626
delta logL = 3.9740016291e-06

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.497e-03  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.119e+00  1.134e+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.088e+00  5.848e-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:  6.287e-01  7.585e-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/641740/cmap_HighResolution_323827201_324086401_4FGL_J1118.2-0415_daily_bin326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-03', job_status='DONE', photon_flux_upper_limit='7.19e-08', time_completed='2021-09-03 14:50:21.934483', job_id='641740', GAL2='1.09', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1630705821.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.97e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='326' AND source_name='4FGL J1118.2-0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:50:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 641740: <4FGL_J1118.2-0415_daily_bin326> in cluster <slac> Done

Job <4FGL_J1118.2-0415_daily_bin326> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep  3 14:36:00 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:36:06 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:36:06 2021
Terminated at Fri Sep  3 14:50:22 2021
Results reported at Fri Sep  3 14:50:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1118.2-0415_daily_bin326 169.575 -4.2539 323827201 324086401 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 :                                   691.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            862 sec.

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

