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 16 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1707
RA = 354.509, Dec = -2.5106
tmin = 681782401, tmax = 682041601
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='551633', job_status='RUN', time_executed='2022-08-13 00:35:54.023833', time_epoch_executed='1660376154.02' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551633

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551633/ft1_4FGL_J2338.0-0230_daily_bin1707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551633/ft2_4FGL_J2338.0-0230_daily_bin1707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551633/ft1_4FGL_J2338.0-0230_daily_bin1707.fits outfile=/scratch/kocevski/551633/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1707.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=681782401.0 tmax=682041601.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.19
user 3.95
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/551633/ft2_4FGL_J2338.0-0230_daily_bin1707.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/551633/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1707.fits evtable="EVENTS" outfile="/scratch/kocevski/551633/ft1_filtered_4FGL_J2338.0-0230_daily_bin1707.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.42
user 0.26
sys 0.14

Number of photons that the gtmktime cut: 453

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551633/ft1_filtered_4FGL_J2338.0-0230_daily_bin1707.fits" evtable="EVENTS" scfile=/scratch/kocevski/551633/ft2_4FGL_J2338.0-0230_daily_bin1707.fits sctable="SC_DATA" outfile=/scratch/kocevski/551633/ltcube_681782401_682041601_4FGL_J2338.0-0230_daily_bin1707.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/551633/ft2_4FGL_J2338.0-0230_daily_bin1707.fits
.....................!
real 9.07
user 8.75
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551633/ft1_filtered_4FGL_J2338.0-0230_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/551633/ft2_4FGL_J2338.0-0230_daily_bin1707.fits sctable="SC_DATA" expcube=/scratch/kocevski/551633/ltcube_681782401_682041601_4FGL_J2338.0-0230_daily_bin1707.fits outfile=/scratch/kocevski/551633/expmap_681782401_682041601_4FGL_J2338.0-0230_daily_bin1707.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/551633/ltcube_681782401_682041601_4FGL_J2338.0-0230_daily_bin1707.fits
.....................!
real 145.82
user 141.65
sys 3.90

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/551633/ft1_filtered_4FGL_J2338.0-0230_daily_bin1707.fits scfile=/scratch/kocevski/551633/ft2_4FGL_J2338.0-0230_daily_bin1707.fits outfile=/scratch/kocevski/551633/cmap_681782401_682041601_4FGL_J2338.0-0230_daily_bin1707.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.46
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551633/ft1_filtered_4FGL_J2338.0-0230_daily_bin1707.fits scfile=/scratch/kocevski/551633/ft2_4FGL_J2338.0-0230_daily_bin1707.fits outfile=/scratch/kocevski/551633/cmap_HighResolution_681782401_682041601_4FGL_J2338.0-0230_daily_bin1707.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.45
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551633/ft1_filtered_4FGL_J2338.0-0230_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/551633/ft2_4FGL_J2338.0-0230_daily_bin1707.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551633/Model_4FGL_J2338.0-0230_daily_bin1707.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/551633/ft1_filtered_4FGL_J2338.0-0230_daily_bin1707.fits.....................!
real 40.56
user 39.43
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/551633/ft1_filtered_4FGL_J2338.0-0230_daily_bin1707.fits', '/scratch/kocevski/551633/ft2_4FGL_J2338.0-0230_daily_bin1707.fits', expMap='/scratch/kocevski/551633/expmap_681782401_682041601_4FGL_J2338.0-0230_daily_bin1707.fits', expCube='/scratch/kocevski/551633/ltcube_681782401_682041601_4FGL_J2338.0-0230_daily_bin1707.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/551633/Model_4FGL_J2338.0-0230_daily_bin1707.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  1.000e-04  1.000e+04 ( 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/551633/ft1_filtered_4FGL_J2338.0-0230_daily_bin1707.fits
Spacecraft file(s): /scratch/kocevski/551633/ft2_4FGL_J2338.0-0230_daily_bin1707.fits
Exposure map: /scratch/kocevski/551633/expmap_681782401_682041601_4FGL_J2338.0-0230_daily_bin1707.fits
Exposure cube: /scratch/kocevski/551633/ltcube_681782401_682041601_4FGL_J2338.0-0230_daily_bin1707.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/551633/Model_4FGL_J2338.0-0230_daily_bin1707.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5248.93422346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.262       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16190E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    15.704       1.0000         .10000E-03   10000.    
     8 'norm      '    80.034       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    56.027       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2691       1.0000         .10000E-03   10000.    
    12 'norm      '    .73446       1.0000         .10000E-03   10000.    
    13 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12104E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15312E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5228       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3069       1.0000         .10000E-03   10000.    
    19 'norm      '    23.062       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11352E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3314       1.0000         .10000E-03   10000.    
    24 'Prefactor '    51.567       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.169       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .41458       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3370       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.

 FCN=   5248.886     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     3432 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.281        .82896E-06** at limit **
   2  Prefactor     .10000E-03    40.335        .35200E-06** at limit **
   3  Prefactor     42.267        20.454        .36869E-06   -.38474E-04
   4  Prefactor     .10000E-03    3.4393        .10080E-06** at limit **
   5  norm          .10000E-03    1.1086        .22968E-06** at limit **
   6  Prefactor     .10289E-03    15.025        .21578E-05** at limit **
   7  norm          15.708        6.0734        .27176E-06   -.86515E-03
   8  norm          80.044        26.637        .65534E-06   -.74762E-04
   9  Prefactor     .10000E-03    28.120        .10703E-05** at limit **
  10  Prefactor     55.667        114.33        .13635E-04   -.62921E-04
  11  Prefactor     8.2973        20.951       -.70188E-05   -.11107E-03
  12  norm          .73302        .99466        .74890E-06    .11650E-02
  13  norm          .10000E-03    3.4345        .10852E-05** at limit **
  14  Prefactor     .10000E-03    5.1216        .93000E-07** at limit **
  15  Prefactor     .10000E-03    137.36        .29352E-05** at limit **
  16  Prefactor     .10000E-03    203.15        .23666E-06** at limit **
  17  Prefactor     3.5667        26.967        .88804E-06   -.63422E-04
  18  Prefactor     5.3163        45.238        .41014E-05   -.50418E-05
  19  norm          23.030        38.128        .74171E-09   -.53917E-04
  20  Prefactor     .10000E-03    70.213        .52551E-06** at limit **
  21  Prefactor     .10000E-03    2.5559        .34888E-06** at limit **
  22  Prefactor     .10000E-03    23.090        .40831E-06** at limit **
  23  Prefactor     7.3412        23.201        .18947E-05   -.10841E-04
  24  Prefactor     51.576        25.606        .64022E-06   -.59748E-04
  25  Prefactor     12.175        10.640        .59883E-06   -.83118E-04
  26  Normalizat    .41426        .29107       -.35489E-05   -.16801E-03
  27  Prefactor     1.3371        .19896       -.25873E-07   -.21163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.267
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000102895
  norm       = 15.7077
  norm       = 80.044
  Prefactor  = 0.0001
  Prefactor  = 55.6674
  Prefactor  = 8.29735
  norm       = 0.733024
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.56671
  Prefactor  = 5.31631
  norm       = 23.0302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.34123
  Prefactor  = 51.5765
  Prefactor  = 12.1755
  Normalizat = 0.414257
  Prefactor  = 1.33712
 **********
 **   18 **HESSE 
 **********

 FCN=   5248.886     FROM HESSE     STATUS=OK           486 CALLS     3918 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.772        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     42.267        20.397        .61664E-04   -1.4407    
   4  Prefactor     .10000E-03    3.4448        .13105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1157        .74396E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10289E-03    177.63        .49938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.708        5.7122        .49697E-03   -1.4915    
   8  norm          80.044        26.519        .44893E-04   -1.3916    
   9  Prefactor     .10000E-03    28.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     55.667        112.43        .26796E-03   -1.4214    
  11  Prefactor     8.2973        20.660        .13942E-03   -1.5132    
  12  norm          .73302        .92856        .82635E-03   -1.5537    
  13  norm          .10000E-03    3.4464        .13108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1287        .16009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    138.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    203.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.5667        24.423        .21538E-03   -1.5330    
  18  Prefactor     5.3163        44.797        .17447E-03   -1.5247    
  19  norm          23.030        36.690        .83410E-04   -1.4748    
  20  Prefactor     .10000E-03    70.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.5814        .11290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.3412        23.125        .14813E-03   -1.5166    
  24  Prefactor     51.576        25.518        .55849E-04   -1.4270    
  25  Prefactor     12.175        10.582        .11483E-03   -1.5010    
  26  Normalizat    .41426        .29592        .45938E-03   -1.1657    
  27  Prefactor     1.3371        .21011        .20396E-03   -.82210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51841e-08
Minuit parameter uncertainties:
  1  1.98291e-05
  2  1.17464e-07
  3  20.4
  4  8.7632e-06
  5  9.77016e-07
  6  0.0454863
  7  5.7124
  8  26.5225
  9  5.31964e-06
  10  112.866
  11  20.6775
  12  0.928575
  13  1.18798e-05
  14  3.35655e-06
  15  8.54542e-06
  16  0.000248097
  17  18.677
  18  30.8956
  19  36.7263
  20  1.4934e-05
  21  5.12967e-06
  22  6.34471e-06
  23  23.1535
  24  25.5233
  25  10.584
  26  0.297046
  27  0.210245
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  5.130e-06  1.000e-04  1.000e+04 ( 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.337e+00  2.102e-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:  4.143e-01  2.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/551633/likelihoodResults_681782401_682041601_4FGL_J2338.0-0230_daily_bin1707.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): 102
logL (Free Index) = 5248.88798986
delta logL = -0.00183104168536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5248.88615882
delta logL = -7.89077603258e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4805       1.0000          .0000       10.000    
     3 'Normalizat'    .41427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3371       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=   5248.886     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      256 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.809        .11337E-01** at limit **
   2  Index         2.1914        6.0281        .50000        .89881E-07
   3  Normalizat    .41426        .12419E-01    .45929E-03    .29406E-04
   4  Prefactor     1.3371        .95634E-02    .20397E-03    .79314E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.19138
  Normalizat = 0.41426
  Prefactor  = 1.33712
 **********
 **   18 **HESSE 
 **********

 FCN=   5248.886     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    390.82        .11664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1914        8.8789        .50000       -.59647    
   3  Normalizat    .41426        .86125E-01    .18372E-04   -1.1657    
   4  Prefactor     1.3371        .66321E-01    .40794E-04   -.82210    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.65096e-09
Minuit parameter uncertainties:
  1  0.000126472
  2  1317.17
  3  0.0861522
  4  0.0663255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551633': 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): 102
logL (Free Index) = 5248.88615754
delta logL = 1.27216026158e-06

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  1.265e-04  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.191e+00  1.317e+03  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.337e+00  6.633e-02  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:  4.143e-01  8.615e-02  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/551633/cmap_HighResolution_681782401_682041601_4FGL_J2338.0-0230_daily_bin1707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.30e-03', job_status='DONE', photon_flux_upper_limit='9.39e-08', time_completed='2022-08-13 00:44:27.049166', job_id='551633', GAL2='1.34', fit_tolerance='1e-08', EG2='0.41', EG='0.41', time_epoch_completed='1660376667.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='1.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1707' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:44:27 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 551633: <4FGL_J2338.0-0230_daily_bin1707> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1707> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 13 00:35:30 2022
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:35:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:35:31 2022
Terminated at Sat Aug 13 00:44:27 2022
Results reported at Sat Aug 13 00:44:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1707 354.509 -2.5106 681782401 682041601 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 :                                   514.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   536 sec.
    Turnaround time :                            537 sec.

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

