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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin1250
RA = 169.271, Dec = 20.2294
tmin = 563328001, tmax = 563587201
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='637526', job_status='RUN', time_executed='2021-09-03 14:22:33.407205', time_epoch_executed='1630704153.41' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='1250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/637526

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/637526/ft1_4FGL_J1117.0+2013_daily_bin1250.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/637526/ft2_4FGL_J1117.0+2013_daily_bin1250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/637526/ft1_4FGL_J1117.0+2013_daily_bin1250.fits outfile=/scratch/kocevski/637526/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1250.fits ra=169.271 dec=20.2294 rad=12.0 tmin=563328001.0 tmax=563587201.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.05
user 2.83
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/637526/ft1_filtered_4FGL_J1117.0+2013_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/637526/ft2_4FGL_J1117.0+2013_daily_bin1250.fits sctable="SC_DATA" expcube=/scratch/kocevski/637526/ltcube_563328001_563587201_4FGL_J1117.0+2013_daily_bin1250.fits outfile=/scratch/kocevski/637526/expmap_563328001_563587201_4FGL_J1117.0+2013_daily_bin1250.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/637526/ltcube_563328001_563587201_4FGL_J1117.0+2013_daily_bin1250.fits
.....................!
real 190.85
user 186.16
sys 4.32

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/637526/ft1_filtered_4FGL_J1117.0+2013_daily_bin1250.fits scfile=/scratch/kocevski/637526/ft2_4FGL_J1117.0+2013_daily_bin1250.fits outfile=/scratch/kocevski/637526/cmap_563328001_563587201_4FGL_J1117.0+2013_daily_bin1250.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/637526/ft1_filtered_4FGL_J1117.0+2013_daily_bin1250.fits scfile=/scratch/kocevski/637526/ft2_4FGL_J1117.0+2013_daily_bin1250.fits outfile=/scratch/kocevski/637526/cmap_HighResolution_563328001_563587201_4FGL_J1117.0+2013_daily_bin1250.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.54
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/637526/ft1_filtered_4FGL_J1117.0+2013_daily_bin1250.fits', '/scratch/kocevski/637526/ft2_4FGL_J1117.0+2013_daily_bin1250.fits', expMap='/scratch/kocevski/637526/expmap_563328001_563587201_4FGL_J1117.0+2013_daily_bin1250.fits', expCube='/scratch/kocevski/637526/ltcube_563328001_563587201_4FGL_J1117.0+2013_daily_bin1250.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/637526/Model_4FGL_J1117.0+2013_daily_bin1250.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/637526/ft1_filtered_4FGL_J1117.0+2013_daily_bin1250.fits
Spacecraft file(s): /scratch/kocevski/637526/ft2_4FGL_J1117.0+2013_daily_bin1250.fits
Exposure map: /scratch/kocevski/637526/expmap_563328001_563587201_4FGL_J1117.0+2013_daily_bin1250.fits
Exposure cube: /scratch/kocevski/637526/ltcube_563328001_563587201_4FGL_J1117.0+2013_daily_bin1250.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/637526/Model_4FGL_J1117.0+2013_daily_bin1250.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) = 7870.128921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .97694       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6411       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6857       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1908       1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.524       1.0000         .10000E-03   10000.    
    11 'norm      '    11.179       1.0000         .10000E-03   10000.    
    12 'norm      '    18.573       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.562       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13533E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .90859       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.7101       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .72550       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2246       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7870.110     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2437 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7031        .52720E-07** at limit **
   2  Prefactor     .10000E-03    .82994        .10045E-07** at limit **
   3  Prefactor     .97748        3.7346        .16781E-05   -.17329E-03
   4  Prefactor     .10000E-03    4.7357       -.38883E-06** at limit **
   5  Prefactor     3.6386        7.6884       -.78114E-06   -.21846E-03
   6  Prefactor     1.6871        6.6293        .96423E-06   -.10339E-03
   7  Prefactor     9.1895        8.6221       -.45257E-06   -.15379E-03
   8  norm          .10000E-03    .39736       -.18492E-07** at limit **
   9  Prefactor     .10000E-03    1.3549       -.60557E-07** at limit **
  10  Prefactor     16.525        6.9144       -.13856E-06   -.13337E-03
  11  norm          11.174        10.223       -.40620E-06   -.14003E-03
  12  norm          18.574        10.549       -.92091E-07   -.33574E-04
  13  Prefactor     .10000E-03    2.9547        .12080E-07** at limit **
  14  Prefactor     22.555        15.030       -.61331E-06   -.13901E-03
  15  Prefactor     .10000E-03    74.861        .14236E-05** at limit **
  16  Prefactor     .10000E-03    8.0493       -.13583E-06** at limit **
  17  Prefactor     .10006E-03    8.6459       -.31042E-06** at limit **
  18  Prefactor     .10000E-03    4.2268        .48436E-07** at limit **
  19  Prefactor     .90849        .89177        .31851E-08    .88639E-04
  20  Prefactor     8.7103        3.5741       -.15216E-07   -.67047E-04
  21  Normalizat    .72545        .15041        .40390E-06   -.45069E-04
  22  Prefactor     1.2246        .15492       -.42892E-06    .23439E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.97748
  Prefactor  = 0.0001
  Prefactor  = 3.63862
  Prefactor  = 1.68707
  Prefactor  = 9.18954
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5245
  norm       = 11.1743
  norm       = 18.5736
  Prefactor  = 0.0001
  Prefactor  = 22.5549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010006
  Prefactor  = 0.0001
  Prefactor  = 0.908486
  Prefactor  = 8.71029
  Normalizat = 0.725451
  Prefactor  = 1.2246
 **********
 **   18 **HESSE 
 **********

 FCN=   7870.110     FROM HESSE     STATUS=OK           356 CALLS     2793 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7797        .16652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9926        .15604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .97748        3.8710        .33262E-03   -1.5510    
   4  Prefactor     .10000E-03    4.7463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6386        7.9491        .21171E-03   -1.5326    
   6  Prefactor     1.6871        6.7800        .32433E-03   -1.5448    
   7  Prefactor     9.1895        8.6250        .13220E-03   -1.5102    
   8  norm          .10000E-03    .64827        .10756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3914        .20106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.525        6.9338        .98530E-04   -1.4895    
  11  norm          11.174        10.332        .11982E-03   -1.5039    
  12  norm          18.574        10.577        .92936E-04   -1.4846    
  13  Prefactor     .10000E-03    2.9678        .14890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.555        15.219        .84327E-04   -1.4758    
  15  Prefactor     .10000E-03    77.105        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.0994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10006E-03    10.641        .77318E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3013        .17809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .90849        .89127        .79918E-04   -1.5517    
  20  Prefactor     8.7103        3.5771        .10382E-03   -1.5118    
  21  Normalizat    .72545        .17322        .26420E-03   -1.0290    
  22  Prefactor     1.2246        .17965        .23053E-03   -.85578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9663e-10
Minuit parameter uncertainties:
  1  1.20935e-06
  2  1.01015e-05
  3  3.87197
  4  3.33483e-05
  5  7.95144
  6  6.76525
  7  8.6262
  8  3.43436e-06
  9  1.51878e-06
  10  6.93418
  11  10.3338
  12  10.5785
  13  1.18236e-06
  14  15.2218
  15  0.000292994
  16  2.31575e-05
  17  0.001604
  18  7.98111e-07
  19  0.89128
  20  3.57721
  21  0.173355
  22  0.179737
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.652e+01  6.934e+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:  1.225e+00  1.797e-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:  7.255e-01  1.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.66
Ra Dec: 169.271 20.229
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 5.55e-08 +/- 2.33e-08
Energy Flux (Fixed Index): 4.28e-05 +/- 1.80e-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) = 7870.1052329
delta logL = 0.00427527651118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7870.10290819
delta logL = 0.00659998892206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.031       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9920       1.0000          .0000       10.000    
     3 'Normalizat'    .72293       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2260       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=   7870.103     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      205 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.020        115.41        .25008E-02    .46689E-03
   2  Index         1.9922        2.6026        .12176        .13997E-03
   3  Normalizat    .72305        .10127        .42596E-01    .32229E-04
   4  Prefactor     1.2259        .75376E-01    .52117E-01    .13803E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0199
  Index      = 1.99219
  Normalizat = 0.723047
  Prefactor  = 1.22594
 **********
 **   18 **HESSE 
 **********

 FCN=   7870.103     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.020        8.3191        .50016E-03   -1.4907    
   2  Index         1.9922        .31996        .46392E-02   -.64546    
   3  Normalizat    .72305        .16221        .26459E-03   -1.0299    
   4  Prefactor     1.2259        .17842        .23041E-03   -.85537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05022e-09
Minuit parameter uncertainties:
  1  8.3197
  2  0.320301
  3  0.162322
  4  0.178506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/637526': 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) = 7870.10290698
delta logL = 0.00660119870281

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.602e+01  8.320e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.992e+00  3.203e-01  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:  1.226e+00  1.785e-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:  7.230e-01  1.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.65
Ra Dec: 169.271 20.229
Photon Index (Free Index): 1.99 +/- 0.32
Photon Flux (Free Index): 5.76e-08 +/- 2.99e-08
Energy Flux (Free Index): 4.06e-05 +/- 2.59e-05

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/637526/cmap_HighResolution_563328001_563587201_4FGL_J1117.0+2013_daily_bin1250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.55e-08', energy_flux2='4.06e-05', photon_flux_error='2.33e-08', dlogl='6.60e-03', energy_flux='4.28e-05', photon_flux2='5.76e-08', job_status='DONE', time_completed='2021-09-03 14:34:40.244083', photon_index_error2='0.32', photon_index2='1.99', ts='19.66', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='2.59e-05', EG='0.73', time_epoch_completed='1630704880.24', return_code='0', job_id='637526', GAL2='1.23', EG2='0.72', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='2.99e-08', ts2='19.65', photon_index='1.96' WHERE bin_id='1250' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:34:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 637526: <4FGL_J1117.0+2013_daily_bin1250> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin1250> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep  3 14:21:25 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:21:32 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:21:32 2021
Terminated at Fri Sep  3 14:34:41 2021
Results reported at Fri Sep  3 14:34:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin1250 169.271 20.2294 563328001 563587201 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 :                                   698.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            796 sec.

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

