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


Performing analysis on: 4FGL_J1118.2-0415_daily_bin1594
RA = 169.575, Dec = -4.2539
tmin = 652492801, tmax = 652752001
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='716295', job_status='RUN', time_executed='2021-09-08 00:21:50.441987', time_epoch_executed='1631085710.44' WHERE source_name='4FGL J1118.2-0415' and cadence='daily' and bin_id='1594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/716295

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/716295/ft1_4FGL_J1118.2-0415_daily_bin1594.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/716295/ft2_4FGL_J1118.2-0415_daily_bin1594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/716295/ft1_4FGL_J1118.2-0415_daily_bin1594.fits outfile=/scratch/kocevski/716295/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin1594.fits ra=169.575 dec=-4.2539 rad=12.0 tmin=652492801.0 tmax=652752001.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 4.47
user 4.24
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/716295/ft1_filtered_4FGL_J1118.2-0415_daily_bin1594.fits" evtable="EVENTS" scfile=/scratch/kocevski/716295/ft2_4FGL_J1118.2-0415_daily_bin1594.fits sctable="SC_DATA" outfile=/scratch/kocevski/716295/ltcube_652492801_652752001_4FGL_J1118.2-0415_daily_bin1594.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/716295/ft2_4FGL_J1118.2-0415_daily_bin1594.fits
.....................!
real 15.95
user 15.54
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/716295/ft1_filtered_4FGL_J1118.2-0415_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/716295/ft2_4FGL_J1118.2-0415_daily_bin1594.fits sctable="SC_DATA" expcube=/scratch/kocevski/716295/ltcube_652492801_652752001_4FGL_J1118.2-0415_daily_bin1594.fits outfile=/scratch/kocevski/716295/expmap_652492801_652752001_4FGL_J1118.2-0415_daily_bin1594.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/716295/ltcube_652492801_652752001_4FGL_J1118.2-0415_daily_bin1594.fits
.....................!
real 193.01
user 187.97
sys 4.56

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

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/716295/ft1_filtered_4FGL_J1118.2-0415_daily_bin1594.fits scfile=/scratch/kocevski/716295/ft2_4FGL_J1118.2-0415_daily_bin1594.fits outfile=/scratch/kocevski/716295/cmap_HighResolution_652492801_652752001_4FGL_J1118.2-0415_daily_bin1594.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/716295/ft1_filtered_4FGL_J1118.2-0415_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/716295/ft2_4FGL_J1118.2-0415_daily_bin1594.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/716295/Model_4FGL_J1118.2-0415_daily_bin1594.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/716295/ft1_filtered_4FGL_J1118.2-0415_daily_bin1594.fits.....................!
real 49.75
user 48.31
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.227       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    16.894       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9881       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.932       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0170       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10482E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0129       1.0000         .10000E-03   10000.    
    12 'norm      '    29.806       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5054       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.499       1.0000         .10000E-03   10000.    
    20 'Prefactor '    85.409       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .28249E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.319       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7117       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79987       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=   4567.588     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2747 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.229        18.718       -.40296E-07    .41635E-05
   2  norm          .10000E-03    .32846       -.48372E-07** at limit **
   3  norm          16.894        10.990       -.23061E-07   -.15532E-04
   4  Prefactor     3.9901        12.416        .30507E-06   -.97565E-05
   5  Prefactor     27.944        23.305       -.15879E-06   -.78142E-04
   6  Prefactor     .10000E-03    56.625        .20149E-05** at limit **
   7  Prefactor     7.0197        7.4919       -.45222E-06   -.10459E-03
   8  Prefactor     .10000E-03    49.204       -.18976E-05** at limit **
   9  norm          .10000E-03    20.622        .19716E-06** at limit **
  10  Prefactor     .10001E-03    5.1558        .11414E-05** at limit **
  11  Prefactor     2.0121        16.550        .74169E-06   -.47622E-04
  12  norm          29.810        40.329       -.37501E-05   -.50182E-04
  13  Prefactor     .10000E-03    1.3577        .18437E-07** at limit **
  14  Prefactor     .10000E-03    30.952        .11456E-05** at limit **
  15  Prefactor     .10000E-03    17.680        .15487E-07** at limit **
  16  norm          .10000E-03    3.0779       -.23664E-07** at limit **
  17  Prefactor     2.5061        6.5440        .72629E-06   -.21753E-03
  18  Prefactor     .10000E-03    21.050        .34009E-07** at limit **
  19  Prefactor     29.500        29.716        .62329E-07   -.13726E-04
  20  Prefactor     85.393        90.775        .20057E-06   -.73505E-04
  21  Prefactor     .10001E-03    18.286        .21259E-06** at limit **
  22  Prefactor     11.257        118.67       -.32028E-05   -.19947E-04
  23  Normalizat    1.7113        .28614       -.62131E-06   -.14120E-03
  24  Prefactor     .80016        .20048        .76955E-06   -.20390E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.2287
  norm       = 0.0001
  norm       = 16.8941
  Prefactor  = 3.99008
  Prefactor  = 27.944
  Prefactor  = 0.0001
  Prefactor  = 7.01966
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 2.01208
  norm       = 29.8096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.50605
  Prefactor  = 0.0001
  Prefactor  = 29.4997
  Prefactor  = 85.3927
  Prefactor  = 0.000100005
  Prefactor  = 11.2572
  Normalizat = 1.71133
  Prefactor  = 0.800164
 **********
 **   18 **HESSE 
 **********

 FCN=   4567.588     FROM HESSE     STATUS=OK           411 CALLS     3158 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.229        18.708        .65687E-04   -1.4487    
   2  norm          .10000E-03    .37578        .72927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          16.894        10.997        .97444E-04   -1.4886    
   4  Prefactor     3.9901        12.040        .20196E-03   -1.5308    
   5  Prefactor     27.944        23.345        .75803E-04   -1.4650    
   6  Prefactor     .10000E-03    58.236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.0197        7.5923        .15144E-03   -1.5178    
   8  Prefactor     .10000E-03    48.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    20.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    16.723        .42704E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0121        16.464        .29177E-03   -1.5424    
  12  norm          29.810        50.809        .73387E-04   -1.4615    
  13  Prefactor     .10000E-03    1.3756        .76880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.0814        .11573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.5061        6.3839        .23642E-03   -1.5391    
  18  Prefactor     .10000E-03    21.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.500        29.719        .73766E-04   -1.4621    
  20  Prefactor     85.393        89.425        .43469E-04   -1.3857    
  21  Prefactor     .10001E-03    135.00        .54061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.257        119.83        .11908E-03   -1.5037    
  23  Normalizat    1.7113        .34031        .28267E-03   -.72001    
  24  Prefactor     .80016        .23591        .27677E-03   -.99722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28987e-10
Minuit parameter uncertainties:
  1  18.7112
  2  2.11596e-07
  3  10.9988
  4  12.0474
  5  23.3525
  6  0.000238952
  7  7.59334
  8  0.000187138
  9  2.5741e-05
  10  0.000687674
  11  11.5153
  12  50.8824
  13  1.24062e-08
  14  3.74293e-05
  15  4.24908e-06
  16  4.32867e-06
  17  6.38563
  18  3.09846e-05
  19  29.7336
  20  89.5668
  21  0.00172344
  22  73.6444
  23  0.340775
  24  0.236212
Done.

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

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  7.020e+00  7.593e+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:  8.002e-01  2.362e-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.711e+00  3.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 169.575 -4.254
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 6.92e-08 +/- 7.48e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 1.90e-05

TS (Fixed Index): 1.22
Ra Dec: 169.575 -4.254
Photon Flux Upper Limit: 2.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.83e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/716295/likelihoodResults_652492801_652752001_4FGL_J1118.2-0415_daily_bin1594.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) = 4567.24162312
delta logL = 0.345897219399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4567.21993353
delta logL = 0.367586804587

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4567.220     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      241 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6615        62.064        .52743E-02    .45485E-03
   2  Index         3.5367        3.8399        .17168        .98566E-04
   3  Normalizat    1.6489        .92393E-01    .64808E-01    .10812E-04
   4  Prefactor     .82949        .62710E-01    .44101E-01    .25157E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.66147
  Index      = 3.53667
  Normalizat = 1.64893
  Prefactor  = 0.829493
 **********
 **   18 **HESSE 
 **********

 FCN=   4567.220     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6615        7.5997        .99678E-04   -1.5325    
   2  Index         3.5367        1.4437        .58844E-02   -.29701    
   3  Normalizat    1.6489        .33959        .28664E-03   -.73675    
   4  Prefactor     .82949        .23425        .27205E-03   -.98650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13122e-11
Minuit parameter uncertainties:
  1  7.60175
  2  1.46661
  3  0.340071
  4  0.234532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/716295': 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) = 4567.21993294
delta logL = 0.367587399472

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  3.661e+00  7.602e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  3.537e+00  1.467e+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:  8.295e-01  2.345e-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.649e+00  3.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 169.575 -4.254
Photon Index (Free Index): 3.54 +/- 1.47
Photon Flux (Free Index): 1.32e-07 +/- 1.18e-07
Energy Flux (Free Index): 2.17e-05 +/- 1.80e-05

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/716295/cmap_HighResolution_652492801_652752001_4FGL_J1118.2-0415_daily_bin1594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.83e-02', comment='SUCCESS', photon_flux='6.92e-08', energy_flux2='2.17e-05', photon_flux_error='7.48e-08', dlogl='3.68e-01', energy_flux='1.75e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-08 00:32:17.428354', photon_index_error2='1.47', photon_index2='3.54', ts='1.22', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='2.33e-07', energy_flux_error2='1.80e-05', EG='1.71', time_epoch_completed='1631086337.43', return_code='0', job_id='716295', GAL2='0.83', EG2='1.65', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='1.18e-07', ts2='2.01', photon_index='2.64' WHERE bin_id='1594' AND source_name='4FGL J1118.2-0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:32:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 716295: <4FGL_J1118.2-0415_daily_bin1594> in cluster <slac> Done

Job <4FGL_J1118.2-0415_daily_bin1594> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 00:20:34 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:21:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 00:21:33 2021
Terminated at Wed Sep  8 00:32:18 2021
Results reported at Wed Sep  8 00:32:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1118.2-0415_daily_bin1594 169.575 -4.2539 652492801 652752001 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 :                                   629.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            704 sec.

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

