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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin1069
RA = 169.271, Dec = 20.2294
tmin = 516412801, tmax = 516672001
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='636430', job_status='RUN', time_executed='2021-09-03 14:22:10.689055', time_epoch_executed='1630704130.69' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='1069'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636430

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636430/ft1_4FGL_J1117.0+2013_daily_bin1069.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636430/ft2_4FGL_J1117.0+2013_daily_bin1069.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636430/ft1_4FGL_J1117.0+2013_daily_bin1069.fits outfile=/scratch/kocevski/636430/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1069.fits ra=169.271 dec=20.2294 rad=12.0 tmin=516412801.0 tmax=516672001.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.48
user 3.26
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/636430/ft2_4FGL_J1117.0+2013_daily_bin1069.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/636430/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1069.fits evtable="EVENTS" outfile="/scratch/kocevski/636430/ft1_filtered_4FGL_J1117.0+2013_daily_bin1069.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.51
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636430/ft1_filtered_4FGL_J1117.0+2013_daily_bin1069.fits" evtable="EVENTS" scfile=/scratch/kocevski/636430/ft2_4FGL_J1117.0+2013_daily_bin1069.fits sctable="SC_DATA" outfile=/scratch/kocevski/636430/ltcube_516412801_516672001_4FGL_J1117.0+2013_daily_bin1069.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/636430/ft2_4FGL_J1117.0+2013_daily_bin1069.fits
.....................!
real 13.39
user 13.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636430/ft1_filtered_4FGL_J1117.0+2013_daily_bin1069.fits evtable="EVENTS" scfile=/scratch/kocevski/636430/ft2_4FGL_J1117.0+2013_daily_bin1069.fits sctable="SC_DATA" expcube=/scratch/kocevski/636430/ltcube_516412801_516672001_4FGL_J1117.0+2013_daily_bin1069.fits outfile=/scratch/kocevski/636430/expmap_516412801_516672001_4FGL_J1117.0+2013_daily_bin1069.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/636430/ltcube_516412801_516672001_4FGL_J1117.0+2013_daily_bin1069.fits
.....................!
real 190.71
user 185.55
sys 4.82

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/636430/ft1_filtered_4FGL_J1117.0+2013_daily_bin1069.fits scfile=/scratch/kocevski/636430/ft2_4FGL_J1117.0+2013_daily_bin1069.fits outfile=/scratch/kocevski/636430/cmap_516412801_516672001_4FGL_J1117.0+2013_daily_bin1069.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.54
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3718       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26386E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.546       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .99744       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.661       1.0000         .10000E-03   10000.    
    12 'norm      '    14.052       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.934       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.9246       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5694       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9116       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1721       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95747       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=   5799.339     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2077 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3729        5.1600        .13121E-06   -.82380E-03
   2  Prefactor     .22416E-01    1.0406       -.39611E-06    .77931E-03
   3  Prefactor     .10000E-03    13.706       -.10773E-04** at limit **
   4  Prefactor     .10000E-03    4.5988        .16859E-05** at limit **
   5  Prefactor     14.543        11.314        .46022E-06   -.14170E-03
   6  Prefactor     .10000E-03    3.4782        .95878E-07** at limit **
   7  Prefactor     .10000E-03    17.034        .96519E-05** at limit **
   8  norm          .99765        1.2318        .28356E-07    .35246E-03
   9  Prefactor     .10000E-03    1.6105       -.67205E-07** at limit **
  10  Prefactor     .10000E-03    6.8831       -.30358E-05** at limit **
  11  norm          14.661        10.614        .48292E-07    .29428E-04
  12  norm          14.052        10.087       -.16647E-07   -.79920E-04
  13  Prefactor     10.933        9.2247        .23667E-07    .77089E-04
  14  Prefactor     .10000E-03    5.7532        .10268E-05** at limit **
  15  Prefactor     .10000E-03    41.420       -.10415E-05** at limit **
  16  Prefactor     .10000E-03    9.1072        .52088E-05** at limit **
  17  Prefactor     8.9251        22.284       -.11413E-05   -.17584E-04
  18  Prefactor     .10000E-03    4.5439       -.17053E-05** at limit **
  19  Prefactor     3.5691        2.2943        .48941E-07   -.20337E-06
  20  Prefactor     1.9108        2.8769        .78689E-07   -.14668E-02
  21  Normalizat    1.1721        .18289        .38548E-06    .24236E-03
  22  Prefactor     .95740        .18958       -.28897E-06    .21273E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.37288
  Prefactor  = 0.0224159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.997646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.6606
  norm       = 14.052
  Prefactor  = 10.9334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.92513
  Prefactor  = 0.0001
  Prefactor  = 3.56908
  Prefactor  = 1.91079
  Normalizat = 1.1721
  Prefactor  = 0.957401
 **********
 **   18 **HESSE 
 **********

 FCN=   5799.339     FROM HESSE     STATUS=OK           352 CALLS     2429 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3729        7.7742        .13302E-02   -1.5400    
   2  Prefactor     .22416E-01    3.7186        .25337E-01   -1.5678    
   3  Prefactor     .10000E-03    13.999        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6253        .15915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.543        11.296        .10502E-03   -1.4945    
   6  Prefactor     .10000E-03    3.4843        .13870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .99765        1.1327        .89754E-03   -1.5508    
   9  Prefactor     .10000E-03    1.6630        .18855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.0625        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.661        10.618        .10460E-03   -1.4942    
  12  norm          14.052        10.120        .53425E-03   -1.4958    
  13  Prefactor     10.933        9.2390        .12116E-03   -1.5047    
  14  Prefactor     .10000E-03    5.7668        .17838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    41.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.1940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.9251        22.381        .13417E-03   -1.5110    
  18  Prefactor     .10000E-03    4.5634        .15858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.5691        2.2791        .83435E-04   -1.5330    
  20  Prefactor     1.9108        3.8369        .10105E-02   -1.5431    
  21  Normalizat    1.1721        .21760        .23139E-03   -.87469    
  22  Prefactor     .95740        .22254        .27284E-03   -.94163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83547e-09
Minuit parameter uncertainties:
  1  7.77751
  2  0.576172
  3  0.000152775
  4  1.15426e-05
  5  11.2975
  6  3.32848e-07
  7  7.16052e-05
  8  1.13273
  9  9.84221e-07
  10  1.38039e-05
  11  10.6191
  12  10.1217
  13  9.24021
  14  3.14836e-06
  15  6.5299e-06
  16  7.48529e-06
  17  22.4017
  18  1.11844e-06
  19  2.27913
  20  3.83737
  21  0.217772
  22  0.222751
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.380e-05  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.574e-01  2.228e-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.172e+00  2.178e-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: 5.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/636430/likelihoodResults_516412801_516672001_4FGL_J1117.0+2013_daily_bin1069.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) = 5799.34000374
delta logL = -0.000675666078678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5799.33932719
delta logL = 8.80152583704e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0144       1.0000          .0000       10.000    
     3 'Normalizat'    1.1721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95737       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5799.260     FROM MIGRAD    STATUS=FAILED       176 CALLS      338 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30523        30.985        .29677E-02   -.21268E-02
   2  Index         3.1876        3.1713        .20000        .58864E-04
   3  Normalizat    1.1511        .41577E-01    .23139E-03   -.34343E-04
   4  Prefactor     .96887        .42443E-01    .27284E-03   -.13709E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5799.260     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      416 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30523        30.985        .14690E-03   -.21268E-02
   2  Index         3.1876        3.1713        .21365E-02    .58864E-04
   3  Normalizat    1.1511        .41577E-01    .80659E-04   -.34343E-04
   4  Prefactor     .96887        .42443E-01    .51798E-04   -.13709E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5799.260     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      450 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30523        3.2501        .10285E-03   -.55047E-04
   2  Index         3.1876        2.4044        .69042E-02    .12826E-04
   3  Normalizat    1.1511        .21049        .92556E-05   -.34392E-04
   4  Prefactor     .96887        .22247        .10914E-04   -.13750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.305231
  Index      = 3.18763
  Normalizat = 1.1511
  Prefactor  = 0.968871
 **********
 **   18 **HESSE 
 **********

 FCN=   5799.260     FROM HESSE     STATUS=OK            25 CALLS      475 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30523        1.6895        .41140E-05   -1.5818    
   2  Index         3.1876        1.7712        .27617E-03   -.37092    
   3  Normalizat    1.1511        .21087        .18511E-05   -.88128    
   4  Prefactor     .96887        .22273        .21827E-05   -.93774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.763e-12
Minuit parameter uncertainties:
  1  1.43604
  2  1.81689
  3  0.21102
  4  0.222941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636430': 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) = 5799.26046588
delta logL = 0.0788621943548

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  3.052e-01  1.436e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  3.188e+00  1.817e+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.689e-01  2.229e-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.151e+00  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 169.271 20.229

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/636430/cmap_HighResolution_516412801_516672001_4FGL_J1117.0+2013_daily_bin1069.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-03', job_status='DONE', photon_flux_upper_limit='5.20e-08', time_completed='2021-09-03 14:33:29.054890', job_id='636430', GAL2='0.97', fit_tolerance='1e-08', EG2='1.15', EG='1.17', time_epoch_completed='1630704809.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='7.89e-02', ts2='0.16', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1069' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:33:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 636430: <4FGL_J1117.0+2013_daily_bin1069> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin1069> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 14:17:28 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:20:54 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:20:54 2021
Terminated at Fri Sep  3 14:33:29 2021
Results reported at Fri Sep  3 14:33:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin1069 169.271 20.2294 516412801 516672001 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 :                                   654.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            961 sec.

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

