/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 102 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 = 7498
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2338.0-0230_daily_bin160
RA = 354.509, Dec = -2.5106
tmin = 280800001, tmax = 281059201
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='60046', job_status='RUN', time_executed='2021-09-30 02:07:23.531091', time_epoch_executed='1632992843.53' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='160'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60046

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60046/ft1_4FGL_J2338.0-0230_daily_bin160.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60046/ft2_4FGL_J2338.0-0230_daily_bin160.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60046/ft1_4FGL_J2338.0-0230_daily_bin160.fits outfile=/scratch/kocevski/60046/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin160.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=280800001.0 tmax=281059201.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.83
user 3.58
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/60046/ft1_filtered_4FGL_J2338.0-0230_daily_bin160.fits" evtable="EVENTS" scfile=/scratch/kocevski/60046/ft2_4FGL_J2338.0-0230_daily_bin160.fits sctable="SC_DATA" outfile=/scratch/kocevski/60046/ltcube_280800001_281059201_4FGL_J2338.0-0230_daily_bin160.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/60046/ft2_4FGL_J2338.0-0230_daily_bin160.fits
.....................!
real 12.46
user 12.03
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60046/ft1_filtered_4FGL_J2338.0-0230_daily_bin160.fits evtable="EVENTS" scfile=/scratch/kocevski/60046/ft2_4FGL_J2338.0-0230_daily_bin160.fits sctable="SC_DATA" expcube=/scratch/kocevski/60046/ltcube_280800001_281059201_4FGL_J2338.0-0230_daily_bin160.fits outfile=/scratch/kocevski/60046/expmap_280800001_281059201_4FGL_J2338.0-0230_daily_bin160.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/60046/ltcube_280800001_281059201_4FGL_J2338.0-0230_daily_bin160.fits
.....................!
real 193.11
user 186.65
sys 5.34

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/60046/ft1_filtered_4FGL_J2338.0-0230_daily_bin160.fits scfile=/scratch/kocevski/60046/ft2_4FGL_J2338.0-0230_daily_bin160.fits outfile=/scratch/kocevski/60046/cmap_280800001_281059201_4FGL_J2338.0-0230_daily_bin160.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/60046/ft1_filtered_4FGL_J2338.0-0230_daily_bin160.fits scfile=/scratch/kocevski/60046/ft2_4FGL_J2338.0-0230_daily_bin160.fits outfile=/scratch/kocevski/60046/cmap_HighResolution_280800001_281059201_4FGL_J2338.0-0230_daily_bin160.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/60046/ft1_filtered_4FGL_J2338.0-0230_daily_bin160.fits evtable="EVENTS" scfile=/scratch/kocevski/60046/ft2_4FGL_J2338.0-0230_daily_bin160.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/60046/Model_4FGL_J2338.0-0230_daily_bin160.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/60046/ft1_filtered_4FGL_J2338.0-0230_daily_bin160.fits.....................!
real 67.15
user 65.39
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.243       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .45910       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29921E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.8131       1.0000         .10000E-03   10000.    
     8 'norm      '    44.234       1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.028       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5551       1.0000         .10000E-03   10000.    
    13 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.647       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7072       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    97.329       1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.872       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.1314       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9396       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0092       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86714       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=   6704.629     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3323 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7054       -.51977E-07** at limit **
   2  Prefactor     .10000E-03    10.574        .81598E-05** at limit **
   3  Prefactor     13.204        22.486       -.26609E-04   -.72578E-03
   4  Prefactor     .10000E-03    1.6001       -.33050E-07** at limit **
   5  norm          .46350        3.6492        .76668E-05   -.96452E-04
   6  Prefactor     .10000E-03    5.6457       -.10782E-05** at limit **
   7  norm          2.8137        2.4594       -.29795E-06   -.17766E-03
   8  norm          44.234        17.255       -.12383E-05    .30367E-04
   9  Prefactor     39.027        27.542       -.19565E-05    .40667E-04
  10  Prefactor     .10000E-03    13.998       -.14666E-04** at limit **
  11  Prefactor     .10000E-03    6.2302        .56701E-05** at limit **
  12  norm          1.5552        .95913       -.76130E-07   -.11753E-03
  13  norm          .10000E-03    5.2879       -.21195E-05** at limit **
  14  Prefactor     .10000E-03    4.2913        .12314E-06** at limit **
  15  Prefactor     35.624        68.302       -.33995E-04    .13421E-04
  16  Prefactor     .10000E-03    47.112        .27592E-05** at limit **
  17  Prefactor     .10000E-03    7.1905       -.47149E-05** at limit **
  18  Prefactor     2.7015        61.596       -.17711E-04   -.43197E-04
  19  norm          .10000E-03    8.1903       -.41862E-05** at limit **
  20  Prefactor     .10000E-03    22.989        .72295E-05** at limit **
  21  Prefactor     .10006E-03    1.9719        .77867E-06** at limit **
  22  Prefactor     97.330        53.406        .13903E-05    .19327E-04
  23  Prefactor     28.871        26.512       -.15766E-05    .10687E-04
  24  Prefactor     9.1311        13.756        .34803E-06   -.16336E-03
  25  Prefactor     2.9397        6.3022       -.25286E-05   -.55472E-03
  26  Normalizat    1.0091        .20109        .62064E-05   -.42280E-03
  27  Prefactor     .86721        .14017        .15910E-05   -.13140E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2038
  Prefactor  = 0.0001
  norm       = 0.463497
  Prefactor  = 0.0001
  norm       = 2.81371
  norm       = 44.234
  Prefactor  = 39.0265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.55516
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.6244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.70154
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100062
  Prefactor  = 97.3303
  Prefactor  = 28.8705
  Prefactor  = 9.13108
  Prefactor  = 2.93975
  Normalizat = 1.00914
  Prefactor  = 0.867213
 **********
 **   18 **HESSE 
 **********

 FCN=   6704.629     FROM HESSE     STATUS=OK           486 CALLS     3809 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7149        .13150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.204        21.189        .11007E-03   -1.4981    
   4  Prefactor     .10000E-03    1.6034        .10104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .46350        3.1054        .23075E-03   -1.5572    
   6  Prefactor     .10000E-03    28.874        .36903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.8137        2.4062        .11369E-03   -1.5372    
   8  norm          44.234        17.241        .60280E-04   -1.4377    
   9  Prefactor     39.027        27.517        .64159E-04   -1.4458    
  10  Prefactor     .10000E-03    13.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.3501        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5552        .94737        .59519E-04   -1.5459    
  13  norm          .10000E-03    5.5106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2992        .16562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     35.624        67.772        .67122E-04   -1.4514    
  16  Prefactor     .10000E-03    47.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.2196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7015        61.830        .24756E-03   -1.5379    
  19  norm          .10000E-03    8.1942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10006E-03    11.198        .21687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     97.330        53.435        .40744E-04   -1.3732    
  23  Prefactor     28.871        26.472        .74562E-04   -1.4633    
  24  Prefactor     9.1311        13.757        .13263E-03   -1.5104    
  25  Prefactor     2.9397        6.3231        .23690E-03   -1.5365    
  26  Normalizat    1.0091        .22644        .27427E-03   -.92725    
  27  Prefactor     .86721        .16087        .22301E-03   -.97296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.78678e-09
Minuit parameter uncertainties:
  1  6.00985e-06
  2  1.0603e-05
  3  21.2006
  4  3.00464e-06
  5  2.39936
  6  4.66741e-05
  7  2.40628
  8  17.2427
  9  27.5264
  10  4.39365e-05
  11  8.87412e-05
  12  0.947382
  13  7.78903e-05
  14  8.43804e-06
  15  67.9187
  16  4.51624e-06
  17  2.90624e-05
  18  25.8782
  19  1.66494e-06
  20  6.84611e-05
  21  0.00166904
  22  53.4619
  23  26.4831
  24  13.7616
  25  6.32449
  26  0.226652
  27  0.160955
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.001e-04  1.669e-03  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:  8.672e-01  1.610e-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.009e+00  2.267e-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: 8.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/60046/likelihoodResults_280800001_281059201_4FGL_J2338.0-0230_daily_bin160.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) = 6704.62952057
delta logL = -0.00042489137013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6704.62909589
delta logL = -2.14910869545e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38516E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6180       1.0000          .0000       10.000    
     3 'Normalizat'    1.0096       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86693       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=   6704.426     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      280 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22206        1.5817        .10640E-01   -.25957E-02
   2  Index         4.3399        2.2021        .17414        .11010E-03
   3  Normalizat    .96003        .25274        .46287E-01    .50919E-05
   4  Prefactor     .88870        .15425        .44582E-01    .11545E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.222061
  Index      = 4.33994
  Normalizat = 0.960034
  Prefactor  = 0.888705
 **********
 **   18 **HESSE 
 **********

 FCN=   6704.426     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      313 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22206        26.083        .57208E-04   -1.5802    
   2  Index         4.3399        5.8451        .95676E-02   -.13240    
   3  Normalizat    .96003        .19909        .28043E-03   -.94382    
   4  Prefactor     .88870        .14878        .22058E-03   -.96537    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.22853e-06
Minuit parameter uncertainties:
  1  4.81435
  2  12.4889
  3  0.199247
  4  0.148845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60046': 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) = 6704.42556792
delta logL = 0.203527757591

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  2.221e-01  4.814e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  4.340e+00  1.249e+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:  8.887e-01  1.488e-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.600e-01  1.992e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/60046/cmap_HighResolution_280800001_281059201_4FGL_J2338.0-0230_daily_bin160.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.83e-03', job_status='DONE', photon_flux_upper_limit='8.78e-08', time_completed='2021-09-30 02:20:22.417077', job_id='60046', GAL2='0.89', fit_tolerance='1e-08', EG2='0.96', EG='1.01', time_epoch_completed='1632993622.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.04e-01', ts2='0.45', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='160' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:20:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 60046: <4FGL_J2338.0-0230_daily_bin160> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin160> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:05:29 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:05:32 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:05:32 2021
Terminated at Thu Sep 30 02:20:23 2021
Results reported at Thu Sep 30 02:20:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin160 354.509 -2.5106 280800001 281059201 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 :                                   770.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            894 sec.

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

