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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin1500
RA = 169.271, Dec = 20.2294
tmin = 628128001, tmax = 628387201
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='638948', job_status='RUN', time_executed='2021-09-03 14:29:31.378460', time_epoch_executed='1630704571.38' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='1500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638948

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638948/ft1_4FGL_J1117.0+2013_daily_bin1500.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638948/ft2_4FGL_J1117.0+2013_daily_bin1500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638948/ft1_4FGL_J1117.0+2013_daily_bin1500.fits outfile=/scratch/kocevski/638948/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1500.fits ra=169.271 dec=20.2294 rad=12.0 tmin=628128001.0 tmax=628387201.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 5.36
user 5.01
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638948/ft1_filtered_4FGL_J1117.0+2013_daily_bin1500.fits evtable="EVENTS" scfile=/scratch/kocevski/638948/ft2_4FGL_J1117.0+2013_daily_bin1500.fits sctable="SC_DATA" expcube=/scratch/kocevski/638948/ltcube_628128001_628387201_4FGL_J1117.0+2013_daily_bin1500.fits outfile=/scratch/kocevski/638948/expmap_628128001_628387201_4FGL_J1117.0+2013_daily_bin1500.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/638948/ltcube_628128001_628387201_4FGL_J1117.0+2013_daily_bin1500.fits
.....................!
real 191.34
user 185.58
sys 4.97

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/638948/ft1_filtered_4FGL_J1117.0+2013_daily_bin1500.fits scfile=/scratch/kocevski/638948/ft2_4FGL_J1117.0+2013_daily_bin1500.fits outfile=/scratch/kocevski/638948/cmap_628128001_628387201_4FGL_J1117.0+2013_daily_bin1500.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.59
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638948/ft1_filtered_4FGL_J1117.0+2013_daily_bin1500.fits scfile=/scratch/kocevski/638948/ft2_4FGL_J1117.0+2013_daily_bin1500.fits outfile=/scratch/kocevski/638948/cmap_HighResolution_628128001_628387201_4FGL_J1117.0+2013_daily_bin1500.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    97.651       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .95916       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0476       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10394E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.081       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .81577       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0930       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.073       1.0000         .10000E-03   10000.    
    11 'norm      '    5.2856       1.0000         .10000E-03   10000.    
    12 'norm      '    6.0674       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0907       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.083       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16510E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .86388       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3601       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .83828       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .66986       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3236       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=   6829.316     FROM MIGRAD    STATUS=CONVERGED    950 CALLS     3003 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     97.513        15.198        .40678E-04    .13237E-02
   2  Prefactor     .95870        2.2353        .18044E-03    .33740E-03
   3  Prefactor     6.0459        5.4326        .81635E-03    .24879E-03
   4  Prefactor     .80473        18.688        .41474E-03    .54303E-04
   5  Prefactor     21.585        12.572        .85240E-04    .13314E-02
   6  Prefactor     .10000E-03    18.332        .36285E-03** at limit **
   7  Prefactor     .10000E-03    9.9557        .18142E-02** at limit **
   8  norm          .81774        1.1846        .24997E-03    .37908E-03
   9  Prefactor     1.0976        2.1935        .16793E-03   -.29233E-03
  10  Prefactor     21.074        9.6841        .87252E-04    .10776E-03
  11  norm          5.2986        9.0116        .87412E-03    .26587E-03
  12  norm          6.0947        10.759        .81499E-03   -.14348E-03
  13  Prefactor     1.0879        31.119        .22898E-02    .17710E-04
  14  Prefactor     .10000E-03    18.160        .18142E-02** at limit **
  15  Prefactor     54.233        45.833        .54541E-04   -.91881E-04
  16  Prefactor     .10002E-03    45.984        .36285E-03** at limit **
  17  Prefactor     .10006E-03    20.619        .88930E-01** at limit **
  18  Prefactor     .87104        32.876        .45493E-02    .20990E-03
  19  Prefactor     2.3624        1.6242        .41769E-03   -.33356E-03
  20  Prefactor     .85095        5.7217        .26883E-02    .24064E-03
  21  Normalizat    .66791        .22335        .31803E-03   -.80575E-04
  22  Prefactor     1.3241        .21929        .25144E-03   -.25989E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 97.5126
  Prefactor  = 0.958696
  Prefactor  = 6.04594
  Prefactor  = 0.804725
  Prefactor  = 21.5846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.81774
  Prefactor  = 1.09762
  Prefactor  = 21.0738
  norm       = 5.29865
  norm       = 6.0947
  Prefactor  = 1.08791
  Prefactor  = 0.000100001
  Prefactor  = 54.2326
  Prefactor  = 0.000100023
  Prefactor  = 0.000100063
  Prefactor  = 0.871036
  Prefactor  = 2.36237
  Prefactor  = 0.850954
  Normalizat = 0.667907
  Prefactor  = 1.3241
 **********
 **   18 **HESSE 
 **********

 FCN=   6829.316     FROM HESSE     STATUS=OK           336 CALLS     3339 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     97.513        15.191        .81356E-05   -1.3730    
   2  Prefactor     .95870        2.2346        .72175E-05   -1.5512    
   3  Prefactor     6.0459        5.4300        .32654E-04   -1.5216    
   4  Prefactor     .80473        18.610        .16590E-04   -1.5529    
   5  Prefactor     21.585        12.553        .17048E-04   -1.4778    
   6  Prefactor     .10000E-03    18.333        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.9576        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .81774        1.1838        .99988E-05   -1.5527    
   9  Prefactor     1.0976        2.1924        .67171E-05   -1.5498    
  10  Prefactor     21.074        9.6610        .34901E-05   -1.4790    
  11  norm          5.2986        9.0053        .34965E-04   -1.5248    
  12  norm          6.0947        10.751        .32600E-04   -1.5214    
  13  Prefactor     1.0879        30.856        .91590E-04   -1.5499    
  14  Prefactor     .10000E-03    18.165        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     54.233        45.813        .10908E-04   -1.4234    
  16  Prefactor     .10002E-03    45.986        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10006E-03    18.708        .94663E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .87104        32.145        .18197E-03   -1.5521    
  19  Prefactor     2.3624        1.6237        .16707E-04   -1.5401    
  20  Prefactor     .85095        5.5891        .10753E-03   -1.5523    
  21  Normalizat    .66791        .22279        .12721E-04   -1.0517    
  22  Prefactor     1.3241        .21946        .50288E-04   -.82593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03469e-09
Minuit parameter uncertainties:
  1  15.1916
  2  2.23481
  3  5.43044
  4  7.7419
  5  12.5548
  6  0.00012204
  7  0.000107471
  8  1.18379
  9  2.19256
  10  9.66175
  11  9.0076
  12  10.7547
  13  11.5938
  14  0.000297732
  15  45.8424
  16  0.00204237
  17  0.00217053
  18  10.5884
  19  1.62371
  20  4.36202
  21  0.223091
  22  0.219611
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  2.107e+01  9.662e+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.324e+00  2.196e-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.679e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.78
Ra Dec: 169.271 20.229
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 7.08e-08 +/- 3.24e-08
Energy Flux (Fixed Index): 5.46e-05 +/- 2.50e-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) = 6829.30636815
delta logL = 0.00954760050081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6829.30391633
delta logL = 0.0119994182833

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.652       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8956       1.0000          .0000       10.000    
     3 'Normalizat'    .67493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3204       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=   6829.304     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      255 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.654        10.537        .86079E-04    .41471E-04
   2  Index         1.8961        .39912        .60831E-02    .43373E-03
   3  Normalizat    .67484        .20622        .31652E-03    .41628E-04
   4  Prefactor     1.3206        .21811        .25176E-03   -.39955E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.654
  Index      = 1.89605
  Normalizat = 0.674839
  Prefactor  = 1.32058
 **********
 **   18 **HESSE 
 **********

 FCN=   6829.304     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.654        10.413        .34432E-05   -1.4777    
   2  Index         1.8961        .39389        .12166E-02   -.66975    
   3  Normalizat    .67484        .20616        .12661E-04   -1.0489    
   4  Prefactor     1.3206        .21819        .50351E-04   -.82697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51182e-11
Minuit parameter uncertainties:
  1  10.4143
  2  0.39456
  3  0.206392
  4  0.218342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638948': 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) = 6829.30391506
delta logL = 0.0120006947018

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  2.165e+01  1.041e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.896e+00  3.946e-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.321e+00  2.183e-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.748e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.72
Ra Dec: 169.271 20.229
Photon Index (Free Index): 1.90 +/- 0.39
Photon Flux (Free Index): 6.49e-08 +/- 4.80e-08
Energy Flux (Free Index): 5.89e-05 +/- 4.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/638948/cmap_HighResolution_628128001_628387201_4FGL_J1117.0+2013_daily_bin1500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.08e-08', energy_flux2='5.89e-05', photon_flux_error='3.24e-08', dlogl='1.20e-02', energy_flux='5.46e-05', photon_flux2='6.49e-08', job_status='DONE', time_completed='2021-09-03 14:41:44.203334', photon_index_error2='0.39', photon_index2='1.90', ts='19.78', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', energy_flux_error2='4.03e-05', EG='0.67', time_epoch_completed='1630705304.2', return_code='0', job_id='638948', GAL2='1.32', EG2='0.67', return_code2='0', energy_flux_error='2.50e-05', photon_flux_error2='4.80e-08', ts2='19.72', photon_index='1.96' WHERE bin_id='1500' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:41:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 638948: <4FGL_J1117.0+2013_daily_bin1500> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin1500> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 14:26:23 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:27:01 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:27:01 2021
Terminated at Fri Sep  3 14:41:44 2021
Results reported at Fri Sep  3 14:41:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin1500 169.271 20.2294 628128001 628387201 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 :                                   712.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            921 sec.

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

