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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin941
RA = 169.271, Dec = 20.2294
tmin = 483235201, tmax = 483494401
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='636231', job_status='RUN', time_executed='2021-09-03 14:20:43.825422', time_epoch_executed='1630704043.83' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='941'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636231

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636231/ft1_4FGL_J1117.0+2013_daily_bin941.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636231/ft2_4FGL_J1117.0+2013_daily_bin941.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636231/ft1_4FGL_J1117.0+2013_daily_bin941.fits outfile=/scratch/kocevski/636231/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin941.fits ra=169.271 dec=20.2294 rad=12.0 tmin=483235201.0 tmax=483494401.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.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636231/ft1_filtered_4FGL_J1117.0+2013_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/636231/ft2_4FGL_J1117.0+2013_daily_bin941.fits sctable="SC_DATA" expcube=/scratch/kocevski/636231/ltcube_483235201_483494401_4FGL_J1117.0+2013_daily_bin941.fits outfile=/scratch/kocevski/636231/expmap_483235201_483494401_4FGL_J1117.0+2013_daily_bin941.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/636231/ltcube_483235201_483494401_4FGL_J1117.0+2013_daily_bin941.fits
.....................!
real 194.42
user 188.28
sys 5.17

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/636231/ft1_filtered_4FGL_J1117.0+2013_daily_bin941.fits scfile=/scratch/kocevski/636231/ft2_4FGL_J1117.0+2013_daily_bin941.fits outfile=/scratch/kocevski/636231/cmap_483235201_483494401_4FGL_J1117.0+2013_daily_bin941.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/636231/ft1_filtered_4FGL_J1117.0+2013_daily_bin941.fits scfile=/scratch/kocevski/636231/ft2_4FGL_J1117.0+2013_daily_bin941.fits outfile=/scratch/kocevski/636231/cmap_HighResolution_483235201_483494401_4FGL_J1117.0+2013_daily_bin941.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.938       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3285       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7204       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2516       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.958       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.605       1.0000         .10000E-03   10000.    
     8 'norm      '    4.2263       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2815       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8358       1.0000         .10000E-03   10000.    
    11 'norm      '    6.0067       1.0000         .10000E-03   10000.    
    12 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.690       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    81.964       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2228       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .66596       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1058       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=   5205.145     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2411 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.935        7.9934       -.23163E-06    .88624E-04
   2  Prefactor     1.3282        2.5357        .34123E-06    .24093E-03
   3  Prefactor     6.7188        6.4428        .18661E-05   -.10478E-02
   4  Prefactor     .10011E-03    8.6170       -.26346E-05** at limit **
   5  Prefactor     2.2469        10.786        .15746E-05    .11908E-03
   6  Prefactor     14.958        13.317       -.73052E-07    .42341E-04
   7  Prefactor     17.596        17.398       -.23782E-05   -.32160E-03
   8  norm          4.2262        1.8855       -.93028E-07    .37709E-04
   9  Prefactor     4.2806        3.6832        .87332E-07    .75893E-04
  10  Prefactor     7.8348        6.3852       -.12289E-06   -.10580E-03
  11  norm          6.0040        12.781       -.75905E-06   -.20882E-03
  12  norm          .10001E-03    16.030        .36867E-05** at limit **
  13  Prefactor     11.689        9.5634        .27257E-07    .11068E-04
  14  Prefactor     .10000E-03    4.9608        .91295E-07** at limit **
  15  Prefactor     81.961        47.159       -.12333E-05   -.22153E-03
  16  Prefactor     .10001E-03    19.442        .42172E-05** at limit **
  17  Prefactor     .10001E-03    15.023       -.30439E-05** at limit **
  18  Prefactor     .10000E-03    4.5984       -.39138E-07** at limit **
  19  Prefactor     1.2229        1.5326        .22515E-07   -.10733E-03
  20  Prefactor     .10000E-03    .90475        .19477E-07** at limit **
  21  Normalizat    .66628        .19330        .10121E-05    .17302E-03
  22  Prefactor     1.1055        .19341       -.37375E-06    .20506E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9352
  Prefactor  = 1.32817
  Prefactor  = 6.71878
  Prefactor  = 0.00010011
  Prefactor  = 2.24688
  Prefactor  = 14.9582
  Prefactor  = 17.5964
  norm       = 4.22618
  Prefactor  = 4.28057
  Prefactor  = 7.83476
  norm       = 6.004
  norm       = 0.000100005
  Prefactor  = 11.6887
  Prefactor  = 0.0001
  Prefactor  = 81.9607
  Prefactor  = 0.000100007
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 1.22292
  Prefactor  = 0.0001
  Normalizat = 0.666285
  Prefactor  = 1.10547
 **********
 **   18 **HESSE 
 **********

 FCN=   5205.145     FROM HESSE     STATUS=OK           344 CALLS     2755 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.935        7.9132        .11136E-03   -1.4988    
   2  Prefactor     1.3282        2.4929        .14176E-03   -1.5477    
   3  Prefactor     6.7188        7.7975        .77391E-03   -1.5189    
   4  Prefactor     .10011E-03    22.143        .34422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2469        10.022        .27382E-03   -1.5408    
   6  Prefactor     14.958        13.310        .10356E-03   -1.4934    
   7  Prefactor     17.596        17.302        .95455E-04   -1.4869    
   8  norm          4.2262        1.8861        .62050E-04   -1.5297    
   9  Prefactor     4.2806        3.7020        .11003E-03   -1.5294    
  10  Prefactor     7.8348        6.3906        .14325E-03   -1.5148    
  11  norm          6.0040        12.825        .16383E-03   -1.5218    
  12  norm          .10001E-03    16.764        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.689        9.5659        .11717E-03   -1.5024    
  14  Prefactor     .10000E-03    4.9667        .15692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     81.961        47.466        .44365E-04   -1.3895    
  16  Prefactor     .10001E-03    20.500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    15.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.6705        .15108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2229        1.5045        .95295E-04   -1.5487    
  20  Prefactor     .10000E-03    .90738        .67009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .66628        .22198        .27199E-03   -1.0524    
  22  Prefactor     1.1055        .22266        .23565E-03   -.89292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.78531e-09
Minuit parameter uncertainties:
  1  7.91387
  2  2.49314
  3  7.79863
  4  0.00312154
  5  9.49336
  6  13.3128
  7  17.3066
  8  1.8861
  9  3.70222
  10  6.39112
  11  12.8311
  12  0.000600578
  13  9.56716
  14  1.52475e-06
  15  47.4878
  16  0.000739298
  17  0.000584487
  18  9.24235e-06
  19  1.50456
  20  1.23815e-07
  21  0.222276
  22  0.222844
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  7.835e+00  6.391e+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.105e+00  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:  6.663e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.79
Ra Dec: 169.271 20.229
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.63e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.66e-05

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) = 5205.14384265
delta logL = 0.00152392718246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5205.14361564
delta logL = 0.00175093560028

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5205.144     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      281 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9241        6.7367        .71320E-03    .20563E-05
   2  Index         1.9088        .83072        .97301E-02    .15930E-04
   3  Normalizat    .66888        .20593        .27151E-03   -.13901E-04
   4  Prefactor     1.1041        .22154        .23579E-03   -.13452E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.92411
  Index      = 1.90875
  Normalizat = 0.668876
  Prefactor  = 1.10407
 **********
 **   18 **HESSE 
 **********

 FCN=   5205.144     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9241        6.6187        .28528E-04   -1.5145    
   2  Index         1.9088        .81542        .38920E-03   -.66651    
   3  Normalizat    .66888        .20586        .10861E-04   -1.0513    
   4  Prefactor     1.1041        .22165        .94316E-05   -.89337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12565e-12
Minuit parameter uncertainties:
  1  6.61929
  2  0.821382
  3  0.206094
  4  0.22183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636231': 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) = 5205.14359348
delta logL = 0.00177310074287

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.104e+00  2.218e-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.689e-01  2.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.79
Ra Dec: 169.271 20.229
Photon Index (Free Index): 1.91 +/- 0.82
Photon Flux (Free Index): 2.43e-08 +/- 3.93e-08
Energy Flux (Free Index): 2.13e-05 +/- 2.52e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.63e-08', energy_flux2='2.13e-05', photon_flux_error='2.15e-08', dlogl='1.77e-03', energy_flux='2.03e-05', photon_flux2='2.43e-08', job_status='DONE', time_completed='2021-09-03 14:30:36.701163', photon_index_error2='0.82', photon_index2='1.91', ts='7.79', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='2.52e-05', EG='0.67', time_epoch_completed='1630704636.7', return_code='0', job_id='636231', GAL2='1.10', EG2='0.67', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='3.93e-08', ts2='7.79', photon_index='1.96' WHERE bin_id='941' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:30:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 636231: <4FGL_J1117.0+2013_daily_bin941> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin941 169.271 20.2294 483235201 483494401 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 :                                   588.60 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             370.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            805 sec.

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

