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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1140
RA = 19.4543, Dec = -21.1578
tmin = 534816001, tmax = 535075201
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='514851', job_status='RUN', time_executed='2021-08-13 21:38:42.156798', time_epoch_executed='1628915922.16' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514851

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514851/ft1_4FGL_J0117.8-2109_daily_bin1140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514851/ft2_4FGL_J0117.8-2109_daily_bin1140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514851/ft1_4FGL_J0117.8-2109_daily_bin1140.fits outfile=/scratch/kocevski/514851/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1140.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=534816001.0 tmax=535075201.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.13
user 3.35
sys 0.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514851/ft2_4FGL_J0117.8-2109_daily_bin1140.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/514851/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1140.fits evtable="EVENTS" outfile="/scratch/kocevski/514851/ft1_filtered_4FGL_J0117.8-2109_daily_bin1140.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.02
user 0.33
sys 0.65

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514851/ft1_filtered_4FGL_J0117.8-2109_daily_bin1140.fits" evtable="EVENTS" scfile=/scratch/kocevski/514851/ft2_4FGL_J0117.8-2109_daily_bin1140.fits sctable="SC_DATA" outfile=/scratch/kocevski/514851/ltcube_534816001_535075201_4FGL_J0117.8-2109_daily_bin1140.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/514851/ft2_4FGL_J0117.8-2109_daily_bin1140.fits
.....................!
real 12.28
user 11.37
sys 0.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514851/ft1_filtered_4FGL_J0117.8-2109_daily_bin1140.fits evtable="EVENTS" scfile=/scratch/kocevski/514851/ft2_4FGL_J0117.8-2109_daily_bin1140.fits sctable="SC_DATA" expcube=/scratch/kocevski/514851/ltcube_534816001_535075201_4FGL_J0117.8-2109_daily_bin1140.fits outfile=/scratch/kocevski/514851/expmap_534816001_535075201_4FGL_J0117.8-2109_daily_bin1140.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/514851/ltcube_534816001_535075201_4FGL_J0117.8-2109_daily_bin1140.fits
.....................!
real 190.20
user 184.92
sys 4.79

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/514851/ft1_filtered_4FGL_J0117.8-2109_daily_bin1140.fits scfile=/scratch/kocevski/514851/ft2_4FGL_J0117.8-2109_daily_bin1140.fits outfile=/scratch/kocevski/514851/cmap_534816001_535075201_4FGL_J0117.8-2109_daily_bin1140.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.02
user 0.37
sys 0.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514851/ft1_filtered_4FGL_J0117.8-2109_daily_bin1140.fits scfile=/scratch/kocevski/514851/ft2_4FGL_J0117.8-2109_daily_bin1140.fits outfile=/scratch/kocevski/514851/cmap_HighResolution_534816001_535075201_4FGL_J0117.8-2109_daily_bin1140.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.04
user 0.39
sys 0.63

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514851/ft1_filtered_4FGL_J0117.8-2109_daily_bin1140.fits evtable="EVENTS" scfile=/scratch/kocevski/514851/ft2_4FGL_J0117.8-2109_daily_bin1140.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514851/Model_4FGL_J0117.8-2109_daily_bin1140.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/514851/ft1_filtered_4FGL_J0117.8-2109_daily_bin1140.fits.....................!
real 42.20
user 40.28
sys 1.77

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9038       1.0000         .10000E-03   10000.    
     2 'norm      '    28.644       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.4034       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6695       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11607E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7444       1.0000         .10000E-03   10000.    
    11 'norm      '    5.1883       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.746       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.9989       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.361       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.011       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0825       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73312       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=   4267.542     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2345 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9040        10.253        .38173E-02    .52395E-04
   2  norm          28.644        9.5179        .18714E-02    .13544E-03
   3  Prefactor     .10001E-03    36.849        .90712E-02** at limit **
   4  Prefactor     .10002E-03    29.449        .90712E-02** at limit **
   5  norm          7.4032        7.6144        .36851E-02   -.16547E-03
   6  Prefactor     .10000E-03    3.5624        .90712E-02** at limit **
   7  Prefactor     .10000E-03    5.8568        .90712E-02** at limit **
   8  Prefactor     6.6702        6.9648        .38845E-02   -.29262E-03
   9  Prefactor     .10010E-03    11.156        .66946E-01** at limit **
  10  norm          3.7384        2.8499        .52165E-02    .10409E-03
  11  norm          5.1885        2.7469        .44121E-02    .21704E-04
  12  Prefactor     12.746        14.226        .28050E-02    .51381E-03
  13  Prefactor     .10000E-03    4.3776        .90712E-02** at limit **
  14  norm          .10000E-03    16.181        .90712E-02** at limit **
  15  norm          3.9989        2.0791        .50420E-02    .19021E-03
  16  norm          .10000E-03    .75475        .90712E-02** at limit **
  17  norm          .10000E-03    1.3232        .90712E-02** at limit **
  18  Prefactor     27.362        48.076        .19147E-02   -.51282E-03
  19  norm          .10000E-03    1.5391        .90712E-02** at limit **
  20  Prefactor     14.012        14.411        .26751E-02    .15291E-04
  21  Normalizat    1.0824        .19391        .38763E-01    .75657E-05
  22  Prefactor     .73318        .21400        .65458E-01    .15260E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.90397
  norm       = 28.6445
  Prefactor  = 0.000100006
  Prefactor  = 0.000100022
  norm       = 7.40323
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.67021
  Prefactor  = 0.000100097
  norm       = 3.73845
  norm       = 5.18855
  Prefactor  = 12.7464
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.99885
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 27.3617
  norm       = 0.0001
  Prefactor  = 14.0118
  Normalizat = 1.08236
  Prefactor  = 0.733182
 **********
 **   18 **HESSE 
 **********

 FCN=   4267.542     FROM HESSE     STATUS=OK           344 CALLS     2689 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9040        10.250        .15269E-03   -1.5182    
   2  norm          28.644        9.5464        .74858E-04   -1.4637    
   3  Prefactor     .10001E-03    36.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    29.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.4032        7.6176        .14740E-03   -1.5164    
   6  Prefactor     .10000E-03    3.6168        .12037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8790        .15438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6702        6.9606        .15538E-03   -1.5191    
   9  Prefactor     .10010E-03    31.905        .37471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7384        2.5452        .82537E-04   -1.5321    
  11  norm          5.1885        2.7468        .75617E-04   -1.5252    
  12  Prefactor     12.746        14.226        .56099E-03   -1.4994    
  13  Prefactor     .10000E-03    4.4776        .26621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    16.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.9989        2.0836        .63770E-04   -1.5308    
  16  norm          .10000E-03    .76288        .55391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.3480        .73345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.362        48.093        .76588E-04   -1.4661    
  19  norm          .10000E-03    1.5610        .79128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.012        14.414        .10701E-03   -1.4959    
  21  Normalizat    1.0824        .22737        .21446E-03   -.90320    
  22  Prefactor     .73318        .24966        .28960E-03   -1.0224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44892e-09
Minuit parameter uncertainties:
  1  10.2525
  2  9.54688
  3  0.0009509
  4  0.00162858
  5  7.61856
  6  2.11584e-06
  7  1.38014e-06
  8  6.96144
  9  0.00351585
  10  2.54523
  11  2.74687
  12  14.2297
  13  2.52573e-06
  14  3.95369e-05
  15  2.08365
  16  2.19514e-07
  17  6.05784e-07
  18  48.1611
  19  9.96574e-08
  20  14.4174
  21  0.227579
  22  0.250047
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.001e-04  3.516e-03  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:  7.332e-01  2.500e-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.082e+00  2.276e-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: 9.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514851/likelihoodResults_534816001_535075201_4FGL_J0117.8-2109_daily_bin1140.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) = 4267.54252719
delta logL = -0.000148757225361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4267.54252716
delta logL = -0.000148729171997

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96333E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3761       1.0000          .0000       10.000    
     3 'Normalizat'    1.0824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73318       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=   4267.542     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      216 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    .13351        .90715E-01** at limit **
   2  Index         2.3365        8.3365        .50000        .81932E-05
   3  Normalizat    1.0824        .65720E-03    .38768E-01    .30788E-05
   4  Prefactor     .73318        .74802E-03    .65457E-01    .14802E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100022
  Index      = 2.33646
  Normalizat = 1.08236
  Prefactor  = 0.733185
 **********
 **   18 **HESSE 
 **********

 FCN=   4267.542     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      251 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    65.620        .32955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3365        7.7913        .50000       -.56180    
   3  Normalizat    1.0824        .64909E-02    .21446E-03   -.90320    
   4  Prefactor     .73318        .73776E-02    .28959E-03   -1.0224    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.16255e-08
Minuit parameter uncertainties:
  1  0.0024137
  2  146.491
  3  0.00649095
  4  0.0073776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514851': 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) = 4267.54237834
delta logL = 8.91059244168e-08

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  2.414e-03  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.336e+00  1.465e+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:  7.332e-01  7.378e-03  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.082e+00  6.491e-03  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/514851/cmap_HighResolution_534816001_535075201_4FGL_J0117.8-2109_daily_bin1140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-03', job_status='DONE', photon_flux_upper_limit='9.05e-08', time_completed='2021-08-13 21:47:31.950445', job_id='514851', GAL2='0.73', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1628916451.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='8.91e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1140' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:47:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 514851: <4FGL_J0117.8-2109_daily_bin1140> in cluster <slac> Done

Job <4FGL_J0117.8-2109_daily_bin1140> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 21:30:54 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:34:50 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:34:50 2021
Terminated at Fri Aug 13 21:47:32 2021
Results reported at Fri Aug 13 21:47:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1140 19.4543 -21.1578 534816001 535075201 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 :                                   535.51 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             274.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            998 sec.

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

