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


Performing analysis on: 4FGL_J1118.2-0415_daily_bin1115
RA = 169.575, Dec = -4.2539
tmin = 528336001, tmax = 528595201
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='645182', job_status='RUN', time_executed='2021-09-03 14:47:03.248473', time_epoch_executed='1630705623.25' WHERE source_name='4FGL J1118.2-0415' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/645182

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/645182/ft1_4FGL_J1118.2-0415_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/645182/ft2_4FGL_J1118.2-0415_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/645182/ft1_4FGL_J1118.2-0415_daily_bin1115.fits outfile=/scratch/kocevski/645182/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin1115.fits ra=169.575 dec=-4.2539 rad=12.0 tmin=528336001.0 tmax=528595201.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.52
user 3.29
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/645182/ft1_filtered_4FGL_J1118.2-0415_daily_bin1115.fits" evtable="EVENTS" scfile=/scratch/kocevski/645182/ft2_4FGL_J1118.2-0415_daily_bin1115.fits sctable="SC_DATA" outfile=/scratch/kocevski/645182/ltcube_528336001_528595201_4FGL_J1118.2-0415_daily_bin1115.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/645182/ft2_4FGL_J1118.2-0415_daily_bin1115.fits
.....................!
real 17.55
user 17.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/645182/ft1_filtered_4FGL_J1118.2-0415_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/645182/ft2_4FGL_J1118.2-0415_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/645182/ltcube_528336001_528595201_4FGL_J1118.2-0415_daily_bin1115.fits outfile=/scratch/kocevski/645182/expmap_528336001_528595201_4FGL_J1118.2-0415_daily_bin1115.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/645182/ltcube_528336001_528595201_4FGL_J1118.2-0415_daily_bin1115.fits
.....................!
real 191.51
user 187.17
sys 3.94

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/645182/ft1_filtered_4FGL_J1118.2-0415_daily_bin1115.fits scfile=/scratch/kocevski/645182/ft2_4FGL_J1118.2-0415_daily_bin1115.fits outfile=/scratch/kocevski/645182/cmap_528336001_528595201_4FGL_J1118.2-0415_daily_bin1115.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=169.575 yref=-4.2539 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/645182/ft1_filtered_4FGL_J1118.2-0415_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/645182/ft2_4FGL_J1118.2-0415_daily_bin1115.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/645182/Model_4FGL_J1118.2-0415_daily_bin1115.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/645182/ft1_filtered_4FGL_J1118.2-0415_daily_bin1115.fits.....................!
real 60.45
user 59.13
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10472E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23936E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7842       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.358       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7757       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      '    7.5525       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7239       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.397       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0515       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0755       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=   6554.109     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2722 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.730       -.74754E-05** at limit **
   2  norm          .10000E-03    .26177       -.20803E-07** at limit **
   3  norm          .10000E-03    1.6152       -.42964E-07** at limit **
   4  Prefactor     .10000E-03    7.2674        .20782E-05** at limit **
   5  Prefactor     .10024E-03    11.298       -.83499E-06** at limit **
   6  Prefactor     .10000E-03    7.8838        .10997E-05** at limit **
   7  Prefactor     1.7841        4.2012       -.76638E-06   -.80282E-03
   8  Prefactor     .10000E-03    33.339       -.19101E-05** at limit **
   9  norm          10.356        9.6296        .35280E-06    .23755E-04
  10  Prefactor     .10000E-03    2.3662       -.33177E-07** at limit **
  11  Prefactor     .10000E-03    5.8082       -.20575E-07** at limit **
  12  norm          .10000E-03    7.6366       -.33452E-05** at limit **
  13  Prefactor     2.7756        2.0409       -.32961E-07   -.89630E-04
  14  Prefactor     .10000E-03    19.575        .13932E-04** at limit **
  15  Prefactor     .10000E-03    31.693       -.14618E-04** at limit **
  16  norm          7.5530        6.4044       -.13634E-06   -.24347E-03
  17  Prefactor     .10000E-03    1.8704       -.39534E-07** at limit **
  18  Prefactor     8.7241        10.386       -.55461E-07   -.37968E-04
  19  Prefactor     .10000E-03    10.469        .74447E-06** at limit **
  20  Prefactor     .10000E-03    36.488        .32879E-04** at limit **
  21  Prefactor     40.397        21.070       -.78855E-06   -.66074E-04
  22  Prefactor     .10000E-03    30.991       -.19951E-04** at limit **
  23  Normalizat    1.0516        .20108        .82768E-06    .87803E-04
  24  Prefactor     1.0754        .14890       -.15397E-06    .11129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100244
  Prefactor  = 0.0001
  Prefactor  = 1.78408
  Prefactor  = 0.0001
  norm       = 10.3558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.77559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.55303
  Prefactor  = 0.0001
  Prefactor  = 8.72412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.3969
  Prefactor  = 0.0001
  Normalizat = 1.05163
  Prefactor  = 1.07537
 **********
 **   18 **HESSE 
 **********

 FCN=   6554.109     FROM HESSE     STATUS=OK           399 CALLS     3121 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.290        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .67974        .79792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.6173        .10047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10024E-03    14.773        .76185E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.9111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7841        4.1648        .23365E-03   -1.5441    
   8  Prefactor     .10000E-03    33.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.356        9.5617        .12450E-03   -1.5064    
  10  Prefactor     .10000E-03    2.3886        .12143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.8799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.6396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7756        2.0417        .95764E-04   -1.5375    
  14  Prefactor     .10000E-03    19.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.5530        6.3939        .14593E-03   -1.5158    
  17  Prefactor     .10000E-03    1.9078        .10794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.7241        10.383        .13571E-03   -1.5117    
  19  Prefactor     .10000E-03    10.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     40.397        21.079        .63067E-04   -1.4436    
  22  Prefactor     .10000E-03    30.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0516        .23719        .28735E-03   -.91320    
  24  Prefactor     1.0754        .17602        .21512E-03   -.90258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4121e-10
Minuit parameter uncertainties:
  1  9.14511e-05
  2  2.41018e-06
  3  3.79738e-07
  4  6.80711e-06
  5  0.00380145
  6  3.39288e-06
  7  4.16549
  8  1.72441e-06
  9  9.56312
  10  9.80636e-07
  11  7.0631e-07
  12  2.03903e-06
  13  2.04176
  14  2.40516e-05
  15  3.15879e-05
  16  6.39444
  17  2.62348e-08
  18  10.3849
  19  1.69734e-06
  20  6.90031e-06
  21  21.0833
  22  1.93305e-05
  23  0.237433
  24  0.17611
Done.

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

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.784e+00  4.165e+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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.075e+00  1.761e-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.052e+00  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 169.575 -4.254
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/645182/likelihoodResults_528336001_528595201_4FGL_J1118.2-0415_daily_bin1115.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) = 6554.08450537
delta logL = 0.0247933097071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6554.07625252
delta logL = 0.0330461673102

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2910       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1604       1.0000          .0000       10.000    
     3 'Normalizat'    1.0409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0806       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.

 FCN=   6554.076     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      222 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2811        39.028        .97430E-02    .98684E-03
   2  Index         3.1656        2.8586        .35538        .23967E-04
   3  Normalizat    1.0404        .29844E-01    .65263E-01    .81218E-05
   4  Prefactor     1.0810        .22554E-01    .38376E-01    .56319E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.28114
  Index      = 3.16563
  Normalizat = 1.04042
  Prefactor  = 1.08104
 **********
 **   18 **HESSE 
 **********

 FCN=   6554.076     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2811        4.8823        .17134E-03   -1.5482    
   2  Index         3.1656        2.6734        .90679E-02   -.37565    
   3  Normalizat    1.0404        .23848        .28869E-03   -.91688    
   4  Prefactor     1.0810        .17776        .21462E-03   -.90075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.297e-09
Minuit parameter uncertainties:
  1  4.88377
  2  2.84808
  3  0.238727
  4  0.177853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/645182': 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) = 6554.07624635
delta logL = 0.0330523315879

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.281e+00  4.884e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  3.166e+00  2.848e+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:  1.081e+00  1.779e-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.040e+00  2.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
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/645182/cmap_HighResolution_528336001_528595201_4FGL_J1118.2-0415_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.31e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-03 14:59:31.459320', job_id='645182', GAL2='1.08', fit_tolerance='1e-08', EG2='1.04', EG='1.05', time_epoch_completed='1630706371.46', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.31e-02', ts2='0.31', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1115' AND source_name='4FGL J1118.2-0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:59:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 645182: <4FGL_J1118.2-0415_daily_bin1115> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1118.2-0415_daily_bin1115 169.575 -4.2539 528336001 528595201 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 :                                   744.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            778 sec.

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

