/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_J1246.7-2548_daily_bin2114
RA = 191.689, Dec = -25.8018
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='17372257', job_status='RUN', time_executed='2025-12-16 00:59:36.926233', time_epoch_executed='1765875576.93' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='2114'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17372257

Creating custom pfile directory:
/lscratch/kocevski/17372257/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/17372257/ft1_4FGL_J1246.7-2548_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/17372257/ft2_4FGL_J1246.7-2548_daily_bin2114.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17372257/ft1_4FGL_J1246.7-2548_daily_bin2114.fits outfile=/lscratch/kocevski/17372257/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin2114.fits ra=191.689 dec=-25.8018 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 2.55
user 1.65
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17372257/ft2_4FGL_J1246.7-2548_daily_bin2114.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17372257/ft2_4FGL_J1246.7-2548_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/17372257/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin2114.fits evtable="EVENTS" outfile="/lscratch/kocevski/17372257/ft1_filtered_4FGL_J1246.7-2548_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 0.92
user 0.17
sys 0.11

Number of photons that the gtmktime cut: 1041

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17372257/ft1_filtered_4FGL_J1246.7-2548_daily_bin2114.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17372257/ft2_4FGL_J1246.7-2548_daily_bin2114.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17372257/ltcube_787276801_787536001_4FGL_J1246.7-2548_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/17372257/ft2_4FGL_J1246.7-2548_daily_bin2114.fits
.....................!
real 7.50
user 6.66
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17372257/ft1_filtered_4FGL_J1246.7-2548_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372257/ft2_4FGL_J1246.7-2548_daily_bin2114.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17372257/ltcube_787276801_787536001_4FGL_J1246.7-2548_daily_bin2114.fits outfile=/lscratch/kocevski/17372257/expmap_787276801_787536001_4FGL_J1246.7-2548_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/17372257/ltcube_787276801_787536001_4FGL_J1246.7-2548_daily_bin2114.fits
.....................!
real 59.52
user 55.60
sys 3.01

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 184 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 J1246.7-2548 @ 191.689 -25.8018

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17372257/ft1_filtered_4FGL_J1246.7-2548_daily_bin2114.fits scfile=/lscratch/kocevski/17372257/ft2_4FGL_J1246.7-2548_daily_bin2114.fits outfile=/lscratch/kocevski/17372257/cmap_787276801_787536001_4FGL_J1246.7-2548_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=191.689 yref=-25.8018 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.91
user 0.19
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17372257/ft1_filtered_4FGL_J1246.7-2548_daily_bin2114.fits scfile=/lscratch/kocevski/17372257/ft2_4FGL_J1246.7-2548_daily_bin2114.fits outfile=/lscratch/kocevski/17372257/cmap_HighResolution_787276801_787536001_4FGL_J1246.7-2548_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=191.689 yref=-25.8018 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.90
user 0.20
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17372257/ft1_filtered_4FGL_J1246.7-2548_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372257/ft2_4FGL_J1246.7-2548_daily_bin2114.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17372257/Model_4FGL_J1246.7-2548_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/17372257/ft1_filtered_4FGL_J1246.7-2548_daily_bin2114.fits.....................!
real 61.84
user 59.82
sys 0.83

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17372257/ft1_filtered_4FGL_J1246.7-2548_daily_bin2114.fits', '/lscratch/kocevski/17372257/ft2_4FGL_J1246.7-2548_daily_bin2114.fits', expMap='/lscratch/kocevski/17372257/expmap_787276801_787536001_4FGL_J1246.7-2548_daily_bin2114.fits', expCube='/lscratch/kocevski/17372257/ltcube_787276801_787536001_4FGL_J1246.7-2548_daily_bin2114.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17372257/Model_4FGL_J1246.7-2548_daily_bin2114.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1246.7-2548'

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  2.651e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
276        alpha:  2.214e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  1.173e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.582e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17372257/ft1_filtered_4FGL_J1246.7-2548_daily_bin2114.fits
Spacecraft file(s): /lscratch/kocevski/17372257/ft2_4FGL_J1246.7-2548_daily_bin2114.fits
Exposure map: /lscratch/kocevski/17372257/expmap_787276801_787536001_4FGL_J1246.7-2548_daily_bin2114.fits
Exposure cube: /lscratch/kocevski/17372257/ltcube_787276801_787536001_4FGL_J1246.7-2548_daily_bin2114.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17372257/Model_4FGL_J1246.7-2548_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) = 10893.8391746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0894       1.0000          .0000       .10000E+07
     2 'norm      '    .19681E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .23790E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .59542E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .46619E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .73651E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .13080E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .43722E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .65900       1.0000          .0000       .10000E+07
    10 'Prefactor '    .10158E-01   1.0000          .0000       .10000E+07
    11 'norm      '    4.8641       1.0000          .0000       .10000E+07
    12 'norm      '    2.7054       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.6719       1.0000          .0000       .10000E+07
    14 'norm      '    2.2474       1.0000          .0000       .10000E+07
    15 'norm      '    2.1952       1.0000          .0000       .10000E+07
    16 'norm      '    6.2104       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.1677       1.0000          .0000       .10000E+07
    18 'Prefactor '    .11558E-04   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.5645       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10893.79     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1239 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0675        7.3885       -.27049E-06    .11562E-02
   2  norm          .50404E-07    8.9309        .23137E-06** at limit **
   3  Prefactor      .0000        1.0671        .53029E-07** at limit **
   4  Prefactor     .15693E-06    4.7587        .21352E-06** at limit **
   5  Prefactor     .11657E-08    6.1847        .20120E-07** at limit **
   6  Prefactor     .44409E-09    4.1034        .29465E-06** at limit **
   7  Prefactor     .99143E-07    5.6835        .42985E-06** at limit **
   8  Prefactor     .81046E-08    7.7196       -.21468E-07** at limit **
   9  norm          .65846        .67986       -.84248E-07    .42167E-02
  10  Prefactor     .94369E-09    17.934        .60361E-06** at limit **
  11  norm          4.8310        5.0983       -.90979E-07    .63989E-03
  12  norm          2.6664        4.8896       -.92091E-07    .25129E-03
  13  Prefactor     1.6722        4.7894        .65791E-07    .11869E-03
  14  norm          2.2511        3.3014        .13871E-06   -.65491E-03
  15  norm          2.1960        1.9722        .44033E-07   -.39513E-03
  16  norm          6.1292        4.5635        .61446E-07   -.29337E-03
  17  Prefactor     2.5311        83.717       -.49322E-06    .65663E-03
  18  Prefactor     .11102E-09    3.9233       -.42696E-06** at limit **
  19  Normalizat    1.5650        .22626        .40388E-05    .87900E-04
  20  Prefactor     .80486        .10419       -.44887E-05    .21430E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.06754
  norm       = 5.04041e-08
  Prefactor  = 0
  Prefactor  = 1.5693e-07
  Prefactor  = 1.16573e-09
  Prefactor  = 4.44089e-10
  Prefactor  = 9.91429e-08
  Prefactor  = 8.10463e-09
  norm       = 0.658456
  Prefactor  = 9.4369e-10
  norm       = 4.831
  norm       = 2.66637
  Prefactor  = 1.67219
  norm       = 2.25111
  norm       = 2.19603
  norm       = 6.12919
  Prefactor  = 2.53106
  Prefactor  = 1.11022e-10
  Normalizat = 1.56504
  Prefactor  = 0.804855
 **********
 **   18 **HESSE 
 **********

 FCN=   10893.79     FROM HESSE     STATUS=OK           333 CALLS     1572 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0675        7.4150        .40662E-03   -1.5659    
   2  norm          .50404E-07    10.494        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.0672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .15693E-06    12.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11657E-08    6.2234        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .44409E-09    11.792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .99143E-07    11.177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .81046E-08    8.0082        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .65846        .69048        .64101E-03   -1.5692    
  10  Prefactor     .94369E-09    17.990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.8310        5.1049        .45586E-03   -1.5664    
  12  norm          2.6664        5.2403        .61904E-03   -1.5675    
  13  Prefactor     1.6722        5.1654        .81490E-03   -1.5682    
  14  norm          2.2511        3.3247        .68518E-03   -1.5678    
  15  norm          2.1960        1.9830        .69427E-03   -1.5678    
  16  norm          6.1292        4.5648        .40259E-03   -1.5658    
  17  Prefactor     2.5311        85.590        .56918E-03   -1.5676    
  18  Prefactor     .11102E-09    3.9372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.5650        .18889        .69302E-01   -.75967    
  20  Prefactor     .80486        .86777E-01    .43778E-01   -.99550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29995e-08
Minuit parameter uncertainties:
  1  7.41501
  2  0.00145476
  3  7.08598e-06
  4  0.00277985
  5  0.00017115
  6  0.000141821
  7  0.00210565
  8  0.000510256
  9  0.690476
  10  0.000260479
  11  5.1049
  12  5.24032
  13  5.16542
  14  3.32471
  15  1.98305
  16  4.56477
  17  29.4374
  18  4.38861e-05
  19  0.188976
  20  0.0867913
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  6.585e-01  6.905e-01  0.000e+00  1.000e+06 ( 1.000e-11)
276        alpha:  2.214e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  1.173e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.582e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  8.049e-01  8.679e-02  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.565e+00  1.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.27
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 2.88e-08 +/- 3.02e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 1.16e-05

TS (Fixed Index): 1.27
Ra Dec: 191.689 -25.802
Photon Flux Upper Limit: 9.47158028726e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.6345797231e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17372257/likelihoodResults_787276801_787536001_4FGL_J1246.7-2548_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) = 10893.7129308
delta logL = 0.0794272261192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10893.7049637
delta logL = 0.0873943484985

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58502       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6473       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80943       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10893.70     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      249 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58397        .77980        .14116E-04    .31126E-02
   2  alpha         2.6481        1.1977        .25604E-01    .23242E-03
   3  Normalizat    1.5477        .23041        .30794E-03   -.28058E-05
   4  Prefactor     .80962        .10445        .18700E-03   -.35261E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.583967
  alpha      = 2.64812
  Normalizat = 1.54769
  Prefactor  = 0.809615
 **********
 **   18 **HESSE 
 **********

 FCN=   10893.70     FROM HESSE     STATUS=OK            27 CALLS      276 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58397        .70545        .28232E-05   -1.5693    
   2  alpha         2.6481        1.0910        .51207E-02    .59284E-01
   3  Normalizat    1.5477        .22974        .12318E-04   -.76447    
   4  Prefactor     .80962        .10421        .74800E-05   -.99375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60124e-11
Minuit parameter uncertainties:
  1  0.705449
  2  1.12917
  3  0.229892
  4  0.104234
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) = 10893.7049608
delta logL = 0.087397246969

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  5.840e-01  7.054e-01  0.000e+00  1.000e+06 ( 1.000e-11)
276        alpha:  2.648e+00  1.129e+00  0.000e+00  5.000e+00 ( 1.000e+00)
277         beta:  1.173e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.582e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  8.096e-01  1.042e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.548e+00  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 2.65 +/- 1.13
Photon Flux (Free Index): 4.15e-08 +/- 4.69e-08
Energy Flux (Free Index): 1.07e-05 +/- 1.03e-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/17372257/cmap_HighResolution_787276801_787536001_4FGL_J1246.7-2548_daily_bin2114.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-05', comment='SUCCESS', photon_flux='2.88e-08', energy_flux2='1.07e-05', photon_flux_error='3.02e-08', dlogl='8.74e-02', energy_flux='1.11e-05', photon_flux2='4.15e-08', job_status='DONE', time_completed='2025-12-16 01:06:46.532393', photon_index_error2='1.13', photon_index2='2.65', ts='1.27', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='9.47e-08', energy_flux_error2='1.03e-05', EG='1.57', time_epoch_completed='1765876006.53', return_code='0', job_id='17372257', GAL2='0.81', EG2='1.55', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='4.69e-08', ts2='1.44', photon_index='2.21' WHERE bin_id='2114' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:06:47 PST 2025

