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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1735
RA = 354.509, Dec = -2.5106
tmin = 689040001, tmax = 689299201
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='866763', job_status='RUN', time_executed='2022-11-05 00:37:59.363939', time_epoch_executed='1667633879.36' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/866763

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/866763/ft1_4FGL_J2338.0-0230_daily_bin1735.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/866763/ft2_4FGL_J2338.0-0230_daily_bin1735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/866763/ft1_4FGL_J2338.0-0230_daily_bin1735.fits outfile=/scratch/kocevski/866763/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1735.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=689040001.0 tmax=689299201.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.64
user 3.42
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/866763/ft1_filtered_4FGL_J2338.0-0230_daily_bin1735.fits" evtable="EVENTS" scfile=/scratch/kocevski/866763/ft2_4FGL_J2338.0-0230_daily_bin1735.fits sctable="SC_DATA" outfile=/scratch/kocevski/866763/ltcube_689040001_689299201_4FGL_J2338.0-0230_daily_bin1735.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/866763/ft2_4FGL_J2338.0-0230_daily_bin1735.fits
.....................!
real 12.10
user 11.69
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/866763/ft1_filtered_4FGL_J2338.0-0230_daily_bin1735.fits evtable="EVENTS" scfile=/scratch/kocevski/866763/ft2_4FGL_J2338.0-0230_daily_bin1735.fits sctable="SC_DATA" expcube=/scratch/kocevski/866763/ltcube_689040001_689299201_4FGL_J2338.0-0230_daily_bin1735.fits outfile=/scratch/kocevski/866763/expmap_689040001_689299201_4FGL_J2338.0-0230_daily_bin1735.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/866763/ltcube_689040001_689299201_4FGL_J2338.0-0230_daily_bin1735.fits
.....................!
real 192.17
user 185.83
sys 6.01

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/866763/ft1_filtered_4FGL_J2338.0-0230_daily_bin1735.fits scfile=/scratch/kocevski/866763/ft2_4FGL_J2338.0-0230_daily_bin1735.fits outfile=/scratch/kocevski/866763/cmap_689040001_689299201_4FGL_J2338.0-0230_daily_bin1735.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/866763/ft1_filtered_4FGL_J2338.0-0230_daily_bin1735.fits scfile=/scratch/kocevski/866763/ft2_4FGL_J2338.0-0230_daily_bin1735.fits outfile=/scratch/kocevski/866763/cmap_HighResolution_689040001_689299201_4FGL_J2338.0-0230_daily_bin1735.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=354.509 yref=-2.5106 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/866763/ft1_filtered_4FGL_J2338.0-0230_daily_bin1735.fits evtable="EVENTS" scfile=/scratch/kocevski/866763/ft2_4FGL_J2338.0-0230_daily_bin1735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/866763/Model_4FGL_J2338.0-0230_daily_bin1735.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/866763/ft1_filtered_4FGL_J2338.0-0230_daily_bin1735.fits.....................!
real 66.02
user 64.70
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49546E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    13.950       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.8117       1.0000          .0000       .10000E+07
     4 'norm      '    .25241E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .52310E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .77747E-04   1.0000          .0000       .10000E+07
     7 'norm      '    11.391       1.0000          .0000       .10000E+07
     8 'Prefactor '    .35805E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    84.904       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23717E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .25458       1.0000          .0000       .10000E+07
    12 'norm      '    7.2036       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.3310       1.0000          .0000       .10000E+07
    14 'Prefactor '    .11102E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    29.231       1.0000          .0000       .10000E+07
    16 'norm      '    16.255       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.1591       1.0000          .0000       .10000E+07
    18 'Prefactor '    17.953       1.0000          .0000       .10000E+07
    19 'Prefactor '    29.996       1.0000          .0000       .10000E+07
    20 'Prefactor '    .11019E-04   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.3504       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .59952       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=   6874.865     FROM MIGRAD    STATUS=CONVERGED    214 CALLS     1875 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    8.2398        .24801E-06** at limit **
   2  Prefactor     14.092        13.391        .46472E-08    .15496E-02
   3  Prefactor     5.8297        4.4207       -.30304E-07    .42949E-03
   4  norm          .17006E-01    53.372       -.11597E-05** at limit **
   5  Prefactor     .27200E-08    14.154        .18132E-06** at limit **
   6  norm           .0000        3.2577       -.13605E-06** at limit **
   7  norm          11.453        9.4901        .52352E-07    .20590E-02
   8  Prefactor     .55511E-10    4.6907        .83014E-07** at limit **
   9  Prefactor     87.691        65.003       -.22447E-06   -.12814E-01
  10  Prefactor     .71042E-05    31.152        .12567E-06** at limit **
  11  norm          .25669        .76389        .40516E-07    .27538E-03
  12  norm          7.1244        6.3967       -.48569E-07   -.10644E-02
  13  Prefactor     4.2915        9.2950       -.71618E-07   -.10687E-02
  14  Prefactor     .59736E-05    40.760       -.52561E-06** at limit **
  15  Prefactor     29.900        12.003       -.31361E-07    .37226E-01
  16  norm          16.140        16.600       -.16741E-06    .99706E-01
  17  Prefactor     5.1791        4.9798        .22949E-07   -.52578E-02
  18  Prefactor     17.755        5.4860        .39614E-07   -.28143E-01
  19  Prefactor     31.151        20.568       -.34828E-07    .68325E-01
  20  Prefactor      .0000        1.3280        .22096E-08** at limit **
  21  Normalizat    1.3474        .21290        .12742E-05   -.35953E-04
  22  Prefactor     .59942        .15028       -.67559E-06   -.28592E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 14.0918
  Prefactor  = 5.82973
  norm       = 0.0170063
  Prefactor  = 2.72005e-09
  norm       = 0
  norm       = 11.4527
  Prefactor  = 5.55112e-11
  Prefactor  = 87.6907
  Prefactor  = 7.10415e-06
  norm       = 0.256688
  norm       = 7.12435
  Prefactor  = 4.29146
  Prefactor  = 5.97355e-06
  Prefactor  = 29.9004
  norm       = 16.1404
  Prefactor  = 5.17913
  Prefactor  = 17.7546
  Prefactor  = 31.1512
  Prefactor  = 0
  Normalizat = 1.3474
  Prefactor  = 0.599416
 **********
 **   18 **HESSE 
 **********

 FCN=   6874.865     FROM HESSE     STATUS=OK           402 CALLS     2277 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    8.1412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.092        13.276        .26791E-03   -1.5633    
   3  Prefactor     5.8297        4.4428        .41637E-03   -1.5660    
   4  norm          .17006E-01    1.0026        .52284E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .27200E-08    14.110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        3.1643        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.453        9.5104        .29658E-03   -1.5640    
   8  Prefactor     .55511E-10    4.7061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     87.691        64.618        .10853E-03   -1.5521    
  10  Prefactor     .71042E-05    38.793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .25669        .65172        .26009E-02   -1.5698    
  12  norm          7.1244        6.4765        .37349E-03   -1.5655    
  13  Prefactor     4.2915        9.6008        .48379E-03   -1.5667    
  14  Prefactor     .59736E-05    47.546        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.900        30.081        .18499E-03   -1.5599    
  16  norm          16.140        21.833        .24815E-03   -1.5628    
  17  Prefactor     5.1791        5.1893        .44237E-03   -1.5662    
  18  Prefactor     17.755        23.358        .23611E-03   -1.5624    
  19  Prefactor     31.151        27.913        .18262E-03   -1.5596    
  20  Prefactor      .0000        1.3282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3474        .18279        .53104E-01   -.82162    
  22  Prefactor     .59942        .13135        .41047E-01   -1.0761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.74278e-07
Minuit parameter uncertainties:
  1  3.93885e-05
  2  13.2765
  3  4.44285
  4  0.261162
  5  0.000392791
  6  4.54276e-06
  7  9.51043
  8  2.81109e-05
  9  64.6181
  10  0.0332022
  11  0.651721
  12  6.47648
  13  9.60087
  14  0.0337059
  15  30.0813
  16  21.8333
  17  5.18935
  18  23.3578
  19  27.9128
  20  1.78028e-06
  21  0.182878
  22  0.131417
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  5.179e+00  5.189e+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:  5.994e-01  1.314e-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:  1.347e+00  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.57
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 5.18e-08 +/- 5.18e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.52e-05

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

Saving results to:
/scratch/kocevski/866763/likelihoodResults_689040001_689299201_4FGL_J2338.0-0230_daily_bin1735.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) = 6874.40017299
delta logL = 0.464837384578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6874.378097
delta logL = 0.486913374517

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7386       1.0000          .0000       .10000E+07
     2 'Index     '    3.2612       1.0000          .0000       10.000    
     3 'Normalizat'    1.3048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62092       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=   6874.378     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      237 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7387        30.992        .61498E-03    .72445E-02
   2  Index         3.2615        3.0115        .16416        .11336E-03
   3  Normalizat    1.3047        .52629E-01    .53797E-01    .53815E-05
   4  Prefactor     .62098        .38627E-01    .41339E-01    .28044E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.7387
  Index      = 3.26151
  Normalizat = 1.30467
  Prefactor  = 0.62098
 **********
 **   18 **HESSE 
 **********

 FCN=   6874.378     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7387        5.4390        .89627E-05   -1.5675    
   2  Index         3.2615        1.2454        .56116E-02   -.35511    
   3  Normalizat    1.3047        .20543        .23787E-03   -.83427    
   4  Prefactor     .62098        .14973        .24756E-03   -1.0671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51209e-08
Minuit parameter uncertainties:
  1  5.43897
  2  1.26053
  3  0.20556
  4  0.149823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/866763': 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) = 6874.37809657
delta logL = 0.486913802813

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  2.739e+00  5.439e+00  0.000e+00  1.000e+06 ( 1.000e-12)
463        Index:  3.262e+00  1.261e+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:  6.210e-01  1.498e-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:  1.305e+00  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 3.26 +/- 1.26
Photon Flux (Free Index): 8.50e-08 +/- 6.09e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/866763/cmap_HighResolution_689040001_689299201_4FGL_J2338.0-0230_daily_bin1735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='5.18e-08', energy_flux2='1.52e-05', photon_flux_error='5.18e-08', dlogl='4.87e-01', energy_flux='1.52e-05', photon_flux2='8.50e-08', job_status='DONE', time_completed='2022-11-05 00:48:03.157522', photon_index_error2='1.26', photon_index2='3.26', ts='1.57', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.18e-05', EG='1.35', time_epoch_completed='1667634483.16', return_code='0', job_id='866763', GAL2='0.62', EG2='1.30', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='6.09e-08', ts2='2.63', photon_index='2.49' WHERE bin_id='1735' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Nov  5 00:48:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 866763: <4FGL_J2338.0-0230_daily_bin1735> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1735> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Nov  5 00:35:33 2022
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov  5 00:35:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov  5 00:35:34 2022
Terminated at Sat Nov  5 00:48:03 2022
Results reported at Sat Nov  5 00:48:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1735 354.509 -2.5106 689040001 689299201 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 :                                   606.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             308.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            750 sec.

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

