/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 = 7390
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1118.2-0415_daily_bin401
RA = 169.575, Dec = -4.2539
tmin = 343267201, tmax = 343526401
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='641874', job_status='RUN', time_executed='2021-09-03 14:36:45.130204', time_epoch_executed='1630705005.13' WHERE source_name='4FGL J1118.2-0415' and cadence='daily' and bin_id='401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641874/ft1_4FGL_J1118.2-0415_daily_bin401.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641874/ft2_4FGL_J1118.2-0415_daily_bin401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641874/ft1_4FGL_J1118.2-0415_daily_bin401.fits outfile=/scratch/kocevski/641874/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin401.fits ra=169.575 dec=-4.2539 rad=12.0 tmin=343267201.0 tmax=343526401.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.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641874/ft2_4FGL_J1118.2-0415_daily_bin401.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/641874/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin401.fits evtable="EVENTS" outfile="/scratch/kocevski/641874/ft1_filtered_4FGL_J1118.2-0415_daily_bin401.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641874/ft1_filtered_4FGL_J1118.2-0415_daily_bin401.fits" evtable="EVENTS" scfile=/scratch/kocevski/641874/ft2_4FGL_J1118.2-0415_daily_bin401.fits sctable="SC_DATA" outfile=/scratch/kocevski/641874/ltcube_343267201_343526401_4FGL_J1118.2-0415_daily_bin401.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/641874/ft2_4FGL_J1118.2-0415_daily_bin401.fits
.....................!
real 16.58
user 16.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641874/ft1_filtered_4FGL_J1118.2-0415_daily_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/641874/ft2_4FGL_J1118.2-0415_daily_bin401.fits sctable="SC_DATA" expcube=/scratch/kocevski/641874/ltcube_343267201_343526401_4FGL_J1118.2-0415_daily_bin401.fits outfile=/scratch/kocevski/641874/expmap_343267201_343526401_4FGL_J1118.2-0415_daily_bin401.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/641874/ltcube_343267201_343526401_4FGL_J1118.2-0415_daily_bin401.fits
.....................!
real 193.16
user 187.76
sys 4.92

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/641874/ft1_filtered_4FGL_J1118.2-0415_daily_bin401.fits scfile=/scratch/kocevski/641874/ft2_4FGL_J1118.2-0415_daily_bin401.fits outfile=/scratch/kocevski/641874/cmap_343267201_343526401_4FGL_J1118.2-0415_daily_bin401.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641874/ft1_filtered_4FGL_J1118.2-0415_daily_bin401.fits scfile=/scratch/kocevski/641874/ft2_4FGL_J1118.2-0415_daily_bin401.fits outfile=/scratch/kocevski/641874/cmap_HighResolution_343267201_343526401_4FGL_J1118.2-0415_daily_bin401.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.602       1.0000         .10000E-03   10000.    
     2 'norm      '    .52768       1.0000         .10000E-03   10000.    
     3 'norm      '    5.2713       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.450       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.170       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.356       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.163       1.0000         .10000E-03   10000.    
     9 'norm      '    .60443       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4052       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.839       1.0000         .10000E-03   10000.    
    12 'norm      '    14.399       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3112       1.0000         .10000E-03   10000.    
    14 'Prefactor '    80.376       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    70.863       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2689       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85023       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=   8605.050     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2725 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.604        11.884        .11439E-06   -.12401E-03
   2  norm          .52610        .85055        .48084E-06    .81744E-03
   3  norm          5.2712        4.5242        .74016E-07   -.99002E-05
   4  Prefactor     26.472        14.855       -.12857E-05   -.19651E-03
   5  Prefactor     15.168        15.211       -.28736E-06   -.70862E-04
   6  Prefactor     10.355        11.140       -.36987E-06   -.98208E-04
   7  Prefactor     .10000E-03    2.7589       -.15540E-06** at limit **
   8  Prefactor     10.168        23.502       -.90356E-06   -.33369E-05
   9  norm          .62873        6.4258       -.44535E-07   -.14291E-03
  10  Prefactor     3.4032        4.9021        .20169E-05   -.46639E-03
  11  Prefactor     11.838        7.0622        .13975E-06   -.39432E-04
  12  norm          14.413        39.679       -.76533E-05   -.29975E-04
  13  Prefactor     5.3111        2.2533       -.33884E-07   -.68465E-04
  14  Prefactor     80.355        33.849        .17305E-05   -.43674E-04
  15  Prefactor     .10000E-03    10.817        .93982E-06** at limit **
  16  norm          .10000E-03    1.2081        .12090E-07** at limit **
  17  Prefactor     .10000E-03    .63479        .18927E-07** at limit **
  18  Prefactor     .10000E-03    5.7074        .22570E-06** at limit **
  19  Prefactor     .10000E-03    8.7492       -.59725E-06** at limit **
  20  Prefactor     70.880        35.885       -.16510E-05    .43020E-05
  21  Prefactor     .10000E-03    5.4395        .25842E-06** at limit **
  22  Prefactor     .10000E-03    16.286       -.36107E-06** at limit **
  23  Normalizat    1.2689        .19290       -.32963E-07   -.10092E-03
  24  Prefactor     .85025        .13830       -.41306E-06   -.18239E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.6045
  norm       = 0.526103
  norm       = 5.27118
  Prefactor  = 26.4721
  Prefactor  = 15.1678
  Prefactor  = 10.3548
  Prefactor  = 0.0001
  Prefactor  = 10.168
  norm       = 0.628735
  Prefactor  = 3.40318
  Prefactor  = 11.8379
  norm       = 14.413
  Prefactor  = 5.31113
  Prefactor  = 80.3545
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.8798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26893
  Prefactor  = 0.850247
 **********
 **   18 **HESSE 
 **********

 FCN=   8605.050     FROM HESSE     STATUS=OK           405 CALLS     3130 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.604        11.874        .62908E-04   -1.4433    
   2  norm          .52610        .77842        .74294E-04   -1.5563    
   3  norm          5.2712        4.5215        .17507E-03   -1.5249    
   4  Prefactor     26.472        14.040        .77893E-04   -1.4678    
   5  Prefactor     15.168        15.172        .10283E-03   -1.4929    
   6  Prefactor     10.355        11.026        .12451E-03   -1.5064    
   7  Prefactor     .10000E-03    5.3411        .28455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.168        23.482        .12569E-03   -1.5070    
   9  norm          .62873        17.733        .40133E-02   -1.5549    
  10  Prefactor     3.4032        4.9505        .94878E-03   -1.5339    
  11  Prefactor     11.838        7.0623        .58214E-03   -1.5020    
  12  norm          14.413        39.549        .10555E-03   -1.4948    
  13  Prefactor     5.3111        2.2554        .87240E-04   -1.5247    
  14  Prefactor     80.355        33.789        .44798E-04   -1.3913    
  15  Prefactor     .10000E-03    10.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2107        .99557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .63694        .72159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.7257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.7635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     70.880        35.670        .23844E-03   -1.4022    
  21  Prefactor     .10000E-03    5.4787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2689        .22972        .28198E-03   -.84499    
  24  Prefactor     .85025        .16444        .24972E-03   -.97902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99819e-08
Minuit parameter uncertainties:
  1  11.8748
  2  0.778432
  3  4.52175
  4  14.0413
  5  15.176
  6  11.028
  7  5.01111e-05
  8  23.5033
  9  6.67982
  10  4.95107
  11  7.06283
  12  39.6206
  13  2.25542
  14  33.7969
  15  1.81368e-06
  16  2.95104e-07
  17  8.99446e-07
  18  2.40907e-06
  19  1.10904e-06
  20  35.6808
  21  1.13144e-05
  22  4.30395e-05
  23  0.229909
  24  0.164536
Done.

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

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  5.011e-05  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:  8.502e-01  1.645e-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.269e+00  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/641874/likelihoodResults_343267201_343526401_4FGL_J1118.2-0415_daily_bin401.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) = 8605.05083939
delta logL = -0.000890678555152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8605.04994875
delta logL = -3.43043211615e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6539       1.0000          .0000       10.000    
     3 'Normalizat'    1.2689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85029       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   8605.050     FROM MIGRAD    STATUS=FAILED        98 CALLS      263 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10107E-03    32.797        .28342E-02** at limit **
   2  Index         2.7207        7.8425        .50000       -.16321E-04
   3  Normalizat    1.2689        .11252E-01    .28197E-03    .13063E-04
   4  Prefactor     .85025        .83873E-02    .24972E-03   -.81945E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8605.050     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      387 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10107E-03    32.797        .40186E-03** at limit **
   2  Index         2.7207        7.8425        .71071E-03   -.16321E-04
   3  Normalizat    1.2689        .11252E-01    .27024E-05    .13063E-04
   4  Prefactor     .85025        .83873E-02    .21107E-05   -.81945E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8605.050     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      420 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10051E-03    175.38        .56684E-03** at limit **
   2  Index         2.7105        5.4980        .50000       -.17552E-04
   3  Normalizat    1.2689        .26806E-01    .11279E-04    .80637E-05
   4  Prefactor     .85025        .19981E-01    .99890E-05   -.54630E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100512
  Index      = 2.7105
  Normalizat = 1.26893
  Prefactor  = 0.850248
 **********
 **   18 **HESSE 
 **********

 FCN=   8605.050     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      449 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10051E-03    816.10        .11337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7105        5.6189        .50000       -.47563    
   3  Normalizat    1.2689        .72929E-01    .22558E-05   -.84499    
   4  Prefactor     .85025        .54307E-01    .19978E-05   -.97902    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.01916e-08
Minuit parameter uncertainties:
  1  0.0414696
  2  932.561
  3  0.0729353
  4  0.0543103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641874': 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): 102
logL (Free Index) = 8605.0499484
delta logL = 3.14141288982e-07

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.005e-04  4.147e-02  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.710e+00  9.326e+02  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:  8.502e-01  5.431e-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.269e+00  7.294e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-03', job_status='DONE', photon_flux_upper_limit='8.92e-08', time_completed='2021-09-03 14:51:54.248790', job_id='641874', GAL2='0.85', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630705914.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='401' AND source_name='4FGL J1118.2-0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:51:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 641874: <4FGL_J1118.2-0415_daily_bin401> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1118.2-0415_daily_bin401 169.575 -4.2539 343267201 343526401 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 :                                   905.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            939 sec.

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

