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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1394
RA = 354.509, Dec = -2.5106
tmin = 600652801, tmax = 600912001
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='67982', job_status='RUN', time_executed='2021-09-30 02:25:39.542629', time_epoch_executed='1632993939.54' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/67982

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/67982/ft1_4FGL_J2338.0-0230_daily_bin1394.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/67982/ft2_4FGL_J2338.0-0230_daily_bin1394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/67982/ft1_4FGL_J2338.0-0230_daily_bin1394.fits outfile=/scratch/kocevski/67982/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1394.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=600652801.0 tmax=600912001.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.63
user 3.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/67982/ft2_4FGL_J2338.0-0230_daily_bin1394.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/67982/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1394.fits evtable="EVENTS" outfile="/scratch/kocevski/67982/ft1_filtered_4FGL_J2338.0-0230_daily_bin1394.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/67982/ft1_filtered_4FGL_J2338.0-0230_daily_bin1394.fits" evtable="EVENTS" scfile=/scratch/kocevski/67982/ft2_4FGL_J2338.0-0230_daily_bin1394.fits sctable="SC_DATA" outfile=/scratch/kocevski/67982/ltcube_600652801_600912001_4FGL_J2338.0-0230_daily_bin1394.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/67982/ft2_4FGL_J2338.0-0230_daily_bin1394.fits
.....................!
real 11.94
user 11.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/67982/ft1_filtered_4FGL_J2338.0-0230_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/67982/ft2_4FGL_J2338.0-0230_daily_bin1394.fits sctable="SC_DATA" expcube=/scratch/kocevski/67982/ltcube_600652801_600912001_4FGL_J2338.0-0230_daily_bin1394.fits outfile=/scratch/kocevski/67982/expmap_600652801_600912001_4FGL_J2338.0-0230_daily_bin1394.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/67982/ltcube_600652801_600912001_4FGL_J2338.0-0230_daily_bin1394.fits
.....................!
real 191.24
user 186.16
sys 4.75

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/67982/ft1_filtered_4FGL_J2338.0-0230_daily_bin1394.fits scfile=/scratch/kocevski/67982/ft2_4FGL_J2338.0-0230_daily_bin1394.fits outfile=/scratch/kocevski/67982/cmap_600652801_600912001_4FGL_J2338.0-0230_daily_bin1394.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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/67982/ft1_filtered_4FGL_J2338.0-0230_daily_bin1394.fits scfile=/scratch/kocevski/67982/ft2_4FGL_J2338.0-0230_daily_bin1394.fits outfile=/scratch/kocevski/67982/cmap_HighResolution_600652801_600912001_4FGL_J2338.0-0230_daily_bin1394.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/67982/ft1_filtered_4FGL_J2338.0-0230_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/67982/ft2_4FGL_J2338.0-0230_daily_bin1394.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/67982/Model_4FGL_J2338.0-0230_daily_bin1394.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/67982/ft1_filtered_4FGL_J2338.0-0230_daily_bin1394.fits.....................!
real 50.75
user 49.46
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.752       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.349       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2673       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5745       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9333       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.9474       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.563       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    103.82       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3073       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .40448E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.159       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .80623       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0700       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=   5034.434     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     3343 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.752        11.322       -.19154E-06   -.14814E-04
   2  Prefactor     .10000E-03    22.492       -.37359E-06** at limit **
   3  Prefactor     20.340        25.582        .54364E-06   -.19943E-04
   4  Prefactor     .10000E-03    4.4397        .78075E-06** at limit **
   5  norm          4.2646        4.5497       -.83330E-06   -.11423E-03
   6  Prefactor     8.5769        15.961       -.48303E-06   -.26165E-04
   7  norm          .10000E-03    1.9438        .56291E-06** at limit **
   8  norm          .10000E-03    4.7658        .10183E-06** at limit **
   9  Prefactor     7.9369        18.556       -.41241E-06    .19319E-05
  10  Prefactor     .10000E-03    25.758        .12605E-05** at limit **
  11  Prefactor     .10000E-03    7.7393        .15180E-06** at limit **
  12  norm          .10000E-03    .57322        .31682E-07** at limit **
  13  norm          9.9512        7.9905        .38107E-06   -.67065E-05
  14  Prefactor     31.566        15.281        .31935E-06    .70488E-05
  15  Prefactor     .10000E-03    17.365       -.89232E-06** at limit **
  16  Prefactor     .10000E-03    264.57        .28477E-05** at limit **
  17  Prefactor     .10000E-03    7.2574       -.91804E-08** at limit **
  18  Prefactor     .10000E-03    15.121        .13499E-05** at limit **
  19  norm          .10000E-03    10.561       -.17705E-06** at limit **
  20  Prefactor     103.83        83.925       -.21825E-06   -.84300E-05
  21  Prefactor     4.3070        3.9781       -.50164E-06   -.57335E-04
  22  Prefactor     .10000E-03    16.160        .13126E-06** at limit **
  23  Prefactor     .10000E-03    5.5742        .53544E-07** at limit **
  24  Prefactor     .10000E-03    70.628        .32470E-05** at limit **
  25  Prefactor     11.161        9.5650       -.23587E-06   -.97712E-05
  26  Normalizat    .80593        .23428        .21732E-05   -.91005E-04
  27  Prefactor     1.0701        .16466       -.11024E-05    .24768E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7515
  Prefactor  = 0.0001
  Prefactor  = 20.3404
  Prefactor  = 0.0001
  norm       = 4.26464
  Prefactor  = 8.57693
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.93691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.9512
  Prefactor  = 31.5659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 103.832
  Prefactor  = 4.30705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1608
  Normalizat = 0.805926
  Prefactor  = 1.0701
 **********
 **   18 **HESSE 
 **********

 FCN=   5034.434     FROM HESSE     STATUS=OK           486 CALLS     3829 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.752        11.315        .11686E-03   -1.5022    
   2  Prefactor     .10000E-03    22.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.340        25.514        .88791E-04   -1.4806    
   4  Prefactor     .10000E-03    4.5006        .14626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2646        4.5467        .12330E-03   -1.5295    
   6  Prefactor     8.5769        15.972        .13689E-03   -1.5122    
   7  norm          .10000E-03    1.9722        .96815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.7788        .15127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.9369        18.556        .14236E-03   -1.5144    
  10  Prefactor     .10000E-03    25.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.7603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.1749        .10330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.9512        7.9612        .12705E-03   -1.5077    
  14  Prefactor     31.566        15.286        .71321E-04   -1.4584    
  15  Prefactor     .10000E-03    17.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    265.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.3202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    10.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     103.83        84.005        .39462E-04   -1.3666    
  21  Prefactor     4.3070        3.9633        .12971E-03   -1.5293    
  22  Prefactor     .10000E-03    16.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.5779        .16361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    69.653        .48893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.161        9.5570        .11993E-03   -1.5040    
  26  Normalizat    .80593        .25318        .30687E-03   -.99849    
  27  Prefactor     1.0701        .18234        .20658E-03   -.90428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06131e-10
Minuit parameter uncertainties:
  1  11.3166
  2  2.92794e-05
  3  25.5274
  4  7.90852e-06
  5  4.54704
  6  15.9795
  7  3.91832e-06
  8  8.10285e-07
  9  18.5692
  10  5.9528e-05
  11  1.10728e-05
  12  7.72634e-06
  13  7.96203
  14  15.2874
  15  5.11646e-05
  16  0.000627154
  17  4.99535e-06
  18  3.37522e-05
  19  5.21967e-07
  20  84.1016
  21  3.96359
  22  2.95268e-06
  23  1.90803e-07
  24  2.12271e-05
  25  9.55832
  26  0.253552
  27  0.182445
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  4.307e+00  3.964e+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:  1.070e+00  1.824e-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.059e-01  2.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.41
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 4.31e-08 +/- 3.96e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.16e-05

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

Saving results to:
/scratch/kocevski/67982/likelihoodResults_600652801_600912001_4FGL_J2338.0-0230_daily_bin1394.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) = 5034.12037568
delta logL = 0.313876250769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5034.11910973
delta logL = 0.315142204601

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1803       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8218       1.0000          .0000       10.000    
     3 'Normalizat'    .83265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0595       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=   5034.119     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1788        4.8878        .49280E-02   -.40932E-04
   2  Index         1.8216        .62162        .26927       -.36578E-04
   3  Normalizat    .83277        .20600        .68321E-01   -.82928E-04
   4  Prefactor     1.0596        .15759        .39383E-01   -.15081E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.17879
  Index      = 1.82164
  Normalizat = 0.832774
  Prefactor  = 1.05961
 **********
 **   18 **HESSE 
 **********

 FCN=   5034.119     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1788        4.8651        .14154E-03   -1.5299    
   2  Index         1.8216        .79991        .95046E-02   -.68888    
   3  Normalizat    .83277        .23420        .30228E-03   -.98864    
   4  Prefactor     1.0596        .17950        .20744E-03   -.90768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30063e-11
Minuit parameter uncertainties:
  1  4.86552
  2  0.805747
  3  0.234485
  4  0.179598
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/67982': 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) = 5034.11910756
delta logL = 0.315144374851

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  4.179e+00  4.866e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  1.822e+00  8.057e-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:  1.060e+00  1.796e-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.328e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 1.82 +/- 0.81
Photon Flux (Free Index): 1.97e-08 +/- 3.15e-08
Energy Flux (Free Index): 2.21e-05 +/- 3.34e-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/67982/cmap_HighResolution_600652801_600912001_4FGL_J2338.0-0230_daily_bin1394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', photon_flux='4.31e-08', energy_flux2='2.21e-05', photon_flux_error='3.96e-08', dlogl='3.15e-01', energy_flux='1.26e-05', photon_flux2='1.97e-08', job_status='DONE', time_completed='2021-09-30 02:36:34.027868', photon_index_error2='0.81', photon_index2='1.82', ts='2.41', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='3.34e-05', EG='0.81', time_epoch_completed='1632994594.03', return_code='0', job_id='67982', GAL2='1.06', EG2='0.83', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='3.15e-08', ts2='3.03', photon_index='2.49' WHERE bin_id='1394' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:36:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 67982: <4FGL_J2338.0-0230_daily_bin1394> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1394> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:25:29 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:25:31 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:25:31 2021
Terminated at Thu Sep 30 02:36:34 2021
Results reported at Thu Sep 30 02:36:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1394 354.509 -2.5106 600652801 600912001 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 :                                   646.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            665 sec.

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

