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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin419
RA = 354.509, Dec = -2.5106
tmin = 347932801, tmax = 348192001
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='61775', job_status='RUN', time_executed='2021-09-30 02:15:08.102099', time_epoch_executed='1632993308.1' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61775

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61775/ft1_4FGL_J2338.0-0230_daily_bin419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61775/ft2_4FGL_J2338.0-0230_daily_bin419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61775/ft1_4FGL_J2338.0-0230_daily_bin419.fits outfile=/scratch/kocevski/61775/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin419.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=347932801.0 tmax=348192001.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.20
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61775/ft1_filtered_4FGL_J2338.0-0230_daily_bin419.fits" evtable="EVENTS" scfile=/scratch/kocevski/61775/ft2_4FGL_J2338.0-0230_daily_bin419.fits sctable="SC_DATA" outfile=/scratch/kocevski/61775/ltcube_347932801_348192001_4FGL_J2338.0-0230_daily_bin419.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/61775/ft2_4FGL_J2338.0-0230_daily_bin419.fits
.....................!
real 11.87
user 11.49
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61775/ft1_filtered_4FGL_J2338.0-0230_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/61775/ft2_4FGL_J2338.0-0230_daily_bin419.fits sctable="SC_DATA" expcube=/scratch/kocevski/61775/ltcube_347932801_348192001_4FGL_J2338.0-0230_daily_bin419.fits outfile=/scratch/kocevski/61775/expmap_347932801_348192001_4FGL_J2338.0-0230_daily_bin419.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/61775/ltcube_347932801_348192001_4FGL_J2338.0-0230_daily_bin419.fits
.....................!
real 193.03
user 187.61
sys 5.04

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/61775/ft1_filtered_4FGL_J2338.0-0230_daily_bin419.fits scfile=/scratch/kocevski/61775/ft2_4FGL_J2338.0-0230_daily_bin419.fits outfile=/scratch/kocevski/61775/cmap_347932801_348192001_4FGL_J2338.0-0230_daily_bin419.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61775/ft1_filtered_4FGL_J2338.0-0230_daily_bin419.fits scfile=/scratch/kocevski/61775/ft2_4FGL_J2338.0-0230_daily_bin419.fits outfile=/scratch/kocevski/61775/cmap_HighResolution_347932801_348192001_4FGL_J2338.0-0230_daily_bin419.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/61775/ft1_filtered_4FGL_J2338.0-0230_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/61775/ft2_4FGL_J2338.0-0230_daily_bin419.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/61775/Model_4FGL_J2338.0-0230_daily_bin419.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/61775/ft1_filtered_4FGL_J2338.0-0230_daily_bin419.fits.....................!
real 53.44
user 52.12
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.201       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5192       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8063       1.0000         .10000E-03   10000.    
     7 'norm      '    .25226       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3223       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .46426E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4913       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3970       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0625       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.717       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.135       1.0000         .10000E-03   10000.    
    20 'Prefactor '    90.076       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    64.177       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2490       1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.432       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .91686       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1235       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81906       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=   5098.333     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3292 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.771       -.16569E-05** at limit **
   2  Prefactor     .10000E-03    15.429        .13981E-05** at limit **
   3  Prefactor     13.201        15.554       -.71455E-07    .56195E-04
   4  Prefactor     .10000E-03    1.7327        .15090E-06** at limit **
   5  norm          2.5195        3.2061       -.69573E-07    .18243E-03
   6  Prefactor     9.8064        12.029        .38122E-06    .21276E-03
   7  norm          .25452        3.7844       -.25082E-06    .24021E-03
   8  norm          .10000E-03    7.5925       -.45003E-06** at limit **
   9  Prefactor     .10000E-03    8.6473        .80851E-07** at limit **
  10  Prefactor     6.3874        76.275        .79855E-06   -.10625E-03
  11  Prefactor     .10000E-03    18.967        .12563E-04** at limit **
  12  norm          2.4913        1.4529       -.27374E-07   -.34850E-03
  13  norm          2.3997        5.4373        .17180E-05   -.27867E-04
  14  Prefactor     5.0627        7.7172       -.29782E-06    .41841E-03
  15  Prefactor     .10000E-03    22.343        .18650E-05** at limit **
  16  Prefactor     .10000E-03    70.312       -.47615E-06** at limit **
  17  Prefactor     13.712        24.105        .56005E-06   -.41977E-05
  18  Prefactor     .10000E-03    24.546       -.20215E-05** at limit **
  19  norm          13.137        38.740       -.13977E-05    .62795E-05
  20  Prefactor     90.077        71.555        .77698E-06    .26537E-05
  21  Prefactor     .10000E-03    1.5872       -.16085E-06** at limit **
  22  Prefactor     64.176        42.559       -.10799E-06    .42370E-04
  23  Prefactor     3.2460        31.676       -.13652E-05    .81280E-05
  24  Prefactor     27.433        17.867       -.36149E-07    .93939E-04
  25  Prefactor     .91716        6.0250        .11683E-05   -.10251E-03
  26  Normalizat    1.1233        .23123       -.40654E-06    .20597E-03
  27  Prefactor     .81916        .15764        .22556E-05    .54449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2013
  Prefactor  = 0.0001
  norm       = 2.51953
  Prefactor  = 9.80636
  norm       = 0.254519
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.38743
  Prefactor  = 0.000100001
  norm       = 2.49126
  norm       = 2.39975
  Prefactor  = 5.06272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7125
  Prefactor  = 0.0001
  norm       = 13.1371
  Prefactor  = 90.0767
  Prefactor  = 0.0001
  Prefactor  = 64.1757
  Prefactor  = 3.24601
  Prefactor  = 27.433
  Prefactor  = 0.917161
  Normalizat = 1.12333
  Prefactor  = 0.819162
 **********
 **   18 **HESSE 
 **********

 FCN=   5098.333     FROM HESSE     STATUS=OK           492 CALLS     3784 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.201        15.521        .11024E-03   -1.4981    
   4  Prefactor     .10000E-03    1.7336        .91709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5195        3.1886        .13058E-03   -1.5390    
   6  Prefactor     9.8064        11.961        .12796E-03   -1.5082    
   7  norm          .25452        3.9138        .26264E-02   -1.5607    
   8  norm          .10000E-03    7.6309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.6555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.3874        76.925        .15964E-03   -1.5202    
  11  Prefactor     .10000E-03    19.108        .34729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4913        1.4447        .59291E-04   -1.5392    
  13  norm          2.3997        5.3515        .23400E-03   -1.5398    
  14  Prefactor     5.0627        7.7398        .89353E-03   -1.5258    
  15  Prefactor     .10000E-03    22.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    70.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.712        24.506        .10815E-03   -1.4967    
  18  Prefactor     .10000E-03    24.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.137        39.367        .11052E-03   -1.4983    
  20  Prefactor     90.077        71.690        .42338E-04   -1.3807    
  21  Prefactor     .10000E-03    1.5923        .87830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     64.176        42.572        .50094E-04   -1.4104    
  23  Prefactor     3.2460        31.687        .22470E-03   -1.5348    
  24  Prefactor     27.433        17.900        .76489E-04   -1.4660    
  25  Prefactor     .91716        23.950        .31886E-02   -1.5516    
  26  Normalizat    1.1233        .27425        .26989E-03   -.89006    
  27  Prefactor     .81916        .18750        .22874E-03   -.99026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65155e-09
Minuit parameter uncertainties:
  1  6.58097e-05
  2  1.62887e-05
  3  15.5253
  4  9.2342e-06
  5  3.1888
  6  11.9642
  7  1.9959
  8  6.00383e-05
  9  4.80312e-05
  10  44.4039
  11  0.000217677
  12  1.44472
  13  5.35259
  14  7.74129
  15  6.4494e-05
  16  6.37488e-05
  17  24.5237
  18  5.1912e-05
  19  39.4454
  20  71.7589
  21  1.43178e-05
  22  42.5924
  23  20.2973
  24  17.9035
  25  9.37733
  26  0.274603
  27  0.187649
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  1.432e-05  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.192e-01  1.876e-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.123e+00  2.746e-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: 7.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61775/likelihoodResults_347932801_348192001_4FGL_J2338.0-0230_daily_bin419.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) = 5098.33578667
delta logL = -0.00294430237773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5098.33284229
delta logL = 7.89814293967e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4813       1.0000          .0000       10.000    
     3 'Normalizat'    1.1233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81918       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=   5098.333     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      248 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.664        .88147E-02** at limit **
   2  Index         2.0580        7.6596        .50000        .52489E-06
   3  Normalizat    1.1233        .15916E-01    .26990E-03   -.66801E-02
   4  Prefactor     .81915        .11773E-01    .22874E-03   -.78404E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.05795
  Normalizat = 1.12331
  Prefactor  = 0.819146
 **********
 **   18 **HESSE 
 **********

 FCN=   5098.333     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    140.79        .91919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0580        7.5894        .50000       -.62909    
   3  Normalizat    1.1233        .54268E-01    .53979E-04   -.89007    
   4  Prefactor     .81915        .40141E-01    .45747E-04   -.99026    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.13687e-08
Minuit parameter uncertainties:
  1  0.000688153
  2  774.086
  3  0.054271
  4  0.040142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61775': 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) = 5098.33283974
delta logL = 2.62953653873e-06

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  6.882e-04  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.058e+00  7.741e+02  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.191e-01  4.014e-02  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.123e+00  5.427e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/61775/cmap_HighResolution_347932801_348192001_4FGL_J2338.0-0230_daily_bin419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', job_status='DONE', photon_flux_upper_limit='7.95e-08', time_completed='2021-09-30 02:25:58.949345', job_id='61775', GAL2='0.82', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1632993958.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.63e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='419' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:25:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 61775: <4FGL_J2338.0-0230_daily_bin419> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin419> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:11:13 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:11:15 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:11:15 2021
Terminated at Thu Sep 30 02:25:59 2021
Results reported at Thu Sep 30 02:25:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin419 354.509 -2.5106 347932801 348192001 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 :                                   649.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             228.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            886 sec.

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

