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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin1432
RA = 169.271, Dec = 20.2294
tmin = 610502401, tmax = 610761601
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='638847', job_status='RUN', time_executed='2021-09-03 14:29:15.619229', time_epoch_executed='1630704555.62' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='1432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638847

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638847/ft1_4FGL_J1117.0+2013_daily_bin1432.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638847/ft2_4FGL_J1117.0+2013_daily_bin1432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638847/ft1_4FGL_J1117.0+2013_daily_bin1432.fits outfile=/scratch/kocevski/638847/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1432.fits ra=169.271 dec=20.2294 rad=12.0 tmin=610502401.0 tmax=610761601.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.62
user 3.37
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/638847/ft1_filtered_4FGL_J1117.0+2013_daily_bin1432.fits" evtable="EVENTS" scfile=/scratch/kocevski/638847/ft2_4FGL_J1117.0+2013_daily_bin1432.fits sctable="SC_DATA" outfile=/scratch/kocevski/638847/ltcube_610502401_610761601_4FGL_J1117.0+2013_daily_bin1432.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/638847/ft2_4FGL_J1117.0+2013_daily_bin1432.fits
.....................!
real 15.09
user 14.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638847/ft1_filtered_4FGL_J1117.0+2013_daily_bin1432.fits evtable="EVENTS" scfile=/scratch/kocevski/638847/ft2_4FGL_J1117.0+2013_daily_bin1432.fits sctable="SC_DATA" expcube=/scratch/kocevski/638847/ltcube_610502401_610761601_4FGL_J1117.0+2013_daily_bin1432.fits outfile=/scratch/kocevski/638847/expmap_610502401_610761601_4FGL_J1117.0+2013_daily_bin1432.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/638847/ltcube_610502401_610761601_4FGL_J1117.0+2013_daily_bin1432.fits
.....................!
real 193.18
user 187.48
sys 5.27

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/638847/ft1_filtered_4FGL_J1117.0+2013_daily_bin1432.fits scfile=/scratch/kocevski/638847/ft2_4FGL_J1117.0+2013_daily_bin1432.fits outfile=/scratch/kocevski/638847/cmap_610502401_610761601_4FGL_J1117.0+2013_daily_bin1432.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638847/ft1_filtered_4FGL_J1117.0+2013_daily_bin1432.fits scfile=/scratch/kocevski/638847/ft2_4FGL_J1117.0+2013_daily_bin1432.fits outfile=/scratch/kocevski/638847/cmap_HighResolution_610502401_610761601_4FGL_J1117.0+2013_daily_bin1432.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.656       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4765       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.798       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.256       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0871       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5003       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .74930E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .50205       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5830       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1522       1.0000         .10000E-03   10000.    
    12 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4738       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12797E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47860E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10789E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.439       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4190       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94657       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92093       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=   5406.273     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2058 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.650        11.903        .17524E-05    .46442E-04
   2  Prefactor     4.4761        2.9668       -.44985E-06   -.47604E-04
   3  Prefactor     10.799        9.1215       -.56883E-06    .10823E-04
   4  Prefactor     13.268        11.818        .32752E-06    .68273E-04
   5  Prefactor     6.0854        7.3395       -.45856E-06   -.26287E-04
   6  Prefactor     2.4993        6.9962        .24677E-05    .22673E-03
   7  Prefactor     .10000E-03    90.363        .40807E-04** at limit **
   8  norm          .50180        .82638        .12002E-06    .24931E-03
   9  Prefactor     .10000E-03    1.0883        .27594E-06** at limit **
  10  Prefactor     6.5879        6.9219       -.10795E-05   -.26903E-04
  11  norm          2.1482        7.7096       -.35602E-05    .22555E-03
  12  norm          .10000E-03    4.8722        .23202E-06** at limit **
  13  Prefactor     .10000E-03    11.836        .77089E-06** at limit **
  14  Prefactor     4.4870        13.713       -.22593E-05   -.25470E-03
  15  Prefactor     .10000E-03    16.656        .10919E-06** at limit **
  16  Prefactor     .10030E-03    10.663       -.82702E-06** at limit **
  17  Prefactor     .10000E-03    46.729        .67454E-05** at limit **
  18  Prefactor     18.430        13.827        .43138E-06   -.43541E-04
  19  Prefactor     1.4189        1.3922        .79492E-08   -.29013E-03
  20  Prefactor     .10000E-03    1.3934        .84867E-07** at limit **
  21  Normalizat    .94665        .19090       -.18849E-05   -.25560E-03
  22  Prefactor     .92098        .18613       -.40340E-06   -.58088E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.65
  Prefactor  = 4.47608
  Prefactor  = 10.7992
  Prefactor  = 13.2685
  Prefactor  = 6.08544
  Prefactor  = 2.49927
  Prefactor  = 0.000100003
  norm       = 0.501802
  Prefactor  = 0.0001
  Prefactor  = 6.58791
  norm       = 2.14817
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.48701
  Prefactor  = 0.0001
  Prefactor  = 0.0001003
  Prefactor  = 0.0001
  Prefactor  = 18.4301
  Prefactor  = 1.41891
  Prefactor  = 0.0001
  Normalizat = 0.946645
  Prefactor  = 0.920976
 **********
 **   18 **HESSE 
 **********

 FCN=   5406.273     FROM HESSE     STATUS=OK           354 CALLS     2412 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.650        11.914        .76180E-04   -1.4656    
   2  Prefactor     4.4761        2.9556        .95790E-04   -1.5285    
   3  Prefactor     10.799        9.1229        .12192E-03   -1.5051    
   4  Prefactor     13.268        11.874        .11001E-03   -1.4979    
   5  Prefactor     6.0854        7.3211        .16273E-03   -1.5215    
   6  Prefactor     2.4993        7.0369        .25845E-03   -1.5392    
   7  Prefactor     .10000E-03    89.597        .50625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .50180        .82595        .45117E-04   -1.5566    
   9  Prefactor     .10000E-03    1.1016        .74808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5879        6.9167        .15641E-03   -1.5195    
  11  norm          2.1482        7.5772        .28085E-03   -1.5415    
  12  norm          .10000E-03    4.8865        .15851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4870        13.828        .19036E-03   -1.5284    
  15  Prefactor     .10000E-03    16.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10030E-03    15.364        .70402E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    48.528        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.430        13.844        .93273E-04   -1.4849    
  19  Prefactor     1.4189        1.3737        .83031E-04   -1.5470    
  20  Prefactor     .10000E-03    1.4028        .84738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .94665        .21774        .24766E-03   -.94840    
  22  Prefactor     .92098        .21289        .25892E-03   -.95412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66301e-09
Minuit parameter uncertainties:
  1  11.9146
  2  2.95565
  3  9.1241
  4  11.8758
  5  7.32222
  6  7.0392
  7  0.00110731
  8  0.825971
  9  5.30667e-06
  10  6.91753
  11  7.58063
  12  2.91598e-05
  13  0.000174768
  14  13.8377
  15  9.99492e-05
  16  0.00429679
  17  0.000165077
  18  13.8468
  19  1.37368
  20  5.3378e-06
  21  0.21794
  22  0.213084
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  6.588e+00  6.918e+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.210e-01  2.131e-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.466e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 169.271 20.229
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.21e-08 +/- 2.32e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.79e-05

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

Saving results to:
/scratch/kocevski/638847/likelihoodResults_610502401_610761601_4FGL_J1117.0+2013_daily_bin1432.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): 0
logL (Free Index) = 5405.85812103
delta logL = 0.414619156523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5405.84703628
delta logL = 0.425703905123

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4541       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7069       1.0000          .0000       10.000    
     3 'Normalizat'    .90133       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94691       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=   5405.847     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4568        62.933        .54402E-02    .26708E-03
   2  Index         2.7062        3.2706        .10127        .14290E-03
   3  Normalizat    .90145        .80681E-01    .44919E-01    .12300E-04
   4  Prefactor     .94686        .65723E-01    .45600E-01    .93021E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.45681
  Index      = 2.70617
  Normalizat = 0.901452
  Prefactor  = 0.946858
 **********
 **   18 **HESSE 
 **********

 FCN=   5405.847     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4568        6.5761        .10175E-03   -1.5336    
   2  Index         2.7062        1.0038        .52678E-02   -.47661    
   3  Normalizat    .90145        .21539        .25306E-03   -.96409    
   4  Prefactor     .94686        .21588        .25568E-03   -.94522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71364e-11
Minuit parameter uncertainties:
  1  6.57748
  2  1.01251
  3  0.215601
  4  0.21608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638847': 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) = 5405.84703569
delta logL = 0.425704492637

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  3.457e+00  6.577e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.706e+00  1.013e+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:  9.469e-01  2.161e-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.015e-01  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.77
Ra Dec: 169.271 20.229
Photon Index (Free Index): 2.71 +/- 1.01
Photon Flux (Free Index): 5.96e-08 +/- 6.15e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.14e-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/638847/cmap_HighResolution_610502401_610761601_4FGL_J1117.0+2013_daily_bin1432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.16e-03', comment='SUCCESS', photon_flux='2.21e-08', energy_flux2='1.43e-05', photon_flux_error='2.32e-08', dlogl='4.26e-01', energy_flux='1.71e-05', photon_flux2='5.96e-08', job_status='DONE', time_completed='2021-09-03 14:39:39.368319', photon_index_error2='1.01', photon_index2='2.71', ts='1.89', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='8.24e-08', energy_flux_error2='1.14e-05', EG='0.95', time_epoch_completed='1630705179.37', return_code='0', job_id='638847', GAL2='0.95', EG2='0.90', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='6.15e-08', ts2='2.77', photon_index='1.96' WHERE bin_id='1432' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:39:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 638847: <4FGL_J1117.0+2013_daily_bin1432> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin1432 169.271 20.2294 610502401 610761601 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 :                                   613.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            803 sec.

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

