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


Performing analysis on: 4FGL_J1118.2-4634_daily_bin1358
RA = 169.558, Dec = -46.5795
tmin = 591321601, tmax = 591580801
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='656901', job_status='RUN', time_executed='2021-09-03 15:28:48.981886', time_epoch_executed='1630708128.98' WHERE source_name='4FGL J1118.2-4634' and cadence='daily' and bin_id='1358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/656901

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/656901/ft1_4FGL_J1118.2-4634_daily_bin1358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/656901/ft2_4FGL_J1118.2-4634_daily_bin1358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/656901/ft1_4FGL_J1118.2-4634_daily_bin1358.fits outfile=/scratch/kocevski/656901/ft1_filteredMKT_4FGL_J1118.2-4634_daily_bin1358.fits ra=169.558 dec=-46.5795 rad=12.0 tmin=591321601.0 tmax=591580801.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 2.53
user 2.29
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/656901/ft2_4FGL_J1118.2-4634_daily_bin1358.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/656901/ft2_4FGL_J1118.2-4634_daily_bin1358.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/656901/ft1_filteredMKT_4FGL_J1118.2-4634_daily_bin1358.fits evtable="EVENTS" outfile="/scratch/kocevski/656901/ft1_filtered_4FGL_J1118.2-4634_daily_bin1358.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.46
user 0.29
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/656901/ft1_filtered_4FGL_J1118.2-4634_daily_bin1358.fits" evtable="EVENTS" scfile=/scratch/kocevski/656901/ft2_4FGL_J1118.2-4634_daily_bin1358.fits sctable="SC_DATA" outfile=/scratch/kocevski/656901/ltcube_591321601_591580801_4FGL_J1118.2-4634_daily_bin1358.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/656901/ft2_4FGL_J1118.2-4634_daily_bin1358.fits
.....................!
real 15.69
user 15.32
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/656901/ft1_filtered_4FGL_J1118.2-4634_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/656901/ft2_4FGL_J1118.2-4634_daily_bin1358.fits sctable="SC_DATA" expcube=/scratch/kocevski/656901/ltcube_591321601_591580801_4FGL_J1118.2-4634_daily_bin1358.fits outfile=/scratch/kocevski/656901/expmap_591321601_591580801_4FGL_J1118.2-4634_daily_bin1358.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/656901/ltcube_591321601_591580801_4FGL_J1118.2-4634_daily_bin1358.fits
.....................!
real 158.28
user 153.77
sys 4.17

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
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source Westerlund 2 in ROI with RadialDisk spatial model.
Extended source FGES J1036.3-5833 in ROI with RadialDisk spatial model.
Extended source FGES J1109.4-6115 in ROI with RadialDisk spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Added 249 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1118.2-4634 @ 169.558 -46.5795

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/656901/ft1_filtered_4FGL_J1118.2-4634_daily_bin1358.fits scfile=/scratch/kocevski/656901/ft2_4FGL_J1118.2-4634_daily_bin1358.fits outfile=/scratch/kocevski/656901/cmap_591321601_591580801_4FGL_J1118.2-4634_daily_bin1358.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.558 yref=-46.5795 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.50
user 0.33
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/656901/ft1_filtered_4FGL_J1118.2-4634_daily_bin1358.fits scfile=/scratch/kocevski/656901/ft2_4FGL_J1118.2-4634_daily_bin1358.fits outfile=/scratch/kocevski/656901/cmap_HighResolution_591321601_591580801_4FGL_J1118.2-4634_daily_bin1358.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.558 yref=-46.5795 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.52
user 0.34
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/656901/ft1_filtered_4FGL_J1118.2-4634_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/656901/ft2_4FGL_J1118.2-4634_daily_bin1358.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/656901/Model_4FGL_J1118.2-4634_daily_bin1358.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 FGES J1036.3-5833
adding source FGES J1109.4-6115
adding source FGES J1213.3-6240
adding source G296.5+10.0
adding source GAL_V02
adding source Westerlund 2
Working on...
/scratch/kocevski/656901/ft1_filtered_4FGL_J1118.2-4634_daily_bin1358.fits.....................!
real 45.14
user 43.86
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/656901/ft1_filtered_4FGL_J1118.2-4634_daily_bin1358.fits', '/scratch/kocevski/656901/ft2_4FGL_J1118.2-4634_daily_bin1358.fits', expMap='/scratch/kocevski/656901/expmap_591321601_591580801_4FGL_J1118.2-4634_daily_bin1358.fits', expCube='/scratch/kocevski/656901/ltcube_591321601_591580801_4FGL_J1118.2-4634_daily_bin1358.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/656901/Model_4FGL_J1118.2-4634_daily_bin1358.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1118.2-4634'

4FGL J1118.2-4634
   Spectrum: LogParabola
429         norm:  3.356e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
430        alpha:  2.666e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
431         beta:  4.085e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
432           Eb:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/656901/ft1_filtered_4FGL_J1118.2-4634_daily_bin1358.fits
Spacecraft file(s): /scratch/kocevski/656901/ft2_4FGL_J1118.2-4634_daily_bin1358.fits
Exposure map: /scratch/kocevski/656901/expmap_591321601_591580801_4FGL_J1118.2-4634_daily_bin1358.fits
Exposure cube: /scratch/kocevski/656901/ltcube_591321601_591580801_4FGL_J1118.2-4634_daily_bin1358.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/656901/Model_4FGL_J1118.2-4634_daily_bin1358.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) = 3022.26367229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10842E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14933E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    278.13       1.0000         .10000E-03   10000.    
    11 'norm      '    .10378E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11531E-03   1.0000         .10000E-03   10000.    
    13 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29558E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .50619       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .71926       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3016.125     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1974 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9259        .14024E-06** at limit **
   2  norm          .10000E-03    12.526        .13805E-05** at limit **
   3  Prefactor     .10000E-03    21.655        .18050E-04** at limit **
   4  norm          .10000E-03    1.8322        .12723E-07** at limit **
   5  Prefactor     .10000E-03    12.736       -.16697E-05** at limit **
   6  norm          .10000E-03    5.5989        .10938E-06** at limit **
   7  Prefactor     .10000E-03    14.915        .66810E-06** at limit **
   8  norm          .10000E-03    29.694       -.54075E-06** at limit **
   9  Prefactor     .10000E-03    151.67       -.78438E-04** at limit **
  10  Prefactor     278.17        283.87        .23356E-04    .31458E-05
  11  norm          .10000E-03    167.13        .81236E-04** at limit **
  12  Prefactor     .10000E-03    348.53        .17527E-03** at limit **
  13  norm         10000.0        619.92        .12518E-03** at limit **
  14  Prefactor     10000.        924.62        .79845E-03** at limit **
  15  Prefactor     .10000E-03    304.19        .46163E-04** at limit **
  16  Prefactor     .10000E-03    21.052       -.17691E-04** at limit **
  17  Normalizat    .50560        .57003       -.73718E-05   -.51902E-04
  18  Prefactor     .71938        .10425        .41650E-06   -.36494E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 278.173
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.505598
  Prefactor  = 0.719378
 **********
 **   18 **HESSE 
 **********

 FCN=   3016.125     FROM HESSE     STATUS=OK           232 CALLS     2206 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9271        .10628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.8339        .72599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.8034        .25356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    29.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    151.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     278.17        282.12        .12163E-03   -1.2357    
  11  norm          .10000E-03    167.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    348.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm         10000.0        620.01        .19741E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10000.        924.51        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    307.61        .21396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .50560        .52986        .81065E-03   -1.1216    
  18  Prefactor     .71938        .97656E-01    .12485E-03   -1.0277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48526e-10
Minuit parameter uncertainties:
  1  2.55544e-06
  2  4.03342e-06
  3  2.97317e-05
  4  3.07132e-06
  5  8.77568e-06
  6  1.36845e-05
  7  1.20245e-05
  8  4.73334e-07
  9  8.35164e-06
  10  283.518
  11  6.94085e-06
  12  2.15803e-05
  13  8.532e-05
  14  1.09923e-05
  15  0.000983654
  16  6.96914e-05
  17  0.535273
  18  0.0976789
Done.

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

Extracting fit parameters...

4FGL J1118.2-4634
   Spectrum: LogParabola
429         norm:  1.000e-04  4.733e-07  1.000e-04  1.000e+04 ( 1.000e-13)
430        alpha:  2.666e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
431         beta:  4.085e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
432           Eb:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
896    Prefactor:  7.194e-01  9.768e-02  0.000e+00  1.000e+01 ( 1.000e+00)
897        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
898        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
881   Normalization:  5.056e-01  5.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 169.558 -46.580
Photon Flux Upper Limit: 2.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/656901/likelihoodResults_591321601_591580801_4FGL_J1118.2-4634_daily_bin1358.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) = 3016.12550839
delta logL = -0.000159115834776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3016.12535294
delta logL = -3.66355288861e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9566       1.0000          .0000       5.0000    
     3 'Normalizat'    .50560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71938       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9020E+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=   3016.125     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      283 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    1903.4        .16647E-01** at limit **
   2  alpha         1.2679        3.5752        .20000        .13529E-07
   3  Normalizat    .50560        .91708E-01    .81065E-03   -.75639E-04
   4  Prefactor     .71938        .16899E-01    .12485E-03   -.43201E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100037
  alpha      = 1.26789
  Normalizat = 0.505601
  Prefactor  = 0.719377
 **********
 **   18 **HESSE 
 **********

 FCN=   3016.125     FROM HESSE     STATUS=OK            23 CALLS      306 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    57.647        .33294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2679        4.0460        .80000E-02   -.51536    
   3  Normalizat    .50560        .52453        .32426E-04   -1.1216    
   4  Prefactor     .71938        .97573E-01    .24970E-04   -1.0277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95296e-10
Minuit parameter uncertainties:
  1  0.00291008
  2  1155.63
  3  0.52978
  4  0.0975961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/656901': 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) = 3016.12534849
delta logL = 7.85971678852e-07

Extracting fit parameters...

4FGL J1118.2-4634
   Spectrum: LogParabola
429         norm:  1.000e-04  2.910e-03  1.000e-04  1.000e+04 ( 1.000e-13)
430        alpha:  1.268e+00  1.156e+03  0.000e+00  5.000e+00 ( 1.000e+00)
431         beta:  4.085e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
432           Eb:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
896    Prefactor:  7.194e-01  9.760e-02  0.000e+00  1.000e+01 ( 1.000e+00)
897        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
898        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
881   Normalization:  5.056e-01  5.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 169.558 -46.580

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/656901/cmap_HighResolution_591321601_591580801_4FGL_J1118.2-4634_daily_bin1358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.58e-05', job_status='DONE', photon_flux_upper_limit='2.23e-07', time_completed='2021-09-03 15:37:35.453208', job_id='656901', GAL2='0.72', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1630708655.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='7.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1358' AND source_name='4FGL J1118.2-4634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 15:37:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 656901: <4FGL_J1118.2-4634_daily_bin1358> in cluster <slac> Done

Job <4FGL_J1118.2-4634_daily_bin1358> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 15:26:21 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 15:27:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 15:27:23 2021
Terminated at Fri Sep  3 15:37:36 2021
Results reported at Fri Sep  3 15:37:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1118.2-4634_daily_bin1358 169.558 -46.5795 591321601 591580801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1118.2-4634 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   473.44 sec.
    Max Memory :                                 1053 MB
    Average Memory :                             302.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            675 sec.

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

