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


Performing analysis on: 4FGL_J1118.2-0415_monthly_bin141
RA = 169.575, Dec = -4.2539
tmin = 602467201, tmax = 605059201
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='454827', job_status='RUN', time_executed='2021-10-22 15:30:35.242615', time_epoch_executed='1634941835.24' WHERE source_name='4FGL J1118.2-0415' and cadence='monthly' and bin_id='141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/454827

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/454827/ft1_4FGL_J1118.2-0415_monthly_bin141.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/454827/ft2_4FGL_J1118.2-0415_monthly_bin141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/454827/ft1_4FGL_J1118.2-0415_monthly_bin141.fits outfile=/scratch/kocevski/454827/ft1_filteredMKT_4FGL_J1118.2-0415_monthly_bin141.fits ra=169.575 dec=-4.2539 rad=12.0 tmin=602467201.0 tmax=605059201.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 31.30
user 30.38
sys 0.69

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/454827/ft2_4FGL_J1118.2-0415_monthly_bin141.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/454827/ft1_filteredMKT_4FGL_J1118.2-0415_monthly_bin141.fits evtable="EVENTS" outfile="/scratch/kocevski/454827/ft1_filtered_4FGL_J1118.2-0415_monthly_bin141.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.88
user 0.70
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/454827/ft1_filtered_4FGL_J1118.2-0415_monthly_bin141.fits" evtable="EVENTS" scfile=/scratch/kocevski/454827/ft2_4FGL_J1118.2-0415_monthly_bin141.fits sctable="SC_DATA" outfile=/scratch/kocevski/454827/ltcube_602467201_605059201_4FGL_J1118.2-0415_monthly_bin141.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/454827/ft2_4FGL_J1118.2-0415_monthly_bin141.fits
.....................!
real 128.33
user 127.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/454827/ft1_filtered_4FGL_J1118.2-0415_monthly_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/454827/ft2_4FGL_J1118.2-0415_monthly_bin141.fits sctable="SC_DATA" expcube=/scratch/kocevski/454827/ltcube_602467201_605059201_4FGL_J1118.2-0415_monthly_bin141.fits outfile=/scratch/kocevski/454827/expmap_602467201_605059201_4FGL_J1118.2-0415_monthly_bin141.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/454827/ltcube_602467201_605059201_4FGL_J1118.2-0415_monthly_bin141.fits
.....................!
real 193.64
user 187.03
sys 5.30

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/454827/ft1_filtered_4FGL_J1118.2-0415_monthly_bin141.fits scfile=/scratch/kocevski/454827/ft2_4FGL_J1118.2-0415_monthly_bin141.fits outfile=/scratch/kocevski/454827/cmap_602467201_605059201_4FGL_J1118.2-0415_monthly_bin141.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.77
user 0.62
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/454827/ft1_filtered_4FGL_J1118.2-0415_monthly_bin141.fits scfile=/scratch/kocevski/454827/ft2_4FGL_J1118.2-0415_monthly_bin141.fits outfile=/scratch/kocevski/454827/cmap_HighResolution_602467201_605059201_4FGL_J1118.2-0415_monthly_bin141.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.79
user 0.61
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/454827/ft1_filtered_4FGL_J1118.2-0415_monthly_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/454827/ft2_4FGL_J1118.2-0415_monthly_bin141.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/454827/Model_4FGL_J1118.2-0415_monthly_bin141.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/454827/ft1_filtered_4FGL_J1118.2-0415_monthly_bin141.fits.....................!
real 320.56
user 317.21
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .37153       1.0000         .10000E-03   10000.    
     3 'norm      '    3.4468       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4945       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23777       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4866       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16355       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.012       1.0000         .10000E-03   10000.    
    12 'norm      '    .13499E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4338       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9920       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .74720       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5446       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.128       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16009E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6062       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2653       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .21965E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1258       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99086       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=   41748.38     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2467 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    .89227       -.46950E-06** at limit **
   2  norm          .37157        .18413       -.16396E-07    .24303E-03
   3  norm          3.4485        1.6919       -.45762E-07   -.12986E-02
   4  Prefactor     .10000E-03    1.3513        .18249E-06** at limit **
   5  Prefactor     7.4754        5.7710       -.63078E-06   -.82142E-03
   6  Prefactor     .10004E-03    1.3305        .54716E-06** at limit **
   7  Prefactor     .23476        .63848       -.13925E-06   -.29169E-03
   8  Prefactor     .10000E-03    7.7946        .60109E-05** at limit **
   9  norm          1.4954        2.6141       -.30696E-06   -.67982E-03
  10  Prefactor     .16338        .54362        .45854E-06   -.22488E-02
  11  Prefactor     10.019        3.0874        .87618E-07   -.34362E-04
  12  norm          .10000E-03    6.7399       -.39826E-05** at limit **
  13  Prefactor     3.4343        1.0247       -.33829E-07   -.14746E-03
  14  Prefactor     6.0402        8.8866       -.44879E-06   -.18321E-03
  15  Prefactor     .10000E-03    2.0099       -.16698E-06** at limit **
  16  norm          .74598        1.4080       -.61397E-07   -.32052E-03
  17  Prefactor     3.5429        1.3352        .23770E-07   -.17220E-03
  18  Prefactor     15.124        5.4423       -.93401E-07   -.66975E-04
  19  Prefactor     .10001E-03    2.4863       -.48313E-06** at limit **
  20  Prefactor     1.6589        4.4275        .44355E-06   -.32324E-03
  21  Prefactor     4.2913        4.8987       -.16410E-05   -.24342E-03
  22  Prefactor     .10008E-03    3.8943       -.29375E-07** at limit **
  23  Normalizat    1.1257        .81855E-01    .42645E-06   -.40192E-03
  24  Prefactor     .99085        .57143E-01   -.15806E-07   -.24694E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010006
  norm       = 0.371565
  norm       = 3.44848
  Prefactor  = 0.0001
  Prefactor  = 7.47544
  Prefactor  = 0.000100045
  Prefactor  = 0.234757
  Prefactor  = 0.0001
  norm       = 1.49537
  Prefactor  = 0.163377
  Prefactor  = 10.0186
  norm       = 0.0001
  Prefactor  = 3.4343
  Prefactor  = 6.04022
  Prefactor  = 0.0001
  norm       = 0.745981
  Prefactor  = 3.54287
  Prefactor  = 15.1235
  Prefactor  = 0.000100012
  Prefactor  = 1.65889
  Prefactor  = 4.29129
  Prefactor  = 0.000100075
  Normalizat = 1.12572
  Prefactor  = 0.990847
 **********
 **   18 **HESSE 
 **********

 FCN=   41748.38     FROM HESSE     STATUS=OK           439 CALLS     2906 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    1.1142        .70075E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .37157        .17652        .58901E-03   -1.5586    
   3  norm          3.4485        1.9348        .10256E-02   -1.5337    
   4  Prefactor     .10000E-03    1.3743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.4754        5.4257        .14650E-03   -1.5161    
   6  Prefactor     .10004E-03    14.601        .40688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .23476        1.7054        .23827E-02   -1.5611    
   8  Prefactor     .10000E-03    7.7977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4954        2.5541        .35177E-03   -1.5463    
  10  Prefactor     .16338        5.4129        .22525E-02   -1.5627    
  11  Prefactor     10.019        3.0887        .12664E-03   -1.5075    
  12  norm          .10000E-03    6.8044        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4343        1.0274        .21828E-04   -1.5337    
  14  Prefactor     6.0402        9.0724        .16403E-03   -1.5216    
  15  Prefactor     .10000E-03    2.0153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .74598        1.3679        .31257E-03   -1.5535    
  17  Prefactor     3.5429        1.3145        .13127E-03   -1.5331    
  18  Prefactor     15.124        5.4347        .10298E-03   -1.4930    
  19  Prefactor     .10001E-03    14.986        .62173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.6589        10.400        .16717E-02   -1.5450    
  21  Prefactor     4.2913        4.9198        .19509E-03   -1.5294    
  22  Prefactor     .10008E-03    4.1225        .14801       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1257        .96807E-01    .28074E-03   -.88930    
  24  Prefactor     .99085        .68199E-01    .21868E-03   -.93035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88763e-07
Minuit parameter uncertainties:
  1  0.000515217
  2  0.176516
  3  1.93481
  4  1.79384e-06
  5  5.42605
  6  0.00161882
  7  1.26526
  8  0.000102167
  9  2.55424
  10  1.8804
  11  3.08872
  12  6.20093e-05
  13  1.02742
  14  9.07443
  15  2.25248e-06
  16  1.36792
  17  1.31452
  18  5.43484
  19  0.000860053
  20  8.3089
  21  4.92031
  22  0.00111549
  23  0.0968225
  24  0.0682046
Done.

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

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  2.348e-01  1.265e+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:  9.908e-01  6.820e-02  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.126e+00  9.682e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 169.575 -4.254
Photon Flux Upper Limit: 3.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/454827/likelihoodResults_602467201_605059201_4FGL_J1118.2-0415_monthly_bin141.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) = 41748.3680609
delta logL = 0.0141050691309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 41748.3646256
delta logL = 0.0175403985049

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34378       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2896       1.0000          .0000       10.000    
     3 'Normalizat'    1.1265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99022       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   41748.36     FROM MIGRAD    STATUS=FAILED        99 CALLS      266 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34349        1.3664        .21231E-02    .11554E-01
   2  Index         2.2859        1.5964        .31241E-01    .96507E-05
   3  Normalizat    1.1265        .91381E-01    .28066E-03   -.10337E-03
   4  Prefactor     .99023        .67624E-01    .21874E-03   -.76504E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   41748.36     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      340 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34349        1.3664        .93652E-04   -1.5591    
   2  Index         2.2859        1.5964        .12392E-02   -.57379    
   3  Normalizat    1.1265        .91381E-01    .18563E-03   -.88906    
   4  Prefactor     .99023        .67624E-01    .13839E-03   -.93056    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   41748.36     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      377 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34350        1.3396        .42462E-03    .76252E-04
   2  Index         2.2859        1.5734        .12496E-02   -.10917E-05
   3  Normalizat    1.1265        .91453E-01    .11226E-04    .16203E-05
   4  Prefactor     .99023        .67656E-01    .87497E-05    .83156E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.343496
  Index      = 2.28589
  Normalizat = 1.12647
  Prefactor  = 0.990228
 **********
 **   18 **HESSE 
 **********

 FCN=   41748.36     FROM HESSE     STATUS=OK            23 CALLS      400 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34350        1.3392        .16985E-04   -1.5591    
   2  Index         2.2859        1.5730        .49986E-04   -.57379    
   3  Normalizat    1.1265        .91452E-01    .11226E-04   -.88906    
   4  Prefactor     .99023        .67655E-01    .87497E-05   -.93056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9179e-12
Minuit parameter uncertainties:
  1  1.33935
  2  1.61234
  3  0.0914646
  4  0.0676603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/454827': 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) = 41748.3646222
delta logL = 0.0175438088991

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  3.435e-01  1.339e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.286e+00  1.612e+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:  9.902e-01  6.766e-02  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.126e+00  9.146e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 169.575 -4.254

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/454827/cmap_HighResolution_602467201_605059201_4FGL_J1118.2-0415_monthly_bin141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-03', job_status='DONE', photon_flux_upper_limit='3.44e-08', time_completed='2021-10-22 16:26:34.703359', job_id='454827', GAL2='0.99', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1634945194.7', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.75e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='141' AND source_name='4FGL J1118.2-0415' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 22 16:26:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0248>
Subject: Job 454827: <4FGL_J1118.2-0415_monthly_bin141> in cluster <slac> Done

Job <4FGL_J1118.2-0415_monthly_bin141> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Oct 22 15:30:19 2021
Job was executed on host(s) <bullet0248>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 22 15:30:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 22 15:30:21 2021
Terminated at Fri Oct 22 16:26:35 2021
Results reported at Fri Oct 22 16:26:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1118.2-0415_monthly_bin141 169.575 -4.2539 602467201 605059201 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 :                                   3275.72 sec.
    Max Memory :                                 639 MB
    Average Memory :                             350.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2942 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   3374 sec.
    Turnaround time :                            3376 sec.

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

