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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1428
RA = 19.4543, Dec = -21.1578
tmin = 609465601, tmax = 609724801
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='516275', job_status='RUN', time_executed='2021-08-13 21:39:30.433007', time_epoch_executed='1628915970.43' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1428'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516275

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516275/ft1_4FGL_J0117.8-2109_daily_bin1428.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516275/ft2_4FGL_J0117.8-2109_daily_bin1428.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516275/ft1_4FGL_J0117.8-2109_daily_bin1428.fits outfile=/scratch/kocevski/516275/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1428.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=609465601.0 tmax=609724801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.46
user 2.65
sys 0.80

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516275/ft2_4FGL_J0117.8-2109_daily_bin1428.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/516275/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1428.fits evtable="EVENTS" outfile="/scratch/kocevski/516275/ft1_filtered_4FGL_J0117.8-2109_daily_bin1428.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 1.09
user 0.32
sys 0.75

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516275/ft1_filtered_4FGL_J0117.8-2109_daily_bin1428.fits" evtable="EVENTS" scfile=/scratch/kocevski/516275/ft2_4FGL_J0117.8-2109_daily_bin1428.fits sctable="SC_DATA" outfile=/scratch/kocevski/516275/ltcube_609465601_609724801_4FGL_J0117.8-2109_daily_bin1428.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/516275/ft2_4FGL_J0117.8-2109_daily_bin1428.fits
.....................!
real 14.39
user 13.36
sys 1.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516275/ft1_filtered_4FGL_J0117.8-2109_daily_bin1428.fits evtable="EVENTS" scfile=/scratch/kocevski/516275/ft2_4FGL_J0117.8-2109_daily_bin1428.fits sctable="SC_DATA" expcube=/scratch/kocevski/516275/ltcube_609465601_609724801_4FGL_J0117.8-2109_daily_bin1428.fits outfile=/scratch/kocevski/516275/expmap_609465601_609724801_4FGL_J0117.8-2109_daily_bin1428.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/516275/ltcube_609465601_609724801_4FGL_J0117.8-2109_daily_bin1428.fits
.....................!
real 191.38
user 186.27
sys 4.73

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/516275/ft1_filtered_4FGL_J0117.8-2109_daily_bin1428.fits scfile=/scratch/kocevski/516275/ft2_4FGL_J0117.8-2109_daily_bin1428.fits outfile=/scratch/kocevski/516275/cmap_609465601_609724801_4FGL_J0117.8-2109_daily_bin1428.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 1.11
user 0.37
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516275/ft1_filtered_4FGL_J0117.8-2109_daily_bin1428.fits scfile=/scratch/kocevski/516275/ft2_4FGL_J0117.8-2109_daily_bin1428.fits outfile=/scratch/kocevski/516275/cmap_HighResolution_609465601_609724801_4FGL_J0117.8-2109_daily_bin1428.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 1.11
user 0.38
sys 0.72

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/516275/ft1_filtered_4FGL_J0117.8-2109_daily_bin1428.fits evtable="EVENTS" scfile=/scratch/kocevski/516275/ft2_4FGL_J0117.8-2109_daily_bin1428.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/516275/Model_4FGL_J0117.8-2109_daily_bin1428.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/516275/ft1_filtered_4FGL_J0117.8-2109_daily_bin1428.fits.....................!
real 42.86
user 40.78
sys 1.95

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.9689       1.0000         .10000E-03   10000.    
     3 'Prefactor '    199.03       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3151       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .87902E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10390E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6651       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    84.829       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .74855       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5658       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93145       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3645       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=   4739.961     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2378 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    26.926       -.78896E-05** at limit **
   2  norm          4.9686        7.6209        .80500E-05    .20538E-03
   3  Prefactor     199.01        142.18       -.17149E-04   -.12243E-03
   4  Prefactor     .10000E-03    26.889        .32609E-05** at limit **
   5  norm          2.3121        9.9653        .13869E-04    .15304E-04
   6  Prefactor     .10018E-03    6.6532        .12004E-05** at limit **
   7  Prefactor     .10000E-03    4.1852        .29996E-07** at limit **
   8  Prefactor     .10000E-03    2.9214        .37819E-05** at limit **
   9  Prefactor     .10000E-03    2.3395        .87627E-07** at limit **
  10  norm          .10000E-03    .53588        .61054E-08** at limit **
  11  norm          .10000E-03    1.4359       -.14388E-06** at limit **
  12  Prefactor     9.6628        13.629       -.60568E-06   -.53155E-04
  13  Prefactor     .10000E-03    1.3315       -.13395E-08** at limit **
  14  norm          84.827        76.913       -.22711E-05   -.14744E-04
  15  norm          .10001E-03    1.3690       -.13336E-05** at limit **
  16  norm          .74971        1.5193       -.13764E-06   -.78313E-03
  17  norm          2.5662        3.0525        .31685E-06   -.26592E-03
  18  Prefactor     .10000E-03    45.562        .20125E-04** at limit **
  19  norm          .10000E-03    1.4417        .55355E-07** at limit **
  20  Prefactor     .10000E-03    63.131       -.30733E-04** at limit **
  21  Normalizat    .93169        .20818        .73247E-06    .16870E-03
  22  Prefactor     1.3640        .23622       -.16301E-05    .25198E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.96862
  Prefactor  = 199.01
  Prefactor  = 0.0001
  norm       = 2.31214
  Prefactor  = 0.000100176
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.66283
  Prefactor  = 0.0001
  norm       = 84.8271
  norm       = 0.000100008
  norm       = 0.749707
  norm       = 2.56621
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 0.931688
  Prefactor  = 1.36401
 **********
 **   18 **HESSE 
 **********

 FCN=   4739.961     FROM HESSE     STATUS=OK           342 CALLS     2720 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    27.623        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.9686        7.5462        .18042E-03   -1.5262    
   3  Prefactor     199.01        142.90        .14320E-03   -1.2877    
   4  Prefactor     .10000E-03    26.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3121        9.7102        .26962E-03   -1.5404    
   6  Prefactor     .10018E-03    54.852        .33813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1931        .13754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9404        .11502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.3407        .10284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .53720        .49214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.7805        .15900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.6628        13.505        .12890E-03   -1.5086    
  13  Prefactor     .10000E-03    1.3382        .77563E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          84.827        76.885        .43616E-04   -1.3863    
  15  norm          .10001E-03    2.9539        .15289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .74971        1.2770        .11537E-02   -1.5535    
  17  norm          2.5662        3.0302        .12434E-03   -1.5388    
  18  Prefactor     .10000E-03    45.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.4497        .80715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    64.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93169        .24817        .25852E-03   -.95355    
  22  Prefactor     1.3640        .28554        .25508E-03   -.81423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55644e-09
Minuit parameter uncertainties:
  1  0.000121922
  2  7.5476
  3  143.153
  4  0.000131744
  5  9.47898
  6  0.00622044
  7  1.55026e-07
  8  4.611e-05
  9  3.06467e-06
  10  7.33945e-07
  11  4.86949e-05
  12  13.509
  13  2.16425e-06
  14  76.9749
  15  0.000310802
  16  1.27704
  17  3.03035
  18  0.000904435
  19  2.75622e-06
  20  0.00106481
  21  0.248476
  22  0.28587
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  3.065e-06  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:  1.364e+00  2.859e-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:  9.317e-01  2.485e-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: 4.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/516275/likelihoodResults_609465601_609724801_4FGL_J0117.8-2109_daily_bin1428.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) = 4739.96255003
delta logL = -0.00193627574481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4739.9606144
delta logL = -6.43357452645e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10638E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3474       1.0000          .0000       10.000    
     3 'Normalizat'    .93159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3641       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=   4739.961     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      251 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.863        .10679E-01** at limit **
   2  Index         1.6055        5.6508        .50000        .83162E-06
   3  Normalizat    .93168        .93902E-02    .25852E-03   -.18938E-02
   4  Prefactor     1.3640        .10999E-01    .25508E-03   -.18912E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.60548
  Normalizat = 0.931684
  Prefactor  = 1.364
 **********
 **   18 **HESSE 
 **********

 FCN=   4739.961     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    111.99        .13754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6055        5.5750        .50000       -.74627    
   3  Normalizat    .93168        .26473E-01    .51704E-04   -.95356    
   4  Prefactor     1.3640        .31009E-01    .51016E-04   -.81423    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73224e-08
Minuit parameter uncertainties:
  1  0.000112593
  2  512.068
  3  0.0264737
  4  0.0310097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516275': 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) = 4739.96060434
delta logL = 9.41083635553e-06

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.126e-04  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  1.605e+00  5.121e+02  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:  1.364e+00  3.101e-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:  9.317e-01  2.647e-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/516275/cmap_HighResolution_609465601_609724801_4FGL_J0117.8-2109_daily_bin1428.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-03', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2021-08-13 21:48:43.428405', job_id='516275', GAL2='1.36', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1628916523.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='9.41e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1428' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:48:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0009>
Subject: Job 516275: <4FGL_J0117.8-2109_daily_bin1428> in cluster <slac> Done

Job <4FGL_J0117.8-2109_daily_bin1428> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 13 21:35:45 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:38:02 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:02 2021
Terminated at Fri Aug 13 21:48:46 2021
Results reported at Fri Aug 13 21:48:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1428 19.4543 -21.1578 609465601 609724801 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 :                                   562.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            781 sec.

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

