/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 116 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 = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1117.0+2013_daily_bin20
RA = 169.271, Dec = 20.2294
tmin = 244512001, tmax = 244771201
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='630501', job_status='RUN', time_executed='2021-09-03 14:02:29.962366', time_epoch_executed='1630702949.96' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630501

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630501/ft1_4FGL_J1117.0+2013_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630501/ft2_4FGL_J1117.0+2013_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630501/ft1_4FGL_J1117.0+2013_daily_bin20.fits outfile=/scratch/kocevski/630501/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin20.fits ra=169.271 dec=20.2294 rad=12.0 tmin=244512001.0 tmax=244771201.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 1.43
user 1.27
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630501/ft1_filtered_4FGL_J1117.0+2013_daily_bin20.fits" evtable="EVENTS" scfile=/scratch/kocevski/630501/ft2_4FGL_J1117.0+2013_daily_bin20.fits sctable="SC_DATA" outfile=/scratch/kocevski/630501/ltcube_244512001_244771201_4FGL_J1117.0+2013_daily_bin20.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/630501/ft2_4FGL_J1117.0+2013_daily_bin20.fits
.....................!
real 13.43
user 13.07
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630501/ft1_filtered_4FGL_J1117.0+2013_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/630501/ft2_4FGL_J1117.0+2013_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/630501/ltcube_244512001_244771201_4FGL_J1117.0+2013_daily_bin20.fits outfile=/scratch/kocevski/630501/expmap_244512001_244771201_4FGL_J1117.0+2013_daily_bin20.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/630501/ltcube_244512001_244771201_4FGL_J1117.0+2013_daily_bin20.fits
.....................!
real 191.89
user 186.05
sys 5.45

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/630501/ft1_filtered_4FGL_J1117.0+2013_daily_bin20.fits scfile=/scratch/kocevski/630501/ft2_4FGL_J1117.0+2013_daily_bin20.fits outfile=/scratch/kocevski/630501/cmap_244512001_244771201_4FGL_J1117.0+2013_daily_bin20.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630501/ft1_filtered_4FGL_J1117.0+2013_daily_bin20.fits scfile=/scratch/kocevski/630501/ft2_4FGL_J1117.0+2013_daily_bin20.fits outfile=/scratch/kocevski/630501/cmap_HighResolution_244512001_244771201_4FGL_J1117.0+2013_daily_bin20.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.51
user 0.37
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19811       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7962       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.984       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.324       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3733       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5284       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5012       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3828       1.0000         .10000E-03   10000.    
    11 'norm      '    .86519       1.0000         .10000E-03   10000.    
    12 'norm      '    .10313E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.692       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.760       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1543       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .66985       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3113       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=   4962.489     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2342 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4100        .47690E-05** at limit **
   2  Prefactor     .19281        1.5075       -.22921E-06   -.38198E-03
   3  Prefactor     5.7963        4.9120        .21204E-06    .44734E-04
   4  Prefactor     15.983        12.310        .11653E-06   -.21772E-03
   5  Prefactor     30.321        15.680       -.70938E-06   -.20765E-03
   6  Prefactor     2.3747        7.5591        .39331E-05   -.11776E-02
   7  Prefactor     .10000E-03    17.119        .81398E-05** at limit **
   8  norm          1.5282        1.2668       -.36315E-07   -.33444E-05
   9  Prefactor     6.4994        3.8496       -.17828E-06    .12938E-03
  10  Prefactor     3.3818        7.8754       -.67113E-07    .16276E-04
  11  norm          .86007        6.5486       -.44548E-06    .35700E-04
  12  norm          .10000E-03    24.320       -.44325E-05** at limit **
  13  Prefactor     .10000E-03    11.275       -.80057E-05** at limit **
  14  Prefactor     .10000E-03    7.0855       -.39285E-06** at limit **
  15  Prefactor     .10000E-03    15.210        .11018E-07** at limit **
  16  Prefactor     11.691        10.160        .22131E-06    .43183E-04
  17  Prefactor     11.752        19.583       -.63298E-05   -.17784E-03
  18  Prefactor     .10000E-03    1.9341        .41510E-07** at limit **
  19  Prefactor     .10000E-03    .70668        .51215E-07** at limit **
  20  Prefactor     1.1540        3.1348        .22978E-06   -.18091E-03
  21  Normalizat    .66991        .19081        .16127E-05    .25972E-04
  22  Prefactor     1.3112        .19791       -.50967E-06    .12670E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.192807
  Prefactor  = 5.79627
  Prefactor  = 15.9829
  Prefactor  = 30.3211
  Prefactor  = 2.37468
  Prefactor  = 0.000100001
  norm       = 1.52816
  Prefactor  = 6.49937
  Prefactor  = 3.38181
  norm       = 0.860067
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6906
  Prefactor  = 11.7521
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.154
  Normalizat = 0.669915
  Prefactor  = 1.31122
 **********
 **   18 **HESSE 
 **********

 FCN=   4962.489     FROM HESSE     STATUS=OK           346 CALLS     2688 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .19281        2.8262        .16402E-02   -1.5620    
   3  Prefactor     5.7963        4.9099        .13901E-03   -1.5226    
   4  Prefactor     15.983        12.284        .10018E-03   -1.4908    
   5  Prefactor     30.321        15.676        .72759E-04   -1.4606    
   6  Prefactor     2.3747        18.872        .13297E-02   -1.5400    
   7  Prefactor     .10000E-03    17.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5282        1.2591        .68845E-04   -1.5461    
   9  Prefactor     6.4994        4.1449        .97245E-04   -1.5198    
  10  Prefactor     3.3818        7.8698        .21999E-03   -1.5340    
  11  norm          .86007        28.136        .34075E-02   -1.5522    
  12  norm          .10000E-03    24.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.0941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.691        10.160        .11716E-03   -1.5024    
  17  Prefactor     11.752        19.755        .11682E-03   -1.5022    
  18  Prefactor     .10000E-03    1.9345        .95679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .71605        .57764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1540        3.1071        .19791E-03   -1.5493    
  21  Normalizat    .66991        .22234        .28240E-03   -1.0509    
  22  Prefactor     1.3112        .23231        .23112E-03   -.82974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1222e-08
Minuit parameter uncertainties:
  1  0.000101163
  2  1.47605
  3  4.91027
  4  12.2863
  5  15.6777
  6  13.3944
  7  0.000310524
  8  1.25917
  9  4.14507
  10  7.87224
  11  9.84288
  12  0.00011419
  13  0.000256326
  14  1.0012e-05
  15  5.19966e-06
  16  10.1611
  17  19.7661
  18  4.29551e-07
  19  9.53168e-06
  20  3.10756
  21  0.222634
  22  0.232489
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  3.382e+00  7.872e+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.311e+00  2.325e-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:  6.699e-01  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/630501/likelihoodResults_244512001_244771201_4FGL_J1117.0+2013_daily_bin20.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) = 4960.88955475
delta logL = 1.59929668988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4960.87158362
delta logL = 1.617267813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13383       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1651       1.0000          .0000       10.000    
     3 'Normalizat'    .55018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3956       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=   4960.872     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      321 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13316        1.3068        .34032E-02   -.47614E-03
   2  Index         4.1675        2.0354        .71608E-01    .83378E-04
   3  Normalizat    .54979        .54979E-01    .69895E-01    .17418E-05
   4  Prefactor     1.3959        .60641E-01    .50886E-01   -.19059E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.13316
  Index      = 4.16754
  Normalizat = 0.549793
  Prefactor  = 1.39594
 **********
 **   18 **HESSE 
 **********

 FCN=   4960.872     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      354 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13316        2.4769        .15338E-04   -1.5635    
   2  Index         4.1675        3.0652        .28530E-02   -.16727    
   3  Normalizat    .54979        .19493        .30938E-03   -1.1016    
   4  Prefactor     1.3959        .21314        .22495E-03   -.80497    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.75643e-10
Minuit parameter uncertainties:
  1  1.14822
  2  3.30784
  3  0.195174
  4  0.213279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630501': 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) = 4960.87157904
delta logL = 1.61727239601

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.332e-01  1.148e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  4.168e+00  3.308e+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:  1.396e+00  2.133e-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:  5.498e-01  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.79
Ra Dec: 169.271 20.229
Photon Index (Free Index): 4.17 +/- 3.31
Photon Flux (Free Index): 9.24e-08 +/- 5.78e-08
Energy Flux (Free Index): 1.35e-05 +/- 9.66e-06

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/630501/cmap_HighResolution_244512001_244771201_4FGL_J1117.0+2013_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.98e-03', comment='SUCCESS', energy_flux2='1.35e-05', dlogl='1.62e+00', photon_flux2='9.24e-08', job_status='DONE', time_completed='2021-09-03 14:13:53.470078', photon_index_error2='3.31', photon_index2='4.17', ts='0.23', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='8.00e-08', energy_flux_error2='9.66e-06', EG='0.67', time_epoch_completed='1630703633.47', return_code='0', job_id='630501', GAL2='1.40', EG2='0.55', return_code2='102', photon_flux_error2='5.78e-08', ts2='3.79', photon_index='1.96' WHERE bin_id='20' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:13:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 630501: <4FGL_J1117.0+2013_daily_bin20> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin20 169.271 20.2294 244512001 244771201 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 :                                   596.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            987 sec.

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

