/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 27 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1117.0+2013_daily_bin171
RA = 169.271, Dec = 20.2294
tmin = 283651201, tmax = 283910401
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='630738', job_status='RUN', time_executed='2021-09-03 14:01:21.771288', time_epoch_executed='1630702881.77' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630738

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630738/ft1_4FGL_J1117.0+2013_daily_bin171.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630738/ft2_4FGL_J1117.0+2013_daily_bin171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630738/ft1_4FGL_J1117.0+2013_daily_bin171.fits outfile=/scratch/kocevski/630738/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin171.fits ra=169.271 dec=20.2294 rad=12.0 tmin=283651201.0 tmax=283910401.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.67
user 3.43
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630738/ft1_filtered_4FGL_J1117.0+2013_daily_bin171.fits" evtable="EVENTS" scfile=/scratch/kocevski/630738/ft2_4FGL_J1117.0+2013_daily_bin171.fits sctable="SC_DATA" outfile=/scratch/kocevski/630738/ltcube_283651201_283910401_4FGL_J1117.0+2013_daily_bin171.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/630738/ft2_4FGL_J1117.0+2013_daily_bin171.fits
.....................!
real 14.16
user 13.60
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630738/ft1_filtered_4FGL_J1117.0+2013_daily_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/630738/ft2_4FGL_J1117.0+2013_daily_bin171.fits sctable="SC_DATA" expcube=/scratch/kocevski/630738/ltcube_283651201_283910401_4FGL_J1117.0+2013_daily_bin171.fits outfile=/scratch/kocevski/630738/expmap_283651201_283910401_4FGL_J1117.0+2013_daily_bin171.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/630738/ltcube_283651201_283910401_4FGL_J1117.0+2013_daily_bin171.fits
.....................!
real 192.20
user 186.81
sys 4.89

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/630738/ft1_filtered_4FGL_J1117.0+2013_daily_bin171.fits scfile=/scratch/kocevski/630738/ft2_4FGL_J1117.0+2013_daily_bin171.fits outfile=/scratch/kocevski/630738/cmap_283651201_283910401_4FGL_J1117.0+2013_daily_bin171.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630738/ft1_filtered_4FGL_J1117.0+2013_daily_bin171.fits scfile=/scratch/kocevski/630738/ft2_4FGL_J1117.0+2013_daily_bin171.fits outfile=/scratch/kocevski/630738/cmap_HighResolution_283651201_283910401_4FGL_J1117.0+2013_daily_bin171.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4035       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1407       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1861       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7895       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1401       1.0000         .10000E-03   10000.    
    11 'norm      '    8.7619       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3939       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10895E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.430       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1217       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .46965       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4970       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=   5728.991     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2029 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4051        6.5573       -.38436E-07    .46563E-04
   2  Prefactor     3.1423        3.0951       -.33957E-08    .12981E-04
   3  Prefactor     7.1871        7.8888       -.93659E-08    .69994E-05
   4  Prefactor     .10000E-03    16.260        .10513E-07** at limit **
   5  Prefactor     .10000E-03    6.3208       -.46779E-07** at limit **
   6  Prefactor     .10000E-03    4.3196       -.98467E-09** at limit **
   7  Prefactor     .10000E-03    5.9466       -.16258E-07** at limit **
   8  norm          1.7895        1.4989       -.44000E-08   -.15953E-04
   9  Prefactor     .10000E-03    2.2925       -.17789E-08** at limit **
  10  Prefactor     8.1404        7.6490       -.48467E-07   -.11363E-03
  11  norm          8.7583        9.9812        .41522E-08   -.21286E-03
  12  norm          .10000E-03    3.5768        .54263E-09** at limit **
  13  Prefactor     3.3940        2.7211       -.21302E-06   -.26186E-03
  14  Prefactor     .10000E-03    6.6008        .35130E-07** at limit **
  15  Prefactor     .10000E-03    54.002       -.26307E-08** at limit **
  16  Prefactor     .10000E-03    5.8184        .29052E-07** at limit **
  17  Prefactor     .10000E-03    15.099       -.99840E-08** at limit **
  18  Prefactor     19.427        12.707        .18099E-07   -.60166E-03
  19  Prefactor     3.1218        1.9674       -.23290E-08    .20128E-04
  20  Prefactor     .10000E-03    3.2475       -.22548E-08** at limit **
  21  Normalizat    .46968        .18861        .50140E-07    .13946E-04
  22  Prefactor     1.4969        .19579        .61559E-08    .12990E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.40514
  Prefactor  = 3.14228
  Prefactor  = 7.18706
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.7895
  Prefactor  = 0.0001
  Prefactor  = 8.14041
  norm       = 8.75827
  norm       = 0.0001
  Prefactor  = 3.39396
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 19.4267
  Prefactor  = 3.1218
  Prefactor  = 0.0001
  Normalizat = 0.469679
  Prefactor  = 1.49689
 **********
 **   18 **HESSE 
 **********

 FCN=   5728.991     FROM HESSE     STATUS=OK           340 CALLS     2369 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4051        6.5248        .26410E-03   -1.5398    
   2  Prefactor     3.1423        3.0605        .11932E-03   -1.5353    
   3  Prefactor     7.1871        7.8826        .14963E-03   -1.5172    
   4  Prefactor     .10000E-03    16.864        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3279        .15362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9567        .18023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7895        1.4840        .79296E-04   -1.5440    
   9  Prefactor     .10000E-03    2.3802        .22345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.1404        7.9212        .70262E-03   -1.5137    
  11  norm          8.7583        9.9679        .13541E-03   -1.5116    
  12  norm          .10000E-03    3.5820        .13979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3940        6.4601        .10981E-02   -1.5339    
  14  Prefactor     .10000E-03    6.6112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    54.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.8329        .17827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.427        12.699        .90863E-04   -1.4826    
  19  Prefactor     3.1218        1.9619        .80864E-04   -1.5355    
  20  Prefactor     .10000E-03    3.3495        .26610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .46968        .21145        .34234E-03   -1.1384    
  22  Prefactor     1.4969        .22294        .22018E-03   -.77627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64832e-09
Minuit parameter uncertainties:
  1  6.52677
  2  3.06063
  3  7.88374
  4  8.35809e-05
  5  0.00029954
  6  2.80779e-06
  7  0.000103282
  8  1.48405
  9  1.59197e-06
  10  7.92221
  11  9.96979
  12  2.7213e-06
  13  6.4614
  14  0.000231972
  15  2.56099e-05
  16  0.000181387
  17  9.1602e-05
  18  12.7006
  19  1.96191
  20  2.0321e-06
  21  0.211808
  22  0.223085
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  8.140e+00  7.922e+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.497e+00  2.231e-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:  4.697e-01  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.75
Ra Dec: 169.271 20.229
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.73e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 2.11e-05 +/- 2.05e-05

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

Saving results to:
/scratch/kocevski/630738/likelihoodResults_283651201_283910401_4FGL_J1117.0+2013_daily_bin171.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) = 5728.83796136
delta logL = 0.152742899886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5728.82848681
delta logL = 0.162217458927

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9420       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3113       1.0000          .0000       10.000    
     3 'Normalizat'    .45246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5072       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5728.828     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      289 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9297        8.6244        .75888E-03   -.50875E-04
   2  Index         2.3120        .74980        .62403E-02    .47362E-03
   3  Normalizat    .45245        .20585        .34855E-03   -.38488E-05
   4  Prefactor     1.5072        .22358        .21953E-03   -.14707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.92969
  Index      = 2.31202
  Normalizat = 0.452445
  Prefactor  = 1.50718
 **********
 **   18 **HESSE 
 **********

 FCN=   5728.828     FROM HESSE     STATUS=OK            27 CALLS      316 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9297        7.5804        .30355E-04   -1.5221    
   2  Index         2.3120        .65933        .12481E-02   -.56758    
   3  Normalizat    .45245        .20544        .13942E-04   -1.1467    
   4  Prefactor     1.5072        .22324        .87812E-05   -.77339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44739e-12
Minuit parameter uncertainties:
  1  7.5816
  2  0.662047
  3  0.205782
  4  0.223388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630738': 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) = 5728.82848543
delta logL = 0.162218829747

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  5.930e+00  7.582e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.312e+00  6.620e-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.507e+00  2.234e-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:  4.524e-01  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.08
Ra Dec: 169.271 20.229
Photon Index (Free Index): 2.31 +/- 0.66
Photon Flux (Free Index): 4.15e-08 +/- 4.15e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.55e-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/630738/cmap_HighResolution_283651201_283910401_4FGL_J1117.0+2013_daily_bin171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.65e-03', comment='SUCCESS', photon_flux='2.73e-08', energy_flux2='1.54e-05', photon_flux_error='2.66e-08', dlogl='1.62e-01', energy_flux='2.11e-05', photon_flux2='4.15e-08', job_status='DONE', time_completed='2021-09-03 14:11:49.489137', photon_index_error2='0.66', photon_index2='2.31', ts='1.75', fit_tolerance='1e-08', GAL='1.50', photon_index_error='0.00', photon_flux_upper_limit='8.90e-08', energy_flux_error2='1.55e-05', EG='0.47', time_epoch_completed='1630703509.49', return_code='0', job_id='630738', GAL2='1.51', EG2='0.45', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='4.15e-08', ts2='2.08', photon_index='1.96' WHERE bin_id='171' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:11:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 630738: <4FGL_J1117.0+2013_daily_bin171> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin171> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep  3 13:57:47 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:00:19 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:00:19 2021
Terminated at Fri Sep  3 14:11:50 2021
Results reported at Fri Sep  3 14:11:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin171 169.271 20.2294 283651201 283910401 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 :                                   613.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            843 sec.

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

