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


Performing analysis on: 4FGL_J1315.9-0732_daily_bin1441
RA = 198.987, Dec = -7.546
tmin = 612835201, tmax = 613094401
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='430599', job_status='RUN', time_executed='2021-09-07 09:21:38.072599', time_epoch_executed='1631031698.07' WHERE source_name='4FGL J1315.9-0732' and cadence='daily' and bin_id='1441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430599

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430599/ft1_4FGL_J1315.9-0732_daily_bin1441.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430599/ft2_4FGL_J1315.9-0732_daily_bin1441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430599/ft1_4FGL_J1315.9-0732_daily_bin1441.fits outfile=/scratch/kocevski/430599/ft1_filteredMKT_4FGL_J1315.9-0732_daily_bin1441.fits ra=198.987 dec=-7.546 rad=12.0 tmin=612835201.0 tmax=613094401.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.90
user 2.69
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/430599/ft2_4FGL_J1315.9-0732_daily_bin1441.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430599/ft2_4FGL_J1315.9-0732_daily_bin1441.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/430599/ft1_filteredMKT_4FGL_J1315.9-0732_daily_bin1441.fits evtable="EVENTS" outfile="/scratch/kocevski/430599/ft1_filtered_4FGL_J1315.9-0732_daily_bin1441.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430599/ft1_filtered_4FGL_J1315.9-0732_daily_bin1441.fits" evtable="EVENTS" scfile=/scratch/kocevski/430599/ft2_4FGL_J1315.9-0732_daily_bin1441.fits sctable="SC_DATA" outfile=/scratch/kocevski/430599/ltcube_612835201_613094401_4FGL_J1315.9-0732_daily_bin1441.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/430599/ft2_4FGL_J1315.9-0732_daily_bin1441.fits
.....................!
real 16.13
user 15.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430599/ft1_filtered_4FGL_J1315.9-0732_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/430599/ft2_4FGL_J1315.9-0732_daily_bin1441.fits sctable="SC_DATA" expcube=/scratch/kocevski/430599/ltcube_612835201_613094401_4FGL_J1315.9-0732_daily_bin1441.fits outfile=/scratch/kocevski/430599/expmap_612835201_613094401_4FGL_J1315.9-0732_daily_bin1441.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/430599/ltcube_612835201_613094401_4FGL_J1315.9-0732_daily_bin1441.fits
.....................!
real 191.99
user 186.58
sys 4.77

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 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J1315.9-0732 @ 198.987 -7.546

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/430599/ft1_filtered_4FGL_J1315.9-0732_daily_bin1441.fits scfile=/scratch/kocevski/430599/ft2_4FGL_J1315.9-0732_daily_bin1441.fits outfile=/scratch/kocevski/430599/cmap_612835201_613094401_4FGL_J1315.9-0732_daily_bin1441.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=198.987 yref=-7.546 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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430599/ft1_filtered_4FGL_J1315.9-0732_daily_bin1441.fits scfile=/scratch/kocevski/430599/ft2_4FGL_J1315.9-0732_daily_bin1441.fits outfile=/scratch/kocevski/430599/cmap_HighResolution_612835201_613094401_4FGL_J1315.9-0732_daily_bin1441.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=198.987 yref=-7.546 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/430599/ft1_filtered_4FGL_J1315.9-0732_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/430599/ft2_4FGL_J1315.9-0732_daily_bin1441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430599/Model_4FGL_J1315.9-0732_daily_bin1441.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/430599/ft1_filtered_4FGL_J1315.9-0732_daily_bin1441.fits.....................!
real 60.64
user 59.16
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/430599/ft1_filtered_4FGL_J1315.9-0732_daily_bin1441.fits', '/scratch/kocevski/430599/ft2_4FGL_J1315.9-0732_daily_bin1441.fits', expMap='/scratch/kocevski/430599/expmap_612835201_613094401_4FGL_J1315.9-0732_daily_bin1441.fits', expCube='/scratch/kocevski/430599/ltcube_612835201_613094401_4FGL_J1315.9-0732_daily_bin1441.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/430599/Model_4FGL_J1315.9-0732_daily_bin1441.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1315.9-0732'

4FGL J1315.9-0732
   Spectrum: LogParabola
307         norm:  1.470e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        alpha:  1.753e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
309         beta:  1.376e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
310           Eb:  2.056e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/430599/ft1_filtered_4FGL_J1315.9-0732_daily_bin1441.fits
Spacecraft file(s): /scratch/kocevski/430599/ft2_4FGL_J1315.9-0732_daily_bin1441.fits
Exposure map: /scratch/kocevski/430599/expmap_612835201_613094401_4FGL_J1315.9-0732_daily_bin1441.fits
Exposure cube: /scratch/kocevski/430599/ltcube_612835201_613094401_4FGL_J1315.9-0732_daily_bin1441.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/430599/Model_4FGL_J1315.9-0732_daily_bin1441.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) = 7227.51305693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8726       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7736       1.0000         .10000E-03   10000.    
     4 'Prefactor '    74.281       1.0000         .10000E-03   10000.    
     5 'norm      '    .27903       1.0000         .10000E-03   10000.    
     6 'norm      '    5.8067       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    69.268       1.0000         .10000E-03   10000.    
     9 'norm      '    8.5451       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2273       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3710       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1532       1.0000         .10000E-03   10000.    
    17 'norm      '    19.997       1.0000         .10000E-03   10000.    
    18 'norm      '    22.370       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6840       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10700E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.8340       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .63509       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7227.446     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2832 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.356        .31062E-06** at limit **
   2  Prefactor     2.8797        6.9065        .45618E-06   -.23026E-04
   3  Prefactor     7.7122        44.540        .95544E-05    .21919E-03
   4  Prefactor     74.323        79.473        .38336E-05    .17987E-03
   5  norm          .13288        18.601       -.64968E-06    .76186E-04
   6  norm          5.8058        .59211       -.12015E-07    .94624E-04
   7  norm          .10000E-03    3.3240        .92193E-08** at limit **
   8  Prefactor     69.167        68.783       -.65040E-05   -.42744E-03
   9  norm          8.5470        8.7216        .66904E-06    .16033E-03
  10  norm          .10000E-03    3.8096       -.48780E-07** at limit **
  11  Prefactor     3.2228        12.150        .10873E-04   -.41996E-03
  12  Prefactor     .10000E-03    28.570        .12674E-06** at limit **
  13  Prefactor     5.3686        13.847        .45220E-05   -.31836E-03
  14  Prefactor     .10000E-03    44.217       -.60273E-06** at limit **
  15  norm          .10000E-03    .59139       -.31561E-07** at limit **
  16  norm          2.1512        4.3263       -.16598E-06   -.18001E-03
  17  norm          19.995        11.813       -.25816E-06   -.57465E-04
  18  norm          22.368        23.648        .20045E-06    .60344E-05
  19  Prefactor     5.6901        10.105        .39044E-06   -.39690E-04
  20  Prefactor     .10000E-03    33.095       -.16088E-06** at limit **
  21  Prefactor     .10000E-03    100.58       -.64766E-06** at limit **
  22  norm          .10000E-03    13.221       -.32350E-07** at limit **
  23  Normalizat    1.8340        .26360       -.14323E-05   -.22922E-04
  24  Prefactor     .63525        .15640       -.13706E-05   -.63323E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.8797
  Prefactor  = 7.71222
  Prefactor  = 74.3226
  norm       = 0.132881
  norm       = 5.80584
  norm       = 0.0001
  Prefactor  = 69.1665
  norm       = 8.54697
  norm       = 0.0001
  Prefactor  = 3.22282
  Prefactor  = 0.0001
  Prefactor  = 5.36864
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.15121
  norm       = 19.9955
  norm       = 22.3682
  Prefactor  = 5.69006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.83397
  Prefactor  = 0.635251
 **********
 **   18 **HESSE 
 **********

 FCN=   7227.446     FROM HESSE     STATUS=OK           403 CALLS     3235 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.862        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8797        6.8791        .23982E-03   -1.5369    
   3  Prefactor     7.7122        46.522        .14382E-03   -1.5152    
   4  Prefactor     74.323        80.854        .46586E-04   -1.3982    
   5  norm          .13288        21.651        .11619       -1.5635    
   6  norm          5.8058        .60229        .18101E-04   -1.5226    
   7  norm          .10000E-03    3.3276        .15137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     69.167        71.794        .24115E-03   -1.4043    
   9  norm          8.5470        8.7392        .13713E-03   -1.5123    
  10  norm          .10000E-03    3.8116        .16206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2228        12.342        .11274E-02   -1.5349    
  12  Prefactor     .10000E-03    28.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.3686        13.880        .86702E-03   -1.5245    
  14  Prefactor     .10000E-03    44.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .60056        .63794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1512        4.2621        .23121E-03   -1.5415    
  17  norm          19.995        11.757        .89566E-04   -1.4813    
  18  norm          22.368        23.651        .84688E-04   -1.4762    
  19  Prefactor     5.6901        10.063        .16848E-03   -1.5231    
  20  Prefactor     .10000E-03    33.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    100.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    13.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.8340        .31329        .32392E-03   -.68780    
  24  Prefactor     .63525        .18392        .31424E-03   -1.0612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77744e-09
Minuit parameter uncertainties:
  1  7.82627e-05
  2  6.88103
  3  37.9271
  4  80.9744
  5  3.39235
  6  0.602288
  7  2.11237e-06
  8  71.8844
  9  8.7405
  10  2.5206e-06
  11  12.3515
  12  0.000149559
  13  13.8887
  14  0.000147109
  15  6.25334e-07
  16  4.26268
  17  11.7583
  18  23.6606
  19  10.0665
  20  1.55893e-05
  21  0.000252389
  22  2.68375e-06
  23  0.313635
  24  0.1841
Done.

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

Extracting fit parameters...

4FGL J1315.9-0732
   Spectrum: LogParabola
307         norm:  1.000e-04  2.521e-06  1.000e-04  1.000e+04 ( 1.000e-13)
308        alpha:  1.753e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
309         beta:  1.376e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
310           Eb:  2.056e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  6.353e-01  1.841e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.834e+00  3.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 198.987 -7.546
Photon Flux Upper Limit: 3.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430599/likelihoodResults_612835201_613094401_4FGL_J1315.9-0732_daily_bin1441.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) = 7227.44669247
delta logL = -0.00109650337708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7227.44559598
delta logL = -1.71394276549e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7506       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63526       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+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=   7227.446     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      227 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10013E-03    386.67        .16209E-02** at limit **
   2  alpha         1.7003        2.8053        .50000        .16375E-05
   3  Normalizat    1.8340        .78166E-01    .32392E-03   -.21410E-05
   4  Prefactor     .63525        .47860E-01    .31424E-03   -.18813E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100126
  alpha      = 1.70026
  Normalizat = 1.83397
  Prefactor  = 0.635252
 **********
 **   18 **HESSE 
 **********

 FCN=   7227.446     FROM HESSE     STATUS=OK            27 CALLS      254 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10013E-03    4.2973        .32419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7003        3.2979        .20000       -.32562    
   3  Normalizat    1.8340        .29631        .12957E-04   -.68780    
   4  Prefactor     .63525        .18144        .12570E-04   -1.0612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39709e-08
Minuit parameter uncertainties:
  1  0.0014731
  2  301.288
  3  0.296602
  4  0.181607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430599': 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) = 7227.44559593
delta logL = 3.58022589353e-08

Extracting fit parameters...

4FGL J1315.9-0732
   Spectrum: LogParabola
307         norm:  1.001e-04  1.473e-03  1.000e-04  1.000e+04 ( 1.000e-13)
308        alpha:  1.700e+00  3.013e+02  0.000e+00  5.000e+00 ( 1.000e+00)
309         beta:  1.376e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
310           Eb:  2.056e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  6.353e-01  1.816e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.834e+00  2.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 198.987 -7.546

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/430599/cmap_HighResolution_612835201_613094401_4FGL_J1315.9-0732_daily_bin1441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-05', job_status='DONE', photon_flux_upper_limit='3.27e-08', time_completed='2021-09-07 09:34:31.147254', job_id='430599', GAL2='0.64', fit_tolerance='1e-08', EG2='1.83', EG='1.83', time_epoch_completed='1631032471.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='3.58e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='1441' AND source_name='4FGL J1315.9-0732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 09:34:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 430599: <4FGL_J1315.9-0732_daily_bin1441> in cluster <slac> Done

Job <4FGL_J1315.9-0732_daily_bin1441> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 09:20:32 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 09:21:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 09:21:21 2021
Terminated at Tue Sep  7 09:34:31 2021
Results reported at Tue Sep  7 09:34:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1315.9-0732_daily_bin1441 198.987 -7.546 612835201 613094401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1315.9-0732 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   770.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            839 sec.

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

