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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin557
RA = 169.271, Dec = 20.2294
tmin = 383702401, tmax = 383961601
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='635662', job_status='RUN', time_executed='2021-09-03 14:20:01.588005', time_epoch_executed='1630704001.59' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='557'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/635662

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/635662/ft1_4FGL_J1117.0+2013_daily_bin557.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/635662/ft2_4FGL_J1117.0+2013_daily_bin557.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/635662/ft1_4FGL_J1117.0+2013_daily_bin557.fits outfile=/scratch/kocevski/635662/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin557.fits ra=169.271 dec=20.2294 rad=12.0 tmin=383702401.0 tmax=383961601.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 4.49
user 4.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/635662/ft1_filtered_4FGL_J1117.0+2013_daily_bin557.fits" evtable="EVENTS" scfile=/scratch/kocevski/635662/ft2_4FGL_J1117.0+2013_daily_bin557.fits sctable="SC_DATA" outfile=/scratch/kocevski/635662/ltcube_383702401_383961601_4FGL_J1117.0+2013_daily_bin557.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/635662/ft2_4FGL_J1117.0+2013_daily_bin557.fits
.....................!
real 12.58
user 12.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/635662/ft1_filtered_4FGL_J1117.0+2013_daily_bin557.fits evtable="EVENTS" scfile=/scratch/kocevski/635662/ft2_4FGL_J1117.0+2013_daily_bin557.fits sctable="SC_DATA" expcube=/scratch/kocevski/635662/ltcube_383702401_383961601_4FGL_J1117.0+2013_daily_bin557.fits outfile=/scratch/kocevski/635662/expmap_383702401_383961601_4FGL_J1117.0+2013_daily_bin557.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/635662/ltcube_383702401_383961601_4FGL_J1117.0+2013_daily_bin557.fits
.....................!
real 194.18
user 187.25
sys 5.16

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/635662/ft1_filtered_4FGL_J1117.0+2013_daily_bin557.fits scfile=/scratch/kocevski/635662/ft2_4FGL_J1117.0+2013_daily_bin557.fits outfile=/scratch/kocevski/635662/cmap_383702401_383961601_4FGL_J1117.0+2013_daily_bin557.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/635662/ft1_filtered_4FGL_J1117.0+2013_daily_bin557.fits scfile=/scratch/kocevski/635662/ft2_4FGL_J1117.0+2013_daily_bin557.fits outfile=/scratch/kocevski/635662/cmap_HighResolution_383702401_383961601_4FGL_J1117.0+2013_daily_bin557.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4447       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11079E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.242       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1543       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3991       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4974       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5395       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.944       1.0000         .10000E-03   10000.    
    12 'norm      '    6.4433       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10560E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0579       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.031       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .69599E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.144       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0494       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7237       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0375       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86181       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5127.625     FROM MIGRAD    STATUS=CONVERGED     84 CALLS     2055 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7777        .12095E-06** at limit **
   2  Prefactor     2.4449        1.6543        .57118E-07    .42671E-04
   3  Prefactor     .10000E-03    3.4391       -.12411E-06** at limit **
   4  Prefactor     .10000E-03    11.455       -.15424E-06** at limit **
   5  Prefactor     10.238        6.3936       -.65698E-06    .13515E-02
   6  Prefactor     1.1531        1.4961       -.43135E-07   -.51813E-03
   7  Prefactor     8.3692        3.9234        .67508E-06   -.18406E-02
   8  norm          2.4977        1.3549       -.43915E-07   -.35629E-04
   9  Prefactor     3.5424        2.5080       -.59449E-07    .72310E-04
  10  Prefactor     .10000E-03    2.2768        .94903E-07** at limit **
  11  norm          14.945        1.0038        .96380E-08    .92560E-04
  12  norm          6.4554        7.8461        .48749E-06    .22599E-02
  13  Prefactor     .10001E-03    28.073        .93433E-06** at limit **
  14  Prefactor     .10000E-03    6.4310       -.46541E-07** at limit **
  15  Prefactor     3.0697        2.2254       -.68339E-06    .36634E-03
  16  Prefactor     22.046        3.9085       -.27277E-06    .52909E-02
  17  Prefactor     .10055E-03    193.73        .16054E-04** at limit **
  18  Prefactor     10.158        3.0590       -.24318E-06    .15408E-02
  19  Prefactor     1.0492        1.2361        .20244E-07    .66073E-05
  20  Prefactor     2.7227        4.0289       -.36517E-06   -.47371E-04
  21  Normalizat    1.0368        .20678        .18217E-06    .30450E-06
  22  Prefactor     .86247        .22072       -.72982E-08   -.15761E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.44485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2377
  Prefactor  = 1.15312
  Prefactor  = 8.36919
  norm       = 2.49771
  Prefactor  = 3.54243
  Prefactor  = 0.0001
  norm       = 14.9447
  norm       = 6.45544
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 3.06975
  Prefactor  = 22.0463
  Prefactor  = 0.000100546
  Prefactor  = 10.1585
  Prefactor  = 1.04917
  Prefactor  = 2.72266
  Normalizat = 1.03682
  Prefactor  = 0.862474
 **********
 **   18 **HESSE 
 **********

 FCN=   5127.625     FROM HESSE     STATUS=OK           396 CALLS     2451 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7730        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.4449        1.6630        .65413E-02   -1.5395    
   3  Prefactor     .10000E-03    3.4141        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.329        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.238        14.531        .31300E-02   -1.5068    
   6  Prefactor     1.1531        16.148        .10750E-01   -1.5493    
   7  Prefactor     8.3692        23.802        .34581E-02   -1.5129    
   8  norm          2.4977        1.3593        .64655E-02   -1.5392    
   9  Prefactor     3.5424        2.6470        .53713E-02   -1.5332    
  10  Prefactor     .10000E-03    2.2750        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.945        9.9249        .25902E-02   -1.4935    
  12  norm          6.4554        10.264        .39528E-02   -1.5200    
  13  Prefactor     .10001E-03    27.586        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4228        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0697        64.813        .57998E-02   -1.5358    
  16  Prefactor     22.046        13.972        .21334E-02   -1.4769    
  17  Prefactor     .10055E-03    18.479        .93545E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.158        12.793        .31452E-02   -1.5070    
  19  Prefactor     1.0492        1.2489        .12095E-02   -1.5503    
  20  Prefactor     2.7227        4.1017        .61689E-02   -1.5378    
  21  Normalizat    1.0368        .19490        .41487E-01   -.91807    
  22  Prefactor     .86247        .19261        .44516E-01   -.97465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75048e-06
Minuit parameter uncertainties:
  1  1.40934e-06
  2  1.66302
  3  1.82962e-06
  4  1.05363e-05
  5  14.5362
  6  8.63274
  7  23.8292
  8  1.35933
  9  2.64713
  10  1.99237e-06
  11  9.92595
  12  10.2669
  13  0.000838412
  14  1.49125e-07
  15  28.245
  16  13.9743
  17  0.00635748
  18  12.7965
  19  1.24892
  20  4.10215
  21  0.195033
  22  0.192764
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.992e-06  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:  8.625e-01  1.928e-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.037e+00  1.950e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/635662/likelihoodResults_383702401_383961601_4FGL_J1117.0+2013_daily_bin557.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) = 5127.62694494
delta logL = -0.00206203892685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5127.62488283
delta logL = 6.33917807136e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9478       1.0000          .0000       10.000    
     3 'Normalizat'    1.0368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86248       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5127.625     FROM MIGRAD    STATUS=FAILED        87 CALLS      234 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    543.50        .10581E-02** at limit **
   2  Index         1.9388        7.7276        .50000        .29939E-04
   3  Normalizat    1.0368        .16398        .22673E-03    .57964E-04
   4  Prefactor     .86247        .17616        .26348E-03    .55444E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5127.625     FROM SIMPLEX   STATUS=UNCHANGED    188 CALLS      422 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    543.50        .23259E-03** at limit **
   2  Index         1.9388        7.7276        .64344E-06    .29939E-04
   3  Normalizat    1.0368        .16398        .50755E-07    .57964E-04
   4  Prefactor     .86247        .17616        .41901E-07    .55444E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5127.625     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      456 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4124        .21162E-03** at limit **
   2  Index         1.9386        5.9529        .50000        .29920E-04
   3  Normalizat    1.0368        .20264        .90692E-05    .61675E-04
   4  Prefactor     .86247        .21779        .10539E-04    .57818E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.93855
  Normalizat = 1.03682
  Prefactor  = 0.862474
 **********
 **   18 **HESSE 
 **********

 FCN=   5127.625     FROM HESSE     STATUS=OK            29 CALLS      485 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2945        .42324E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9386        5.9594        .50000       -.65895    
   3  Normalizat    1.0368        .20278        .18138E-05   -.91807    
   4  Prefactor     .86247        .21796        .21079E-05   -.97465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72635e-09
Minuit parameter uncertainties:
  1  0.000137786
  2  3.95693
  3  0.202928
  4  0.218183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/635662': 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) = 5127.62488276
delta logL = 1.39997609949e-07

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.378e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.939e+00  3.957e+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:  8.625e-01  2.182e-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.037e+00  2.029e-01  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/635662/cmap_HighResolution_383702401_383961601_4FGL_J1117.0+2013_daily_bin557.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-03', job_status='DONE', photon_flux_upper_limit='4.11e-08', time_completed='2021-09-03 14:30:29.561301', job_id='635662', GAL2='0.86', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630704629.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='557' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:30:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 635662: <4FGL_J1117.0+2013_daily_bin557> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin557> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 14:16:22 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:16:34 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:16:34 2021
Terminated at Fri Sep  3 14:30:30 2021
Results reported at Fri Sep  3 14:30:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin557 169.271 20.2294 383702401 383961601 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 :                                   623.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            848 sec.

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

