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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin836
RA = 354.509, Dec = -2.5106
tmin = 456019201, tmax = 456278401
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='63358', job_status='RUN', time_executed='2021-09-30 02:15:52.297886', time_epoch_executed='1632993352.3' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='836'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63358

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63358/ft1_4FGL_J2338.0-0230_daily_bin836.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63358/ft2_4FGL_J2338.0-0230_daily_bin836.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63358/ft1_4FGL_J2338.0-0230_daily_bin836.fits outfile=/scratch/kocevski/63358/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin836.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=456019201.0 tmax=456278401.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 6.91
user 6.52
sys 0.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/63358/ft1_filtered_4FGL_J2338.0-0230_daily_bin836.fits" evtable="EVENTS" scfile=/scratch/kocevski/63358/ft2_4FGL_J2338.0-0230_daily_bin836.fits sctable="SC_DATA" outfile=/scratch/kocevski/63358/ltcube_456019201_456278401_4FGL_J2338.0-0230_daily_bin836.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/63358/ft2_4FGL_J2338.0-0230_daily_bin836.fits
.....................!
real 13.23
user 12.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63358/ft1_filtered_4FGL_J2338.0-0230_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/63358/ft2_4FGL_J2338.0-0230_daily_bin836.fits sctable="SC_DATA" expcube=/scratch/kocevski/63358/ltcube_456019201_456278401_4FGL_J2338.0-0230_daily_bin836.fits outfile=/scratch/kocevski/63358/expmap_456019201_456278401_4FGL_J2338.0-0230_daily_bin836.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/63358/ltcube_456019201_456278401_4FGL_J2338.0-0230_daily_bin836.fits
.....................!
real 192.82
user 187.51
sys 4.98

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/63358/ft1_filtered_4FGL_J2338.0-0230_daily_bin836.fits scfile=/scratch/kocevski/63358/ft2_4FGL_J2338.0-0230_daily_bin836.fits outfile=/scratch/kocevski/63358/cmap_456019201_456278401_4FGL_J2338.0-0230_daily_bin836.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63358/ft1_filtered_4FGL_J2338.0-0230_daily_bin836.fits scfile=/scratch/kocevski/63358/ft2_4FGL_J2338.0-0230_daily_bin836.fits outfile=/scratch/kocevski/63358/cmap_HighResolution_456019201_456278401_4FGL_J2338.0-0230_daily_bin836.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/63358/ft1_filtered_4FGL_J2338.0-0230_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/63358/ft2_4FGL_J2338.0-0230_daily_bin836.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/63358/Model_4FGL_J2338.0-0230_daily_bin836.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/63358/ft1_filtered_4FGL_J2338.0-0230_daily_bin836.fits.....................!
real 47.57
user 46.32
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4617       1.0000         .10000E-03   10000.    
     2 'Prefactor '    58.533       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1524       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.931       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3075       1.0000         .10000E-03   10000.    
     8 'norm      '    19.650       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.117       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10461E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3991       1.0000         .10000E-03   10000.    
    13 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.989       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12996E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4868       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.2320       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20268E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.378       1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.032       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .92142       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .72650       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=   4572.676     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3298 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4645        9.5977       -.64530E-05   -.79025E-04
   2  Prefactor     58.543        46.164        .74870E-06    .41427E-05
   3  Prefactor     .10000E-03    42.717        .16745E-05** at limit **
   4  Prefactor     .10000E-03    1.8518        .16468E-07** at limit **
   5  norm          2.1542        2.9784       -.26513E-06   -.61204E-03
   6  Prefactor     11.935        13.170        .60789E-05   -.18892E-04
   7  norm          1.3079        2.3176       -.10882E-05   -.58817E-03
   8  norm          19.656        13.986        .19167E-05   -.10414E-04
   9  Prefactor     .10000E-03    20.385       -.21587E-06** at limit **
  10  Prefactor     27.119        36.015       -.95468E-06   -.15057E-04
  11  Prefactor     .10000E-03    4.5015       -.32716E-08** at limit **
  12  norm          1.3991        .95726       -.42513E-08   -.15129E-03
  13  norm          .10000E-03    2.6592        .25519E-07** at limit **
  14  Prefactor     20.990        13.726       -.12513E-05    .21401E-04
  15  Prefactor     .10000E-03    377.48       -.20201E-04** at limit **
  16  Prefactor     .10000E-03    83.743       -.23643E-05** at limit **
  17  Prefactor     .10000E-03    5.1509        .11172E-08** at limit **
  18  Prefactor     7.4883        24.005       -.78229E-06   -.14251E-05
  19  norm          .10000E-03    5.6425       -.31308E-07** at limit **
  20  Prefactor     .10000E-03    117.97        .30152E-04** at limit **
  21  Prefactor     6.2311        4.6966       -.29491E-07   -.14128E-03
  22  Prefactor     .10000E-03    101.91       -.20295E-04** at limit **
  23  Prefactor     .10000E-03    7.6534        .26758E-07** at limit **
  24  Prefactor     13.382        13.677        .23108E-05   -.68910E-05
  25  Prefactor     11.037        7.7986        .19987E-05   -.68854E-04
  26  Normalizat    .92098        .20671       -.47369E-06    .86393E-04
  27  Prefactor     .72655        .14558        .18344E-06    .43155E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.46447
  Prefactor  = 58.5428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.15415
  Prefactor  = 11.9348
  norm       = 1.30794
  norm       = 19.6558
  Prefactor  = 0.0001
  Prefactor  = 27.1192
  Prefactor  = 0.0001
  norm       = 1.39914
  norm       = 0.0001
  Prefactor  = 20.9901
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.48833
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.23114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3819
  Prefactor  = 11.037
  Normalizat = 0.920984
  Prefactor  = 0.726551
 **********
 **   18 **HESSE 
 **********

 FCN=   4572.676     FROM HESSE     STATUS=OK           488 CALLS     3786 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4645        9.6250        .13028E-03   -1.5093    
   2  Prefactor     58.543        46.149        .52439E-04   -1.4176    
   3  Prefactor     .10000E-03    43.921        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8541        .89766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1542        2.9606        .12705E-03   -1.5414    
   6  Prefactor     11.935        13.173        .11598E-03   -1.5017    
   7  norm          1.3079        2.2837        .12796E-03   -1.5479    
   8  norm          19.656        13.977        .90355E-04   -1.4821    
   9  Prefactor     .10000E-03    20.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.119        36.111        .76932E-04   -1.4666    
  11  Prefactor     .10000E-03    4.5111        .13997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3991        .94836        .51938E-04   -1.5471    
  13  norm          .10000E-03    2.6728        .10764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.990        13.715        .87426E-04   -1.4791    
  15  Prefactor     .10000E-03    388.49        .36352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    83.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.1607        .14976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.4883        23.977        .14657E-03   -1.5161    
  19  norm          .10000E-03    5.6429        .15688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    118.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.2311        4.7055        .11918E-03   -1.5209    
  22  Prefactor     .10000E-03    102.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.6630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.382        13.677        .10951E-03   -1.4976    
  25  Prefactor     11.037        7.8044        .12062E-03   -1.5043    
  26  Normalizat    .92098        .23886        .25096E-03   -.95727    
  27  Prefactor     .72655        .16770        .21270E-03   -1.0250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06902e-10
Minuit parameter uncertainties:
  1  9.62655
  2  46.1772
  3  8.36369e-05
  4  2.51849e-06
  5  2.96078
  6  13.1764
  7  2.28382
  8  13.979
  9  2.7313e-06
  10  36.14
  11  4.53059e-06
  12  0.948372
  13  9.40219e-07
  14  13.7175
  15  0.00176222
  16  3.43318e-06
  17  2.87659e-06
  18  24.0082
  19  7.42267e-07
  20  0.000167918
  21  4.70575
  22  0.000390426
  23  3.98517e-06
  24  13.6805
  25  7.80512
  26  0.239137
  27  0.167813
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  6.231e+00  4.706e+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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  7.266e-01  1.678e-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.210e-01  2.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.66
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 6.23e-08 +/- 4.70e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.38e-05

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

Saving results to:
/scratch/kocevski/63358/likelihoodResults_456019201_456278401_4FGL_J2338.0-0230_daily_bin836.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4571.39271818
delta logL = 1.28279770165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4571.37730522
delta logL = 1.29821066116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3778       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9146       1.0000          .0000       10.000    
     3 'Normalizat'    .84166       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76794       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=   4571.377     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      244 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3773        11.705        .90408E-02    .35443E-03
   2  Index         3.9148        2.9944        .95599E-01    .11035E-03
   3  Normalizat    .84166        .67683E-01    .44152E-01    .12592E-04
   4  Prefactor     .76794        .51041E-01    .43299E-01    .68787E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.37728
  Index      = 3.91478
  Normalizat = 0.841662
  Prefactor  = 0.767943
 **********
 **   18 **HESSE 
 **********

 FCN=   4571.377     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3773        5.3900        .40503E-04   -1.5473    
   2  Index         3.9148        2.2927        .39051E-02   -.21879    
   3  Normalizat    .84166        .22663        .26077E-03   -.98541    
   4  Prefactor     .76794        .17041        .20739E-03   -1.0092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82263e-11
Minuit parameter uncertainties:
  1  5.39185
  2  2.38665
  3  0.226888
  4  0.170528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63358': 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) = 4571.37730519
delta logL = 1.29821068427

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.377e+00  5.392e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  3.915e+00  2.387e+00  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.679e-01  1.705e-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:  8.417e-01  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.51
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 3.91 +/- 2.39
Photon Flux (Free Index): 1.23e-07 +/- 6.78e-08
Energy Flux (Free Index): 1.88e-05 +/- 1.19e-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/63358/cmap_HighResolution_456019201_456278401_4FGL_J2338.0-0230_daily_bin836.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='6.23e-08', energy_flux2='1.88e-05', photon_flux_error='4.70e-08', dlogl='1.30e+00', energy_flux='1.83e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-30 02:26:44.074348', photon_index_error2='2.39', photon_index2='3.91', ts='2.66', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='1.19e-05', EG='0.92', time_epoch_completed='1632994004.07', return_code='0', job_id='63358', GAL2='0.77', EG2='0.84', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='6.78e-08', ts2='5.51', photon_index='2.49' WHERE bin_id='836' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:26:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 63358: <4FGL_J2338.0-0230_daily_bin836> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin836 354.509 -2.5106 456019201 456278401 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 :                                   643.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             370.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            668 sec.

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

