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


Performing analysis on: 4FGL_J1118.2-0415_daily_bin550
RA = 169.575, Dec = -4.2539
tmin = 381888001, tmax = 382147201
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='642088', job_status='RUN', time_executed='2021-09-03 14:41:37.000339', time_epoch_executed='1630705297.0' WHERE source_name='4FGL J1118.2-0415' and cadence='daily' and bin_id='550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642088

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642088/ft1_4FGL_J1118.2-0415_daily_bin550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642088/ft2_4FGL_J1118.2-0415_daily_bin550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642088/ft1_4FGL_J1118.2-0415_daily_bin550.fits outfile=/scratch/kocevski/642088/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin550.fits ra=169.575 dec=-4.2539 rad=12.0 tmin=381888001.0 tmax=382147201.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 4.04
user 3.77
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642088/ft1_filtered_4FGL_J1118.2-0415_daily_bin550.fits" evtable="EVENTS" scfile=/scratch/kocevski/642088/ft2_4FGL_J1118.2-0415_daily_bin550.fits sctable="SC_DATA" outfile=/scratch/kocevski/642088/ltcube_381888001_382147201_4FGL_J1118.2-0415_daily_bin550.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/642088/ft2_4FGL_J1118.2-0415_daily_bin550.fits
.....................!
real 14.27
user 13.86
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642088/ft1_filtered_4FGL_J1118.2-0415_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/642088/ft2_4FGL_J1118.2-0415_daily_bin550.fits sctable="SC_DATA" expcube=/scratch/kocevski/642088/ltcube_381888001_382147201_4FGL_J1118.2-0415_daily_bin550.fits outfile=/scratch/kocevski/642088/expmap_381888001_382147201_4FGL_J1118.2-0415_daily_bin550.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/642088/ltcube_381888001_382147201_4FGL_J1118.2-0415_daily_bin550.fits
.....................!
real 158.23
user 153.29
sys 3.76

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/642088/ft1_filtered_4FGL_J1118.2-0415_daily_bin550.fits scfile=/scratch/kocevski/642088/ft2_4FGL_J1118.2-0415_daily_bin550.fits outfile=/scratch/kocevski/642088/cmap_381888001_382147201_4FGL_J1118.2-0415_daily_bin550.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.58
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642088/ft1_filtered_4FGL_J1118.2-0415_daily_bin550.fits scfile=/scratch/kocevski/642088/ft2_4FGL_J1118.2-0415_daily_bin550.fits outfile=/scratch/kocevski/642088/cmap_HighResolution_381888001_382147201_4FGL_J1118.2-0415_daily_bin550.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.59
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/642088/ft1_filtered_4FGL_J1118.2-0415_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/642088/ft2_4FGL_J1118.2-0415_daily_bin550.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/642088/Model_4FGL_J1118.2-0415_daily_bin550.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/642088/ft1_filtered_4FGL_J1118.2-0415_daily_bin550.fits.....................!
real 53.36
user 47.48
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .61771       1.0000         .10000E-03   10000.    
     3 'norm      '    31.434       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18239E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23954       1.0000         .10000E-03   10000.    
    12 'norm      '    6.0769       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1307       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.130       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.248       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.465       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.841       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3454       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73845       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=   5972.926     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2761 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.802        .75374E-07** at limit **
   2  norm          .61779        .50301        .10536E-06    .60029E-04
   3  norm          31.432        10.346        .79955E-07   -.67857E-04
   4  Prefactor     .10000E-03    12.054        .24785E-06** at limit **
   5  Prefactor     .10000E-03    7.0436        .28122E-07** at limit **
   6  Prefactor     .10000E-03    5.3998        .37672E-07** at limit **
   7  Prefactor     .10000E-03    1.8625        .29877E-07** at limit **
   8  Prefactor     .10000E-03    59.938       -.11919E-05** at limit **
   9  norm          .10000E-03    5.0222        .41709E-07** at limit **
  10  Prefactor     .10072E-03    3.2313        .79531E-06** at limit **
  11  Prefactor     .13830        7.6772        .10423E-05   -.24203E-03
  12  norm          6.0944        13.726        .39061E-06   -.18592E-03
  13  Prefactor     2.1298        2.3592        .30684E-06   -.80836E-04
  14  Prefactor     .10000E-03    13.415       -.14309E-06** at limit **
  15  Prefactor     31.171        38.097        .47133E-06    .17061E-04
  16  norm          .10000E-03    3.7067        .87482E-07** at limit **
  17  Prefactor     .10000E-03    1.4302        .26788E-07** at limit **
  18  Prefactor     .10000E-03    8.6002        .72380E-07** at limit **
  19  Prefactor     20.243        22.252        .24712E-06   -.15310E-04
  20  Prefactor     .10000E-03    19.435       -.34570E-07** at limit **
  21  Prefactor     18.455        22.057        .86133E-06   -.49657E-04
  22  Prefactor     18.817        46.536       -.17670E-05   -.21559E-04
  23  Normalizat    1.3457        .20287       -.10744E-05   -.34542E-03
  24  Prefactor     .73837        .14771       -.12188E-05   -.29933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.617791
  norm       = 31.4316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100719
  Prefactor  = 0.1383
  norm       = 6.09436
  Prefactor  = 2.12977
  Prefactor  = 0.0001
  Prefactor  = 31.1705
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2434
  Prefactor  = 0.0001
  Prefactor  = 18.455
  Prefactor  = 18.8172
  Normalizat = 1.34571
  Prefactor  = 0.738368
 **********
 **   18 **HESSE 
 **********

 FCN=   5972.926     FROM HESSE     STATUS=OK           411 CALLS     3172 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.228        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .61779        .49673        .47200E-04   -1.5551    
   3  norm          31.432        10.354        .71466E-04   -1.4586    
   4  Prefactor     .10000E-03    12.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.0625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4264        .17540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8752        .10298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    59.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.0642        .16910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10072E-03    9.2813        .38911E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .13830        4.1775        .11502       -1.5634    
  12  norm          6.0944        15.182        .16287E-03   -1.5214    
  13  Prefactor     2.1298        2.3449        .11931E-03   -1.5416    
  14  Prefactor     .10000E-03    13.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     31.171        39.052        .71813E-04   -1.4591    
  16  norm          .10000E-03    3.7577        .14535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.4411        .90247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.6859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.243        22.259        .89010E-04   -1.4808    
  20  Prefactor     .10000E-03    19.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.455        22.019        .93207E-04   -1.4849    
  22  Prefactor     18.817        46.465        .92273E-04   -1.4840    
  23  Normalizat    1.3457        .24501        .25389E-03   -.82212    
  24  Prefactor     .73837        .17312        .24093E-03   -1.0204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47051e-10
Minuit parameter uncertainties:
  1  4.00233e-05
  2  0.496732
  3  10.3549
  4  2.25869e-05
  5  9.36101e-06
  6  6.71709e-06
  7  2.39576e-06
  8  1.94848e-05
  9  4.72967e-06
  10  0.00516572
  11  1.51976
  12  15.1917
  13  2.34497
  14  3.7735e-06
  15  39.0843
  16  7.54048e-06
  17  2.69049e-06
  18  9.1628e-06
  19  22.2677
  20  1.17097e-05
  21  22.0282
  22  46.554
  23  0.245223
  24  0.173244
Done.

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

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  2.396e-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:  7.384e-01  1.732e-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.346e+00  2.452e-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: 8.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/642088/likelihoodResults_381888001_382147201_4FGL_J1118.2-0415_daily_bin550.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) = 5972.92875769
delta logL = -0.00252541754526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5972.92623226
delta logL = 1.34068613988e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6276       1.0000          .0000       10.000    
     3 'Normalizat'    1.3457       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73839       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=   5972.926     FROM MIGRAD    STATUS=FAILED        99 CALLS      250 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.162        .10349E-01** at limit **
   2  Index         2.1842        6.8390        .50000       -.25919E-05
   3  Normalizat    1.3457        .14767E-01    .25389E-03    .16803E-03
   4  Prefactor     .73837        .10779E-01    .24093E-03    .20285E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5972.926     FROM SIMPLEX   STATUS=UNCHANGED    166 CALLS      416 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.162        .21909E-03** at limit **
   2  Index         2.1842        6.8390        .22932E-05   -.25919E-05
   3  Normalizat    1.3457        .14767E-01    .12472E-07    .16803E-03
   4  Prefactor     .73837        .10779E-01    .10438E-07    .20285E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5972.926     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      493 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5244        .21813E-03** at limit **
   2  Index         2.1842        8.4714        .50000       -.25919E-05
   3  Normalizat    1.3457        .23237        .10156E-04    .16792E-03
   4  Prefactor     .73837        .16961        .19275E-05    .20290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1842
  Normalizat = 1.34571
  Prefactor  = 0.738368
 **********
 **   18 **HESSE 
 **********

 FCN=   5972.926     FROM HESSE     STATUS=OK            27 CALLS      520 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1669        .43626E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1842        8.8234        .50000       -.59820    
   3  Normalizat    1.3457        .22982        .20311E-05   -.82212    
   4  Prefactor     .73837        .16705        .38550E-06   -1.0204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73047e-09
Minuit parameter uncertainties:
  1  1.11286e-05
  2  95.9573
  3  0.229991
  4  0.167161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642088': 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) = 5972.92622943
delta logL = 2.84113320959e-06

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.113e-05  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.184e+00  9.596e+01  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.384e-01  1.672e-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.346e+00  2.300e-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/642088/cmap_HighResolution_381888001_382147201_4FGL_J1118.2-0415_daily_bin550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.33e-03', job_status='DONE', photon_flux_upper_limit='8.06e-08', time_completed='2021-09-03 14:51:52.899818', job_id='642088', GAL2='0.74', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630705912.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.84e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='550' AND source_name='4FGL J1118.2-0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:51:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 642088: <4FGL_J1118.2-0415_daily_bin550> in cluster <slac> Done

Job <4FGL_J1118.2-0415_daily_bin550> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep  3 14:36:31 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:38:21 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:38:21 2021
Terminated at Fri Sep  3 14:51:53 2021
Results reported at Fri Sep  3 14:51:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1118.2-0415_daily_bin550 169.575 -4.2539 381888001 382147201 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 :                                   597.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            922 sec.

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

