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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin1714
RA = 189.594, Dec = -19.9945
tmin = 683596801, tmax = 683856001
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='121914', job_status='RUN', time_executed='2022-09-16 17:00:07.765148', time_epoch_executed='1663372807.77' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='1714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/121914

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/121914/ft1_4FGL_J1238.3-1959_daily_bin1714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/121914/ft2_4FGL_J1238.3-1959_daily_bin1714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/121914/ft1_4FGL_J1238.3-1959_daily_bin1714.fits outfile=/scratch/kocevski/121914/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1714.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=683596801.0 tmax=683856001.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.50
user 3.24
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/121914/ft2_4FGL_J1238.3-1959_daily_bin1714.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/121914/ft2_4FGL_J1238.3-1959_daily_bin1714.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/121914/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1714.fits evtable="EVENTS" outfile="/scratch/kocevski/121914/ft1_filtered_4FGL_J1238.3-1959_daily_bin1714.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.50
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 726

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/121914/ft1_filtered_4FGL_J1238.3-1959_daily_bin1714.fits" evtable="EVENTS" scfile=/scratch/kocevski/121914/ft2_4FGL_J1238.3-1959_daily_bin1714.fits sctable="SC_DATA" outfile=/scratch/kocevski/121914/ltcube_683596801_683856001_4FGL_J1238.3-1959_daily_bin1714.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/121914/ft2_4FGL_J1238.3-1959_daily_bin1714.fits
.....................!
real 12.89
user 12.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/121914/ft1_filtered_4FGL_J1238.3-1959_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/121914/ft2_4FGL_J1238.3-1959_daily_bin1714.fits sctable="SC_DATA" expcube=/scratch/kocevski/121914/ltcube_683596801_683856001_4FGL_J1238.3-1959_daily_bin1714.fits outfile=/scratch/kocevski/121914/expmap_683596801_683856001_4FGL_J1238.3-1959_daily_bin1714.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/121914/ltcube_683596801_683856001_4FGL_J1238.3-1959_daily_bin1714.fits
.....................!
real 191.60
user 185.70
sys 5.09

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1238.3-1959 @ 189.594 -19.9945

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/121914/ft1_filtered_4FGL_J1238.3-1959_daily_bin1714.fits scfile=/scratch/kocevski/121914/ft2_4FGL_J1238.3-1959_daily_bin1714.fits outfile=/scratch/kocevski/121914/cmap_683596801_683856001_4FGL_J1238.3-1959_daily_bin1714.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=189.594 yref=-19.9945 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/121914/ft1_filtered_4FGL_J1238.3-1959_daily_bin1714.fits scfile=/scratch/kocevski/121914/ft2_4FGL_J1238.3-1959_daily_bin1714.fits outfile=/scratch/kocevski/121914/cmap_HighResolution_683596801_683856001_4FGL_J1238.3-1959_daily_bin1714.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=189.594 yref=-19.9945 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/121914/ft1_filtered_4FGL_J1238.3-1959_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/121914/ft2_4FGL_J1238.3-1959_daily_bin1714.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/121914/Model_4FGL_J1238.3-1959_daily_bin1714.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/121914/ft1_filtered_4FGL_J1238.3-1959_daily_bin1714.fits.....................!
real 65.81
user 64.38
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/121914/ft1_filtered_4FGL_J1238.3-1959_daily_bin1714.fits', '/scratch/kocevski/121914/ft2_4FGL_J1238.3-1959_daily_bin1714.fits', expMap='/scratch/kocevski/121914/expmap_683596801_683856001_4FGL_J1238.3-1959_daily_bin1714.fits', expCube='/scratch/kocevski/121914/ltcube_683596801_683856001_4FGL_J1238.3-1959_daily_bin1714.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/121914/Model_4FGL_J1238.3-1959_daily_bin1714.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.3-1959'

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  3.073e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
308        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/121914/ft1_filtered_4FGL_J1238.3-1959_daily_bin1714.fits
Spacecraft file(s): /scratch/kocevski/121914/ft2_4FGL_J1238.3-1959_daily_bin1714.fits
Exposure map: /scratch/kocevski/121914/expmap_683596801_683856001_4FGL_J1238.3-1959_daily_bin1714.fits
Exposure cube: /scratch/kocevski/121914/ltcube_683596801_683856001_4FGL_J1238.3-1959_daily_bin1714.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/121914/Model_4FGL_J1238.3-1959_daily_bin1714.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) = 7846.74804892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28762E-04   1.0000          .0000       .10000E+07
     2 'norm      '    5.4037       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.2939       1.0000          .0000       .10000E+07
     4 'Prefactor '    .23785E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .73692E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .28419E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    5.0627       1.0000          .0000       .10000E+07
     8 'Prefactor '    12.380       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.1670       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7863       1.0000          .0000       .10000E+07
    11 'Prefactor '    8.3709       1.0000          .0000       .10000E+07
    12 'norm      '    .30920E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13873E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .61744E-05   1.0000          .0000       .10000E+07
    15 'norm      '    10.161       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.7526       1.0000          .0000       .10000E+07
    17 'norm      '    1.3847       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.4353       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .86600       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7846.644     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     1107 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33262E-06    10.434        .67307E-06** at limit **
   2  norm          5.3965        4.6123       -.65511E-06    .15483E-03
   3  Prefactor     5.3383        4.4072       -.41062E-06   -.16711E-02
   4  Prefactor     .19701E-06    12.715        .86244E-06** at limit **
   5  Prefactor     .13467E-06    7.5387        .13139E-05** at limit **
   6  Prefactor     .33471E-04    22.480       -.58847E-06** at limit **
   7  Prefactor     4.7858        1.4939        .11609E-06   -.33804E-02
   8  Prefactor     12.479        7.7007        .58201E-06    .64672E-02
   9  Prefactor     3.1581        1.8942       -.80601E-07   -.91032E-04
  10  Prefactor     1.8322        13.227       -.15192E-06    .25926E-02
  11  Prefactor     8.5743        9.7920       -.60382E-06   -.25267E-01
  12  norm           .0000        .25417        .10830E-07** at limit **
  13  Prefactor     .28221E-04    22.639        .23746E-06** at limit **
  14  norm          .43576E-07    7.1369       -.56646E-06** at limit **
  15  norm          10.136        4.8221        .38329E-06   -.54154E-02
  16  Prefactor     4.7838        4.9813        .22890E-07    .52473E-02
  17  norm          1.3858        1.7152        .11344E-06    .19161E-02
  18  Normalizat    1.4341        .26940       -.39085E-05   -.25058E-04
  19  Prefactor     .86617        .12931       -.37442E-06   -.42163E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.32623e-07
  norm       = 5.3965
  Prefactor  = 5.33827
  Prefactor  = 1.97009e-07
  Prefactor  = 1.3467e-07
  Prefactor  = 3.34708e-05
  Prefactor  = 4.78579
  Prefactor  = 12.4792
  Prefactor  = 3.1581
  Prefactor  = 1.83215
  Prefactor  = 8.57431
  norm       = 0
  Prefactor  = 2.8221e-05
  norm       = 4.35763e-08
  norm       = 10.1358
  Prefactor  = 4.78378
  norm       = 1.38581
  Normalizat = 1.43407
  Prefactor  = 0.866174
 **********
 **   18 **HESSE 
 **********

 FCN=   7846.644     FROM HESSE     STATUS=OK           308 CALLS     1415 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33262E-06    10.691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.3965        4.6180        .43205E-03   -1.5662    
   3  Prefactor     5.3383        4.4064        .43659E-03   -1.5662    
   4  Prefactor     .19701E-06    12.868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .13467E-06    7.6756        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33471E-04    44.513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7858        14.342        .44664E-03   -1.5664    
   8  Prefactor     12.479        7.7728        .28445E-03   -1.5637    
   9  Prefactor     3.1581        1.8927        .56935E-02   -1.5353    
  10  Prefactor     1.8322        13.263        .78249E-03   -1.5681    
  11  Prefactor     8.5743        10.813        .34625E-03   -1.5649    
  12  norm           .0000        .25305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .28221E-04    41.314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .43576E-07    7.1847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.136        8.3650        .31410E-03   -1.5644    
  16  Prefactor     4.7838        8.9413        .46130E-03   -1.5664    
  17  norm          1.3858        1.7386        .92402E-03   -1.5684    
  18  Normalizat    1.4341        .22766        .72891E-01   -.79648    
  19  Prefactor     .86617        .10941        .44570E-01   -.97333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53049e-06
Minuit parameter uncertainties:
  1  0.00377157
  2  4.61797
  3  4.4064
  4  0.00318425
  5  0.00203348
  6  0.0771985
  7  14.342
  8  7.77278
  9  1.89278
  10  9.85911
  11  10.8128
  12  1.50022e-06
  13  0.068292
  14  0.00111878
  15  8.36501
  16  8.94128
  17  1.73862
  18  0.22782
  19  0.109437
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.832e+00  9.859e+00  0.000e+00  1.000e+06 ( 1.000e-13)
308        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.662e-01  1.094e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.434e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 189.594 -19.994
Photon Flux Upper Limit: 9.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/121914/likelihoodResults_683596801_683856001_4FGL_J1238.3-1959_daily_bin1714.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): 0
logL (Free Index) = 7846.64301108
delta logL = 0.00124508889439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7846.64295195
delta logL = 0.00130421626181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7641       1.0000          .0000       .10000E+07
     2 'Index     '    2.2659       1.0000          .0000       10.000    
     3 'Normalizat'    1.4328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86637       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+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=   7846.643     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      269 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7666        13.422        .31537E-04   -.19322E-02
   2  Index         2.2652        2.1760        .58340E-02    .62516E-04
   3  Normalizat    1.4329        .26391        .32265E-03    .11859E-02
   4  Prefactor     .86643        .12839        .19545E-03    .18690E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.76659
  Index      = 2.26518
  Normalizat = 1.4329
  Prefactor  = 0.866429
 **********
 **   18 **HESSE 
 **********

 FCN=   7846.643     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7666        12.949        .12615E-05   -1.5681    
   2  Index         2.2652        2.1409        .23336E-03   -.57873    
   3  Normalizat    1.4329        .26410        .64529E-04   -.79682    
   4  Prefactor     .86643        .12847        .39090E-04   -.97324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62771e-09
Minuit parameter uncertainties:
  1  9.56578
  2  2.24737
  3  0.264352
  4  0.128512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/121914': 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): 0
logL (Free Index) = 7846.64295007
delta logL = 0.00130610053566

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.767e+00  9.566e+00  0.000e+00  1.000e+06 ( 1.000e-13)
308        Index:  2.265e+00  2.247e+00  0.000e+00  1.000e+01 (-1.000e+00)
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.664e-01  1.285e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.433e+00  2.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 189.594 -19.994

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/121914/cmap_HighResolution_683596801_683856001_4FGL_J1238.3-1959_daily_bin1714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.88e-03', job_status='DONE', photon_flux_upper_limit='9.06e-08', time_completed='2022-09-16 17:09:46.787041', job_id='121914', GAL2='0.87', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1663373386.79', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.31e-03', ts2='0.04', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1714' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:09:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 121914: <4FGL_J1238.3-1959_daily_bin1714> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin1714> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 16:55:17 2022
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:56:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:56:03 2022
Terminated at Fri Sep 16 17:09:47 2022
Results reported at Fri Sep 16 17:09:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin1714 189.594 -19.9945 683596801 683856001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1238.3-1959 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   580.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            870 sec.

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

