/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 2 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7397
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2338.0-0230_daily_bin823
RA = 354.509, Dec = -2.5106
tmin = 452649601, tmax = 452908801
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='63339', job_status='RUN', time_executed='2021-09-30 02:15:46.934718', time_epoch_executed='1632993346.93' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='823'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63339

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63339/ft1_4FGL_J2338.0-0230_daily_bin823.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63339/ft2_4FGL_J2338.0-0230_daily_bin823.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63339/ft1_4FGL_J2338.0-0230_daily_bin823.fits outfile=/scratch/kocevski/63339/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin823.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=452649601.0 tmax=452908801.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.41
user 3.19
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/63339/ft1_filtered_4FGL_J2338.0-0230_daily_bin823.fits" evtable="EVENTS" scfile=/scratch/kocevski/63339/ft2_4FGL_J2338.0-0230_daily_bin823.fits sctable="SC_DATA" outfile=/scratch/kocevski/63339/ltcube_452649601_452908801_4FGL_J2338.0-0230_daily_bin823.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/63339/ft2_4FGL_J2338.0-0230_daily_bin823.fits
.....................!
real 12.03
user 11.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63339/ft1_filtered_4FGL_J2338.0-0230_daily_bin823.fits evtable="EVENTS" scfile=/scratch/kocevski/63339/ft2_4FGL_J2338.0-0230_daily_bin823.fits sctable="SC_DATA" expcube=/scratch/kocevski/63339/ltcube_452649601_452908801_4FGL_J2338.0-0230_daily_bin823.fits outfile=/scratch/kocevski/63339/expmap_452649601_452908801_4FGL_J2338.0-0230_daily_bin823.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/63339/ltcube_452649601_452908801_4FGL_J2338.0-0230_daily_bin823.fits
.....................!
real 191.48
user 186.07
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/63339/ft1_filtered_4FGL_J2338.0-0230_daily_bin823.fits scfile=/scratch/kocevski/63339/ft2_4FGL_J2338.0-0230_daily_bin823.fits outfile=/scratch/kocevski/63339/cmap_452649601_452908801_4FGL_J2338.0-0230_daily_bin823.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63339/ft1_filtered_4FGL_J2338.0-0230_daily_bin823.fits scfile=/scratch/kocevski/63339/ft2_4FGL_J2338.0-0230_daily_bin823.fits outfile=/scratch/kocevski/63339/cmap_HighResolution_452649601_452908801_4FGL_J2338.0-0230_daily_bin823.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/63339/ft1_filtered_4FGL_J2338.0-0230_daily_bin823.fits evtable="EVENTS" scfile=/scratch/kocevski/63339/ft2_4FGL_J2338.0-0230_daily_bin823.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/63339/Model_4FGL_J2338.0-0230_daily_bin823.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/63339/ft1_filtered_4FGL_J2338.0-0230_daily_bin823.fits.....................!
real 63.26
user 61.87
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.380       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.881       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3370       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4311       1.0000         .10000E-03   10000.    
     7 'norm      '    6.9804       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.261       1.0000         .10000E-03   10000.    
    10 'Prefactor '    76.360       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .90175       1.0000         .10000E-03   10000.    
    13 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    289.41       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12356E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.5418       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.4975       1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.642       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.738       1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.493       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .69788       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96455       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=   6694.993     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3767 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.380        12.068       -.88858E-06   -.34102E-05
   2  Prefactor     35.888        55.366        .10204E-04    .36164E-05
   3  Prefactor     .10000E-03    9.9454       -.60609E-07** at limit **
   4  Prefactor     .10000E-03    7.3988        .13915E-05** at limit **
   5  norm          2.3363        2.5505       -.13190E-06   -.43475E-03
   6  Prefactor     1.4338        79.082       -.13264E-05   -.12304E-03
   7  norm          6.9783        5.5638       -.17200E-05   -.28894E-03
   8  norm          .10000E-03    3.0904       -.20937E-06** at limit **
   9  Prefactor     51.260        20.352       -.75067E-06    .83517E-04
  10  Prefactor     76.374        47.049        .12721E-04    .85154E-04
  11  Prefactor     .10000E-03    3.0088       -.11762E-07** at limit **
  12  norm          .90134        .90721       -.46840E-06   -.39603E-03
  13  norm          .10000E-03    1.7949       -.10343E-06** at limit **
  14  Prefactor     .10000E-03    6.5242        .25558E-06** at limit **
  15  Prefactor     .10000E-03    15.577        .34560E-06** at limit **
  16  Prefactor     289.44        229.18        .16067E-04    .12845E-03
  17  Prefactor     .10046E-03    8.5368       -.23292E-05** at limit **
  18  Prefactor     .10000E-03    40.064        .15684E-04** at limit **
  19  norm          .10000E-03    15.448       -.64714E-06** at limit **
  20  Prefactor     9.5285        105.10       -.40021E-04    .11848E-04
  21  Prefactor     2.4940        3.8037       -.37271E-06    .45020E-03
  22  Prefactor     27.630        37.019       -.15775E-04    .10439E-03
  23  Prefactor     .10000E-03    6.9205       -.11691E-05** at limit **
  24  Prefactor     14.736        15.417       -.22510E-06    .77805E-04
  25  Prefactor     16.491        9.0749       -.65526E-06   -.12733E-02
  26  Normalizat    .69817        .19430        .27460E-05    .24726E-03
  27  Prefactor     .96435        .13039        .31877E-06    .34228E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3799
  Prefactor  = 35.8881
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.33628
  Prefactor  = 1.43377
  norm       = 6.97834
  norm       = 0.0001
  Prefactor  = 51.2597
  Prefactor  = 76.3736
  Prefactor  = 0.0001
  norm       = 0.901338
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 289.439
  Prefactor  = 0.000100456
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.52845
  Prefactor  = 2.49402
  Prefactor  = 27.6301
  Prefactor  = 0.0001
  Prefactor  = 14.7361
  Prefactor  = 16.4911
  Normalizat = 0.698167
  Prefactor  = 0.964349
 **********
 **   18 **HESSE 
 **********

 FCN=   6694.993     FROM HESSE     STATUS=OK           486 CALLS     4253 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.380        12.042        .10562E-03   -1.4949    
   2  Prefactor     35.888        55.215        .66904E-04   -1.4509    
   3  Prefactor     .10000E-03    9.9766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4968        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3363        2.5412        .12814E-03   -1.5402    
   6  Prefactor     1.4338        67.757        .36108E-03   -1.5468    
   7  norm          6.9783        5.1115        .12212E-03   -1.5180    
   8  norm          .10000E-03    3.1003        .14047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     51.260        20.362        .56015E-04   -1.4275    
  10  Prefactor     76.374        47.247        .45952E-04   -1.3958    
  11  Prefactor     .10000E-03    3.0123        .13851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .90134        .86387        .70804E-03   -1.5518    
  13  norm          .10000E-03    1.8035        .10701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.6071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     289.44        224.22        .11930E-03   -1.2289    
  17  Prefactor     .10046E-03    43.024        .40889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    40.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.5285        105.41        .12973E-03   -1.5091    
  21  Prefactor     2.4940        3.6294        .17419E-03   -1.5392    
  22  Prefactor     27.630        36.948        .76198E-04   -1.4656    
  23  Prefactor     .10000E-03    6.9349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.736        15.420        .10433E-03   -1.4940    
  25  Prefactor     16.491        9.1504        .49311E-03   -1.4896    
  26  Normalizat    .69817        .22362        .30931E-03   -1.0397    
  27  Prefactor     .96435        .15141        .20250E-03   -.93927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20084e-08
Minuit parameter uncertainties:
  1  12.0438
  2  55.2941
  3  1.76736e-06
  4  9.79008e-05
  5  2.54128
  6  19.7358
  7  5.11187
  8  4.84016e-06
  9  20.3647
  10  47.2706
  11  4.44762e-05
  12  0.863879
  13  1.3851e-05
  14  1.19895e-05
  15  3.27058e-05
  16  224.89
  17  0.00886422
  18  9.8392e-05
  19  5.9466e-05
  20  63.5269
  21  3.62972
  22  36.9783
  23  2.13603e-05
  24  15.4244
  25  9.15116
  26  0.223909
  27  0.151474
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  2.494e+00  3.630e+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:  9.643e-01  1.515e-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:  6.982e-01  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.80
Ra Dec: 354.509 -2.511
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/63339/likelihoodResults_452649601_452908801_4FGL_J2338.0-0230_daily_bin823.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) = 6694.98186024
delta logL = 0.0114662649758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6694.9813469
delta logL = 0.0119796076424

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5623       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3106       1.0000          .0000       10.000    
     3 'Normalizat'    .70372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96199       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6694.981     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      246 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5624        3.6793        .18108E-03   -.75516E-03
   2  Index         2.3103        1.1483        .14855E-01   -.62940E-04
   3  Normalizat    .70370        .19787        .30818E-03    .10451E-03
   4  Prefactor     .96199        .14892        .20272E-03    .15867E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.56244
  Index      = 2.31029
  Normalizat = 0.703704
  Prefactor  = 0.961993
 **********
 **   18 **HESSE 
 **********

 FCN=   6694.981     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5624        3.6830        .72431E-05   -1.5388    
   2  Index         2.3103        1.1488        .59420E-03   -.56799    
   3  Normalizat    .70370        .19793        .12327E-04   -1.0375    
   4  Prefactor     .96199        .14896        .40545E-04   -.94007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18884e-10
Minuit parameter uncertainties:
  1  3.68335
  2  1.16348
  3  0.19813
  4  0.149025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63339': 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) = 6694.98134686
delta logL = 0.0119796521794

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  2.562e+00  3.683e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.310e+00  1.163e+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:  9.620e-01  1.490e-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:  7.037e-01  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.80
Ra Dec: 354.509 -2.511

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/63339/cmap_HighResolution_452649601_452908801_4FGL_J2338.0-0230_daily_bin823.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.78e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-30 02:28:46.151601', job_id='63339', GAL2='0.96', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1632994126.15', return_code2='0', ts='0.80', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.20e-02', ts2='0.82', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='823' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:28:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 63339: <4FGL_J2338.0-0230_daily_bin823> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin823 354.509 -2.5106 452649601 452908801 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 :                                   773.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            792 sec.

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

