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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin1523
RA = 169.271, Dec = 20.2294
tmin = 634089601, tmax = 634348801
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='638985', job_status='RUN', time_executed='2021-09-03 14:31:31.310818', time_epoch_executed='1630704691.31' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='1523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638985

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638985/ft1_4FGL_J1117.0+2013_daily_bin1523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638985/ft2_4FGL_J1117.0+2013_daily_bin1523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638985/ft1_4FGL_J1117.0+2013_daily_bin1523.fits outfile=/scratch/kocevski/638985/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1523.fits ra=169.271 dec=20.2294 rad=12.0 tmin=634089601.0 tmax=634348801.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 6.70
user 4.72
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/638985/ft1_filtered_4FGL_J1117.0+2013_daily_bin1523.fits" evtable="EVENTS" scfile=/scratch/kocevski/638985/ft2_4FGL_J1117.0+2013_daily_bin1523.fits sctable="SC_DATA" outfile=/scratch/kocevski/638985/ltcube_634089601_634348801_4FGL_J1117.0+2013_daily_bin1523.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/638985/ft2_4FGL_J1117.0+2013_daily_bin1523.fits
.....................!
real 15.99
user 15.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638985/ft1_filtered_4FGL_J1117.0+2013_daily_bin1523.fits evtable="EVENTS" scfile=/scratch/kocevski/638985/ft2_4FGL_J1117.0+2013_daily_bin1523.fits sctable="SC_DATA" expcube=/scratch/kocevski/638985/ltcube_634089601_634348801_4FGL_J1117.0+2013_daily_bin1523.fits outfile=/scratch/kocevski/638985/expmap_634089601_634348801_4FGL_J1117.0+2013_daily_bin1523.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/638985/ltcube_634089601_634348801_4FGL_J1117.0+2013_daily_bin1523.fits
.....................!
real 192.54
user 187.36
sys 4.65

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/638985/ft1_filtered_4FGL_J1117.0+2013_daily_bin1523.fits scfile=/scratch/kocevski/638985/ft2_4FGL_J1117.0+2013_daily_bin1523.fits outfile=/scratch/kocevski/638985/cmap_634089601_634348801_4FGL_J1117.0+2013_daily_bin1523.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638985/ft1_filtered_4FGL_J1117.0+2013_daily_bin1523.fits scfile=/scratch/kocevski/638985/ft2_4FGL_J1117.0+2013_daily_bin1523.fits outfile=/scratch/kocevski/638985/cmap_HighResolution_634089601_634348801_4FGL_J1117.0+2013_daily_bin1523.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3724       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0562       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.203       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9148       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3857       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6442       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5829       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31309       1.0000         .10000E-03   10000.    
    11 'norm      '    30.170       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9896       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5025       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7307       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2950       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95804       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90141       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=   5394.378     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2036 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3723        5.1029        .48546E-07   -.52204E-03
   2  Prefactor     2.0562        2.0501       -.31990E-07    .22911E-04
   3  Prefactor     35.203        9.4177       -.19913E-07    .12777E-03
   4  Prefactor     .10000E-03    3.1644       -.65665E-07** at limit **
   5  Prefactor     7.9141        8.3643        .25507E-08    .87167E-04
   6  Prefactor     5.3865        12.441       -.15824E-06    .54540E-04
   7  Prefactor     .10000E-03    5.5460       -.23852E-07** at limit **
   8  norm          1.6442        1.2750       -.94055E-08    .88934E-04
   9  Prefactor     8.5829        3.4807        .22637E-07    .39281E-03
  10  Prefactor     .33516        40.635        .17469E-04   -.68453E-04
  11  norm          30.170        13.991       -.38476E-07    .15997E-03
  12  norm          .10000E-03    3.6819       -.60991E-07** at limit **
  13  Prefactor     2.9882        10.059        .12050E-05    .37086E-03
  14  Prefactor     .10000E-03    8.8443        .53448E-07** at limit **
  15  Prefactor     .10000E-03    16.450       -.20015E-06** at limit **
  16  Prefactor     .10000E-03    18.030        .67586E-07** at limit **
  17  Prefactor     .10000E-03    14.655        .22961E-07** at limit **
  18  Prefactor     1.5023        5.0576       -.38858E-06   -.43938E-03
  19  Prefactor     1.7306        1.9983       -.30514E-06   -.89310E-03
  20  Prefactor     6.2947        4.3116       -.63601E-08   -.69861E-04
  21  Normalizat    .95802        .18437        .46159E-06    .66592E-03
  22  Prefactor     .90140        .18905        .12266E-06    .52696E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.37229
  Prefactor  = 2.0562
  Prefactor  = 35.2029
  Prefactor  = 0.0001
  Prefactor  = 7.91414
  Prefactor  = 5.38646
  Prefactor  = 0.0001
  norm       = 1.64418
  Prefactor  = 8.5829
  Prefactor  = 0.335158
  norm       = 30.1704
  norm       = 0.0001
  Prefactor  = 2.98824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100004
  Prefactor  = 1.50234
  Prefactor  = 1.73059
  Prefactor  = 6.29471
  Normalizat = 0.958022
  Prefactor  = 0.9014
 **********
 **   18 **HESSE 
 **********

 FCN=   5394.378     FROM HESSE     STATUS=OK           344 CALLS     2380 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3723        5.7412        .10947E-02   -1.5341    
   2  Prefactor     2.0562        2.0335        .99758E-04   -1.5421    
   3  Prefactor     35.203        9.4330        .67543E-04   -1.4521    
   4  Prefactor     .10000E-03    3.1780        .12754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9141        8.3622        .14252E-03   -1.5145    
   6  Prefactor     5.3865        12.424        .17316E-03   -1.5244    
   7  Prefactor     .10000E-03    5.5560        .16890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6442        1.2675        .70097E-04   -1.5452    
   9  Prefactor     8.5829        3.4832        .79355E-04   -1.5122    
  10  Prefactor     .33516        41.836        .37361E-02   -1.5592    
  11  norm          30.170        14.004        .72944E-04   -1.4609    
  12  norm          .10000E-03    3.6930        .13763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9882        10.159        .23478E-03   -1.5362    
  14  Prefactor     .10000E-03    8.8776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5023        20.476        .17463E-02   -1.5463    
  19  Prefactor     1.7306        2.0040        .10621E-03   -1.5445    
  20  Prefactor     6.2947        4.3359        .11993E-03   -1.5206    
  21  Normalizat    .95802        .21674        .24125E-03   -.94450    
  22  Prefactor     .90140        .21767        .26513E-03   -.96092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73905e-08
Minuit parameter uncertainties:
  1  5.74216
  2  2.03355
  3  9.43342
  4  1.27173e-05
  5  8.36339
  6  12.4304
  7  1.77965e-05
  8  1.26749
  9  3.48325
  10  7.49337
  11  14.006
  12  1.02152e-05
  13  10.1646
  14  5.40511e-05
  15  8.28721e-05
  16  0.000540543
  17  0.000468953
  18  11.097
  19  2.00412
  20  4.33611
  21  0.216935
  22  0.217882
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  3.352e-01  7.493e+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:  9.014e-01  2.179e-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:  9.580e-01  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/638985/likelihoodResults_634089601_634348801_4FGL_J1117.0+2013_daily_bin1523.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): 102
logL (Free Index) = 5393.44008276
delta logL = 0.938245522622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5393.42926133
delta logL = 0.949066947798

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49964       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5397       1.0000          .0000       10.000    
     3 'Normalizat'    .86512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95781       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=   5393.429     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      223 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50203        5.6290        .89055E-02    .17459E-02
   2  Index         3.5382        1.9631        .10314        .21652E-03
   3  Normalizat    .86504        .40895E-01    .44454E-01   -.30111E-03
   4  Prefactor     .95786        .43832E-01    .45738E-01   -.30270E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.50203
  Index      = 3.53822
  Normalizat = 0.865043
  Prefactor  = 0.957858
 **********
 **   18 **HESSE 
 **********

 FCN=   5393.429     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      252 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50203        15.222        .40305E-04   -1.5566    
   2  Index         3.5382        3.7999        .35922E-02   -.29669    
   3  Normalizat    .86504        .20097        .25257E-03   -.97700    
   4  Prefactor     .95786        .21175        .25812E-03   -.94148    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.20226e-10
Minuit parameter uncertainties:
  1  5.52985
  2  4.39195
  3  0.201144
  4  0.211929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638985': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5393.42925961
delta logL = 0.949068666996

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  5.020e-01  5.530e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  3.538e+00  4.392e+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:  9.579e-01  2.119e-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:  8.650e-01  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 169.271 20.229
Photon Index (Free Index): 3.54 +/- 4.39
Photon Flux (Free Index): 6.78e-08 +/- 5.73e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.34e-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/638985/cmap_HighResolution_634089601_634348801_4FGL_J1117.0+2013_daily_bin1523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-03', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='9.49e-01', photon_flux2='6.78e-08', job_status='DONE', time_completed='2021-09-03 14:42:07.141570', photon_index_error2='4.39', photon_index2='3.54', ts='0.00', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='6.78e-08', energy_flux_error2='1.34e-05', EG='0.96', time_epoch_completed='1630705327.14', return_code='0', job_id='638985', GAL2='0.96', EG2='0.87', return_code2='102', photon_flux_error2='5.73e-08', ts2='2.09', photon_index='1.96' WHERE bin_id='1523' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:42:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 638985: <4FGL_J1117.0+2013_daily_bin1523> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin1523 169.271 20.2294 634089601 634348801 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 :                                   626.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             250.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            942 sec.

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

