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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1504
RA = 19.4543, Dec = -21.1578
tmin = 629164801, tmax = 629424001
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='516381', job_status='RUN', time_executed='2021-08-13 21:40:40.383184', time_epoch_executed='1628916040.38' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516381

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516381/ft1_4FGL_J0117.8-2109_daily_bin1504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516381/ft2_4FGL_J0117.8-2109_daily_bin1504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516381/ft1_4FGL_J0117.8-2109_daily_bin1504.fits outfile=/scratch/kocevski/516381/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1504.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=629164801.0 tmax=629424001.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 6.79
user 3.41
sys 3.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/516381/ft2_4FGL_J0117.8-2109_daily_bin1504.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516381/ft2_4FGL_J0117.8-2109_daily_bin1504.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/516381/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1504.fits evtable="EVENTS" outfile="/scratch/kocevski/516381/ft1_filtered_4FGL_J0117.8-2109_daily_bin1504.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 3.68
user 0.34
sys 3.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516381/ft1_filtered_4FGL_J0117.8-2109_daily_bin1504.fits" evtable="EVENTS" scfile=/scratch/kocevski/516381/ft2_4FGL_J0117.8-2109_daily_bin1504.fits sctable="SC_DATA" outfile=/scratch/kocevski/516381/ltcube_629164801_629424001_4FGL_J0117.8-2109_daily_bin1504.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/516381/ft2_4FGL_J0117.8-2109_daily_bin1504.fits
.....................!
real 16.13
user 12.55
sys 3.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516381/ft1_filtered_4FGL_J0117.8-2109_daily_bin1504.fits evtable="EVENTS" scfile=/scratch/kocevski/516381/ft2_4FGL_J0117.8-2109_daily_bin1504.fits sctable="SC_DATA" expcube=/scratch/kocevski/516381/ltcube_629164801_629424001_4FGL_J0117.8-2109_daily_bin1504.fits outfile=/scratch/kocevski/516381/expmap_629164801_629424001_4FGL_J0117.8-2109_daily_bin1504.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/516381/ltcube_629164801_629424001_4FGL_J0117.8-2109_daily_bin1504.fits
.....................!
real 196.24
user 186.63
sys 9.08

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 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J0117.8-2109 @ 19.4543 -21.1578

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/516381/ft1_filtered_4FGL_J0117.8-2109_daily_bin1504.fits scfile=/scratch/kocevski/516381/ft2_4FGL_J0117.8-2109_daily_bin1504.fits outfile=/scratch/kocevski/516381/cmap_629164801_629424001_4FGL_J0117.8-2109_daily_bin1504.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=19.4543 yref=-21.1578 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 3.65
user 0.39
sys 3.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516381/ft1_filtered_4FGL_J0117.8-2109_daily_bin1504.fits scfile=/scratch/kocevski/516381/ft2_4FGL_J0117.8-2109_daily_bin1504.fits outfile=/scratch/kocevski/516381/cmap_HighResolution_629164801_629424001_4FGL_J0117.8-2109_daily_bin1504.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=19.4543 yref=-21.1578 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 3.66
user 0.40
sys 3.24

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/516381/ft1_filtered_4FGL_J0117.8-2109_daily_bin1504.fits evtable="EVENTS" scfile=/scratch/kocevski/516381/ft2_4FGL_J0117.8-2109_daily_bin1504.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/516381/Model_4FGL_J0117.8-2109_daily_bin1504.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/516381/ft1_filtered_4FGL_J0117.8-2109_daily_bin1504.fits.....................!
real 54.41
user 48.90
sys 5.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/516381/ft1_filtered_4FGL_J0117.8-2109_daily_bin1504.fits', '/scratch/kocevski/516381/ft2_4FGL_J0117.8-2109_daily_bin1504.fits', expMap='/scratch/kocevski/516381/expmap_629164801_629424001_4FGL_J0117.8-2109_daily_bin1504.fits', expCube='/scratch/kocevski/516381/ltcube_629164801_629424001_4FGL_J0117.8-2109_daily_bin1504.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/516381/Model_4FGL_J0117.8-2109_daily_bin1504.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0117.8-2109'

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  4.691e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.376e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/516381/ft1_filtered_4FGL_J0117.8-2109_daily_bin1504.fits
Spacecraft file(s): /scratch/kocevski/516381/ft2_4FGL_J0117.8-2109_daily_bin1504.fits
Exposure map: /scratch/kocevski/516381/expmap_629164801_629424001_4FGL_J0117.8-2109_daily_bin1504.fits
Exposure cube: /scratch/kocevski/516381/ltcube_629164801_629424001_4FGL_J0117.8-2109_daily_bin1504.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/516381/Model_4FGL_J0117.8-2109_daily_bin1504.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) = 5909.36589668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.427       1.0000         .10000E-03   10000.    
     2 'norm      '    3.2931       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10812E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.7450       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6589       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.508       1.0000         .10000E-03   10000.    
    10 'norm      '    .10306E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .55723E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.684       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0126       1.0000         .10000E-03   10000.    
    17 'norm      '    .31794       1.0000         .10000E-03   10000.    
    18 'Prefactor '    63.470       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .31664       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0009       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88259       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5909.279     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2480 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.425        11.650        .77892E-06   -.74808E-04
   2  norm          3.2919        3.9881       -.10563E-06   -.21279E-03
   3  Prefactor     .10002E-03    168.70       -.23515E-04** at limit **
   4  Prefactor     .10000E-03    19.301       -.38076E-06** at limit **
   5  norm          3.7428        6.2469       -.11234E-06   -.77168E-04
   6  Prefactor     .10000E-03    4.1924        .17646E-07** at limit **
   7  Prefactor     .10000E-03    6.4434       -.22609E-06** at limit **
   8  Prefactor     7.6577        3.9922       -.16381E-07   -.92689E-04
   9  Prefactor     14.508        9.9498        .73129E-06    .36431E-03
  10  norm          .10000E-03    1.3336       -.37052E-06** at limit **
  11  norm          .37238E-01    1.0435       -.10735E-06   -.15798E-04
  12  Prefactor     17.703        12.633        .23120E-06    .10777E-03
  13  Prefactor     .10000E-03    .95072       -.24484E-07** at limit **
  14  norm          .10000E-03    15.911        .41621E-07** at limit **
  15  norm          .10000E-03    .52696       -.18146E-07** at limit **
  16  norm          1.0122        .98006       -.85208E-08    .53742E-03
  17  norm          .31115        1.8651       -.10082E-05   -.52394E-03
  18  Prefactor     63.510        38.181        .60894E-05   -.17513E-03
  19  norm          .10000E-03    .64612        .45588E-07** at limit **
  20  Prefactor     .58835E-01    11.948       -.98132E-06   -.11646E-03
  21  Normalizat    1.0010        .14997        .11663E-06    .44251E-03
  22  Prefactor     .88269        .17256       -.28109E-06    .29708E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.4253
  norm       = 3.29193
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 3.74278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.65769
  Prefactor  = 14.5083
  norm       = 0.0001
  norm       = 0.037238
  Prefactor  = 17.7033
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.01223
  norm       = 0.311155
  Prefactor  = 63.5102
  norm       = 0.0001
  Prefactor  = 0.0588352
  Normalizat = 1.00096
  Prefactor  = 0.882693
 **********
 **   18 **HESSE 
 **********

 FCN=   5909.279     FROM HESSE     STATUS=OK           358 CALLS     2838 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.425        11.628        .11363E-03   -1.5003    
   2  norm          3.2919        3.9882        .16383E-03   -1.5345    
   3  Prefactor     .10002E-03    164.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.7428        6.2389        .20864E-03   -1.5321    
   6  Prefactor     .10000E-03    4.2641        .15358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.4843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.6577        3.9941        .10654E-03   -1.5154    
   9  Prefactor     14.508        8.5632        .10516E-03   -1.4946    
  10  norm          .10000E-03    3.6257        .14691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .37238E-01    24.193        .14767E-02   -1.5669    
  12  Prefactor     17.703        12.714        .95243E-04   -1.4866    
  13  Prefactor     .10000E-03    .95476        .73162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    15.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4029        .10810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0122        1.0024        .71907E-03   -1.5507    
  17  norm          .31115        3.6997        .19985E-02   -1.5596    
  18  Prefactor     63.510        38.176        .25185E-03   -1.4112    
  19  norm          .10000E-03    .64942        .60331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .58835E-01    20.101        .75988E-01   -1.5659    
  21  Normalizat    1.0010        .17533        .20877E-03   -.92998    
  22  Prefactor     .88269        .20210        .26072E-03   -.96748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75354e-08
Minuit parameter uncertainties:
  1  11.6303
  2  3.98852
  3  0.0032478
  4  2.27929e-05
  5  6.23994
  6  1.1442e-06
  7  6.53376e-06
  8  3.99426
  9  8.56395
  10  4.61794e-05
  11  1.89652
  12  12.7155
  13  6.34373e-07
  14  9.09289e-07
  15  2.52474e-06
  16  1.00242
  17  2.14568
  18  38.1908
  19  5.58809e-07
  20  2.17388
  21  0.175426
  22  0.20227
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.451e+01  8.564e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.376e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  8.827e-01  2.023e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.001e+00  1.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.53
Ra Dec: 19.454 -21.158
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 5.19e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.04e-05

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) = 5908.98888076
delta logL = 0.290153433121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5908.98711203
delta logL = 0.291922159181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.010       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0180       1.0000          .0000       10.000    
     3 'Normalizat'    1.0187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86433       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5908.987     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      308 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.016        16.312        .83503E-04    .70524E-04
   2  Index         2.0178        .42859        .55124E-02    .12550E-04
   3  Normalizat    1.0188        .17013        .20710E-03   -.69056E-04
   4  Prefactor     .86416        .20102        .26305E-03    .78615E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.0158
  Index      = 2.01779
  Normalizat = 1.01884
  Prefactor  = 0.864164
 **********
 **   18 **HESSE 
 **********

 FCN=   5908.987     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.016        15.902        .33401E-05   -1.4748    
   2  Index         2.0178        .41770        .22050E-03   -.63906    
   3  Normalizat    1.0188        .17017        .82841E-05   -.92402    
   4  Prefactor     .86416        .20108        .10522E-04   -.97405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.73682e-11
Minuit parameter uncertainties:
  1  15.9049
  2  0.418461
  3  0.170259
  4  0.201254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516381': 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) = 5908.9871115
delta logL = 0.291922690988

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  2.302e+01  1.590e+01  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.018e+00  4.185e-01  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  8.642e-01  2.013e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.019e+00  1.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.12
Ra Dec: 19.454 -21.158
Photon Index (Free Index): 2.02 +/- 0.42
Photon Flux (Free Index): 4.37e-08 +/- 2.81e-08
Energy Flux (Free Index): 2.89e-05 +/- 2.64e-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/516381/cmap_HighResolution_629164801_629424001_4FGL_J0117.8-2109_daily_bin1504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.19e-08', energy_flux2='2.89e-05', photon_flux_error='3.06e-08', dlogl='2.92e-01', energy_flux='1.76e-05', photon_flux2='4.37e-08', job_status='DONE', time_completed='2021-08-13 21:51:03.090294', photon_index_error2='0.42', photon_index2='2.02', ts='5.53', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='2.64e-05', EG='1.00', time_epoch_completed='1628916663.09', return_code='0', job_id='516381', GAL2='0.86', EG2='1.02', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.81e-08', ts2='6.12', photon_index='2.38' WHERE bin_id='1504' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:51:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 516381: <4FGL_J0117.8-2109_daily_bin1504> in cluster <slac> Done

Job <4FGL_J0117.8-2109_daily_bin1504> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 13 21:35:52 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:38:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 21:38:54 2021
Terminated at Fri Aug 13 21:51:04 2021
Results reported at Fri Aug 13 21:51:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1504 19.4543 -21.1578 629164801 629424001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0117.8-2109 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   668.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            912 sec.

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

