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


Performing analysis on: 4FGL_J1312.8-0425_daily_bin1574
RA = 198.217, Dec = -4.4196
tmin = 647308801, tmax = 647568001
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='375472', job_status='RUN', time_executed='2021-09-07 06:11:14.370165', time_epoch_executed='1631020274.37' WHERE source_name='4FGL J1312.8-0425' and cadence='daily' and bin_id='1574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375472

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375472/ft1_4FGL_J1312.8-0425_daily_bin1574.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375472/ft2_4FGL_J1312.8-0425_daily_bin1574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375472/ft1_4FGL_J1312.8-0425_daily_bin1574.fits outfile=/scratch/kocevski/375472/ft1_filteredMKT_4FGL_J1312.8-0425_daily_bin1574.fits ra=198.217 dec=-4.4196 rad=12.0 tmin=647308801.0 tmax=647568001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.56
user 3.31
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/375472/ft2_4FGL_J1312.8-0425_daily_bin1574.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375472/ft2_4FGL_J1312.8-0425_daily_bin1574.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/375472/ft1_filteredMKT_4FGL_J1312.8-0425_daily_bin1574.fits evtable="EVENTS" outfile="/scratch/kocevski/375472/ft1_filtered_4FGL_J1312.8-0425_daily_bin1574.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.56
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375472/ft1_filtered_4FGL_J1312.8-0425_daily_bin1574.fits" evtable="EVENTS" scfile=/scratch/kocevski/375472/ft2_4FGL_J1312.8-0425_daily_bin1574.fits sctable="SC_DATA" outfile=/scratch/kocevski/375472/ltcube_647308801_647568001_4FGL_J1312.8-0425_daily_bin1574.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/375472/ft2_4FGL_J1312.8-0425_daily_bin1574.fits
.....................!
real 14.59
user 14.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375472/ft1_filtered_4FGL_J1312.8-0425_daily_bin1574.fits evtable="EVENTS" scfile=/scratch/kocevski/375472/ft2_4FGL_J1312.8-0425_daily_bin1574.fits sctable="SC_DATA" expcube=/scratch/kocevski/375472/ltcube_647308801_647568001_4FGL_J1312.8-0425_daily_bin1574.fits outfile=/scratch/kocevski/375472/expmap_647308801_647568001_4FGL_J1312.8-0425_daily_bin1574.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/375472/ltcube_647308801_647568001_4FGL_J1312.8-0425_daily_bin1574.fits
.....................!
real 191.58
user 186.04
sys 5.15

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

Setting source of interest to:
4FGL J1312.8-0425 @ 198.217 -4.4196

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/375472/ft1_filtered_4FGL_J1312.8-0425_daily_bin1574.fits scfile=/scratch/kocevski/375472/ft2_4FGL_J1312.8-0425_daily_bin1574.fits outfile=/scratch/kocevski/375472/cmap_647308801_647568001_4FGL_J1312.8-0425_daily_bin1574.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.217 yref=-4.4196 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375472/ft1_filtered_4FGL_J1312.8-0425_daily_bin1574.fits scfile=/scratch/kocevski/375472/ft2_4FGL_J1312.8-0425_daily_bin1574.fits outfile=/scratch/kocevski/375472/cmap_HighResolution_647308801_647568001_4FGL_J1312.8-0425_daily_bin1574.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.217 yref=-4.4196 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.58
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375472/ft1_filtered_4FGL_J1312.8-0425_daily_bin1574.fits evtable="EVENTS" scfile=/scratch/kocevski/375472/ft2_4FGL_J1312.8-0425_daily_bin1574.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375472/Model_4FGL_J1312.8-0425_daily_bin1574.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/375472/ft1_filtered_4FGL_J1312.8-0425_daily_bin1574.fits.....................!
real 60.38
user 58.62
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/375472/ft1_filtered_4FGL_J1312.8-0425_daily_bin1574.fits', '/scratch/kocevski/375472/ft2_4FGL_J1312.8-0425_daily_bin1574.fits', expMap='/scratch/kocevski/375472/expmap_647308801_647568001_4FGL_J1312.8-0425_daily_bin1574.fits', expCube='/scratch/kocevski/375472/ltcube_647308801_647568001_4FGL_J1312.8-0425_daily_bin1574.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/375472/Model_4FGL_J1312.8-0425_daily_bin1574.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1312.8-0425'

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  7.815e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.205e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
313         beta:  1.653e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  5.956e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/375472/ft1_filtered_4FGL_J1312.8-0425_daily_bin1574.fits
Spacecraft file(s): /scratch/kocevski/375472/ft2_4FGL_J1312.8-0425_daily_bin1574.fits
Exposure map: /scratch/kocevski/375472/expmap_647308801_647568001_4FGL_J1312.8-0425_daily_bin1574.fits
Exposure cube: /scratch/kocevski/375472/ltcube_647308801_647568001_4FGL_J1312.8-0425_daily_bin1574.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/375472/Model_4FGL_J1312.8-0425_daily_bin1574.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) = 7218.06811451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6872       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.601       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17350E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.0821       1.0000         .10000E-03   10000.    
     8 'Prefactor '    88.694       1.0000         .10000E-03   10000.    
     9 'norm      '    39.273       1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2772       1.0000         .10000E-03   10000.    
    16 'norm      '    .39174E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    84.845       1.0000         .10000E-03   10000.    
    18 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.031       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.481       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4168       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .70918       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7218.053     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2748 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6863        6.5242       -.31154E-05   -.85726E-04
   2  Prefactor     .10000E-03    5.8835        .85646E-07** at limit **
   3  Prefactor     12.598        8.3673       -.10819E-06   -.37508E-04
   4  Prefactor     .10580E-03    38.378       -.10437E-05** at limit **
   5  Prefactor     .10000E-03    30.831        .21745E-04** at limit **
   6  norm          .10000E-03    7.9816       -.34219E-07** at limit **
   7  norm          4.0819        .50165       -.20973E-06    .44216E-03
   8  Prefactor     88.777        103.66        .61044E-04   -.26035E-04
   9  norm          39.261        16.816       -.38132E-05   -.59316E-04
  10  norm          .10000E-03    3.1647       -.78433E-08** at limit **
  11  Prefactor     .10000E-03    11.100        .61355E-06** at limit **
  12  Prefactor     .10000E-03    15.872        .16185E-05** at limit **
  13  Prefactor     .10000E-03    3.2531        .51481E-07** at limit **
  14  Prefactor     .10000E-03    34.958       -.14317E-04** at limit **
  15  norm          3.2770        1.8891        .90148E-07   -.52476E-03
  16  norm          .10021E-03    3.1160        .36573E-06** at limit **
  17  norm          84.813        17.394       -.94455E-06    .36834E-05
  18  norm          .10000E-03    24.992       -.82541E-05** at limit **
  19  Prefactor     10.034        8.1360        .85952E-06   -.97628E-04
  20  Prefactor     35.459        26.173        .24123E-04   -.27995E-04
  21  Normalizat    1.4173        .24166       -.62856E-05    .14859E-03
  22  Prefactor     .70882        .15284       -.40666E-07   -.26491E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.68626
  Prefactor  = 0.0001
  Prefactor  = 12.5978
  Prefactor  = 0.000105801
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.08188
  Prefactor  = 88.7773
  norm       = 39.2614
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.27701
  norm       = 0.000100209
  norm       = 84.813
  norm       = 0.0001
  Prefactor  = 10.034
  Prefactor  = 35.4589
  Normalizat = 1.41726
  Prefactor  = 0.708823
 **********
 **   18 **HESSE 
 **********

 FCN=   7218.053     FROM HESSE     STATUS=OK           354 CALLS     3102 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6863        6.5201        .18588E-03   -1.5275    
   2  Prefactor     .10000E-03    5.9006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.598        8.3657        .11285E-03   -1.4998    
   4  Prefactor     .10580E-03    36.676        .14690       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.9825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.0819        .50454        .19548E-04   -1.5304    
   8  Prefactor     88.777        103.60        .21332E-03   -1.3821    
   9  norm          39.261        16.815        .63959E-04   -1.4454    
  10  norm          .10000E-03    3.1658        .14761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.2641        .14963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2770        1.8898        .84027E-04   -1.5346    
  16  norm          .10021E-03    18.167        .26163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          84.813        15.815        .21806E-03   -1.3863    
  18  norm          .10000E-03    25.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.034        8.1316        .12652E-03   -1.5074    
  20  Prefactor     35.459        26.207        .67278E-04   -1.4516    
  21  Normalizat    1.4173        .28353        .33026E-03   -.80131    
  22  Prefactor     .70882        .17816        .29396E-03   -1.0318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28943e-08
Minuit parameter uncertainties:
  1  6.52106
  2  2.26086e-05
  3  8.36649
  4  0.0291907
  5  3.78991e-05
  6  1.26995e-05
  7  0.50454
  8  103.81
  9  16.8172
  10  1.65099e-06
  11  9.45937e-05
  12  4.31744e-05
  13  1.29242e-05
  14  0.000412226
  15  1.88984
  16  0.00390255
  17  15.8155
  18  1.78008e-06
  19  8.1325
  20  26.2154
  21  0.283846
  22  0.178306
Done.

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

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  3.926e+01  1.682e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.205e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
313         beta:  1.653e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  5.956e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  7.088e-01  1.783e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.417e+00  2.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.18
Ra Dec: 198.217 -4.420
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.31e-07 +/- 5.59e-08
Energy Flux (Fixed Index): 4.84e-05 +/- 2.07e-05

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) = 7218.05334223
delta logL = 2.0126900381e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7218.05334131
delta logL = 2.10502867048e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    39.261       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2080       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70895       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7218.053     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      208 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.251        28.869        .15992E-02    .15057E-04
   2  alpha         2.2082        .71476        .32343        .15765E-04
   3  Normalizat    1.4169        .24032        .74642E-01    .21039E-04
   4  Prefactor     .70895        .15515        .66434E-01    .19396E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 39.2511
  alpha      = 2.20817
  Normalizat = 1.41695
  Prefactor  = 0.708953
 **********
 **   18 **HESSE 
 **********

 FCN=   7218.053     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.251        16.297        .63969E-04   -1.4454    
   2  alpha         2.2082        .43851        .13106E-01   -.11700    
   3  Normalizat    1.4169        .27420        .33029E-03   -.80140    
   4  Prefactor     .70895        .17785        .29393E-03   -1.0318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15849e-12
Minuit parameter uncertainties:
  1  16.2992
  2  0.440817
  3  0.274486
  4  0.177991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375472': 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) = 7218.05334108
delta logL = 2.12779150388e-05

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  3.925e+01  1.630e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.208e+00  4.408e-01  0.000e+00  5.000e+00 ( 1.000e+00)
313         beta:  1.653e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  5.956e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  7.090e-01  1.780e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.417e+00  2.745e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.17
Ra Dec: 198.217 -4.420
Photon Index (Free Index): 2.21 +/- 0.44
Photon Flux (Free Index): 1.31e-07 +/- 7.02e-08
Energy Flux (Free Index): 4.84e-05 +/- 2.05e-05

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/375472/cmap_HighResolution_647308801_647568001_4FGL_J1312.8-0425_daily_bin1574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-07', energy_flux2='4.84e-05', photon_flux_error='5.59e-08', dlogl='2.13e-05', energy_flux='4.84e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-07 06:22:19.358583', photon_index_error2='0.44', photon_index2='2.21', ts='13.18', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='2.05e-05', EG='1.42', time_epoch_completed='1631020939.36', return_code='0', job_id='375472', GAL2='0.71', EG2='1.42', return_code2='0', energy_flux_error='2.07e-05', photon_flux_error2='7.02e-08', ts2='13.17', photon_index='2.21' WHERE bin_id='1574' AND source_name='4FGL J1312.8-0425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:22:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 375472: <4FGL_J1312.8-0425_daily_bin1574> in cluster <slac> Done

Job <4FGL_J1312.8-0425_daily_bin1574> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 06:10:31 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:11:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 06:11:01 2021
Terminated at Tue Sep  7 06:22:19 2021
Results reported at Tue Sep  7 06:22:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.8-0425_daily_bin1574 198.217 -4.4196 647308801 647568001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1312.8-0425 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   660.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            708 sec.

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

