/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 20 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 = 7402
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1117.0+2013_daily_bin201
RA = 169.271, Dec = 20.2294
tmin = 291427201, tmax = 291686401
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='630784', job_status='RUN', time_executed='2021-09-03 14:01:26.374322', time_epoch_executed='1630702886.37' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='201'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630784

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630784/ft1_4FGL_J1117.0+2013_daily_bin201.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630784/ft2_4FGL_J1117.0+2013_daily_bin201.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630784/ft1_4FGL_J1117.0+2013_daily_bin201.fits outfile=/scratch/kocevski/630784/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin201.fits ra=169.271 dec=20.2294 rad=12.0 tmin=291427201.0 tmax=291686401.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.89
user 3.27
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630784/ft1_filtered_4FGL_J1117.0+2013_daily_bin201.fits evtable="EVENTS" scfile=/scratch/kocevski/630784/ft2_4FGL_J1117.0+2013_daily_bin201.fits sctable="SC_DATA" expcube=/scratch/kocevski/630784/ltcube_291427201_291686401_4FGL_J1117.0+2013_daily_bin201.fits outfile=/scratch/kocevski/630784/expmap_291427201_291686401_4FGL_J1117.0+2013_daily_bin201.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/630784/ltcube_291427201_291686401_4FGL_J1117.0+2013_daily_bin201.fits
.....................!
real 195.20
user 188.90
sys 4.63

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/630784/ft1_filtered_4FGL_J1117.0+2013_daily_bin201.fits scfile=/scratch/kocevski/630784/ft2_4FGL_J1117.0+2013_daily_bin201.fits outfile=/scratch/kocevski/630784/cmap_291427201_291686401_4FGL_J1117.0+2013_daily_bin201.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630784/ft1_filtered_4FGL_J1117.0+2013_daily_bin201.fits scfile=/scratch/kocevski/630784/ft2_4FGL_J1117.0+2013_daily_bin201.fits outfile=/scratch/kocevski/630784/cmap_HighResolution_291427201_291686401_4FGL_J1117.0+2013_daily_bin201.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/630784/ft1_filtered_4FGL_J1117.0+2013_daily_bin201.fits evtable="EVENTS" scfile=/scratch/kocevski/630784/ft2_4FGL_J1117.0+2013_daily_bin201.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/630784/Model_4FGL_J1117.0+2013_daily_bin201.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/630784/ft1_filtered_4FGL_J1117.0+2013_daily_bin201.fits.....................!
real 50.94
user 49.59
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9885       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0144       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20710E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0439       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5768       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.624       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7388       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.206       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.3174       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2618       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0821       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2228       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89378       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0662       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=   5266.785     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     1981 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9880        7.4633       -.12169E-07   -.43197E-04
   2  Prefactor     1.0143        2.0645        .51593E-06    .37287E-04
   3  Prefactor     .10002E-03    7.1397       -.63947E-06** at limit **
   4  Prefactor     2.0445        6.2362        .13591E-05    .83985E-05
   5  Prefactor     7.5771        7.3698       -.11005E-05    .27839E-05
   6  Prefactor     .10000E-03    3.3822        .53537E-07** at limit **
   7  Prefactor     12.623        14.936       -.99316E-07   -.14861E-04
   8  norm          .10000E-03    .46620        .54234E-07** at limit **
   9  Prefactor     5.7379        2.8990        .72073E-07   -.33128E-04
  10  Prefactor     14.205        9.5840        .88555E-07   -.46850E-05
  11  norm          .10000E-03    2.8440       -.12569E-06** at limit **
  12  norm          .10000E-03    6.2216        .33824E-06** at limit **
  13  Prefactor     9.3162        10.253        .33735E-07   -.26546E-05
  14  Prefactor     .10000E-03    12.373        .49089E-06** at limit **
  15  Prefactor     4.2300        43.033       -.36228E-07   -.35046E-04
  16  Prefactor     .10000E-03    4.1036        .11027E-06** at limit **
  17  Prefactor     .10000E-03    7.0225        .96313E-07** at limit **
  18  Prefactor     .10000E-03    9.7970       -.80182E-07** at limit **
  19  Prefactor     3.0816        1.8536        .12390E-07   -.27086E-04
  20  Prefactor     3.2208        5.1665        .51664E-06   -.29039E-05
  21  Normalizat    .89393        .18409       -.10897E-06   -.74293E-05
  22  Prefactor     1.0662        .19071       -.13240E-05    .42828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.98797
  Prefactor  = 1.01432
  Prefactor  = 0.00010002
  Prefactor  = 2.04447
  Prefactor  = 7.57714
  Prefactor  = 0.0001
  Prefactor  = 12.6226
  norm       = 0.0001
  Prefactor  = 5.73795
  Prefactor  = 14.2049
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.31616
  Prefactor  = 0.0001
  Prefactor  = 4.22998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.08158
  Prefactor  = 3.22081
  Normalizat = 0.893926
  Prefactor  = 1.06623
 **********
 **   18 **HESSE 
 **********

 FCN=   5266.785     FROM HESSE     STATUS=OK           348 CALLS     2329 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9880        7.3982        .18005E-03   -1.5261    
   2  Prefactor     1.0143        2.0212        .13915E-03   -1.5507    
   3  Prefactor     .10002E-03    22.771        .35943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0445        6.1810        .28755E-03   -1.5422    
   5  Prefactor     7.5771        7.3513        .72846E-03   -1.5157    
   6  Prefactor     .10000E-03    3.3869        .13033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.623        14.888        .11274E-03   -1.4997    
   8  norm          .10000E-03    .47433        .48407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.7379        2.9003        .84201E-04   -1.5229    
  10  Prefactor     14.205        9.5749        .10627E-03   -1.4954    
  11  norm          .10000E-03    2.8451        .11949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.2990        .17694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.3162        10.246        .13129E-03   -1.5097    
  14  Prefactor     .10000E-03    12.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2300        43.405        .19517E-03   -1.5297    
  16  Prefactor     .10000E-03    4.1132        .14360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.0383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.8688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.0816        1.8509        .73409E-04   -1.5357    
  20  Prefactor     3.2208        5.1583        .19568E-03   -1.5349    
  21  Normalizat    .89393        .21331        .24532E-03   -.96674    
  22  Prefactor     1.0662        .22043        .24740E-03   -.90553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.08615e-10
Minuit parameter uncertainties:
  1  7.39954
  2  2.02131
  3  0.00135312
  4  6.1829
  5  7.35219
  6  1.61185e-06
  7  14.892
  8  1.59516e-06
  9  2.9004
  10  9.57593
  11  2.14575e-06
  12  1.55542e-05
  13  10.248
  14  3.42903e-05
  15  27.125
  16  4.45431e-07
  17  3.78338e-06
  18  7.00662e-06
  19  1.85093
  20  5.15901
  21  0.213515
  22  0.220615
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.420e+01  9.576e+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:  1.066e+00  2.206e-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.939e-01  2.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.63
Ra Dec: 169.271 20.229
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 4.77e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 3.68e-05 +/- 2.48e-05

TS (Fixed Index): 3.63
Ra Dec: 169.271 20.229
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/630784/likelihoodResults_291427201_291686401_4FGL_J1117.0+2013_daily_bin201.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) = 5266.59424527
delta logL = 0.19080427349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5266.58874575
delta logL = 0.196303796436

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.351       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2552       1.0000          .0000       10.000    
     3 'Normalizat'    .87320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0796       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.

 FCN=   5266.589     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      291 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.348        10.666        .12454E-03    .81243E-03
   2  Index         2.2549        .54320        .43806E-02    .22970E-03
   3  Normalizat    .87316        .20450        .24783E-03   -.84230E-03
   4  Prefactor     1.0798        .22113        .24602E-03   -.11059E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3477
  Index      = 2.25492
  Normalizat = 0.873161
  Prefactor  = 1.0798
 **********
 **   18 **HESSE 
 **********

 FCN=   5266.589     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.348        9.8630        .49816E-05   -1.5065    
   2  Index         2.2549        .50198        .17522E-03   -.58119    
   3  Normalizat    .87316        .20418        .49565E-04   -.97410    
   4  Prefactor     1.0798        .22093        .49204E-04   -.90115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10834e-09
Minuit parameter uncertainties:
  1  9.86457
  2  0.503197
  3  0.204363
  4  0.221121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630784': 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) = 5266.58874356
delta logL = 0.196305979515

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.035e+01  9.865e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.255e+00  5.032e-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.080e+00  2.211e-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.732e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.03
Ra Dec: 169.271 20.229
Photon Index (Free Index): 2.25 +/- 0.50
Photon Flux (Free Index): 6.40e-08 +/- 4.59e-08
Energy Flux (Free Index): 2.61e-05 +/- 2.06e-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/630784/cmap_HighResolution_291427201_291686401_4FGL_J1117.0+2013_daily_bin201.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.60e-03', comment='SUCCESS', photon_flux='4.77e-08', energy_flux2='2.61e-05', photon_flux_error='3.21e-08', dlogl='1.96e-01', energy_flux='3.68e-05', photon_flux2='6.40e-08', job_status='DONE', time_completed='2021-09-03 14:11:56.084934', photon_index_error2='0.50', photon_index2='2.25', ts='3.63', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='2.06e-05', EG='0.89', time_epoch_completed='1630703516.09', return_code='0', job_id='630784', GAL2='1.08', EG2='0.87', return_code2='0', energy_flux_error='2.48e-05', photon_flux_error2='4.59e-08', ts2='4.03', photon_index='1.96' WHERE bin_id='201' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:11:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 630784: <4FGL_J1117.0+2013_daily_bin201> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin201> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep  3 13:57:51 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:00:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 14:00:23 2021
Terminated at Fri Sep  3 14:11:56 2021
Results reported at Fri Sep  3 14:11:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin201 169.271 20.2294 291427201 291686401 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 :                                   610.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            845 sec.

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

