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


Performing analysis on: 4FGL_J1312.4-2156_daily_bin1049
RA = 198.111, Dec = -21.938
tmin = 511228801, tmax = 511488001
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='348191', job_status='RUN', time_executed='2021-09-07 04:54:43.741308', time_epoch_executed='1631015683.74' WHERE source_name='4FGL J1312.4-2156' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348191

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348191/ft1_4FGL_J1312.4-2156_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348191/ft2_4FGL_J1312.4-2156_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348191/ft1_4FGL_J1312.4-2156_daily_bin1049.fits outfile=/scratch/kocevski/348191/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin1049.fits ra=198.111 dec=-21.938 rad=12.0 tmin=511228801.0 tmax=511488001.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.52
user 3.27
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/348191/ft2_4FGL_J1312.4-2156_daily_bin1049.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/348191/ft2_4FGL_J1312.4-2156_daily_bin1049.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/348191/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin1049.fits evtable="EVENTS" outfile="/scratch/kocevski/348191/ft1_filtered_4FGL_J1312.4-2156_daily_bin1049.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348191/ft1_filtered_4FGL_J1312.4-2156_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/348191/ft2_4FGL_J1312.4-2156_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/348191/ltcube_511228801_511488001_4FGL_J1312.4-2156_daily_bin1049.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/348191/ft2_4FGL_J1312.4-2156_daily_bin1049.fits
.....................!
real 15.73
user 15.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348191/ft1_filtered_4FGL_J1312.4-2156_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/348191/ft2_4FGL_J1312.4-2156_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/348191/ltcube_511228801_511488001_4FGL_J1312.4-2156_daily_bin1049.fits outfile=/scratch/kocevski/348191/expmap_511228801_511488001_4FGL_J1312.4-2156_daily_bin1049.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/348191/ltcube_511228801_511488001_4FGL_J1312.4-2156_daily_bin1049.fits
.....................!
real 191.96
user 186.99
sys 4.43

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 186 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 J1312.4-2156 @ 198.111 -21.938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/348191/ft1_filtered_4FGL_J1312.4-2156_daily_bin1049.fits scfile=/scratch/kocevski/348191/ft2_4FGL_J1312.4-2156_daily_bin1049.fits outfile=/scratch/kocevski/348191/cmap_511228801_511488001_4FGL_J1312.4-2156_daily_bin1049.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.111 yref=-21.938 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/348191/ft1_filtered_4FGL_J1312.4-2156_daily_bin1049.fits scfile=/scratch/kocevski/348191/ft2_4FGL_J1312.4-2156_daily_bin1049.fits outfile=/scratch/kocevski/348191/cmap_HighResolution_511228801_511488001_4FGL_J1312.4-2156_daily_bin1049.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.111 yref=-21.938 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/348191/ft1_filtered_4FGL_J1312.4-2156_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/348191/ft2_4FGL_J1312.4-2156_daily_bin1049.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/348191/Model_4FGL_J1312.4-2156_daily_bin1049.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/348191/ft1_filtered_4FGL_J1312.4-2156_daily_bin1049.fits.....................!
real 103.71
user 102.03
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/348191/ft1_filtered_4FGL_J1312.4-2156_daily_bin1049.fits', '/scratch/kocevski/348191/ft2_4FGL_J1312.4-2156_daily_bin1049.fits', expMap='/scratch/kocevski/348191/expmap_511228801_511488001_4FGL_J1312.4-2156_daily_bin1049.fits', expCube='/scratch/kocevski/348191/ltcube_511228801_511488001_4FGL_J1312.4-2156_daily_bin1049.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/348191/Model_4FGL_J1312.4-2156_daily_bin1049.xml', optimizer='MINUIT')

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

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  1.303e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        alpha:  1.827e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
271         beta:  1.515e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  1.405e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/348191/ft1_filtered_4FGL_J1312.4-2156_daily_bin1049.fits
Spacecraft file(s): /scratch/kocevski/348191/ft2_4FGL_J1312.4-2156_daily_bin1049.fits
Exposure map: /scratch/kocevski/348191/expmap_511228801_511488001_4FGL_J1312.4-2156_daily_bin1049.fits
Exposure cube: /scratch/kocevski/348191/ltcube_511228801_511488001_4FGL_J1312.4-2156_daily_bin1049.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/348191/Model_4FGL_J1312.4-2156_daily_bin1049.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6565       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10581E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.066       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1951       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.511       1.0000         .10000E-03   10000.    
    13 'norm      '    13.309       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4461       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4811       1.0000         .10000E-03   10000.    
    18 'norm      '    13.372       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.6072       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3989       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90929       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6259.006     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2287 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.811        .20003E-05** at limit **
   2  norm          1.6562        1.4010        .73684E-07   -.13241E-03
   3  Prefactor     .10000E-03    45.220       -.22028E-05** at limit **
   4  norm          .10000E-03    21.707       -.35928E-06** at limit **
   5  norm          11.065        6.2303       -.22572E-07   -.12283E-04
   6  Prefactor     .10000E-03    2.0525       -.19146E-07** at limit **
   7  norm          .10000E-03    3.8795       -.18474E-06** at limit **
   8  norm          3.1951        2.7459        .32811E-07   -.26656E-04
   9  norm          .10000E-03    4.2953       -.70390E-07** at limit **
  10  Prefactor     .10000E-03    3.9470        .37080E-06** at limit **
  11  Prefactor     .10001E-03    15.434       -.34780E-05** at limit **
  12  norm          11.510        8.6199        .12642E-06    .19130E-03
  13  norm          13.301        15.874       -.33259E-06    .44874E-05
  14  Prefactor     .10000E-03    6.4958        .31815E-06** at limit **
  15  Prefactor     4.4345        63.643       -.94446E-05   -.12729E-03
  16  Prefactor     .10000E-03    9.5258       -.16111E-05** at limit **
  17  Prefactor     4.4798        9.5594        .49541E-05   -.70647E-03
  18  norm          13.372        7.1306        .13708E-06   -.26699E-03
  19  norm          .10000E-03    12.652        .12300E-05** at limit **
  20  Prefactor     .10001E-03    24.648        .35865E-05** at limit **
  21  norm          3.5981        19.767       -.56972E-07   -.15883E-04
  22  Prefactor     .10000E-03    6.4917       -.59677E-06** at limit **
  23  Normalizat    1.3991        .27776       -.30954E-06    .34570E-04
  24  Prefactor     .90925        .12601       -.95777E-07    .52480E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 1.65624
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 11.0649
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.19513
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 11.5099
  norm       = 13.3012
  Prefactor  = 0.0001
  Prefactor  = 4.43455
  Prefactor  = 0.000100001
  Prefactor  = 4.47984
  norm       = 13.3717
  norm       = 0.000100001
  Prefactor  = 0.000100006
  norm       = 3.59814
  Prefactor  = 0.0001
  Normalizat = 1.39909
  Prefactor  = 0.909253
 **********
 **   18 **HESSE 
 **********

 FCN=   6259.006     FROM HESSE     STATUS=OK           395 CALLS     2682 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6562        1.3894        .81483E-04   -1.5451    
   3  Prefactor     .10000E-03    45.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    22.353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.065        6.2280        .12043E-03   -1.5043    
   6  Prefactor     .10000E-03    2.0573        .11065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.9185        .15222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1951        2.7434        .11775E-03   -1.5350    
   9  norm          .10000E-03    4.3167        .16013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.9671        .15362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    16.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.510        8.6839        .11808E-03   -1.5029    
  13  norm          13.301        15.981        .10980E-03   -1.4978    
  14  Prefactor     .10000E-03    6.5221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4345        65.779        .19097E-03   -1.5287    
  16  Prefactor     .10000E-03    9.5897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.4798        10.255        .95103E-03   -1.5285    
  18  norm          13.372        7.1370        .54768E-03   -1.4976    
  19  norm          .10000E-03    12.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    25.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5981        19.481        .21274E-03   -1.5329    
  22  Prefactor     .10000E-03    6.6135        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3991        .33023        .35688E-03   -.80655    
  24  Prefactor     .90925        .15042        .19516E-03   -.95819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52416e-09
Minuit parameter uncertainties:
  1  0.000281732
  2  1.3894
  3  0.000674373
  4  0.000115277
  5  6.22833
  6  1.61553e-06
  7  1.99942e-05
  8  2.74348
  9  9.25112e-06
  10  3.04554e-05
  11  0.000639548
  12  8.68488
  13  15.9864
  14  4.37601e-05
  15  34.2032
  16  0.000141533
  17  10.2593
  18  7.13747
  19  0.000201942
  20  0.000811632
  21  16.7528
  22  1.44802e-05
  23  0.330735
  24  0.150491
Done.

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

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  3.195e+00  2.743e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        alpha:  1.827e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
271         beta:  1.515e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  1.405e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  9.093e-01  1.505e-01  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
612   Normalization:  1.399e+00  3.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.57
Ra Dec: 198.111 -21.938
Photon Index (Fixed Index): 1.83 +/- 0.00
Photon Flux (Fixed Index): 3.04e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 2.84e-05 +/- 2.44e-05

TS (Fixed Index): 2.57
Ra Dec: 198.111 -21.938
Photon Flux Upper Limit: 9.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/348191/likelihoodResults_511228801_511488001_4FGL_J1312.4-2156_daily_bin1049.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6258.90734575
delta logL = 0.0983795618895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6258.90687439
delta logL = 0.0988509173703

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6258.907     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      196 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1148        14.059        .57436E-02   -.13255E-02
   2  alpha         1.4893        3.2398        .46510       -.50529E-04
   3  Normalizat    1.4025        .29761        .80545E-01    .21144E-04
   4  Prefactor     .91046        .12897        .45138E-01    .27185E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.11477
  alpha      = 1.48927
  Normalizat = 1.40253
  Prefactor  = 0.910458
 **********
 **   18 **HESSE 
 **********

 FCN=   6258.907     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1148        2.8284        .11754E-03   -1.5355    
   2  alpha         1.4893        .72691        .19367E-01   -.41621    
   3  Normalizat    1.4025        .32477        .35653E-03   -.80556    
   4  Prefactor     .91046        .14853        .19505E-03   -.95777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21872e-10
Minuit parameter uncertainties:
  1  2.82855
  2  0.739752
  3  0.325252
  4  0.148601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348191': 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) = 6258.90687439
delta logL = 0.0988509180816

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  3.115e+00  2.829e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        alpha:  1.489e+00  7.398e-01  0.000e+00  5.000e+00 ( 1.000e+00)
271         beta:  1.515e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  1.405e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  9.105e-01  1.486e-01  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
612   Normalization:  1.403e+00  3.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.77
Ra Dec: 198.111 -21.938
Photon Index (Free Index): 1.49 +/- 0.74
Photon Flux (Free Index): 2.11e-08 +/- 2.54e-08
Energy Flux (Free Index): 3.94e-05 +/- 4.61e-05

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/348191/cmap_HighResolution_511228801_511488001_4FGL_J1312.4-2156_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.92e-05', comment='SUCCESS', photon_flux='3.04e-08', energy_flux2='3.94e-05', photon_flux_error='2.61e-08', dlogl='9.89e-02', energy_flux='2.84e-05', photon_flux2='2.11e-08', job_status='DONE', time_completed='2021-09-07 05:06:56.831728', photon_index_error2='0.74', photon_index2='1.49', ts='2.57', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='9.54e-08', energy_flux_error2='4.61e-05', EG='1.40', time_epoch_completed='1631016416.83', return_code='0', job_id='348191', GAL2='0.91', EG2='1.40', return_code2='0', energy_flux_error='2.44e-05', photon_flux_error2='2.54e-08', ts2='2.77', photon_index='1.83' WHERE bin_id='1049' AND source_name='4FGL J1312.4-2156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 05:06:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 348191: <4FGL_J1312.4-2156_daily_bin1049> in cluster <slac> Done

Job <4FGL_J1312.4-2156_daily_bin1049> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep  7 04:50:20 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:54:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 04:54:08 2021
Terminated at Tue Sep  7 05:06:57 2021
Results reported at Tue Sep  7 05:06:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.4-2156_daily_bin1049 198.111 -21.938 511228801 511488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1312.4-2156 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   718.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            997 sec.

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

