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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin517
RA = 19.4543, Dec = -21.1578
tmin = 373334401, tmax = 373593601
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='512368', job_status='RUN', time_executed='2021-08-13 21:26:07.118349', time_epoch_executed='1628915167.12' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='517'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/512368

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/512368/ft1_4FGL_J0117.8-2109_daily_bin517.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/512368/ft2_4FGL_J0117.8-2109_daily_bin517.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/512368/ft1_4FGL_J0117.8-2109_daily_bin517.fits outfile=/scratch/kocevski/512368/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin517.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=373334401.0 tmax=373593601.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 4.47
user 4.24
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/512368/ft2_4FGL_J0117.8-2109_daily_bin517.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/512368/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin517.fits evtable="EVENTS" outfile="/scratch/kocevski/512368/ft1_filtered_4FGL_J0117.8-2109_daily_bin517.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/512368/ft1_filtered_4FGL_J0117.8-2109_daily_bin517.fits" evtable="EVENTS" scfile=/scratch/kocevski/512368/ft2_4FGL_J0117.8-2109_daily_bin517.fits sctable="SC_DATA" outfile=/scratch/kocevski/512368/ltcube_373334401_373593601_4FGL_J0117.8-2109_daily_bin517.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/512368/ft2_4FGL_J0117.8-2109_daily_bin517.fits
.....................!
real 12.35
user 12.01
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/512368/ft1_filtered_4FGL_J0117.8-2109_daily_bin517.fits evtable="EVENTS" scfile=/scratch/kocevski/512368/ft2_4FGL_J0117.8-2109_daily_bin517.fits sctable="SC_DATA" expcube=/scratch/kocevski/512368/ltcube_373334401_373593601_4FGL_J0117.8-2109_daily_bin517.fits outfile=/scratch/kocevski/512368/expmap_373334401_373593601_4FGL_J0117.8-2109_daily_bin517.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/512368/ltcube_373334401_373593601_4FGL_J0117.8-2109_daily_bin517.fits
.....................!
real 189.90
user 185.12
sys 3.89

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/512368/ft1_filtered_4FGL_J0117.8-2109_daily_bin517.fits scfile=/scratch/kocevski/512368/ft2_4FGL_J0117.8-2109_daily_bin517.fits outfile=/scratch/kocevski/512368/cmap_373334401_373593601_4FGL_J0117.8-2109_daily_bin517.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 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/512368/ft1_filtered_4FGL_J0117.8-2109_daily_bin517.fits scfile=/scratch/kocevski/512368/ft2_4FGL_J0117.8-2109_daily_bin517.fits outfile=/scratch/kocevski/512368/cmap_HighResolution_373334401_373593601_4FGL_J0117.8-2109_daily_bin517.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 0.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/512368/ft1_filtered_4FGL_J0117.8-2109_daily_bin517.fits evtable="EVENTS" scfile=/scratch/kocevski/512368/ft2_4FGL_J0117.8-2109_daily_bin517.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/512368/Model_4FGL_J0117.8-2109_daily_bin517.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/512368/ft1_filtered_4FGL_J0117.8-2109_daily_bin517.fits.....................!
real 49.60
user 48.30
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/512368/ft1_filtered_4FGL_J0117.8-2109_daily_bin517.fits', '/scratch/kocevski/512368/ft2_4FGL_J0117.8-2109_daily_bin517.fits', expMap='/scratch/kocevski/512368/expmap_373334401_373593601_4FGL_J0117.8-2109_daily_bin517.fits', expCube='/scratch/kocevski/512368/ltcube_373334401_373593601_4FGL_J0117.8-2109_daily_bin517.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/512368/Model_4FGL_J0117.8-2109_daily_bin517.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/512368/ft1_filtered_4FGL_J0117.8-2109_daily_bin517.fits
Spacecraft file(s): /scratch/kocevski/512368/ft2_4FGL_J0117.8-2109_daily_bin517.fits
Exposure map: /scratch/kocevski/512368/expmap_373334401_373593601_4FGL_J0117.8-2109_daily_bin517.fits
Exposure cube: /scratch/kocevski/512368/ltcube_373334401_373593601_4FGL_J0117.8-2109_daily_bin517.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/512368/Model_4FGL_J0117.8-2109_daily_bin517.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) = 5761.60718001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    68.501       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .59913E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .11160E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4348       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.732       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8571       1.0000         .10000E-03   10000.    
    11 'norm      '    2.9221       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8010       1.0000         .10000E-03   10000.    
    14 'norm      '    7.3200       1.0000         .10000E-03   10000.    
    15 'norm      '    .30440       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6664       1.0000         .10000E-03   10000.    
    17 'norm      '    .46572       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.538       1.0000         .10000E-03   10000.    
    19 'norm      '    .33755E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.866       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .82636       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83162       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5761.602     FROM MIGRAD    STATUS=CONVERGED     99 CALLS     2028 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8214       -.53856E-07** at limit **
   2  norm          .10000E-03    1.1184        .61998E-07** at limit **
   3  Prefactor     68.514        2.4184        .37473E-06   -.36691E-02
   4  Prefactor     .10000E-03    306.30       -.10010E-05** at limit **
   5  norm          .10000E-03    3.6919        .19106E-05** at limit **
   6  Prefactor     2.4408        4.5792        .88698E-05    .27506E-04
   7  Prefactor     .10000E-03    3.2667       -.13868E-06** at limit **
   8  Prefactor     .10000E-03    2.1863       -.34921E-07** at limit **
   9  Prefactor     16.727        9.4862       -.10404E-05   -.50566E-04
  10  norm          1.8584        1.8038        .17909E-06   -.12268E-04
  11  norm          2.9236        1.7616       -.39195E-07   -.46048E-04
  12  Prefactor     .10000E-03    1.8363       -.14063E-05** at limit **
  13  Prefactor     1.8011        3.1245       -.44523E-06    .14438E-04
  14  norm          7.3172        1.1901        .22451E-06    .78427E-04
  15  norm          .30405        .88356        .28552E-06   -.19701E-05
  16  norm          1.6673        1.2925        .27850E-07   -.69352E-05
  17  norm          .46178        1.4337        .34542E-06    .13171E-04
  18  Prefactor     15.559        3.8948       -.11553E-05    .96740E-03
  19  norm          .10000E-03    7.4461        .93913E-06** at limit **
  20  Prefactor     23.870        16.864       -.40487E-05   -.48919E-03
  21  Normalizat    .82655        .16311        .73581E-07   -.12205E-04
  22  Prefactor     .83130        .18814       -.58704E-06   -.35906E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 68.5143
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.44084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7272
  norm       = 1.85839
  norm       = 2.92361
  Prefactor  = 0.0001
  Prefactor  = 1.80109
  norm       = 7.31718
  norm       = 0.304046
  norm       = 1.66727
  norm       = 0.461782
  Prefactor  = 15.5593
  norm       = 0.0001
  Prefactor  = 23.8701
  Normalizat = 0.826546
  Prefactor  = 0.831299
 **********
 **   18 **HESSE 
 **********

 FCN=   5761.602     FROM HESSE     STATUS=OK           398 CALLS     2426 TOTAL
                     EDM=   .87E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.4325        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.1153        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     68.514        62.527        .12124E-02   -1.4051    
   4  Prefactor     .10000E-03    14.497        .93183E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.6886        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4408        4.6198        .65558E-02   -1.5395    
   7  Prefactor     .10000E-03    3.2557        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1245        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.727        9.5555        .24479E-02   -1.4890    
  10  norm          1.8584        1.8151        .76460E-02   -1.5435    
  11  norm          2.9236        1.7644        .59412E-02   -1.5366    
  12  Prefactor     .10000E-03    3.4214        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8011        3.1725        .77871E-02   -1.5440    
  14  norm          7.3172        22.290        .37062E-02   -1.5167    
  15  norm          .30405        .87790        .10444E-01   -1.5598    
  16  norm          1.6673        1.3015        .81668E-02   -1.5450    
  17  norm          .46178        1.4802        .11130E-01   -1.5572    
  18  Prefactor     15.559        33.168        .25402E-02   -1.4919    
  19  norm          .10000E-03    1.2210        .26741E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.870        17.592        .20499E-02   -1.4730    
  21  Normalizat    .82655        .13978        .43953E-01   -.99091    
  22  Prefactor     .83130        .16036        .44127E-01   -.98585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.65393e-08
Minuit parameter uncertainties:
  1  2.64797e-05
  2  1.04705e-06
  3  62.5867
  4  9.03955e-05
  5  3.1213e-06
  6  4.6205
  7  2.06681e-06
  8  8.96869e-07
  9  9.55639
  10  1.81517
  11  1.7644
  12  2.52462e-05
  13  3.17282
  14  22.3156
  15  0.877934
  16  1.30155
  17  1.48032
  18  33.2077
  19  7.52917e-06
  20  17.5958
  21  0.139842
  22  0.160451
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.673e+01  9.556e+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.313e-01  1.605e-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:  8.265e-01  1.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.56
Ra Dec: 19.454 -21.158
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 5.99e-08 +/- 3.42e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.16e-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) = 5761.36440525
delta logL = 0.237918621212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5761.36367959
delta logL = 0.238644285285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.256       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0851       1.0000          .0000       10.000    
     3 'Normalizat'    .84078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81980       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.

 FCN=   5761.364     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      237 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.271        254.58        .20766E-02    .19693E-04
   2  Index         2.0849        3.1899        .13544        .89256E-04
   3  Normalizat    .84080        .87391E-01    .44140E-01    .13764E-04
   4  Prefactor     .81976        .75909E-01    .43974E-01    .21117E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.2713
  Index      = 2.0849
  Normalizat = 0.840804
  Prefactor  = 0.819765
 **********
 **   18 **HESSE 
 **********

 FCN=   5761.364     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.271        14.617        .83062E-04   -1.4743    
   2  Index         2.0849        .41078        .50830E-02   -.62244    
   3  Normalizat    .84080        .15855        .20177E-03   -.98573    
   4  Prefactor     .81976        .18772        .24245E-03   -.99004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81195e-12
Minuit parameter uncertainties:
  1  14.6191
  2  0.411483
  3  0.158632
  4  0.187862
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/512368': 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) = 5761.36367897
delta logL = 0.238644906597

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  2.327e+01  1.462e+01  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.085e+00  4.115e-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.198e-01  1.879e-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:  8.408e-01  1.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.20
Ra Dec: 19.454 -21.158
Photon Index (Free Index): 2.08 +/- 0.41
Photon Flux (Free Index): 4.94e-08 +/- 3.04e-08
Energy Flux (Free Index): 2.80e-05 +/- 2.15e-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/512368/cmap_HighResolution_373334401_373593601_4FGL_J0117.8-2109_daily_bin517.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.99e-08', energy_flux2='2.80e-05', photon_flux_error='3.42e-08', dlogl='2.39e-01', energy_flux='2.03e-05', photon_flux2='4.94e-08', job_status='DONE', time_completed='2021-08-13 21:35:05.194499', photon_index_error2='0.41', photon_index2='2.08', ts='7.56', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.15e-05', EG='0.83', time_epoch_completed='1628915705.19', return_code='0', job_id='512368', GAL2='0.82', EG2='0.84', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='3.04e-08', ts2='8.20', photon_index='2.38' WHERE bin_id='517' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:35:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 512368: <4FGL_J0117.8-2109_daily_bin517> in cluster <slac> Done

Job <4FGL_J0117.8-2109_daily_bin517> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 21:21:03 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:25:57 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:25:57 2021
Terminated at Fri Aug 13 21:35:05 2021
Results reported at Fri Aug 13 21:35:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin517 19.4543 -21.1578 373334401 373593601 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 :                                   536.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   548 sec.
    Turnaround time :                            842 sec.

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

