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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1747
RA = 354.509, Dec = -2.5106
tmin = 692150401, tmax = 692409601
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='817400', job_status='RUN', time_executed='2022-12-11 01:59:22.842256', time_epoch_executed='1670752762.84' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817400

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817400/ft1_4FGL_J2338.0-0230_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817400/ft2_4FGL_J2338.0-0230_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817400/ft1_4FGL_J2338.0-0230_daily_bin1747.fits outfile=/scratch/kocevski/817400/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1747.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=692150401.0 tmax=692409601.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 4.02
user 3.82
sys 0.18

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

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

Number of photons that the gtmktime cut: 489

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/817400/ft1_filtered_4FGL_J2338.0-0230_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/817400/ft2_4FGL_J2338.0-0230_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/817400/ltcube_692150401_692409601_4FGL_J2338.0-0230_daily_bin1747.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/817400/ft2_4FGL_J2338.0-0230_daily_bin1747.fits
.....................!
real 11.65
user 11.26
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817400/ft1_filtered_4FGL_J2338.0-0230_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/817400/ft2_4FGL_J2338.0-0230_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/817400/ltcube_692150401_692409601_4FGL_J2338.0-0230_daily_bin1747.fits outfile=/scratch/kocevski/817400/expmap_692150401_692409601_4FGL_J2338.0-0230_daily_bin1747.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/817400/ltcube_692150401_692409601_4FGL_J2338.0-0230_daily_bin1747.fits
.....................!
real 192.01
user 187.32
sys 4.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/817400/ft1_filtered_4FGL_J2338.0-0230_daily_bin1747.fits scfile=/scratch/kocevski/817400/ft2_4FGL_J2338.0-0230_daily_bin1747.fits outfile=/scratch/kocevski/817400/cmap_692150401_692409601_4FGL_J2338.0-0230_daily_bin1747.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.36
sys 0.17

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/817400/ft1_filtered_4FGL_J2338.0-0230_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/817400/ft2_4FGL_J2338.0-0230_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/817400/Model_4FGL_J2338.0-0230_daily_bin1747.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/817400/ft1_filtered_4FGL_J2338.0-0230_daily_bin1747.fits.....................!
real 54.38
user 53.02
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6915       1.0000          .0000       .10000E+07
     2 'Prefactor '    10.031       1.0000          .0000       .10000E+07
     3 'Prefactor '    .14189E-06   1.0000          .0000       .10000E+07
     4 'norm      '    .54955E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .51066E-03   1.0000          .0000       .10000E+07
     6 'norm      '    19.260       1.0000          .0000       .10000E+07
     7 'norm      '    33.240       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12566E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .18064E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .10335E-03   1.0000          .0000       .10000E+07
    11 'norm      '    1.0242       1.0000          .0000       .10000E+07
    12 'norm      '    4.3434       1.0000          .0000       .10000E+07
    13 'Prefactor '    .17345E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .87496E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    19.051       1.0000          .0000       .10000E+07
    16 'norm      '    .35374       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.6486       1.0000          .0000       .10000E+07
    18 'Prefactor '    69.679       1.0000          .0000       .10000E+07
    19 'Prefactor '    56.796       1.0000          .0000       .10000E+07
    20 'Prefactor '    9.2646       1.0000          .0000       .10000E+07
    21 'Normalizat'    .70373       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1584       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=   5448.278     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1870 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7191        4.7580       -.18114E-06   -.88253E-02
   2  Prefactor     10.041        11.102       -.55756E-07    .10292E-01
   3  Prefactor      .0000        4.3317        .77120E-07** at limit **
   4  norm           .0000        2.6398       -.16005E-07** at limit **
   5  Prefactor     .55511E-10    5.7969        .66910E-07** at limit **
   6  norm          19.282        5.9375       -.22392E-07    .22884E-02
   7  norm          33.336        1.5283       -.12624E-08   -.53968E-02
   8  Prefactor     .13878E-08    16.589        .48599E-07** at limit **
   9  Prefactor      .0000        31.824        .38809E-07** at limit **
  10  Prefactor      .0000        7.0868       -.70357E-07** at limit **
  11  norm          1.0230        1.1449       -.88793E-08    .91064E-03
  12  norm          4.4671        5.1054       -.43622E-07    .23581E-03
  13  Prefactor      .0000        2.8387        .56994E-07** at limit **
  14  Prefactor     .24591E-07    29.080        .33340E-06** at limit **
  15  Prefactor     19.123        16.596        .35369E-06    .46870E-01
  16  norm          .39539E-03    477.31        .28424E-05** at limit **
  17  Prefactor     6.6679        4.7492        .27260E-06    .18551E-02
  18  Prefactor     71.069        38.625       -.19379E-06    .13740    
  19  Prefactor     56.311        28.114       -.18125E-06    .15236    
  20  Prefactor     9.2655        8.0056       -.62758E-07    .14014E-01
  21  Normalizat    .70187        .25792       -.44548E-06    .45530E-04
  22  Prefactor     1.1591        .19496        .23862E-05    .80568E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71914
  Prefactor  = 10.0413
  Prefactor  = 0
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 19.2816
  norm       = 33.3364
  Prefactor  = 1.38778e-09
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.02297
  norm       = 4.46706
  Prefactor  = 0
  Prefactor  = 2.45914e-08
  Prefactor  = 19.1225
  norm       = 0.000395389
  Prefactor  = 6.66788
  Prefactor  = 71.0687
  Prefactor  = 56.3109
  Prefactor  = 9.26554
  Normalizat = 0.701875
  Prefactor  = 1.15913
 **********
 **   18 **HESSE 
 **********

 FCN=   5448.278     FROM HESSE     STATUS=OK           400 CALLS     2270 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7191        22.996        .80901E-03   -1.5682    
   2  Prefactor     10.041        11.147        .31613E-03   -1.5645    
   3  Prefactor      .0000        4.3303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        2.5661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    5.8015        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.282        5.9681        .22794E-03   -1.5620    
   7  norm          33.336        18.244        .17347E-03   -1.5592    
   8  Prefactor     .13878E-08    16.595        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        31.746        .17168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        7.0679        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0230        1.2268        .18218E-02   -1.5688    
  12  norm          4.4671        5.1211        .48308E-03   -1.5666    
  13  Prefactor      .0000        2.8445        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .24591E-07    29.074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.123        16.856        .22919E-03   -1.5621    
  16  norm          .39539E-03    39.525        .11790E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.6679        5.2818        .38893E-03   -1.5656    
  18  Prefactor     71.069        46.387        .11981E-03   -1.5539    
  19  Prefactor     56.311        31.713        .13270E-03   -1.5558    
  20  Prefactor     9.2655        9.9490        .32902E-03   -1.5647    
  21  Normalizat    .70187        .23485        .78103E-01   -1.0382    
  22  Prefactor     1.1591        .17387        .35696E-01   -.87598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.18285e-07
Minuit parameter uncertainties:
  1  12.5751
  2  11.1466
  3  8.04962e-07
  4  3.18431e-06
  5  4.06588e-05
  6  5.9681
  7  18.2439
  8  0.00030131
  9  3.75709e-06
  10  1.04266e-05
  11  1.22685
  12  5.12108
  13  2.72997e-06
  14  0.00169087
  15  16.856
  16  0.250025
  17  5.28176
  18  46.3872
  19  31.7131
  20  9.949
  21  0.235188
  22  0.17396
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  6.668e+00  5.282e+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.159e+00  1.740e-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.019e-01  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.64
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 6.67e-08 +/- 5.28e-08
Energy Flux (Fixed Index): 1.96e-05 +/- 1.55e-05

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

Saving results to:
/scratch/kocevski/817400/likelihoodResults_692150401_692409601_4FGL_J2338.0-0230_daily_bin1747.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) = 5448.27813246
delta logL = 1.68947644852e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5448.27813244
delta logL = 1.70986277226e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6679       1.0000          .0000       .10000E+07
     2 'Index     '    2.4915       1.0000          .0000       10.000    
     3 'Normalizat'    .70186       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1591       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=   5448.278     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      193 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6621        117.69        .38836E-03    .15103E-02
   2  Index         2.4918        6.2179        .19768        .53239E-04
   3  Normalizat    .70180        .11235        .78107E-01    .73386E-04
   4  Prefactor     1.1592        .68258E-01    .35678E-01    .35629E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.66205
  Index      = 2.49183
  Normalizat = 0.7018
  Prefactor  = 1.15917
 **********
 **   18 **HESSE 
 **********

 FCN=   5448.278     FROM HESSE     STATUS=OK            31 CALLS      224 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6621        5.5664        .12862E-04   -1.5656    
   2  Index         2.4918        .63704        .70493E-02   -.52549    
   3  Normalizat    .70180        .25285        .34581E-03   -1.0382    
   4  Prefactor     1.1592        .19457        .21290E-03   -.87597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02444e-11
Minuit parameter uncertainties:
  1  5.56638
  2  0.639362
  3  0.253269
  4  0.194687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817400': 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) = 5448.27813183
delta logL = 2.32425827562e-06

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  6.662e+00  5.566e+00  0.000e+00  1.000e+06 ( 1.000e-12)
463        Index:  2.492e+00  6.394e-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.159e+00  1.947e-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.018e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.62
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 2.49 +/- 0.64
Photon Flux (Free Index): 6.67e-08 +/- 5.44e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.51e-05

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/817400/cmap_HighResolution_692150401_692409601_4FGL_J2338.0-0230_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='6.67e-08', energy_flux2='1.95e-05', photon_flux_error='5.28e-08', dlogl='2.32e-06', energy_flux='1.96e-05', photon_flux2='6.67e-08', job_status='DONE', time_completed='2022-12-11 02:08:22.870921', photon_index_error2='0.64', photon_index2='2.49', ts='3.64', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='1.71e-07', energy_flux_error2='1.51e-05', EG='0.70', time_epoch_completed='1670753302.87', return_code='0', job_id='817400', GAL2='1.16', EG2='0.70', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='5.44e-08', ts2='3.62', photon_index='2.49' WHERE bin_id='1747' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 02:08:22 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 817400: <4FGL_J2338.0-0230_daily_bin1747> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1747> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Dec 11 01:55:14 2022
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 01:55:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 01:55:15 2022
Terminated at Sun Dec 11 02:08:23 2022
Results reported at Sun Dec 11 02:08:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1747 354.509 -2.5106 692150401 692409601 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 :                                   542.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            789 sec.

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

