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


Performing analysis on: 4FGL_J1316.1-3338_daily_bin1068
RA = 199.025, Dec = -33.6365
tmin = 516153601, tmax = 516412801
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='438792', job_status='RUN', time_executed='2021-09-07 09:51:37.926127', time_epoch_executed='1631033497.93' WHERE source_name='4FGL J1316.1-3338' and cadence='daily' and bin_id='1068'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438792

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438792/ft1_4FGL_J1316.1-3338_daily_bin1068.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438792/ft2_4FGL_J1316.1-3338_daily_bin1068.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438792/ft1_4FGL_J1316.1-3338_daily_bin1068.fits outfile=/scratch/kocevski/438792/ft1_filteredMKT_4FGL_J1316.1-3338_daily_bin1068.fits ra=199.025 dec=-33.6365 rad=12.0 tmin=516153601.0 tmax=516412801.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.59
user 3.37
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/438792/ft2_4FGL_J1316.1-3338_daily_bin1068.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438792/ft2_4FGL_J1316.1-3338_daily_bin1068.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/438792/ft1_filteredMKT_4FGL_J1316.1-3338_daily_bin1068.fits evtable="EVENTS" outfile="/scratch/kocevski/438792/ft1_filtered_4FGL_J1316.1-3338_daily_bin1068.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.55
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438792/ft1_filtered_4FGL_J1316.1-3338_daily_bin1068.fits" evtable="EVENTS" scfile=/scratch/kocevski/438792/ft2_4FGL_J1316.1-3338_daily_bin1068.fits sctable="SC_DATA" outfile=/scratch/kocevski/438792/ltcube_516153601_516412801_4FGL_J1316.1-3338_daily_bin1068.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/438792/ft2_4FGL_J1316.1-3338_daily_bin1068.fits
.....................!
real 14.33
user 13.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438792/ft1_filtered_4FGL_J1316.1-3338_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/438792/ft2_4FGL_J1316.1-3338_daily_bin1068.fits sctable="SC_DATA" expcube=/scratch/kocevski/438792/ltcube_516153601_516412801_4FGL_J1316.1-3338_daily_bin1068.fits outfile=/scratch/kocevski/438792/expmap_516153601_516412801_4FGL_J1316.1-3338_daily_bin1068.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/438792/ltcube_516153601_516412801_4FGL_J1316.1-3338_daily_bin1068.fits
.....................!
real 193.12
user 187.54
sys 5.02

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 CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 200 point sources and 1 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 J1316.1-3338 @ 199.025 -33.6365

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/438792/ft1_filtered_4FGL_J1316.1-3338_daily_bin1068.fits scfile=/scratch/kocevski/438792/ft2_4FGL_J1316.1-3338_daily_bin1068.fits outfile=/scratch/kocevski/438792/cmap_516153601_516412801_4FGL_J1316.1-3338_daily_bin1068.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=199.025 yref=-33.6365 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438792/ft1_filtered_4FGL_J1316.1-3338_daily_bin1068.fits scfile=/scratch/kocevski/438792/ft2_4FGL_J1316.1-3338_daily_bin1068.fits outfile=/scratch/kocevski/438792/cmap_HighResolution_516153601_516412801_4FGL_J1316.1-3338_daily_bin1068.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=199.025 yref=-33.6365 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438792/ft1_filtered_4FGL_J1316.1-3338_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/438792/ft2_4FGL_J1316.1-3338_daily_bin1068.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438792/Model_4FGL_J1316.1-3338_daily_bin1068.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/438792/ft1_filtered_4FGL_J1316.1-3338_daily_bin1068.fits.....................!
real 129.86
user 128.18
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/438792/ft1_filtered_4FGL_J1316.1-3338_daily_bin1068.fits', '/scratch/kocevski/438792/ft2_4FGL_J1316.1-3338_daily_bin1068.fits', expMap='/scratch/kocevski/438792/expmap_516153601_516412801_4FGL_J1316.1-3338_daily_bin1068.fits', expCube='/scratch/kocevski/438792/ltcube_516153601_516412801_4FGL_J1316.1-3338_daily_bin1068.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/438792/Model_4FGL_J1316.1-3338_daily_bin1068.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1316.1-3338'

4FGL J1316.1-3338
   Spectrum: LogParabola
313         norm:  5.429e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
315         beta:  7.264e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  8.040e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/438792/ft1_filtered_4FGL_J1316.1-3338_daily_bin1068.fits
Spacecraft file(s): /scratch/kocevski/438792/ft2_4FGL_J1316.1-3338_daily_bin1068.fits
Exposure map: /scratch/kocevski/438792/expmap_516153601_516412801_4FGL_J1316.1-3338_daily_bin1068.fits
Exposure cube: /scratch/kocevski/438792/ltcube_516153601_516412801_4FGL_J1316.1-3338_daily_bin1068.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/438792/Model_4FGL_J1316.1-3338_daily_bin1068.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) = 7414.19950351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.616       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6533       1.0000         .10000E-03   10000.    
     3 'norm      '    11.937       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.636       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6283       1.0000         .10000E-03   10000.    
     9 'norm      '    .37643       1.0000         .10000E-03   10000.    
    10 'norm      '    10.756       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9867       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0961       1.0000         .10000E-03   10000.    
    19 'Prefactor '    73.781       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4926       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80507       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7414.194     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2533 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.617        32.971        .10551E-06   -.61436E-05
   2  norm          2.6533        1.3722        .28240E-07   -.76842E-04
   3  norm          11.938        12.769        .39239E-07    .20088E-04
   4  Prefactor     10.636        8.8769        .75194E-07    .39722E-04
   5  norm          .10000E-03    2.4106        .71578E-07** at limit **
   6  Prefactor     .10000E-03    9.9618        .71528E-07** at limit **
   7  norm          .10000E-03    4.3199       -.41297E-07** at limit **
   8  Prefactor     8.6281        6.0315       -.18016E-07   -.44937E-04
   9  norm          .37746        2.0450        .14983E-06   -.20182E-03
  10  norm          10.756        6.7546        .22556E-06    .15171E-03
  11  Prefactor     .10000E-03    99.410        .40706E-06** at limit **
  12  Prefactor     4.9858        16.319        .11989E-07   -.18472E-04
  13  Prefactor     .10000E-03    4.4003       -.62816E-07** at limit **
  14  Prefactor     .10000E-03    42.539        .19150E-06** at limit **
  15  norm          .10000E-03    12.982        .16059E-05** at limit **
  16  norm          .10000E-03    9.0784        .24317E-08** at limit **
  17  norm          .10000E-03    12.545       -.20763E-05** at limit **
  18  Prefactor     1.0988        5.3908        .23725E-05   -.26896E-03
  19  Prefactor     73.769        55.758       -.11089E-05   -.13522E-03
  20  Prefactor     .10000E-03    48.820       -.52884E-06** at limit **
  21  Prefactor     .10000E-03    233.39       -.11593E-05** at limit **
  22  Normalizat    1.4925        .28859       -.11060E-05   -.24459E-04
  23  Prefactor     .80513        .10383        .12278E-06   -.10370E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.6173
  norm       = 2.65328
  norm       = 11.938
  Prefactor  = 10.6365
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.62808
  norm       = 0.377458
  norm       = 10.7561
  Prefactor  = 0.0001
  Prefactor  = 4.98577
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 1.09878
  Prefactor  = 73.7692
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.49246
  Prefactor  = 0.805125
 **********
 **   18 **HESSE 
 **********

 FCN=   7414.194     FROM HESSE     STATUS=OK           370 CALLS     2903 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.617        32.991        .86151E-04   -1.4778    
   2  norm          2.6533        1.3693        .69708E-04   -1.5382    
   3  norm          11.938        12.822        .11594E-03   -1.5017    
   4  Prefactor     10.636        8.9136        .12285E-03   -1.5056    
   5  norm          .10000E-03    2.4349        .13055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.3221        .17479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.6281        6.0362        .13646E-03   -1.5120    
   9  norm          .37746        8.7247        .23770E-02   -1.5585    
  10  norm          10.756        6.7662        .12217E-03   -1.5052    
  11  Prefactor     .10000E-03    99.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9858        16.310        .18009E-03   -1.5261    
  13  Prefactor     .10000E-03    4.4130        .17642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    42.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    13.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.0795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0988        6.2695        .39486E-03   -1.5498    
  19  Prefactor     73.769        57.096        .46742E-04   -1.3988    
  20  Prefactor     .10000E-03    48.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    233.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4925        .34803        .37580E-03   -.77990    
  23  Prefactor     .80513        .12638        .18201E-03   -.99540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66318e-10
Minuit parameter uncertainties:
  1  33.0192
  2  1.36936
  3  12.8249
  4  8.91474
  5  3.47745e-06
  6  5.23002e-06
  7  3.87273e-06
  8  6.03663
  9  3.62956
  10  6.7667
  11  0.00018467
  12  16.3244
  13  6.18125e-06
  14  6.16097e-05
  15  0.000267264
  16  4.13043e-06
  17  0.000333836
  18  5.24993
  19  57.138
  20  0.000160805
  21  0.000789594
  22  0.348586
  23  0.126424
Done.

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

Extracting fit parameters...

4FGL J1316.1-3338
   Spectrum: LogParabola
313         norm:  1.076e+01  6.767e+00  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
315         beta:  7.264e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  8.040e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  8.051e-01  1.264e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.492e+00  3.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.85
Ra Dec: 199.025 -33.636
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 8.01e-08 +/- 5.04e-08
Energy Flux (Fixed Index): 3.11e-05 +/- 1.96e-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) = 7414.18068251
delta logL = 0.0135542774542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7414.17867857
delta logL = 0.0155582234884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.130       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1505       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80273       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+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=   7414.179     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      233 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.130        7.2723        .12008E-03    .11582E-02
   2  alpha         2.1506        .57803        .14472E-01    .13391E-03
   3  Normalizat    1.5021        .34092        .37482E-03   -.98940E-04
   4  Prefactor     .80275        .12547        .18225E-03   -.25912E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.1301
  alpha      = 2.1506
  Normalizat = 1.50211
  Prefactor  = 0.802755
 **********
 **   18 **HESSE 
 **********

 FCN=   7414.179     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.130        7.2133        .24017E-04   -1.5041    
   2  alpha         2.1506        .57305        .57888E-03   -.14022    
   3  Normalizat    1.5021        .34109        .14993E-04   -.77719    
   4  Prefactor     .80275        .12556        .36449E-04   -.99627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31491e-09
Minuit parameter uncertainties:
  1  7.21383
  2  0.578293
  3  0.341613
  4  0.1256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438792': 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) = 7414.17867854
delta logL = 0.0155582498701

Extracting fit parameters...

4FGL J1316.1-3338
   Spectrum: LogParabola
313         norm:  1.113e+01  7.214e+00  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  2.151e+00  5.783e-01  0.000e+00  5.000e+00 ( 1.000e+00)
315         beta:  7.264e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  8.040e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  8.028e-01  1.256e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.502e+00  3.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.87
Ra Dec: 199.025 -33.636
Photon Index (Free Index): 2.15 +/- 0.58
Photon Flux (Free Index): 7.32e-08 +/- 6.06e-08
Energy Flux (Free Index): 3.29e-05 +/- 2.35e-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/438792/cmap_HighResolution_516153601_516412801_4FGL_J1316.1-3338_daily_bin1068.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.01e-08', energy_flux2='3.29e-05', photon_flux_error='5.04e-08', dlogl='1.56e-02', energy_flux='3.11e-05', photon_flux2='7.32e-08', job_status='DONE', time_completed='2021-09-07 10:04:32.515347', photon_index_error2='0.58', photon_index2='2.15', ts='4.85', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='2.35e-05', EG='1.49', time_epoch_completed='1631034272.52', return_code='0', job_id='438792', GAL2='0.80', EG2='1.50', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='6.06e-08', ts2='4.87', photon_index='2.25' WHERE bin_id='1068' AND source_name='4FGL J1316.1-3338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:04:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 438792: <4FGL_J1316.1-3338_daily_bin1068> in cluster <slac> Done

Job <4FGL_J1316.1-3338_daily_bin1068> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 09:50:19 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 09:51:28 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:51:28 2021
Terminated at Tue Sep  7 10:04:33 2021
Results reported at Tue Sep  7 10:04:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1316.1-3338_daily_bin1068 199.025 -33.6365 516153601 516412801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1316.1-3338 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   773.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             383.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            854 sec.

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

