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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin767
RA = 169.271, Dec = 20.2294
tmin = 438134401, tmax = 438393601
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='635991', job_status='RUN', time_executed='2021-09-03 14:19:11.941406', time_epoch_executed='1630703951.94' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/635991

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/635991/ft1_4FGL_J1117.0+2013_daily_bin767.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/635991/ft2_4FGL_J1117.0+2013_daily_bin767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/635991/ft1_4FGL_J1117.0+2013_daily_bin767.fits outfile=/scratch/kocevski/635991/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin767.fits ra=169.271 dec=20.2294 rad=12.0 tmin=438134401.0 tmax=438393601.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 6.35
user 5.98
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/635991/ft2_4FGL_J1117.0+2013_daily_bin767.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/635991/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin767.fits evtable="EVENTS" outfile="/scratch/kocevski/635991/ft1_filtered_4FGL_J1117.0+2013_daily_bin767.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.55
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/635991/ft1_filtered_4FGL_J1117.0+2013_daily_bin767.fits" evtable="EVENTS" scfile=/scratch/kocevski/635991/ft2_4FGL_J1117.0+2013_daily_bin767.fits sctable="SC_DATA" outfile=/scratch/kocevski/635991/ltcube_438134401_438393601_4FGL_J1117.0+2013_daily_bin767.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/635991/ft2_4FGL_J1117.0+2013_daily_bin767.fits
.....................!
real 13.48
user 13.12
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/635991/ft1_filtered_4FGL_J1117.0+2013_daily_bin767.fits evtable="EVENTS" scfile=/scratch/kocevski/635991/ft2_4FGL_J1117.0+2013_daily_bin767.fits sctable="SC_DATA" expcube=/scratch/kocevski/635991/ltcube_438134401_438393601_4FGL_J1117.0+2013_daily_bin767.fits outfile=/scratch/kocevski/635991/expmap_438134401_438393601_4FGL_J1117.0+2013_daily_bin767.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/635991/ltcube_438134401_438393601_4FGL_J1117.0+2013_daily_bin767.fits
.....................!
real 191.20
user 186.68
sys 3.47

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/635991/ft1_filtered_4FGL_J1117.0+2013_daily_bin767.fits scfile=/scratch/kocevski/635991/ft2_4FGL_J1117.0+2013_daily_bin767.fits outfile=/scratch/kocevski/635991/cmap_438134401_438393601_4FGL_J1117.0+2013_daily_bin767.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 1.13
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/635991/ft1_filtered_4FGL_J1117.0+2013_daily_bin767.fits scfile=/scratch/kocevski/635991/ft2_4FGL_J1117.0+2013_daily_bin767.fits outfile=/scratch/kocevski/635991/cmap_HighResolution_438134401_438393601_4FGL_J1117.0+2013_daily_bin767.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=169.271 yref=20.2294 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14396E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .83927       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8179       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4962       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0220       1.0000         .10000E-03   10000.    
    11 'norm      '    .13939E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.0719       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8645       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12800E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.504       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9759       1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.379       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5128       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1503       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .61185       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=   3097.896     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2364 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.147        .14515E-05** at limit **
   2  Prefactor     .10004E-03    1.2757       -.20219E-06** at limit **
   3  Prefactor     .83786        7.2565        .22471E-05   -.39487E-04
   4  Prefactor     .10000E-03    8.3298        .70525E-06** at limit **
   5  Prefactor     .10000E-03    8.9373        .50556E-06** at limit **
   6  Prefactor     .10000E-03    12.226        .45767E-06** at limit **
   7  Prefactor     .10000E-03    4.5789        .12150E-06** at limit **
   8  norm          1.8181        1.7233       -.67456E-07   -.40723E-04
   9  Prefactor     1.4969        3.0709        .42915E-06    .57444E-05
  10  Prefactor     6.0202        6.1686       -.23973E-06   -.13912E-04
  11  norm          .10000E-03    14.195       -.24930E-05** at limit **
  12  norm          8.0675        11.856       -.18160E-08   -.23096E-05
  13  Prefactor     4.8628        9.4182        .42487E-05   -.39689E-04
  14  Prefactor     .10000E-03    29.410        .32095E-06** at limit **
  15  Prefactor     17.418        45.725       -.99363E-06   -.81214E-04
  16  Prefactor     4.9633        15.543        .79180E-06   -.84742E-05
  17  Prefactor     42.378        28.922       -.34035E-07    .19587E-05
  18  Prefactor     .10000E-03    5.1565        .47929E-07** at limit **
  19  Prefactor     2.5125        2.2450        .37450E-07   -.14032E-04
  20  Prefactor     .10000E-03    1.9385        .13639E-06** at limit **
  21  Normalizat    1.1502        .22093        .89604E-06   -.12262E-03
  22  Prefactor     .61218        .22154       -.36153E-05    .43152E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  Prefactor  = 0.83786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.81806
  Prefactor  = 1.4969
  Prefactor  = 6.02022
  norm       = 0.0001
  norm       = 8.06752
  Prefactor  = 4.86275
  Prefactor  = 0.0001
  Prefactor  = 17.418
  Prefactor  = 4.96329
  Prefactor  = 42.3778
  Prefactor  = 0.0001
  Prefactor  = 2.51246
  Prefactor  = 0.0001
  Normalizat = 1.15017
  Prefactor  = 0.61218
 **********
 **   18 **HESSE 
 **********

 FCN=   3097.896     FROM HESSE     STATUS=OK           344 CALLS     2708 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.423        .34622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10004E-03    17.127        .12065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .83786        7.4074        .28718E-03   -1.5525    
   4  Prefactor     .10000E-03    8.4906        .15678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.0436        .16251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5829        .11632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8181        1.7131        .67690E-04   -1.5438    
   9  Prefactor     1.4969        3.0567        .13243E-03   -1.5463    
  10  Prefactor     6.0202        6.1686        .13567E-03   -1.5217    
  11  norm          .10000E-03    14.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.0675        11.875        .14112E-03   -1.5140    
  13  Prefactor     4.8628        9.4611        .91191E-03   -1.5267    
  14  Prefactor     .10000E-03    29.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.418        45.757        .95731E-04   -1.4873    
  16  Prefactor     4.9633        15.535        .18029E-03   -1.5262    
  17  Prefactor     42.378        28.946        .61580E-04   -1.4405    
  18  Prefactor     .10000E-03    5.1649        .12344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5125        2.2339        .74848E-04   -1.5391    
  20  Prefactor     .10000E-03    1.9466        .75685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1502        .25176        .20075E-03   -.88157    
  22  Prefactor     .61218        .24990        .27920E-03   -1.0708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11799e-09
Minuit parameter uncertainties:
  1  2.09915e-05
  2  0.00156393
  3  4.98305
  4  7.94378e-06
  5  7.00683e-06
  6  5.87649e-07
  7  2.47869e-08
  8  1.71314
  9  3.05704
  10  6.16928
  11  4.48858e-05
  12  11.8788
  13  9.46396
  14  3.44793e-05
  15  45.8496
  16  15.5475
  17  28.9552
  18  2.80454e-06
  19  2.23396
  20  1.1801e-06
  21  0.25202
  22  0.250359
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  6.020e+00  6.169e+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:  6.122e-01  2.504e-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.150e+00  2.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.36
Ra Dec: 169.271 20.229
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.02e-08 +/- 2.07e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.60e-05

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

Saving results to:
/scratch/kocevski/635991/likelihoodResults_438134401_438393601_4FGL_J1117.0+2013_daily_bin767.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) = 3097.3412061
delta logL = 0.554592535881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3097.31811847
delta logL = 0.577680164614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6923       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3108       1.0000          .0000       10.000    
     3 'Normalizat'    1.1584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60900       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=   3097.318     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      200 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6923        8.5713        .36146E-02   -.11716E-02
   2  Index         1.3106        .55079        .20267       -.78390E-05
   3  Normalizat    1.1583        .20691        .36004E-01    .12590E-05
   4  Prefactor     .60901        .21691        .63246E-01    .12522E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.69234
  Index      = 1.31059
  Normalizat = 1.15832
  Prefactor  = 0.60901
 **********
 **   18 **HESSE 
 **********

 FCN=   3097.318     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6923        8.2817        .14459E-03   -1.5153    
   2  Index         1.3106        .58520        .81427E-02   -.82993    
   3  Normalizat    1.1583        .23617        .20010E-03   -.87901    
   4  Prefactor     .60901        .24730        .27983E-03   -1.0721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12396e-09
Minuit parameter uncertainties:
  1  8.28293
  2  0.588172
  3  0.236386
  4  0.247747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/635991': 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) = 3097.3181184
delta logL = 0.577680239008

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  7.692e+00  8.283e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.311e+00  5.882e-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:  6.090e-01  2.477e-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.158e+00  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.51
Ra Dec: 169.271 20.229
Photon Index (Free Index): 1.31 +/- 0.59
Photon Flux (Free Index): 1.05e-08 +/- 1.31e-08
Energy Flux (Free Index): 6.19e-05 +/- 9.59e-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/635991/cmap_HighResolution_438134401_438393601_4FGL_J1117.0+2013_daily_bin767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', comment='SUCCESS', photon_flux='2.02e-08', energy_flux2='6.19e-05', photon_flux_error='2.07e-08', dlogl='5.78e-01', energy_flux='1.56e-05', photon_flux2='1.05e-08', job_status='DONE', time_completed='2021-09-03 14:27:55.725749', photon_index_error2='0.59', photon_index2='1.31', ts='3.36', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', photon_flux_upper_limit='8.42e-08', energy_flux_error2='9.59e-05', EG='1.15', time_epoch_completed='1630704475.73', return_code='0', job_id='635991', GAL2='0.61', EG2='1.16', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='1.31e-08', ts2='4.51', photon_index='1.96' WHERE bin_id='767' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:27:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 635991: <4FGL_J1117.0+2013_daily_bin767> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin767 169.271 20.2294 438134401 438393601 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 :                                   517.18 sec.
    Max Memory :                                 1217 MB
    Average Memory :                             338.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   537 sec.
    Turnaround time :                            666 sec.

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

