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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1765
RA = 354.509, Dec = -2.5106
tmin = 696816001, tmax = 697075201
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='651253', job_status='RUN', time_executed='2023-02-03 01:59:02.640016', time_epoch_executed='1675418342.64' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/651253

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/651253/ft1_4FGL_J2338.0-0230_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/651253/ft2_4FGL_J2338.0-0230_daily_bin1765.fits


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

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

Done.
real 3.80
user 3.56
sys 0.19

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

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

Number of photons that the gtmktime cut: 426

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/651253/ft1_filtered_4FGL_J2338.0-0230_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/651253/ft2_4FGL_J2338.0-0230_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/651253/ltcube_696816001_697075201_4FGL_J2338.0-0230_daily_bin1765.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/651253/ft2_4FGL_J2338.0-0230_daily_bin1765.fits
.....................!
real 16.93
user 16.38
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/651253/ft1_filtered_4FGL_J2338.0-0230_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/651253/ft2_4FGL_J2338.0-0230_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/651253/ltcube_696816001_697075201_4FGL_J2338.0-0230_daily_bin1765.fits outfile=/scratch/kocevski/651253/expmap_696816001_697075201_4FGL_J2338.0-0230_daily_bin1765.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/651253/ltcube_696816001_697075201_4FGL_J2338.0-0230_daily_bin1765.fits
.....................!
real 198.43
user 190.67
sys 5.33

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/651253/ft1_filtered_4FGL_J2338.0-0230_daily_bin1765.fits scfile=/scratch/kocevski/651253/ft2_4FGL_J2338.0-0230_daily_bin1765.fits outfile=/scratch/kocevski/651253/cmap_696816001_697075201_4FGL_J2338.0-0230_daily_bin1765.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/651253/ft1_filtered_4FGL_J2338.0-0230_daily_bin1765.fits scfile=/scratch/kocevski/651253/ft2_4FGL_J2338.0-0230_daily_bin1765.fits outfile=/scratch/kocevski/651253/cmap_HighResolution_696816001_697075201_4FGL_J2338.0-0230_daily_bin1765.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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/651253/ft1_filtered_4FGL_J2338.0-0230_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/651253/ft2_4FGL_J2338.0-0230_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/651253/Model_4FGL_J2338.0-0230_daily_bin1765.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/651253/ft1_filtered_4FGL_J2338.0-0230_daily_bin1765.fits.....................!
real 49.33
user 47.45
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.461       1.0000          .0000       .10000E+07
     2 'Prefactor '    .68864E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .32447E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .23351E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    16.760       1.0000          .0000       .10000E+07
     6 'norm      '    10.051       1.0000          .0000       .10000E+07
     7 'norm      '    .16879E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    4.0686       1.0000          .0000       .10000E+07
     9 'Prefactor '    .30898E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .11367E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .27454       1.0000          .0000       .10000E+07
    12 'norm      '    .33192E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.3320       1.0000          .0000       .10000E+07
    14 'Prefactor '    42.937       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.3582       1.0000          .0000       .10000E+07
    16 'norm      '    11.339       1.0000          .0000       .10000E+07
    17 'Prefactor '    .11452E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .33844E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    17.861       1.0000          .0000       .10000E+07
    20 'Prefactor '    .60345       1.0000          .0000       .10000E+07
    21 'Normalizat'    .76509       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96815       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=   4903.332     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1778 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.545        10.360        .14709E-07   -.17334E-02
   2  Prefactor      .0000        6.0099       -.67815E-08** at limit **
   3  Prefactor      .0000        4.8079        .60890E-07** at limit **
   4  norm           .0000        2.4892       -.28551E-07** at limit **
   5  Prefactor     16.769        1.6085        .80358E-08   -.11133E-01
   6  norm          10.039        4.9038        .34907E-07    .78741E-03
   7  norm          .27756E-09    6.0678       -.17110E-07** at limit **
   8  Prefactor     3.8132        6.9592        .10802E-06   -.14566E-01
   9  Prefactor     .77716E-09    51.174        .17489E-06** at limit **
  10  Prefactor      .0000        3.8816        .41874E-07** at limit **
  11  norm          .27414        .44482       -.94969E-08    .85114E-05
  12  norm           .0000        1.9895       -.14058E-07** at limit **
  13  Prefactor     4.3238        9.2793       -.10738E-06   -.57572E-03
  14  Prefactor     42.230        9.1237       -.24170E-07    .93632E-02
  15  Prefactor     1.3283        43.135        .12566E-06    .14077E-02
  16  norm          11.324        16.212        .34808E-07    .13251E-02
  17  Prefactor     .98810E-08    17.988        .10819E-06** at limit **
  18  Prefactor     .31086E-08    88.083       -.28672E-06** at limit **
  19  Prefactor     17.783        4.7753        .12538E-07   -.14484E-01
  20  Prefactor     .29712        78.660        .50458E-06    .25560E-02
  21  Normalizat    .76672        .21788        .40066E-06   -.52361E-05
  22  Prefactor     .96821        .16438       -.48724E-06   -.45081E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5446
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 16.7689
  norm       = 10.0387
  norm       = 2.77556e-10
  Prefactor  = 3.81324
  Prefactor  = 7.77156e-10
  Prefactor  = 0
  norm       = 0.27414
  norm       = 0
  Prefactor  = 4.32378
  Prefactor  = 42.2303
  Prefactor  = 1.32833
  norm       = 11.3239
  Prefactor  = 9.88098e-09
  Prefactor  = 3.10862e-09
  Prefactor  = 17.7832
  Prefactor  = 0.297117
  Normalizat = 0.76672
  Prefactor  = 0.968211
 **********
 **   18 **HESSE 
 **********

 FCN=   4903.332     FROM HESSE     STATUS=OK           394 CALLS     2172 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.545        10.514        .29567E-03   -1.5640    
   2  Prefactor      .0000        6.0190        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        4.8257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        2.4623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.769        19.317        .24438E-03   -1.5626    
   6  norm          10.039        5.4337        .31582E-03   -1.5645    
   7  norm          .27756E-09    6.0793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8132        25.104        .49961E-03   -1.5669    
   9  Prefactor     .77716E-09    51.371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        3.9055        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .27414        .50925        .10576E-02   -1.5697    
  12  norm           .0000        1.9868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3238        9.3351        .48373E-03   -1.5666    
  14  Prefactor     42.230        45.439        .15262E-03   -1.5578    
  15  Prefactor     1.3283        44.142        .93717E-03   -1.5685    
  16  norm          11.324        17.427        .29726E-03   -1.5641    
  17  Prefactor     .98810E-08    3.8566        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .31086E-08    91.224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.783        16.352        .23671E-03   -1.5624    
  20  Prefactor     .29712        9.8366        .68920E-02   -1.5697    
  21  Normalizat    .76672        .19197        .63149E-01   -1.0132    
  22  Prefactor     .96821        .14192        .45868E-01   -.93797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16659e-08
Minuit parameter uncertainties:
  1  10.5145
  2  3.24542e-06
  3  1.44083e-05
  4  3.19083e-06
  5  19.3168
  6  5.43372
  7  7.80158e-05
  8  19.5683
  9  0.000403841
  10  1.01291e-05
  11  0.509249
  12  2.03188e-06
  13  9.33511
  14  45.4392
  15  15.3149
  16  17.427
  17  0.000390437
  18  0.00106621
  19  16.3517
  20  3.41914
  21  0.192142
  22  0.141971
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  9.881e-09  3.904e-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:  9.682e-01  1.420e-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.667e-01  1.921e-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: 9.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/651253/likelihoodResults_696816001_697075201_4FGL_J2338.0-0230_daily_bin1765.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) = 4900.9898342
delta logL = 2.34219805884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4900.72255514
delta logL = 2.60947711893

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67361E-03   1.0000          .0000       .10000E+07
     2 'Index     '    8.2609       1.0000          .0000       10.000    
     3 'Normalizat'    .58461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0593       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=   4903.332     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      342 TOTAL
                     EDM=   .22E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.4882       -.12737E-06** at limit **
   2  Index         1.4349        .21175        .24132E-05     .0000    
   3  Normalizat    .76672        .20916       -.11104E-04    .11542E-05
   4  Prefactor     .96821        .16229        .64231E-05    .21653E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.43494
  Normalizat = 0.76672
  Prefactor  = 0.968211
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4903.332     FROM HESSE     STATUS=FAILED        11 CALLS      353 TOTAL
                     EDM=   .22E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.4869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .17718        1.3922        .24132E-05   -38.493    
   3  Normalizat    .76672        1.0471       -.11104E-04   -1.0132    
   4  Prefactor     .96821        1.1350        .64231E-05   -.93797    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.15938e-15
Minuit parameter uncertainties:
  1  3.06719e-08
  2  0.965703
  3  1.07657
  4  1.16487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/651253': 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): 101
logL (Free Index) = 4903.33203226
delta logL = 2.68300937023e-10

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  0.000e+00  3.067e-08  0.000e+00  1.000e+06 ( 1.000e-12)
463        Index:  1.435e+00  9.657e-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.682e-01  1.165e+00  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.667e-01  1.077e+00  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/651253/cmap_HighResolution_696816001_697075201_4FGL_J2338.0-0230_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.41e-03', job_status='DONE', photon_flux_upper_limit='9.53e-08', time_completed='2023-02-03 02:08:09.555648', job_id='651253', GAL2='0.97', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1675418889.56', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.68e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1765' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 02:08:09 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 651253: <4FGL_J2338.0-0230_daily_bin1765> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1765> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Feb  3 01:55:13 2023
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:55:45 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:55:45 2023
Terminated at Fri Feb  3 02:08:10 2023
Results reported at Fri Feb  3 02:08:10 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1765 354.509 -2.5106 696816001 697075201 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 :                                   544.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            777 sec.

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

