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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin743
RA = 354.509, Dec = -2.5106
tmin = 431913601, tmax = 432172801
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='63223', job_status='RUN', time_executed='2021-09-30 02:15:35.998290', time_epoch_executed='1632993336.0' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63223

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63223/ft1_4FGL_J2338.0-0230_daily_bin743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63223/ft2_4FGL_J2338.0-0230_daily_bin743.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63223/ft1_4FGL_J2338.0-0230_daily_bin743.fits outfile=/scratch/kocevski/63223/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin743.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=431913601.0 tmax=432172801.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 5.26
user 4.97
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63223/ft1_filtered_4FGL_J2338.0-0230_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/63223/ft2_4FGL_J2338.0-0230_daily_bin743.fits sctable="SC_DATA" expcube=/scratch/kocevski/63223/ltcube_431913601_432172801_4FGL_J2338.0-0230_daily_bin743.fits outfile=/scratch/kocevski/63223/expmap_431913601_432172801_4FGL_J2338.0-0230_daily_bin743.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/63223/ltcube_431913601_432172801_4FGL_J2338.0-0230_daily_bin743.fits
.....................!
real 190.52
user 185.21
sys 5.00

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/63223/ft1_filtered_4FGL_J2338.0-0230_daily_bin743.fits scfile=/scratch/kocevski/63223/ft2_4FGL_J2338.0-0230_daily_bin743.fits outfile=/scratch/kocevski/63223/cmap_431913601_432172801_4FGL_J2338.0-0230_daily_bin743.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=354.509 yref=-2.5106 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63223/ft1_filtered_4FGL_J2338.0-0230_daily_bin743.fits scfile=/scratch/kocevski/63223/ft2_4FGL_J2338.0-0230_daily_bin743.fits outfile=/scratch/kocevski/63223/cmap_HighResolution_431913601_432172801_4FGL_J2338.0-0230_daily_bin743.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/63223/ft1_filtered_4FGL_J2338.0-0230_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/63223/ft2_4FGL_J2338.0-0230_daily_bin743.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/63223/Model_4FGL_J2338.0-0230_daily_bin743.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/63223/ft1_filtered_4FGL_J2338.0-0230_daily_bin743.fits......................!
real 32.81
user 31.59
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    58.102       1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.454       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1945       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.7254       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.828       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.184       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    82.482       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10607E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3990       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4715       1.0000         .10000E-03   10000.    
    19 'norm      '    .44395       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.030       1.0000         .10000E-03   10000.    
    22 'Prefactor '    96.032       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    37.681       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0514       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .75462       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=   2486.392     FROM MIGRAD    STATUS=CONVERGED   1207 CALLS     4293 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.934        .17474E-02** at limit **
   2  Prefactor     58.104        60.503        .52632E-04   -.89426E-05
   3  Prefactor     50.447        35.420        .28229E-03    .28392E-05
   4  Prefactor     .10000E-03    6.7312        .12606E-02** at limit **
   5  norm          2.1942        6.4722        .91474E-03   -.22787E-04
   6  Prefactor     .10000E-03    38.340        .18142E-02** at limit **
   7  norm          8.7246        7.4671        .59287E-03   -.12690E-03
   8  norm          .10000E-03    8.1044        .13858E-02** at limit **
   9  Prefactor     21.827        26.933        .85731E-04   -.84207E-05
  10  Prefactor     30.212        85.639        .72927E-04   -.48310E-04
  11  Prefactor     .10000E-03    14.685        .18142E-02** at limit **
  12  norm          .10000E-03    .39480        .30566E-03** at limit **
  13  norm          .10000E-03    8.9825        .14456E-02** at limit **
  14  Prefactor     .10000E-03    6.5290        .12440E-02** at limit **
  15  Prefactor     82.464        102.47        .44227E-04   -.18945E-04
  16  Prefactor     .10000E-03    368.48        .18142E-02** at limit **
  17  Prefactor     5.6004        60.601        .17295E-03   -.86541E-04
  18  Prefactor     5.4763        68.863        .17178E-03    .56586E-05
  19  norm          .10034E-03    231.72        .10725    ** at limit **
  20  Prefactor     .10000E-03    54.001        .18142E-02** at limit **
  21  Prefactor     22.036        13.344        .85338E-04   -.31846E-03
  22  Prefactor     95.989        82.756        .20508E-03   -.38278E-04
  23  Prefactor     .10000E-03    15.651        .18142E-02** at limit **
  24  Prefactor     37.672        37.186        .65292E-04   -.12972E-04
  25  Prefactor     .10000E-03    18.646        .18142E-02** at limit **
  26  Normalizat    1.0520        .44532        .28805E-03   -.12616E-03
  27  Prefactor     .75424        .28785        .23933E-03   -.82748E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 58.1043
  Prefactor  = 50.4474
  Prefactor  = 0.0001
  norm       = 2.1942
  Prefactor  = 0.0001
  norm       = 8.72457
  norm       = 0.0001
  Prefactor  = 21.8273
  Prefactor  = 30.2123
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.4637
  Prefactor  = 0.0001
  Prefactor  = 5.60037
  Prefactor  = 5.47634
  norm       = 0.000100345
  Prefactor  = 0.0001
  Prefactor  = 22.036
  Prefactor  = 95.9886
  Prefactor  = 0.0001
  Prefactor  = 37.6723
  Prefactor  = 0.0001
  Normalizat = 1.05199
  Prefactor  = 0.754243
 **********
 **   18 **HESSE 
 **********

 FCN=   2486.392     FROM HESSE     STATUS=OK           472 CALLS     4765 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.936        .34948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     58.104        60.502        .10526E-04   -1.4182    
   3  Prefactor     50.447        35.351        .11292E-04   -1.4286    
   4  Prefactor     .10000E-03    6.7314        .25213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1942        6.4507        .36589E-04   -1.5412    
   6  Prefactor     .10000E-03    38.349        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.7246        7.4658        .23715E-04   -1.5117    
   8  norm          .10000E-03    8.1046        .27715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.827        26.930        .34292E-05   -1.4773    
  10  Prefactor     30.212        85.627        .14585E-04   -1.4608    
  11  Prefactor     .10000E-03    14.685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .39480        .61131E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.9863        .28912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5291        .24880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     82.464        102.47        .88454E-05   -1.3889    
  16  Prefactor     .10000E-03    368.49        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6004        57.383        .69178E-05   -1.5235    
  18  Prefactor     5.4763        68.826        .68711E-05   -1.5240    
  19  norm          .10034E-03    192.78        .11558       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    54.002        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.036        13.346        .34135E-05   -1.4769    
  22  Prefactor     95.989        82.752        .82032E-05   -1.3745    
  23  Prefactor     .10000E-03    15.652        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     37.672        37.179        .26117E-05   -1.4480    
  25  Prefactor     .10000E-03    18.654        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0520        .44541        .57609E-04   -.91308    
  27  Prefactor     .75424        .28807        .95732E-05   -1.0144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96542e-10
Minuit parameter uncertainties:
  1  1.62706e-05
  2  60.5663
  3  35.3656
  4  3.30411e-05
  5  6.45271
  6  6.53099e-05
  7  7.46664
  8  6.51681e-06
  9  26.9449
  10  85.9778
  11  0.000100627
  12  4.89206e-08
  13  4.0083e-05
  14  1.27029e-05
  15  102.691
  16  0.000313263
  17  35.8976
  18  38.8835
  19  0.0163526
  20  9.92959e-06
  21  13.3479
  22  82.8517
  23  6.26334e-05
  24  37.2017
  25  1.21031e-05
  26  0.447004
  27  0.288642
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  2.204e+01  1.335e+01  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:  7.542e-01  2.886e-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.052e+00  4.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.40
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 2.20e-07 +/- 1.33e-07
Energy Flux (Fixed Index): 6.46e-05 +/- 3.91e-05

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) = 2485.96169001
delta logL = 0.430403195036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2485.95841208
delta logL = 0.433681129769

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.830       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9760       1.0000          .0000       10.000    
     3 'Normalizat'    .99356       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78713       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=   2485.958     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      267 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.840        133.78        .26926E-02    .24565E-04
   2  Index         2.9766        3.5549        .73974E-01    .46270E-04
   3  Normalizat    .99324        .19438        .66691E-01    .16539E-04
   4  Prefactor     .78714        .14305        .43549E-01    .17324E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8399
  Index      = 2.9766
  Normalizat = 0.993235
  Prefactor  = 0.787143
 **********
 **   18 **HESSE 
 **********

 FCN=   2485.958     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.840        12.344        .82534E-04   -1.4964    
   2  Index         2.9766        .60177        .31656E-02   -.41663    
   3  Normalizat    .99324        .40291        .29499E-03   -.93257    
   4  Prefactor     .78714        .28546        .23481E-03   -1.0020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06063e-10
Minuit parameter uncertainties:
  1  12.3464
  2  0.603518
  3  0.404154
  4  0.286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63223': 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) = 2485.95840683
delta logL = 0.4336863771

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.384e+01  1.235e+01  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.977e+00  6.035e-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:  7.871e-01  2.860e-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:  9.932e-01  4.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.42
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 2.98 +/- 0.60
Photon Flux (Free Index): 2.77e-07 +/- 1.38e-07
Energy Flux (Free Index): 5.60e-05 +/- 2.80e-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/63223/cmap_HighResolution_431913601_432172801_4FGL_J2338.0-0230_daily_bin743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.20e-07', energy_flux2='5.60e-05', photon_flux_error='1.33e-07', dlogl='4.34e-01', energy_flux='6.46e-05', photon_flux2='2.77e-07', job_status='DONE', time_completed='2021-09-30 02:23:38.774471', photon_index_error2='0.60', photon_index2='2.98', ts='7.40', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='2.80e-05', EG='1.05', time_epoch_completed='1632993818.77', return_code='0', job_id='63223', GAL2='0.79', EG2='0.99', return_code2='0', energy_flux_error='3.91e-05', photon_flux_error2='1.38e-07', ts2='8.42', photon_index='2.49' WHERE bin_id='743' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:23:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 63223: <4FGL_J2338.0-0230_daily_bin743> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin743> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:15:24 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:15:26 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:15:26 2021
Terminated at Thu Sep 30 02:23:39 2021
Results reported at Thu Sep 30 02:23:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin743 354.509 -2.5106 431913601 432172801 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 :                                   482.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   493 sec.
    Turnaround time :                            495 sec.

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

