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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1753
RA = 354.509, Dec = -2.5106
tmin = 693705601, tmax = 693964801
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='469132', job_status='RUN', time_executed='2022-12-29 01:49:37.100870', time_epoch_executed='1672307377.1' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469132

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469132/ft1_4FGL_J2338.0-0230_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469132/ft2_4FGL_J2338.0-0230_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469132/ft1_4FGL_J2338.0-0230_daily_bin1753.fits outfile=/scratch/kocevski/469132/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1753.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=693705601.0 tmax=693964801.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.72
user 4.44
sys 0.22

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

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

Number of photons that the gtmktime cut: 631

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469132/ft1_filtered_4FGL_J2338.0-0230_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/469132/ft2_4FGL_J2338.0-0230_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/469132/ltcube_693705601_693964801_4FGL_J2338.0-0230_daily_bin1753.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/469132/ft2_4FGL_J2338.0-0230_daily_bin1753.fits
.....................!
real 15.12
user 14.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469132/ft1_filtered_4FGL_J2338.0-0230_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/469132/ft2_4FGL_J2338.0-0230_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/469132/ltcube_693705601_693964801_4FGL_J2338.0-0230_daily_bin1753.fits outfile=/scratch/kocevski/469132/expmap_693705601_693964801_4FGL_J2338.0-0230_daily_bin1753.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/469132/ltcube_693705601_693964801_4FGL_J2338.0-0230_daily_bin1753.fits
.....................!
real 192.88
user 186.59
sys 5.18

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/469132/ft1_filtered_4FGL_J2338.0-0230_daily_bin1753.fits scfile=/scratch/kocevski/469132/ft2_4FGL_J2338.0-0230_daily_bin1753.fits outfile=/scratch/kocevski/469132/cmap_693705601_693964801_4FGL_J2338.0-0230_daily_bin1753.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469132/ft1_filtered_4FGL_J2338.0-0230_daily_bin1753.fits scfile=/scratch/kocevski/469132/ft2_4FGL_J2338.0-0230_daily_bin1753.fits outfile=/scratch/kocevski/469132/cmap_HighResolution_693705601_693964801_4FGL_J2338.0-0230_daily_bin1753.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.58
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/469132/ft1_filtered_4FGL_J2338.0-0230_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/469132/ft2_4FGL_J2338.0-0230_daily_bin1753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/469132/Model_4FGL_J2338.0-0230_daily_bin1753.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/469132/ft1_filtered_4FGL_J2338.0-0230_daily_bin1753.fits.....................!
real 64.28
user 62.67
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25046       1.0000          .0000       .10000E+07
     2 'Prefactor '    32.461       1.0000          .0000       .10000E+07
     3 'Prefactor '    8.3376       1.0000          .0000       .10000E+07
     4 'norm      '    .42188E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.6576       1.0000          .0000       .10000E+07
     6 'norm      '    7.6291       1.0000          .0000       .10000E+07
     7 'norm      '    1.0449       1.0000          .0000       .10000E+07
     8 'Prefactor '    .67504E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    83.267       1.0000          .0000       .10000E+07
    10 'Prefactor '    .16869E-04   1.0000          .0000       .10000E+07
    11 'norm      '    1.3217       1.0000          .0000       .10000E+07
    12 'norm      '    .11586E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    9.6158       1.0000          .0000       .10000E+07
    14 'Prefactor '    .88897E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    9.0531       1.0000          .0000       .10000E+07
    16 'norm      '    6.9011       1.0000          .0000       .10000E+07
    17 'Prefactor '    .10617E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .50951E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    11.956       1.0000          .0000       .10000E+07
    20 'Prefactor '    .32140E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    .78334       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0844       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=   6968.956     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1749 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26875        4.0040        .94130E-06   -.50191E-03
   2  Prefactor     32.560        1.6487       -.14683E-08   -.17334E-01
   3  Prefactor     8.3031        7.8998       -.75692E-07    .59801E-02
   4  norm           .0000        1.1894       -.62263E-07** at limit **
   5  Prefactor     3.6932        2.1385       -.29770E-08   -.28745E-01
   6  norm          7.6707        4.5843       -.15425E-07    .47566E-02
   7  norm          1.1028        27.274       -.27753E-05    .27154E-02
   8  Prefactor     .42244E-07    9.8626       -.21241E-06** at limit **
   9  Prefactor     88.974        50.956       -.39086E-06   -.34548E-02
  10  Prefactor     .55511E-10    5.2380       -.84462E-06** at limit **
  11  norm          1.3216        .80623        .16418E-07    .82200E-03
  12  norm          .78382E-07    13.226        .25277E-06** at limit **
  13  Prefactor     9.6009        8.7866       -.68761E-06   -.15706E-01
  14  Prefactor     .36637E-08    15.862        .10837E-06** at limit **
  15  Prefactor     9.1027        1.7758       -.15674E-07    .10450E-01
  16  norm          6.8827        3.3682        .73207E-08    .70165E-01
  17  Prefactor     .55511E-09    5.1409       -.46341E-06** at limit **
  18  Prefactor     .16098E-08    35.132        .11572E-05** at limit **
  19  Prefactor     12.127        2.3939       -.28159E-07    .23136E-01
  20  Prefactor      .0000        4.0097        .61221E-06** at limit **
  21  Normalizat    .77777        .20505       -.33204E-05    .57204E-04
  22  Prefactor     1.0858        .15805        .36463E-05    .76482E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.268755
  Prefactor  = 32.5604
  Prefactor  = 8.30309
  norm       = 0
  Prefactor  = 3.69318
  norm       = 7.6707
  norm       = 1.10275
  Prefactor  = 4.2244e-08
  Prefactor  = 88.9743
  Prefactor  = 5.55112e-11
  norm       = 1.32156
  norm       = 7.83817e-08
  Prefactor  = 9.60093
  Prefactor  = 3.66374e-09
  Prefactor  = 9.10274
  norm       = 6.88272
  Prefactor  = 5.55112e-10
  Prefactor  = 1.60982e-09
  Prefactor  = 12.1265
  Prefactor  = 0
  Normalizat = 0.777768
  Prefactor  = 1.08581
 **********
 **   18 **HESSE 
 **********

 FCN=   6968.956     FROM HESSE     STATUS=OK           404 CALLS     2153 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26875        5.1656        .61785E-02   -1.5698    
   2  Prefactor     32.560        15.432        .17554E-03   -1.5594    
   3  Prefactor     8.3031        8.0066        .34695E-03   -1.5650    
   4  norm           .0000        1.1828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6932        14.072        .52793E-03   -1.5670    
   6  norm          7.6707        4.9105        .36283E-03   -1.5653    
   7  norm          1.1028        8.8411        .84047E-02   -1.5687    
   8  Prefactor     .42244E-07    10.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     88.974        51.343        .10959E-03   -1.5519    
  10  Prefactor     .55511E-10    5.2285        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3216        .81948        .95653E-03   -1.5685    
  12  norm          .78382E-07    2.2691        .66422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.6009        9.0845        .32292E-03   -1.5646    
  14  Prefactor     .36637E-08    15.937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.1027        15.355        .33286E-03   -1.5648    
  16  norm          6.8827        13.746        .38167E-03   -1.5655    
  17  Prefactor     .55511E-09    5.1644        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16098E-08    35.107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.127        20.873        .28946E-03   -1.5638    
  20  Prefactor      .0000        4.0362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .77777        .18041        .67645E-01   -1.0090    
  22  Prefactor     1.0858        .13875        .38213E-01   -.89921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15642e-07
Minuit parameter uncertainties:
  1  2.3565
  2  15.4321
  3  8.00658
  4  1.64061e-06
  5  14.0722
  6  4.91053
  7  6.24485
  8  0.00130331
  9  51.343
  10  2.64402e-05
  11  0.819483
  12  0.00084356
  13  9.08455
  14  0.00048415
  15  15.3552
  16  13.7456
  17  0.000104789
  18  0.000473592
  19  20.8735
  20  6.98072e-06
  21  0.180549
  22  0.138797
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  5.551e-10  1.048e-04  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.086e+00  1.388e-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:  7.778e-01  1.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 354.509 -2.511
Photon Flux Upper Limit: 8.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/469132/likelihoodResults_693705601_693964801_4FGL_J2338.0-0230_daily_bin1753.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): 102
logL (Free Index) = 6968.95864147
delta logL = -0.00244718987415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6968.95617258
delta logL = 2.17059687202e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33139E-02   1.0000          .0000       .10000E+07
     2 'Index     '    2.8837       1.0000          .0000       10.000    
     3 'Normalizat'    .77773       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0858       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6968.945     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      334 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18789        4.6944        .84235E-04** at limit **
   2  Index         3.3774        3.1673        .85111E-02   -.38688E-04
   3  Normalizat    .76990        .20260        .30072E-03   -.20448E-03
   4  Prefactor     1.0887        .15664        .20354E-03   -.51531E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.187892
  Index      = 3.37736
  Normalizat = 0.769896
  Prefactor  = 1.08867
 **********
 **   18 **HESSE 
 **********

 FCN=   6968.945     FROM HESSE     STATUS=OK            25 CALLS      359 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18789        2.8245        .33694E-05   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3774        2.5577        .34045E-03   -.33051    
   3  Normalizat    .76990        .20169        .12029E-04   -1.0120    
   4  Prefactor     1.0887        .15665        .40708E-04   -.89830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11499e-10
Minuit parameter uncertainties:
  1  1.45699
  2  2.70237
  3  0.20189
  4  0.156718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469132': 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) = 6968.94471664
delta logL = 0.0114776375176

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.879e-01  1.457e+00  0.000e+00  1.000e+06 ( 1.000e-12)
463        Index:  3.377e+00  2.702e+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.089e+00  1.567e-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:  7.699e-01  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/469132/cmap_HighResolution_693705601_693964801_4FGL_J2338.0-0230_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-03', job_status='DONE', photon_flux_upper_limit='8.06e-08', time_completed='2022-12-29 02:00:13.060695', job_id='469132', GAL2='1.09', fit_tolerance='1e-08', EG2='0.77', EG='0.78', time_epoch_completed='1672308013.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.15e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1753' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 02:00:13 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 469132: <4FGL_J2338.0-0230_daily_bin1753> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1753> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec 29 01:45:23 2022
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 01:46:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 01:46:43 2022
Terminated at Thu Dec 29 02:00:13 2022
Results reported at Thu Dec 29 02:00:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1753 354.509 -2.5106 693705601 693964801 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 :                                   636.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            890 sec.

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

