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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1758
RA = 354.509, Dec = -2.5106
tmin = 695001601, tmax = 695260801
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='386332', job_status='RUN', time_executed='2023-01-13 01:59:14.879488', time_epoch_executed='1673603954.88' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386332

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386332/ft1_4FGL_J2338.0-0230_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386332/ft2_4FGL_J2338.0-0230_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386332/ft1_4FGL_J2338.0-0230_daily_bin1758.fits outfile=/scratch/kocevski/386332/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1758.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=695001601.0 tmax=695260801.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 2.79
user 2.57
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386332/ft2_4FGL_J2338.0-0230_daily_bin1758.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/386332/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1758.fits evtable="EVENTS" outfile="/scratch/kocevski/386332/ft1_filtered_4FGL_J2338.0-0230_daily_bin1758.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.16

Number of photons that the gtmktime cut: 678

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386332/ft1_filtered_4FGL_J2338.0-0230_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/386332/ft2_4FGL_J2338.0-0230_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/386332/ltcube_695001601_695260801_4FGL_J2338.0-0230_daily_bin1758.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/386332/ft2_4FGL_J2338.0-0230_daily_bin1758.fits
.....................!
real 16.50
user 16.03
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386332/ft1_filtered_4FGL_J2338.0-0230_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/386332/ft2_4FGL_J2338.0-0230_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/386332/ltcube_695001601_695260801_4FGL_J2338.0-0230_daily_bin1758.fits outfile=/scratch/kocevski/386332/expmap_695001601_695260801_4FGL_J2338.0-0230_daily_bin1758.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/386332/ltcube_695001601_695260801_4FGL_J2338.0-0230_daily_bin1758.fits
.....................!
real 191.92
user 185.94
sys 5.56

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/386332/ft1_filtered_4FGL_J2338.0-0230_daily_bin1758.fits scfile=/scratch/kocevski/386332/ft2_4FGL_J2338.0-0230_daily_bin1758.fits outfile=/scratch/kocevski/386332/cmap_695001601_695260801_4FGL_J2338.0-0230_daily_bin1758.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386332/ft1_filtered_4FGL_J2338.0-0230_daily_bin1758.fits scfile=/scratch/kocevski/386332/ft2_4FGL_J2338.0-0230_daily_bin1758.fits outfile=/scratch/kocevski/386332/cmap_HighResolution_695001601_695260801_4FGL_J2338.0-0230_daily_bin1758.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90011E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    10.858       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.6911       1.0000          .0000       .10000E+07
     4 'norm      '    1.7694       1.0000          .0000       .10000E+07
     5 'Prefactor '    .19641E-02   1.0000          .0000       .10000E+07
     6 'norm      '    4.4431       1.0000          .0000       .10000E+07
     7 'norm      '    6.5403       1.0000          .0000       .10000E+07
     8 'Prefactor '    .41647E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .33694       1.0000          .0000       .10000E+07
    10 'Prefactor '    .88818E-08   1.0000          .0000       .10000E+07
    11 'norm      '    .47515       1.0000          .0000       .10000E+07
    12 'norm      '    .34891E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    17.911       1.0000          .0000       .10000E+07
    14 'Prefactor '    52.576       1.0000          .0000       .10000E+07
    15 'Prefactor '    12.596       1.0000          .0000       .10000E+07
    16 'norm      '    17.174       1.0000          .0000       .10000E+07
    17 'Prefactor '    .34944E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    7.6340       1.0000          .0000       .10000E+07
    19 'Prefactor '    .25111E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    3.1091       1.0000          .0000       .10000E+07
    21 'Normalizat'    .63982       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1492       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=   7470.075     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1725 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6503        .15554E-06** at limit **
   2  Prefactor     10.860        1.1027        .71569E-07   -.31799E-03
   3  Prefactor     2.6746        5.9274        .11008E-05    .38620E-02
   4  norm          1.7674        2.1878       -.77383E-07    .93800E-02
   5  Prefactor      .0000        8.9801        .52768E-07** at limit **
   6  norm          4.4499        3.8114       -.48692E-06    .23674E-02
   7  norm          6.5539        1.9868       -.41227E-06    .29879E-01
   8  Prefactor     .61062E-09    27.097        .37091E-06** at limit **
   9  Prefactor     .12046E-06    208.47       -.56451E-05** at limit **
  10  Prefactor     .83267E-09    3.1178        .11595E-05** at limit **
  11  norm          .47518        .45638        .19591E-07    .15915E-01
  12  norm          .94369E-09    3.2114       -.11465E-05** at limit **
  13  Prefactor     17.871        8.9792       -.11511E-05   -.15374E-01
  14  Prefactor     52.588        1.4696       -.93643E-07    .52110E-01
  15  Prefactor     12.589        1.3697       -.25763E-07   -.19202E-01
  16  norm          17.141        2.4112       -.22150E-06    .47132E-01
  17  Prefactor     .61062E-09    6.1890        .32496E-07** at limit **
  18  Prefactor     7.7030        1.8223       -.97055E-07    .18123E-01
  19  Prefactor     .77716E-08    12.697        .10351E-06** at limit **
  20  Prefactor     3.1072        4.7807       -.50166E-07    .84405E-02
  21  Normalizat    .64025        .18805        .10430E-05    .64307E-03
  22  Prefactor     1.1490        .14686        .23799E-05    .87210E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 10.8603
  Prefactor  = 2.67463
  norm       = 1.76737
  Prefactor  = 0
  norm       = 4.44991
  norm       = 6.55392
  Prefactor  = 6.10623e-10
  Prefactor  = 1.20459e-07
  Prefactor  = 8.32667e-10
  norm       = 0.475177
  norm       = 9.4369e-10
  Prefactor  = 17.8709
  Prefactor  = 52.5877
  Prefactor  = 12.5888
  norm       = 17.141
  Prefactor  = 6.10623e-10
  Prefactor  = 7.70295
  Prefactor  = 7.77156e-09
  Prefactor  = 3.10717
  Normalizat = 0.640249
  Prefactor  = 1.14904
 **********
 **   18 **HESSE 
 **********

 FCN=   7470.075     FROM HESSE     STATUS=OK           408 CALLS     2133 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.860        12.661        .30380E-03   -1.5642    
   3  Prefactor     2.6746        6.0575        .62080E-03   -1.5675    
   4  norm          1.7674        2.4520        .78701E-03   -1.5681    
   5  Prefactor      .0000        8.9896        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.4499        3.8815        .47749E-03   -1.5666    
   7  norm          6.5539        14.244        .39218E-03   -1.5657    
   8  Prefactor     .61062E-09    11.009        .95486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12046E-06    25.080        .14133E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83267E-09    3.1306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .47518        .43171        .12197E-02   -1.5694    
  12  norm          .94369E-09    3.2227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.871        9.1216        .23638E-03   -1.5623    
  14  Prefactor     52.588        47.265        .13792E-03   -1.5563    
  15  Prefactor     12.589        12.456        .28199E-03   -1.5637    
  16  norm          17.141        17.524        .24141E-03   -1.5625    
  17  Prefactor     .61062E-09    6.0236        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.7030        25.211        .36271E-03   -1.5652    
  19  Prefactor     .77716E-08    12.833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.1072        4.8130        .57482E-03   -1.5673    
  21  Normalizat    .64025        .17024        .70107E-01   -1.0630    
  22  Prefactor     1.1490        .12942        .35960E-01   -.87914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11287e-07
Minuit parameter uncertainties:
  1  3.01238e-06
  2  12.6607
  3  6.05747
  4  2.45204
  5  2.18351e-05
  6  3.88146
  7  14.2438
  8  0.000166793
  9  0.00347632
  10  0.000101338
  11  0.431708
  12  0.000109142
  13  9.12163
  14  47.2653
  15  12.456
  16  17.5237
  17  0.000120595
  18  25.2109
  19  0.000630888
  20  4.81296
  21  0.170378
  22  0.129457
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  6.106e-10  1.206e-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.149e+00  1.295e-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.402e-01  1.704e-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: 6.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386332/likelihoodResults_695001601_695260801_4FGL_J2338.0-0230_daily_bin1758.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) = 7470.08159587
delta logL = -0.00644054926124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7470.07515534
delta logL = -1.39707481139e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49183E-07   1.0000          .0000       .10000E+07
     2 'Index     '    2.7658       1.0000          .0000       10.000    
     3 'Normalizat'    .64027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1490       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=   7470.075     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      271 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36637E-08    .15762        .42118E-03** at limit **
   2  Index         2.3672        5.9831        .50000       -.18417E-08
   3  Normalizat    .64025        .69030E-03    .70107E-01    .59743E-03
   4  Prefactor     1.1490        .55056E-03    .35965E-01    .80940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.66374e-09
  Index      = 2.36717
  Normalizat = 0.640249
  Prefactor  = 1.14905
 **********
 **   18 **HESSE 
 **********

 FCN=   7470.075     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      302 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36637E-08    .92433        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3672        7.0316        .50000       -.55456    
   3  Normalizat    .64025        .16489E-02    .31029E-03   -1.0630    
   4  Prefactor     1.1490        .13178E-02    .18848E-03   -.87914    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.67474e-10
Minuit parameter uncertainties:
  1  0.000116696
  2  4883.93
  3  0.00164894
  4  0.00131778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386332': 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) = 7470.07515532
delta logL = -2.22826201934e-10

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  3.664e-09  1.167e-04  0.000e+00  1.000e+06 ( 1.000e-12)
463        Index:  2.367e+00  4.884e+03  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.149e+00  1.318e-03  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.402e-01  1.649e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/386332/cmap_HighResolution_695001601_695260801_4FGL_J2338.0-0230_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='6.83e-08', time_completed='2023-01-13 02:09:32.931791', job_id='386332', GAL2='1.15', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1673604572.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='-2.23e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1758' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 02:09:32 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 386332: <4FGL_J2338.0-0230_daily_bin1758> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1758> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Jan 13 01:55:20 2023
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 01:56:46 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 01:56:46 2023
Terminated at Fri Jan 13 02:09:33 2023
Results reported at Fri Jan 13 02:09:33 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1758 354.509 -2.5106 695001601 695260801 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 :                                   620.36 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            853 sec.

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

