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


Performing analysis on: 4FGL_J1513.4-3231_daily_bin1622
RA = 228.369, Dec = -32.5265
tmin = 659750401, tmax = 660009601
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='380357', job_status='RUN', time_executed='2021-12-08 01:59:43.749594', time_epoch_executed='1638957583.75' WHERE source_name='4FGL J1513.4-3231' and cadence='daily' and bin_id='1622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380357

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380357/ft1_4FGL_J1513.4-3231_daily_bin1622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380357/ft2_4FGL_J1513.4-3231_daily_bin1622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380357/ft1_4FGL_J1513.4-3231_daily_bin1622.fits outfile=/scratch/kocevski/380357/ft1_filteredMKT_4FGL_J1513.4-3231_daily_bin1622.fits ra=228.369 dec=-32.5265 rad=12.0 tmin=659750401.0 tmax=660009601.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.39
user 2.18
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380357/ft2_4FGL_J1513.4-3231_daily_bin1622.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/380357/ft1_filteredMKT_4FGL_J1513.4-3231_daily_bin1622.fits evtable="EVENTS" outfile="/scratch/kocevski/380357/ft1_filtered_4FGL_J1513.4-3231_daily_bin1622.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380357/ft1_filtered_4FGL_J1513.4-3231_daily_bin1622.fits" evtable="EVENTS" scfile=/scratch/kocevski/380357/ft2_4FGL_J1513.4-3231_daily_bin1622.fits sctable="SC_DATA" outfile=/scratch/kocevski/380357/ltcube_659750401_660009601_4FGL_J1513.4-3231_daily_bin1622.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/380357/ft2_4FGL_J1513.4-3231_daily_bin1622.fits
.....................!
real 15.40
user 14.94
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380357/ft1_filtered_4FGL_J1513.4-3231_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/380357/ft2_4FGL_J1513.4-3231_daily_bin1622.fits sctable="SC_DATA" expcube=/scratch/kocevski/380357/ltcube_659750401_660009601_4FGL_J1513.4-3231_daily_bin1622.fits outfile=/scratch/kocevski/380357/expmap_659750401_660009601_4FGL_J1513.4-3231_daily_bin1622.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/380357/ltcube_659750401_660009601_4FGL_J1513.4-3231_daily_bin1622.fits
.....................!
real 193.18
user 187.83
sys 4.73

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/380357/ft1_filtered_4FGL_J1513.4-3231_daily_bin1622.fits scfile=/scratch/kocevski/380357/ft2_4FGL_J1513.4-3231_daily_bin1622.fits outfile=/scratch/kocevski/380357/cmap_659750401_660009601_4FGL_J1513.4-3231_daily_bin1622.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/380357/ft1_filtered_4FGL_J1513.4-3231_daily_bin1622.fits scfile=/scratch/kocevski/380357/ft2_4FGL_J1513.4-3231_daily_bin1622.fits outfile=/scratch/kocevski/380357/cmap_HighResolution_659750401_660009601_4FGL_J1513.4-3231_daily_bin1622.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/380357/ft1_filtered_4FGL_J1513.4-3231_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/380357/ft2_4FGL_J1513.4-3231_daily_bin1622.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/380357/Model_4FGL_J1513.4-3231_daily_bin1622.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/380357/ft1_filtered_4FGL_J1513.4-3231_daily_bin1622.fits......................!
real 21.92
user 20.65
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/380357/ft1_filtered_4FGL_J1513.4-3231_daily_bin1622.fits', '/scratch/kocevski/380357/ft2_4FGL_J1513.4-3231_daily_bin1622.fits', expMap='/scratch/kocevski/380357/expmap_659750401_660009601_4FGL_J1513.4-3231_daily_bin1622.fits', expCube='/scratch/kocevski/380357/ltcube_659750401_660009601_4FGL_J1513.4-3231_daily_bin1622.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/380357/Model_4FGL_J1513.4-3231_daily_bin1622.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/380357/ft1_filtered_4FGL_J1513.4-3231_daily_bin1622.fits
Spacecraft file(s): /scratch/kocevski/380357/ft2_4FGL_J1513.4-3231_daily_bin1622.fits
Exposure map: /scratch/kocevski/380357/expmap_659750401_660009601_4FGL_J1513.4-3231_daily_bin1622.fits
Exposure cube: /scratch/kocevski/380357/ltcube_659750401_660009601_4FGL_J1513.4-3231_daily_bin1622.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/380357/Model_4FGL_J1513.4-3231_daily_bin1622.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) = 1019.4303833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.6440       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.659       1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.201       1.0000         .10000E-03   10000.    
     7 'norm      '    .11022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20877E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1101.6       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.200       1.0000         .10000E-03   10000.    
    14 'norm      '    .12303E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12128E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .84485       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.6617       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21656E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10000.       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10142       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0162       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1018.045     FROM MIGRAD    STATUS=CONVERGED     94 CALLS     2374 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.850       -.30050E-05** at limit **
   2  norm          3.6405        7.3068       -.63064E-06   -.53599E-05
   3  Prefactor     .10010E-03    20.178        .59026E-06** at limit **
   4  Prefactor     .10018E-03    20.375        .13854E-06** at limit **
   5  Prefactor     28.640        3.9677       -.13276E-06    .14101E-02
   6  Prefactor     36.164        8.2610       -.23778E-06    .50914E-02
   7  norm          .10000E-03    28.257        .18788E-06** at limit **
   8  Prefactor     .12186E-03    58.942       -.28264E-05** at limit **
   9  Prefactor     .10004E-03    24.681        .60345E-06** at limit **
  10  Prefactor     1101.6        1.0025        .39396E-09   -.22594E-03
  11  norm          .10000E-03    1.4299       -.35283E-07** at limit **
  12  Prefactor     .10009E-03    16.400        .26022E-06** at limit **
  13  Prefactor     16.181        3.8166       -.16793E-06    .80159E-03
  14  norm          .10008E-03    108.59       -.32261E-05** at limit **
  15  norm          .13637E-03    334.35       -.70212E-05** at limit **
  16  norm          .84194        2.5559        .75723E-06    .10588E-03
  17  Prefactor     .10000E-03    20.000       -.14526E-05** at limit **
  18  norm          8.6445        2.4763       -.37155E-07    .15552E-02
  19  Prefactor     .57059E-02    25.564       -.17545E-05    .13283E-02
  20  norm         10000.0        4.8862        .74892E-06   -.63095E-03
  21  Normalizat    .10278        1.6701       -.17631E-04    .52736E-05
  22  Prefactor     1.0159        .27556        .39813E-05    .78215E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.64054
  Prefactor  = 0.000100101
  Prefactor  = 0.000100181
  Prefactor  = 28.64
  Prefactor  = 36.1641
  norm       = 0.000100003
  Prefactor  = 0.000121863
  Prefactor  = 0.000100036
  Prefactor  = 1101.56
  norm       = 0.0001
  Prefactor  = 0.000100092
  Prefactor  = 16.1807
  norm       = 0.000100075
  norm       = 0.000136366
  norm       = 0.841942
  Prefactor  = 0.0001
  norm       = 8.64452
  Prefactor  = 0.00570586
  norm       = 9999.99
  Normalizat = 0.102778
  Prefactor  = 1.01586
 **********
 **   18 **HESSE 
 **********

 FCN=   1018.045     FROM HESSE     STATUS=NOT POSDEF   380 CALLS     2754 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.141        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.6405        10.109        .52906E-02   -1.5326    
   3  Prefactor     .10010E-03    39.607        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10018E-03    31.736        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.640        247.06        .18710E-02   -1.4637    
   6  Prefactor     36.164        383.58        .16652E-02   -1.4505    
   7  norm          .10000E-03    25.283        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12186E-03    576.88        .10095E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10004E-03    40.605        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1101.6        2156.6        .31940E-03   -.89417    
  11  norm          .10000E-03    1.2783        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10009E-03    33.144        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.181        145.66        .24877E-02   -1.4903    
  14  norm          .10008E-03    97.804        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .13637E-03    337.57        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .84194        4.4284        .12606E-01   -1.5524    
  17  Prefactor     .10000E-03    17.861        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.6445        19.192        .34050E-02   -1.5120    
  19  Prefactor     .57059E-02    6153.5        .90712E-02   -1.5693    
  20  norm         10000.0        7524.6        .90712E-02    1.5690    
  21  Normalizat    .10278        6.9486        .29509       -1.3778    
  22  Prefactor     1.0159        1.4303        .31208E-01   -.92203    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.57641e-06
Minuit parameter uncertainties:
  1  7.65243e-05
  2  10.1138
  3  0.00401038
  4  0.00479433
  5  169.184
  6  237.531
  7  0.000580129
  8  0.226825
  9  0.00243589
  10  2378.99
  11  2.52636e-07
  12  0.003485
  13  97.4128
  14  0.00544153
  15  0.222863
  16  3.86204
  17  7.12384e-07
  18  19.2054
  19  7.51355
  20  13.8995
  21  4.8928
  22  1.48995
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1018.04509926

Extracting fit parameters...

4FGL J1513.4-3231
   Spectrum: LogParabola
350         norm:  1.001e-04  5.442e-03  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.016e+00  1.490e+00  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.028e-01  4.893e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 228.369 -32.526
Photon Flux Upper Limit: 1.28e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/380357/likelihoodResults_659750401_660009601_4FGL_J1513.4-3231_daily_bin1622.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) = 1018.04514253
delta logL = -4.32747906416e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1018.04514253
delta logL = -4.32710093037e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96352E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3601       1.0000          .0000       5.0000    
     3 'Normalizat'    .10278       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0159       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.

 FCN=   1018.045     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      212 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    120.49        .90713E-02** at limit **
   2  alpha         2.4021        3.5500        .41233       -.20004E-05
   3  Normalizat    .10278        6.4329        .29509        .15233E-04
   4  Prefactor     1.0159        1.9439        .31208E-01   -.11755E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 2.40208
  Normalizat = 0.102778
  Prefactor  = 1.01586
 **********
 **   18 **HESSE 
 **********

 FCN=   1018.045     FROM HESSE     STATUS=OK            35 CALLS      247 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    113.54        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4021        3.5301        .50000       -.39179E-01
   3  Normalizat    .10278        1.0726        .11143E-01   -1.3778    
   4  Prefactor     1.0159        .23262        .13793E-03   -.92203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11175e-09
Minuit parameter uncertainties:
  1  0.000911183
  2  2.50443
  3  0.646069
  4  0.23285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380357': 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) = 1018.04509922
delta logL = 3.31893943439e-08

Extracting fit parameters...

4FGL J1513.4-3231
   Spectrum: LogParabola
350         norm:  1.000e-04  9.112e-04  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.402e+00  2.504e+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.016e+00  2.329e-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.028e-01  6.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/380357/cmap_HighResolution_659750401_660009601_4FGL_J1513.4-3231_daily_bin1622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-04', job_status='DONE', photon_flux_upper_limit='1.28e-06', time_completed='2021-12-08 02:06:51.904107', job_id='380357', GAL2='1.02', fit_tolerance='1e-08', EG2='0.10', EG='0.10', time_epoch_completed='1638958011.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.02', dlogl='3.32e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1622' AND source_name='4FGL J1513.4-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 02:06:51 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 380357: <4FGL_J1513.4-3231_daily_bin1622> in cluster <slac> Done

Job <4FGL_J1513.4-3231_daily_bin1622> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 01:55:36 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 01:59:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 01:59:17 2021
Terminated at Wed Dec  8 02:06:52 2021
Results reported at Wed Dec  8 02:06:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1513.4-3231_daily_bin1622 228.369 -32.5265 659750401 660009601 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 :                                   427.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             343.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   455 sec.
    Turnaround time :                            676 sec.

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

