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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1702
RA = 354.509, Dec = -2.5106
tmin = 680486401, tmax = 680745601
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='259098', job_status='RUN', time_executed='2022-07-29 01:40:24.699173', time_epoch_executed='1659084024.7' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259098

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259098/ft1_4FGL_J2338.0-0230_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259098/ft2_4FGL_J2338.0-0230_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259098/ft1_4FGL_J2338.0-0230_daily_bin1702.fits outfile=/scratch/kocevski/259098/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1702.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=680486401.0 tmax=680745601.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.99
user 2.76
sys 0.21

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

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

Number of photons that the gtmktime cut: 386

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259098/ft1_filtered_4FGL_J2338.0-0230_daily_bin1702.fits" evtable="EVENTS" scfile=/scratch/kocevski/259098/ft2_4FGL_J2338.0-0230_daily_bin1702.fits sctable="SC_DATA" outfile=/scratch/kocevski/259098/ltcube_680486401_680745601_4FGL_J2338.0-0230_daily_bin1702.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/259098/ft2_4FGL_J2338.0-0230_daily_bin1702.fits
.....................!
real 16.36
user 15.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259098/ft1_filtered_4FGL_J2338.0-0230_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/259098/ft2_4FGL_J2338.0-0230_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/259098/ltcube_680486401_680745601_4FGL_J2338.0-0230_daily_bin1702.fits outfile=/scratch/kocevski/259098/expmap_680486401_680745601_4FGL_J2338.0-0230_daily_bin1702.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/259098/ltcube_680486401_680745601_4FGL_J2338.0-0230_daily_bin1702.fits
.....................!
real 194.35
user 187.53
sys 6.11

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/259098/ft1_filtered_4FGL_J2338.0-0230_daily_bin1702.fits scfile=/scratch/kocevski/259098/ft2_4FGL_J2338.0-0230_daily_bin1702.fits outfile=/scratch/kocevski/259098/cmap_680486401_680745601_4FGL_J2338.0-0230_daily_bin1702.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259098/ft1_filtered_4FGL_J2338.0-0230_daily_bin1702.fits scfile=/scratch/kocevski/259098/ft2_4FGL_J2338.0-0230_daily_bin1702.fits outfile=/scratch/kocevski/259098/cmap_HighResolution_680486401_680745601_4FGL_J2338.0-0230_daily_bin1702.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259098/ft1_filtered_4FGL_J2338.0-0230_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/259098/ft2_4FGL_J2338.0-0230_daily_bin1702.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259098/Model_4FGL_J2338.0-0230_daily_bin1702.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/259098/ft1_filtered_4FGL_J2338.0-0230_daily_bin1702.fits.....................!
real 46.94
user 45.44
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10750E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.750       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0901       1.0000         .10000E-03   10000.    
     7 'norm      '    5.1296       1.0000         .10000E-03   10000.    
     8 'norm      '    13.375       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10563E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.735       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5674       1.0000         .10000E-03   10000.    
    13 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2185       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    175.21       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18792E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    113.96       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.4217       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .81716E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.6435       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0164       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98725       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=   4340.418     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3264 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8383        .63867E-09** at limit **
   2  Prefactor     .10000E-03    84.465        .43822E-06** at limit **
   3  Prefactor     54.758        24.938        .20348E-06   -.25571E-04
   4  Prefactor     .10000E-03    2.6012       -.10195E-07** at limit **
   5  norm          .10000E-03    2.0152        .32288E-06** at limit **
   6  Prefactor     7.0977        19.953        .59567E-05   -.57758E-04
   7  norm          5.1314        4.0863       -.58092E-06   -.64848E-04
   8  norm          13.375        15.140        .19380E-06   -.65529E-05
   9  Prefactor     .10000E-03    29.498        .30750E-06** at limit **
  10  Prefactor     .10000E-03    44.617       -.19466E-06** at limit **
  11  Prefactor     16.749        15.006        .35557E-06    .36921E-05
  12  norm          1.5682        1.5111        .63222E-07   -.33962E-04
  13  norm          .10000E-03    4.5509       -.30435E-06** at limit **
  14  Prefactor     3.2159        11.896        .14166E-04   -.19027E-03
  15  Prefactor     .10000E-03    26.567        .31152E-06** at limit **
  16  Prefactor     175.27        204.27        .90541E-06    .21580E-04
  17  Prefactor     .10000E-03    40.594        .14328E-05** at limit **
  18  Prefactor     .10000E-03    26.244        .16416E-06** at limit **
  19  norm          .10000E-03    15.782        .19114E-06** at limit **
  20  Prefactor     113.76        106.09       -.21049E-05   -.29379E-03
  21  Prefactor     .10000E-03    3.9166       -.10112E-06** at limit **
  22  Prefactor     9.4370        74.029        .10064E-05    .16472E-04
  23  Prefactor     .10000E-03    11.237        .45555E-06** at limit **
  24  Prefactor     .10000E-03    90.453        .25725E-05** at limit **
  25  Prefactor     9.6501        9.3686        .10610E-06   -.17952E-04
  26  Normalizat    1.0154        .25669        .79091E-06   -.16441E-03
  27  Prefactor     .98791        .18037       -.30575E-05   -.93031E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.7583
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.09772
  norm       = 5.13141
  norm       = 13.3746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7493
  norm       = 1.56819
  norm       = 0.0001
  Prefactor  = 3.2159
  Prefactor  = 0.0001
  Prefactor  = 175.266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 113.761
  Prefactor  = 0.0001
  Prefactor  = 9.437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.65006
  Normalizat = 1.01541
  Prefactor  = 0.987906
 **********
 **   18 **HESSE 
 **********

 FCN=   4340.418     FROM HESSE     STATUS=OK           482 CALLS     3746 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    84.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     54.758        24.959        .54210E-04   -1.4227    
   4  Prefactor     .10000E-03    2.6059        .10365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.0692        .18171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0977        20.026        .75326E-03   -1.5175    
   7  norm          5.1314        4.0722        .10162E-03   -1.5255    
   8  norm          13.375        15.144        .10952E-03   -1.4976    
   9  Prefactor     .10000E-03    29.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    44.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.749        15.006        .97906E-04   -1.4889    
  12  norm          1.5682        1.4915        .74877E-04   -1.5458    
  13  norm          .10000E-03    4.5564        .13712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2159        11.892        .11291E-02   -1.5349    
  15  Prefactor     .10000E-03    26.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     175.27        204.18        .15244E-03   -1.3052    
  17  Prefactor     .10000E-03    42.047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     113.76        106.05        .18843E-03   -1.3571    
  21  Prefactor     .10000E-03    3.9623        .12718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.4370        74.411        .13056E-03   -1.5093    
  23  Prefactor     .10000E-03    11.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    93.768        .36881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.6501        9.4225        .12904E-03   -1.5087    
  26  Normalizat    1.0154        .30190        .29307E-03   -.92516    
  27  Prefactor     .98791        .20989        .22289E-03   -.93134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20251e-09
Minuit parameter uncertainties:
  1  1.10624e-06
  2  0.00018179
  3  24.9633
  4  5.07952e-06
  5  1.36116e-06
  6  20.0446
  7  4.07245
  8  15.1479
  9  0.000104433
  10  9.86735e-05
  11  15.0096
  12  1.49151
  13  8.61239e-06
  14  11.9011
  15  4.7577e-05
  16  205.012
  17  3.09028e-05
  18  7.85042e-05
  19  5.36982e-07
  20  106.227
  21  1.0038e-05
  22  53.0896
  23  2.87083e-06
  24  0.000237671
  25  9.42395
  26  0.302409
  27  0.210068
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  1.004e-05  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:  9.879e-01  2.101e-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.015e+00  3.024e-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: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259098/likelihoodResults_680486401_680745601_4FGL_J2338.0-0230_daily_bin1702.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) = 4340.41946523
delta logL = -0.00120235960003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4340.41826346
delta logL = -5.82934262638e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4963       1.0000          .0000       10.000    
     3 'Normalizat'    1.0153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98805       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4340.418     FROM MIGRAD    STATUS=FAILED        88 CALLS      240 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10058E-03    290.32        .12733E-02** at limit **
   2  Index         2.5640        5.9135        .50000       -.99516E-05
   3  Normalizat    1.0154        .57043E-01    .29307E-03    .59430E-04
   4  Prefactor     .98790        .43094E-01    .22289E-03    .53046E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4340.418     FROM SIMPLEX   STATUS=UNCHANGED    146 CALLS      386 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10058E-03    290.32        .37843E-03** at limit **
   2  Index         2.5640        5.9135        .70843E-04   -.99516E-05
   3  Normalizat    1.0154        .57043E-01    .20830E-05    .59430E-04
   4  Prefactor     .98790        .43094E-01    .15063E-05    .53046E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4340.418     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      427 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    654.09        .25465E-03** at limit **
   2  Index         2.8264        6.8977        .50000        .11323E-07
   3  Normalizat    1.0154        .10567        .11723E-04   -.30879E-03
   4  Prefactor     .98790        .78680E-01    .89156E-05   -.42411E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.82644
  Normalizat = 1.01541
  Prefactor  = 0.987903
 **********
 **   18 **HESSE 
 **********

 FCN=   4340.418     FROM HESSE     STATUS=OK            29 CALLS      456 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9592        .50930E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8264        7.6543        .50000       -.44972    
   3  Normalizat    1.0154        .27314        .23445E-05   -.92516    
   4  Prefactor     .98790        .20651        .17831E-05   -.93134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25972e-10
Minuit parameter uncertainties:
  1  9.62737e-06
  2  184.926
  3  0.27352
  4  0.206679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259098': 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) = 4340.4182624
delta logL = 4.77124558529e-07

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  9.627e-06  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.826e+00  1.849e+02  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:  9.879e-01  2.067e-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.015e+00  2.735e-01  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/259098/cmap_HighResolution_680486401_680745601_4FGL_J2338.0-0230_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.55e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2022-07-29 01:50:37.639752', job_id='259098', GAL2='0.99', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1659084637.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1702' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 01:50:37 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 259098: <4FGL_J2338.0-0230_daily_bin1702> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1702> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Jul 29 01:35:29 2022
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 01:37:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 01:37:29 2022
Terminated at Fri Jul 29 01:50:38 2022
Results reported at Fri Jul 29 01:50:38 2022

Your job looked like:

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

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

