/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 237 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 = 7451
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1245
RA = 354.509, Dec = -2.5106
tmin = 562032001, tmax = 562291201
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='66549', job_status='RUN', time_executed='2021-09-30 02:25:07.011425', time_epoch_executed='1632993907.01' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66549

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66549/ft1_4FGL_J2338.0-0230_daily_bin1245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66549/ft2_4FGL_J2338.0-0230_daily_bin1245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66549/ft1_4FGL_J2338.0-0230_daily_bin1245.fits outfile=/scratch/kocevski/66549/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1245.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=562032001.0 tmax=562291201.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.57
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66549/ft1_filtered_4FGL_J2338.0-0230_daily_bin1245.fits" evtable="EVENTS" scfile=/scratch/kocevski/66549/ft2_4FGL_J2338.0-0230_daily_bin1245.fits sctable="SC_DATA" outfile=/scratch/kocevski/66549/ltcube_562032001_562291201_4FGL_J2338.0-0230_daily_bin1245.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/66549/ft2_4FGL_J2338.0-0230_daily_bin1245.fits
.....................!
real 11.49
user 11.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66549/ft1_filtered_4FGL_J2338.0-0230_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/66549/ft2_4FGL_J2338.0-0230_daily_bin1245.fits sctable="SC_DATA" expcube=/scratch/kocevski/66549/ltcube_562032001_562291201_4FGL_J2338.0-0230_daily_bin1245.fits outfile=/scratch/kocevski/66549/expmap_562032001_562291201_4FGL_J2338.0-0230_daily_bin1245.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/66549/ltcube_562032001_562291201_4FGL_J2338.0-0230_daily_bin1245.fits
.....................!
real 192.72
user 187.64
sys 4.77

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/66549/ft1_filtered_4FGL_J2338.0-0230_daily_bin1245.fits scfile=/scratch/kocevski/66549/ft2_4FGL_J2338.0-0230_daily_bin1245.fits outfile=/scratch/kocevski/66549/cmap_562032001_562291201_4FGL_J2338.0-0230_daily_bin1245.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66549/ft1_filtered_4FGL_J2338.0-0230_daily_bin1245.fits scfile=/scratch/kocevski/66549/ft2_4FGL_J2338.0-0230_daily_bin1245.fits outfile=/scratch/kocevski/66549/cmap_HighResolution_562032001_562291201_4FGL_J2338.0-0230_daily_bin1245.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66549/ft1_filtered_4FGL_J2338.0-0230_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/66549/ft2_4FGL_J2338.0-0230_daily_bin1245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66549/Model_4FGL_J2338.0-0230_daily_bin1245.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/66549/ft1_filtered_4FGL_J2338.0-0230_daily_bin1245.fits.....................!
real 46.63
user 45.31
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.935       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2146       1.0000         .10000E-03   10000.    
     5 'norm      '    .11031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .12660E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13063E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.343       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7226       1.0000         .10000E-03   10000.    
    13 'norm      '    .80132E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1312       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.417       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.697       1.0000         .10000E-03   10000.    
    19 'norm      '    .10305E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13517E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    36.633       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7462       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .55083       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97539       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=   4617.539     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3454 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8296       -.49814E-07** at limit **
   2  Prefactor     .10000E-03    18.065       -.11815E-06** at limit **
   3  Prefactor     17.926        19.202       -.11986E-05    .21352E-03
   4  Prefactor     6.2265        6.0466       -.64587E-06   -.15394E-03
   5  norm          .10000E-03    1.9268       -.85044E-06** at limit **
   6  Prefactor     .10000E-03    17.483       -.73486E-06** at limit **
   7  norm          .10001E-03    73.858       -.43220E-05** at limit **
   8  norm          .10000E-03    8.6631       -.11359E-06** at limit **
   9  Prefactor     .10000E-03    43.171        .15088E-05** at limit **
  10  Prefactor     .10000E-03    25.620       -.72555E-06** at limit **
  11  Prefactor     19.376        10.758        .11251E-05   -.79227E-04
  12  norm          1.7233        1.1329        .18002E-06   -.12734E-03
  13  norm          .10008E-03    5.9610       -.92810E-06** at limit **
  14  Prefactor     2.1353        13.598       -.44579E-06   -.53928E-04
  15  Prefactor     .10000E-03    18.532        .21936E-06** at limit **
  16  Prefactor     .10000E-03    126.84        .17553E-05** at limit **
  17  Prefactor     21.387        14.599        .76626E-06   -.40351E-04
  18  Prefactor     10.691        21.830       -.20263E-06   -.20705E-05
  19  norm          .10000E-03    11.280       -.34884E-07** at limit **
  20  Prefactor     .10001E-03    335.70       -.10526E-04** at limit **
  21  Prefactor     .10000E-03    2.8036       -.59992E-06** at limit **
  22  Prefactor     36.638        40.194        .46669E-07    .96136E-05
  23  Prefactor     .10000E-03    4.7600       -.40420E-07** at limit **
  24  Prefactor     .10000E-03    18.983        .13311E-06** at limit **
  25  Prefactor     3.7468        4.2981       -.11428E-06   -.18226E-04
  26  Normalizat    .55057        .18976       -.11665E-06    .77011E-04
  27  Prefactor     .97546        .14069        .79361E-06    .31364E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.9262
  Prefactor  = 6.22646
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3764
  norm       = 1.72328
  norm       = 0.000100085
  Prefactor  = 2.13526
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 21.3874
  Prefactor  = 10.6913
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.000100002
  Prefactor  = 36.638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.74681
  Normalizat = 0.550571
  Prefactor  = 0.975458
 **********
 **   18 **HESSE 
 **********

 FCN=   4617.539     FROM HESSE     STATUS=OK           490 CALLS     3944 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8333        .11163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.926        18.992        .94572E-04   -1.4861    
   4  Prefactor     6.2265        6.1524        .77979E-03   -1.5209    
   5  norm          .10000E-03    1.9772        .18212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    75.639        .16767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.7538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.376        10.503        .91068E-04   -1.4827    
  12  norm          1.7233        1.1318        .16001E-03   -1.5445    
  13  norm          .10008E-03    31.117        .26803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1353        14.053        .14120E-02   -1.5416    
  15  Prefactor     .10000E-03    18.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    127.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.387        14.025        .86550E-04   -1.4783    
  18  Prefactor     10.691        21.854        .12250E-03   -1.5054    
  19  norm          .10000E-03    11.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    342.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.7354        .20259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     36.638        40.186        .66215E-04   -1.4497    
  23  Prefactor     .10000E-03    4.7617        .14480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.7468        4.3004        .72934E-03   -1.5321    
  26  Normalizat    .55057        .21656        .30048E-03   -1.1013    
  27  Prefactor     .97546        .16144        .18103E-03   -.93552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21729e-09
Minuit parameter uncertainties:
  1  1.72451e-07
  2  8.54441e-06
  3  18.998
  4  6.15303
  5  1.32722e-06
  6  4.49382e-05
  7  0.00149338
  8  1.20351e-05
  9  0.000145277
  10  7.10465e-05
  11  10.504
  12  1.13183
  13  0.00325424
  14  10.9591
  15  3.08224e-05
  16  0.000667879
  17  14.0275
  18  21.8707
  19  4.10382e-06
  20  0.00376149
  21  0.000296577
  22  40.216
  23  2.04951e-06
  24  3.79754e-05
  25  4.30071
  26  0.216897
  27  0.161522
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  2.966e-04  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.755e-01  1.615e-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:  5.506e-01  2.169e-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.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66549/likelihoodResults_562032001_562291201_4FGL_J2338.0-0230_daily_bin1245.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) = 4617.53937354
delta logL = -0.000489920342261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4617.53888412
delta logL = -4.93036168336e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11398E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5657       1.0000          .0000       10.000    
     3 'Normalizat'    .55088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97526       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=   4617.539     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      244 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10033E-03    2.4386        .62588E-01** at limit **
   2  Index         2.6774        6.3330        .50000       -.90413E-04
   3  Normalizat    .55057        .52858E-02    .67888E-01    .14087E-03
   4  Prefactor     .97546        .41830E-02    .45957E-01    .83779E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010033
  Index      = 2.67742
  Normalizat = 0.550571
  Prefactor  = 0.975458
 **********
 **   18 **HESSE 
 **********

 FCN=   4617.539     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10033E-03    1416.9        .17946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6774        6.3232        .50000       -.48309    
   3  Normalizat    .55057        .35281E-01    .30048E-03   -1.1013    
   4  Prefactor     .97546        .27922E-01    .18103E-03   -.93552    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.00815e-06
Minuit parameter uncertainties:
  1  0.0443182
  2  32.1434
  3  0.0352827
  4  0.0279226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66549': 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) = 4617.53888023
delta logL = 3.3910955608e-06

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.003e-04  4.432e-02  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.677e+00  3.214e+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:  9.755e-01  2.792e-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:  5.506e-01  3.528e-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/66549/cmap_HighResolution_562032001_562291201_4FGL_J2338.0-0230_daily_bin1245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.66e-03', job_status='DONE', photon_flux_upper_limit='9.86e-08', time_completed='2021-09-30 02:36:55.146061', job_id='66549', GAL2='0.98', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1632994615.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1245' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:36:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 66549: <4FGL_J2338.0-0230_daily_bin1245> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1245> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:20:59 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:21:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:21:00 2021
Terminated at Thu Sep 30 02:36:55 2021
Results reported at Thu Sep 30 02:36:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1245 354.509 -2.5106 562032001 562291201 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 :                                   620.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             210.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            956 sec.

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

