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


Performing analysis on: 4FGL_J1312.4-2156_daily_bin161
RA = 198.111, Dec = -21.938
tmin = 281059201, tmax = 281318401
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='341528', job_status='RUN', time_executed='2021-09-07 04:28:41.667000', time_epoch_executed='1631014121.67' WHERE source_name='4FGL J1312.4-2156' and cadence='daily' and bin_id='161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341528

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341528/ft1_4FGL_J1312.4-2156_daily_bin161.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341528/ft2_4FGL_J1312.4-2156_daily_bin161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341528/ft1_4FGL_J1312.4-2156_daily_bin161.fits outfile=/scratch/kocevski/341528/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin161.fits ra=198.111 dec=-21.938 rad=12.0 tmin=281059201.0 tmax=281318401.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 4.61
user 4.23
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/341528/ft2_4FGL_J1312.4-2156_daily_bin161.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/341528/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin161.fits evtable="EVENTS" outfile="/scratch/kocevski/341528/ft1_filtered_4FGL_J1312.4-2156_daily_bin161.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/341528/ft1_filtered_4FGL_J1312.4-2156_daily_bin161.fits" evtable="EVENTS" scfile=/scratch/kocevski/341528/ft2_4FGL_J1312.4-2156_daily_bin161.fits sctable="SC_DATA" outfile=/scratch/kocevski/341528/ltcube_281059201_281318401_4FGL_J1312.4-2156_daily_bin161.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/341528/ft2_4FGL_J1312.4-2156_daily_bin161.fits
.....................!
real 17.12
user 16.58
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341528/ft1_filtered_4FGL_J1312.4-2156_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/341528/ft2_4FGL_J1312.4-2156_daily_bin161.fits sctable="SC_DATA" expcube=/scratch/kocevski/341528/ltcube_281059201_281318401_4FGL_J1312.4-2156_daily_bin161.fits outfile=/scratch/kocevski/341528/expmap_281059201_281318401_4FGL_J1312.4-2156_daily_bin161.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/341528/ltcube_281059201_281318401_4FGL_J1312.4-2156_daily_bin161.fits
.....................!
real 192.97
user 186.30
sys 5.88

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/341528/ft1_filtered_4FGL_J1312.4-2156_daily_bin161.fits scfile=/scratch/kocevski/341528/ft2_4FGL_J1312.4-2156_daily_bin161.fits outfile=/scratch/kocevski/341528/cmap_281059201_281318401_4FGL_J1312.4-2156_daily_bin161.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341528/ft1_filtered_4FGL_J1312.4-2156_daily_bin161.fits scfile=/scratch/kocevski/341528/ft2_4FGL_J1312.4-2156_daily_bin161.fits outfile=/scratch/kocevski/341528/cmap_HighResolution_281059201_281318401_4FGL_J1312.4-2156_daily_bin161.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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/341528/ft1_filtered_4FGL_J1312.4-2156_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/341528/ft2_4FGL_J1312.4-2156_daily_bin161.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/341528/Model_4FGL_J1312.4-2156_daily_bin161.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/341528/ft1_filtered_4FGL_J1312.4-2156_daily_bin161.fits.....................!
real 90.21
user 88.54
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.4289       1.0000         .10000E-03   10000.    
     3 'Prefactor '    166.13       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .71907E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9700       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7402       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.686       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5454       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3516       1.0000         .10000E-03   10000.    
    12 'norm      '    .16475E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.3643       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17752E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16849E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10720E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.6087       1.0000         .10000E-03   10000.    
    19 'norm      '    17.893       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .67998E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    11.630       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.7981       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1819       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86942       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=   5465.636     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2798 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4914        .57091E-07** at limit **
   2  norm          3.4290        1.4443        .63032E-08    .29079E-03
   3  Prefactor     165.77        130.65       -.50628E-05    .24475E-03
   4  norm          .10000E-03    3.0682        .51949E-07** at limit **
   5  norm          .10188E-03    12.027       -.11038E-05** at limit **
   6  Prefactor     3.9682        5.4581        .42068E-06    .34056E-03
   7  norm          2.7396        8.1842       -.31664E-06   -.14337E-04
   8  norm          .10000E-03    .80293       -.30607E-08** at limit **
   9  norm          12.687        10.940       -.56634E-07    .58729E-04
  10  Prefactor     2.5452        6.4553       -.11914E-05   -.28193E-03
  11  Prefactor     1.3341        37.955       -.99715E-05   -.13748E-03
  12  norm          .10000E-03    2.8102        .20032E-05** at limit **
  13  norm          7.3626        6.6113        .36336E-08   -.80522E-04
  14  Prefactor     .10000E-03    120.06        .11670E-04** at limit **
  15  Prefactor     .10000E-03    64.993       -.48656E-06** at limit **
  16  Prefactor     .10000E-03    40.736       -.31645E-06** at limit **
  17  Prefactor     .10000E-03    16.247        .90869E-08** at limit **
  18  norm          6.6076        6.3405       -.44023E-07    .21732E-03
  19  norm          17.886        31.559       -.58852E-06    .24881E-04
  20  Prefactor     .10000E-03    246.70        .79042E-06** at limit **
  21  norm          11.631        15.988       -.14839E-06    .21539E-04
  22  Prefactor     7.7965        7.4089       -.11446E-07    .96001E-04
  23  Normalizat    1.1818        .30316       -.34428E-05    .36091E-03
  24  Prefactor     .86944        .13635        .21165E-05    .15959E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.42904
  Prefactor  = 165.767
  norm       = 0.0001
  norm       = 0.000101881
  Prefactor  = 3.96824
  norm       = 2.7396
  norm       = 0.0001
  norm       = 12.6868
  Prefactor  = 2.54522
  Prefactor  = 1.33413
  norm       = 0.000100004
  norm       = 7.36262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.60764
  norm       = 17.8865
  Prefactor  = 0.000100004
  norm       = 11.6308
  Prefactor  = 7.79651
  Normalizat = 1.18182
  Prefactor  = 0.869441
 **********
 **   18 **HESSE 
 **********

 FCN=   5465.636     FROM HESSE     STATUS=OK           411 CALLS     3209 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5010        .16920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4290        1.4414        .55103E-04   -1.5338    
   3  Prefactor     165.77        147.07        .15647E-03   -1.3126    
   4  norm          .10000E-03    3.0721        .12647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10188E-03    14.901        .52811E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9682        5.8043        .18466E-03   -1.5310    
   7  norm          2.7396        8.1683        .24596E-03   -1.5377    
   8  norm          .10000E-03    .80461        .64704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.687        10.922        .11246E-03   -1.4995    
  10  Prefactor     2.5452        6.5038        .12798E-02   -1.5389    
  11  Prefactor     1.3341        41.128        .37626E-03   -1.5477    
  12  norm          .10000E-03    5.6448        .22953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.3626        6.5288        .14780E-03   -1.5165    
  14  Prefactor     .10000E-03    118.57        .49874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    66.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    42.205        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.6076        6.2785        .15610E-03   -1.5194    
  19  norm          17.886        31.539        .94685E-04   -1.4862    
  20  Prefactor     .10000E-03    250.87        .20996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.631        15.979        .11747E-03   -1.5026    
  22  Prefactor     7.7965        7.4071        .14359E-03   -1.5149    
  23  Normalizat    1.1818        .34092        .35737E-03   -.87166    
  24  Prefactor     .86944        .15333        .18582E-03   -.97217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56448e-09
Minuit parameter uncertainties:
  1  1.77469e-06
  2  1.44141
  3  147.398
  4  1.54115e-06
  5  0.0105904
  6  5.80517
  7  8.1716
  8  2.57687e-06
  9  10.9242
  10  6.50556
  11  14.8255
  12  0.000282108
  13  6.52948
  14  0.000473276
  15  0.000190148
  16  0.000321417
  17  7.25148e-05
  18  6.27911
  19  31.5679
  20  0.00189852
  21  15.9853
  22  7.40794
  23  0.341561
  24  0.153407
Done.

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

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  1.000e-04  2.577e-06  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.694e-01  1.534e-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.182e+00  3.416e-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: 4.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/341528/likelihoodResults_281059201_281318401_4FGL_J1312.4-2156_daily_bin161.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) = 5465.63617919
delta logL = -3.18041202263e-08

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5465.63617918
delta logL = -2.44517650572e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8242       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86946       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=   5465.636     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      236 TOTAL
                     EDM=   .42E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0576        .64711E-03** at limit **
   2  alpha         1.7775        2.7330        .17294        .37471E-08
   3  Normalizat    1.1818        .32788        .35736E-03    .11325E-04
   4  Prefactor     .86944        .14985        .18582E-03    .21596E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.77748
  Normalizat = 1.18182
  Prefactor  = 0.869445
 **********
 **   18 **HESSE 
 **********

 FCN=   5465.636     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .80560        .12942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7775        2.5664        .69175E-02   -.29319    
   3  Normalizat    1.1818        .32821        .14294E-04   -.87167    
   4  Prefactor     .86944        .15000        .74330E-05   -.97217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73121e-13
Minuit parameter uncertainties:
  1  1.51502e-07
  2  126.283
  3  0.328782
  4  0.150071
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341528': 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) = 5465.63617908
delta logL = 7.60410330258e-08

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  1.000e-04  1.515e-07  1.000e-04  1.000e+04 ( 1.000e-12)
270        alpha:  1.777e+00  1.263e+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:  8.694e-01  1.501e-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.182e+00  3.288e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/341528/cmap_HighResolution_281059201_281318401_4FGL_J1312.4-2156_daily_bin161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', job_status='DONE', photon_flux_upper_limit='4.33e-08', time_completed='2021-09-07 04:40:36.885366', job_id='341528', GAL2='0.87', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1631014836.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='7.60e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='161' AND source_name='4FGL J1312.4-2156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:40:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 341528: <4FGL_J1312.4-2156_daily_bin161> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.4-2156_daily_bin161 198.111 -21.938 281059201 281318401 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 :                                   713.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            903 sec.

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

