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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin1138
RA = 169.271, Dec = 20.2294
tmin = 534297601, tmax = 534556801
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='637365', job_status='RUN', time_executed='2021-09-03 14:22:10.638119', time_epoch_executed='1630704130.64' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='1138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/637365

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/637365/ft1_4FGL_J1117.0+2013_daily_bin1138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/637365/ft2_4FGL_J1117.0+2013_daily_bin1138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/637365/ft1_4FGL_J1117.0+2013_daily_bin1138.fits outfile=/scratch/kocevski/637365/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1138.fits ra=169.271 dec=20.2294 rad=12.0 tmin=534297601.0 tmax=534556801.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.71
user 3.37
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/637365/ft2_4FGL_J1117.0+2013_daily_bin1138.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/637365/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1138.fits evtable="EVENTS" outfile="/scratch/kocevski/637365/ft1_filtered_4FGL_J1117.0+2013_daily_bin1138.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.57
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/637365/ft1_filtered_4FGL_J1117.0+2013_daily_bin1138.fits" evtable="EVENTS" scfile=/scratch/kocevski/637365/ft2_4FGL_J1117.0+2013_daily_bin1138.fits sctable="SC_DATA" outfile=/scratch/kocevski/637365/ltcube_534297601_534556801_4FGL_J1117.0+2013_daily_bin1138.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/637365/ft2_4FGL_J1117.0+2013_daily_bin1138.fits
.....................!
real 17.02
user 16.41
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/637365/ft1_filtered_4FGL_J1117.0+2013_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/637365/ft2_4FGL_J1117.0+2013_daily_bin1138.fits sctable="SC_DATA" expcube=/scratch/kocevski/637365/ltcube_534297601_534556801_4FGL_J1117.0+2013_daily_bin1138.fits outfile=/scratch/kocevski/637365/expmap_534297601_534556801_4FGL_J1117.0+2013_daily_bin1138.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/637365/ltcube_534297601_534556801_4FGL_J1117.0+2013_daily_bin1138.fits
.....................!
real 193.03
user 186.84
sys 5.29

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/637365/ft1_filtered_4FGL_J1117.0+2013_daily_bin1138.fits scfile=/scratch/kocevski/637365/ft2_4FGL_J1117.0+2013_daily_bin1138.fits outfile=/scratch/kocevski/637365/cmap_534297601_534556801_4FGL_J1117.0+2013_daily_bin1138.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/637365/ft1_filtered_4FGL_J1117.0+2013_daily_bin1138.fits scfile=/scratch/kocevski/637365/ft2_4FGL_J1117.0+2013_daily_bin1138.fits outfile=/scratch/kocevski/637365/cmap_HighResolution_534297601_534556801_4FGL_J1117.0+2013_daily_bin1138.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.57
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16604E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.268       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1765       1.0000         .10000E-03   10000.    
     8 'norm      '    .15734       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4741       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9035       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.650       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.877       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.948       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .73383       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0506       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3102       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6196.051     FROM MIGRAD    STATUS=CONVERGED    891 CALLS     2843 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.693        .31062E-02** at limit **
   2  Prefactor     .10000E-03    .72816        .65238E-03** at limit **
   3  Prefactor     .15320E-02    6.2448        .50087E-01** at limit **
   4  Prefactor     .10000E-03    3.3075        .13931E-02** at limit **
   5  Prefactor     13.268        8.8005        .10996E-03   -.11259E-03
   6  Prefactor     .10000E-03    4.3899        .16082E-02** at limit **
   7  Prefactor     7.1764        7.1144        .14973E-03   -.54135E-04
   8  norm          .14828        4.5619        .13409E-02    .29270E-03
   9  Prefactor     .10000E-03    1.5644        .18885E-03** at limit **
  10  Prefactor     .10000E-03    3.7028        .14738E-02** at limit **
  11  norm          .10000E-03    6.9787        .18142E-02** at limit **
  12  norm          2.4683        11.610        .25994E-03    .18093E-03
  13  Prefactor     6.9026        7.5703        .15269E-03    .22113E-04
  14  Prefactor     .10000E-03    4.3133        .15961E-02** at limit **
  15  Prefactor     16.595        30.414        .98156E-04   -.72969E-04
  16  Prefactor     13.875        11.609        .10752E-03   -.13957E-04
  17  Prefactor     39.917        24.586        .63419E-04    .34777E-04
  18  Prefactor     .73170        19.055        .39822E-02   -.37324E-03
  19  Prefactor     .10000E-03    1.9220        .16081E-02** at limit **
  20  Prefactor     .10000E-03    3.1235        .26718E-03** at limit **
  21  Normalizat    1.0509        .23013        .25721E-03    .80487E-04
  22  Prefactor     1.3101        .24232        .25768E-03   -.26704E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00153203
  Prefactor  = 0.0001
  Prefactor  = 13.2681
  Prefactor  = 0.0001
  Prefactor  = 7.17638
  norm       = 0.148279
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.46826
  Prefactor  = 6.90255
  Prefactor  = 0.0001
  Prefactor  = 16.5951
  Prefactor  = 13.8745
  Prefactor  = 39.9168
  Prefactor  = 0.731699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0509
  Prefactor  = 1.31013
 **********
 **   18 **HESSE 
 **********

 FCN=   6196.051     FROM HESSE     STATUS=OK           334 CALLS     3177 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.758        .62125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .72820        .13048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .15320E-02    5.8673        .52166E-01   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3079        .27862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.268        8.7988        .43986E-05   -1.4979    
   6  Prefactor     .10000E-03    4.3903        .32163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1764        7.1141        .59894E-05   -1.5172    
   8  norm          .14828        4.5028        .53634E-04   -1.5631    
   9  Prefactor     .10000E-03    1.5644        .37769E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.7035        .29476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.9809        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4683        11.595        .10398E-04   -1.5394    
  13  Prefactor     6.9026        7.5697        .61078E-05   -1.5182    
  14  Prefactor     .10000E-03    4.3134        .31921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.595        30.412        .39262E-05   -1.4893    
  16  Prefactor     13.875        11.608        .43009E-05   -1.4963    
  17  Prefactor     39.917        24.569        .25367E-05   -1.4444    
  18  Prefactor     .73170        19.058        .15929E-03   -1.5537    
  19  Prefactor     .10000E-03    1.9258        .32163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1236        .53435E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0509        .22948        .10289E-04   -.91344    
  22  Prefactor     1.3101        .24253        .51535E-04   -.83006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55635e-09
Minuit parameter uncertainties:
  1  0.000143917
  2  9.05159e-08
  3  0.183345
  4  2.77199e-05
  5  8.79968
  6  1.63281e-05
  7  7.11489
  8  1.6338
  9  1.48613e-05
  10  1.65179e-05
  11  5.12883e-05
  12  10.7024
  13  7.57071
  14  9.58414e-06
  15  30.4407
  16  11.6094
  17  24.5754
  18  7.47057
  19  2.27873e-05
  20  2.42536e-05
  21  0.2297
  22  0.242744
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.652e-05  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.310e+00  2.427e-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.051e+00  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/637365/likelihoodResults_534297601_534556801_4FGL_J1117.0+2013_daily_bin1138.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6196.05275217
delta logL = -0.00128209394825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6196.05147003
delta logL = 4.48262653663e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9447       1.0000          .0000       10.000    
     3 'Normalizat'    1.0509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3102       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6196.051     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    36.766        .14821E-02** at limit **
   2  Index         1.9176        5.2492        .50000        .21051E-04
   3  Normalizat    1.0509        .14390E-01    .25721E-03    .12951E-04
   4  Prefactor     1.3101        .15943E-01    .25768E-03    .13986E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100308
  Index      = 1.91758
  Normalizat = 1.05089
  Prefactor  = 1.31014
 **********
 **   18 **HESSE 
 **********

 FCN=   6196.051     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10031E-03    167.19        .29641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9176        5.0499        .50000       -.66427    
   3  Normalizat    1.0509        .32025E-01    .10288E-04   -.91344    
   4  Prefactor     1.3101        .35474E-01    .10307E-04   -.83006    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.38439e-08
Minuit parameter uncertainties:
  1  0.0143962
  2  371.139
  3  0.0320258
  4  0.0354751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/637365': 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) = 6196.05146989
delta logL = 1.89845195564e-07

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.003e-04  1.440e-02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.918e+00  3.711e+02  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.310e+00  3.548e-02  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.051e+00  3.203e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 169.271 20.229

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/637365/cmap_HighResolution_534297601_534556801_4FGL_J1117.0+2013_daily_bin1138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-03', job_status='DONE', photon_flux_upper_limit='4.75e-08', time_completed='2021-09-03 14:34:59.368132', job_id='637365', GAL2='1.31', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630704899.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='1.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1138' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:34:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 637365: <4FGL_J1117.0+2013_daily_bin1138> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin1138 169.271 20.2294 534297601 534556801 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 :                                   743.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            827 sec.

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

