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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1746
RA = 354.509, Dec = -2.5106
tmin = 691891201, tmax = 692150401
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='743849', job_status='RUN', time_executed='2022-12-08 01:55:54.373184', time_epoch_executed='1670493354.37' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743849

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743849/ft1_4FGL_J2338.0-0230_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743849/ft2_4FGL_J2338.0-0230_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743849/ft1_4FGL_J2338.0-0230_daily_bin1746.fits outfile=/scratch/kocevski/743849/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1746.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=691891201.0 tmax=692150401.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.45
sys 0.25

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

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

Number of photons that the gtmktime cut: 450

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/743849/ft1_filtered_4FGL_J2338.0-0230_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/743849/ft2_4FGL_J2338.0-0230_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/743849/ltcube_691891201_692150401_4FGL_J2338.0-0230_daily_bin1746.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/743849/ft2_4FGL_J2338.0-0230_daily_bin1746.fits
.....................!
real 12.12
user 11.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743849/ft1_filtered_4FGL_J2338.0-0230_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/743849/ft2_4FGL_J2338.0-0230_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/743849/ltcube_691891201_692150401_4FGL_J2338.0-0230_daily_bin1746.fits outfile=/scratch/kocevski/743849/expmap_691891201_692150401_4FGL_J2338.0-0230_daily_bin1746.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/743849/ltcube_691891201_692150401_4FGL_J2338.0-0230_daily_bin1746.fits
.....................!
real 192.57
user 186.86
sys 5.38

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/743849/ft1_filtered_4FGL_J2338.0-0230_daily_bin1746.fits scfile=/scratch/kocevski/743849/ft2_4FGL_J2338.0-0230_daily_bin1746.fits outfile=/scratch/kocevski/743849/cmap_691891201_692150401_4FGL_J2338.0-0230_daily_bin1746.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743849/ft1_filtered_4FGL_J2338.0-0230_daily_bin1746.fits scfile=/scratch/kocevski/743849/ft2_4FGL_J2338.0-0230_daily_bin1746.fits outfile=/scratch/kocevski/743849/cmap_HighResolution_691891201_692150401_4FGL_J2338.0-0230_daily_bin1746.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/743849/ft1_filtered_4FGL_J2338.0-0230_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/743849/ft2_4FGL_J2338.0-0230_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/743849/Model_4FGL_J2338.0-0230_daily_bin1746.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/743849/ft1_filtered_4FGL_J2338.0-0230_daily_bin1746.fits.....................!
real 51.81
user 50.50
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/743849/ft1_filtered_4FGL_J2338.0-0230_daily_bin1746.fits', '/scratch/kocevski/743849/ft2_4FGL_J2338.0-0230_daily_bin1746.fits', expMap='/scratch/kocevski/743849/expmap_691891201_692150401_4FGL_J2338.0-0230_daily_bin1746.fits', expCube='/scratch/kocevski/743849/ltcube_691891201_692150401_4FGL_J2338.0-0230_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/743849/Model_4FGL_J2338.0-0230_daily_bin1746.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/743849/ft1_filtered_4FGL_J2338.0-0230_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/743849/ft2_4FGL_J2338.0-0230_daily_bin1746.fits
Exposure map: /scratch/kocevski/743849/expmap_691891201_692150401_4FGL_J2338.0-0230_daily_bin1746.fits
Exposure cube: /scratch/kocevski/743849/ltcube_691891201_692150401_4FGL_J2338.0-0230_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/743849/Model_4FGL_J2338.0-0230_daily_bin1746.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4946.90856439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20235E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    15.044       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.790       1.0000          .0000       .10000E+07
     4 'norm      '    .13522E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    23.468       1.0000          .0000       .10000E+07
     6 'norm      '    16.412       1.0000          .0000       .10000E+07
     7 'norm      '    .10370E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .20340E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    90.101       1.0000          .0000       .10000E+07
    10 'Prefactor '    .92778       1.0000          .0000       .10000E+07
    11 'norm      '    .43559       1.0000          .0000       .10000E+07
    12 'norm      '    .44473E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .84320E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    89.435       1.0000          .0000       .10000E+07
    15 'Prefactor '    15.432       1.0000          .0000       .10000E+07
    16 'norm      '    8.9621       1.0000          .0000       .10000E+07
    17 'Prefactor '    8.6360       1.0000          .0000       .10000E+07
    18 'Prefactor '    .70899       1.0000          .0000       .10000E+07
    19 'Prefactor '    18.970       1.0000          .0000       .10000E+07
    20 'Prefactor '    .85845       1.0000          .0000       .10000E+07
    21 'Normalizat'    .67788       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95145       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=   4946.815     FROM MIGRAD    STATUS=CONVERGED    162 CALLS     1791 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    5.3934        .53967E-06** at limit **
   2  Prefactor     15.362        17.974        .28409E-05    .33645E-01
   3  Prefactor     10.817        10.735       -.27658E-06    .13185E-02
   4  norm          .55511E-10    1.8561       -.36959E-06** at limit **
   5  Prefactor     23.611        1.9718        .22318E-06   -.66388E-02
   6  norm          16.359        6.9367        .68759E-06    .12121E-02
   7  norm          .11102E-09    7.8000       -.90534E-06** at limit **
   8  Prefactor     .94924E-08    17.386        .50537E-06** at limit **
   9  Prefactor     93.710        72.298       -.29073E-05   -.10946    
  10  Prefactor     .57719        31.992        .33824E-05    .13234E-02
  11  norm          .43656        .83430        .19802E-06   -.50699E-05
  12  norm          .11102E-09    3.3250        .91922E-06** at limit **
  13  Prefactor     .94369E-09    8.7592        .77813E-07** at limit **
  14  Prefactor     90.578        22.532       -.16174E-05    .35881    
  15  Prefactor     16.097        16.065       -.10069E-05    .21307E-01
  16  norm          8.7797        3.5097       -.87827E-06    .12472E-02
  17  Prefactor     8.7072        5.2793        .42229E-06    .20263E-02
  18  Prefactor     .91571E-06    141.01        .80471E-05** at limit **
  19  Prefactor     19.873        15.755       -.59608E-06    .18836E-02
  20  Prefactor     .87678        13.501        .63862E-05    .25520E-01
  21  Normalizat    .67455        .24075       -.50307E-04    .62440E-04
  22  Prefactor     .95143        .17397        .47055E-05    .11197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 15.3619
  Prefactor  = 10.8168
  norm       = 5.55112e-11
  Prefactor  = 23.611
  norm       = 16.3586
  norm       = 1.11022e-10
  Prefactor  = 9.49241e-09
  Prefactor  = 93.7097
  Prefactor  = 0.577195
  norm       = 0.436562
  norm       = 1.11022e-10
  Prefactor  = 9.4369e-10
  Prefactor  = 90.5781
  Prefactor  = 16.0969
  norm       = 8.77972
  Prefactor  = 8.70724
  Prefactor  = 9.15712e-07
  Prefactor  = 19.8733
  Prefactor  = 0.876776
  Normalizat = 0.674548
  Prefactor  = 0.951434
 **********
 **   18 **HESSE 
 **********

 FCN=   4946.815     FROM HESSE     STATUS=OK           388 CALLS     2179 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    5.4012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.362        18.337        .25797E-03   -1.5630    
   3  Prefactor     10.817        10.830        .30476E-03   -1.5642    
   4  norm          .55511E-10    1.8524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.611        18.943        .20647E-03   -1.5611    
   6  norm          16.359        7.0914        .24696E-03   -1.5627    
   7  norm          .11102E-09    7.8075        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .94924E-08    17.425        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     93.710        87.230        .10536E-03   -1.5514    
  10  Prefactor     .57719        89.959        .43858E-03   -1.5693    
  11  norm          .43656        .85639        .85473E-03   -1.5695    
  12  norm          .11102E-09    3.3345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .94369E-09    8.7346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     90.578        62.959        .10575E-03   -1.5518    
  15  Prefactor     16.097        24.433        .25469E-03   -1.5628    
  16  norm          8.7797        18.760        .33456E-03   -1.5649    
  17  Prefactor     8.7072        5.5921        .34086E-03   -1.5649    
  18  Prefactor     .91571E-06    139.32        .59982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.873        24.605        .22968E-03   -1.5619    
  20  Prefactor     .87678        13.642        .48676E-03   -1.5689    
  21  Normalizat    .67455        .21107        .68741E-01   -1.0491    
  22  Prefactor     .95143        .14991        .45657E-01   -.94366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76639e-06
Minuit parameter uncertainties:
  1  2.58633e-05
  2  18.3373
  3  10.8302
  4  1.96671e-05
  5  18.9432
  6  7.09138
  7  5.58058e-05
  8  0.000814553
  9  87.2307
  10  14.4119
  11  0.856389
  12  3.70159e-05
  13  0.000178911
  14  62.9591
  15  24.4336
  16  18.7598
  17  5.59207
  18  0.022591
  19  24.6055
  20  6.91701
  21  0.211326
  22  0.14997
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  8.707e+00  5.592e+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.514e-01  1.500e-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:  6.745e-01  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.36
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 8.71e-08 +/- 5.59e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 1.64e-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) = 4946.80906628
delta logL = 0.00593602349727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4946.80581914
delta logL = 0.00918316341631

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2593       1.0000          .0000       .10000E+07
     2 'Index     '    2.5666       1.0000          .0000       10.000    
     3 'Normalizat'    .66845       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95455       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4946.806     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      237 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2598        6.3438        .11410E-04   -.87611E-02
   2  Index         2.5665        .58881        .57667E-02   -.18187E-03
   3  Normalizat    .66844        .23236        .30549E-03    .13438E-03
   4  Prefactor     .95455        .17456        .19802E-03    .25425E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.25975
  Index      = 2.56654
  Normalizat = 0.668444
  Prefactor  = 0.954548
 **********
 **   18 **HESSE 
 **********

 FCN=   4946.806     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2598        6.1183        .45640E-06   -1.5650    
   2  Index         2.5665        .56725        .23067E-03   -.50830    
   3  Normalizat    .66844        .23235        .12219E-04   -1.0515    
   4  Prefactor     .95455        .17456        .39604E-04   -.94260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4002e-10
Minuit parameter uncertainties:
  1  6.1183
  2  0.568857
  3  0.232691
  4  0.174659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743849': 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) = 4946.80581914
delta logL = 0.00918316738262

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  8.260e+00  6.118e+00  0.000e+00  1.000e+06 ( 1.000e-12)
463        Index:  2.567e+00  5.689e-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:  9.545e-01  1.747e-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:  6.684e-01  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.38
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 2.57 +/- 0.57
Photon Flux (Free Index): 9.15e-08 +/- 6.34e-08
Energy Flux (Free Index): 2.48e-05 +/- 1.58e-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/743849/cmap_HighResolution_691891201_692150401_4FGL_J2338.0-0230_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.71e-08', energy_flux2='2.48e-05', photon_flux_error='5.59e-08', dlogl='9.18e-03', energy_flux='2.55e-05', photon_flux2='9.15e-08', job_status='DONE', time_completed='2022-12-08 02:04:05.725281', photon_index_error2='0.57', photon_index2='2.57', ts='4.36', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='0.67', time_epoch_completed='1670493845.73', return_code='0', job_id='743849', GAL2='0.95', EG2='0.67', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='6.34e-08', ts2='4.38', photon_index='2.49' WHERE bin_id='1746' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 02:04:05 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 743849: <4FGL_J2338.0-0230_daily_bin1746> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1746> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Dec  8 01:55:24 2022
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:55:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:55:24 2022
Terminated at Thu Dec  8 02:04:06 2022
Results reported at Thu Dec  8 02:04:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1746 354.509 -2.5106 691891201 692150401 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 :                                   494.04 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             382.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   522 sec.
    Turnaround time :                            522 sec.

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

