/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 236 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 = 7408
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1117.0+2013_daily_bin357
RA = 169.271, Dec = 20.2294
tmin = 331862401, tmax = 332121601
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='634154', job_status='RUN', time_executed='2021-09-03 14:15:13.894790', time_epoch_executed='1630703713.89' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/634154

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/634154/ft1_4FGL_J1117.0+2013_daily_bin357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/634154/ft2_4FGL_J1117.0+2013_daily_bin357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/634154/ft1_4FGL_J1117.0+2013_daily_bin357.fits outfile=/scratch/kocevski/634154/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin357.fits ra=169.271 dec=20.2294 rad=12.0 tmin=331862401.0 tmax=332121601.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.52
user 4.18
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/634154/ft1_filtered_4FGL_J1117.0+2013_daily_bin357.fits" evtable="EVENTS" scfile=/scratch/kocevski/634154/ft2_4FGL_J1117.0+2013_daily_bin357.fits sctable="SC_DATA" outfile=/scratch/kocevski/634154/ltcube_331862401_332121601_4FGL_J1117.0+2013_daily_bin357.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/634154/ft2_4FGL_J1117.0+2013_daily_bin357.fits
.....................!
real 17.12
user 16.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/634154/ft1_filtered_4FGL_J1117.0+2013_daily_bin357.fits evtable="EVENTS" scfile=/scratch/kocevski/634154/ft2_4FGL_J1117.0+2013_daily_bin357.fits sctable="SC_DATA" expcube=/scratch/kocevski/634154/ltcube_331862401_332121601_4FGL_J1117.0+2013_daily_bin357.fits outfile=/scratch/kocevski/634154/expmap_331862401_332121601_4FGL_J1117.0+2013_daily_bin357.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/634154/ltcube_331862401_332121601_4FGL_J1117.0+2013_daily_bin357.fits
.....................!
real 193.07
user 187.64
sys 4.95

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/634154/ft1_filtered_4FGL_J1117.0+2013_daily_bin357.fits scfile=/scratch/kocevski/634154/ft2_4FGL_J1117.0+2013_daily_bin357.fits outfile=/scratch/kocevski/634154/cmap_331862401_332121601_4FGL_J1117.0+2013_daily_bin357.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.38
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96235       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1968       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9917       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7509       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2342       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .54899E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1521       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3308       1.0000         .10000E-03   10000.    
    11 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.015       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2469       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7342       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.646       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13063E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0282       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7505       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1666       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74172       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3434       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=   5641.336     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2391 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95085        5.4147       -.10310E-05   -.27553E-03
   2  Prefactor     2.1971        2.4041       -.46428E-07   -.52535E-03
   3  Prefactor     .10000E-03    3.3355        .22893E-06** at limit **
   4  Prefactor     2.9989        7.3868        .81197E-06   -.14227E-03
   5  Prefactor     7.7556        10.397        .17261E-06   -.15797E-03
   6  Prefactor     1.2245        28.820        .23167E-04   -.79813E-04
   7  Prefactor     .10000E-03    7.9375        .42836E-05** at limit **
   8  norm          1.1520        .99578        .11648E-07   -.33533E-03
   9  Prefactor     .10000E-03    1.7380        .55838E-06** at limit **
  10  Prefactor     4.3310        4.6007        .22697E-06   -.74000E-04
  11  norm          .10000E-03    9.4875       -.23397E-05** at limit **
  12  norm          18.017        12.380       -.36389E-07   -.17166E-03
  13  Prefactor     8.2464        8.4395        .62708E-07   -.79911E-04
  14  Prefactor     5.7206        15.222        .13349E-05   -.36982E-04
  15  Prefactor     20.607        47.669        .89399E-05   -.14819E-04
  16  Prefactor     .10000E-03    13.018       -.66433E-06** at limit **
  17  Prefactor     .10000E-03    27.682        .98313E-06** at limit **
  18  Prefactor     8.0264        13.687        .47002E-06   -.67217E-04
  19  Prefactor     1.7505        1.4682        .10572E-06   -.49064E-04
  20  Prefactor     2.1654        4.2248        .38264E-06   -.33582E-04
  21  Normalizat    .74170        .18887        .44051E-07   -.11701E-03
  22  Prefactor     1.3437        .19036       -.33826E-05   -.45802E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.950855
  Prefactor  = 2.1971
  Prefactor  = 0.0001
  Prefactor  = 2.99889
  Prefactor  = 7.75559
  Prefactor  = 1.22447
  Prefactor  = 0.000100005
  norm       = 1.15203
  Prefactor  = 0.0001
  Prefactor  = 4.33099
  norm       = 0.000100005
  norm       = 18.0168
  Prefactor  = 8.24643
  Prefactor  = 5.72061
  Prefactor  = 20.6073
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 8.02644
  Prefactor  = 1.75055
  Prefactor  = 2.16535
  Normalizat = 0.741699
  Prefactor  = 1.34365
 **********
 **   18 **HESSE 
 **********

 FCN=   5641.336     FROM HESSE     STATUS=OK           354 CALLS     2745 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .95085        9.9873        .31283E-02   -1.5513    
   2  Prefactor     2.1971        2.3557        .11140E-03   -1.5412    
   3  Prefactor     .10000E-03    3.3704        .13395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9989        7.2258        .23470E-03   -1.5362    
   5  Prefactor     7.7556        10.256        .14403E-03   -1.5151    
   6  Prefactor     1.2245        30.655        .20219E-02   -1.5487    
   7  Prefactor     .10000E-03    22.929        .38243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1520        1.0147        .67208E-04   -1.5493    
   9  Prefactor     .10000E-03    1.8029        .19359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3310        4.5980        .80644E-03   -1.5292    
  11  norm          .10000E-03    9.7235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.017        12.439        .94363E-04   -1.4859    
  13  Prefactor     8.2464        8.4419        .13960E-03   -1.5134    
  14  Prefactor     5.7206        15.176        .16773E-03   -1.5230    
  15  Prefactor     20.607        47.851        .88150E-04   -1.4800    
  16  Prefactor     .10000E-03    13.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.819        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.0264        13.634        .14151E-03   -1.5141    
  19  Prefactor     1.7505        1.4692        .80148E-04   -1.5443    
  20  Prefactor     2.1654        4.1867        .19930E-03   -1.5414    
  21  Normalizat    .74170        .22148        .27433E-03   -1.0227    
  22  Prefactor     1.3437        .22359        .23496E-03   -.82018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61115e-09
Minuit parameter uncertainties:
  1  6.16427
  2  2.35585
  3  2.49238e-05
  4  7.22791
  5  10.2587
  6  12.26
  7  0.00066367
  8  1.01469
  9  2.31027e-05
  10  4.59838
  11  0.000423226
  12  12.4412
  13  8.44308
  14  15.1858
  15  47.9404
  16  0.000183851
  17  0.000299343
  18  13.6394
  19  1.46919
  20  4.18724
  21  0.221749
  22  0.223747
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  4.331e+00  4.598e+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.344e+00  2.237e-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:  7.417e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.07
Ra Dec: 169.271 20.229
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 1.45e-08 +/- 1.54e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 1.19e-05

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

Saving results to:
/scratch/kocevski/634154/likelihoodResults_331862401_332121601_4FGL_J1117.0+2013_daily_bin357.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) = 5641.26939153
delta logL = 0.0667302412257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5641.26753356
delta logL = 0.0685882073049

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3191       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7171       1.0000          .0000       10.000    
     3 'Normalizat'    .74504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3415       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=   5641.268     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      299 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3195        5.9594        .17426E-03   -.12259E-02
   2  Index         1.7171        .62891        .97504E-02   -.24706E-03
   3  Normalizat    .74507        .19735        .27375E-03    .97346E-04
   4  Prefactor     1.3415        .22171        .23511E-03    .13323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.31954
  Index      = 1.71706
  Normalizat = 0.74507
  Prefactor  = 1.34147
 **********
 **   18 **HESSE 
 **********

 FCN=   5641.268     FROM HESSE     STATUS=OK            23 CALLS      322 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3195        5.8772        .34852E-04   -1.5247    
   2  Index         1.7171        .62050        .39001E-03   -.71629    
   3  Normalizat    .74507        .19749        .10950E-04   -1.0214    
   4  Prefactor     1.3415        .22188        .47023E-04   -.82082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02958e-09
Minuit parameter uncertainties:
  1  5.87788
  2  0.623333
  3  0.197679
  4  0.222032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/634154': 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) = 5641.26753354
delta logL = 0.0685882270118

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  5.320e+00  5.878e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.717e+00  6.233e-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.341e+00  2.220e-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:  7.451e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.21
Ra Dec: 169.271 20.229
Photon Index (Free Index): 1.72 +/- 0.62
Photon Flux (Free Index): 1.17e-08 +/- 1.47e-08
Energy Flux (Free Index): 1.81e-05 +/- 3.02e-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/634154/cmap_HighResolution_331862401_332121601_4FGL_J1117.0+2013_daily_bin357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-03', comment='SUCCESS', photon_flux='1.45e-08', energy_flux2='1.81e-05', photon_flux_error='1.54e-08', dlogl='6.86e-02', energy_flux='1.12e-05', photon_flux2='1.17e-08', job_status='DONE', time_completed='2021-09-03 14:26:25.519387', photon_index_error2='0.62', photon_index2='1.72', ts='2.07', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', photon_flux_upper_limit='5.99e-08', energy_flux_error2='3.02e-05', EG='0.74', time_epoch_completed='1630704385.52', return_code='0', job_id='634154', GAL2='1.34', EG2='0.75', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='1.47e-08', ts2='2.21', photon_index='1.96' WHERE bin_id='357' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:26:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 634154: <4FGL_J1117.0+2013_daily_bin357> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin357 169.271 20.2294 331862401 332121601 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 :                                   668.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            925 sec.

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

