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 76 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_bin1745
RA = 354.509, Dec = -2.5106
tmin = 691632001, tmax = 691891201
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='660055', job_status='RUN', time_executed='2022-12-05 01:36:39.628416', time_epoch_executed='1670232999.63' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660055

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660055/ft1_4FGL_J2338.0-0230_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660055/ft2_4FGL_J2338.0-0230_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660055/ft1_4FGL_J2338.0-0230_daily_bin1745.fits outfile=/scratch/kocevski/660055/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1745.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=691632001.0 tmax=691891201.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.35
user 2.13
sys 0.20

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

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

Number of photons that the gtmktime cut: 591

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/660055/ft1_filtered_4FGL_J2338.0-0230_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/660055/ft2_4FGL_J2338.0-0230_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/660055/ltcube_691632001_691891201_4FGL_J2338.0-0230_daily_bin1745.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/660055/ft2_4FGL_J2338.0-0230_daily_bin1745.fits
.....................!
real 12.17
user 11.78
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660055/ft1_filtered_4FGL_J2338.0-0230_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/660055/ft2_4FGL_J2338.0-0230_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/660055/ltcube_691632001_691891201_4FGL_J2338.0-0230_daily_bin1745.fits outfile=/scratch/kocevski/660055/expmap_691632001_691891201_4FGL_J2338.0-0230_daily_bin1745.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/660055/ltcube_691632001_691891201_4FGL_J2338.0-0230_daily_bin1745.fits
.....................!
real 189.69
user 184.01
sys 5.35

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/660055/ft1_filtered_4FGL_J2338.0-0230_daily_bin1745.fits scfile=/scratch/kocevski/660055/ft2_4FGL_J2338.0-0230_daily_bin1745.fits outfile=/scratch/kocevski/660055/cmap_691632001_691891201_4FGL_J2338.0-0230_daily_bin1745.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/660055/ft1_filtered_4FGL_J2338.0-0230_daily_bin1745.fits scfile=/scratch/kocevski/660055/ft2_4FGL_J2338.0-0230_daily_bin1745.fits outfile=/scratch/kocevski/660055/cmap_HighResolution_691632001_691891201_4FGL_J2338.0-0230_daily_bin1745.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/660055/ft1_filtered_4FGL_J2338.0-0230_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/660055/ft2_4FGL_J2338.0-0230_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/660055/Model_4FGL_J2338.0-0230_daily_bin1745.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/660055/ft1_filtered_4FGL_J2338.0-0230_daily_bin1745.fits.....................!
real 61.79
user 60.40
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42658E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    34.517       1.0000          .0000       .10000E+07
     3 'Prefactor '    11.335       1.0000          .0000       .10000E+07
     4 'norm      '    4.8458       1.0000          .0000       .10000E+07
     5 'Prefactor '    .45491E-03   1.0000          .0000       .10000E+07
     6 'norm      '    13.732       1.0000          .0000       .10000E+07
     7 'norm      '    .37418E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .22238E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .19447E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .66553E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .63664       1.0000          .0000       .10000E+07
    12 'norm      '    .32942       1.0000          .0000       .10000E+07
    13 'Prefactor '    .27433E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .16425E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .22773E-03   1.0000          .0000       .10000E+07
    16 'norm      '    6.7434       1.0000          .0000       .10000E+07
    17 'Prefactor '    .30499E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.5440       1.0000          .0000       .10000E+07
    19 'Prefactor '    1.2417       1.0000          .0000       .10000E+07
    20 'Prefactor '    .17292       1.0000          .0000       .10000E+07
    21 'Normalizat'    .78544       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2161       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=   6466.244     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     1367 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.6465       -.12540E-06** at limit **
   2  Prefactor     34.825        3.0807        .12036E-06    .59095E-01
   3  Prefactor     11.341        2.3357        .11243E-06    .29590E-02
   4  norm          4.7852        4.0556        .12111E-05   -.10552E-02
   5  Prefactor     .23315E-08    5.3610       -.11703E-05** at limit **
   6  norm          13.809        4.8390        .25609E-06   -.27523E-04
   7  norm          .59497E-06    6.7427       -.21373E-06** at limit **
   8  Prefactor     .16653E-09    5.8524        .86756E-06** at limit **
   9  Prefactor     .36282E-06    10.681        .11896E-07** at limit **
  10  Prefactor     .11102E-09    2.9543        .44950E-06** at limit **
  11  norm          .63586        .59250        .67440E-07    .19415E-02
  12  norm          .33237        11.557        .23555E-05   -.27368E-03
  13  Prefactor     .55511E-10    2.0283        .22465E-06** at limit **
  14  Prefactor     .47284E-06    3.5595       -.46379E-08** at limit **
  15  Prefactor     .29077E-06    3.6469       -.46577E-07** at limit **
  16  norm          6.7270        2.0776       -.15605E-06   -.15947E-02
  17  Prefactor     .67613E-07    1.7513        .26420E-06** at limit **
  18  Prefactor     3.9636        43.492       -.31992E-05    .62613E-02
  19  Prefactor     1.2047        2.1036        .30405E-06   -.47876E-03
  20  Prefactor     .17069        .71716       -.40067E-06** at limit **
  21  Normalizat    .78602        .21676        .16490E-06   -.18656E-04
  22  Prefactor     1.2159        .16669       -.53439E-05   -.10686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 34.8249
  Prefactor  = 11.3414
  norm       = 4.78521
  Prefactor  = 2.33147e-09
  norm       = 13.8088
  norm       = 5.94969e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 3.62821e-07
  Prefactor  = 1.11022e-10
  norm       = 0.635859
  norm       = 0.332369
  Prefactor  = 5.55112e-11
  Prefactor  = 4.72844e-07
  Prefactor  = 2.90767e-07
  norm       = 6.72704
  Prefactor  = 6.76126e-08
  Prefactor  = 3.96362
  Prefactor  = 1.20468
  Prefactor  = 0.170685
  Normalizat = 0.786016
  Prefactor  = 1.21594
 **********
 **   18 **HESSE 
 **********

 FCN=   6466.244     FROM HESSE     STATUS=OK           398 CALLS     1765 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.7210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.825        21.732        .17023E-03   -1.5590    
   3  Prefactor     11.341        13.661        .29732E-03   -1.5641    
   4  norm          4.7852        4.4456        .45674E-03   -1.5664    
   5  Prefactor     .23315E-08    5.5679        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.809        7.6908        .27004E-03   -1.5634    
   7  norm          .59497E-06    10.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .16653E-09    6.9195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .36282E-06    13.573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11102E-09    2.9782        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .63586        .59251        .66008E-03   -1.5692    
  12  norm          .33237        3.8522        .47574E-02   -1.5696    
  13  Prefactor     .55511E-10    2.0459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .47284E-06    11.975        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .29077E-06    11.756        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.7270        12.056        .38616E-03   -1.5656    
  17  Prefactor     .67613E-07    7.9058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9636        46.013        .47202E-03   -1.5668    
  19  Prefactor     1.2047        55.302        .10056E-02   -1.5686    
  20  Prefactor     .17069        3.8397        .95301E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .78602        .19645        .70315E-01   -1.0059    
  22  Prefactor     1.2159        .14691        .34262E-01   -.85842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53987e-07
Minuit parameter uncertainties:
  1  1.41575e-05
  2  21.7318
  3  13.6613
  4  4.44559
  5  0.000228508
  6  7.69077
  7  0.00510389
  8  6.34661e-05
  9  0.0044383
  10  3.59212e-05
  11  0.592509
  12  2.26306
  13  2.49634e-05
  14  0.00475903
  15  0.00369776
  16  12.0561
  17  0.00146227
  18  27.0098
  19  16.3245
  20  1.61912
  21  0.196626
  22  0.146957
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  6.761e-08  1.462e-03  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.216e+00  1.470e-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.860e-01  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/660055/likelihoodResults_691632001_691891201_4FGL_J2338.0-0230_daily_bin1745.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) = 6466.25179118
delta logL = -0.00816224049959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6466.24363162
delta logL = -2.67540326604e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30020E-04   1.0000          .0000       .10000E+07
     2 'Index     '    2.6770       1.0000          .0000       10.000    
     3 'Normalizat'    .78575       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2161       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6466.244     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      242 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.5635        .42118E-03** at limit **
   2  Index         1.9439        .90058        .19315E-04     .0000    
   3  Normalizat    .78601        1.1250        .17332E-04    .67878E-06
   4  Prefactor     1.2159        1.0979       -.17762E-04    .16682E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.94389
  Normalizat = 0.786014
  Prefactor  = 1.21594
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6466.244     FROM HESSE     STATUS=FAILED         9 CALLS      251 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.5635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .40094        1.6231        .19315E-04   -.65760    
   3  Normalizat    .78601        1.1250        .17332E-04   -1.0059    
   4  Prefactor     1.2159        1.0979       -.17762E-04   -.85842    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.30428e-11
Minuit parameter uncertainties:
  1  1.60642e-05
  2  0.908536
  3  1.16115
  4  1.11968
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660055': 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) = 6466.24362894
delta logL = 4.09454514738e-09

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  0.000e+00  1.606e-05  0.000e+00  1.000e+06 ( 1.000e-12)
463        Index:  1.944e+00  9.085e-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:  1.216e+00  1.120e+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.860e-01  1.161e+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/660055/cmap_HighResolution_691632001_691891201_4FGL_J2338.0-0230_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-03', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2022-12-05 01:45:36.433726', job_id='660055', GAL2='1.22', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1670233536.43', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='4.09e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1745' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 01:45:36 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 660055: <4FGL_J2338.0-0230_daily_bin1745> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1745> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Dec  5 01:35:14 2022
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 01:35:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 01:35:15 2022
Terminated at Mon Dec  5 01:45:37 2022
Results reported at Mon Dec  5 01:45:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1745 354.509 -2.5106 691632001 691891201 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 :                                   539.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             309.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            623 sec.

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

