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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin1469
RA = 169.271, Dec = 20.2294
tmin = 620092801, tmax = 620352001
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='638901', job_status='RUN', time_executed='2021-09-03 14:29:19.333237', time_epoch_executed='1630704559.33' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='1469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638901

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638901/ft1_4FGL_J1117.0+2013_daily_bin1469.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638901/ft2_4FGL_J1117.0+2013_daily_bin1469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638901/ft1_4FGL_J1117.0+2013_daily_bin1469.fits outfile=/scratch/kocevski/638901/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1469.fits ra=169.271 dec=20.2294 rad=12.0 tmin=620092801.0 tmax=620352001.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.45
user 3.21
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638901/ft1_filtered_4FGL_J1117.0+2013_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/638901/ft2_4FGL_J1117.0+2013_daily_bin1469.fits sctable="SC_DATA" expcube=/scratch/kocevski/638901/ltcube_620092801_620352001_4FGL_J1117.0+2013_daily_bin1469.fits outfile=/scratch/kocevski/638901/expmap_620092801_620352001_4FGL_J1117.0+2013_daily_bin1469.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/638901/ltcube_620092801_620352001_4FGL_J1117.0+2013_daily_bin1469.fits
.....................!
real 194.67
user 189.01
sys 5.28

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/638901/ft1_filtered_4FGL_J1117.0+2013_daily_bin1469.fits scfile=/scratch/kocevski/638901/ft2_4FGL_J1117.0+2013_daily_bin1469.fits outfile=/scratch/kocevski/638901/cmap_620092801_620352001_4FGL_J1117.0+2013_daily_bin1469.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.58
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638901/ft1_filtered_4FGL_J1117.0+2013_daily_bin1469.fits scfile=/scratch/kocevski/638901/ft2_4FGL_J1117.0+2013_daily_bin1469.fits outfile=/scratch/kocevski/638901/cmap_HighResolution_620092801_620352001_4FGL_J1117.0+2013_daily_bin1469.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.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    1.8694       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .76732       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.015       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1215       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1820       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9526       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    30.108       1.0000         .10000E-03   10000.    
    12 'norm      '    6.4077       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    57.593       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2500       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .80029       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2731       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=   5338.859     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2706 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8670       -.14257E-05** at limit **
   2  Prefactor     1.8693        2.1659       -.14669E-06   -.28506E-03
   3  Prefactor     .76922        5.1132       -.70561E-06   -.17631E-04
   4  Prefactor     17.011        10.515       -.31452E-05    .84429E-04
   5  Prefactor     9.1222        10.618        .25650E-05    .16523E-04
   6  Prefactor     .10000E-03    6.2862        .20440E-05** at limit **
   7  Prefactor     .10000E-03    7.1220       -.34287E-05** at limit **
   8  norm          2.1814        1.7437        .14444E-06   -.56809E-05
   9  Prefactor     2.9519        2.6797        .41039E-06   -.29025E-03
  10  Prefactor     .10000E-03    6.0482        .23143E-05** at limit **
  11  norm          30.104        16.440       -.55603E-05    .46160E-05
  12  norm          6.4039        11.620       -.66500E-05   -.10080E-03
  13  Prefactor     .10000E-03    6.1327        .22789E-05** at limit **
  14  Prefactor     .10000E-03    4.0139        .13547E-05** at limit **
  15  Prefactor     57.602        53.592        .11950E-04    .66255E-05
  16  Prefactor     .10000E-03    2.4176        .36194E-08** at limit **
  17  Prefactor     .10000E-03    4.7917       -.17839E-05** at limit **
  18  Prefactor     .10000E-03    5.1444       -.52565E-06** at limit **
  19  Prefactor     .10000E-03    .87003        .68472E-08** at limit **
  20  Prefactor     2.2496        3.5700       -.60620E-06   -.54615E-03
  21  Normalizat    .80092        .19335        .15134E-05    .55256E-04
  22  Prefactor     1.2726        .19536        .24258E-06    .97860E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.86931
  Prefactor  = 0.76922
  Prefactor  = 17.0109
  Prefactor  = 9.12218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18137
  Prefactor  = 2.95195
  Prefactor  = 0.0001
  norm       = 30.1045
  norm       = 6.4039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.6021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.24959
  Normalizat = 0.800917
  Prefactor  = 1.2726
 **********
 **   18 **HESSE 
 **********

 FCN=   5338.859     FROM HESSE     STATUS=OK           344 CALLS     3050 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9056        .15725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8693        2.1503        .11062E-03   -1.5435    
   3  Prefactor     .76922        20.589        .30157E-02   -1.5533    
   4  Prefactor     17.011        10.514        .97096E-04   -1.4883    
   5  Prefactor     9.1222        10.601        .13270E-03   -1.5104    
   6  Prefactor     .10000E-03    6.3118        .17876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1814        1.7263        .80095E-04   -1.5413    
   9  Prefactor     2.9519        2.6700        .10847E-03   -1.5364    
  10  Prefactor     .10000E-03    6.0972        .17536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          30.104        16.434        .73018E-04   -1.4610    
  12  norm          6.4039        11.710        .15856E-03   -1.5202    
  13  Prefactor     .10000E-03    6.1646        .17661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.0176        .14297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     57.602        53.488        .52863E-04   -1.4189    
  16  Prefactor     .10000E-03    2.4184        .11096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7972        .15618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.1673        .16183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .89338        .13295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2496        3.5687        .16676E-03   -1.5408    
  21  Normalizat    .80092        .22026        .27281E-03   -1.0003    
  22  Prefactor     1.2726        .22456        .24273E-03   -.84125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34563e-08
Minuit parameter uncertainties:
  1  1.68885e-05
  2  2.15042
  3  7.9617
  4  10.5148
  5  10.6032
  6  1.34682e-05
  7  2.39284e-05
  8  1.7263
  9  2.67014
  10  7.94828e-06
  11  16.4367
  12  11.7141
  13  1.00185e-05
  14  1.43082e-06
  15  53.5328
  16  9.30786e-07
  17  2.46017e-06
  18  8.85719e-06
  19  5.87671e-08
  20  3.56899
  21  0.220505
  22  0.22473
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  7.948e-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:  1.273e+00  2.247e-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.009e-01  2.205e-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: 6.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/638901/likelihoodResults_620092801_620352001_4FGL_J1117.0+2013_daily_bin1469.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) = 5338.86006551
delta logL = -0.000781084928349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5338.85928443
delta logL = -3.33784555551e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9760       1.0000          .0000       10.000    
     3 'Normalizat'    .80094       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2726       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=   5338.859     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    162.98        .90712E-02** at limit **
   2  Index         1.9962        7.7038        .50000       -.27019E-04
   3  Normalizat    .80092        .24342E-01    .43623E-01   -.69164E-04
   4  Prefactor     1.2726        .26760E-01    .54899E-01    .67987E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.99618
  Normalizat = 0.800916
  Prefactor  = 1.2726
 **********
 **   18 **HESSE 
 **********

 FCN=   5338.859     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    253.25        .17804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9962        5.1810        .50000       -.64446    
   3  Normalizat    .80092        .30702E-01    .27281E-03   -1.0003    
   4  Prefactor     1.2726        .33759E-01    .24273E-03   -.84125    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.37079e-08
Minuit parameter uncertainties:
  1  0.00100995
  2  25.4906
  3  0.0307029
  4  0.0337594
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638901': 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) = 5338.85928417
delta logL = 2.5850658858e-07

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.010e-03  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.996e+00  2.549e+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.273e+00  3.376e-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:  8.009e-01  3.070e-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/638901/cmap_HighResolution_620092801_620352001_4FGL_J1117.0+2013_daily_bin1469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', job_status='DONE', photon_flux_upper_limit='6.19e-08', time_completed='2021-09-03 14:40:29.631352', job_id='638901', GAL2='1.27', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630705229.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='2.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1469' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:40:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 638901: <4FGL_J1117.0+2013_daily_bin1469> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin1469> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 14:26:20 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:26:47 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:26:47 2021
Terminated at Fri Sep  3 14:40:30 2021
Results reported at Fri Sep  3 14:40:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin1469 169.271 20.2294 620092801 620352001 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 :                                   662.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            850 sec.

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

