/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 22 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 = 7404
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1117.0+2013_daily_bin60
RA = 169.271, Dec = 20.2294
tmin = 254880001, tmax = 255139201
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='630565', job_status='RUN', time_executed='2021-09-03 14:01:17.499651', time_epoch_executed='1630702877.5' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='60'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630565

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630565/ft1_4FGL_J1117.0+2013_daily_bin60.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630565/ft2_4FGL_J1117.0+2013_daily_bin60.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630565/ft1_4FGL_J1117.0+2013_daily_bin60.fits outfile=/scratch/kocevski/630565/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin60.fits ra=169.271 dec=20.2294 rad=12.0 tmin=254880001.0 tmax=255139201.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 1.98
user 1.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630565/ft1_filtered_4FGL_J1117.0+2013_daily_bin60.fits" evtable="EVENTS" scfile=/scratch/kocevski/630565/ft2_4FGL_J1117.0+2013_daily_bin60.fits sctable="SC_DATA" outfile=/scratch/kocevski/630565/ltcube_254880001_255139201_4FGL_J1117.0+2013_daily_bin60.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/630565/ft2_4FGL_J1117.0+2013_daily_bin60.fits
.....................!
real 18.78
user 18.01
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630565/ft1_filtered_4FGL_J1117.0+2013_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/630565/ft2_4FGL_J1117.0+2013_daily_bin60.fits sctable="SC_DATA" expcube=/scratch/kocevski/630565/ltcube_254880001_255139201_4FGL_J1117.0+2013_daily_bin60.fits outfile=/scratch/kocevski/630565/expmap_254880001_255139201_4FGL_J1117.0+2013_daily_bin60.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/630565/ltcube_254880001_255139201_4FGL_J1117.0+2013_daily_bin60.fits
.....................!
real 196.22
user 189.32
sys 4.27

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/630565/ft1_filtered_4FGL_J1117.0+2013_daily_bin60.fits scfile=/scratch/kocevski/630565/ft2_4FGL_J1117.0+2013_daily_bin60.fits outfile=/scratch/kocevski/630565/cmap_254880001_255139201_4FGL_J1117.0+2013_daily_bin60.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.59
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630565/ft1_filtered_4FGL_J1117.0+2013_daily_bin60.fits scfile=/scratch/kocevski/630565/ft2_4FGL_J1117.0+2013_daily_bin60.fits outfile=/scratch/kocevski/630565/cmap_HighResolution_254880001_255139201_4FGL_J1117.0+2013_daily_bin60.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.61
user 0.44
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1490       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8177       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.126       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1205       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0984       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9519       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.9630       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .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 '    2.5703       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3921       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .58166       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3606       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=   6010.328     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     1989 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1496        5.2003       -.30027E-07    .19005E-04
   2  Prefactor     .10000E-03    1.4556       -.21173E-06** at limit **
   3  Prefactor     1.8176        3.5304        .11929E-05    .65442E-05
   4  Prefactor     .10000E-03    2.3237       -.46428E-06** at limit **
   5  Prefactor     14.126        9.8369        .30461E-06    .62625E-04
   6  Prefactor     .10000E-03    6.9538       -.11031E-05** at limit **
   7  Prefactor     .10000E-03    7.1479       -.18006E-05** at limit **
   8  norm          1.1206        1.3157       -.40251E-08   -.13603E-03
   9  Prefactor     4.0985        2.4507        .39661E-07    .87237E-04
  10  Prefactor     2.9518        2.1763        .53264E-07   -.65586E-03
  11  norm          .10000E-03    4.6812       -.10206E-06** at limit **
  12  norm          7.9627        8.7941       -.44420E-07    .87306E-06
  13  Prefactor     .10000E-03    6.3144        .16076E-05** at limit **
  14  Prefactor     .10000E-03    9.2263       -.15359E-05** at limit **
  15  Prefactor     .10000E-03    14.056       -.28925E-05** at limit **
  16  Prefactor     .10000E-03    4.5818       -.91634E-06** at limit **
  17  Prefactor     .10000E-03    4.2011       -.11324E-06** at limit **
  18  Prefactor     .10000E-03    11.620        .39472E-05** at limit **
  19  Prefactor     2.5702        1.7210       -.10836E-07   -.51131E-04
  20  Prefactor     2.3917        4.1808       -.10826E-06   -.13861E-03
  21  Normalizat    .58168        .16171       -.29891E-06    .12362E-04
  22  Prefactor     1.3606        .17414        .43049E-06   -.21332E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.14962
  Prefactor  = 0.0001
  Prefactor  = 1.81757
  Prefactor  = 0.0001
  Prefactor  = 14.1262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12058
  Prefactor  = 4.09849
  Prefactor  = 2.95182
  norm       = 0.0001
  norm       = 7.96267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.57019
  Prefactor  = 2.39174
  Normalizat = 0.581677
  Prefactor  = 1.36058
 **********
 **   18 **HESSE 
 **********

 FCN=   6010.328     FROM HESSE     STATUS=OK           342 CALLS     2331 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1496        5.1975        .15703E-03   -1.5212    
   2  Prefactor     .10000E-03    1.5099        .18221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8176        3.5112        .19680E-03   -1.5438    
   4  Prefactor     .10000E-03    2.3303        .11542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.126        9.8443        .10657E-03   -1.4956    
   6  Prefactor     .10000E-03    7.0023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1206        1.2927        .90306E-04   -1.5496    
   9  Prefactor     4.0985        2.4487        .90557E-04   -1.5303    
  10  Prefactor     2.9518        7.7136        .11819E-02   -1.5364    
  11  norm          .10000E-03    4.7391        .16378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.9627        8.7961        .14209E-03   -1.5144    
  13  Prefactor     .10000E-03    6.3515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5918        .16204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2055        .15518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.727        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5702        1.7156        .79721E-04   -1.5387    
  20  Prefactor     2.3917        4.1880        .19810E-03   -1.5399    
  21  Normalizat    .58168        .18785        .28698E-03   -1.0877    
  22  Prefactor     1.3606        .20221        .21789E-03   -.81523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.83469e-10
Minuit parameter uncertainties:
  1  5.19786
  2  6.07214e-07
  3  3.51158
  4  1.7634e-06
  5  9.84545
  6  2.31395e-06
  7  5.89988e-06
  8  1.29273
  9  2.44871
  10  7.71617
  11  1.43653e-06
  12  8.79754
  13  2.62283e-06
  14  6.74679e-07
  15  7.00503e-06
  16  2.50251e-07
  17  1.23127e-07
  18  2.97287e-05
  19  1.71565
  20  4.18855
  21  0.188052
  22  0.202332
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  2.952e+00  7.716e+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.361e+00  2.023e-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:  5.817e-01  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 169.271 20.229
Photon Flux Upper Limit: 7.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/630565/likelihoodResults_254880001_255139201_4FGL_J1117.0+2013_daily_bin60.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) = 6009.27190207
delta logL = 1.05656051938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6009.24900742
delta logL = 1.07945516462

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91165       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2780       1.0000          .0000       10.000    
     3 'Normalizat'    .50852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4061       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=   6009.249     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      307 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90942        9.3763        .11769E-01    .70564E-03
   2  Index         3.2790        1.9488        .10562        .15342E-03
   3  Normalizat    .50857        .38002E-01    .69104E-01    .27245E-04
   4  Prefactor     1.4060        .42235E-01    .48594E-01   -.28792E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.90942
  Index      = 3.27898
  Normalizat = 0.50857
  Prefactor  = 1.40598
 **********
 **   18 **HESSE 
 **********

 FCN=   6009.249     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      342 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90942        23.534        .53464E-03   -1.5517    
   2  Index         3.2790        3.6297        .37347E-02   -.35139    
   3  Normalizat    .50857        .16245        .30589E-03   -1.1202    
   4  Prefactor     1.4060        .17996        .21480E-03   -.80208    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.28343e-08
Minuit parameter uncertainties:
  1  9.25599
  2  4.14914
  3  0.162601
  4  0.180039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630565': 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) = 6009.24900667
delta logL = 1.07945592032

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  9.094e-01  9.256e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  3.279e+00  4.149e+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:  1.406e+00  1.800e-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:  5.086e-01  1.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 169.271 20.229
Photon Index (Free Index): 3.28 +/- 4.15
Photon Flux (Free Index): 6.36e-08 +/- 4.97e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.54e-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/630565/cmap_HighResolution_254880001_255139201_4FGL_J1117.0+2013_daily_bin60.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.38e-03', comment='SUCCESS', energy_flux2='1.13e-05', dlogl='1.08e+00', photon_flux2='6.36e-08', job_status='DONE', time_completed='2021-09-03 14:12:10.564856', photon_index_error2='4.15', photon_index2='3.28', ts='0.17', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', photon_flux_upper_limit='7.20e-08', energy_flux_error2='1.54e-05', EG='0.58', time_epoch_completed='1630703530.56', return_code='0', job_id='630565', GAL2='1.41', EG2='0.51', return_code2='102', photon_flux_error2='4.97e-08', ts2='2.49', photon_index='1.96' WHERE bin_id='60' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:12:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 630565: <4FGL_J1117.0+2013_daily_bin60> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin60> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep  3 13:57:33 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:00:03 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:00:03 2021
Terminated at Fri Sep  3 14:12:11 2021
Results reported at Fri Sep  3 14:12:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin60 169.271 20.2294 254880001 255139201 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 :                                   640.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            878 sec.

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

