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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin1299
RA = 169.271, Dec = 20.2294
tmin = 576028801, tmax = 576288001
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='637597', job_status='RUN', time_executed='2021-09-03 14:24:07.095267', time_epoch_executed='1630704247.1' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='1299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/637597

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/637597/ft1_4FGL_J1117.0+2013_daily_bin1299.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/637597/ft2_4FGL_J1117.0+2013_daily_bin1299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/637597/ft1_4FGL_J1117.0+2013_daily_bin1299.fits outfile=/scratch/kocevski/637597/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1299.fits ra=169.271 dec=20.2294 rad=12.0 tmin=576028801.0 tmax=576288001.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.65
user 3.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/637597/ft1_filtered_4FGL_J1117.0+2013_daily_bin1299.fits" evtable="EVENTS" scfile=/scratch/kocevski/637597/ft2_4FGL_J1117.0+2013_daily_bin1299.fits sctable="SC_DATA" outfile=/scratch/kocevski/637597/ltcube_576028801_576288001_4FGL_J1117.0+2013_daily_bin1299.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/637597/ft2_4FGL_J1117.0+2013_daily_bin1299.fits
.....................!
real 16.10
user 15.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/637597/ft1_filtered_4FGL_J1117.0+2013_daily_bin1299.fits evtable="EVENTS" scfile=/scratch/kocevski/637597/ft2_4FGL_J1117.0+2013_daily_bin1299.fits sctable="SC_DATA" expcube=/scratch/kocevski/637597/ltcube_576028801_576288001_4FGL_J1117.0+2013_daily_bin1299.fits outfile=/scratch/kocevski/637597/expmap_576028801_576288001_4FGL_J1117.0+2013_daily_bin1299.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/637597/ltcube_576028801_576288001_4FGL_J1117.0+2013_daily_bin1299.fits
.....................!
real 192.98
user 186.87
sys 4.58

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/637597/ft1_filtered_4FGL_J1117.0+2013_daily_bin1299.fits scfile=/scratch/kocevski/637597/ft2_4FGL_J1117.0+2013_daily_bin1299.fits outfile=/scratch/kocevski/637597/cmap_576028801_576288001_4FGL_J1117.0+2013_daily_bin1299.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.55
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4320       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1110       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .65883E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5096       1.0000         .10000E-03   10000.    
     8 'norm      '    .91949       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7736       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6960       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.121       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.499       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 '    5.8159       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6013       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.1831       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73450       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1621       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=   5147.944     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2401 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4334        6.3694        .54584E-02    .44643E-03
   2  Prefactor     4.1113        2.3371        .49706E-02    .93381E-04
   3  Prefactor     .10000E-03    2.9489        .90712E-02** at limit **
   4  Prefactor     .10002E-03    6.4446        .90712E-02** at limit **
   5  Prefactor     .10001E-03    9.0369        .93981E-01** at limit **
   6  Prefactor     .10000E-03    4.0691        .90712E-02** at limit **
   7  Prefactor     1.5275        35.351        .87042E-02    .53574E-03
   8  norm          .91995        1.2725        .19362E-01    .82947E-03
   9  Prefactor     1.7729        3.0725        .78596E-02    .64226E-03
  10  Prefactor     4.6957        5.0635        .46425E-02    .94853E-04
  11  norm          .10000E-03    4.3717        .90712E-02** at limit **
  12  norm          .10000E-03    4.9302        .90712E-02** at limit **
  13  Prefactor     16.120        10.837        .24938E-02    .41617E-03
  14  Prefactor     20.503        19.603        .22116E-02    .20129E-03
  15  Prefactor     .10000E-03    9.5015        .90712E-02** at limit **
  16  Prefactor     .10002E-03    6.9269        .90712E-02** at limit **
  17  Prefactor     5.8181        17.102        .41634E-02    .29346E-03
  18  Prefactor     .10000E-03    2.9777        .90712E-02** at limit **
  19  Prefactor     1.6008        2.2047        .83753E-02    .64037E-03
  20  Prefactor     9.1835        4.7704        .33064E-02    .12939E-03
  21  Normalizat    .73450        .18762        .42749E-01    .22509E-04
  22  Prefactor     1.1620        .19025        .52595E-01   -.10717E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.43336
  Prefactor  = 4.11128
  Prefactor  = 0.000100003
  Prefactor  = 0.000100024
  Prefactor  = 0.000100011
  Prefactor  = 0.000100001
  Prefactor  = 1.52749
  norm       = 0.919955
  Prefactor  = 1.7729
  Prefactor  = 4.69567
  norm       = 0.000100004
  norm       = 0.000100004
  Prefactor  = 16.1204
  Prefactor  = 20.5028
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 5.81812
  Prefactor  = 0.000100003
  Prefactor  = 1.6008
  Prefactor  = 9.18353
  Normalizat = 0.734503
  Prefactor  = 1.16202
 **********
 **   18 **HESSE 
 **********

 FCN=   5147.944     FROM HESSE     STATUS=OK           350 CALLS     2751 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4334        6.3432        .21834E-03   -1.5337    
   2  Prefactor     4.1113        2.3234        .78068E-04   -1.5302    
   3  Prefactor     .10000E-03    2.9841        .12028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    6.4937        .17719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    93.309        .35628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0723        .14128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.5275        26.999        .34817E-03   -1.5461    
   8  norm          .91995        1.1572        .89765E-03   -1.5516    
   9  Prefactor     1.7729        3.0465        .15338E-03   -1.5442    
  10  Prefactor     4.6957        5.0554        .16210E-03   -1.5275    
  11  norm          .10000E-03    4.3822        .14649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.9535        .15555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.120        10.840        .99753E-04   -1.4905    
  14  Prefactor     20.503        19.598        .88465E-04   -1.4802    
  15  Prefactor     .10000E-03    9.5044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    6.9430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.8181        16.892        .16653E-03   -1.5226    
  18  Prefactor     .10000E-03    2.9813        .12091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6008        2.1579        .11052E-03   -1.5455    
  20  Prefactor     9.1835        4.7688        .10762E-03   -1.5102    
  21  Normalizat    .73450        .21674        .25846E-03   -1.0255    
  22  Prefactor     1.1620        .22348        .23253E-03   -.87508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23069e-08
Minuit parameter uncertainties:
  1  6.34445
  2  2.32346
  3  0.000187682
  4  0.000792612
  5  0.00198735
  6  0.000104876
  7  12.8502
  8  1.15727
  9  3.04681
  10  5.05587
  11  0.000262085
  12  0.0002694
  13  10.8416
  14  19.6041
  15  5.53457e-05
  16  0.000783205
  17  16.9062
  18  0.000190094
  19  2.15804
  20  4.76903
  21  0.216998
  22  0.22366
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  4.696e+00  5.056e+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.162e+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.345e-01  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 169.271 20.229
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 1.58e-08 +/- 1.70e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/637597/likelihoodResults_576028801_576288001_4FGL_J1117.0+2013_daily_bin1299.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) = 5147.94408347
delta logL = 0.000200778666112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5147.94401542
delta logL = 0.000268825753665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6324       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9760       1.0000          .0000       10.000    
     3 'Normalizat'    .73403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1622       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=   5147.944     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      232 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6254        209.86        .46750E-02    .10183E-03
   2  Index         1.9741        5.2879        .15335        .62606E-04
   3  Normalizat    .73412        .10169        .42743E-01    .19768E-04
   4  Prefactor     1.1623        .82097E-01    .52590E-01    .59907E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.62537
  Index      = 1.97414
  Normalizat = 0.734124
  Prefactor  = 1.16226
 **********
 **   18 **HESSE 
 **********

 FCN=   5147.944     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6254        6.0536        .16066E-03   -1.5278    
   2  Index         1.9741        .77281        .92735E-02   -.64998    
   3  Normalizat    .73412        .20095        .25852E-03   -1.0256    
   4  Prefactor     1.1623        .22298        .23251E-03   -.87501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2048e-12
Minuit parameter uncertainties:
  1  6.05441
  2  0.777752
  3  0.201157
  4  0.223157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/637597': 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) = 5147.94400759
delta logL = 0.000276660664895

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  4.625e+00  6.054e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.974e+00  7.778e-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.162e+00  2.232e-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.341e-01  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 169.271 20.229
Photon Index (Free Index): 1.97 +/- 0.78
Photon Flux (Free Index): 1.61e-08 +/- 2.10e-08
Energy Flux (Free Index): 1.18e-05 +/- 1.93e-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/637597/cmap_HighResolution_576028801_576288001_4FGL_J1117.0+2013_daily_bin1299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', comment='SUCCESS', photon_flux='1.58e-08', energy_flux2='1.18e-05', photon_flux_error='1.70e-08', dlogl='2.77e-04', energy_flux='1.22e-05', photon_flux2='1.61e-08', job_status='DONE', time_completed='2021-09-03 14:34:52.306040', photon_index_error2='0.78', photon_index2='1.97', ts='1.62', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='6.39e-08', energy_flux_error2='1.93e-05', EG='0.73', time_epoch_completed='1630704892.31', return_code='0', job_id='637597', GAL2='1.16', EG2='0.73', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='2.10e-08', ts2='1.62', photon_index='1.96' WHERE bin_id='1299' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:34:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 637597: <4FGL_J1117.0+2013_daily_bin1299> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin1299 169.271 20.2294 576028801 576288001 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 :                                   635.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            803 sec.

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

