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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin568
RA = 169.271, Dec = 20.2294
tmin = 386553601, tmax = 386812801
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='635679', job_status='RUN', time_executed='2021-09-03 14:16:51.350490', time_epoch_executed='1630703811.35' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='568'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/635679

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/635679/ft1_4FGL_J1117.0+2013_daily_bin568.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/635679/ft2_4FGL_J1117.0+2013_daily_bin568.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/635679/ft1_4FGL_J1117.0+2013_daily_bin568.fits outfile=/scratch/kocevski/635679/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin568.fits ra=169.271 dec=20.2294 rad=12.0 tmin=386553601.0 tmax=386812801.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 4.78
user 4.54
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/635679/ft1_filtered_4FGL_J1117.0+2013_daily_bin568.fits" evtable="EVENTS" scfile=/scratch/kocevski/635679/ft2_4FGL_J1117.0+2013_daily_bin568.fits sctable="SC_DATA" outfile=/scratch/kocevski/635679/ltcube_386553601_386812801_4FGL_J1117.0+2013_daily_bin568.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/635679/ft2_4FGL_J1117.0+2013_daily_bin568.fits
.....................!
real 16.82
user 16.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/635679/ft1_filtered_4FGL_J1117.0+2013_daily_bin568.fits evtable="EVENTS" scfile=/scratch/kocevski/635679/ft2_4FGL_J1117.0+2013_daily_bin568.fits sctable="SC_DATA" expcube=/scratch/kocevski/635679/ltcube_386553601_386812801_4FGL_J1117.0+2013_daily_bin568.fits outfile=/scratch/kocevski/635679/expmap_386553601_386812801_4FGL_J1117.0+2013_daily_bin568.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/635679/ltcube_386553601_386812801_4FGL_J1117.0+2013_daily_bin568.fits
.....................!
real 192.68
user 187.46
sys 4.31

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/635679/ft1_filtered_4FGL_J1117.0+2013_daily_bin568.fits scfile=/scratch/kocevski/635679/ft2_4FGL_J1117.0+2013_daily_bin568.fits outfile=/scratch/kocevski/635679/cmap_386553601_386812801_4FGL_J1117.0+2013_daily_bin568.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/635679/ft1_filtered_4FGL_J1117.0+2013_daily_bin568.fits scfile=/scratch/kocevski/635679/ft2_4FGL_J1117.0+2013_daily_bin568.fits outfile=/scratch/kocevski/635679/cmap_HighResolution_386553601_386812801_4FGL_J1117.0+2013_daily_bin568.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8831       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2681       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7754       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9414       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6302       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6480       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7381       1.0000         .10000E-03   10000.    
    11 'norm      '    .10279E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.2822       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.722       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.878       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.134       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7477       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2188       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .36913       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4910       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4717.325     FROM MIGRAD    STATUS=CONVERGED     68 CALLS     1984 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8842        1.0315       -.19609E-06    .29584E-03
   2  Prefactor     1.2672        2.6574        .49972E-06   -.11234E-04
   3  Prefactor     2.7743        1.0238        .60532E-07    .25957E-04
   4  Prefactor     1.9398        1.0494       -.20877E-06    .75156E-04
   5  Prefactor     .10002E-03    4.5764       -.71566E-05** at limit **
   6  Prefactor     7.6294        1.0321        .65727E-07    .64932E-05
   7  Prefactor     .10001E-03    4.0498        .95220E-05** at limit **
   8  norm          .10000E-03    1.0162        .48723E-06** at limit **
   9  Prefactor     2.6478        2.8950        .10672E-05    .66885E-04
  10  Prefactor     4.7382        1.0092        .78828E-07    .71442E-04
  11  norm          .10000E-03    30.982       -.16437E-05** at limit **
  12  norm          5.2796        1.0305       -.17271E-06    .20689E-03
  13  Prefactor     .10003E-03    6.1404       -.89173E-05** at limit **
  14  Prefactor     16.717        1.3258       -.68256E-06    .30573E-02
  15  Prefactor     34.876        1.1207       -.29375E-06    .30572E-02
  16  Prefactor     .10000E-03    4.5653       -.42097E-05** at limit **
  17  Prefactor     10.133        1.0060        .28386E-07   -.97006E-04
  18  Prefactor     .10002E-03    7.1784        .10823E-04** at limit **
  19  Prefactor     5.7472        2.5062       -.24004E-06   -.17032E-03
  20  Prefactor     1.2189        2.4105        .26399E-06   -.98471E-04
  21  Normalizat    .36920        .20843       -.28676E-05    .12636E-04
  22  Prefactor     1.4910        .22956        .16878E-06    .42391E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.88421
  Prefactor  = 1.2672
  Prefactor  = 2.77434
  Prefactor  = 1.93984
  Prefactor  = 0.000100015
  Prefactor  = 7.62937
  Prefactor  = 0.000100014
  norm       = 0.0001
  Prefactor  = 2.64777
  Prefactor  = 4.73818
  norm       = 0.000100001
  norm       = 5.27961
  Prefactor  = 0.000100031
  Prefactor  = 16.7168
  Prefactor  = 34.8763
  Prefactor  = 0.000100001
  Prefactor  = 10.133
  Prefactor  = 0.000100024
  Prefactor  = 5.74724
  Prefactor  = 1.21887
  Normalizat = 0.3692
  Prefactor  = 1.49097
 **********
 **   18 **HESSE 
 **********

 FCN=   4717.325     FROM HESSE     STATUS=OK           400 CALLS     2384 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8842        9.2231        .35703E-02   -1.5146    
   2  Prefactor     1.2672        2.9258        .98836E-02   -1.5483    
   3  Prefactor     2.7743        6.6305        .61070E-02   -1.5375    
   4  Prefactor     1.9398        12.010        .74489E-02   -1.5429    
   5  Prefactor     .10002E-03    5.5405        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6294        10.559        .36294E-02   -1.5155    
   7  Prefactor     .10001E-03    5.1212        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .61965        .29326E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6478        3.0989        .62633E-02   -1.5383    
  10  Prefactor     4.7382        5.1304        .46213E-02   -1.5273    
  11  norm          .10000E-03    30.102        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.2796        12.939        .43720E-02   -1.5248    
  13  Prefactor     .10003E-03    8.8790        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.717        17.658        .24486E-02   -1.4890    
  15  Prefactor     34.876        45.632        .16964E-02   -1.4526    
  16  Prefactor     .10000E-03    4.6245        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.133        11.345        .31468E-02   -1.5071    
  18  Prefactor     .10002E-03    9.4602        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.7472        2.5565        .41884E-02   -1.5228    
  20  Prefactor     1.2189        2.4759        .10219E-01   -1.5487    
  21  Normalizat    .36920        .21734        .80033E-01   -1.1892    
  22  Prefactor     1.4910        .21146        .47090E-01   -.77793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.53147e-08
Minuit parameter uncertainties:
  1  9.22479
  2  2.92614
  3  6.6322
  4  9.6561
  5  0.000579072
  6  10.5619
  7  0.000538278
  8  1.33928e-06
  9  3.09905
  10  5.13091
  11  0.000397388
  12  12.9456
  13  0.00104243
  14  17.6637
  15  45.6781
  16  0.000132686
  17  11.3471
  18  0.000946736
  19  2.55651
  20  2.4761
  21  0.21784
  22  0.211586
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  4.738e+00  5.131e+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.491e+00  2.116e-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:  3.692e-01  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.44
Ra Dec: 169.271 20.229
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 1.59e-08 +/- 1.72e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.33e-05

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

Saving results to:
/scratch/kocevski/635679/likelihoodResults_386553601_386812801_4FGL_J1117.0+2013_daily_bin568.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) = 4717.32447371
delta logL = 0.000910063740776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4717.32426719
delta logL = 0.00111658757851

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6382       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0026       1.0000          .0000       10.000    
     3 'Normalizat'    .36778       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4916       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=   4717.324     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      245 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6302        191.21        .46719E-02    .19131E-04
   2  Index         1.9992        5.2040        .17015        .56246E-04
   3  Normalizat    .36799        .11210        .80163E-01    .33896E-04
   4  Prefactor     1.4916        .82942E-01    .47082E-01   -.16904E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.63023
  Index      = 1.99916
  Normalizat = 0.367988
  Prefactor  = 1.49162
 **********
 **   18 **HESSE 
 **********

 FCN=   4717.324     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6302        5.6998        .15391E-03   -1.5278    
   2  Index         1.9992        .91372        .96134E-02   -.64371    
   3  Normalizat    .36799        .20511        .35503E-03   -1.1899    
   4  Prefactor     1.4916        .22947        .20811E-03   -.77775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.59282e-12
Minuit parameter uncertainties:
  1  5.70045
  2  0.921866
  3  0.205532
  4  0.229625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/635679': 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) = 4717.32425224
delta logL = 0.00113153150141

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  4.630e+00  5.700e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.999e+00  9.219e-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.492e+00  2.296e-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:  3.680e-01  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 169.271 20.229
Photon Index (Free Index): 2.00 +/- 0.92
Photon Flux (Free Index): 1.69e-08 +/- 2.72e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.77e-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/635679/cmap_HighResolution_386553601_386812801_4FGL_J1117.0+2013_daily_bin568.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', comment='SUCCESS', photon_flux='1.59e-08', energy_flux2='1.17e-05', photon_flux_error='1.72e-08', dlogl='1.13e-03', energy_flux='1.23e-05', photon_flux2='1.69e-08', job_status='DONE', time_completed='2021-09-03 14:26:32.552731', photon_index_error2='0.92', photon_index2='2.00', ts='2.44', fit_tolerance='1e-08', GAL='1.49', photon_index_error='0.00', photon_flux_upper_limit='6.86e-08', energy_flux_error2='1.77e-05', EG='0.37', time_epoch_completed='1630704392.55', return_code='0', job_id='635679', GAL2='1.49', EG2='0.37', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='2.72e-08', ts2='2.44', photon_index='1.96' WHERE bin_id='568' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:26:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 635679: <4FGL_J1117.0+2013_daily_bin568> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin568> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 14:16:23 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:16:40 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:16:40 2021
Terminated at Fri Sep  3 14:26:33 2021
Results reported at Fri Sep  3 14:26:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin568 169.271 20.2294 386553601 386812801 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 :                                   577.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             363.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   592 sec.
    Turnaround time :                            610 sec.

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

