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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin1350
RA = 169.271, Dec = 20.2294
tmin = 589248001, tmax = 589507201
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='637672', job_status='RUN', time_executed='2021-09-03 14:24:23.211610', time_epoch_executed='1630704263.21' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='1350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/637672

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/637672/ft1_4FGL_J1117.0+2013_daily_bin1350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/637672/ft2_4FGL_J1117.0+2013_daily_bin1350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/637672/ft1_4FGL_J1117.0+2013_daily_bin1350.fits outfile=/scratch/kocevski/637672/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1350.fits ra=169.271 dec=20.2294 rad=12.0 tmin=589248001.0 tmax=589507201.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.19
user 2.96
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/637672/ft1_filtered_4FGL_J1117.0+2013_daily_bin1350.fits" evtable="EVENTS" scfile=/scratch/kocevski/637672/ft2_4FGL_J1117.0+2013_daily_bin1350.fits sctable="SC_DATA" outfile=/scratch/kocevski/637672/ltcube_589248001_589507201_4FGL_J1117.0+2013_daily_bin1350.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/637672/ft2_4FGL_J1117.0+2013_daily_bin1350.fits
.....................!
real 17.16
user 16.68
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/637672/ft1_filtered_4FGL_J1117.0+2013_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/637672/ft2_4FGL_J1117.0+2013_daily_bin1350.fits sctable="SC_DATA" expcube=/scratch/kocevski/637672/ltcube_589248001_589507201_4FGL_J1117.0+2013_daily_bin1350.fits outfile=/scratch/kocevski/637672/expmap_589248001_589507201_4FGL_J1117.0+2013_daily_bin1350.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/637672/ltcube_589248001_589507201_4FGL_J1117.0+2013_daily_bin1350.fits
.....................!
real 192.02
user 186.34
sys 5.23

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/637672/ft1_filtered_4FGL_J1117.0+2013_daily_bin1350.fits scfile=/scratch/kocevski/637672/ft2_4FGL_J1117.0+2013_daily_bin1350.fits outfile=/scratch/kocevski/637672/cmap_589248001_589507201_4FGL_J1117.0+2013_daily_bin1350.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.54
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     3 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     4 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12416E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    58.709       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    114.22       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.067       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2429       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0255       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4182       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=   541.1675     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2614 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        6711.5        .17945E-03** at limit **
   2  Prefactor     10000.        706.19       -.20563E-03** at limit **
   3  Prefactor     10000.        6763.5        .24662E-03** at limit **
   4  Prefactor    10000.0        8968.6        .26665E-02** at limit **
   5  Prefactor     .10000E-03    1190.3       -.54083E-03** at limit **
   6  Prefactor     .10000E-03    928.25       -.20909E-03** at limit **
   7  Prefactor     .10000E-03    740.49        .13053E-03** at limit **
   8  norm          58.717        73.620        .19891E-05    .44831E-05
   9  Prefactor     .10000E-03    38.428        .15142E-04** at limit **
  10  Prefactor     114.22        126.74        .19527E-07    .62570E-05
  11  norm          .10000E-03    40.797       -.18164E-04** at limit **
  12  norm          17.064        57.532        .17561E-05    .29110E-05
  13  Prefactor     .10000E-03    39.720        .28080E-05** at limit **
  14  Prefactor     .10000E-03    39.423        .67268E-05** at limit **
  15  Prefactor     .10000E-03    89.499        .50385E-06** at limit **
  16  Prefactor     .10000E-03    19.772        .13243E-05** at limit **
  17  Prefactor     .10000E-03    36.261       -.50079E-05** at limit **
  18  Prefactor     .10000E-03    17.138        .21611E-05** at limit **
  19  Prefactor     4.2430        4.7495        .95927E-07    .50682E-04
  20  Prefactor     5.0255        7.9237       -.91386E-06    .80907E-05
  21  Normalizat    .10000E-01    .16716       -.33584E-05** at limit **
  22  Prefactor     1.4182        .38164        .29421E-07    .27171E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 58.7165
  Prefactor  = 0.0001
  Prefactor  = 114.215
  norm       = 0.0001
  norm       = 17.0636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.24295
  Prefactor  = 5.02545
  Normalizat = 0.01
  Prefactor  = 1.4182
 **********
 **   18 **HESSE 
 **********

 FCN=   541.1675     FROM HESSE     STATUS=OK           326 CALLS     2940 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        6711.9        .21404E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10000.        706.19        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10000.        6763.5        .21218E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        8968.6        .18259E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1190.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    928.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    740.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          58.717        73.626        .52360E-04   -1.4174    
   9  Prefactor     .10000E-03    38.427        .14097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     114.22        126.77        .37644E-04   -1.3566    
  11  norm          .10000E-03    40.797        .14527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.064        57.576        .96948E-04   -1.4882    
  13  Prefactor     .10000E-03    39.727        .14334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    39.453        .14280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    89.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.775        .10109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.345        .13693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.148        .94109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.2430        4.7582        .50970E-04   -1.5296    
  20  Prefactor     5.0255        7.9329        .78425E-04   -1.5260    
  21  Normalizat    .10000E-01    .16855        .58204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.4182        .38065        .23023E-03   -.79857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.35564e-12
Minuit parameter uncertainties:
  1  0.000327637
  2  1.13051e-05
  3  3.51086e-05
  4  0.000865264
  5  2.21959e-06
  6  0.000148165
  7  1.25849e-05
  8  73.7402
  9  1.39461e-05
  10  127.07
  11  1.074e-06
  12  57.7649
  13  4.42787e-07
  14  5.77802e-06
  15  2.58464e-06
  16  1.79362e-06
  17  5.4363e-06
  18  7.72517e-06
  19  4.75865
  20  7.93452
  21  3.39162e-07
  22  0.38141
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.142e+02  1.271e+02  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.418e+00  3.814e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.000e-02  3.392e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.53
Ra Dec: 169.271 20.229
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 3.84e-07 +/- 4.27e-07
Energy Flux (Fixed Index): 2.96e-04 +/- 3.29e-04

TS (Fixed Index): 2.53
Ra Dec: 169.271 20.229
Photon Flux Upper Limit: 1.83e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.37e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/637672/likelihoodResults_589248001_589507201_4FGL_J1117.0+2013_daily_bin1350.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) = 541.15414445
delta logL = 0.0133653839356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 541.148523362
delta logL = 0.0189864719849

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    130.66       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7989       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4200       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=   541.1485     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      220 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     130.66        286.71        .88060E-03    .24752E-03
   2  Index         1.7988        1.3296        .94332E-01    .58346E-05
   3  Normalizat    .10000E-01    .16742        .13401    ** at limit **
   4  Prefactor     1.4200        .35845        .52080E-01   -.70359E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 130.664
  Index      = 1.79877
  Normalizat = 0.01
  Prefactor  = 1.41997
 **********
 **   18 **HESSE 
 **********

 FCN=   541.1485     FROM HESSE     STATUS=OK            27 CALLS      247 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     130.66        162.85        .35224E-04   -1.3417    
   2  Index         1.7988        .79167        .40107E-02   -.69482    
   3  Normalizat    .10000E-01    .16898        .58271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4200        .35419        .23017E-03   -.79806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26277e-09
Minuit parameter uncertainties:
  1  163.409
  2  0.797386
  3  2.48456e-08
  4  0.354798
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/637672': 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) = 541.14852334
delta logL = 0.0189864944665

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.307e+02  1.634e+02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.799e+00  7.974e-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.420e+00  3.548e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.000e-02  2.485e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.57
Ra Dec: 169.271 20.229
Photon Index (Free Index): 1.80 +/- 0.80
Photon Flux (Free Index): 3.29e-07 +/- 4.51e-07
Energy Flux (Free Index): 3.95e-04 +/- 7.68e-04

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/637672/cmap_HighResolution_589248001_589507201_4FGL_J1117.0+2013_daily_bin1350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-01', comment='SUCCESS', photon_flux='3.84e-07', energy_flux2='3.95e-04', photon_flux_error='4.27e-07', dlogl='1.90e-02', energy_flux='2.96e-04', photon_flux2='3.29e-07', job_status='DONE', time_completed='2021-09-03 14:30:37.352013', photon_index_error2='0.80', photon_index2='1.80', ts='2.53', fit_tolerance='1e-08', GAL='1.42', photon_index_error='0.00', photon_flux_upper_limit='1.83e-06', energy_flux_error2='7.68e-04', EG='0.01', time_epoch_completed='1630704637.35', return_code='0', job_id='637672', GAL2='1.42', EG2='0.01', return_code2='0', energy_flux_error='3.29e-04', photon_flux_error2='4.51e-07', ts2='2.57', photon_index='1.96' WHERE bin_id='1350' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:30:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 637672: <4FGL_J1117.0+2013_daily_bin1350> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin1350> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep  3 14:21:35 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:21:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 14:21:52 2021
Terminated at Fri Sep  3 14:30:38 2021
Results reported at Fri Sep  3 14:30:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin1350 169.271 20.2294 589248001 589507201 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 :                                   364.64 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             257.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   525 sec.
    Turnaround time :                            543 sec.

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

