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


Performing analysis on: 4FGL_J1513.4-3231_daily_bin1445
RA = 228.369, Dec = -32.5265
tmin = 613872001, tmax = 614131201
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='340510', job_status='RUN', time_executed='2021-09-11 16:28:02.839047', time_epoch_executed='1631402882.84' WHERE source_name='4FGL J1513.4-3231' and cadence='daily' and bin_id='1445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/340510

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/340510/ft1_4FGL_J1513.4-3231_daily_bin1445.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/340510/ft2_4FGL_J1513.4-3231_daily_bin1445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/340510/ft1_4FGL_J1513.4-3231_daily_bin1445.fits outfile=/scratch/kocevski/340510/ft1_filteredMKT_4FGL_J1513.4-3231_daily_bin1445.fits ra=228.369 dec=-32.5265 rad=12.0 tmin=613872001.0 tmax=614131201.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 2.75
user 2.07
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/340510/ft2_4FGL_J1513.4-3231_daily_bin1445.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/340510/ft2_4FGL_J1513.4-3231_daily_bin1445.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/340510/ft1_filteredMKT_4FGL_J1513.4-3231_daily_bin1445.fits evtable="EVENTS" outfile="/scratch/kocevski/340510/ft1_filtered_4FGL_J1513.4-3231_daily_bin1445.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/340510/ft1_filtered_4FGL_J1513.4-3231_daily_bin1445.fits" evtable="EVENTS" scfile=/scratch/kocevski/340510/ft2_4FGL_J1513.4-3231_daily_bin1445.fits sctable="SC_DATA" outfile=/scratch/kocevski/340510/ltcube_613872001_614131201_4FGL_J1513.4-3231_daily_bin1445.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/340510/ft2_4FGL_J1513.4-3231_daily_bin1445.fits
.....................!
real 16.54
user 16.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/340510/ft1_filtered_4FGL_J1513.4-3231_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/340510/ft2_4FGL_J1513.4-3231_daily_bin1445.fits sctable="SC_DATA" expcube=/scratch/kocevski/340510/ltcube_613872001_614131201_4FGL_J1513.4-3231_daily_bin1445.fits outfile=/scratch/kocevski/340510/expmap_613872001_614131201_4FGL_J1513.4-3231_daily_bin1445.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/340510/ltcube_613872001_614131201_4FGL_J1513.4-3231_daily_bin1445.fits
.....................!
real 191.43
user 185.59
sys 5.44

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
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Added 269 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1513.4-3231 @ 228.369 -32.5265

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/340510/ft1_filtered_4FGL_J1513.4-3231_daily_bin1445.fits scfile=/scratch/kocevski/340510/ft2_4FGL_J1513.4-3231_daily_bin1445.fits outfile=/scratch/kocevski/340510/cmap_613872001_614131201_4FGL_J1513.4-3231_daily_bin1445.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=228.369 yref=-32.5265 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/340510/ft1_filtered_4FGL_J1513.4-3231_daily_bin1445.fits scfile=/scratch/kocevski/340510/ft2_4FGL_J1513.4-3231_daily_bin1445.fits outfile=/scratch/kocevski/340510/cmap_HighResolution_613872001_614131201_4FGL_J1513.4-3231_daily_bin1445.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=228.369 yref=-32.5265 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/340510/ft1_filtered_4FGL_J1513.4-3231_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/340510/ft2_4FGL_J1513.4-3231_daily_bin1445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/340510/Model_4FGL_J1513.4-3231_daily_bin1445.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 FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FHES J1626.9-2431
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1616-508
Working on...
/scratch/kocevski/340510/ft1_filtered_4FGL_J1513.4-3231_daily_bin1445.fits.......................!
real 27.70
user 26.32
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/340510/ft1_filtered_4FGL_J1513.4-3231_daily_bin1445.fits', '/scratch/kocevski/340510/ft2_4FGL_J1513.4-3231_daily_bin1445.fits', expMap='/scratch/kocevski/340510/expmap_613872001_614131201_4FGL_J1513.4-3231_daily_bin1445.fits', expCube='/scratch/kocevski/340510/ltcube_613872001_614131201_4FGL_J1513.4-3231_daily_bin1445.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/340510/Model_4FGL_J1513.4-3231_daily_bin1445.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1513.4-3231'

4FGL J1513.4-3231
   Spectrum: LogParabola
350         norm:  2.009e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.360e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
352         beta:  1.374e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  8.240e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/340510/ft1_filtered_4FGL_J1513.4-3231_daily_bin1445.fits
Spacecraft file(s): /scratch/kocevski/340510/ft2_4FGL_J1513.4-3231_daily_bin1445.fits
Exposure map: /scratch/kocevski/340510/expmap_613872001_614131201_4FGL_J1513.4-3231_daily_bin1445.fits
Exposure cube: /scratch/kocevski/340510/ltcube_613872001_614131201_4FGL_J1513.4-3231_daily_bin1445.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/340510/Model_4FGL_J1513.4-3231_daily_bin1445.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) = 1605.68258258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.201       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29915E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12341E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11796E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19930E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.595       1.0000         .10000E-03   10000.    
    14 'norm      '    20.048       1.0000         .10000E-03   10000.    
    15 'norm      '    164.04       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.828       1.0000         .10000E-03   10000.    
    19 'Prefactor '    312.89       1.0000         .10000E-03   10000.    
    20 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .11510E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3027       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9500E+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=   1605.625     FROM MIGRAD    STATUS=CONVERGED    903 CALLS     2870 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.203        39.540        .11971E-03    .49551E-04
   2  norm          .10000E-03    7.0047        .10335E-02** at limit **
   3  Prefactor     .49379        119.02        .11305        .46769E-04
   4  Prefactor     .10000E-03    87.222        .18142E-02** at limit **
   5  Prefactor     .10000E-03    23.188        .18142E-02** at limit **
   6  Prefactor     .10000E-03    34.644        .18142E-02** at limit **
   7  norm          .10000E-03    55.310        .18142E-02** at limit **
   8  Prefactor     .10000E-03    321.82        .18142E-02** at limit **
   9  Prefactor     .10000E-03    76.752        .18142E-02** at limit **
  10  Prefactor     .10000E-03    124.51        .18142E-02** at limit **
  11  norm          .10000E-03    5.2145        .13607E-02** at limit **
  12  Prefactor     .10000E-03    197.11        .18142E-02** at limit **
  13  Prefactor     43.691        61.362        .60718E-04    .18817E-04
  14  norm          20.034        39.443        .89452E-04    .39748E-04
  15  norm          164.38        305.35        .15745E-03    .15488E-04
  16  norm          .10000E-03    1.1085        .40924E-03** at limit **
  17  Prefactor     .10000E-03    22.130        .18142E-02** at limit **
  18  norm          11.834        21.226        .11648E-03    .14226E-04
  19  Prefactor     312.01        651.22        .11488E-03    .67443E-05
  20  norm          .10000E-03    182.84        .18142E-02** at limit **
  21  Normalizat    .10000E-01    2.1037        .29947    ** at limit **
  22  Prefactor     1.3030        .23551        .14820E-03    .27271E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2029
  norm       = 0.0001
  Prefactor  = 0.493786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.6913
  norm       = 20.0338
  norm       = 164.383
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.8335
  Prefactor  = 312.007
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.303
 **********
 **   18 **HESSE 
 **********

 FCN=   1605.625     FROM HESSE     STATUS=OK           340 CALLS     3210 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.203        39.536        .47883E-05   -1.5038    
   2  norm          .10000E-03    7.0052        .20670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .49379        114.55        .11599       -1.5567    
   4  Prefactor     .10000E-03    87.225        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.189        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.644        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    55.314        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    321.82        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    76.754        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    124.51        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.2250        .27214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    197.14        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     43.691        61.364        .24287E-05   -1.4385    
  14  norm          20.034        39.441        .35781E-05   -1.4812    
  15  norm          164.38        305.33        .31490E-04   -1.3137    
  16  norm          .10000E-03    1.1085        .81848E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.834        21.226        .46592E-05   -1.5020    
  19  Prefactor     312.01        651.20        .22976E-04   -1.2157    
  20  norm          .10000E-03    182.84        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    2.1052        .29947       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.3030        .23558        .29639E-04   -.83218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.41411e-10
Minuit parameter uncertainties:
  1  39.6284
  2  8.42823e-06
  3  15.0691
  4  2.02312e-05
  5  5.02674e-06
  6  1.44215e-06
  7  4.86348e-05
  8  0.000513074
  9  6.32369e-05
  10  9.15924e-05
  11  8.963e-05
  12  0.000139716
  13  61.4526
  14  39.4925
  15  308.338
  16  9.43028e-07
  17  2.82261e-05
  18  21.2393
  19  667.478
  20  0.000183269
  21  3.52286e-05
  22  0.235771
Done.

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

Extracting fit parameters...

4FGL J1513.4-3231
   Spectrum: LogParabola
350         norm:  2.003e+01  3.949e+01  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.360e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
352         beta:  1.374e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  8.240e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
944    Prefactor:  1.303e+00  2.358e-01  0.000e+00  1.000e+01 ( 1.000e+00)
945        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
946        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
928   Normalization:  1.000e-02  3.523e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.35
Ra Dec: 228.369 -32.526
Photon Flux Upper Limit: 8.76e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.06e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/340510/likelihoodResults_613872001_614131201_4FGL_J1513.4-3231_daily_bin1445.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) = 1605.50741914
delta logL = 0.117594068407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1605.50385926
delta logL = 0.121153952765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.480       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9871       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2916       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9500E+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=   1605.504     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      263 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.486        32.727        .95796E-04   -.77776E-03
   2  alpha         2.9862        1.2462        .13119E-01   -.13648E-03
   3  Normalizat    .10000E-01    6.9081        .18660E-01** at limit **
   4  Prefactor     1.2915        .13468        .14854E-03    .52054E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.4855
  alpha      = 2.98618
  Normalizat = 0.01
  Prefactor  = 1.29149
 **********
 **   18 **HESSE 
 **********

 FCN=   1605.504     FROM HESSE     STATUS=OK            23 CALLS      286 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.486        31.262        .19159E-04   -1.4871    
   2  alpha         2.9862        1.1946        .52478E-03    .19572    
   3  Normalizat    .10000E-01    6.9170        .37320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2915        .13370        .29708E-04   -.83560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52022e-09
Minuit parameter uncertainties:
  1  31.2911
  2  1.24771
  3  1.33124e-06
  4  0.133735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/340510': 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) = 1605.50385845
delta logL = 0.121154753727

Extracting fit parameters...

4FGL J1513.4-3231
   Spectrum: LogParabola
350         norm:  1.749e+01  3.129e+01  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.986e+00  1.248e+00  0.000e+00  5.000e+00 ( 1.000e+00)
352         beta:  1.374e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  8.240e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
944    Prefactor:  1.291e+00  1.337e-01  0.000e+00  1.000e+01 ( 1.000e+00)
945        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
946        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
928   Normalization:  1.000e-02  1.331e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
Ra Dec: 228.369 -32.526

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/340510/cmap_HighResolution_613872001_614131201_4FGL_J1513.4-3231_daily_bin1445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-04', job_status='DONE', photon_flux_upper_limit='8.76e-07', time_completed='2021-09-11 16:36:13.775116', job_id='340510', GAL2='1.29', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631403373.78', return_code2='0', ts='0.35', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='1.21e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1445' AND source_name='4FGL J1513.4-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 16:36:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 340510: <4FGL_J1513.4-3231_daily_bin1445> in cluster <slac> Done

Job <4FGL_J1513.4-3231_daily_bin1445> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 16:26:14 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 16:26:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 16:26:16 2021
Terminated at Sat Sep 11 16:36:14 2021
Results reported at Sat Sep 11 16:36:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1513.4-3231_daily_bin1445 228.369 -32.5265 613872001 614131201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1513.4-3231 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   483.24 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             300.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            600 sec.

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

