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


Performing analysis on: 4FGL_J1513.4-3231_daily_bin1568
RA = 228.369, Dec = -32.5265
tmin = 645753601, tmax = 646012801
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='341721', job_status='RUN', time_executed='2021-09-11 16:32:13.692837', time_epoch_executed='1631403133.69' WHERE source_name='4FGL J1513.4-3231' and cadence='daily' and bin_id='1568'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341721/ft1_4FGL_J1513.4-3231_daily_bin1568.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341721/ft2_4FGL_J1513.4-3231_daily_bin1568.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341721/ft1_4FGL_J1513.4-3231_daily_bin1568.fits outfile=/scratch/kocevski/341721/ft1_filteredMKT_4FGL_J1513.4-3231_daily_bin1568.fits ra=228.369 dec=-32.5265 rad=12.0 tmin=645753601.0 tmax=646012801.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.28
user 2.09
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/341721/ft2_4FGL_J1513.4-3231_daily_bin1568.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/341721/ft1_filteredMKT_4FGL_J1513.4-3231_daily_bin1568.fits evtable="EVENTS" outfile="/scratch/kocevski/341721/ft1_filtered_4FGL_J1513.4-3231_daily_bin1568.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/341721/ft1_filtered_4FGL_J1513.4-3231_daily_bin1568.fits" evtable="EVENTS" scfile=/scratch/kocevski/341721/ft2_4FGL_J1513.4-3231_daily_bin1568.fits sctable="SC_DATA" outfile=/scratch/kocevski/341721/ltcube_645753601_646012801_4FGL_J1513.4-3231_daily_bin1568.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/341721/ft2_4FGL_J1513.4-3231_daily_bin1568.fits
.....................!
real 12.42
user 12.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341721/ft1_filtered_4FGL_J1513.4-3231_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/341721/ft2_4FGL_J1513.4-3231_daily_bin1568.fits sctable="SC_DATA" expcube=/scratch/kocevski/341721/ltcube_645753601_646012801_4FGL_J1513.4-3231_daily_bin1568.fits outfile=/scratch/kocevski/341721/expmap_645753601_646012801_4FGL_J1513.4-3231_daily_bin1568.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/341721/ltcube_645753601_646012801_4FGL_J1513.4-3231_daily_bin1568.fits
.....................!
real 190.55
user 185.31
sys 4.88

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/341721/ft1_filtered_4FGL_J1513.4-3231_daily_bin1568.fits scfile=/scratch/kocevski/341721/ft2_4FGL_J1513.4-3231_daily_bin1568.fits outfile=/scratch/kocevski/341721/cmap_645753601_646012801_4FGL_J1513.4-3231_daily_bin1568.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341721/ft1_filtered_4FGL_J1513.4-3231_daily_bin1568.fits scfile=/scratch/kocevski/341721/ft2_4FGL_J1513.4-3231_daily_bin1568.fits outfile=/scratch/kocevski/341721/cmap_HighResolution_645753601_646012801_4FGL_J1513.4-3231_daily_bin1568.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/341721/ft1_filtered_4FGL_J1513.4-3231_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/341721/ft2_4FGL_J1513.4-3231_daily_bin1568.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/341721/Model_4FGL_J1513.4-3231_daily_bin1568.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/341721/ft1_filtered_4FGL_J1513.4-3231_daily_bin1568.fits.....................!
real 39.47
user 38.12
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.3940       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    59.663       1.0000         .10000E-03   10000.    
     7 'norm      '    28.658       1.0000         .10000E-03   10000.    
     8 'Prefactor '    335.48       1.0000         .10000E-03   10000.    
     9 'Prefactor '    66.079       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.165       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5117       1.0000         .10000E-03   10000.    
    12 'Prefactor '    56.217       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.611       1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1179       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .56949E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.119       1.0000         .10000E-03   10000.    
    19 'Prefactor '    71.399       1.0000         .10000E-03   10000.    
    20 'norm      '    102.78       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.9125       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .50709       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.

 FCN=   3020.498     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2484 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.846       -.15158E-06** at limit **
   2  norm          4.3939        5.6579        .56062E-08   -.23083E-05
   3  Prefactor     .10000E-03    28.308        .10874E-07** at limit **
   4  Prefactor     .10000E-03    61.346        .61547E-07** at limit **
   5  Prefactor     .10000E-03    11.972        .37769E-06** at limit **
   6  Prefactor     59.535        64.421        .53416E-06    .15390E-04
   7  norm          28.636        25.190       -.11300E-06   -.19312E-04
   8  Prefactor     335.65        267.23        .15004E-05    .28194E-05
   9  Prefactor     66.061        84.776        .83518E-06   -.69938E-05
  10  Prefactor     15.505        174.69       -.33952E-05    .50688E-05
  11  norm          2.5118        1.8521       -.28895E-07   -.24038E-05
  12  Prefactor     56.227        34.818        .98167E-07    .13322E-04
  13  Prefactor     14.602        20.194        .12118E-05    .85444E-04
  14  norm          .10000E-03    8.1729       -.44436E-06** at limit **
  15  norm          .10000E-03    62.729       -.21733E-06** at limit **
  16  norm          2.1180        1.4093        .10145E-06    .36827E-03
  17  Prefactor     .10765E-03    18.463       -.10977E-05** at limit **
  18  norm          11.124        9.7785        .17319E-05    .41027E-03
  19  Prefactor     70.973        174.85       -.26445E-05   -.10456E-04
  20  norm          102.79        86.946       -.37587E-06    .57438E-05
  21  Normalizat    1.9130        .56565       -.87709E-05    .13193E-03
  22  Prefactor     .50694        .15089        .43479E-05   -.33932E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.39389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.5345
  norm       = 28.6358
  Prefactor  = 335.652
  Prefactor  = 66.0614
  Prefactor  = 15.5046
  norm       = 2.51181
  Prefactor  = 56.2273
  Prefactor  = 14.6024
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.11803
  Prefactor  = 0.000107649
  norm       = 11.1239
  Prefactor  = 70.9727
  norm       = 102.792
  Normalizat = 1.91296
  Prefactor  = 0.506939
 **********
 **   18 **HESSE 
 **********

 FCN=   3020.498     FROM HESSE     STATUS=OK           352 CALLS     2836 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3939        5.6513        .14116E-03   -1.5289    
   3  Prefactor     .10000E-03    28.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    61.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     59.535        64.422        .25971E-03   -1.4163    
   7  norm          28.636        25.189        .74839E-04   -1.4637    
   8  Prefactor     335.65        267.74        .11107E-03   -1.2023    
   9  Prefactor     66.061        84.594        .49372E-04   -1.4081    
  10  Prefactor     15.505        173.41        .10285E-03   -1.4920    
  11  norm          2.5118        1.8464        .59312E-04   -1.5391    
  12  Prefactor     56.227        34.784        .53502E-04   -1.4207    
  13  Prefactor     14.602        20.193        .10479E-03   -1.4944    
  14  norm          .10000E-03    8.1865        .15343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    62.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1180        1.4027        .50384E-04   -1.5417    
  17  Prefactor     .10765E-03    346.57        .42681E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.124        9.9842        .12015E-03   -1.5041    
  19  Prefactor     70.973        175.03        .23755E-03   -1.4021    
  20  norm          102.79        86.974        .19830E-03   -1.3677    
  21  Normalizat    1.9130        .57526        .39499E-03   -.66750    
  22  Prefactor     .50694        .15388        .18926E-03   -1.1166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20576e-08
Minuit parameter uncertainties:
  1  8.02602e-06
  2  5.652
  3  5.36342e-06
  4  4.85906e-05
  5  1.12092e-05
  6  64.497
  7  25.1979
  8  268.738
  9  84.7482
  10  104.089
  11  1.84641
  12  34.7966
  13  20.2021
  14  2.07532e-05
  15  2.6297e-05
  16  1.40268
  17  0.103581
  18  9.9857
  19  176.323
  20  87.0821
  21  0.577342
  22  0.154008
Done.

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

Extracting fit parameters...

4FGL J1513.4-3231
   Spectrum: LogParabola
350         norm:  1.000e-04  2.075e-05  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:  5.069e-01  1.540e-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.913e+00  5.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 228.369 -32.526
Photon Flux Upper Limit: 2.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/341721/likelihoodResults_645753601_646012801_4FGL_J1513.4-3231_daily_bin1568.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) = 3020.49876664
delta logL = -0.000580547250138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3020.49818613
delta logL = -3.6856818042e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3518       1.0000          .0000       5.0000    
     3 'Normalizat'    1.9131       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50691       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=   3020.498     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      242 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    365.01        .15386E-01** at limit **
   2  alpha         1.9827        3.5010        .16497        .37213E-08
   3  Normalizat    1.9129        .87990E-01    .39500E-03    .16492E-04
   4  Prefactor     .50694        .23611E-01    .18925E-03    .36644E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.98269
  Normalizat = 1.91295
  Prefactor  = 0.506942
 **********
 **   18 **HESSE 
 **********

 FCN=   3020.498     FROM HESSE     STATUS=OK            27 CALLS      269 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.888        .15838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9827        3.4718        .65989E-01   -.20843    
   3  Normalizat    1.9129        .54543        .15800E-04   -.66751    
   4  Prefactor     .50694        .14663        .75701E-05   -1.1166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50561e-12
Minuit parameter uncertainties:
  1  4.31427e-06
  2  463.94
  3  0.547207
  4  0.146734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341721': 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) = 3020.4981857
delta logL = 3.90813511331e-07

Extracting fit parameters...

4FGL J1513.4-3231
   Spectrum: LogParabola
350         norm:  1.000e-04  4.314e-06  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  1.983e+00  4.639e+02  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:  5.069e-01  1.467e-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.913e+00  5.472e-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/341721/cmap_HighResolution_645753601_646012801_4FGL_J1513.4-3231_daily_bin1568.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-05', job_status='DONE', photon_flux_upper_limit='2.65e-07', time_completed='2021-09-11 16:41:56.096445', job_id='341721', GAL2='0.51', fit_tolerance='1e-08', EG2='1.91', EG='1.91', time_epoch_completed='1631403716.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='3.91e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1568' AND source_name='4FGL J1513.4-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 16:41:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 341721: <4FGL_J1513.4-3231_daily_bin1568> in cluster <slac> Done

Job <4FGL_J1513.4-3231_daily_bin1568> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 11 16:31:13 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 16:31:15 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:31:15 2021
Terminated at Sat Sep 11 16:41:56 2021
Results reported at Sat Sep 11 16:41:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1513.4-3231_daily_bin1568 228.369 -32.5265 645753601 646012801 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 :                                   578.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             307.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            643 sec.

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

