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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1589
RA = 19.4543, Dec = -21.1578
tmin = 651196801, tmax = 651456001
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='880339', job_status='RUN', time_executed='2021-08-24 00:02:47.383415', time_epoch_executed='1629788567.38' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/880339

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/880339/ft1_4FGL_J0117.8-2109_daily_bin1589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/880339/ft2_4FGL_J0117.8-2109_daily_bin1589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/880339/ft1_4FGL_J0117.8-2109_daily_bin1589.fits outfile=/scratch/kocevski/880339/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1589.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=651196801.0 tmax=651456001.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.93
user 3.35
sys 3.49

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/880339/ft1_filtered_4FGL_J0117.8-2109_daily_bin1589.fits" evtable="EVENTS" scfile=/scratch/kocevski/880339/ft2_4FGL_J0117.8-2109_daily_bin1589.fits sctable="SC_DATA" outfile=/scratch/kocevski/880339/ltcube_651196801_651456001_4FGL_J0117.8-2109_daily_bin1589.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/880339/ft2_4FGL_J0117.8-2109_daily_bin1589.fits
.....................!
real 15.63
user 11.43
sys 4.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/880339/ft1_filtered_4FGL_J0117.8-2109_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/880339/ft2_4FGL_J0117.8-2109_daily_bin1589.fits sctable="SC_DATA" expcube=/scratch/kocevski/880339/ltcube_651196801_651456001_4FGL_J0117.8-2109_daily_bin1589.fits outfile=/scratch/kocevski/880339/expmap_651196801_651456001_4FGL_J0117.8-2109_daily_bin1589.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/880339/ltcube_651196801_651456001_4FGL_J0117.8-2109_daily_bin1589.fits
.....................!
real 195.17
user 185.91
sys 8.67

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/880339/ft1_filtered_4FGL_J0117.8-2109_daily_bin1589.fits scfile=/scratch/kocevski/880339/ft2_4FGL_J0117.8-2109_daily_bin1589.fits outfile=/scratch/kocevski/880339/cmap_651196801_651456001_4FGL_J0117.8-2109_daily_bin1589.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 4.20
user 0.39
sys 3.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/880339/ft1_filtered_4FGL_J0117.8-2109_daily_bin1589.fits scfile=/scratch/kocevski/880339/ft2_4FGL_J0117.8-2109_daily_bin1589.fits outfile=/scratch/kocevski/880339/cmap_HighResolution_651196801_651456001_4FGL_J0117.8-2109_daily_bin1589.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.83
user 0.39
sys 3.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/880339/ft1_filtered_4FGL_J0117.8-2109_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/880339/ft2_4FGL_J0117.8-2109_daily_bin1589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/880339/Model_4FGL_J0117.8-2109_daily_bin1589.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/880339/ft1_filtered_4FGL_J0117.8-2109_daily_bin1589.fits.....................!
real 48.36
user 41.35
sys 5.54

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.690       1.0000         .10000E-03   10000.    
     2 'norm      '    34.093       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.919       1.0000         .10000E-03   10000.    
     4 'Prefactor '    55.492       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.066       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.968       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7378       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10959E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.0306       1.0000         .10000E-03   10000.    
    16 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .15579E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.327       1.0000         .10000E-03   10000.    
    19 'norm      '    11.921       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.548       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0780       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .51526       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=   4413.199     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2314 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.685        15.522       -.31238E-05    .61225E-05
   2  norm          34.089        10.942       -.88453E-07    .45808E-04
   3  Prefactor     11.865        173.77       -.15190E-03    .60860E-05
   4  Prefactor     55.488        27.770       -.36144E-05    .17147E-04
   5  norm          .10000E-03    4.3013        .12495E-05** at limit **
   6  Prefactor     12.069        9.7404        .83306E-06    .61717E-04
   7  Prefactor     13.967        14.449       -.11854E-05    .68448E-04
   8  Prefactor     .10000E-03    1.1448        .80284E-07** at limit **
   9  Prefactor     .10000E-03    10.462        .50788E-06** at limit **
  10  norm          .10000E-03    1.1299        .10503E-06** at limit **
  11  norm          2.7375        2.5275       -.13484E-06    .10555E-03
  12  Prefactor     .10000E-03    9.0638        .55732E-06** at limit **
  13  Prefactor     .10000E-03    2.0915       -.38377E-07** at limit **
  14  norm          .10000E-03    22.443        .19670E-05** at limit **
  15  norm          3.0303        1.3677        .32352E-07    .16510E-03
  16  norm          .10000E-03    1.2827       -.48022E-06** at limit **
  17  norm          .10000E-03    2.4648       -.18778E-05** at limit **
  18  Prefactor     34.341        53.906        .21456E-04    .79967E-04
  19  norm          11.920        4.1742       -.26874E-06    .85798E-04
  20  Prefactor     21.550        17.707       -.32304E-06    .93192E-04
  21  Normalizat    1.0783        .18661        .24673E-05    .43340E-03
  22  Prefactor     .51514        .19459        .21093E-05    .30421E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.6853
  norm       = 34.0889
  Prefactor  = 11.8653
  Prefactor  = 55.4884
  norm       = 0.0001
  Prefactor  = 12.0695
  Prefactor  = 13.9675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.73752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.03027
  norm       = 0.000100001
  norm       = 0.000100001
  Prefactor  = 34.3414
  norm       = 11.9202
  Prefactor  = 21.5501
  Normalizat = 1.07828
  Prefactor  = 0.515139
 **********
 **   18 **HESSE 
 **********

 FCN=   4413.199     FROM HESSE     STATUS=OK           342 CALLS     2656 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.685        15.528        .92643E-04   -1.4843    
   2  norm          34.089        10.938        .68630E-04   -1.4540    
   3  Prefactor     11.865        174.36        .11603E-03   -1.5019    
   4  Prefactor     55.488        27.761        .53848E-04   -1.4217    
   5  norm          .10000E-03    4.3071        .13463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.069        9.7592        .11532E-03   -1.5013    
   7  Prefactor     13.967        14.435        .10717E-03   -1.4960    
   8  Prefactor     .10000E-03    1.1488        .69402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.1524        .68894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7375        2.5238        .96726E-04   -1.5377    
  12  Prefactor     .10000E-03    9.0918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1137        .93759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    22.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.0303        1.3694        .50095E-04   -1.5360    
  16  norm          .10000E-03    2.1843        .14482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.2898        .19891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.341        53.929        .68396E-04   -1.4535    
  19  norm          11.920        4.1812        .77215E-04   -1.5017    
  20  Prefactor     21.550        17.727        .86286E-04   -1.4779    
  21  Normalizat    1.0783        .21250        .20806E-03   -.90452    
  22  Prefactor     .51514        .22051        .31639E-03   -1.1129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.26592e-10
Minuit parameter uncertainties:
  1  15.5313
  2  10.9386
  3  91.291
  4  27.7671
  5  6.77712e-05
  6  9.76047
  7  14.4384
  8  1.08822e-06
  9  2.32077e-05
  10  1.71177e-07
  11  2.5239
  12  1.28894e-05
  13  5.67088e-06
  14  5.15372e-05
  15  1.36939
  16  7.40649e-05
  17  0.000122097
  18  54.0058
  19  4.18133
  20  17.7316
  21  0.212666
  22  0.220879
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  2.321e-05  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:  5.151e-01  2.209e-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.078e+00  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 19.454 -21.158
Photon Flux Upper Limit: 8.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/880339/likelihoodResults_651196801_651456001_4FGL_J0117.8-2109_daily_bin1589.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) = 4413.19936082
delta logL = -0.000450464329333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4413.19891086
delta logL = -5.0609378377e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10644E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3668       1.0000          .0000       10.000    
     3 'Normalizat'    1.0782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51528       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=   4413.199     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    798.34        .90712E-02** at limit **
   2  Index         2.3575        6.2680        .50000        .74984E-05
   3  Normalizat    1.0783        .43358E-01    .38967E-01    .16491E-04
   4  Prefactor     .51514        .47099E-01    .71460E-01    .31773E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.35746
  Normalizat = 1.07828
  Prefactor  = 0.515138
 **********
 **   18 **HESSE 
 **********

 FCN=   4413.199     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    822.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3575        6.4735        .50000       -.55684    
   3  Normalizat    1.0783        .43647E-01    .20806E-03   -.90452    
   4  Prefactor     .51514        .47377E-01    .31638E-03   -1.1129    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.37768e-09
Minuit parameter uncertainties:
  1  0.000275765
  2  37.8998
  3  0.0436481
  4  0.0473805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/880339': 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) = 4413.19891032
delta logL = 3.35112417815e-08

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  2.758e-04  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.357e+00  3.790e+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:  5.151e-01  4.738e-02  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.078e+00  4.365e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 19.454 -21.158

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/880339/cmap_HighResolution_651196801_651456001_4FGL_J0117.8-2109_daily_bin1589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.61e-03', job_status='DONE', photon_flux_upper_limit='8.57e-08', time_completed='2021-08-24 00:12:19.937379', job_id='880339', GAL2='0.52', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1629789139.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='3.35e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1589' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 00:12:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 880339: <4FGL_J0117.8-2109_daily_bin1589> in cluster <slac> Done

Job <4FGL_J0117.8-2109_daily_bin1589> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 24 00:00:37 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 00:00:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 24 00:00:38 2021
Terminated at Tue Aug 24 00:12:23 2021
Results reported at Tue Aug 24 00:12:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1589 19.4543 -21.1578 651196801 651456001 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 :                                   623.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            706 sec.

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

