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


Performing analysis on: 4FGL_J1312.4-2156_daily_bin624
RA = 198.111, Dec = -21.938
tmin = 401068801, tmax = 401328001
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='345276', job_status='RUN', time_executed='2021-09-07 04:42:43.562188', time_epoch_executed='1631014963.56' WHERE source_name='4FGL J1312.4-2156' and cadence='daily' and bin_id='624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345276

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345276/ft1_4FGL_J1312.4-2156_daily_bin624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345276/ft2_4FGL_J1312.4-2156_daily_bin624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345276/ft1_4FGL_J1312.4-2156_daily_bin624.fits outfile=/scratch/kocevski/345276/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin624.fits ra=198.111 dec=-21.938 rad=12.0 tmin=401068801.0 tmax=401328001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.89
user 2.67
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/345276/ft2_4FGL_J1312.4-2156_daily_bin624.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/345276/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin624.fits evtable="EVENTS" outfile="/scratch/kocevski/345276/ft1_filtered_4FGL_J1312.4-2156_daily_bin624.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.45
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345276/ft1_filtered_4FGL_J1312.4-2156_daily_bin624.fits" evtable="EVENTS" scfile=/scratch/kocevski/345276/ft2_4FGL_J1312.4-2156_daily_bin624.fits sctable="SC_DATA" outfile=/scratch/kocevski/345276/ltcube_401068801_401328001_4FGL_J1312.4-2156_daily_bin624.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/345276/ft2_4FGL_J1312.4-2156_daily_bin624.fits
.....................!
real 13.05
user 12.71
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345276/ft1_filtered_4FGL_J1312.4-2156_daily_bin624.fits evtable="EVENTS" scfile=/scratch/kocevski/345276/ft2_4FGL_J1312.4-2156_daily_bin624.fits sctable="SC_DATA" expcube=/scratch/kocevski/345276/ltcube_401068801_401328001_4FGL_J1312.4-2156_daily_bin624.fits outfile=/scratch/kocevski/345276/expmap_401068801_401328001_4FGL_J1312.4-2156_daily_bin624.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/345276/ltcube_401068801_401328001_4FGL_J1312.4-2156_daily_bin624.fits
.....................!
real 156.79
user 152.71
sys 3.50

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/345276/ft1_filtered_4FGL_J1312.4-2156_daily_bin624.fits scfile=/scratch/kocevski/345276/ft2_4FGL_J1312.4-2156_daily_bin624.fits outfile=/scratch/kocevski/345276/cmap_401068801_401328001_4FGL_J1312.4-2156_daily_bin624.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.54
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/345276/ft1_filtered_4FGL_J1312.4-2156_daily_bin624.fits scfile=/scratch/kocevski/345276/ft2_4FGL_J1312.4-2156_daily_bin624.fits outfile=/scratch/kocevski/345276/cmap_HighResolution_401068801_401328001_4FGL_J1312.4-2156_daily_bin624.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.49
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/345276/ft1_filtered_4FGL_J1312.4-2156_daily_bin624.fits evtable="EVENTS" scfile=/scratch/kocevski/345276/ft2_4FGL_J1312.4-2156_daily_bin624.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/345276/Model_4FGL_J1312.4-2156_daily_bin624.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/345276/ft1_filtered_4FGL_J1312.4-2156_daily_bin624.fits.....................!
real 93.23
user 91.92
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.7723       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.225       1.0000         .10000E-03   10000.    
     5 'norm      '    8.2723       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6618       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.921       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.2059       1.0000         .10000E-03   10000.    
    13 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.303       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.631       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.232       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11177E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    27.027       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    2.1797       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .69656       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=   6787.854     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2713 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1229       -.37071E-07** at limit **
   2  norm          6.7722        1.8738       -.28728E-07   -.98211E-05
   3  Prefactor     .10000E-03    75.254       -.11569E-05** at limit **
   4  norm          12.224        9.3803       -.46021E-07   -.11376E-04
   5  norm          8.2689        6.9461        .15903E-05   -.37863E-03
   6  Prefactor     .10000E-03    6.6625       -.58591E-06** at limit **
   7  norm          3.6617        9.1824        .41997E-06   -.39475E-04
   8  norm          .10000E-03    .70902       -.20637E-07** at limit **
   9  norm          12.921        10.175       -.16188E-07   -.16254E-04
  10  Prefactor     .10000E-03    16.310       -.40967E-06** at limit **
  11  Prefactor     .10000E-03    27.366        .17441E-05** at limit **
  12  norm          7.2110        5.1713        .91367E-07   -.21475E-03
  13  norm          .10000E-03    3.2038       -.36566E-07** at limit **
  14  Prefactor     19.284        21.108       -.17571E-06   -.90349E-04
  15  Prefactor     18.623        34.897       -.11659E-05   -.85721E-04
  16  Prefactor     12.232        13.306        .17161E-06   -.77241E-06
  17  Prefactor     .10000E-03    16.235        .38171E-06** at limit **
  18  norm          .10000E-03    4.2301       -.36016E-07** at limit **
  19  norm          27.029        32.926        .40730E-06    .30299E-04
  20  Prefactor     .10000E-03    24.167       -.31679E-05** at limit **
  21  norm          .10000E-03    27.163        .15354E-05** at limit **
  22  Prefactor     .10000E-03    5.6250        .59601E-07** at limit **
  23  Normalizat    2.1799        .30127       -.15796E-06   -.20438E-04
  24  Prefactor     .69648        .13255       -.18313E-06   -.17539E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.77221
  Prefactor  = 0.000100001
  norm       = 12.2245
  norm       = 8.26886
  Prefactor  = 0.0001
  norm       = 3.66173
  norm       = 0.0001
  norm       = 12.9207
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.21101
  norm       = 0.0001
  Prefactor  = 19.2836
  Prefactor  = 18.6229
  Prefactor  = 12.2315
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 27.0293
  Prefactor  = 0.000100004
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 2.17994
  Prefactor  = 0.696482
 **********
 **   18 **HESSE 
 **********

 FCN=   6787.854     FROM HESSE     STATUS=OK           395 CALLS     3108 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.7722        1.8747        .56447E-04   -1.5187    
   3  Prefactor     .10000E-03    75.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.224        9.3821        .11457E-03   -1.5009    
   5  norm          8.2689        7.1986        .69694E-03   -1.5133    
   6  Prefactor     .10000E-03    6.8977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6617        9.1757        .21109E-03   -1.5325    
   8  norm          .10000E-03    .71008        .67752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.921        10.163        .11144E-03   -1.4989    
  10  Prefactor     .10000E-03    16.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.2110        5.1866        .14943E-03   -1.5171    
  13  norm          .10000E-03    3.2073        .14392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.284        21.185        .91162E-04   -1.4829    
  15  Prefactor     18.623        35.298        .92790E-04   -1.4845    
  16  Prefactor     12.232        13.301        .11453E-03   -1.5008    
  17  Prefactor     .10000E-03    16.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.2899        .16539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          27.029        32.990        .77059E-04   -1.4668    
  20  Prefactor     .10000E-03    25.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    27.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.8147        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    2.1799        .35433        .33665E-03   -.60113    
  24  Prefactor     .69648        .15488        .23850E-03   -1.0367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51959e-10
Minuit parameter uncertainties:
  1  7.50658e-06
  2  1.87467
  3  0.000422737
  4  9.3832
  5  7.19932
  6  7.00613e-05
  7  9.17925
  8  7.71563e-07
  9  10.1644
  10  6.08405e-05
  11  0.000392968
  12  5.18694
  13  2.90041e-07
  14  21.1929
  15  35.338
  16  13.3044
  17  0.000130094
  18  1.78141e-06
  19  33.0121
  20  0.000620379
  21  0.000261772
  22  4.05211e-06
  23  0.35477
  24  0.154971
Done.

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

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  1.000e-04  7.716e-07  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:  6.965e-01  1.550e-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:  2.180e+00  3.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/345276/likelihoodResults_401068801_401328001_4FGL_J1312.4-2156_daily_bin624.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6787.85416612
delta logL = -9.6725707408e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6787.85415636
delta logL = 8.04438968771e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8176       1.0000          .0000       5.0000    
     3 'Normalizat'    2.1799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69650       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6787.854     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      231 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .94386        .67834E-03** at limit **
   2  alpha         1.6401        3.4643        .17312       -.12983E-06
   3  Normalizat    2.1799        .34580        .33665E-03    .83115E-04
   4  Prefactor     .69648        .15151        .23850E-03    .11631E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.6401
  Normalizat = 2.17994
  Prefactor  = 0.696482
 **********
 **   18 **HESSE 
 **********

 FCN=   6787.854     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .72266        .13567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6401        3.4126        .69247E-02   -.35113    
   3  Normalizat    2.1799        .34609        .67330E-04   -.60113    
   4  Prefactor     .69648        .15164        .95399E-05   -1.0367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.10456e-11
Minuit parameter uncertainties:
  1  4.20975e-06
  2  116.241
  3  0.346503
  4  0.151726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345276': 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) = 6787.85415522
delta logL = 1.22359506349e-06

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  1.000e-04  4.210e-06  1.000e-04  1.000e+04 ( 1.000e-12)
270        alpha:  1.640e+00  1.162e+02  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:  6.965e-01  1.517e-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:  2.180e+00  3.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 198.111 -21.938

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/345276/cmap_HighResolution_401068801_401328001_4FGL_J1312.4-2156_daily_bin624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.62e-05', job_status='DONE', photon_flux_upper_limit='3.88e-08', time_completed='2021-09-07 04:53:44.621006', job_id='345276', GAL2='0.70', fit_tolerance='1e-08', EG2='2.18', EG='2.18', time_epoch_completed='1631015624.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='1.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='624' AND source_name='4FGL J1312.4-2156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:53:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 345276: <4FGL_J1312.4-2156_daily_bin624> in cluster <slac> Done

Job <4FGL_J1312.4-2156_daily_bin624> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 04:40:24 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:40:53 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:40:53 2021
Terminated at Tue Sep  7 04:53:45 2021
Results reported at Tue Sep  7 04:53:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.4-2156_daily_bin624 198.111 -21.938 401068801 401328001 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 :                                   657.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            801 sec.

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

