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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1773
RA = 354.509, Dec = -2.5106
tmin = 698889601, tmax = 699148801
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='807291', job_status='RUN', time_executed='2023-02-27 10:43:00.479287', time_epoch_executed='1677523380.48' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/807291

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/807291/ft1_4FGL_J2338.0-0230_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/807291/ft2_4FGL_J2338.0-0230_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/807291/ft1_4FGL_J2338.0-0230_daily_bin1773.fits outfile=/scratch/kocevski/807291/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1773.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=698889601.0 tmax=699148801.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.03
user 2.75
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/807291/ft2_4FGL_J2338.0-0230_daily_bin1773.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/807291/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1773.fits evtable="EVENTS" outfile="/scratch/kocevski/807291/ft1_filtered_4FGL_J2338.0-0230_daily_bin1773.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.53
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 254

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/807291/ft1_filtered_4FGL_J2338.0-0230_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/807291/ft2_4FGL_J2338.0-0230_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/807291/ltcube_698889601_699148801_4FGL_J2338.0-0230_daily_bin1773.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/807291/ft2_4FGL_J2338.0-0230_daily_bin1773.fits
.....................!
real 15.68
user 15.22
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/807291/ft1_filtered_4FGL_J2338.0-0230_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/807291/ft2_4FGL_J2338.0-0230_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/807291/ltcube_698889601_699148801_4FGL_J2338.0-0230_daily_bin1773.fits outfile=/scratch/kocevski/807291/expmap_698889601_699148801_4FGL_J2338.0-0230_daily_bin1773.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/807291/ltcube_698889601_699148801_4FGL_J2338.0-0230_daily_bin1773.fits
.....................!
real 192.63
user 186.93
sys 5.27

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/807291/ft1_filtered_4FGL_J2338.0-0230_daily_bin1773.fits scfile=/scratch/kocevski/807291/ft2_4FGL_J2338.0-0230_daily_bin1773.fits outfile=/scratch/kocevski/807291/cmap_698889601_699148801_4FGL_J2338.0-0230_daily_bin1773.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/807291/ft1_filtered_4FGL_J2338.0-0230_daily_bin1773.fits scfile=/scratch/kocevski/807291/ft2_4FGL_J2338.0-0230_daily_bin1773.fits outfile=/scratch/kocevski/807291/cmap_HighResolution_698889601_699148801_4FGL_J2338.0-0230_daily_bin1773.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/807291/ft1_filtered_4FGL_J2338.0-0230_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/807291/ft2_4FGL_J2338.0-0230_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/807291/Model_4FGL_J2338.0-0230_daily_bin1773.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/807291/ft1_filtered_4FGL_J2338.0-0230_daily_bin1773.fits......................!
real 40.08
user 38.73
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.434       1.0000          .0000       .10000E+07
     2 'Prefactor '    20.132       1.0000          .0000       .10000E+07
     3 'Prefactor '    .16599E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .13278E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .65698       1.0000          .0000       .10000E+07
     6 'norm      '    .98638E-06   1.0000          .0000       .10000E+07
     7 'norm      '    52.052       1.0000          .0000       .10000E+07
     8 'Prefactor '    38.321       1.0000          .0000       .10000E+07
     9 'Prefactor '    .40679E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .59399E-04   1.0000          .0000       .10000E+07
    11 'norm      '    1.9012       1.0000          .0000       .10000E+07
    12 'norm      '    .41939E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    14.925       1.0000          .0000       .10000E+07
    14 'Prefactor '    .52833E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    25.949       1.0000          .0000       .10000E+07
    16 'norm      '    .24374E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.2081       1.0000          .0000       .10000E+07
    18 'Prefactor '    .10928E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.804       1.0000          .0000       .10000E+07
    20 'Prefactor '    .22197E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    .66635       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1742       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=   3117.143     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     1813 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.449        21.583       -.12664E-06   -.36401E-01
   2  Prefactor     20.403        19.734        .12658E-07   -.41634E-01
   3  Prefactor     .16653E-09    11.645       -.10746E-06** at limit **
   4  norm           .0000        1.5932       -.19800E-07** at limit **
   5  Prefactor     .49563        5.5181       -.41417E-07    .65571E-02
   6  norm           .0000        7.5839        .34273E-07** at limit **
   7  norm          56.333        66.274       -.28504E-06    .12237E-01
   8  Prefactor     39.298        18.319        .16546E-07   -.12727    
   9  Prefactor     .41050E-05    60.072        .79312E-07** at limit **
  10  Prefactor      .0000        10.526       -.40338E-08** at limit **
  11  norm          1.8895        2.2240        .64641E-08    .15884E-02
  12  norm           .0000        6.0371       -.12978E-07** at limit **
  13  Prefactor     14.370        17.989       -.53088E-07   -.30347E-01
  14  Prefactor     .22177E-04    75.999       -.13945E-06** at limit **
  15  Prefactor     28.731        21.376        .39047E-08    .82458E-01
  16  norm           .0000        18.873       -.28483E-07** at limit **
  17  Prefactor     4.2185        7.4087        .71814E-08    .42983E-03
  18  Prefactor     .27984E-04    440.71        .11037E-05** at limit **
  19  Prefactor     16.836        23.949        .80677E-07   -.38071E-01
  20  Prefactor     .55511E-10    20.979        .20809E-07** at limit **
  21  Normalizat    .66766        .35423        .27024E-05    .19831E-03
  22  Prefactor     1.1690        .26234        .15194E-05    .34396E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.449
  Prefactor  = 20.4027
  Prefactor  = 1.66533e-10
  norm       = 0
  Prefactor  = 0.495632
  norm       = 0
  norm       = 56.3333
  Prefactor  = 39.2979
  Prefactor  = 4.10499e-06
  Prefactor  = 0
  norm       = 1.88952
  norm       = 0
  Prefactor  = 14.3699
  Prefactor  = 2.21768e-05
  Prefactor  = 28.7307
  norm       = 0
  Prefactor  = 4.21849
  Prefactor  = 2.7984e-05
  Prefactor  = 16.8361
  Prefactor  = 5.55112e-11
  Normalizat = 0.667663
  Prefactor  = 1.16897
 **********
 **   18 **HESSE 
 **********

 FCN=   3117.143     FROM HESSE     STATUS=OK           386 CALLS     2199 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.449        22.198        .24680E-03   -1.5627    
   2  Prefactor     20.403        20.095        .22294E-03   -1.5618    
   3  Prefactor     .16653E-09    11.627        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        1.5931        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .49563        172.16        .64271E-03   -1.5694    
   6  norm           .0000        7.5536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          56.333        67.193        .13862E-03   -1.5558    
   8  Prefactor     39.298        38.504        .16156E-03   -1.5583    
   9  Prefactor     .41050E-05    70.962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        10.536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8895        2.2458        .75397E-03   -1.5680    
  12  norm           .0000        6.0348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.370        19.697        .25899E-03   -1.5632    
  14  Prefactor     .22177E-04    94.351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.731        44.018        .19635E-03   -1.5601    
  16  norm           .0000        18.885        .16764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.2185        7.4580        .49101E-03   -1.5667    
  18  Prefactor     .27984E-04    450.13        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.836        24.687        .24406E-03   -1.5626    
  20  Prefactor     .55511E-10    20.950        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .66766        .32328        .83404E-01   -1.0518    
  22  Prefactor     1.1690        .23488        .35271E-01   -.87292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71436e-06
Minuit parameter uncertainties:
  1  22.1977
  2  20.095
  3  8.03806e-05
  4  2.66317e-06
  5  18.475
  6  2.20229e-06
  7  67.1944
  8  38.5044
  9  0.0341355
  10  1.68428e-05
  11  2.24585
  12  2.39097e-05
  13  19.6969
  14  0.0914872
  15  44.0182
  16  2.7129e-05
  17  7.45799
  18  0.224485
  19  24.6867
  20  5.42366e-05
  21  0.324208
  22  0.235086
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  4.218e+00  7.458e+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:  1.169e+00  2.351e-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.677e-01  3.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.47
Ra Dec: 354.509 -2.511
Photon Flux Upper Limit: 2.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.89e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/807291/likelihoodResults_698889601_699148801_4FGL_J2338.0-0230_daily_bin1773.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) = 3117.00407633
delta logL = 0.138636749408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3116.99759453
delta logL = 0.145118548599

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8649       1.0000          .0000       .10000E+07
     2 'Index     '    3.3294       1.0000          .0000       10.000    
     3 'Normalizat'    .62130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1899       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=   3116.998     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      296 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8643        8.1542        .11648E-04   -.41895E-02
   2  Index         3.3303        2.0683        .82752E-02   -.58920E-04
   3  Normalizat    .62111        .36437        .38208E-03   -.12022E-03
   4  Prefactor     1.1900        .26091        .20757E-03   -.24831E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.86427
  Index      = 3.33028
  Normalizat = 0.621106
  Prefactor  = 1.19004
 **********
 **   18 **HESSE 
 **********

 FCN=   3116.998     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8643        6.4336        .46593E-06   -1.5674    
   2  Index         3.3303        1.6495        .33101E-03   -.34049    
   3  Normalizat    .62111        .36190        .15283E-04   -1.0710    
   4  Prefactor     1.1900        .25934        .41513E-04   -.86638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59351e-10
Minuit parameter uncertainties:
  1  6.43359
  2  1.6852
  3  0.363294
  4  0.259622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/807291': 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) = 3116.99759408
delta logL = 0.145119004756

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  2.864e+00  6.434e+00  0.000e+00  1.000e+06 ( 1.000e-12)
463        Index:  3.330e+00  1.685e+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.190e+00  2.596e-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.211e-01  3.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.47
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/807291/cmap_HighResolution_698889601_699148801_4FGL_J2338.0-0230_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.89e-02', job_status='DONE', photon_flux_upper_limit='2.43e-07', time_completed='2023-02-27 10:50:19.926946', job_id='807291', GAL2='1.19', fit_tolerance='1e-08', EG2='0.62', EG='0.67', time_epoch_completed='1677523819.93', return_code2='0', ts='0.47', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.45e-01', ts2='0.79', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1773' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 10:50:19 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 807291: <4FGL_J2338.0-0230_daily_bin1773> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1773> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Feb 27 10:40:22 2023
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 10:40:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 10:40:24 2023
Terminated at Mon Feb 27 10:50:27 2023
Results reported at Mon Feb 27 10:50:27 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1773 354.509 -2.5106 698889601 699148801 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 :                                   441.01 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             322.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            605 sec.

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

