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


Performing analysis on: 4FGL_J0118.3-6008_daily_bin1692
RA = 19.5886, Dec = -60.1426
tmin = 677894401, tmax = 678153601
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='403536', job_status='RUN', time_executed='2022-06-29 04:02:23.603870', time_epoch_executed='1656500543.6' WHERE source_name='4FGL J0118.3-6008' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/403536

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/403536/ft1_4FGL_J0118.3-6008_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/403536/ft2_4FGL_J0118.3-6008_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/403536/ft1_4FGL_J0118.3-6008_daily_bin1692.fits outfile=/scratch/kocevski/403536/ft1_filteredMKT_4FGL_J0118.3-6008_daily_bin1692.fits ra=19.5886 dec=-60.1426 rad=12.0 tmin=677894401.0 tmax=678153601.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.87
user 4.27
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/403536/ft2_4FGL_J0118.3-6008_daily_bin1692.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/403536/ft2_4FGL_J0118.3-6008_daily_bin1692.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/403536/ft1_filteredMKT_4FGL_J0118.3-6008_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/403536/ft1_filtered_4FGL_J0118.3-6008_daily_bin1692.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.58
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 504

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/403536/ft1_filtered_4FGL_J0118.3-6008_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/403536/ft2_4FGL_J0118.3-6008_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/403536/ltcube_677894401_678153601_4FGL_J0118.3-6008_daily_bin1692.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/403536/ft2_4FGL_J0118.3-6008_daily_bin1692.fits
.....................!
real 15.17
user 14.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/403536/ft1_filtered_4FGL_J0118.3-6008_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/403536/ft2_4FGL_J0118.3-6008_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/403536/ltcube_677894401_678153601_4FGL_J0118.3-6008_daily_bin1692.fits outfile=/scratch/kocevski/403536/expmap_677894401_678153601_4FGL_J0118.3-6008_daily_bin1692.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/403536/ltcube_677894401_678153601_4FGL_J0118.3-6008_daily_bin1692.fits
.....................!
real 192.93
user 186.07
sys 6.08

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
Extended source SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 186 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0118.3-6008 @ 19.5886 -60.1426

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/403536/ft1_filtered_4FGL_J0118.3-6008_daily_bin1692.fits scfile=/scratch/kocevski/403536/ft2_4FGL_J0118.3-6008_daily_bin1692.fits outfile=/scratch/kocevski/403536/cmap_677894401_678153601_4FGL_J0118.3-6008_daily_bin1692.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.5886 yref=-60.1426 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.94
user 0.36
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/403536/ft1_filtered_4FGL_J0118.3-6008_daily_bin1692.fits scfile=/scratch/kocevski/403536/ft2_4FGL_J0118.3-6008_daily_bin1692.fits outfile=/scratch/kocevski/403536/cmap_HighResolution_677894401_678153601_4FGL_J0118.3-6008_daily_bin1692.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.5886 yref=-60.1426 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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/403536/ft1_filtered_4FGL_J0118.3-6008_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/403536/ft2_4FGL_J0118.3-6008_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/403536/Model_4FGL_J0118.3-6008_daily_bin1692.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
adding source SMC-Galaxy
Working on...
/scratch/kocevski/403536/ft1_filtered_4FGL_J0118.3-6008_daily_bin1692.fits.....................!
real 1460.51
user 1452.00
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/403536/ft1_filtered_4FGL_J0118.3-6008_daily_bin1692.fits', '/scratch/kocevski/403536/ft2_4FGL_J0118.3-6008_daily_bin1692.fits', expMap='/scratch/kocevski/403536/expmap_677894401_678153601_4FGL_J0118.3-6008_daily_bin1692.fits', expCube='/scratch/kocevski/403536/ltcube_677894401_678153601_4FGL_J0118.3-6008_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/403536/Model_4FGL_J0118.3-6008_daily_bin1692.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0118.3-6008'

4FGL J0118.3-6008
   Spectrum: PowerLaw
184    Prefactor:  6.186e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
185        Index:  2.181e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
186        Scale:  1.688e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/403536/ft1_filtered_4FGL_J0118.3-6008_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/403536/ft2_4FGL_J0118.3-6008_daily_bin1692.fits
Exposure map: /scratch/kocevski/403536/expmap_677894401_678153601_4FGL_J0118.3-6008_daily_bin1692.fits
Exposure cube: /scratch/kocevski/403536/ltcube_677894401_678153601_4FGL_J0118.3-6008_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/403536/Model_4FGL_J0118.3-6008_daily_bin1692.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) = 5474.38002315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.771       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5520       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2483       1.0000         .10000E-03   10000.    
     5 'norm      '    34.642       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1163       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    41.562       1.0000         .10000E-03   10000.    
     9 'norm      '    25.563       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2133       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14495       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5310       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1311       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.3394       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3665       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .63869       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5474.348     FROM MIGRAD    STATUS=CONVERGED    673 CALLS     3469 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.774        14.728       -.10412E-06    .15053E-04
   2  Prefactor     .10000E-03    12.898       -.86503E-06** at limit **
   3  Prefactor     1.5407        24.866        .23748E-05   -.13248E-04
   4  Prefactor     4.2466        7.2147        .44358E-06    .29236E-04
   5  norm          34.647        40.035       -.39912E-06    .20710E-05
   6  Prefactor     8.1176        5.4345       -.12827E-06    .12319E-04
   7  norm          .10000E-03    7.5741        .12981E-06** at limit **
   8  Prefactor     41.313        82.324        .13352E-04    .51545E-04
   9  norm          25.565        8.3733       -.21944E-06    .23313E-04
  10  Prefactor     .10000E-03    1.8001        .53500E-07** at limit **
  11  Prefactor     .10000E-03    40.049       -.77078E-06** at limit **
  12  Prefactor     .10000E-03    15.946        .16172E-06** at limit **
  13  norm          .10000E-03    4.7983       -.96536E-07** at limit **
  14  Prefactor     .10000E-03    1.7300       -.41297E-07** at limit **
  15  Prefactor     4.2125        3.9828        .18635E-07    .12377E-03
  16  norm          .10000E-03    17.586        .54286E-06** at limit **
  17  Prefactor     .15274        1.8713       -.69384E-06    .78563E-03
  18  Prefactor     .10000E-03    5.3313       -.17874E-07** at limit **
  19  Prefactor     4.5315        4.3014        .53799E-07    .18028E-04
  20  norm          1.1309        1.8727       -.70486E-07   -.37063E-04
  21  Prefactor     .10000E-03    45.547        .22348E-06** at limit **
  22  norm          .10000E-03    4.8021       -.12513E-06** at limit **
  23  norm          .10000E-03    .63036       -.28106E-07** at limit **
  24  Prefactor     1.3395        2.6459       -.36219E-07    .23621E-04
  25  Prefactor     .10000E-03    6.3638       -.23123E-06** at limit **
  26  Prefactor     .10000E-03    25.776       -.29128E-06** at limit **
  27  Normalizat    1.3662        .20003        .18075E-05    .15421E-03
  28  Prefactor     .63894        .18256       -.23412E-05    .18082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7736
  Prefactor  = 0.0001
  Prefactor  = 1.5407
  Prefactor  = 4.24661
  norm       = 34.6469
  Prefactor  = 8.11762
  norm       = 0.0001
  Prefactor  = 41.3128
  norm       = 25.5651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.2125
  norm       = 0.0001
  Prefactor  = 0.152738
  Prefactor  = 0.0001
  Prefactor  = 4.53148
  norm       = 1.13093
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.33951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36618
  Prefactor  = 0.638937
 **********
 **   18 **HESSE 
 **********

 FCN=   5474.348     FROM HESSE     STATUS=OK           519 CALLS     3988 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.774        14.748        .85844E-04   -1.4774    
   2  Prefactor     .10000E-03    13.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5407        25.884        .17093E-02   -1.5460    
   4  Prefactor     4.2466        7.1850        .97744E-03   -1.5296    
   5  norm          34.647        40.028        .68086E-04   -1.4530    
   6  Prefactor     8.1176        5.4350        .12908E-03   -1.5138    
   7  norm          .10000E-03    7.6575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     41.313        83.490        .31090E-03   -1.4422    
   9  norm          25.565        8.3746        .79231E-04   -1.4696    
  10  Prefactor     .10000E-03    1.8018        .96940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    40.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.8605        .15828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.7346        .95041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2125        4.0006        .13868E-03   -1.5297    
  16  norm          .10000E-03    17.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .15274        15.934        .18316E-02   -1.5630    
  18  Prefactor     .10000E-03    5.3670        .16675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.5315        4.2745        .13710E-03   -1.5282    
  20  norm          1.1309        1.8291        .11827E-03   -1.5495    
  21  Prefactor     .10000E-03    45.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.8060        .15834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .63492        .57359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.3395        2.6244        .16186E-03   -1.5476    
  25  Prefactor     .10000E-03    6.3652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    25.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3662        .23396        .22152E-03   -.81612    
  28  Prefactor     .63894        .21126        .29004E-03   -1.0597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91587e-09
Minuit parameter uncertainties:
  1  14.7505
  2  3.38089e-05
  3  12.6361
  4  7.18646
  5  40.0589
  6  5.43536
  7  2.36425e-06
  8  83.7279
  9  8.37501
  10  4.6263e-07
  11  3.77747e-05
  12  7.32368e-06
  13  8.14899e-06
  14  9.16572e-07
  15  4.00089
  16  1.40641e-05
  17  3.11994
  18  6.67817e-06
  19  4.27478
  20  1.82924
  21  1.60469e-06
  22  1.68732e-06
  23  5.56239e-07
  24  2.62461
  25  4.03539e-06
  26  1.09129e-05
  27  0.234143
  28  0.211524
Done.

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

Extracting fit parameters...

4FGL J0118.3-6008
   Spectrum: PowerLaw
184    Prefactor:  1.000e-04  3.777e-05  1.000e-04  1.000e+04 ( 1.000e-14)
185        Index:  2.181e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
186        Scale:  1.688e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  6.389e-01  2.115e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.366e+00  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 19.589 -60.143
Photon Flux Upper Limit: 5.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/403536/likelihoodResults_677894401_678153601_4FGL_J0118.3-6008_daily_bin1692.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) = 5474.34820339
delta logL = -0.000118772818496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5474.34808483
delta logL = -2.13556631934e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3791       1.0000          .0000       10.000    
     3 'Normalizat'    1.3662       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63894       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5474.348     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      257 TOTAL
                     EDM=   .77E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .17861E-01    .65382E-01** at limit **
   2  Index         3.3767        6.0037        .50000        .53967E-06
   3  Normalizat    1.3662        .25473E-03    .50105E-01    .56536E-04
   4  Prefactor     .63894        .23839E-03    .65550E-01    .48164E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 3.37673
  Normalizat = 1.36618
  Prefactor  = 0.638936
 **********
 **   18 **HESSE 
 **********

 FCN=   5474.348     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4878        .35542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3767        6.4759        .50000       -.33065    
   3  Normalizat    1.3662        .17063E-02    .22151E-03   -.81612    
   4  Prefactor     .63894        .15945E-02    .29005E-03   -1.0597    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.65445e-11
Minuit parameter uncertainties:
  1  0.000217804
  2  63.3297
  3  0.00170632
  4  0.00159452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/403536': 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) = 5474.34808482
delta logL = -2.05342075787e-07

Extracting fit parameters...

4FGL J0118.3-6008
   Spectrum: PowerLaw
184    Prefactor:  1.000e-04  2.178e-04  1.000e-04  1.000e+04 ( 1.000e-14)
185        Index:  3.377e+00  6.333e+01  0.000e+00  1.000e+01 (-1.000e+00)
186        Scale:  1.688e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  6.389e-01  1.595e-03  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.366e+00  1.706e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 19.589 -60.143

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/403536/cmap_HighResolution_677894401_678153601_4FGL_J0118.3-6008_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.44e-03', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2022-06-29 04:44:30.439289', job_id='403536', GAL2='0.64', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1656503070.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='-2.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1692' AND source_name='4FGL J0118.3-6008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 04:44:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0157>
Subject: Job 403536: <4FGL_J0118.3-6008_daily_bin1692> in cluster <slac> Done

Job <4FGL_J0118.3-6008_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:04:55 2022
Job was executed on host(s) <bullet0157>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:00:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:00:32 2022
Terminated at Wed Jun 29 04:44:30 2022
Results reported at Wed Jun 29 04:44:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.3-6008_daily_bin1692 19.5886 -60.1426 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0118.3-6008 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2182.86 sec.
    Max Memory :                                 1276 MB
    Average Memory :                             463.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2933 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2638 sec.
    Turnaround time :                            16775 sec.

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

