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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin841
RA = 169.271, Dec = 20.2294
tmin = 457315201, tmax = 457574401
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='636091', job_status='RUN', time_executed='2021-09-03 14:20:29.208355', time_epoch_executed='1630704029.21' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='841'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636091

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636091/ft1_4FGL_J1117.0+2013_daily_bin841.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636091/ft2_4FGL_J1117.0+2013_daily_bin841.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636091/ft1_4FGL_J1117.0+2013_daily_bin841.fits outfile=/scratch/kocevski/636091/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin841.fits ra=169.271 dec=20.2294 rad=12.0 tmin=457315201.0 tmax=457574401.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 4.97
user 4.73
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636091/ft1_filtered_4FGL_J1117.0+2013_daily_bin841.fits evtable="EVENTS" scfile=/scratch/kocevski/636091/ft2_4FGL_J1117.0+2013_daily_bin841.fits sctable="SC_DATA" expcube=/scratch/kocevski/636091/ltcube_457315201_457574401_4FGL_J1117.0+2013_daily_bin841.fits outfile=/scratch/kocevski/636091/expmap_457315201_457574401_4FGL_J1117.0+2013_daily_bin841.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/636091/ltcube_457315201_457574401_4FGL_J1117.0+2013_daily_bin841.fits
.....................!
real 191.50
user 186.12
sys 4.81

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/636091/ft1_filtered_4FGL_J1117.0+2013_daily_bin841.fits scfile=/scratch/kocevski/636091/ft2_4FGL_J1117.0+2013_daily_bin841.fits outfile=/scratch/kocevski/636091/cmap_457315201_457574401_4FGL_J1117.0+2013_daily_bin841.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/636091/ft1_filtered_4FGL_J1117.0+2013_daily_bin841.fits scfile=/scratch/kocevski/636091/ft2_4FGL_J1117.0+2013_daily_bin841.fits outfile=/scratch/kocevski/636091/cmap_HighResolution_457315201_457574401_4FGL_J1117.0+2013_daily_bin841.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1719       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .51940       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .86932E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9860       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7282       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7325       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11402E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4212       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83621       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=   5667.472     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2036 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1715        5.2453       -.34701E-06   -.18632E-03
   2  Prefactor     .10000E-03    1.0909       -.30538E-07** at limit **
   3  Prefactor     .10000E-03    3.2126       -.81719E-08** at limit **
   4  Prefactor     .10000E-03    6.1556       -.97627E-06** at limit **
   5  Prefactor     .10000E-03    7.2970        .99619E-06** at limit **
   6  Prefactor     .10000E-03    14.306       -.65245E-06** at limit **
   7  Prefactor     .10000E-03    19.891       -.45451E-06** at limit **
   8  norm          .51946        1.0477       -.32457E-06   -.15842E-02
   9  Prefactor     .10000E-03    1.1518       -.18100E-06** at limit **
  10  Prefactor     .10000E-03    5.2006        .11503E-05** at limit **
  11  norm          .10000E-03    4.6990       -.22988E-06** at limit **
  12  norm          .10000E-03    8.1491       -.99300E-07** at limit **
  13  Prefactor     7.9775        15.075       -.57418E-05    .23797E-03
  14  Prefactor     .10000E-03    8.3809       -.52900E-06** at limit **
  15  Prefactor     .10000E-03    19.682        .11921E-05** at limit **
  16  Prefactor     .10000E-03    5.6423       -.75474E-06** at limit **
  17  Prefactor     3.7243        16.518       -.57206E-05    .43826E-04
  18  Prefactor     2.7331        9.6125       -.89453E-06   -.18593E-03
  19  Prefactor     .10000E-03    .72057        .31364E-07** at limit **
  20  Prefactor     .10000E-03    6.6109        .46205E-06** at limit **
  21  Normalizat    1.4214        .18663        .18174E-05    .50419E-04
  22  Prefactor     .83607        .18946       -.21993E-06    .13806E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.17148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.519457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.97748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.72426
  Prefactor  = 2.73311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.42137
  Prefactor  = 0.836074
 **********
 **   18 **HESSE 
 **********

 FCN=   5667.472     FROM HESSE     STATUS=OK           340 CALLS     2376 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1715        5.2677        .18697E-03   -1.5299    
   2  Prefactor     .10000E-03    1.1193        .76690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2430        .13174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.2295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .51946        .90921        .10929E-02   -1.5564    
   9  Prefactor     .10000E-03    18.464        .15442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.2540        .16781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.7096        .15936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.2635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.9775        14.935        .14188E-03   -1.5143    
  14  Prefactor     .10000E-03    8.4137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.6622        .17452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.7243        16.927        .20913E-03   -1.5322    
  18  Prefactor     2.7331        9.7163        .24633E-03   -1.5377    
  19  Prefactor     .10000E-03    .75579        .12467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.8591        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4214        .21987        .21606E-03   -.80013    
  22  Prefactor     .83607        .22503        .28958E-03   -.98412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83577e-10
Minuit parameter uncertainties:
  1  5.26824
  2  3.22262e-06
  3  4.84889e-06
  4  2.27084e-05
  5  5.27055e-05
  6  5.19746e-06
  7  6.25487e-06
  8  0.909234
  9  0.000125953
  10  1.09274e-06
  11  4.15263e-06
  12  4.99556e-06
  13  14.9415
  14  1.7198e-05
  15  8.7089e-05
  16  2.54835e-05
  17  15.8871
  18  9.72186
  19  3.61154e-06
  20  3.73964e-05
  21  0.220018
  22  0.225281
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.093e-06  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.957e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.361e-01  2.253e-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.421e+00  2.200e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/636091/likelihoodResults_457315201_457574401_4FGL_J1117.0+2013_daily_bin841.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) = 5667.47322836
delta logL = -0.000906084695089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5667.47232225
delta logL = 2.35977495322e-08

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    100.37        .90712E-02** at limit **
   2  Index         1.9825        8.8902        .50000       -.19625E-04
   3  Normalizat    1.4214        .20385E-01    .48874E-01   -.34469E-04
   4  Prefactor     .83607        .21725E-01    .65464E-01    .80559E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.98248
  Normalizat = 1.42137
  Prefactor  = 0.836072
 **********
 **   18 **HESSE 
 **********

 FCN=   5667.472     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      242 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    641.03        .16887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9825        8.3274        .50000       -.64789    
   3  Normalizat    1.4214        .60934E-01    .21606E-03   -.80013    
   4  Prefactor     .83607        .64849E-01    .28958E-03   -.98412    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.96757e-08
Minuit parameter uncertainties:
  1  0.000281527
  2  44.269
  3  0.0609368
  4  0.0648551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636091': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5667.47232214
delta logL = 1.26929990074e-07

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.815e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.982e+00  4.427e+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:  8.361e-01  6.486e-02  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.421e+00  6.094e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.83e-08', time_completed='2021-09-03 14:31:09.334447', job_id='636091', GAL2='0.84', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1630704669.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='841' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:31:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 636091: <4FGL_J1117.0+2013_daily_bin841> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin841> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 14:16:59 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:20:12 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:12 2021
Terminated at Fri Sep  3 14:31:10 2021
Results reported at Fri Sep  3 14:31:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin841 169.271 20.2294 457315201 457574401 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 :                                   635.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             347.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            851 sec.

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

