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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin1341
RA = 169.271, Dec = 20.2294
tmin = 586915201, tmax = 587174401
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='637658', job_status='RUN', time_executed='2021-09-03 14:25:09.018109', time_epoch_executed='1630704309.02' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='1341'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/637658

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/637658/ft1_4FGL_J1117.0+2013_daily_bin1341.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/637658/ft2_4FGL_J1117.0+2013_daily_bin1341.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/637658/ft1_4FGL_J1117.0+2013_daily_bin1341.fits outfile=/scratch/kocevski/637658/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1341.fits ra=169.271 dec=20.2294 rad=12.0 tmin=586915201.0 tmax=587174401.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.63
user 3.37
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/637658/ft1_filtered_4FGL_J1117.0+2013_daily_bin1341.fits evtable="EVENTS" scfile=/scratch/kocevski/637658/ft2_4FGL_J1117.0+2013_daily_bin1341.fits sctable="SC_DATA" expcube=/scratch/kocevski/637658/ltcube_586915201_587174401_4FGL_J1117.0+2013_daily_bin1341.fits outfile=/scratch/kocevski/637658/expmap_586915201_587174401_4FGL_J1117.0+2013_daily_bin1341.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/637658/ltcube_586915201_587174401_4FGL_J1117.0+2013_daily_bin1341.fits
.....................!
real 191.27
user 185.93
sys 4.98

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/637658/ft1_filtered_4FGL_J1117.0+2013_daily_bin1341.fits scfile=/scratch/kocevski/637658/ft2_4FGL_J1117.0+2013_daily_bin1341.fits outfile=/scratch/kocevski/637658/cmap_586915201_587174401_4FGL_J1117.0+2013_daily_bin1341.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.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.660       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6304       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .64354E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.091       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6440       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9143       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .81842       1.0000         .10000E-03   10000.    
    11 'norm      '    5.7628       1.0000         .10000E-03   10000.    
    12 'norm      '    .10166E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5576       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    51.706       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.707       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8701       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3245       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1149       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4449       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .61071       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=   5798.505     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2400 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.654        11.380        .18141E-06    .45007E-04
   2  Prefactor     2.6307        3.1654        .21671E-06    .62338E-04
   3  Prefactor     .10000E-03    4.2441        .40566E-07** at limit **
   4  Prefactor     .10014E-03    9.2989        .10498E-05** at limit **
   5  Prefactor     13.094        11.576        .78406E-06    .75314E-04
   6  Prefactor     6.6559        16.639        .16697E-06    .62712E-05
   7  Prefactor     .10000E-03    8.7613       -.21111E-06** at limit **
   8  norm          .10000E-03    .51481       -.46227E-07** at limit **
   9  Prefactor     2.9133        4.3247        .85703E-07   -.16434E-04
  10  Prefactor     .82377        4.8681        .46358E-06   -.15709E-03
  11  norm          5.7503        10.818        .70583E-06    .59208E-04
  12  norm          .10000E-03    13.260       -.38483E-06** at limit **
  13  Prefactor     6.5554        8.8572       -.56890E-07   -.34265E-05
  14  Prefactor     .10000E-03    4.9464        .55308E-07** at limit **
  15  Prefactor     51.750        42.099       -.56519E-05    .12811E-04
  16  Prefactor     .10000E-03    4.4291       -.43134E-06** at limit **
  17  Prefactor     22.669        21.536        .28631E-05   -.56544E-05
  18  Prefactor     1.8659        12.897        .10795E-04    .35410E-04
  19  Prefactor     4.3257        2.3234       -.17942E-06   -.75959E-04
  20  Prefactor     1.1110        5.6238       -.82272E-07   -.52536E-04
  21  Normalizat    1.4451        .20744       -.14195E-05    .99311E-04
  22  Prefactor     .61075        .18919        .17692E-05    .60232E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6537
  Prefactor  = 2.63071
  Prefactor  = 0.0001
  Prefactor  = 0.000100141
  Prefactor  = 13.0935
  Prefactor  = 6.65593
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.91327
  Prefactor  = 0.823771
  norm       = 5.75031
  norm       = 0.0001
  Prefactor  = 6.55537
  Prefactor  = 0.0001
  Prefactor  = 51.7496
  Prefactor  = 0.0001
  Prefactor  = 22.6686
  Prefactor  = 1.86593
  Prefactor  = 4.3257
  Prefactor  = 1.11096
  Normalizat = 1.44509
  Prefactor  = 0.610751
 **********
 **   18 **HESSE 
 **********

 FCN=   5798.505     FROM HESSE     STATUS=OK           354 CALLS     2754 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.654        11.200        .12272E-03   -1.5055    
   2  Prefactor     2.6307        3.1216        .13369E-03   -1.5384    
   3  Prefactor     .10000E-03    4.2901        .15312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10014E-03    56.092        .38817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.094        10.878        .11071E-03   -1.4984    
   6  Prefactor     6.6559        16.336        .15568E-03   -1.5192    
   7  Prefactor     .10000E-03    8.7926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .90821        .10535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9133        4.2436        .15343E-03   -1.5367    
  10  Prefactor     .82377        17.525        .31203E-02   -1.5526    
  11  norm          5.7503        10.786        .16731E-03   -1.5228    
  12  norm          .10000E-03    13.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.5554        8.8402        .15671E-03   -1.5196    
  14  Prefactor     .10000E-03    4.9482        .16540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     51.750        42.246        .55774E-04   -1.4268    
  16  Prefactor     .10000E-03    4.4349        .15655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.669        21.516        .84058E-04   -1.4755    
  18  Prefactor     1.8659        12.967        .15229E-02   -1.5435    
  19  Prefactor     4.3257        2.3232        .80265E-04   -1.5292    
  20  Prefactor     1.1110        5.6299        .33173E-03   -1.5497    
  21  Normalizat    1.4451        .24256        .22487E-03   -.79333    
  22  Prefactor     .61075        .22035        .32621E-03   -1.0714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61739e-09
Minuit parameter uncertainties:
  1  11.2019
  2  3.12177
  3  1.24438e-05
  4  0.00562629
  5  10.8798
  6  16.3465
  7  2.21584e-05
  8  1.85677e-06
  9  4.24401
  10  7.60109
  11  10.7894
  12  8.38306e-05
  13  8.84195
  14  6.8395e-06
  15  42.2702
  16  9.87162e-06
  17  21.5238
  18  9.84075
  19  2.32328
  20  5.00234
  21  0.242755
  22  0.220659
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  8.238e-01  7.601e+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:  6.108e-01  2.207e-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.445e+00  2.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/637658/likelihoodResults_586915201_587174401_4FGL_J1117.0+2013_daily_bin1341.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) = 5798.30106337
delta logL = 0.203870340557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5798.28987861
delta logL = 0.215055101082

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77568       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9892       1.0000          .0000       10.000    
     3 'Normalizat'    1.4172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62541       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=   5798.290     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      234 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77594        30.711        .12349E-01    .64882E-03
   2  Index         2.9897        3.2245        .13288        .13669E-03
   3  Normalizat    1.4172        .39047E-01    .51270E-01    .46524E-05
   4  Prefactor     .62543        .38672E-01    .72867E-01    .29388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.775937
  Index      = 2.98969
  Normalizat = 1.41723
  Prefactor  = 0.62543
 **********
 **   18 **HESSE 
 **********

 FCN=   5798.290     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77594        48.155        .10752E-03   -1.5532    
   2  Index         2.9897        6.4168        .75766E-02   -.41377    
   3  Normalizat    1.4172        .22839        .22667E-03   -.80131    
   4  Prefactor     .62543        .22519        .32257E-03   -1.0653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04761e-08
Minuit parameter uncertainties:
  1  12.2349
  2  6.4439
  3  0.228554
  4  0.225519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/637658': 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) = 5798.28987794
delta logL = 0.215055763378

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  7.759e-01  1.223e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.990e+00  6.444e+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:  6.254e-01  2.255e-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.417e+00  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/637658/cmap_HighResolution_586915201_587174401_4FGL_J1117.0+2013_daily_bin1341.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-03', job_status='DONE', photon_flux_upper_limit='6.90e-08', time_completed='2021-09-03 14:36:14.209483', job_id='637658', GAL2='0.63', fit_tolerance='1e-08', EG2='1.42', EG='1.45', time_epoch_completed='1630704974.21', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='2.15e-01', ts2='0.47', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1341' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:36:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 637658: <4FGL_J1117.0+2013_daily_bin1341> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin1341 169.271 20.2294 586915201 587174401 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 :                                   656.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             238.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            880 sec.

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

