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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin1274
RA = 169.271, Dec = 20.2294
tmin = 569548801, tmax = 569808001
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='637560', job_status='RUN', time_executed='2021-09-03 14:24:08.641935', time_epoch_executed='1630704248.64' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='1274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/637560

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/637560/ft1_4FGL_J1117.0+2013_daily_bin1274.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/637560/ft2_4FGL_J1117.0+2013_daily_bin1274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/637560/ft1_4FGL_J1117.0+2013_daily_bin1274.fits outfile=/scratch/kocevski/637560/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1274.fits ra=169.271 dec=20.2294 rad=12.0 tmin=569548801.0 tmax=569808001.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.65
user 3.41
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/637560/ft1_filtered_4FGL_J1117.0+2013_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/637560/ft2_4FGL_J1117.0+2013_daily_bin1274.fits sctable="SC_DATA" expcube=/scratch/kocevski/637560/ltcube_569548801_569808001_4FGL_J1117.0+2013_daily_bin1274.fits outfile=/scratch/kocevski/637560/expmap_569548801_569808001_4FGL_J1117.0+2013_daily_bin1274.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/637560/ltcube_569548801_569808001_4FGL_J1117.0+2013_daily_bin1274.fits
.....................!
real 192.52
user 186.72
sys 5.35

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/637560/ft1_filtered_4FGL_J1117.0+2013_daily_bin1274.fits scfile=/scratch/kocevski/637560/ft2_4FGL_J1117.0+2013_daily_bin1274.fits outfile=/scratch/kocevski/637560/cmap_569548801_569808001_4FGL_J1117.0+2013_daily_bin1274.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.56
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/637560/ft1_filtered_4FGL_J1117.0+2013_daily_bin1274.fits scfile=/scratch/kocevski/637560/ft2_4FGL_J1117.0+2013_daily_bin1274.fits outfile=/scratch/kocevski/637560/cmap_HighResolution_569548801_569808001_4FGL_J1117.0+2013_daily_bin1274.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/637560/ft1_filtered_4FGL_J1117.0+2013_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/637560/ft2_4FGL_J1117.0+2013_daily_bin1274.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/637560/Model_4FGL_J1117.0+2013_daily_bin1274.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/637560/ft1_filtered_4FGL_J1117.0+2013_daily_bin1274.fits.....................!
real 55.15
user 53.79
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8875       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5804       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .58387E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.413       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.258       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.018       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8289       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1457       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96320       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=   5937.724     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2349 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8863        7.1772        .16196E-05   -.31087E-03
   2  Prefactor     5.5800        3.1922       -.64863E-07    .87310E-03
   3  Prefactor     .10000E-03    10.017       -.13501E-05** at limit **
   4  Prefactor     .10013E-03    8.6269       -.29243E-05** at limit **
   5  Prefactor     .10000E-03    6.1791        .93174E-06** at limit **
   6  Prefactor     22.407        13.901       -.63102E-06   -.33033E-03
   7  Prefactor     .10000E-03    7.3956        .29318E-07** at limit **
   8  norm          .10000E-03    .60520       -.13694E-07** at limit **
   9  Prefactor     .10000E-03    1.8858       -.44156E-06** at limit **
  10  Prefactor     .10000E-03    4.0008       -.12340E-05** at limit **
  11  norm          11.260        11.594        .85400E-06   -.23888E-03
  12  norm          .10000E-03    2.9112        .34663E-06** at limit **
  13  Prefactor     .10000E-03    7.2448        .21818E-06** at limit **
  14  Prefactor     .10000E-03    3.7305        .11003E-05** at limit **
  15  Prefactor     34.022        45.376        .16097E-05    .18565E-03
  16  Prefactor     .10000E-03    7.8551       -.11433E-05** at limit **
  17  Prefactor     .10000E-03    5.5750       -.34239E-06** at limit **
  18  Prefactor     .10000E-03    11.897        .23467E-05** at limit **
  19  Prefactor     1.8292        1.3570        .14339E-07   -.81615E-04
  20  Prefactor     .10000E-03    3.0267        .61114E-06** at limit **
  21  Normalizat    1.1454        .18342       -.18272E-06    .36610E-03
  22  Prefactor     .96343        .18460       -.28850E-06    .23413E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.88627
  Prefactor  = 5.58002
  Prefactor  = 0.000100001
  Prefactor  = 0.000100129
  Prefactor  = 0.000100001
  Prefactor  = 22.407
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 11.2599
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 34.0218
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 1.82922
  Prefactor  = 0.0001
  Normalizat = 1.14539
  Prefactor  = 0.963435
 **********
 **   18 **HESSE 
 **********

 FCN=   5937.724     FROM HESSE     STATUS=OK           336 CALLS     2685 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8863        8.0153        .71386E-03   -1.5146    
   2  Prefactor     5.5800        3.1942        .96258E-04   -1.5235    
   3  Prefactor     .10000E-03    10.442        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10013E-03    30.412        .37420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.407        13.756        .84607E-04   -1.4761    
   7  Prefactor     .10000E-03    7.4131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .92045        .11525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.0062        .19694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.1915        .15343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.260        11.948        .59699E-03   -1.5037    
  12  norm          .10000E-03    2.9273        .12868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.3017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.8683        .14796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     34.022        45.925        .68706E-04   -1.4541    
  16  Prefactor     .10000E-03    8.1351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.5951        .17790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.627        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.8292        1.3537        .74918E-04   -1.5437    
  20  Prefactor     .10000E-03    5.9458        .25492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1454        .21377        .23888E-03   -.88308    
  22  Prefactor     .96343        .21688        .26834E-03   -.93958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.35646e-09
Minuit parameter uncertainties:
  1  8.01642
  2  3.19427
  3  0.000227841
  4  0.00396549
  5  0.000154513
  6  13.758
  7  1.6437e-05
  8  5.12796e-07
  9  7.01133e-05
  10  0.000143073
  11  11.9505
  12  3.47131e-05
  13  3.28545e-05
  14  0.000125999
  15  45.9727
  16  0.000181848
  17  4.73105e-05
  18  0.000428284
  19  1.35373
  20  7.02066e-05
  21  0.213934
  22  0.217076
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.431e-04  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.634e-01  2.171e-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.145e+00  2.139e-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.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/637560/likelihoodResults_569548801_569808001_4FGL_J1117.0+2013_daily_bin1274.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) = 5937.72495758
delta logL = -0.00113569254972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5937.72382191
delta logL = -1.96450855583e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9560       1.0000          .0000       10.000    
     3 'Normalizat'    1.1454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96345       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=   5937.724     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .53E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    108.37        .90712E-02** at limit **
   2  Index         1.9554        7.7411        .50000        .90026E-06
   3  Normalizat    1.1454        .23670E-01    .54025E-01    .27261E-05
   4  Prefactor     .96344        .24739E-01    .45809E-01    .10326E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95544
  Normalizat = 1.14539
  Prefactor  = 0.963435
 **********
 **   18 **HESSE 
 **********

 FCN=   5937.724     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    594.99        .15344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9554        6.1899        .50000       -.65469    
   3  Normalizat    1.1454        .68706E-01    .23888E-03   -.88308    
   4  Prefactor     .96344        .71806E-01    .26834E-03   -.93958    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.69187e-10
Minuit parameter uncertainties:
  1  9.07518e-05
  2  47.7729
  3  0.0687112
  4  0.0718135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/637560': 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) = 5937.72382189
delta logL = 5.4387783166e-10

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  9.075e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.955e+00  4.777e+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:  9.634e-01  7.181e-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.145e+00  6.871e-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/637560/cmap_HighResolution_569548801_569808001_4FGL_J1117.0+2013_daily_bin1274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2021-09-03 14:35:13.817893', job_id='637560', GAL2='0.96', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630704913.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='5.44e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1274' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:35:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 637560: <4FGL_J1117.0+2013_daily_bin1274> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin1274> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep  3 14:21:27 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:21:36 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:21:36 2021
Terminated at Fri Sep  3 14:35:14 2021
Results reported at Fri Sep  3 14:35:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin1274 169.271 20.2294 569548801 569808001 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 :                                   658.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            827 sec.

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

