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


Performing analysis on: 4FGL_J1118.2-0415_daily_bin998
RA = 169.575, Dec = -4.2539
tmin = 498009601, tmax = 498268801
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='643745', job_status='RUN', time_executed='2021-09-03 14:46:00.088773', time_epoch_executed='1630705560.09' WHERE source_name='4FGL J1118.2-0415' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/643745

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/643745/ft1_4FGL_J1118.2-0415_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/643745/ft2_4FGL_J1118.2-0415_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/643745/ft1_4FGL_J1118.2-0415_daily_bin998.fits outfile=/scratch/kocevski/643745/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin998.fits ra=169.575 dec=-4.2539 rad=12.0 tmin=498009601.0 tmax=498268801.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 6.56
user 6.25
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/643745/ft1_filtered_4FGL_J1118.2-0415_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/643745/ft2_4FGL_J1118.2-0415_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/643745/ltcube_498009601_498268801_4FGL_J1118.2-0415_daily_bin998.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/643745/ft2_4FGL_J1118.2-0415_daily_bin998.fits
.....................!
real 11.26
user 10.93
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/643745/ft1_filtered_4FGL_J1118.2-0415_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/643745/ft2_4FGL_J1118.2-0415_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/643745/ltcube_498009601_498268801_4FGL_J1118.2-0415_daily_bin998.fits outfile=/scratch/kocevski/643745/expmap_498009601_498268801_4FGL_J1118.2-0415_daily_bin998.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/643745/ltcube_498009601_498268801_4FGL_J1118.2-0415_daily_bin998.fits
.....................!
real 151.76
user 147.54
sys 3.90

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/643745/ft1_filtered_4FGL_J1118.2-0415_daily_bin998.fits scfile=/scratch/kocevski/643745/ft2_4FGL_J1118.2-0415_daily_bin998.fits outfile=/scratch/kocevski/643745/cmap_498009601_498268801_4FGL_J1118.2-0415_daily_bin998.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.47
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/643745/ft1_filtered_4FGL_J1118.2-0415_daily_bin998.fits scfile=/scratch/kocevski/643745/ft2_4FGL_J1118.2-0415_daily_bin998.fits outfile=/scratch/kocevski/643745/cmap_HighResolution_498009601_498268801_4FGL_J1118.2-0415_daily_bin998.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.47
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/643745/ft1_filtered_4FGL_J1118.2-0415_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/643745/ft2_4FGL_J1118.2-0415_daily_bin998.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/643745/Model_4FGL_J1118.2-0415_daily_bin998.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/643745/ft1_filtered_4FGL_J1118.2-0415_daily_bin998.fits.....................!
real 31.30
user 30.09
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10957E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.0691       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.743       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0318       1.0000         .10000E-03   10000.    
     8 'Prefactor '    212.49       1.0000         .10000E-03   10000.    
     9 'norm      '    .42803       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17911E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5050       1.0000         .10000E-03   10000.    
    12 'norm      '    14.893       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16430E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    47.035       1.0000         .10000E-03   10000.    
    16 'norm      '    13.629       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .62557E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9023       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7813       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.321       1.0000         .10000E-03   10000.    
    22 'Prefactor '    75.379       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3549       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75770       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=   3501.713     FROM MIGRAD    STATUS=FAILED       992 CALLS     3608 TOTAL
                     EDM=   .96E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    102.70        .34416E-02** at limit **
   2  norm          .10000E-03    1.0855        .89317E-03** at limit **
   3  norm          6.0697        7.3559        .16297E-03   -.26019E-04
   4  Prefactor     36.710        15.882        .66117E-04    .50381E-04
   5  Prefactor     .10053E-03    151.60        .53277E-02** at limit **
   6  Prefactor     .10000E-03    11.339        .18142E-02** at limit **
   7  Prefactor     4.0147        18.459        .20083E-03    .30937E-04
   8  Prefactor     212.53        122.36        .13868E-03   -.27740E-04
   9  norm          .49727        534.34        .44131E-02    .64974E-03
  10  Prefactor     .10000E-03    16.851        .36285E-03** at limit **
  11  Prefactor     3.5048        6.5491        .20227E-03   -.13489E-04
  12  norm          14.914        20.289        .10379E-03    .10187E-04
  13  Prefactor     .10000E-03    7.2864        .16382E-02** at limit **
  14  Prefactor     .10000E-03    77.230        .18142E-02** at limit **
  15  Prefactor     47.010        43.535        .29233E-03   -.22945E-04
  16  norm          13.630        11.836        .10850E-03   -.41966E-03
  17  Prefactor     .10000E-03    40.724        .22031E-02** at limit **
  18  Prefactor     2.8864        47.152        .23851E-03   -.44853E-04
  19  Prefactor     6.7717        21.428        .15408E-03   -.57183E-05
  20  Prefactor     .10000E-03    28.058        .18142E-02** at limit **
  21  Prefactor     12.326        23.550        .11412E-03   -.68239E-04
  22  Prefactor     75.396        73.855        .23124E-03   -.25172E-04
  23  Normalizat    1.3549        .31809        .26088E-03   -.24227E-03
  24  Prefactor     .75780        .22421        .24965E-03   -.16642E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3501.713     FROM SIMPLEX   STATUS=UNCHANGED   1154 CALLS     4762 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    102.70        .16313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0855        .13333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.0697        7.3559        .11473E-05   -1.5215    
   4  Prefactor     36.710        15.882        .10874E-05   -1.4495    
   5  Prefactor     .10053E-03    151.60        .53585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.339        .52572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0147        18.459        .11632E-05   -1.5307    
   8  Prefactor     212.53        122.36        .97254E-06   -1.2782    
   9  norm          .49727        534.34        .30987E-05   -1.5567    
  10  Prefactor     .10000E-03    16.851        .41882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5048        6.5491        .11619E-05   -1.5334    
  12  norm          14.914        20.289        .11423E-05   -1.4935    
  13  Prefactor     .10000E-03    7.2864        .19972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    77.230        .81815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     47.010        43.535        .11026E-05   -1.4336    
  16  norm          13.630        11.836        .11471E-05   -1.4969    
  17  Prefactor     .10000E-03    40.724        .42554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8864        47.152        .11665E-05   -1.5368    
  19  Prefactor     6.7717        21.428        .11488E-05   -1.5187    
  20  Prefactor     .10000E-03    28.058        .68487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.326        23.550        .11291E-05   -1.5006    
  22  Prefactor     75.396        73.855        .10600E-05   -1.3969    
  23  Normalizat    1.3549        .31809        .62830E-06   -.81942    
  24  Prefactor     .75780        .22421        .76890E-06   -1.0130    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3501.713     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     5140 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    104.66        .68832E-03** at limit **
   2  norm          .10000E-03    1.0865        .17863E-03** at limit **
   3  norm          6.0697        7.3558        .65190E-05   -.10987E-04
   4  Prefactor     36.710        15.857        .26447E-05   -.17625E-04
   5  Prefactor     .10000E-03    155.36        .21311E-03** at limit **
   6  Prefactor     .10000E-03    11.341        .36285E-03** at limit **
   7  Prefactor     4.0146        13.002        .80331E-05   -.80527E-04
   8  Prefactor     212.53        121.80        .27737E-04   -.29798E-04
   9  norm          .49740        307.00        .88262E-03   -.67108E-05
  10  Prefactor     .10000E-03    16.851        .72569E-04** at limit **
  11  Prefactor     3.5048        6.5491        .80908E-05   -.37938E-05
  12  norm          14.914        20.249        .41515E-05   -.46554E-05
  13  Prefactor     .10000E-03    7.3165        .32764E-03** at limit **
  14  Prefactor     .10000E-03    77.257        .36285E-03** at limit **
  15  Prefactor     47.010        43.534        .11693E-04   -.12639E-05
  16  norm          13.630        11.807        .43399E-05   -.13098E-04
  17  Prefactor     .10000E-03    40.948        .44061E-03** at limit **
  18  Prefactor     2.8865        47.122        .95405E-05   -.13108E-05
  19  Prefactor     6.7717        21.428        .61632E-05   -.36892E-06
  20  Prefactor     .10000E-03    28.058        .36285E-03** at limit **
  21  Prefactor     12.326        23.547        .45649E-05   -.24905E-05
  22  Prefactor     75.396        73.851        .92495E-05   -.61456E-06
  23  Normalizat    1.3549        .31820        .52175E-04   -.65194E-04
  24  Prefactor     .75780        .22435        .99858E-05   -.58973E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.06971
  Prefactor  = 36.71
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.01461
  Prefactor  = 212.531
  norm       = 0.497399
  Prefactor  = 0.0001
  Prefactor  = 3.5048
  norm       = 14.9139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.0097
  norm       = 13.6301
  Prefactor  = 0.0001
  Prefactor  = 2.88647
  Prefactor  = 6.77168
  Prefactor  = 0.0001
  Prefactor  = 12.3263
  Prefactor  = 75.3963
  Normalizat = 1.35491
  Prefactor  = 0.757803
 **********
 **   18 **HESSE 
 **********

 FCN=   3501.713     FROM HESSE     STATUS=OK           375 CALLS     5515 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    104.74        .13766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0865        .35727E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.0697        7.3562        .13038E-05   -1.5215    
   4  Prefactor     36.710        15.840        .52893E-06   -1.4495    
   5  Prefactor     .10000E-03    155.37        .42621E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.341        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0146        12.370        .16066E-05   -1.5307    
   8  Prefactor     212.53        121.73        .55474E-05   -1.2782    
   9  norm          .49740        277.01        .35305E-04   -1.5567    
  10  Prefactor     .10000E-03    16.851        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5048        6.5497        .16182E-05   -1.5334    
  12  norm          14.914        20.251        .83029E-06   -1.4935    
  13  Prefactor     .10000E-03    7.3178        .65528E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    77.258        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     47.010        43.541        .23386E-05   -1.4336    
  16  norm          13.630        11.807        .86797E-06   -1.4969    
  17  Prefactor     .10000E-03    40.957        .88122E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8865        47.188        .19081E-05   -1.5368    
  19  Prefactor     6.7717        21.415        .12326E-05   -1.5187    
  20  Prefactor     .10000E-03    28.058        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.326        23.537        .91297E-06   -1.5006    
  22  Prefactor     75.396        73.878        .18499E-05   -1.3969    
  23  Normalizat    1.3549        .31827        .10435E-04   -.81942    
  24  Prefactor     .75780        .22439        .19972E-05   -1.0130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47741e-11
Minuit parameter uncertainties:
  1  0.000113181
  2  1.25037e-07
  3  7.35733
  4  15.8414
  5  0.000577049
  6  2.47658e-06
  7  12.3783
  8  121.874
  9  23.5842
  10  1.6013e-06
  11  6.55104
  12  20.2606
  13  2.46067e-06
  14  1.66292e-05
  15  43.5706
  16  11.8094
  17  9.15355e-05
  18  23.3628
  19  21.439
  20  1.19528e-06
  21  23.555
  22  73.9676
  23  0.318736
  24  0.224661
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  7.578e-01  2.247e-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.355e+00  3.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/643745/likelihoodResults_498009601_498268801_4FGL_J1118.2-0415_daily_bin998.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) = 3501.60331171
delta logL = 0.109281458328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3501.59940947
delta logL = 0.113183693159

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5855       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2631       1.0000          .0000       10.000    
     3 'Normalizat'    1.3307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76871       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=   3501.599     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      296 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5868        7.3760        .13016E-03   -.18417E-03
   2  Index         3.2633        1.6415        .82007E-02    .23198E-03
   3  Normalizat    1.3306        .30758        .26279E-03    .36491E-04
   4  Prefactor     .76866        .22276        .24799E-03   -.72066E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.58684
  Index      = 3.26329
  Normalizat = 1.3306
  Prefactor  = 0.768657
 **********
 **   18 **HESSE 
 **********

 FCN=   3501.599     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5868        6.1914        .52062E-05   -1.5386    
   2  Index         3.2633        1.3853        .16401E-02   -.35473    
   3  Normalizat    1.3306        .30804        .10511E-04   -.82657    
   4  Prefactor     .76866        .22285        .99196E-05   -1.0089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12985e-10
Minuit parameter uncertainties:
  1  6.19297
  2  1.40631
  3  0.308463
  4  0.223113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/643745': 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) = 3501.59940873
delta logL = 0.113184435059

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  7.687e-01  2.231e-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.331e+00  3.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
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/643745/cmap_HighResolution_498009601_498268801_4FGL_J1118.2-0415_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-02', job_status='DONE', photon_flux_upper_limit='2.07e-07', time_completed='2021-09-03 14:55:27.153206', job_id='643745', GAL2='0.77', fit_tolerance='1e-08', EG2='1.33', EG='1.35', time_epoch_completed='1630706127.15', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.13e-01', ts2='0.54', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='998' AND source_name='4FGL J1118.2-0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:55:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 643745: <4FGL_J1118.2-0415_daily_bin998> in cluster <slac> Done

Job <4FGL_J1118.2-0415_daily_bin998> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 14:41:38 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:42:27 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:42:27 2021
Terminated at Fri Sep  3 14:55:27 2021
Results reported at Fri Sep  3 14:55:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1118.2-0415_daily_bin998 169.575 -4.2539 498009601 498268801 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 :                                   561.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             247.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            829 sec.

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

