/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 51 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 = 7469
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1117.0+2013_daily_bin115
RA = 169.271, Dec = 20.2294
tmin = 269136001, tmax = 269395201
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='630651', job_status='RUN', time_executed='2021-09-03 14:01:39.667440', time_epoch_executed='1630702899.67' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630651/ft1_4FGL_J1117.0+2013_daily_bin115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630651/ft2_4FGL_J1117.0+2013_daily_bin115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630651/ft1_4FGL_J1117.0+2013_daily_bin115.fits outfile=/scratch/kocevski/630651/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin115.fits ra=169.271 dec=20.2294 rad=12.0 tmin=269136001.0 tmax=269395201.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.73
user 1.50
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630651/ft1_filtered_4FGL_J1117.0+2013_daily_bin115.fits evtable="EVENTS" scfile=/scratch/kocevski/630651/ft2_4FGL_J1117.0+2013_daily_bin115.fits sctable="SC_DATA" expcube=/scratch/kocevski/630651/ltcube_269136001_269395201_4FGL_J1117.0+2013_daily_bin115.fits outfile=/scratch/kocevski/630651/expmap_269136001_269395201_4FGL_J1117.0+2013_daily_bin115.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/630651/ltcube_269136001_269395201_4FGL_J1117.0+2013_daily_bin115.fits
.....................!
real 192.41
user 186.94
sys 4.86

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/630651/ft1_filtered_4FGL_J1117.0+2013_daily_bin115.fits scfile=/scratch/kocevski/630651/ft2_4FGL_J1117.0+2013_daily_bin115.fits outfile=/scratch/kocevski/630651/cmap_269136001_269395201_4FGL_J1117.0+2013_daily_bin115.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630651/ft1_filtered_4FGL_J1117.0+2013_daily_bin115.fits scfile=/scratch/kocevski/630651/ft2_4FGL_J1117.0+2013_daily_bin115.fits outfile=/scratch/kocevski/630651/cmap_HighResolution_269136001_269395201_4FGL_J1117.0+2013_daily_bin115.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8499       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4397       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .39036       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.648       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .25471E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10989E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6970       1.0000         .10000E-03   10000.    
    11 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.7897       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.827       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5785       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5468       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89768       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1772       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=   7129.139     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2072 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8497        8.3109        .32499E-06    .66978E-04
   2  Prefactor     1.4407        2.1394       -.12069E-05   -.66115E-04
   3  Prefactor     .41369        32.093        .66106E-05   -.21915E-03
   4  Prefactor     .10000E-03    5.8999        .43985E-06** at limit **
   5  Prefactor     12.647        8.1629        .31441E-06   -.24360E-04
   6  Prefactor     .10000E-03    3.7484       -.81658E-08** at limit **
   7  Prefactor     .10000E-03    3.9681        .33223E-06** at limit **
   8  norm          .10003E-03    .60454       -.22260E-06** at limit **
   9  Prefactor     .10000E-03    1.2083        .34765E-06** at limit **
  10  Prefactor     4.6974        4.2066        .15835E-06   -.24171E-04
  11  norm          .10000E-03    8.3415        .58317E-06** at limit **
  12  norm          .10000E-03    5.5564       -.64866E-07** at limit **
  13  Prefactor     6.7905        6.4186        .24569E-06   -.43220E-04
  14  Prefactor     20.833        14.379       -.26323E-06   -.19366E-03
  15  Prefactor     .10000E-03    16.050        .14679E-06** at limit **
  16  Prefactor     .10000E-03    5.0998       -.13115E-05** at limit **
  17  Prefactor     .10000E-03    3.0237        .20611E-07** at limit **
  18  Prefactor     8.5801        8.6438       -.26599E-06   -.19200E-03
  19  Prefactor     3.5474        1.9973       -.14800E-06   -.18697E-03
  20  Prefactor     .10001E-03    2.1717       -.41924E-06** at limit **
  21  Normalizat    .89755        .17028       -.60141E-06   -.48011E-03
  22  Prefactor     1.1772        .17026       -.12999E-05   -.33117E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.84967
  Prefactor  = 1.44067
  Prefactor  = 0.413695
  Prefactor  = 0.0001
  Prefactor  = 12.6474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 4.69735
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.7905
  Prefactor  = 20.8328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.58008
  Prefactor  = 3.54736
  Prefactor  = 0.00010001
  Normalizat = 0.897554
  Prefactor  = 1.1772
 **********
 **   18 **HESSE 
 **********

 FCN=   7129.139     FROM HESSE     STATUS=OK           348 CALLS     2420 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8497        8.2640        .14312E-03   -1.5148    
   2  Prefactor     1.4407        2.0913        .13802E-03   -1.5468    
   3  Prefactor     .41369        36.739        .29978E-02   -1.5579    
   4  Prefactor     .10000E-03    5.9907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.647        8.1589        .11263E-03   -1.4997    
   6  Prefactor     .10000E-03    3.7462        .15940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9595        .16393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10003E-03    13.230        .11189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.5859        .17612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.6974        4.2097        .15902E-03   -1.5274    
  11  norm          .10000E-03    8.5626        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.5773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.7905        6.4240        .15398E-03   -1.5187    
  14  Prefactor     20.833        14.259        .87766E-04   -1.4795    
  15  Prefactor     .10000E-03    16.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.0731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.0246        .14339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.5801        8.5885        .13686E-03   -1.5122    
  19  Prefactor     3.5474        1.9852        .84969E-04   -1.5331    
  20  Prefactor     .10001E-03    6.9855        .19489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .89755        .19439        .25357E-03   -.96546    
  22  Prefactor     1.1772        .19866        .24284E-03   -.87036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85216e-09
Minuit parameter uncertainties:
  1  8.26523
  2  2.0914
  3  7.80114
  4  1.63592e-05
  5  8.15961
  6  1.96429e-05
  7  3.79523e-05
  8  0.00121031
  9  0.000117327
  10  4.20994
  11  7.41665e-06
  12  9.92652e-06
  13  6.42462
  14  14.2609
  15  5.6031e-05
  16  7.24051e-07
  17  3.61441e-06
  18  8.58972
  19  1.98527
  20  0.000517018
  21  0.19454
  22  0.198783
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  4.697e+00  4.210e+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.177e+00  1.988e-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:  8.976e-01  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.64
Ra Dec: 169.271 20.229
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 1.58e-08 +/- 1.41e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.09e-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) = 7128.43830847
delta logL = 0.700932187047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7128.43118365
delta logL = 0.708057008584

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1760       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2022       1.0000          .0000       10.000    
     3 'Normalizat'    .91056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1703       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=   7128.431     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1786        3.9918        .49306E-02   -.16833E-03
   2  Index         1.2012        .46068        .28211       -.49641E-04
   3  Normalizat    .91080        .15383        .45036E-01    .13281E-04
   4  Prefactor     1.1701        .16678        .55063E-01    .67408E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.17863
  Index      = 1.20115
  Normalizat = 0.910796
  Prefactor  = 1.17013
 **********
 **   18 **HESSE 
 **********

 FCN=   7128.431     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1786        4.6792        .15945E-03   -1.5299    
   2  Index         1.2012        .57882        .11572E-01   -.86296    
   3  Normalizat    .91080        .18116        .25187E-03   -.96082    
   4  Prefactor     1.1701        .19672        .24347E-03   -.87255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68865e-12
Minuit parameter uncertainties:
  1  4.67956
  2  0.581923
  3  0.181281
  4  0.196846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630651': 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) = 7128.43117933
delta logL = 0.708061326982

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  4.179e+00  4.680e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.201e+00  5.819e-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.170e+00  1.968e-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:  9.108e-01  1.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.05
Ra Dec: 169.271 20.229
Photon Index (Free Index): 1.20 +/- 0.58
Photon Flux (Free Index): 5.40e-09 +/- 6.54e-09
Energy Flux (Free Index): 4.49e-05 +/- 6.17e-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/630651/cmap_HighResolution_269136001_269395201_4FGL_J1117.0+2013_daily_bin115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-08', energy_flux2='4.49e-05', photon_flux_error='1.41e-08', dlogl='7.08e-01', energy_flux='1.22e-05', photon_flux2='5.40e-09', job_status='DONE', time_completed='2021-09-03 14:12:21.635417', photon_index_error2='0.58', photon_index2='1.20', ts='5.64', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='6.17e-05', EG='0.90', time_epoch_completed='1630703541.64', return_code='0', job_id='630651', GAL2='1.17', EG2='0.91', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='6.54e-09', ts2='7.05', photon_index='1.96' WHERE bin_id='115' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:12:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 630651: <4FGL_J1117.0+2013_daily_bin115> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin115 169.271 20.2294 269136001 269395201 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 :                                   624.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            882 sec.

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

