/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 116 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 = 7245
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1312.4-2156_daily_bin198
RA = 198.111, Dec = -21.938
tmin = 290649601, tmax = 290908801
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='341581', job_status='RUN', time_executed='2021-09-07 04:27:52.745488', time_epoch_executed='1631014072.75' WHERE source_name='4FGL J1312.4-2156' and cadence='daily' and bin_id='198'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341581

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341581/ft1_4FGL_J1312.4-2156_daily_bin198.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341581/ft2_4FGL_J1312.4-2156_daily_bin198.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341581/ft1_4FGL_J1312.4-2156_daily_bin198.fits outfile=/scratch/kocevski/341581/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin198.fits ra=198.111 dec=-21.938 rad=12.0 tmin=290649601.0 tmax=290908801.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.41
user 3.18
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/341581/ft2_4FGL_J1312.4-2156_daily_bin198.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/341581/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin198.fits evtable="EVENTS" outfile="/scratch/kocevski/341581/ft1_filtered_4FGL_J1312.4-2156_daily_bin198.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341581/ft1_filtered_4FGL_J1312.4-2156_daily_bin198.fits" evtable="EVENTS" scfile=/scratch/kocevski/341581/ft2_4FGL_J1312.4-2156_daily_bin198.fits sctable="SC_DATA" outfile=/scratch/kocevski/341581/ltcube_290649601_290908801_4FGL_J1312.4-2156_daily_bin198.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/341581/ft2_4FGL_J1312.4-2156_daily_bin198.fits
.....................!
real 16.16
user 15.74
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341581/ft1_filtered_4FGL_J1312.4-2156_daily_bin198.fits evtable="EVENTS" scfile=/scratch/kocevski/341581/ft2_4FGL_J1312.4-2156_daily_bin198.fits sctable="SC_DATA" expcube=/scratch/kocevski/341581/ltcube_290649601_290908801_4FGL_J1312.4-2156_daily_bin198.fits outfile=/scratch/kocevski/341581/expmap_290649601_290908801_4FGL_J1312.4-2156_daily_bin198.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/341581/ltcube_290649601_290908801_4FGL_J1312.4-2156_daily_bin198.fits
.....................!
real 191.75
user 186.14
sys 4.94

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/341581/ft1_filtered_4FGL_J1312.4-2156_daily_bin198.fits scfile=/scratch/kocevski/341581/ft2_4FGL_J1312.4-2156_daily_bin198.fits outfile=/scratch/kocevski/341581/cmap_290649601_290908801_4FGL_J1312.4-2156_daily_bin198.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341581/ft1_filtered_4FGL_J1312.4-2156_daily_bin198.fits scfile=/scratch/kocevski/341581/ft2_4FGL_J1312.4-2156_daily_bin198.fits outfile=/scratch/kocevski/341581/cmap_HighResolution_290649601_290908801_4FGL_J1312.4-2156_daily_bin198.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/341581/ft1_filtered_4FGL_J1312.4-2156_daily_bin198.fits evtable="EVENTS" scfile=/scratch/kocevski/341581/ft2_4FGL_J1312.4-2156_daily_bin198.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/341581/Model_4FGL_J1312.4-2156_daily_bin198.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/341581/ft1_filtered_4FGL_J1312.4-2156_daily_bin198.fits.....................!
real 98.83
user 97.25
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.578       1.0000         .10000E-03   10000.    
     2 'norm      '    3.9179       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.430       1.0000         .10000E-03   10000.    
     5 'norm      '    3.4925       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11790E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.1849       1.0000         .10000E-03   10000.    
     8 'norm      '    .59616       1.0000         .10000E-03   10000.    
     9 'norm      '    4.6036       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.743       1.0000         .10000E-03   10000.    
    12 'norm      '    .10189E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.6940       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6747       1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.592       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8352       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    21.942       1.0000         .10000E-03   10000.    
    20 'Prefactor '    56.209       1.0000         .10000E-03   10000.    
    21 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.5090       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0984       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91509       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=   5882.253     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2760 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.577        17.680       -.25474E-07   -.80419E-05
   2  norm          3.9179        1.8437       -.14407E-07    .10273E-03
   3  Prefactor     .10000E-03    53.887       -.45821E-06** at limit **
   4  norm          13.429        11.088       -.37506E-10    .40249E-05
   5  norm          3.4888        8.0316       -.50054E-06   -.15915E-04
   6  Prefactor     .10000E-03    12.371       -.18453E-05** at limit **
   7  norm          3.1841        6.0434        .48725E-06   -.41334E-04
   8  norm          .59601        2.2304        .10027E-05    .16407E-05
   9  norm          4.6039        5.4070        .17309E-07   -.10177E-04
  10  Prefactor     .10000E-03    5.2564        .15191E-07** at limit **
  11  Prefactor     27.740        23.420       -.95910E-06   -.18449E-04
  12  norm          .10000E-03    2.4211       -.20384E-06** at limit **
  13  norm          8.6945        8.7158        .16719E-05   -.10498E-03
  14  Prefactor     5.6747        9.2352        .13910E-06   -.10285E-04
  15  Prefactor     38.572        35.612        .21529E-07   -.12985E-03
  16  Prefactor     1.8189        39.832       -.10618E-06    .13202E-04
  17  Prefactor     .10000E-03    5.4819       -.72860E-07** at limit **
  18  norm          .10000E-03    2.1384        .13992E-07** at limit **
  19  norm          21.933        27.106        .32551E-06   -.29239E-04
  20  Prefactor     56.207        62.929       -.14561E-06   -.52212E-05
  21  norm          .10000E-03    12.527        .24001E-06** at limit **
  22  Prefactor     7.5072        7.0437        .38434E-06   -.12411E-03
  23  Normalizat    1.0988        .30071        .58731E-06   -.13964E-04
  24  Prefactor     .91494        .13079       -.60853E-06    .66767E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.5774
  norm       = 3.91791
  Prefactor  = 0.0001
  norm       = 13.4288
  norm       = 3.48876
  Prefactor  = 0.0001
  norm       = 3.18412
  norm       = 0.596012
  norm       = 4.60393
  Prefactor  = 0.0001
  Prefactor  = 27.7395
  norm       = 0.0001
  norm       = 8.6945
  Prefactor  = 5.67465
  Prefactor  = 38.5725
  Prefactor  = 1.81894
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 21.9332
  Prefactor  = 56.2074
  norm       = 0.0001
  Prefactor  = 7.50715
  Normalizat = 1.0988
  Prefactor  = 0.914938
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.253     FROM HESSE     STATUS=OK           403 CALLS     3163 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.577        17.699        .82493E-04   -1.4736    
   2  norm          3.9179        1.8392        .66141E-04   -1.5312    
   3  Prefactor     .10000E-03    53.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.429        11.090        .10930E-03   -1.4975    
   5  norm          3.4888        7.8836        .21636E-03   -1.5334    
   6  Prefactor     .10000E-03    12.293        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.1841        6.0329        .22706E-03   -1.5351    
   8  norm          .59601        2.2065        .21506E-03   -1.5554    
   9  norm          4.6039        5.4037        .18760E-03   -1.5279    
  10  Prefactor     .10000E-03    5.2720        .17171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.740        23.410        .76060E-04   -1.4654    
  12  norm          .10000E-03    2.4312        .11615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.6945        8.7372        .67972E-03   -1.5118    
  14  Prefactor     5.6747        9.2246        .16862E-03   -1.5231    
  15  Prefactor     38.572        35.385        .64519E-04   -1.4465    
  16  Prefactor     1.8189        38.037        .30800E-03   -1.5438    
  17  Prefactor     .10000E-03    5.5015        .17531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1539        .10951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          21.933        26.919        .85509E-04   -1.4771    
  20  Prefactor     56.207        62.946        .53506E-04   -1.4207    
  21  norm          .10000E-03    12.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.5072        7.0203        .14635E-03   -1.5160    
  23  Normalizat    1.0988        .35408        .38194E-03   -.89790    
  24  Prefactor     .91494        .15454        .18752E-03   -.95621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32624e-10
Minuit parameter uncertainties:
  1  17.7027
  2  1.83922
  3  1.44034e-05
  4  11.0914
  5  7.88592
  6  1.28894e-05
  7  6.03405
  8  2.20676
  9  5.40424
  10  4.53627e-06
  11  23.4173
  12  5.26221e-06
  13  8.73846
  14  9.22694
  15  35.4045
  16  16.6474
  17  5.88436e-06
  18  2.92674e-07
  19  26.934
  20  63.0208
  21  0.00010138
  22  7.02105
  23  0.354849
  24  0.154613
Done.

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

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  5.960e-01  2.207e+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.149e-01  1.546e-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.099e+00  3.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/341581/likelihoodResults_290649601_290908801_4FGL_J1312.4-2156_daily_bin198.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) = 5881.8230435
delta logL = 0.430257478091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5881.81552476
delta logL = 0.43777621909

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .71502       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9643       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0800       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91140       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=   5881.816     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      226 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .71366        16.861        .18132E-01    .10804E-02
   2  alpha         2.9645        3.9637        .31957        .60353E-04
   3  Normalizat    1.0792        .55830E-01    .86914E-01    .60903E-04
   4  Prefactor     .91189        .25233E-01    .45150E-01   -.64566E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.713662
  alpha      = 2.96446
  Normalizat = 1.07924
  Prefactor  = 0.91189
 **********
 **   18 **HESSE 
 **********

 FCN=   5881.816     FROM HESSE     STATUS=OK            35 CALLS      261 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .71366        2.3639        .83893E-03   -1.5539    
   2  alpha         2.9645        1.6750        .16187E-01    .18687    
   3  Normalizat    1.0792        .33502        .38488E-03   -.90421    
   4  Prefactor     .91189        .15192        .18768E-03   -.95727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.99449e-11
Minuit parameter uncertainties:
  1  2.36424
  2  1.84307
  3  0.335679
  4  0.15199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341581': 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) = 5881.81551823
delta logL = 0.437782752432

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  7.137e-01  2.364e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        alpha:  2.964e+00  1.843e+00  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.119e-01  1.520e-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.079e+00  3.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/341581/cmap_HighResolution_290649601_290908801_4FGL_J1312.4-2156_daily_bin198.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.76e-05', job_status='DONE', photon_flux_upper_limit='7.23e-08', time_completed='2021-09-07 04:40:09.440168', job_id='341581', GAL2='0.91', fit_tolerance='1e-08', EG2='1.08', EG='1.10', time_epoch_completed='1631014809.44', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='4.38e-01', ts2='0.96', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='198' AND source_name='4FGL J1312.4-2156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:40:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 341581: <4FGL_J1312.4-2156_daily_bin198> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.4-2156_daily_bin198 198.111 -21.938 290649601 290908801 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 :                                   732.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            872 sec.

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

