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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1780
RA = 354.509, Dec = -2.5106
tmin = 700704001, tmax = 700963201
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='81686', job_status='RUN', time_executed='2023-03-20 02:02:36.253335', time_epoch_executed='1679302956.25' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/81686

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/81686/ft1_4FGL_J2338.0-0230_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/81686/ft2_4FGL_J2338.0-0230_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/81686/ft1_4FGL_J2338.0-0230_daily_bin1780.fits outfile=/scratch/kocevski/81686/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1780.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=700704001.0 tmax=700963201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.10
user 3.85
sys 0.22

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

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

Number of photons that the gtmktime cut: 241

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/81686/ft1_filtered_4FGL_J2338.0-0230_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/81686/ft2_4FGL_J2338.0-0230_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/81686/ltcube_700704001_700963201_4FGL_J2338.0-0230_daily_bin1780.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/81686/ft2_4FGL_J2338.0-0230_daily_bin1780.fits
.....................!
real 12.31
user 11.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/81686/ft1_filtered_4FGL_J2338.0-0230_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/81686/ft2_4FGL_J2338.0-0230_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/81686/ltcube_700704001_700963201_4FGL_J2338.0-0230_daily_bin1780.fits outfile=/scratch/kocevski/81686/expmap_700704001_700963201_4FGL_J2338.0-0230_daily_bin1780.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/81686/ltcube_700704001_700963201_4FGL_J2338.0-0230_daily_bin1780.fits
.....................!
real 190.44
user 185.30
sys 4.72

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/81686/ft1_filtered_4FGL_J2338.0-0230_daily_bin1780.fits scfile=/scratch/kocevski/81686/ft2_4FGL_J2338.0-0230_daily_bin1780.fits outfile=/scratch/kocevski/81686/cmap_700704001_700963201_4FGL_J2338.0-0230_daily_bin1780.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/81686/ft1_filtered_4FGL_J2338.0-0230_daily_bin1780.fits scfile=/scratch/kocevski/81686/ft2_4FGL_J2338.0-0230_daily_bin1780.fits outfile=/scratch/kocevski/81686/cmap_HighResolution_700704001_700963201_4FGL_J2338.0-0230_daily_bin1780.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/81686/ft1_filtered_4FGL_J2338.0-0230_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/81686/ft2_4FGL_J2338.0-0230_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/81686/Model_4FGL_J2338.0-0230_daily_bin1780.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/81686/ft1_filtered_4FGL_J2338.0-0230_daily_bin1780.fits.....................!
real 34.37
user 32.95
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.541       1.0000          .0000       .10000E+07
     2 'Prefactor '    .63097E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .26262       1.0000          .0000       .10000E+07
     4 'norm      '    .76535E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .15057E-02   1.0000          .0000       .10000E+07
     6 'norm      '    1.0642       1.0000          .0000       .10000E+07
     7 'norm      '    .30840E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .57670E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .30781E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .25325E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .67136E-01   1.0000          .0000       .10000E+07
    12 'norm      '    3.6635       1.0000          .0000       .10000E+07
    13 'Prefactor '    .26751E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    83.169       1.0000          .0000       .10000E+07
    15 'Prefactor '    103.57       1.0000          .0000       .10000E+07
    16 'norm      '    .97652E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    19.947       1.0000          .0000       .10000E+07
    18 'Prefactor '    83.992       1.0000          .0000       .10000E+07
    19 'Prefactor '    .23010E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    6.0705       1.0000          .0000       .10000E+07
    21 'Normalizat'    .44109       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2195       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=   2798.675     FROM MIGRAD    STATUS=CONVERGED    206 CALLS     1876 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.546        12.021       -.11425E-05   -.10197    
   2  Prefactor     .18541E-07    8.7381       -.48974E-06** at limit **
   3  Prefactor     .86300E-01    129.23        .93922E-05** at limit **
   4  norm           .0000        1.2038        .94568E-07** at limit **
   5  Prefactor     .14821E-07    10.313       -.43053E-06** at limit **
   6  norm          1.1898        4.5683       -.95099E-06    .16530E-02
   7  norm          .57288E-07    9.4159        .49048E-06** at limit **
   8  Prefactor     .55511E-09    13.925       -.13168E-06** at limit **
   9  Prefactor     .38858E-09    48.410       -.60920E-06** at limit **
  10  Prefactor     .16653E-09    6.9818       -.11196E-06** at limit **
  11  norm          .70700E-01    2.8313        .24022E-06** at limit **
  12  norm          3.6416        6.0967       -.10947E-06   -.13108E-02
  13  Prefactor     .33307E-09    49.075       -.16581E-05** at limit **
  14  Prefactor     82.541        42.030        .94604E-06    .17990    
  15  Prefactor     102.07        50.496       -.11416E-05   -.11126E-01
  16  norm          .31086E-06    53.356        .22227E-06** at limit **
  17  Prefactor     19.974        10.436       -.26234E-07   -.28226E-01
  18  Prefactor     82.100        56.668        .85800E-06   -.50363E-01
  19  Prefactor     .55511E-10    31.244        .10609E-06** at limit **
  20  Prefactor     6.0088        10.611        .57757E-06    .68903E-02
  21  Normalizat    .44322        .31954       -.19823E-04   -.96807E-04
  22  Prefactor     1.2192        .24673        .75846E-05   -.15311E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.546
  Prefactor  = 1.85407e-08
  Prefactor  = 0.0862998
  norm       = 0
  Prefactor  = 1.48215e-08
  norm       = 1.18984
  norm       = 5.72875e-08
  Prefactor  = 5.55112e-10
  Prefactor  = 3.88578e-10
  Prefactor  = 1.66533e-10
  norm       = 0.0706996
  norm       = 3.64159
  Prefactor  = 3.33067e-10
  Prefactor  = 82.5406
  Prefactor  = 102.07
  norm       = 3.10862e-07
  Prefactor  = 19.9736
  Prefactor  = 82.1003
  Prefactor  = 5.55112e-11
  Prefactor  = 6.0088
  Normalizat = 0.443217
  Prefactor  = 1.21916
 **********
 **   18 **HESSE 
 **********

 FCN=   2798.675     FROM HESSE     STATUS=OK           398 CALLS     2274 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.546        12.126        .27194E-03   -1.5634    
   2  Prefactor     .18541E-07    8.7716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .86300E-01    9.7888        .80910E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        1.2120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .14821E-07    10.347        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.1898        4.9352        .11833E-02   -1.5686    
   7  norm          .57288E-07    9.4669        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-09    13.940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .38858E-09    48.373        .16409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .16653E-09    7.0026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .70700E-01    1.0545        .20723E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6416        6.1223        .52749E-03   -1.5670    
  13  Prefactor     .33307E-09    24.225        .78957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     82.541        107.58        .10966E-03   -1.5526    
  15  Prefactor     102.07        57.037        .98267E-04   -1.5506    
  16  norm          .31086E-06    53.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.974        10.497        .22397E-03   -1.5619    
  18  Prefactor     82.100        66.032        .10912E-03   -1.5527    
  19  Prefactor     .55511E-10    31.259        .16846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.0088        10.660        .40726E-03   -1.5659    
  21  Normalizat    .44322        .30511        .88366E-01   -1.1512    
  22  Prefactor     1.2192        .23106        .34185E-01   -.85744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97769e-06
Minuit parameter uncertainties:
  1  12.1257
  2  0.000806193
  3  1.83823
  4  5.74655e-06
  5  0.000782832
  6  4.8465
  7  0.00147292
  8  0.000173702
  9  0.000267628
  10  6.64563e-05
  11  0.546074
  12  6.12233
  13  0.000186047
  14  107.578
  15  57.037
  16  0.00816215
  17  10.4968
  18  66.033
  19  6.49804e-05
  20  10.6601
  21  0.306261
  22  0.231251
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.997e+01  1.050e+01  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:  1.219e+00  2.313e-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:  4.432e-01  3.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.53
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 2.00e-07 +/- 1.05e-07
Energy Flux (Fixed Index): 5.86e-05 +/- 3.08e-05

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) = 2798.63283261
delta logL = 0.0418126585787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2798.63047936
delta logL = 0.0441659076623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.441       1.0000          .0000       .10000E+07
     2 'Index     '    2.6862       1.0000          .0000       10.000    
     3 'Normalizat'    .41810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2373       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=   2798.630     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      259 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.452        173.57        .24674E-03    .52106E-03
   2  Index         2.6864        6.3388        .97284E-01    .56580E-04
   3  Normalizat    .41841        .17623        .90810E-01    .20121E-04
   4  Prefactor     1.2369        .13765        .33802E-01   -.91710E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.4523
  Index      = 2.68644
  Normalizat = 0.41841
  Prefactor  = 1.23688
 **********
 **   18 **HESSE 
 **********

 FCN=   2798.630     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.452        16.560        .98697E-05   -1.5627    
   2  Index         2.6864        .75941        .40375E-02   -.48105    
   3  Normalizat    .41841        .32664        .40239E-03   -1.1636    
   4  Prefactor     1.2369        .25601        .19115E-03   -.85204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17639e-12
Minuit parameter uncertainties:
  1  16.5604
  2  0.763172
  3  0.328138
  4  0.256268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/81686': 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) = 2798.63047513
delta logL = 0.0441701344662

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.645e+01  1.656e+01  0.000e+00  1.000e+06 ( 1.000e-12)
463        Index:  2.686e+00  7.632e-01  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.237e+00  2.563e-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:  4.184e-01  3.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.65
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 2.69 +/- 0.76
Photon Flux (Free Index): 2.16e-07 +/- 1.21e-07
Energy Flux (Free Index): 5.24e-05 +/- 3.41e-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/81686/cmap_HighResolution_700704001_700963201_4FGL_J2338.0-0230_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.00e-07', energy_flux2='5.24e-05', photon_flux_error='1.05e-07', dlogl='4.42e-02', energy_flux='5.86e-05', photon_flux2='2.16e-07', job_status='DONE', time_completed='2023-03-20 02:09:27.541015', photon_index_error2='0.76', photon_index2='2.69', ts='6.53', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='3.41e-05', EG='0.44', time_epoch_completed='1679303367.54', return_code='0', job_id='81686', GAL2='1.24', EG2='0.42', return_code2='0', energy_flux_error='3.08e-05', photon_flux_error2='1.21e-07', ts2='6.65', photon_index='2.49' WHERE bin_id='1780' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 02:09:27 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 81686: <4FGL_J2338.0-0230_daily_bin1780> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1780> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Mar 20 02:00:15 2023
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 02:00:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 02:00:16 2023
Terminated at Mon Mar 20 02:09:37 2023
Results reported at Mon Mar 20 02:09:37 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1780 354.509 -2.5106 700704001 700963201 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 :                                   412.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             301.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   551 sec.
    Turnaround time :                            562 sec.

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

