/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 7 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1312.4-2156_daily_bin125
RA = 198.111, Dec = -21.938
tmin = 271728001, tmax = 271987201
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='341478', job_status='RUN', time_executed='2021-09-07 04:25:56.261792', time_epoch_executed='1631013956.26' WHERE source_name='4FGL J1312.4-2156' and cadence='daily' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341478

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341478/ft1_4FGL_J1312.4-2156_daily_bin125.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341478/ft2_4FGL_J1312.4-2156_daily_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341478/ft1_4FGL_J1312.4-2156_daily_bin125.fits outfile=/scratch/kocevski/341478/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin125.fits ra=198.111 dec=-21.938 rad=12.0 tmin=271728001.0 tmax=271987201.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.18
user 2.95
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341478/ft1_filtered_4FGL_J1312.4-2156_daily_bin125.fits" evtable="EVENTS" scfile=/scratch/kocevski/341478/ft2_4FGL_J1312.4-2156_daily_bin125.fits sctable="SC_DATA" outfile=/scratch/kocevski/341478/ltcube_271728001_271987201_4FGL_J1312.4-2156_daily_bin125.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/341478/ft2_4FGL_J1312.4-2156_daily_bin125.fits
.....................!
real 17.52
user 17.00
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341478/ft1_filtered_4FGL_J1312.4-2156_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/341478/ft2_4FGL_J1312.4-2156_daily_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/341478/ltcube_271728001_271987201_4FGL_J1312.4-2156_daily_bin125.fits outfile=/scratch/kocevski/341478/expmap_271728001_271987201_4FGL_J1312.4-2156_daily_bin125.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/341478/ltcube_271728001_271987201_4FGL_J1312.4-2156_daily_bin125.fits
.....................!
real 192.00
user 186.98
sys 4.49

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/341478/ft1_filtered_4FGL_J1312.4-2156_daily_bin125.fits scfile=/scratch/kocevski/341478/ft2_4FGL_J1312.4-2156_daily_bin125.fits outfile=/scratch/kocevski/341478/cmap_271728001_271987201_4FGL_J1312.4-2156_daily_bin125.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341478/ft1_filtered_4FGL_J1312.4-2156_daily_bin125.fits scfile=/scratch/kocevski/341478/ft2_4FGL_J1312.4-2156_daily_bin125.fits outfile=/scratch/kocevski/341478/cmap_HighResolution_271728001_271987201_4FGL_J1312.4-2156_daily_bin125.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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/341478/ft1_filtered_4FGL_J1312.4-2156_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/341478/ft2_4FGL_J1312.4-2156_daily_bin125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/341478/Model_4FGL_J1312.4-2156_daily_bin125.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/341478/ft1_filtered_4FGL_J1312.4-2156_daily_bin125.fits.....................!
real 132.45
user 130.23
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/341478/ft1_filtered_4FGL_J1312.4-2156_daily_bin125.fits', '/scratch/kocevski/341478/ft2_4FGL_J1312.4-2156_daily_bin125.fits', expMap='/scratch/kocevski/341478/expmap_271728001_271987201_4FGL_J1312.4-2156_daily_bin125.fits', expCube='/scratch/kocevski/341478/ltcube_271728001_271987201_4FGL_J1312.4-2156_daily_bin125.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/341478/Model_4FGL_J1312.4-2156_daily_bin125.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/341478/ft1_filtered_4FGL_J1312.4-2156_daily_bin125.fits
Spacecraft file(s): /scratch/kocevski/341478/ft2_4FGL_J1312.4-2156_daily_bin125.fits
Exposure map: /scratch/kocevski/341478/expmap_271728001_271987201_4FGL_J1312.4-2156_daily_bin125.fits
Exposure cube: /scratch/kocevski/341478/ltcube_271728001_271987201_4FGL_J1312.4-2156_daily_bin125.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/341478/Model_4FGL_J1312.4-2156_daily_bin125.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) = 7986.17914394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3283       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1501       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.830       1.0000         .10000E-03   10000.    
     4 'norm      '    6.4402       1.0000         .10000E-03   10000.    
     5 'norm      '    .11225E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5307       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.6282       1.0000         .10000E-03   10000.    
     9 'norm      '    4.6339       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0127       1.0000         .10000E-03   10000.    
    13 'norm      '    8.7586       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5798       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.645       1.0000         .10000E-03   10000.    
    19 'norm      '    2.9884       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5501       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84494       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=   7986.096     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2360 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3264        6.8036        .27681E-05   -.12242E-02
   2  norm          1.1502        .88646        .34022E-07   -.97446E-04
   3  Prefactor     27.838        52.606        .82823E-05    .13089E-03
   4  norm          6.4409        7.3461       -.44055E-07   -.52997E-04
   5  norm          .10000E-03    3.8092        .57932E-06** at limit **
   6  Prefactor     4.5310        3.5615       -.44113E-06   -.22378E-03
   7  norm          .10000E-03    2.7179       -.89273E-07** at limit **
   8  norm          3.6283        2.5714        .70687E-07   -.10220E-04
   9  norm          4.6340        4.4518        .10834E-07    .34239E-04
  10  Prefactor     .10000E-03    8.6713       -.27371E-05** at limit **
  11  Prefactor     .10000E-03    11.652        .41734E-05** at limit **
  12  norm          2.0126        4.2383        .36520E-06   -.36999E-03
  13  norm          8.7573        7.9408        .37093E-08   -.80933E-04
  14  Prefactor     2.5734        19.873       -.20491E-05   -.10761E-03
  15  Prefactor     .10000E-03    7.2503        .30781E-05** at limit **
  16  Prefactor     .10000E-03    4.9372       -.12467E-05** at limit **
  17  Prefactor     .10000E-03    5.1986        .41643E-06** at limit **
  18  norm          16.645        6.7136        .11507E-06   -.18763E-05
  19  norm          2.9876        26.056       -.34624E-06   -.27080E-04
  20  Prefactor     .10000E-03    26.860       -.44340E-06** at limit **
  21  norm          .10000E-03    9.6190       -.33805E-05** at limit **
  22  Prefactor     .10000E-03    3.0492       -.65404E-07** at limit **
  23  Normalizat    1.5500        .23645        .12281E-06   -.19038E-04
  24  Prefactor     .84497        .10856       -.51069E-06    .49403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.32638
  norm       = 1.15016
  Prefactor  = 27.8385
  norm       = 6.44089
  norm       = 0.0001
  Prefactor  = 4.53099
  norm       = 0.0001
  norm       = 3.62835
  norm       = 4.63404
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 2.01257
  norm       = 8.75729
  Prefactor  = 2.57336
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.6448
  norm       = 2.98759
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.54997
  Prefactor  = 0.844971
 **********
 **   18 **HESSE 
 **********

 FCN=   7986.096     FROM HESSE     STATUS=OK           399 CALLS     2759 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3264        10.048        .11094E-02   -1.5343    
   2  norm          1.1502        .87110        .70803E-04   -1.5493    
   3  Prefactor     27.838        52.960        .75942E-04   -1.4652    
   4  norm          6.4409        7.3457        .15815E-03   -1.5200    
   5  norm          .10000E-03    3.9207        .33780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5310        3.5661        .14407E-03   -1.5282    
   7  norm          .10000E-03    2.7530        .14385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.6283        2.5733        .11673E-03   -1.5327    
   9  norm          4.6340        4.4553        .18004E-03   -1.5277    
  10  Prefactor     .10000E-03    8.8144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0126        4.1862        .23005E-03   -1.5424    
  13  norm          8.7573        7.8360        .13544E-03   -1.5116    
  14  Prefactor     2.5734        20.087        .25409E-03   -1.5387    
  15  Prefactor     .10000E-03    7.3496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.9727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.645        6.6999        .98169E-04   -1.4892    
  19  norm          2.9876        26.193        .23484E-03   -1.5362    
  20  Prefactor     .10000E-03    26.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    9.7939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.1288        .30456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5500        .28150        .32760E-03   -.76384    
  24  Prefactor     .84497        .12922        .19668E-03   -.98091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44404e-09
Minuit parameter uncertainties:
  1  10.0531
  2  0.871109
  3  53.05
  4  7.34671
  5  4.05753e-05
  6  3.5663
  7  1.64808e-06
  8  2.57335
  9  4.4556
  10  0.000139895
  11  0.00024591
  12  4.18682
  13  7.83687
  14  14.3855
  15  0.000153132
  16  4.61854e-05
  17  3.51096e-05
  18  6.70023
  19  17.7023
  20  4.02652e-05
  21  0.000171868
  22  3.40957e-06
  23  0.281783
  24  0.129262
Done.

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

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  3.628e+00  2.573e+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:  8.450e-01  1.293e-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.550e+00  2.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.57
Ra Dec: 198.111 -21.938
Photon Index (Fixed Index): 1.83 +/- 0.00
Photon Flux (Fixed Index): 3.45e-08 +/- 2.45e-08
Energy Flux (Fixed Index): 3.23e-05 +/- 2.29e-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) = 7985.71228739
delta logL = 0.38389388107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7985.70653269
delta logL = 0.389648578329

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2104       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3483       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84379       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=   7985.707     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      271 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2090        39.691        .56529E-02    .23046E-03
   2  alpha         2.3479        3.6240        .25399        .77712E-04
   3  Normalizat    1.5317        .12811        .74356E-01    .92134E-05
   4  Prefactor     .84394        .44687E-01    .44285E-01    .10409E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.20905
  alpha      = 2.34789
  Normalizat = 1.53171
  Prefactor  = 0.843938
 **********
 **   18 **HESSE 
 **********

 FCN=   7985.707     FROM HESSE     STATUS=OK            33 CALLS      304 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2090        2.4531        .91235E-04   -1.5350    
   2  alpha         2.3479        .58168        .12900E-01   -.60883E-01
   3  Normalizat    1.5317        .27611        .32902E-03   -.76891    
   4  Prefactor     .84394        .12748        .19664E-03   -.98128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36634e-09
Minuit parameter uncertainties:
  1  2.45314
  2  0.587086
  3  0.276382
  4  0.127521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341478': 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) = 7985.70653044
delta logL = 0.389650826405

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  3.209e+00  2.453e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        alpha:  2.348e+00  5.871e-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:  8.439e-01  1.275e-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.532e+00  2.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.33
Ra Dec: 198.111 -21.938
Photon Index (Free Index): 2.35 +/- 0.59
Photon Flux (Free Index): 6.59e-08 +/- 5.13e-08
Energy Flux (Free Index): 2.80e-05 +/- 1.73e-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/341478/cmap_HighResolution_271728001_271987201_4FGL_J1312.4-2156_daily_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.45e-08', energy_flux2='2.80e-05', photon_flux_error='2.45e-08', dlogl='3.90e-01', energy_flux='3.23e-05', photon_flux2='6.59e-08', job_status='DONE', time_completed='2021-09-07 04:38:53.402980', photon_index_error2='0.59', photon_index2='2.35', ts='7.57', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='1.55', time_epoch_completed='1631014733.4', return_code='0', job_id='341478', GAL2='0.84', EG2='1.53', return_code2='0', energy_flux_error='2.29e-05', photon_flux_error2='5.13e-08', ts2='8.33', photon_index='1.83' WHERE bin_id='125' AND source_name='4FGL J1312.4-2156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:38:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 341478: <4FGL_J1312.4-2156_daily_bin125> in cluster <slac> Done

Job <4FGL_J1312.4-2156_daily_bin125> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 04:25:31 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:25:38 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:25:38 2021
Terminated at Tue Sep  7 04:38:54 2021
Results reported at Tue Sep  7 04:38:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.4-2156_daily_bin125 198.111 -21.938 271728001 271987201 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 :                                   770.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             363.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            803 sec.

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

