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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1752
RA = 354.509, Dec = -2.5106
tmin = 693446401, tmax = 693705601
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='290309', job_status='RUN', time_executed='2022-12-26 02:25:40.540295', time_epoch_executed='1672050340.54' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290309

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290309/ft1_4FGL_J2338.0-0230_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290309/ft2_4FGL_J2338.0-0230_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290309/ft1_4FGL_J2338.0-0230_daily_bin1752.fits outfile=/scratch/kocevski/290309/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1752.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=693446401.0 tmax=693705601.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.48
user 3.25
sys 0.21

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

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

Number of photons that the gtmktime cut: 582

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/290309/ft1_filtered_4FGL_J2338.0-0230_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/290309/ft2_4FGL_J2338.0-0230_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/290309/ltcube_693446401_693705601_4FGL_J2338.0-0230_daily_bin1752.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/290309/ft2_4FGL_J2338.0-0230_daily_bin1752.fits
.....................!
real 13.80
user 13.40
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290309/ft1_filtered_4FGL_J2338.0-0230_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/290309/ft2_4FGL_J2338.0-0230_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/290309/ltcube_693446401_693705601_4FGL_J2338.0-0230_daily_bin1752.fits outfile=/scratch/kocevski/290309/expmap_693446401_693705601_4FGL_J2338.0-0230_daily_bin1752.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/290309/ltcube_693446401_693705601_4FGL_J2338.0-0230_daily_bin1752.fits
.....................!
real 190.51
user 185.42
sys 4.75

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/290309/ft1_filtered_4FGL_J2338.0-0230_daily_bin1752.fits scfile=/scratch/kocevski/290309/ft2_4FGL_J2338.0-0230_daily_bin1752.fits outfile=/scratch/kocevski/290309/cmap_693446401_693705601_4FGL_J2338.0-0230_daily_bin1752.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290309/ft1_filtered_4FGL_J2338.0-0230_daily_bin1752.fits scfile=/scratch/kocevski/290309/ft2_4FGL_J2338.0-0230_daily_bin1752.fits outfile=/scratch/kocevski/290309/cmap_HighResolution_693446401_693705601_4FGL_J2338.0-0230_daily_bin1752.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/290309/ft1_filtered_4FGL_J2338.0-0230_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/290309/ft2_4FGL_J2338.0-0230_daily_bin1752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/290309/Model_4FGL_J2338.0-0230_daily_bin1752.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/290309/ft1_filtered_4FGL_J2338.0-0230_daily_bin1752.fits.....................!
real 61.96
user 60.54
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/290309/ft1_filtered_4FGL_J2338.0-0230_daily_bin1752.fits', '/scratch/kocevski/290309/ft2_4FGL_J2338.0-0230_daily_bin1752.fits', expMap='/scratch/kocevski/290309/expmap_693446401_693705601_4FGL_J2338.0-0230_daily_bin1752.fits', expCube='/scratch/kocevski/290309/ltcube_693446401_693705601_4FGL_J2338.0-0230_daily_bin1752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/290309/Model_4FGL_J2338.0-0230_daily_bin1752.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  0.000e+00  1.000e+06 ( 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/290309/ft1_filtered_4FGL_J2338.0-0230_daily_bin1752.fits
Spacecraft file(s): /scratch/kocevski/290309/ft2_4FGL_J2338.0-0230_daily_bin1752.fits
Exposure map: /scratch/kocevski/290309/expmap_693446401_693705601_4FGL_J2338.0-0230_daily_bin1752.fits
Exposure cube: /scratch/kocevski/290309/ltcube_693446401_693705601_4FGL_J2338.0-0230_daily_bin1752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/290309/Model_4FGL_J2338.0-0230_daily_bin1752.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) = 6410.00794274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15351E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    17.998       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.7612       1.0000          .0000       .10000E+07
     4 'norm      '    2.3417       1.0000          .0000       .10000E+07
     5 'Prefactor '    .13258E-02   1.0000          .0000       .10000E+07
     6 'norm      '    19.322       1.0000          .0000       .10000E+07
     7 'norm      '    .24355E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .21624E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .36964E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .67443E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .33862E-08   1.0000          .0000       .10000E+07
    12 'norm      '    2.4183       1.0000          .0000       .10000E+07
    13 'Prefactor '    15.789       1.0000          .0000       .10000E+07
    14 'Prefactor '    22.829       1.0000          .0000       .10000E+07
    15 'Prefactor '    .28766E-01   1.0000          .0000       .10000E+07
    16 'norm      '    .36382E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    7.0093       1.0000          .0000       .10000E+07
    18 'Prefactor '    20.245       1.0000          .0000       .10000E+07
    19 'Prefactor '    .42130E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .20987E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    .90856       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94095       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6409.998     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1762 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13639E-06    3.9376        .10689E-07** at limit **
   2  Prefactor     17.970        3.1848        .74441E-08    .34577E-01
   3  Prefactor     5.7818        3.4255       -.54914E-08    .10268E-02
   4  norm          2.3426        2.8533       -.10056E-07   -.14770E-02
   5  Prefactor     .38858E-09    6.9829        .38019E-07** at limit **
   6  norm          19.316        4.2262       -.12194E-07   -.18723E-02
   7  norm          .12768E-08    16.684        .78356E-07** at limit **
   8  Prefactor     .41472E-06    86.156        .14799E-06** at limit **
   9  Prefactor     .55511E-10    24.628       -.20463E-06** at limit **
  10  Prefactor     .27756E-09    4.8440        .13223E-06** at limit **
  11  norm           .0000        .39451        .82875E-07** at limit **
  12  norm          2.4185        3.9337        .15932E-07    .43632E-03
  13  Prefactor     15.806        10.684        .14047E-07    .35292E-01
  14  Prefactor     23.136        11.673        .27561E-07   -.65124E-01
  15  Prefactor      .0000        24.214        .10697E-06** at limit **
  16  norm          .22204E-08    12.741       -.85250E-07** at limit **
  17  Prefactor     7.0111        4.7355       -.20861E-07    .15845E-03
  18  Prefactor     19.565        29.349        .97770E-07    .17253E-01
  19  Prefactor     .55789E-07    6.0023        .16798E-07** at limit **
  20  Prefactor     .27756E-09    3.4028       -.12417E-07** at limit **
  21  Normalizat    .90893        .21190       -.83893E-06    .11906E-04
  22  Prefactor     .94097        .15688        .11920E-05    .49131E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.36391e-07
  Prefactor  = 17.9699
  Prefactor  = 5.78176
  norm       = 2.34259
  Prefactor  = 3.88578e-10
  norm       = 19.3164
  norm       = 1.27676e-09
  Prefactor  = 4.14724e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 2.77556e-10
  norm       = 0
  norm       = 2.41853
  Prefactor  = 15.8058
  Prefactor  = 23.1355
  Prefactor  = 0
  norm       = 2.22045e-09
  Prefactor  = 7.01111
  Prefactor  = 19.5649
  Prefactor  = 5.57887e-08
  Prefactor  = 2.77556e-10
  Normalizat = 0.908933
  Prefactor  = 0.940966
 **********
 **   18 **HESSE 
 **********

 FCN=   6409.998     FROM HESSE     STATUS=OK           384 CALLS     2146 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13639E-06    8.8151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.970        19.913        .23581E-03   -1.5623    
   3  Prefactor     5.7818        11.210        .41822E-03   -1.5660    
   4  norm          2.3426        3.3816        .66972E-03   -1.5677    
   5  Prefactor     .38858E-09    7.0442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.316        7.3061        .22757E-03   -1.5620    
   7  norm          .12768E-08    16.764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .41472E-06    86.876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    24.545        .16104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .27756E-09    4.8727        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .39046        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4185        3.9547        .65794E-03   -1.5677    
  13  Prefactor     15.806        12.216        .25179E-03   -1.5628    
  14  Prefactor     23.136        46.525        .20935E-03   -1.5612    
  15  Prefactor      .0000        23.451        .16516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .22204E-08    12.774        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.0111        4.7383        .37869E-03   -1.5655    
  18  Prefactor     19.565        30.747        .22232E-03   -1.5619    
  19  Prefactor     .55789E-07    7.8201        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .27756E-09    3.4167        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .90893        .18462        .45011E-01   -.96147    
  22  Prefactor     .94097        .13619        .45525E-01   -.94724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81382e-07
Minuit parameter uncertainties:
  1  0.00219288
  2  19.9127
  3  11.2101
  4  3.38156
  5  0.000105
  6  7.30607
  7  0.000292689
  8  0.012005
  9  8.11364e-05
  10  7.13311e-05
  11  3.43218e-06
  12  3.9547
  13  12.2164
  14  46.5254
  15  1.59142e-05
  16  0.000335239
  17  4.73826
  18  30.7469
  19  0.00132078
  20  6.23809e-05
  21  0.184752
  22  0.136243
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  7.011e+00  4.738e+00  0.000e+00  1.000e+06 ( 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:  9.410e-01  1.362e-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.089e-01  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.17
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 7.01e-08 +/- 4.73e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.39e-05

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

Saving results to:
/scratch/kocevski/290309/likelihoodResults_693446401_693705601_4FGL_J2338.0-0230_daily_bin1752.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) = 6408.97910374
delta logL = 1.01867276511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6408.91924875
delta logL = 1.07852775807

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90532E-01   1.0000          .0000       .10000E+07
     2 'Index     '    5.4973       1.0000          .0000       10.000    
     3 'Normalizat'    .80985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0074       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=   6408.919     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      279 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90361E-01    .68130        .27319E-03** at limit **
   2  Index         5.4985        2.5886        .99694E-01    .12785E-03
   3  Normalizat    .80986        .57190E-01    .66378E-01    .53688E-05
   4  Prefactor     1.0074        .43968E-01    .43738E-01   -.11724E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0903615
  Index      = 5.49845
  Normalizat = 0.809858
  Prefactor  = 1.00738
 **********
 **   18 **HESSE 
 **********

 FCN=   6408.919     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      312 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90361E-01    1.2353        .12230E-05   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.4985        3.6236        .40526E-02    .99856E-01
   3  Normalizat    .80986        .18858        .29366E-03   -.99704    
   4  Prefactor     1.0074        .14234        .20476E-03   -.92484    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.62933e-07
Minuit parameter uncertainties:
  1  0.668195
  2  4.05925
  3  0.188732
  4  0.142388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290309': 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) = 6408.9192486
delta logL = 1.07852790398

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  9.036e-02  6.682e-01  0.000e+00  1.000e+06 ( 1.000e-12)
463        Index:  5.498e+00  4.059e+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.007e+00  1.424e-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:  8.099e-01  1.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.76
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 5.50 +/- 4.06
Photon Flux (Free Index): 1.27e-07 +/- 6.84e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.06e-05

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/290309/cmap_HighResolution_693446401_693705601_4FGL_J2338.0-0230_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', photon_flux='7.01e-08', energy_flux2='1.63e-05', photon_flux_error='4.73e-08', dlogl='1.08e+00', energy_flux='2.06e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2022-12-26 02:35:28.605857', photon_index_error2='4.06', photon_index2='5.50', ts='3.17', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='1.06e-05', EG='0.91', time_epoch_completed='1672050928.61', return_code='0', job_id='290309', GAL2='1.01', EG2='0.81', return_code2='102', energy_flux_error='1.39e-05', photon_flux_error2='6.84e-08', ts2='5.76', photon_index='2.49' WHERE bin_id='1752' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 02:35:28 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 290309: <4FGL_J2338.0-0230_daily_bin1752> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1752> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Dec 26 02:20:17 2022
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 02:24:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 02:24:56 2022
Terminated at Mon Dec 26 02:35:29 2022
Results reported at Mon Dec 26 02:35:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1752 354.509 -2.5106 693446401 693705601 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 :                                   581.20 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            912 sec.

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

