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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin1516
RA = 169.271, Dec = 20.2294
tmin = 632275201, tmax = 632534401
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='638975', job_status='RUN', time_executed='2021-09-03 14:29:38.691203', time_epoch_executed='1630704578.69' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='1516'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638975

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638975/ft1_4FGL_J1117.0+2013_daily_bin1516.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638975/ft2_4FGL_J1117.0+2013_daily_bin1516.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638975/ft1_4FGL_J1117.0+2013_daily_bin1516.fits outfile=/scratch/kocevski/638975/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1516.fits ra=169.271 dec=20.2294 rad=12.0 tmin=632275201.0 tmax=632534401.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.87
user 3.58
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/638975/ft2_4FGL_J1117.0+2013_daily_bin1516.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/638975/ft2_4FGL_J1117.0+2013_daily_bin1516.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/638975/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1516.fits evtable="EVENTS" outfile="/scratch/kocevski/638975/ft1_filtered_4FGL_J1117.0+2013_daily_bin1516.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/638975/ft1_filtered_4FGL_J1117.0+2013_daily_bin1516.fits" evtable="EVENTS" scfile=/scratch/kocevski/638975/ft2_4FGL_J1117.0+2013_daily_bin1516.fits sctable="SC_DATA" outfile=/scratch/kocevski/638975/ltcube_632275201_632534401_4FGL_J1117.0+2013_daily_bin1516.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/638975/ft2_4FGL_J1117.0+2013_daily_bin1516.fits
.....................!
real 18.25
user 17.65
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638975/ft1_filtered_4FGL_J1117.0+2013_daily_bin1516.fits evtable="EVENTS" scfile=/scratch/kocevski/638975/ft2_4FGL_J1117.0+2013_daily_bin1516.fits sctable="SC_DATA" expcube=/scratch/kocevski/638975/ltcube_632275201_632534401_4FGL_J1117.0+2013_daily_bin1516.fits outfile=/scratch/kocevski/638975/expmap_632275201_632534401_4FGL_J1117.0+2013_daily_bin1516.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/638975/ltcube_632275201_632534401_4FGL_J1117.0+2013_daily_bin1516.fits
.....................!
real 193.92
user 187.84
sys 4.40

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1117.0+2013 @ 169.271 20.2294

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/638975/ft1_filtered_4FGL_J1117.0+2013_daily_bin1516.fits scfile=/scratch/kocevski/638975/ft2_4FGL_J1117.0+2013_daily_bin1516.fits outfile=/scratch/kocevski/638975/cmap_632275201_632534401_4FGL_J1117.0+2013_daily_bin1516.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.271 yref=20.2294 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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638975/ft1_filtered_4FGL_J1117.0+2013_daily_bin1516.fits scfile=/scratch/kocevski/638975/ft2_4FGL_J1117.0+2013_daily_bin1516.fits outfile=/scratch/kocevski/638975/cmap_HighResolution_632275201_632534401_4FGL_J1117.0+2013_daily_bin1516.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.271 yref=20.2294 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/638975/ft1_filtered_4FGL_J1117.0+2013_daily_bin1516.fits evtable="EVENTS" scfile=/scratch/kocevski/638975/ft2_4FGL_J1117.0+2013_daily_bin1516.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/638975/Model_4FGL_J1117.0+2013_daily_bin1516.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/638975/ft1_filtered_4FGL_J1117.0+2013_daily_bin1516.fits.....................!
real 60.80
user 59.03
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/638975/ft1_filtered_4FGL_J1117.0+2013_daily_bin1516.fits', '/scratch/kocevski/638975/ft2_4FGL_J1117.0+2013_daily_bin1516.fits', expMap='/scratch/kocevski/638975/expmap_632275201_632534401_4FGL_J1117.0+2013_daily_bin1516.fits', expCube='/scratch/kocevski/638975/ltcube_632275201_632534401_4FGL_J1117.0+2013_daily_bin1516.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/638975/Model_4FGL_J1117.0+2013_daily_bin1516.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1117.0+2013'

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  3.413e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.957e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/638975/ft1_filtered_4FGL_J1117.0+2013_daily_bin1516.fits
Spacecraft file(s): /scratch/kocevski/638975/ft2_4FGL_J1117.0+2013_daily_bin1516.fits
Exposure map: /scratch/kocevski/638975/expmap_632275201_632534401_4FGL_J1117.0+2013_daily_bin1516.fits
Exposure cube: /scratch/kocevski/638975/ltcube_632275201_632534401_4FGL_J1117.0+2013_daily_bin1516.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/638975/Model_4FGL_J1117.0+2013_daily_bin1516.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) = 6608.70597591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.521       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6260       1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.289       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0107       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16220       1.0000         .10000E-03   10000.    
     8 'norm      '    .15802E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1127       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3168       1.0000         .10000E-03   10000.    
    11 'norm      '    11.069       1.0000         .10000E-03   10000.    
    12 'norm      '    .10219E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.601       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6390       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .23480E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7200       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2278       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .68736       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6608.698     FROM MIGRAD    STATUS=CONVERGED    113 CALLS     2024 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.523        1.2031        .16139E-07    .21738E-02
   2  Prefactor     1.6265        2.0534       -.51600E-06   -.13465E-03
   3  Prefactor     46.286        2.2826       -.11408E-06    .19224E-02
   4  Prefactor     .10000E-03    6.5274        .45969E-06** at limit **
   5  Prefactor     .10000E-03    12.540       -.30141E-05** at limit **
   6  Prefactor     8.9949        14.042        .12812E-05    .55259E-02
   7  Prefactor     .10203E-03    636.28        .14894E-04** at limit **
   8  norm          .10000E-03    2.1723        .26821E-06** at limit **
   9  Prefactor     2.1150        3.4297        .45720E-06   -.22184E-03
  10  Prefactor     8.3176        1.0245       -.49058E-07    .15432E-03
  11  norm          11.064        3.4844       -.35899E-06   -.22565E-02
  12  norm          .10023E-03    11.296        .36649E-06** at limit **
  13  Prefactor     .10000E-03    5.1076       -.30133E-05** at limit **
  14  Prefactor     .10000E-03    7.0902        .14278E-05** at limit **
  15  Prefactor     .10021E-03    12.130       -.22340E-05** at limit **
  16  Prefactor     .10001E-03    5.1539       -.16578E-05** at limit **
  17  Prefactor     32.649        14.295       -.13296E-05    .11770E-01
  18  Prefactor     5.6326        6.4345       -.89176E-06   -.54481E-05
  19  Prefactor     .10000E-03    5.2910        .27830E-05** at limit **
  20  Prefactor     1.7210        2.8574        .33903E-06    .77974E-05
  21  Normalizat    1.2279        .20709        .23755E-05   -.12271E-03
  22  Prefactor     .68749        .20392       -.68915E-05   -.12580E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5232
  Prefactor  = 1.62649
  Prefactor  = 46.2865
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 8.99488
  Prefactor  = 0.00010203
  norm       = 0.0001
  Prefactor  = 2.11501
  Prefactor  = 8.31764
  norm       = 11.0639
  norm       = 0.000100226
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.00010021
  Prefactor  = 0.000100005
  Prefactor  = 32.649
  Prefactor  = 5.63259
  Prefactor  = 0.000100002
  Prefactor  = 1.72097
  Normalizat = 1.22789
  Prefactor  = 0.687486
 **********
 **   18 **HESSE 
 **********

 FCN=   6608.698     FROM HESSE     STATUS=OK           406 CALLS     2430 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.523        8.9789        .27232E-02   -1.4972    
   2  Prefactor     1.6265        2.1304        .82938E-02   -1.5453    
   3  Prefactor     46.286        10.386        .14733E-02   -1.4346    
   4  Prefactor     .10000E-03    6.4665        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.440        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.9949        17.080        .33380E-02   -1.5108    
   7  Prefactor     .10203E-03    10.270        .98037E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .57476        .20787E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1150        3.6709        .70953E-02   -1.5417    
  10  Prefactor     8.3176        5.8758        .34753E-02   -1.5131    
  11  norm          11.064        8.9857        .30105E-02   -1.5043    
  12  norm          .10023E-03    15.512        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.0855        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.0884        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10021E-03    16.228        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    5.1636        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.649        27.817        .17545E-02   -1.4565    
  18  Prefactor     5.6326        10.401        .42292E-02   -1.5233    
  19  Prefactor     .10000E-03    .96563        .43783E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7210        2.9136        .80080E-02   -1.5446    
  21  Normalizat    1.2279        .18185        .52583E-01   -.85745    
  22  Prefactor     .68749        .17299        .68744E-01   -1.0402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0911e-07
Minuit parameter uncertainties:
  1  8.97979
  2  2.13054
  3  10.3864
  4  5.97839e-05
  5  0.000295202
  6  17.0895
  7  0.0091346
  8  5.99258e-07
  9  3.67129
  10  5.87616
  11  8.98683
  12  0.00374747
  13  0.000127713
  14  8.21242e-05
  15  0.00369168
  16  0.000328783
  17  27.8282
  18  10.404
  19  8.61553e-05
  20  2.91386
  21  0.181939
  22  0.173127
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  8.318e+00  5.876e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.957e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  6.875e-01  1.731e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.228e+00  1.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.18
Ra Dec: 169.271 20.229
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.79e-08 +/- 1.97e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.52e-05

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) = 6607.18716883
delta logL = 1.51081183182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6606.96060012
delta logL = 1.73738054678

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6606.961     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      256 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50941        .83361        .11363E-01    .29996E-03
   2  Index         .21332        .68902        .35607        .64716E-04
   3  Normalizat    1.2363        .16937        .52427E-01   -.17766E-03
   4  Prefactor     .70073        .17168        .68205E-01   -.10877E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.509409
  Index      = 0.213316
  Normalizat = 1.23632
  Prefactor  = 0.700732
 **********
 **   18 **HESSE 
 **********

 FCN=   6606.961     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50941        3.3224        .49855E-03   -1.5565    
   2  Index         .21332        5.7428        .21216E-01   -1.2776    
   3  Normalizat    1.2363        .20098        .23180E-03   -.85488    
   4  Prefactor     .70073        .20348        .30181E-03   -1.0350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33832e-07
Minuit parameter uncertainties:
  1  2.60184
  2  1.65125
  3  0.201104
  4  0.203698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638975': 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) = 6606.96058367
delta logL = 1.73739699054

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  5.094e-01  2.602e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.133e-01  1.651e+00  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.007e-01  2.037e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.236e+00  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.64
Ra Dec: 169.271 20.229
Photon Index (Free Index): 0.21 +/- 1.65
Photon Flux (Free Index): 2.77e-09 +/- 3.13e-09
Energy Flux (Free Index): 1.23e-04 +/- 1.43e-04

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/638975/cmap_HighResolution_632275201_632534401_4FGL_J1117.0+2013_daily_bin1516.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.79e-08', energy_flux2='1.23e-04', photon_flux_error='1.97e-08', dlogl='1.74e+00', energy_flux='2.15e-05', photon_flux2='2.77e-09', job_status='DONE', time_completed='2021-09-03 14:40:08.166971', photon_index_error2='1.65', photon_index2='0.21', ts='11.18', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='1.43e-04', EG='1.23', time_epoch_completed='1630705208.17', return_code='0', job_id='638975', GAL2='0.70', EG2='1.24', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='3.13e-09', ts2='14.64', photon_index='1.96' WHERE bin_id='1516' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:40:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 638975: <4FGL_J1117.0+2013_daily_bin1516> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin1516> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 14:26:25 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:27:17 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:27:17 2021
Terminated at Fri Sep  3 14:40:08 2021
Results reported at Fri Sep  3 14:40:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin1516 169.271 20.2294 632275201 632534401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1117.0+2013 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   617.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            823 sec.

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

