/sdf/group/fermi/u/kocevski/software/conda/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)

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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/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 = 7296
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1312.4-2156_daily_bin2114
RA = 198.111, Dec = -21.938
tmin = 787276801, tmax = 787536001
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='17372935', job_status='RUN', time_executed='2025-12-16 01:05:23.970785', time_epoch_executed='1765875923.97' WHERE source_name='4FGL J1312.4-2156' and cadence='daily' and bin_id='2114'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17372935

Creating custom pfile directory:
/lscratch/kocevski/17372935/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=787276801.0 && nMetStart<787536001.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=787276801.0 && nMetStart<787536001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17372935/ft1_4FGL_J1312.4-2156_daily_bin2114.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=787276801.0 && nMetStart<787536001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17372935/ft2_4FGL_J1312.4-2156_daily_bin2114.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17372935/ft1_4FGL_J1312.4-2156_daily_bin2114.fits outfile=/lscratch/kocevski/17372935/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin2114.fits ra=198.111 dec=-21.938 rad=12.0 tmin=787276801.0 tmax=787536001.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.00
user 1.97
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17372935/ft2_4FGL_J1312.4-2156_daily_bin2114.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17372935/ft2_4FGL_J1312.4-2156_daily_bin2114.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/17372935/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin2114.fits evtable="EVENTS" outfile="/lscratch/kocevski/17372935/ft1_filtered_4FGL_J1312.4-2156_daily_bin2114.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('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.12
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 1036

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17372935/ft1_filtered_4FGL_J1312.4-2156_daily_bin2114.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17372935/ft2_4FGL_J1312.4-2156_daily_bin2114.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17372935/ltcube_787276801_787536001_4FGL_J1312.4-2156_daily_bin2114.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 /lscratch/kocevski/17372935/ft2_4FGL_J1312.4-2156_daily_bin2114.fits
.....................!
real 9.17
user 8.09
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17372935/ft1_filtered_4FGL_J1312.4-2156_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372935/ft2_4FGL_J1312.4-2156_daily_bin2114.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17372935/ltcube_787276801_787536001_4FGL_J1312.4-2156_daily_bin2114.fits outfile=/lscratch/kocevski/17372935/expmap_787276801_787536001_4FGL_J1312.4-2156_daily_bin2114.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 /lscratch/kocevski/17372935/ltcube_787276801_787536001_4FGL_J1312.4-2156_daily_bin2114.fits
.....................!
real 71.44
user 66.30
sys 4.09

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 /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/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=/lscratch/kocevski/17372935/ft1_filtered_4FGL_J1312.4-2156_daily_bin2114.fits scfile=/lscratch/kocevski/17372935/ft2_4FGL_J1312.4-2156_daily_bin2114.fits outfile=/lscratch/kocevski/17372935/cmap_787276801_787536001_4FGL_J1312.4-2156_daily_bin2114.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 1.14
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17372935/ft1_filtered_4FGL_J1312.4-2156_daily_bin2114.fits scfile=/lscratch/kocevski/17372935/ft2_4FGL_J1312.4-2156_daily_bin2114.fits outfile=/lscratch/kocevski/17372935/cmap_HighResolution_787276801_787536001_4FGL_J1312.4-2156_daily_bin2114.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 1.00
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17372935/ft1_filtered_4FGL_J1312.4-2156_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372935/ft2_4FGL_J1312.4-2156_daily_bin2114.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17372935/Model_4FGL_J1312.4-2156_daily_bin2114.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...
/lscratch/kocevski/17372935/ft1_filtered_4FGL_J1312.4-2156_daily_bin2114.fits.....................!
real 71.19
user 69.55
sys 0.71

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17372935/ft1_filtered_4FGL_J1312.4-2156_daily_bin2114.fits', '/lscratch/kocevski/17372935/ft2_4FGL_J1312.4-2156_daily_bin2114.fits', expMap='/lscratch/kocevski/17372935/expmap_787276801_787536001_4FGL_J1312.4-2156_daily_bin2114.fits', expCube='/lscratch/kocevski/17372935/ltcube_787276801_787536001_4FGL_J1312.4-2156_daily_bin2114.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17372935/Model_4FGL_J1312.4-2156_daily_bin2114.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  0.000e+00  1.000e+06 ( 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 -5.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): /lscratch/kocevski/17372935/ft1_filtered_4FGL_J1312.4-2156_daily_bin2114.fits
Spacecraft file(s): /lscratch/kocevski/17372935/ft2_4FGL_J1312.4-2156_daily_bin2114.fits
Exposure map: /lscratch/kocevski/17372935/expmap_787276801_787536001_4FGL_J1312.4-2156_daily_bin2114.fits
Exposure cube: /lscratch/kocevski/17372935/ltcube_787276801_787536001_4FGL_J1312.4-2156_daily_bin2114.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17372935/Model_4FGL_J1312.4-2156_daily_bin2114.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) = 10792.469032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67069E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .51237       1.0000          .0000       .10000E+07
     3 'Prefactor '    .35718E-02   1.0000          .0000       .10000E+07
     4 'norm      '    4.1950       1.0000          .0000       .10000E+07
     5 'norm      '    2.2041       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.3712       1.0000          .0000       .10000E+07
     7 'norm      '    1.3346       1.0000          .0000       .10000E+07
     8 'norm      '    1.9971       1.0000          .0000       .10000E+07
     9 'norm      '    9.4448       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.7554       1.0000          .0000       .10000E+07
    11 'Prefactor '    31.556       1.0000          .0000       .10000E+07
    12 'norm      '    .42630E-05   1.0000          .0000       .10000E+07
    13 'norm      '    13.324       1.0000          .0000       .10000E+07
    14 'Prefactor '    .20759E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26322E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .31467E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .87247       1.0000          .0000       .10000E+07
    18 'norm      '    4.5832       1.0000          .0000       .10000E+07
    19 'norm      '    .11271E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .21176E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .47706E-05   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.6899       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81549       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10792.47     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     2675 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67168E-07    2.7769       -.21392E-06** at limit **
   2  norm          .51277        .64243       -.41846E-07    .17589E-02
   3  Prefactor     .24980E-08    16.703       -.48779E-06** at limit **
   4  norm          4.2096        4.8426       -.10777E-06    .28449E-02
   5  norm          2.2367        1.9814        .34292E-07   -.13824E-01
   6  Prefactor     1.3389        2.1959        .76750E-07    .11488E-01
   7  norm          1.3375        2.8679        .12466E-06   -.49263E-03
   8  norm          1.9972        1.9229        .95597E-07   -.13552E-02
   9  norm          9.3785        5.8264        .94029E-07    .27543E-01
  10  Prefactor     3.7802        2.8956       -.45891E-07    .57847E-01
  11  Prefactor     31.524        2.4824        .31415E-07   -.40915E-01
  12  norm          .16653E-08    1.1999        .31567E-06** at limit **
  13  norm          13.322        5.9643        .27531E-07   -.21650E-01
  14  Prefactor     .84932E-08    2.0245        .10308E-06** at limit **
  15  Prefactor     .26590E-07    .92980        .48979E-07** at limit **
  16  Prefactor     .99920E-09    2.8829        .31501E-06** at limit **
  17  Prefactor     .87061        .46092        .14193E-07   -.41122E-02
  18  norm          4.5932        4.5149        .52327E-07    .67458E-03
  19  norm          .65337E-07    3.0538       -.21227E-06** at limit **
  20  norm          .11324E-07    1.8779        .10535E-06** at limit **
  21  Prefactor     .31086E-08    1.6532        .29249E-06** at limit **
  22  Normalizat    1.6900        .23831        .99310E-05   -.32343E-04
  23  Prefactor     .81553        .11230       -.64733E-05    .18477E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.71685e-08
  norm       = 0.512772
  Prefactor  = 2.498e-09
  norm       = 4.20959
  norm       = 2.23668
  Prefactor  = 1.33885
  norm       = 1.33746
  norm       = 1.99716
  norm       = 9.37846
  Prefactor  = 3.78019
  Prefactor  = 31.5241
  norm       = 1.66533e-09
  norm       = 13.3225
  Prefactor  = 8.49321e-09
  Prefactor  = 2.65898e-08
  Prefactor  = 9.99201e-10
  Prefactor  = 0.870615
  norm       = 4.59325
  norm       = 6.53366e-08
  norm       = 1.13243e-08
  Prefactor  = 3.10862e-09
  Normalizat = 1.68998
  Prefactor  = 0.81553
 **********
 **   18 **HESSE 
 **********

 FCN=   10792.47     FROM HESSE     STATUS=OK           424 CALLS     3099 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67168E-07    5.7577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .51277        .65796        .77475E-03   -1.5694    
   3  Prefactor     .24980E-08    16.843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.2096        4.8827        .49180E-03   -1.5667    
   5  norm          2.2367        5.1790        .69268E-03   -1.5678    
   6  Prefactor     1.3389        5.0487        .93059E-03   -1.5685    
   7  norm          1.3375        2.9072        .94950E-03   -1.5685    
   8  norm          1.9972        1.9324        .73267E-03   -1.5680    
   9  norm          9.3785        6.0909        .32585E-03   -1.5647    
  10  Prefactor     3.7802        6.6324        .52075E-03   -1.5669    
  11  Prefactor     31.524        19.239        .17804E-03   -1.5596    
  12  norm          .16653E-08    2.1441        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.322        7.7579        .27415E-03   -1.5635    
  14  Prefactor     .84932E-08    3.8307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .26590E-07    9.8604        .12179E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .99920E-09    2.9311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .87061        6.3998        .47682E-03   -1.5689    
  18  norm          4.5932        4.5263        .46995E-03   -1.5665    
  19  norm          .65337E-07    5.7891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .11324E-07    3.9235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .31086E-08    2.4866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.6900        .20297        .70639E-01   -.72571    
  23  Prefactor     .81553        .94127E-01    .43918E-01   -.99158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01768e-06
Minuit parameter uncertainties:
  1  0.00124362
  2  0.657964
  3  0.000408145
  4  4.88273
  5  5.179
  6  5.04867
  7  2.90716
  8  1.93243
  9  6.09087
  10  6.63243
  11  19.2394
  12  0.000119379
  13  7.75792
  14  0.000360934
  15  0.00102459
  16  0.000106819
  17  4.72094
  18  4.52635
  19  0.00123023
  20  0.000421555
  21  0.000176278
  22  0.20307
  23  0.0941455
Done.

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

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  1.997e+00  1.932e+00  0.000e+00  1.000e+06 ( 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 -5.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.155e-01  9.415e-02  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.690e+00  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.65
Ra Dec: 198.111 -21.938
Photon Index (Fixed Index): 1.83 +/- 0.00
Photon Flux (Fixed Index): 1.90e-08 +/- 1.84e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.72e-05

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

Saving results to:
/lscratch/kocevski/17372935/likelihoodResults_787276801_787536001_4FGL_J1312.4-2156_daily_bin2114.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) = 10792.2618006
delta logL = 0.206547431066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10792.2452795
delta logL = 0.22306856166

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7082       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3353       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6783       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81624       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=   10792.25     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7076        24.676        .80413E-03    .71716E-02
   2  alpha         2.3356        3.6653        .41265        .39005E-04
   3  Normalizat    1.6783        .61255E-01    .70825E-01   -.49535E-03
   4  Prefactor     .81623        .24870E-01    .43928E-01   -.82110E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.70764
  alpha      = 2.33557
  Normalizat = 1.67835
  Prefactor  = 0.816232
 **********
 **   18 **HESSE 
 **********

 FCN=   10792.25     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7076        1.9283        .11069E-04   -1.5682    
   2  alpha         2.3356        .82236        .16030E-01   -.65821E-01
   3  Normalizat    1.6783        .23726        .31333E-03   -.72883    
   4  Prefactor     .81623        .11088        .19964E-03   -.99133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19672e-09
Minuit parameter uncertainties:
  1  1.92834
  2  0.838038
  3  0.237422
  4  0.110908
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) = 10792.2452794
delta logL = 0.223068638154

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  1.708e+00  1.928e+00  0.000e+00  1.000e+06 ( 1.000e-12)
270        alpha:  2.336e+00  8.380e-01  0.000e+00  5.000e+00 ( 1.000e+00)
271         beta:  1.515e-01  0.000e+00 -5.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.162e-01  1.109e-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.678e+00  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.08
Ra Dec: 198.111 -21.938
Photon Index (Free Index): 2.34 +/- 0.84
Photon Flux (Free Index): 3.44e-08 +/- 3.65e-08
Energy Flux (Free Index): 1.48e-05 +/- 1.34e-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 /lscratch/kocevski/17372935/cmap_HighResolution_787276801_787536001_4FGL_J1312.4-2156_daily_bin2114.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.82e-05', comment='SUCCESS', photon_flux='1.90e-08', energy_flux2='1.48e-05', photon_flux_error='1.84e-08', dlogl='2.23e-01', energy_flux='1.78e-05', photon_flux2='3.44e-08', job_status='DONE', time_completed='2025-12-16 01:16:29.567102', photon_index_error2='0.84', photon_index2='2.34', ts='1.65', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='6.22e-08', energy_flux_error2='1.34e-05', EG='1.69', time_epoch_completed='1765876589.57', return_code='0', job_id='17372935', GAL2='0.82', EG2='1.68', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='3.65e-08', ts2='2.08', photon_index='1.83' WHERE bin_id='2114' AND source_name='4FGL J1312.4-2156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:16:30 PST 2025

