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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin766
RA = 169.271, Dec = 20.2294
tmin = 437875201, tmax = 438134401
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='635990', job_status='RUN', time_executed='2021-09-03 14:19:15.085727', time_epoch_executed='1630703955.09' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/635990

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/635990/ft1_4FGL_J1117.0+2013_daily_bin766.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/635990/ft2_4FGL_J1117.0+2013_daily_bin766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/635990/ft1_4FGL_J1117.0+2013_daily_bin766.fits outfile=/scratch/kocevski/635990/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin766.fits ra=169.271 dec=20.2294 rad=12.0 tmin=437875201.0 tmax=438134401.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 5.88
user 5.58
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/635990/ft1_filtered_4FGL_J1117.0+2013_daily_bin766.fits evtable="EVENTS" scfile=/scratch/kocevski/635990/ft2_4FGL_J1117.0+2013_daily_bin766.fits sctable="SC_DATA" expcube=/scratch/kocevski/635990/ltcube_437875201_438134401_4FGL_J1117.0+2013_daily_bin766.fits outfile=/scratch/kocevski/635990/expmap_437875201_438134401_4FGL_J1117.0+2013_daily_bin766.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/635990/ltcube_437875201_438134401_4FGL_J1117.0+2013_daily_bin766.fits
.....................!
real 191.00
user 186.52
sys 4.03

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/635990/ft1_filtered_4FGL_J1117.0+2013_daily_bin766.fits scfile=/scratch/kocevski/635990/ft2_4FGL_J1117.0+2013_daily_bin766.fits outfile=/scratch/kocevski/635990/cmap_437875201_438134401_4FGL_J1117.0+2013_daily_bin766.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.60
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/635990/ft1_filtered_4FGL_J1117.0+2013_daily_bin766.fits scfile=/scratch/kocevski/635990/ft2_4FGL_J1117.0+2013_daily_bin766.fits outfile=/scratch/kocevski/635990/cmap_HighResolution_437875201_438134401_4FGL_J1117.0+2013_daily_bin766.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.59
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21152E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9541       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13310E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9912       1.0000         .10000E-03   10000.    
     8 'norm      '    .85037       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17129E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.4789       1.0000         .10000E-03   10000.    
    12 'norm      '    5.3352       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.064       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.890       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1781       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76043       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=   3896.430     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2795 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    4.1650       -.22262E-06** at limit **
   2  Prefactor     .10000E-03    .79894        .75558E-07** at limit **
   3  Prefactor     .10000E-03    2.8012        .97001E-07** at limit **
   4  Prefactor     .10000E-03    13.348        .16747E-05** at limit **
   5  Prefactor     7.9521        10.150       -.10233E-05   -.79018E-04
   6  Prefactor     .10000E-03    14.048        .15357E-06** at limit **
   7  Prefactor     4.9975        17.281       -.28022E-05   -.77575E-04
   8  norm          .85134        1.4591       -.13950E-06   -.77003E-03
   9  Prefactor     .10000E-03    2.5236        .83888E-07** at limit **
  10  Prefactor     .10000E-03    9.9733        .76048E-07** at limit **
  11  norm          9.4754        10.488        .78425E-06   -.50921E-04
  12  norm          5.3350        7.7213       -.56726E-06   -.55115E-04
  13  Prefactor     13.074        17.211       -.96800E-06   -.42424E-04
  14  Prefactor     .10000E-03    16.464       -.12736E-04** at limit **
  15  Prefactor     .10000E-03    17.192        .12200E-04** at limit **
  16  Prefactor     .10000E-03    5.6434       -.60116E-07** at limit **
  17  Prefactor     .10000E-03    72.347        .68509E-05** at limit **
  18  Prefactor     .10000E-03    7.1748        .71183E-07** at limit **
  19  Prefactor     .10000E-03    1.0847       -.15751E-07** at limit **
  20  Prefactor     12.893        6.3420        .17742E-05   -.98237E-04
  21  Normalizat    1.1778        .21379        .29883E-06   -.68708E-04
  22  Prefactor     .76063        .21321       -.65524E-06   -.18456E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.95212
  Prefactor  = 0.0001
  Prefactor  = 4.99748
  norm       = 0.851335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.47542
  norm       = 5.33498
  Prefactor  = 13.0741
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8926
  Normalizat = 1.17783
  Prefactor  = 0.760631
 **********
 **   18 **HESSE 
 **********

 FCN=   3896.430     FROM HESSE     STATUS=OK           352 CALLS     3147 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    28.830        .24348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .80465        .54422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.8204        .10201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.617        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9521        10.092        .14217E-03   -1.5144    
   6  Prefactor     .10000E-03    22.758        .61753E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9975        17.277        .18000E-03   -1.5261    
   8  norm          .85134        1.3512        .93561E-03   -1.5523    
   9  Prefactor     .10000E-03    6.6748        .17551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.4754        10.470        .13017E-03   -1.5092    
  12  norm          5.3350        7.7173        .17400E-03   -1.5246    
  13  Prefactor     13.074        17.252        .11082E-03   -1.4985    
  14  Prefactor     .10000E-03    16.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.6526        .14482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    75.329        .41525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.2121        .16327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.1061        .63435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.893        6.3167        .10549E-03   -1.4990    
  21  Normalizat    1.1778        .24439        .20990E-03   -.87291    
  22  Prefactor     .76063        .24702        .27471E-03   -1.0120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54791e-10
Minuit parameter uncertainties:
  1  0.00138254
  2  1.85053e-06
  3  1.90309e-06
  4  0.00014787
  5  10.0944
  6  0.000155282
  7  17.2941
  8  1.35121
  9  2.566e-05
  10  3.49732e-05
  11  10.4725
  12  7.71873
  13  17.2583
  14  5.35127e-05
  15  5.98557e-06
  16  4.39234e-06
  17  0.000358528
  18  2.34077e-05
  19  4.15449e-06
  20  6.31701
  21  0.244629
  22  0.247376
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.497e-05  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:  7.606e-01  2.474e-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.178e+00  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/635990/likelihoodResults_437875201_438134401_4FGL_J1117.0+2013_daily_bin766.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3896.43007567
delta logL = -0.000470425674393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3896.42960516
delta logL = 8.18508851808e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9837       1.0000          .0000       10.000    
     3 'Normalizat'    1.1779       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76063       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=   3896.430     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    133.63        .90712E-02** at limit **
   2  Index         2.0118        8.6937        .50000       -.21908E-04
   3  Normalizat    1.1778        .17890E-01    .35459E-01   -.15421E-03
   4  Prefactor     .76063        .19329E-01    .62107E-01    .70620E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.01176
  Normalizat = 1.17783
  Prefactor  = 0.760634
 **********
 **   18 **HESSE 
 **********

 FCN=   3896.430     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      237 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    663.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0118        5.3555        .50000       -.64056    
   3  Normalizat    1.1778        .42317E-01    .20990E-03   -.87291    
   4  Prefactor     .76063        .45658E-01    .27471E-03   -1.0120    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.07678e-07
Minuit parameter uncertainties:
  1  0.00332493
  2  31.8754
  3  0.0423182
  4  0.0456604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/635990': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3896.42960495
delta logL = 2.97319729725e-07

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.325e-03  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.012e+00  3.188e+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:  7.606e-01  4.566e-02  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.178e+00  4.232e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 169.271 20.229

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/635990/cmap_HighResolution_437875201_438134401_4FGL_J1117.0+2013_daily_bin766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', job_status='DONE', photon_flux_upper_limit='7.32e-08', time_completed='2021-09-03 14:29:10.553057', job_id='635990', GAL2='0.76', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630704550.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='766' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:29:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 635990: <4FGL_J1117.0+2013_daily_bin766> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin766> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 14:16:50 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:18:58 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:18:58 2021
Terminated at Fri Sep  3 14:29:11 2021
Results reported at Fri Sep  3 14:29:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin766 169.271 20.2294 437875201 438134401 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 :                                   591.47 sec.
    Max Memory :                                 1230 MB
    Average Memory :                             343.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            741 sec.

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

