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


Performing analysis on: 4FGL_J1118.2-4634_daily_bin1189
RA = 169.558, Dec = -46.5795
tmin = 547516801, tmax = 547776001
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='655273', job_status='RUN', time_executed='2021-09-03 15:22:37.786161', time_epoch_executed='1630707757.79' WHERE source_name='4FGL J1118.2-4634' and cadence='daily' and bin_id='1189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/655273

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/655273/ft1_4FGL_J1118.2-4634_daily_bin1189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/655273/ft2_4FGL_J1118.2-4634_daily_bin1189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/655273/ft1_4FGL_J1118.2-4634_daily_bin1189.fits outfile=/scratch/kocevski/655273/ft1_filteredMKT_4FGL_J1118.2-4634_daily_bin1189.fits ra=169.558 dec=-46.5795 rad=12.0 tmin=547516801.0 tmax=547776001.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.59
user 3.30
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/655273/ft2_4FGL_J1118.2-4634_daily_bin1189.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/655273/ft1_filteredMKT_4FGL_J1118.2-4634_daily_bin1189.fits evtable="EVENTS" outfile="/scratch/kocevski/655273/ft1_filtered_4FGL_J1118.2-4634_daily_bin1189.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.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/655273/ft1_filtered_4FGL_J1118.2-4634_daily_bin1189.fits" evtable="EVENTS" scfile=/scratch/kocevski/655273/ft2_4FGL_J1118.2-4634_daily_bin1189.fits sctable="SC_DATA" outfile=/scratch/kocevski/655273/ltcube_547516801_547776001_4FGL_J1118.2-4634_daily_bin1189.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/655273/ft2_4FGL_J1118.2-4634_daily_bin1189.fits
.....................!
real 16.74
user 16.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/655273/ft1_filtered_4FGL_J1118.2-4634_daily_bin1189.fits evtable="EVENTS" scfile=/scratch/kocevski/655273/ft2_4FGL_J1118.2-4634_daily_bin1189.fits sctable="SC_DATA" expcube=/scratch/kocevski/655273/ltcube_547516801_547776001_4FGL_J1118.2-4634_daily_bin1189.fits outfile=/scratch/kocevski/655273/expmap_547516801_547776001_4FGL_J1118.2-4634_daily_bin1189.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/655273/ltcube_547516801_547776001_4FGL_J1118.2-4634_daily_bin1189.fits
.....................!
real 194.49
user 186.74
sys 5.26

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/655273/ft1_filtered_4FGL_J1118.2-4634_daily_bin1189.fits scfile=/scratch/kocevski/655273/ft2_4FGL_J1118.2-4634_daily_bin1189.fits outfile=/scratch/kocevski/655273/cmap_547516801_547776001_4FGL_J1118.2-4634_daily_bin1189.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.58
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/655273/ft1_filtered_4FGL_J1118.2-4634_daily_bin1189.fits scfile=/scratch/kocevski/655273/ft2_4FGL_J1118.2-4634_daily_bin1189.fits outfile=/scratch/kocevski/655273/cmap_HighResolution_547516801_547776001_4FGL_J1118.2-4634_daily_bin1189.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/655273/ft1_filtered_4FGL_J1118.2-4634_daily_bin1189.fits evtable="EVENTS" scfile=/scratch/kocevski/655273/ft2_4FGL_J1118.2-4634_daily_bin1189.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/655273/Model_4FGL_J1118.2-4634_daily_bin1189.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/655273/ft1_filtered_4FGL_J1118.2-4634_daily_bin1189.fits.......................!
real 19.33
user 17.18
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/655273/ft1_filtered_4FGL_J1118.2-4634_daily_bin1189.fits', '/scratch/kocevski/655273/ft2_4FGL_J1118.2-4634_daily_bin1189.fits', expMap='/scratch/kocevski/655273/expmap_547516801_547776001_4FGL_J1118.2-4634_daily_bin1189.fits', expCube='/scratch/kocevski/655273/ltcube_547516801_547776001_4FGL_J1118.2-4634_daily_bin1189.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/655273/Model_4FGL_J1118.2-4634_daily_bin1189.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/655273/ft1_filtered_4FGL_J1118.2-4634_daily_bin1189.fits
Spacecraft file(s): /scratch/kocevski/655273/ft2_4FGL_J1118.2-4634_daily_bin1189.fits
Exposure map: /scratch/kocevski/655273/expmap_547516801_547776001_4FGL_J1118.2-4634_daily_bin1189.fits
Exposure cube: /scratch/kocevski/655273/ltcube_547516801_547776001_4FGL_J1118.2-4634_daily_bin1189.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/655273/Model_4FGL_J1118.2-4634_daily_bin1189.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 590.666788702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 589.575785731

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16757E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.7334       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4179       1.0000         .10000E-03   10000.    
     4 'norm      '    2.6605       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27420       1.0000         .10000E-03   10000.    
     6 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .42457       1.0000         .10000E-03   10000.    
     8 'norm      '    .22225       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5226       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0570       1.0000         .10000E-03   10000.    
    11 'norm      '    182.20       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    14.868       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.484       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20854E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2364       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .58265       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   589.5715     FROM MIGRAD    STATUS=CONVERGED    156 CALLS      332 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    32.464       -.21000E-05** at limit **
   2  norm          9.7334        1.0013         .0000         .0000    
   3  Prefactor     5.4179        1.0043         .0000         .0000    
   4  norm          2.6605        1.0188         .0000         .0000    
   5  Prefactor     .10056E-03    1987.2       -.14131E-03** at limit **
   6  norm          .10000E-03    25.133       -.43324E-05** at limit **
   7  Prefactor     .10001E-03    282.55        .15462E-06** at limit **
   8  norm          .10000E-03    145.57       -.43433E-05** at limit **
   9  Prefactor     5.9069        428.11        .60446E-04    .21001E-03
  10  Prefactor     .29399E-03    704.09        .47425E-04** at limit **
  11  norm          186.02        206.85       -.88247E-05    .14710E-03
  12  Prefactor     .10000E-03    14.369        .96703E-06** at limit **
  13  norm          15.069        14.761        .52827E-06    .24767E-04
  14  Prefactor     7.6512        257.50        .12035E-04    .58138E-03
  15  Prefactor     .10001E-03    134.02        .82413E-05** at limit **
  16  Prefactor     .10000E-03    17.421       -.36046E-06** at limit **
  17  Normalizat    1.2533        1.0050       -.47517E-04    .14677E-04
  18  Prefactor     .58174        .33954        .80492E-05    .56700E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 9.73339
  Prefactor  = 5.41787
  norm       = 2.66049
  Prefactor  = 0.000100565
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 5.90691
  Prefactor  = 0.000293991
  norm       = 186.019
  Prefactor  = 0.0001
  norm       = 15.0689
  Prefactor  = 7.65117
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Normalizat = 1.2533
  Prefactor  = 0.581743
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   589.5715     FROM HESSE     STATUS=FAILED        15 CALLS      347 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    32.512        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          492.54        482.78         .0000       -1.5084    
   3  Prefactor     5.4179        1.0043         .0000       -1.5242    
   4  norm          2.6605        1.0188         .0000       -1.5382    
   5  Prefactor     .10056E-03    .26580       -.14131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .20571       -.43324E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    .30024        .15462E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .25395       -.43433E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.9069        1.1499        .60446E-04   -1.5222    
  10  Prefactor     .29399E-03    .12975        .47425E-04   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          186.02        1.0102       -.88247E-05   -1.2972    
  12  Prefactor     .10000E-03    .20571        .96703E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.069        1.0073        .52827E-06   -1.4931    
  14  Prefactor     7.6512        .72749        .12035E-04   -1.5155    
  15  Prefactor     .10001E-03    .20825        .82413E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .20571       -.36046E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2533        1.1014       -.47517E-04   -.84971    
  18  Prefactor     .58174        .92910        .80492E-05   -1.0836    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.24354e-10
Minuit parameter uncertainties:
  1  0.00018425
  2  1.00132
  3  1.00432
  4  1.01885
  5  0.000774737
  6  8.85702e-06
  7  7.75611e-05
  8  1.79655e-05
  9  1.1499
  10  0.010034
  11  1.01023
  12  1.93057e-07
  13  1.00731
  14  0.727492
  15  0.000104764
  16  1.50091e-06
  17  1.12302
  18  0.955413
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 589.571466086

Extracting fit parameters...

4FGL J1118.2-4634
   Spectrum: LogParabola
429         norm:  1.000e-04  1.797e-05  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:  5.817e-01  9.554e-01  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:  1.253e+00  1.123e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/655273/likelihoodResults_547516801_547776001_4FGL_J1118.2-4634_daily_bin1189.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) = 589.571498676
delta logL = -3.25902070699e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 589.571498663
delta logL = -3.25765386151e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96170E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6663       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58177       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.

 FCN=   589.5715     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      188 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    137.64        .90731E-02** at limit **
   2  alpha         2.6670        3.5884        .41267       -.22201E-07
   3  Normalizat    1.2533        .78358        .80510E-01    .72715E-04
   4  Prefactor     .58174        .26804        .40805E-01    .76126E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.66696
  Normalizat = 1.25332
  Prefactor  = 0.581739
 **********
 **   18 **HESSE 
 **********

 FCN=   589.5715     FROM HESSE     STATUS=OK            29 CALLS      217 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    137.48        .18146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6670        3.5879        .50000        .66835E-01
   3  Normalizat    1.2533        .91358        .35640E-03   -.84971    
   4  Prefactor     .58174        .31372        .16902E-03   -1.0836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62089e-10
Minuit parameter uncertainties:
  1  1.52737e-05
  2  2.49457
  3  0.925685
  4  0.314667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/655273': 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) = 589.571466086
delta logL = -6.94626578479e-11

Extracting fit parameters...

4FGL J1118.2-4634
   Spectrum: LogParabola
429         norm:  1.000e-04  1.527e-05  1.000e-04  1.000e+04 ( 1.000e-13)
430        alpha:  2.667e+00  2.495e+00  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:  5.817e-01  3.147e-01  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:  1.253e+00  9.257e-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/655273/cmap_HighResolution_547516801_547776001_4FGL_J1118.2-4634_daily_bin1189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.62e-04', job_status='DONE', photon_flux_upper_limit='8.41e-07', time_completed='2021-09-03 15:28:45.843460', job_id='655273', GAL2='0.58', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630708125.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.58', dlogl='-6.95e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1189' AND source_name='4FGL J1118.2-4634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 15:28:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 655273: <4FGL_J1118.2-4634_daily_bin1189> in cluster <slac> Done

Job <4FGL_J1118.2-4634_daily_bin1189> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 15:21:00 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 15:21:11 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:21:11 2021
Terminated at Fri Sep  3 15:28:46 2021
Results reported at Fri Sep  3 15:28:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1118.2-4634_daily_bin1189 169.558 -46.5795 547516801 547776001 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 :                                   359.12 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             388.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   456 sec.
    Turnaround time :                            466 sec.

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

