aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 53 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1748
RA = 19.4543, Dec = -21.1578
tmin = 692409601, tmax = 692668801
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='875565', job_status='RUN', time_executed='2022-12-14 00:05:55.451505', time_epoch_executed='1671005155.45' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875565

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875565/ft1_4FGL_J0117.8-2109_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875565/ft2_4FGL_J0117.8-2109_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875565/ft1_4FGL_J0117.8-2109_daily_bin1748.fits outfile=/scratch/kocevski/875565/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1748.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=692409601.0 tmax=692668801.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.78
user 3.38
sys 0.20

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

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

Number of photons that the gtmktime cut: 339

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875565/ft1_filtered_4FGL_J0117.8-2109_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/875565/ft2_4FGL_J0117.8-2109_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/875565/ltcube_692409601_692668801_4FGL_J0117.8-2109_daily_bin1748.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/875565/ft2_4FGL_J0117.8-2109_daily_bin1748.fits
.....................!
real 12.32
user 11.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875565/ft1_filtered_4FGL_J0117.8-2109_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/875565/ft2_4FGL_J0117.8-2109_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/875565/ltcube_692409601_692668801_4FGL_J0117.8-2109_daily_bin1748.fits outfile=/scratch/kocevski/875565/expmap_692409601_692668801_4FGL_J0117.8-2109_daily_bin1748.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/875565/ltcube_692409601_692668801_4FGL_J0117.8-2109_daily_bin1748.fits
.....................!
real 189.56
user 185.22
sys 3.99

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/875565/ft1_filtered_4FGL_J0117.8-2109_daily_bin1748.fits scfile=/scratch/kocevski/875565/ft2_4FGL_J0117.8-2109_daily_bin1748.fits outfile=/scratch/kocevski/875565/cmap_692409601_692668801_4FGL_J0117.8-2109_daily_bin1748.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875565/ft1_filtered_4FGL_J0117.8-2109_daily_bin1748.fits scfile=/scratch/kocevski/875565/ft2_4FGL_J0117.8-2109_daily_bin1748.fits outfile=/scratch/kocevski/875565/cmap_HighResolution_692409601_692668801_4FGL_J0117.8-2109_daily_bin1748.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/875565/ft1_filtered_4FGL_J0117.8-2109_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/875565/ft2_4FGL_J0117.8-2109_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875565/Model_4FGL_J0117.8-2109_daily_bin1748.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/875565/ft1_filtered_4FGL_J0117.8-2109_daily_bin1748.fits......................!
real 38.01
user 36.76
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875565/ft1_filtered_4FGL_J0117.8-2109_daily_bin1748.fits', '/scratch/kocevski/875565/ft2_4FGL_J0117.8-2109_daily_bin1748.fits', expMap='/scratch/kocevski/875565/expmap_692409601_692668801_4FGL_J0117.8-2109_daily_bin1748.fits', expCube='/scratch/kocevski/875565/ltcube_692409601_692668801_4FGL_J0117.8-2109_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875565/Model_4FGL_J0117.8-2109_daily_bin1748.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  0.000e+00  1.000e+06 ( 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/875565/ft1_filtered_4FGL_J0117.8-2109_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/875565/ft2_4FGL_J0117.8-2109_daily_bin1748.fits
Exposure map: /scratch/kocevski/875565/expmap_692409601_692668801_4FGL_J0117.8-2109_daily_bin1748.fits
Exposure cube: /scratch/kocevski/875565/ltcube_692409601_692668801_4FGL_J0117.8-2109_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875565/Model_4FGL_J0117.8-2109_daily_bin1748.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) = 3984.00176665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63311E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .50990       1.0000          .0000       .10000E+07
     3 'Prefactor '    63.743       1.0000          .0000       .10000E+07
     4 'norm      '    15.041       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10973E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .21899E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .29153E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .24131E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .21044E-06   1.0000          .0000       .10000E+07
    10 'norm      '    .15543E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .11395E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .80048E-03   1.0000          .0000       .10000E+07
    13 'norm      '    23.097       1.0000          .0000       .10000E+07
    14 'norm      '    2.3163       1.0000          .0000       .10000E+07
    15 'norm      '    .14544E-07   1.0000          .0000       .10000E+07
    16 'norm      '    .25688E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .15252E-02   1.0000          .0000       .10000E+07
    18 'norm      '    1.0657       1.0000          .0000       .10000E+07
    19 'Prefactor '    26.926       1.0000          .0000       .10000E+07
    20 'Normalizat'    .90013       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84125       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=   3983.970     FROM MIGRAD    STATUS=CONVERGED    176 CALLS     1362 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30531E-08    4.1122       -.80884E-06** at limit **
   2  norm          .69418        12.926        .27653E-05    .13167E-01
   3  Prefactor     63.201        28.232       -.54699E-06    .26096E-01
   4  norm          15.077        6.1578        .10738E-06    .10852    
   5  Prefactor      .0000        3.4304        .33906E-06** at limit **
   6  Prefactor      .0000        7.0624       -.11452E-05** at limit **
   7  Prefactor      .0000        3.0786        .59244E-06** at limit **
   8  Prefactor     .94369E-09    12.594        .68462E-06** at limit **
   9  norm           .0000        1.1137       -.28047E-06** at limit **
  10  norm           .0000        1.0725       -.23252E-06** at limit **
  11  Prefactor     .27756E-08    4.0169       -.41997E-06** at limit **
  12  Prefactor      .0000        3.0361        .29510E-06** at limit **
  13  norm          24.675        44.774        .21692E-05   -.10268E-01
  14  norm          2.3172        1.6294       -.96750E-07    .16630E-02
  15  norm           .0000        .73619       -.13681E-06** at limit **
  16  norm           .0000        1.6673        .49923E-06** at limit **
  17  Prefactor     .64060E-07    60.094        .23561E-05** at limit **
  18  norm          1.0692        2.8173       -.13315E-06   -.82118E-03
  19  Prefactor     27.365        17.912       -.45356E-06    .22990E-01
  20  Normalizat    .89895        .21455        .14773E-04    .54174E-05
  21  Prefactor     .84091        .23784       -.22062E-04   -.89193E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.05311e-09
  norm       = 0.694181
  Prefactor  = 63.2009
  norm       = 15.0774
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 9.4369e-10
  norm       = 0
  norm       = 0
  Prefactor  = 2.77556e-09
  Prefactor  = 0
  norm       = 24.6748
  norm       = 2.3172
  norm       = 0
  norm       = 0
  Prefactor  = 6.40599e-08
  norm       = 1.06917
  Prefactor  = 27.3648
  Normalizat = 0.898953
  Prefactor  = 0.840913
 **********
 **   18 **HESSE 
 **********

 FCN=   3983.970     FROM HESSE     STATUS=OK           351 CALLS     1713 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30531E-08    4.1298        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .69418        13.308        .77720E-03   -1.5691    
   3  Prefactor     63.201        28.994        .12526E-03   -1.5549    
   4  norm          15.077        14.139        .25799E-03   -1.5630    
   5  Prefactor      .0000        3.4276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        7.0633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.0633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .94369E-09    12.556        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        1.1106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        1.0688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .27756E-08    4.0350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        3.0296        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          24.675        45.411        .20813E-03   -1.5609    
  14  norm          2.3172        1.6339        .67377E-03   -1.5678    
  15  norm           .0000        .73487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        1.6581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .64060E-07    60.382        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0692        2.8524        .11809E-02   -1.5687    
  19  Prefactor     27.365        18.273        .19275E-03   -1.5603    
  20  Normalizat    .89895        .18097        .44903E-01   -.96497    
  21  Prefactor     .84091        .20127        .44252E-01   -.98237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01506e-07
Minuit parameter uncertainties:
  1  0.000225052
  2  6.07894
  3  28.9938
  4  14.1389
  5  8.1723e-06
  6  7.6271e-06
  7  1.04962e-05
  8  0.000214564
  9  9.02773e-07
  10  2.69176e-08
  11  0.000212664
  12  1.61382e-06
  13  45.4116
  14  1.63395
  15  4.8529e-07
  16  7.58919e-07
  17  0.00393432
  18  2.8524
  19  18.273
  20  0.181097
  21  0.201446
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  9.437e-10  2.146e-04  0.000e+00  1.000e+06 ( 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.409e-01  2.014e-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.990e-01  1.811e-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.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875565/likelihoodResults_692409601_692668801_4FGL_J0117.8-2109_daily_bin1748.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) = 3984.01035477
delta logL = -0.0404165323312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3982.42448454
delta logL = 1.54545370162

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85115E-02   1.0000          .0000       .10000E+07
     2 'Index     '    5.9700       1.0000          .0000       10.000    
     3 'Normalizat'    .76332       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94546       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=   3982.424     FROM MIGRAD    STATUS=CONVERGED    147 CALLS      368 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83644E-02    .10321        .83543E-04** at limit **
   2  Index         5.9771        2.4898        .75928E-01    .65037E-04
   3  Normalizat    .76376        .55161E-01    .43130E-01   -.65174E-04
   4  Prefactor     .94491        .62886E-01    .45582E-01   -.21790E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00836437
  Index      = 5.97712
  Normalizat = 0.763765
  Prefactor  = 0.944914
 **********
 **   18 **HESSE 
 **********

 FCN=   3982.424     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      397 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83644E-02    .18722        .37478E-06   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.9771        3.4978        .31049E-02    .19669    
   3  Normalizat    .76376        .19125        .22871E-03   -1.0143    
   4  Prefactor     .94491        .21424        .23714E-03   -.94589    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.89085e-10
Minuit parameter uncertainties:
  1  0.0791441
  2  3.89456
  3  0.19142
  4  0.214429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875565': 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) = 3982.42447753
delta logL = 1.54546071361

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  8.364e-03  7.914e-02  0.000e+00  1.000e+06 ( 1.000e-13)
258        Index:  5.977e+00  3.895e+00  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:  9.449e-01  2.144e-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:  7.638e-01  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.41
Ra Dec: 19.454 -21.158
Photon Index (Free Index): 5.98 +/- 3.89
Photon Flux (Free Index): 1.01e-07 +/- 6.72e-08
Energy Flux (Free Index): 1.25e-05 +/- 8.96e-06

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/875565/cmap_HighResolution_692409601_692668801_4FGL_J0117.8-2109_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', comment='SUCCESS', energy_flux2='1.25e-05', dlogl='1.55e+00', photon_flux2='1.01e-07', job_status='DONE', time_completed='2022-12-14 00:13:25.129511', photon_index_error2='3.89', photon_index2='5.98', ts='-0.00', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='8.78e-08', energy_flux_error2='8.96e-06', EG='0.90', time_epoch_completed='1671005605.13', return_code='0', job_id='875565', GAL2='0.94', EG2='0.76', return_code2='102', photon_flux_error2='6.72e-08', ts2='3.41', photon_index='2.38' WHERE bin_id='1748' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:13:25 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 875565: <4FGL_J0117.8-2109_daily_bin1748> in cluster <slac> Done

Job <4FGL_J0117.8-2109_daily_bin1748> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec 14 00:04:50 2022
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:04:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:04:51 2022
Terminated at Wed Dec 14 00:13:25 2022
Results reported at Wed Dec 14 00:13:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1748 19.4543 -21.1578 692409601 692668801 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 :                                   451.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   514 sec.
    Turnaround time :                            515 sec.

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

