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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1695
RA = 354.509, Dec = -2.5106
tmin = 678672001, tmax = 678931201
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='731357', job_status='RUN', time_executed='2022-07-08 00:37:09.577283', time_epoch_executed='1657265829.58' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1695'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731357

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731357/ft1_4FGL_J2338.0-0230_daily_bin1695.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731357/ft2_4FGL_J2338.0-0230_daily_bin1695.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731357/ft1_4FGL_J2338.0-0230_daily_bin1695.fits outfile=/scratch/kocevski/731357/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1695.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=678672001.0 tmax=678931201.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.63
user 3.38
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/731357/ft2_4FGL_J2338.0-0230_daily_bin1695.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/731357/ft2_4FGL_J2338.0-0230_daily_bin1695.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/731357/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1695.fits evtable="EVENTS" outfile="/scratch/kocevski/731357/ft1_filtered_4FGL_J2338.0-0230_daily_bin1695.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.55
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 499

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731357/ft1_filtered_4FGL_J2338.0-0230_daily_bin1695.fits" evtable="EVENTS" scfile=/scratch/kocevski/731357/ft2_4FGL_J2338.0-0230_daily_bin1695.fits sctable="SC_DATA" outfile=/scratch/kocevski/731357/ltcube_678672001_678931201_4FGL_J2338.0-0230_daily_bin1695.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/731357/ft2_4FGL_J2338.0-0230_daily_bin1695.fits
.....................!
real 12.28
user 11.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731357/ft1_filtered_4FGL_J2338.0-0230_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/731357/ft2_4FGL_J2338.0-0230_daily_bin1695.fits sctable="SC_DATA" expcube=/scratch/kocevski/731357/ltcube_678672001_678931201_4FGL_J2338.0-0230_daily_bin1695.fits outfile=/scratch/kocevski/731357/expmap_678672001_678931201_4FGL_J2338.0-0230_daily_bin1695.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/731357/ltcube_678672001_678931201_4FGL_J2338.0-0230_daily_bin1695.fits
.....................!
real 191.31
user 185.81
sys 5.16

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

Setting source of interest to:
4FGL J2338.0-0230 @ 354.509 -2.5106

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/731357/ft1_filtered_4FGL_J2338.0-0230_daily_bin1695.fits scfile=/scratch/kocevski/731357/ft2_4FGL_J2338.0-0230_daily_bin1695.fits outfile=/scratch/kocevski/731357/cmap_678672001_678931201_4FGL_J2338.0-0230_daily_bin1695.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=354.509 yref=-2.5106 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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731357/ft1_filtered_4FGL_J2338.0-0230_daily_bin1695.fits scfile=/scratch/kocevski/731357/ft2_4FGL_J2338.0-0230_daily_bin1695.fits outfile=/scratch/kocevski/731357/cmap_HighResolution_678672001_678931201_4FGL_J2338.0-0230_daily_bin1695.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=354.509 yref=-2.5106 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/731357/ft1_filtered_4FGL_J2338.0-0230_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/731357/ft2_4FGL_J2338.0-0230_daily_bin1695.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731357/Model_4FGL_J2338.0-0230_daily_bin1695.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/731357/ft1_filtered_4FGL_J2338.0-0230_daily_bin1695.fits.....................!
real 56.13
user 54.79
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/731357/ft1_filtered_4FGL_J2338.0-0230_daily_bin1695.fits', '/scratch/kocevski/731357/ft2_4FGL_J2338.0-0230_daily_bin1695.fits', expMap='/scratch/kocevski/731357/expmap_678672001_678931201_4FGL_J2338.0-0230_daily_bin1695.fits', expCube='/scratch/kocevski/731357/ltcube_678672001_678931201_4FGL_J2338.0-0230_daily_bin1695.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/731357/Model_4FGL_J2338.0-0230_daily_bin1695.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2338.0-0230'

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  2.455e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.490e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
464        Scale:  7.455e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/731357/ft1_filtered_4FGL_J2338.0-0230_daily_bin1695.fits
Spacecraft file(s): /scratch/kocevski/731357/ft2_4FGL_J2338.0-0230_daily_bin1695.fits
Exposure map: /scratch/kocevski/731357/expmap_678672001_678931201_4FGL_J2338.0-0230_daily_bin1695.fits
Exposure cube: /scratch/kocevski/731357/ltcube_678672001_678931201_4FGL_J2338.0-0230_daily_bin1695.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/731357/Model_4FGL_J2338.0-0230_daily_bin1695.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) = 5539.76169243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.663       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.556       1.0000         .10000E-03   10000.    
     7 'norm      '    8.5770       1.0000         .10000E-03   10000.    
     8 'norm      '    8.7827       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0604       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .15369       1.0000         .10000E-03   10000.    
    13 'norm      '    3.1016       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .49792       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.926       1.0000         .10000E-03   10000.    
    19 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.613       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .35379       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.976       1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.880       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.424       1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.026       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93441       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83973       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5539.728     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3341 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2339       -.63883E-07** at limit **
   2  Prefactor     .10000E-03    15.291       -.42061E-06** at limit **
   3  Prefactor     38.694        22.149        .17234E-05    .31905E-03
   4  Prefactor     .10000E-03    7.8196       -.29800E-06** at limit **
   5  norm          .10000E-03    3.0139        .16083E-05** at limit **
   6  Prefactor     21.559        18.460        .30972E-09    .10116E-03
   7  norm          8.5789        5.0535        .24376E-06    .63177E-03
   8  norm          8.7834        8.8878        .10864E-07    .32673E-04
   9  Prefactor     3.0653        26.591        .46577E-07    .37160E-04
  10  Prefactor     .10000E-03    31.892       -.35913E-06** at limit **
  11  Prefactor     .10000E-03    6.1742        .10090E-06** at limit **
  12  norm          .15363        .56488        .12977E-06    .16751E-02
  13  norm          3.1018        4.9241        .26677E-06    .40718E-03
  14  Prefactor     .52005        10.593        .31430E-05    .16254E-04
  15  Prefactor     .10000E-03    19.471        .53590E-06** at limit **
  16  Prefactor     .10000E-03    66.560       -.13668E-06** at limit **
  17  Prefactor     .10000E-03    16.138       -.17054E-06** at limit **
  18  Prefactor     27.924        24.270       -.82498E-07    .13499E-04
  19  norm          .10000E-03    12.870        .16809E-06** at limit **
  20  Prefactor     10.649        40.106       -.29378E-05   -.69588E-04
  21  Prefactor     .38401        8.8309        .47010E-05   -.33953E-03
  22  Prefactor     26.967        28.649        .21249E-06    .51568E-04
  23  Prefactor     28.888        21.870       -.10772E-06    .77862E-05
  24  Prefactor     20.423        17.619        .16739E-06    .11355E-03
  25  Prefactor     11.028        7.7097        .87152E-07    .15742E-03
  26  Normalizat    .93412        .20997       -.86216E-06    .17158E-03
  27  Prefactor     .83981        .14571        .80643E-06    .44746E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.694
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.5594
  norm       = 8.57892
  norm       = 8.78335
  Prefactor  = 3.06525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.153628
  norm       = 3.10177
  Prefactor  = 0.520053
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 27.9237
  norm       = 0.0001
  Prefactor  = 10.6488
  Prefactor  = 0.384007
  Prefactor  = 26.9671
  Prefactor  = 28.8883
  Prefactor  = 20.4231
  Prefactor  = 11.0276
  Normalizat = 0.934119
  Prefactor  = 0.839813
 **********
 **   18 **HESSE 
 **********

 FCN=   5539.728     FROM HESSE     STATUS=OK           496 CALLS     3837 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2588        .14956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     38.694        22.080        .64460E-04   -1.4463    
   4  Prefactor     .10000E-03    7.9039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.0693        .18066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.559        18.454        .86271E-04   -1.4779    
   7  norm          8.5789        5.0275        .11478E-03   -1.5122    
   8  norm          8.7834        8.8903        .13525E-03   -1.5115    
   9  Prefactor     3.0653        26.536        .23189E-03   -1.5358    
  10  Prefactor     .10000E-03    31.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.2111        .18026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .15363        .56731        .10323E-03   -1.5630    
  13  norm          3.1018        4.9128        .19887E-03   -1.5356    
  14  Prefactor     .52005        32.351        .39469E-02   -1.5564    
  15  Prefactor     .10000E-03    19.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    66.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.924        24.155        .75812E-04   -1.4651    
  19  norm          .10000E-03    12.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.649        40.139        .12299E-03   -1.5055    
  21  Prefactor     .38401        13.531        .21164E-02   -1.5584    
  22  Prefactor     26.967        28.658        .77132E-04   -1.4669    
  23  Prefactor     28.888        21.875        .74552E-04   -1.4632    
  24  Prefactor     20.423        17.622        .88627E-04   -1.4804    
  25  Prefactor     11.028        7.7235        .12065E-03   -1.5044    
  26  Normalizat    .93412        .23834        .27168E-03   -.95271    
  27  Prefactor     .83981        .16838        .21500E-03   -.98277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83146e-09
Minuit parameter uncertainties:
  1  1.34909e-05
  2  7.16848e-05
  3  22.0842
  4  8.15494e-05
  5  1.38381e-06
  6  18.4593
  7  5.02772
  8  8.89164
  9  18.0481
  10  0.000107546
  11  4.12743e-06
  12  0.567332
  13  4.91339
  14  8.20734
  15  5.92844e-05
  16  7.06094e-05
  17  0.000232993
  18  24.1634
  19  2.59781e-05
  20  40.2407
  21  4.55955
  22  28.6729
  23  21.8814
  24  17.6261
  25  7.7242
  26  0.238606
  27  0.168483
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  3.840e-01  4.560e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.490e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
464        Scale:  7.455e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.398e-01  1.685e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  9.341e-01  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 354.509 -2.511
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731357/likelihoodResults_678672001_678931201_4FGL_J2338.0-0230_daily_bin1695.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) = 5539.66156097
delta logL = 0.0663259001076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5539.64159481
delta logL = 0.0862920590616

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5539.642     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      217 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82894        47.799        .12529E-01    .12121E-02
   2  Index         3.2252        6.6005        .21634        .63080E-04
   3  Normalizat    .91134        .34561E-01    .45045E-01    .18105E-04
   4  Prefactor     .84779        .26313E-01    .44337E-01    .61176E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.828935
  Index      = 3.2252
  Normalizat = 0.911343
  Prefactor  = 0.847785
 **********
 **   18 **HESSE 
 **********

 FCN=   5539.642     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82894        3.4704        .14893E-03   -1.5526    
   2  Index         3.2252        2.0043        .11941E-01   -.36287    
   3  Normalizat    .91134        .22574        .27476E-03   -.96063    
   4  Prefactor     .84779        .16619        .21408E-03   -.97990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91565e-11
Minuit parameter uncertainties:
  1  3.39233
  2  2.0714
  3  0.225972
  4  0.166291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731357': 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) = 5539.64159218
delta logL = 0.0862946937959

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  8.289e-01  3.392e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  3.225e+00  2.071e+00  0.000e+00  1.000e+01 (-1.000e+00)
464        Scale:  7.455e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.478e-01  1.663e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  9.113e-01  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 354.509 -2.511

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/731357/cmap_HighResolution_678672001_678931201_4FGL_J2338.0-0230_daily_bin1695.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.39e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2022-07-08 00:48:27.754163', job_id='731357', GAL2='0.85', fit_tolerance='1e-08', EG2='0.91', EG='0.93', time_epoch_completed='1657266507.75', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='8.63e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1695' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul  8 00:48:27 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 731357: <4FGL_J2338.0-0230_daily_bin1695> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1695> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Jul  8 00:35:30 2022
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  8 00:35:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul  8 00:35:32 2022
Terminated at Fri Jul  8 00:48:28 2022
Results reported at Fri Jul  8 00:48:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1695 354.509 -2.5106 678672001 678931201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2338.0-0230 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   678.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            778 sec.

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

