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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1683
RA = 354.509, Dec = -2.5106
tmin = 675561601, tmax = 675820801
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='53039', job_status='RUN', time_executed='2022-06-02 01:38:53.771612', time_epoch_executed='1654159133.77' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1683'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/53039

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/53039/ft1_4FGL_J2338.0-0230_daily_bin1683.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/53039/ft2_4FGL_J2338.0-0230_daily_bin1683.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/53039/ft1_4FGL_J2338.0-0230_daily_bin1683.fits outfile=/scratch/kocevski/53039/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1683.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=675561601.0 tmax=675820801.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.46
user 3.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/53039/ft2_4FGL_J2338.0-0230_daily_bin1683.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/53039/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1683.fits evtable="EVENTS" outfile="/scratch/kocevski/53039/ft1_filtered_4FGL_J2338.0-0230_daily_bin1683.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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 669

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/53039/ft1_filtered_4FGL_J2338.0-0230_daily_bin1683.fits" evtable="EVENTS" scfile=/scratch/kocevski/53039/ft2_4FGL_J2338.0-0230_daily_bin1683.fits sctable="SC_DATA" outfile=/scratch/kocevski/53039/ltcube_675561601_675820801_4FGL_J2338.0-0230_daily_bin1683.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/53039/ft2_4FGL_J2338.0-0230_daily_bin1683.fits
.....................!
real 13.74
user 13.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/53039/ft1_filtered_4FGL_J2338.0-0230_daily_bin1683.fits evtable="EVENTS" scfile=/scratch/kocevski/53039/ft2_4FGL_J2338.0-0230_daily_bin1683.fits sctable="SC_DATA" expcube=/scratch/kocevski/53039/ltcube_675561601_675820801_4FGL_J2338.0-0230_daily_bin1683.fits outfile=/scratch/kocevski/53039/expmap_675561601_675820801_4FGL_J2338.0-0230_daily_bin1683.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/53039/ltcube_675561601_675820801_4FGL_J2338.0-0230_daily_bin1683.fits
.....................!
real 191.23
user 185.56
sys 5.29

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/53039/ft1_filtered_4FGL_J2338.0-0230_daily_bin1683.fits scfile=/scratch/kocevski/53039/ft2_4FGL_J2338.0-0230_daily_bin1683.fits outfile=/scratch/kocevski/53039/cmap_675561601_675820801_4FGL_J2338.0-0230_daily_bin1683.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/53039/ft1_filtered_4FGL_J2338.0-0230_daily_bin1683.fits scfile=/scratch/kocevski/53039/ft2_4FGL_J2338.0-0230_daily_bin1683.fits outfile=/scratch/kocevski/53039/cmap_HighResolution_675561601_675820801_4FGL_J2338.0-0230_daily_bin1683.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/53039/ft1_filtered_4FGL_J2338.0-0230_daily_bin1683.fits evtable="EVENTS" scfile=/scratch/kocevski/53039/ft2_4FGL_J2338.0-0230_daily_bin1683.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/53039/Model_4FGL_J2338.0-0230_daily_bin1683.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/53039/ft1_filtered_4FGL_J2338.0-0230_daily_bin1683.fits.....................!
real 67.77
user 66.38
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/53039/ft1_filtered_4FGL_J2338.0-0230_daily_bin1683.fits', '/scratch/kocevski/53039/ft2_4FGL_J2338.0-0230_daily_bin1683.fits', expMap='/scratch/kocevski/53039/expmap_675561601_675820801_4FGL_J2338.0-0230_daily_bin1683.fits', expCube='/scratch/kocevski/53039/ltcube_675561601_675820801_4FGL_J2338.0-0230_daily_bin1683.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/53039/Model_4FGL_J2338.0-0230_daily_bin1683.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/53039/ft1_filtered_4FGL_J2338.0-0230_daily_bin1683.fits
Spacecraft file(s): /scratch/kocevski/53039/ft2_4FGL_J2338.0-0230_daily_bin1683.fits
Exposure map: /scratch/kocevski/53039/expmap_675561601_675820801_4FGL_J2338.0-0230_daily_bin1683.fits
Exposure cube: /scratch/kocevski/53039/ltcube_675561601_675820801_4FGL_J2338.0-0230_daily_bin1683.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/53039/Model_4FGL_J2338.0-0230_daily_bin1683.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) = 7439.0837513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.624       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.709       1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.757       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4383       1.0000         .10000E-03   10000.    
     5 'norm      '    .63980       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    53.845       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9888       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .32922       1.0000         .10000E-03   10000.    
    13 'norm      '    3.4153       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    177.51       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.797       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.6264       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.721       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.968       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.5076       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .37220       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0678       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=   7439.080     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3276 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.624        7.4024       -.23984E-06   -.27083E-04
   2  Prefactor     19.710        31.233        .15729E-07    .55937E-05
   3  Prefactor     50.762        15.705        .39956E-08    .32212E-04
   4  Prefactor     2.4394        3.0506        .18632E-06   -.29626E-04
   5  norm          .63862        1.3054        .26278E-06    .64892E-03
   6  Prefactor     .10000E-03    4.8573        .23776E-07** at limit **
   7  norm          .10000E-03    1.1342       -.48097E-07** at limit **
   8  norm          53.843        13.459        .44717E-07   -.80102E-05
   9  Prefactor     .10000E-03    21.106       -.62998E-06** at limit **
  10  Prefactor     10.010        27.324        .12040E-05    .69000E-04
  11  Prefactor     .10000E-03    6.8028        .29363E-05** at limit **
  12  norm          .33086        .62910       -.12707E-06   -.47102E-03
  13  norm          3.4154        3.9406        .36555E-06   -.13703E-03
  14  Prefactor     .10000E-03    2.7102       -.20609E-07** at limit **
  15  Prefactor     .10000E-03    10.611       -.11952E-06** at limit **
  16  Prefactor     177.43        147.39       -.11648E-05   -.11274E-03
  17  Prefactor     15.790        11.046        .23519E-06   -.87817E-05
  18  Prefactor     .10000E-03    5.5085       -.16492E-06** at limit **
  19  norm          .10000E-03    16.213       -.16629E-07** at limit **
  20  Prefactor     .10000E-03    11.752       -.85909E-07** at limit **
  21  Prefactor     5.6260        4.3208        .19245E-06   -.76360E-04
  22  Prefactor     28.723        27.613        .20326E-06    .26666E-04
  23  Prefactor     .10000E-03    18.080        .20446E-06** at limit **
  24  Prefactor     18.970        14.418        .60884E-07   -.10408E-04
  25  Prefactor     4.5079        4.2743        .20284E-05   -.29846E-03
  26  Normalizat    .37220        .17286       -.16603E-05   -.63072E-04
  27  Prefactor     1.0677        .12772        .33292E-06   -.91658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6239
  Prefactor  = 19.7102
  Prefactor  = 50.7623
  Prefactor  = 2.43938
  norm       = 0.638621
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 53.8429
  Prefactor  = 0.0001
  Prefactor  = 10.0101
  Prefactor  = 0.0001
  norm       = 0.330856
  norm       = 3.41539
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 177.43
  Prefactor  = 15.7902
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.62605
  Prefactor  = 28.7229
  Prefactor  = 0.0001
  Prefactor  = 18.9696
  Prefactor  = 4.50789
  Normalizat = 0.372201
  Prefactor  = 1.06772
 **********
 **   18 **HESSE 
 **********

 FCN=   7439.080     FROM HESSE     STATUS=OK           492 CALLS     3768 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.624        7.3903        .12293E-03   -1.5056    
   2  Prefactor     19.710        31.174        .90220E-04   -1.4820    
   3  Prefactor     50.762        15.406        .56291E-04   -1.4282    
   4  Prefactor     2.4394        3.0161        .16088E-03   -1.5396    
   5  norm          .63862        1.0206        .13382E-02   -1.5548    
   6  Prefactor     .10000E-03    4.8774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.1463        .89298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          53.843        13.444        .54661E-04   -1.4239    
   9  Prefactor     .10000E-03    21.786        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.010        27.085        .12679E-03   -1.5075    
  11  Prefactor     .10000E-03    6.7167        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .33086        .54415        .86004E-03   -1.5593    
  13  norm          3.4154        3.8935        .17241E-03   -1.5338    
  14  Prefactor     .10000E-03    2.7152        .13866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     177.43        147.71        .15147E-03   -1.3036    
  17  Prefactor     15.790        10.941        .10077E-03   -1.4913    
  18  Prefactor     .10000E-03    5.5209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    16.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.6260        4.2996        .13150E-03   -1.5234    
  22  Prefactor     28.723        27.580        .74757E-04   -1.4636    
  23  Prefactor     .10000E-03    18.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.970        14.374        .91963E-04   -1.4837    
  25  Prefactor     4.5079        4.2692        .82332E-03   -1.5283    
  26  Normalizat    .37220        .18066        .36780E-03   -1.1876    
  27  Prefactor     1.0677        .13745        .18082E-03   -.90505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92595e-09
Minuit parameter uncertainties:
  1  7.39098
  2  31.2
  3  15.4075
  4  3.01626
  5  1.02064
  6  1.29914e-05
  7  7.07868e-07
  8  13.4448
  9  7.33172e-05
  10  27.1187
  11  3.93958e-05
  12  0.544159
  13  3.89381
  14  1.40317e-06
  15  3.12853e-05
  16  148.024
  17  10.9429
  18  3.19184e-05
  19  5.3269e-05
  20  4.44557e-05
  21  4.29988
  22  27.5922
  23  8.35787e-05
  24  14.3767
  25  4.26946
  26  0.180939
  27  0.137497
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  5.626e+00  4.300e+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:  1.068e+00  1.375e-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:  3.722e-01  1.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.18
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 5.62e-08 +/- 4.29e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.26e-05

TS (Fixed Index): 3.18
Ra Dec: 354.509 -2.511
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/53039/likelihoodResults_675561601_675820801_4FGL_J2338.0-0230_daily_bin1683.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) = 7438.83507236
delta logL = 0.244858535321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7438.82506854
delta logL = 0.254862358414

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3572       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0719       1.0000          .0000       10.000    
     3 'Normalizat'    .34010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0861       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=   7438.825     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      251 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3562        35.133        .55217E-02    .54822E-03
   2  Index         3.0721        3.3641        .12555        .16882E-03
   3  Normalizat    .34010        .55425E-01    .86697E-01    .74678E-04
   4  Prefactor     1.0861        .41370E-01    .38142E-01    .62586E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.35618
  Index      = 3.07212
  Normalizat = 0.340103
  Prefactor  = 1.08606
 **********
 **   18 **HESSE 
 **********

 FCN=   7438.825     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3562        8.8066        .89283E-04   -1.5342    
   2  Index         3.0721        1.7918        .61332E-02   -.39583    
   3  Normalizat    .34010        .18217        .38401E-03   -1.2052    
   4  Prefactor     1.0861        .14466        .17947E-03   -.89913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05148e-10
Minuit parameter uncertainties:
  1  8.80998
  2  1.84025
  3  0.182491
  4  0.144715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/53039': 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) = 7438.82506851
delta logL = 0.254862388424

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  3.356e+00  8.810e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  3.072e+00  1.840e+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:  1.086e+00  1.447e-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:  3.401e-01  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.85
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 3.07 +/- 1.84
Photon Flux (Free Index): 7.77e-08 +/- 5.10e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.24e-05

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/53039/cmap_HighResolution_675561601_675820801_4FGL_J2338.0-0230_daily_bin1683.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='5.62e-08', energy_flux2='1.50e-05', photon_flux_error='4.29e-08', dlogl='2.55e-01', energy_flux='1.65e-05', photon_flux2='7.77e-08', job_status='DONE', time_completed='2022-06-02 01:52:15.030433', photon_index_error2='1.84', photon_index2='3.07', ts='3.18', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.24e-05', EG='0.37', time_epoch_completed='1654159935.03', return_code='0', job_id='53039', GAL2='1.09', EG2='0.34', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='5.10e-08', ts2='3.85', photon_index='2.49' WHERE bin_id='1683' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jun  2 01:52:15 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 53039: <4FGL_J2338.0-0230_daily_bin1683> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1683> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun  2 01:35:36 2022
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun  2 01:38:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun  2 01:38:25 2022
Terminated at Thu Jun  2 01:52:15 2022
Results reported at Thu Jun  2 01:52:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1683 354.509 -2.5106 675561601 675820801 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 :                                   803.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            999 sec.

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

