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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin89
RA = 169.271, Dec = 20.2294
tmin = 262396801, tmax = 262656001
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='630611', job_status='RUN', time_executed='2021-09-03 14:02:22.911850', time_epoch_executed='1630702942.91' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630611

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630611/ft1_4FGL_J1117.0+2013_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630611/ft2_4FGL_J1117.0+2013_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630611/ft1_4FGL_J1117.0+2013_daily_bin89.fits outfile=/scratch/kocevski/630611/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin89.fits ra=169.271 dec=20.2294 rad=12.0 tmin=262396801.0 tmax=262656001.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.66
user 1.24
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/630611/ft2_4FGL_J1117.0+2013_daily_bin89.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/630611/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin89.fits evtable="EVENTS" outfile="/scratch/kocevski/630611/ft1_filtered_4FGL_J1117.0+2013_daily_bin89.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.61
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630611/ft1_filtered_4FGL_J1117.0+2013_daily_bin89.fits" evtable="EVENTS" scfile=/scratch/kocevski/630611/ft2_4FGL_J1117.0+2013_daily_bin89.fits sctable="SC_DATA" outfile=/scratch/kocevski/630611/ltcube_262396801_262656001_4FGL_J1117.0+2013_daily_bin89.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/630611/ft2_4FGL_J1117.0+2013_daily_bin89.fits
.....................!
real 14.25
user 13.90
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630611/ft1_filtered_4FGL_J1117.0+2013_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/630611/ft2_4FGL_J1117.0+2013_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/630611/ltcube_262396801_262656001_4FGL_J1117.0+2013_daily_bin89.fits outfile=/scratch/kocevski/630611/expmap_262396801_262656001_4FGL_J1117.0+2013_daily_bin89.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/630611/ltcube_262396801_262656001_4FGL_J1117.0+2013_daily_bin89.fits
.....................!
real 190.52
user 185.55
sys 4.45

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/630611/ft1_filtered_4FGL_J1117.0+2013_daily_bin89.fits scfile=/scratch/kocevski/630611/ft2_4FGL_J1117.0+2013_daily_bin89.fits outfile=/scratch/kocevski/630611/cmap_262396801_262656001_4FGL_J1117.0+2013_daily_bin89.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630611/ft1_filtered_4FGL_J1117.0+2013_daily_bin89.fits scfile=/scratch/kocevski/630611/ft2_4FGL_J1117.0+2013_daily_bin89.fits outfile=/scratch/kocevski/630611/cmap_HighResolution_262396801_262656001_4FGL_J1117.0+2013_daily_bin89.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6802       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2196       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .48427E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2312       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4313       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9752       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4101       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6955       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0020       1.0000         .10000E-03   10000.    
    11 'norm      '    7.5871       1.0000         .10000E-03   10000.    
    12 'norm      '    .11633E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9021       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10928E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2600       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .73076       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.3451       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2720       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97102       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98662       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=   6407.452     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2007 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6783        7.2549        .34013E-02    .11312E-02
   2  Prefactor     .10000E-03    .74065        .90712E-02** at limit **
   3  Prefactor     4.2210        5.0996        .49043E-02    .12288E-02
   4  Prefactor     .10000E-03    10.701        .10587E-01** at limit **
   5  Prefactor     5.2175        10.080        .43937E-02   -.11676E-02
   6  Prefactor     7.4322        7.8513        .36781E-02   -.16836E-03
   7  Prefactor     5.9613        13.066        .41067E-02   -.19641E-02
   8  norm          1.4107        1.2251        .91218E-02    .68265E-03
   9  Prefactor     2.6958        2.4179        .62034E-02    .10721E-03
  10  Prefactor     8.0039        6.4104        .35435E-02    .12178E-03
  11  norm          7.5901        9.5829        .36398E-02    .12629E-03
  12  norm          .10003E-03    7.0836        .10330    ** at limit **
  13  Prefactor     6.9050        9.9170        .38178E-02    .36169E-03
  14  Prefactor     .10000E-03    14.027        .90712E-02** at limit **
  15  Prefactor     9.2635        18.693        .32926E-02   -.30990E-03
  16  Prefactor     .73471        10.245        .91459E-01    .78778E-03
  17  Prefactor     .10000E-03    6.5463        .90712E-02** at limit **
  18  Prefactor     9.3466        9.2960        .32775E-02   -.30523E-03
  19  Prefactor     1.2722        1.6255        .98588E-02    .81853E-03
  20  Prefactor     .10000E-03    1.5427        .90712E-02** at limit **
  21  Normalizat    .97070        .17783        .45803E-01    .29351E-04
  22  Prefactor     .98675        .17332        .46100E-01    .27705E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.67828
  Prefactor  = 0.0001
  Prefactor  = 4.22099
  Prefactor  = 0.000100002
  Prefactor  = 5.21752
  Prefactor  = 7.43217
  Prefactor  = 5.96125
  norm       = 1.41069
  Prefactor  = 2.69585
  Prefactor  = 8.00393
  norm       = 7.59006
  norm       = 0.000100028
  Prefactor  = 6.90499
  Prefactor  = 0.000100001
  Prefactor  = 9.26349
  Prefactor  = 0.734713
  Prefactor  = 0.0001
  Prefactor  = 9.34656
  Prefactor  = 1.27217
  Prefactor  = 0.0001
  Normalizat = 0.9707
  Prefactor  = 0.986753
 **********
 **   18 **HESSE 
 **********

 FCN=   6407.452     FROM HESSE     STATUS=OK           354 CALLS     2361 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6783        7.2592        .13605E-03   -1.5119    
   2  Prefactor     .10000E-03    .75032        .67185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2210        5.0881        .18895E-03   -1.5297    
   4  Prefactor     .10000E-03    10.876        .42346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.2175        9.9108        .17575E-03   -1.5251    
   6  Prefactor     7.4322        7.8401        .14712E-03   -1.5163    
   7  Prefactor     5.9613        12.985        .16427E-03   -1.5220    
   8  norm          1.4107        1.2056        .77637E-04   -1.5470    
   9  Prefactor     2.6958        2.4179        .11125E-03   -1.5380    
  10  Prefactor     8.0039        6.4125        .14174E-03   -1.5142    
  11  norm          7.5901        9.5666        .14559E-03   -1.5157    
  12  norm          .10003E-03    73.436        .39795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.9050        9.9153        .15271E-03   -1.5182    
  14  Prefactor     .10000E-03    14.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.2635        18.681        .13170E-03   -1.5099    
  16  Prefactor     .73471        55.002        .48191E-02   -1.5537    
  17  Prefactor     .10000E-03    6.5616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.3466        9.2933        .13110E-03   -1.5096    
  19  Prefactor     1.2722        1.5994        .11027E-03   -1.5482    
  20  Prefactor     .10000E-03    1.5745        .97056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .97070        .20367        .23960E-03   -.94019    
  22  Prefactor     .98675        .20120        .25358E-03   -.93172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87412e-08
Minuit parameter uncertainties:
  1  7.25993
  2  1.68093e-07
  3  5.0886
  4  0.000301003
  5  9.91391
  6  7.84122
  7  12.9914
  8  1.20565
  9  2.41799
  10  6.41304
  11  9.56857
  12  0.00287617
  13  9.91762
  14  0.00021258
  15  18.6925
  16  12.7252
  17  1.95298e-05
  18  9.29472
  19  1.59944
  20  5.10578e-07
  21  0.203831
  22  0.201354
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  8.004e+00  6.413e+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:  9.868e-01  2.014e-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.707e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.54
Ra Dec: 169.271 20.229
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.69e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.66e-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) = 6407.24171042
delta logL = 0.210436585699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6407.23899117
delta logL = 0.213155840034

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8502       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4587       1.0000          .0000       10.000    
     3 'Normalizat'    .98818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97873       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=   6407.239     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      232 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8449        7.2450        .35778E-02   -.11817E-02
   2  Index         1.4578        .60728        .22043       -.73830E-04
   3  Normalizat    .98776        .16223        .46019E-01    .88267E-04
   4  Prefactor     .97887        .17188        .46001E-01    .73269E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.84486
  Index      = 1.4578
  Normalizat = 0.987763
  Prefactor  = 0.978867
 **********
 **   18 **HESSE 
 **********

 FCN=   6407.239     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8449        6.9256        .71557E-03   -1.5148    
   2  Index         1.4578        .65955        .11631E-01   -.78729    
   3  Normalizat    .98776        .18627        .23769E-03   -.93442    
   4  Prefactor     .97887        .19898        .25448E-03   -.93437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95194e-11
Minuit parameter uncertainties:
  1  6.92633
  2  0.663449
  3  0.186393
  4  0.199127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630611': 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) = 6407.23898377
delta logL = 0.213163239197

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  7.845e+00  6.926e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.458e+00  6.634e-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:  9.789e-01  1.991e-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.878e-01  1.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.96
Ra Dec: 169.271 20.229
Photon Index (Free Index): 1.46 +/- 0.66
Photon Flux (Free Index): 1.21e-08 +/- 1.61e-08
Energy Flux (Free Index): 4.41e-05 +/- 6.27e-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/630611/cmap_HighResolution_262396801_262656001_4FGL_J1117.0+2013_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.69e-08', energy_flux2='4.41e-05', photon_flux_error='2.15e-08', dlogl='2.13e-01', energy_flux='2.07e-05', photon_flux2='1.21e-08', job_status='DONE', time_completed='2021-09-03 14:13:32.360463', photon_index_error2='0.66', photon_index2='1.46', ts='7.54', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='6.27e-05', EG='0.97', time_epoch_completed='1630703612.36', return_code='0', job_id='630611', GAL2='0.98', EG2='0.99', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='1.61e-08', ts2='7.96', photon_index='1.96' WHERE bin_id='89' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:13:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 630611: <4FGL_J1117.0+2013_daily_bin89> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin89 169.271 20.2294 262396801 262656001 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 :                                   585.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            957 sec.

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

