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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1279
RA = 354.509, Dec = -2.5106
tmin = 570844801, tmax = 571104001
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='67803', job_status='RUN', time_executed='2021-09-30 02:25:27.876932', time_epoch_executed='1632993927.88' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/67803

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/67803/ft1_4FGL_J2338.0-0230_daily_bin1279.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/67803/ft2_4FGL_J2338.0-0230_daily_bin1279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/67803/ft1_4FGL_J2338.0-0230_daily_bin1279.fits outfile=/scratch/kocevski/67803/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1279.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=570844801.0 tmax=571104001.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.05
user 2.83
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/67803/ft1_filtered_4FGL_J2338.0-0230_daily_bin1279.fits" evtable="EVENTS" scfile=/scratch/kocevski/67803/ft2_4FGL_J2338.0-0230_daily_bin1279.fits sctable="SC_DATA" outfile=/scratch/kocevski/67803/ltcube_570844801_571104001_4FGL_J2338.0-0230_daily_bin1279.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/67803/ft2_4FGL_J2338.0-0230_daily_bin1279.fits
.....................!
real 12.65
user 12.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/67803/ft1_filtered_4FGL_J2338.0-0230_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/67803/ft2_4FGL_J2338.0-0230_daily_bin1279.fits sctable="SC_DATA" expcube=/scratch/kocevski/67803/ltcube_570844801_571104001_4FGL_J2338.0-0230_daily_bin1279.fits outfile=/scratch/kocevski/67803/expmap_570844801_571104001_4FGL_J2338.0-0230_daily_bin1279.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/67803/ltcube_570844801_571104001_4FGL_J2338.0-0230_daily_bin1279.fits
.....................!
real 193.85
user 188.05
sys 5.39

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/67803/ft1_filtered_4FGL_J2338.0-0230_daily_bin1279.fits scfile=/scratch/kocevski/67803/ft2_4FGL_J2338.0-0230_daily_bin1279.fits outfile=/scratch/kocevski/67803/cmap_570844801_571104001_4FGL_J2338.0-0230_daily_bin1279.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/67803/ft1_filtered_4FGL_J2338.0-0230_daily_bin1279.fits scfile=/scratch/kocevski/67803/ft2_4FGL_J2338.0-0230_daily_bin1279.fits outfile=/scratch/kocevski/67803/cmap_HighResolution_570844801_571104001_4FGL_J2338.0-0230_daily_bin1279.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/67803/ft1_filtered_4FGL_J2338.0-0230_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/67803/ft2_4FGL_J2338.0-0230_daily_bin1279.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/67803/Model_4FGL_J2338.0-0230_daily_bin1279.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/67803/ft1_filtered_4FGL_J2338.0-0230_daily_bin1279.fits.....................!
real 53.02
user 51.61
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    29.773       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8393       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .37408E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.509       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.3238       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.8563       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .52395E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .20467E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10568E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    116.22       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1024       1.0000         .10000E-03   10000.    
    22 'Prefactor '    48.621       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.589       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.5337       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .68345E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99665       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .85086       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=   5049.379     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3319 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8227        .29395E-07** at limit **
   2  Prefactor     29.770        35.426        .22895E-06   -.28048E-04
   3  Prefactor     6.8363        9.9372        .15141E-06   -.29836E-05
   4  Prefactor     .10000E-03    1.4951        .53843E-07** at limit **
   5  norm          .10674E-03    .94644        .60054E-08** at limit **
   6  Prefactor     15.507        11.463        .18195E-06   -.42058E-04
   7  norm          .10000E-03    .80816        .41951E-07** at limit **
   8  norm          7.3171        21.452        .10400E-05    .12946E-05
   9  Prefactor     .10000E-03    12.555        .59551E-07** at limit **
  10  Prefactor     .10000E-03    109.96        .32675E-07** at limit **
  11  Prefactor     .10000E-03    15.566       -.36329E-06** at limit **
  12  norm          .10000E-03    .64922       -.35460E-06** at limit **
  13  norm          8.8565        8.5383        .13284E-05   -.11808E-03
  14  Prefactor     .10000E-03    3.5943        .54604E-07** at limit **
  15  Prefactor     .10000E-03    22.803       -.32744E-06** at limit **
  16  Prefactor     .10084E-03    1017.7       -.29365E-04** at limit **
  17  Prefactor     .10000E-03    24.322       -.42407E-05** at limit **
  18  Prefactor     .10000E-03    8.6785        .53126E-07** at limit **
  19  norm          .10000E-03    16.008       -.11155E-05** at limit **
  20  Prefactor     116.20        87.392       -.14829E-05   -.37865E-04
  21  Prefactor     4.1143        5.2694        .47164E-05   -.32424E-03
  22  Prefactor     48.600        41.003       -.45458E-06   -.48900E-04
  23  Prefactor     12.581        23.969        .11783E-05   -.97393E-05
  24  Prefactor     9.5190        17.475       -.17707E-06    .94407E-05
  25  Prefactor     .10001E-03    6.2121        .14419E-05** at limit **
  26  Normalizat    .99706        .22275       -.27180E-05   -.19558E-04
  27  Prefactor     .85066        .14844       -.47852E-06   -.66392E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 29.7701
  Prefactor  = 6.83635
  Prefactor  = 0.0001
  norm       = 0.00010674
  Prefactor  = 15.5075
  norm       = 0.0001
  norm       = 7.31705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.85646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100837
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 116.203
  Prefactor  = 4.11425
  Prefactor  = 48.6
  Prefactor  = 12.5809
  Prefactor  = 9.51905
  Prefactor  = 0.000100007
  Normalizat = 0.997056
  Prefactor  = 0.850662
 **********
 **   18 **HESSE 
 **********

 FCN=   5049.379     FROM HESSE     STATUS=OK           494 CALLS     3813 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8251        .11658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.770        35.439        .73427E-04   -1.4616    
   3  Prefactor     6.8363        9.9520        .15342E-03   -1.5185    
   4  Prefactor     .10000E-03    1.4978        .84831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10674E-03    3.1533        .23732E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.507        11.464        .10170E-03   -1.4920    
   7  norm          .10000E-03    .81060        .62348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.3171        21.448        .14821E-03   -1.5167    
   9  Prefactor     .10000E-03    12.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    110.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .67713        .11172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.8565        8.5110        .67343E-03   -1.5113    
  14  Prefactor     .10000E-03    3.6060        .13157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10084E-03    1059.8        .19137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.6986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    16.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     116.20        87.528        .18661E-03   -1.3548    
  21  Prefactor     4.1143        5.3301        .86900E-03   -1.5302    
  22  Prefactor     48.600        40.999        .57508E-04   -1.4313    
  23  Prefactor     12.581        23.996        .11290E-03   -1.4998    
  24  Prefactor     9.5190        17.540        .12979E-03   -1.5091    
  25  Prefactor     .10001E-03    18.550        .33650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .99706        .25624        .26893E-03   -.93129    
  27  Prefactor     .85066        .17166        .21293E-03   -.97887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80867e-09
Minuit parameter uncertainties:
  1  1.03524e-06
  2  35.4636
  3  9.95445
  4  1.65675e-06
  5  0.00922068
  6  11.4655
  7  1.03737e-06
  8  21.4711
  9  3.46364e-06
  10  0.000198253
  11  3.12374e-05
  12  6.79916e-06
  13  8.51217
  14  4.14594e-06
  15  0.000107907
  16  0.06069
  17  0.000549273
  18  1.05472e-05
  19  0.000128253
  20  87.6253
  21  5.33071
  22  41.0229
  23  24.0148
  24  17.5497
  25  0.000698449
  26  0.256561
  27  0.171772
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  4.114e+00  5.331e+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:  8.507e-01  1.718e-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.971e-01  2.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/67803/likelihoodResults_570844801_571104001_4FGL_J2338.0-0230_daily_bin1279.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) = 5048.89382451
delta logL = 0.485575680264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5048.89277176
delta logL = 0.48662843149

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4098       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3733       1.0000          .0000       10.000    
     3 'Normalizat'    .94676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87268       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=   5048.893     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      232 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4093        40.346        .65931E-02    .45005E-03
   2  Index         3.3735        3.5090        .17029        .86555E-04
   3  Normalizat    .94683        .60950E-01    .45496E-01   -.10123E-04
   4  Prefactor     .87270        .44211E-01    .44656E-01   -.25052E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.40934
  Index      = 3.37351
  Normalizat = 0.946827
  Prefactor  = 0.872704
 **********
 **   18 **HESSE 
 **********

 FCN=   5048.893     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4093        4.4603        .88543E-04   -1.5398    
   2  Index         3.3735        1.1506        .58188E-02   -.33133    
   3  Normalizat    .94683        .24027        .27497E-03   -.94834    
   4  Prefactor     .87270        .17273        .21042E-03   -.97102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60418e-11
Minuit parameter uncertainties:
  1  4.46091
  2  1.16225
  3  0.240548
  4  0.172836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/67803': 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) = 5048.89277124
delta logL = 0.486628954687

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  2.409e+00  4.461e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  3.374e+00  1.162e+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:  8.727e-01  1.728e-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.468e-01  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 3.37 +/- 1.16
Photon Flux (Free Index): 8.93e-08 +/- 8.01e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.36e-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/67803/cmap_HighResolution_570844801_571104001_4FGL_J2338.0-0230_daily_bin1279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', energy_flux2='1.54e-05', dlogl='4.87e-01', photon_flux2='8.93e-08', job_status='DONE', time_completed='2021-09-30 02:36:11.362857', photon_index_error2='1.16', photon_index2='3.37', ts='0.77', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='1.36e-05', EG='1.00', time_epoch_completed='1632994571.36', return_code='0', job_id='67803', GAL2='0.87', EG2='0.95', return_code2='0', photon_flux_error2='8.01e-08', ts2='1.82', photon_index='2.49' WHERE bin_id='1279' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:36:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 67803: <4FGL_J2338.0-0230_daily_bin1279> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1279 354.509 -2.5106 570844801 571104001 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 :                                   639.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             377.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            659 sec.

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

