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


Performing analysis on: 4FGL_J2146.8+0425_weekly_bin907
RA = 326.708, Dec = 4.4266
tmin = 787536001, tmax = 788140801
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='17776524', job_status='RUN', time_executed='2025-12-23 02:29:23.279893', time_epoch_executed='1766485763.28' WHERE source_name='4FGL J2146.8+0425' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17776524

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17776524/ft1_4FGL_J2146.8+0425_weekly_bin907.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17776524/ft2_4FGL_J2146.8+0425_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17776524/ft1_4FGL_J2146.8+0425_weekly_bin907.fits outfile=/lscratch/kocevski/17776524/ft1_filteredMKT_4FGL_J2146.8+0425_weekly_bin907.fits ra=326.708 dec=4.4266 rad=12.0 tmin=787536001.0 tmax=788140801.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.18
user 3.69
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17776524/ft2_4FGL_J2146.8+0425_weekly_bin907.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17776524/ft2_4FGL_J2146.8+0425_weekly_bin907.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/17776524/ft1_filteredMKT_4FGL_J2146.8+0425_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17776524/ft1_filtered_4FGL_J2146.8+0425_weekly_bin907.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.65
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 1357

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17776524/ft1_filtered_4FGL_J2146.8+0425_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17776524/ft2_4FGL_J2146.8+0425_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17776524/ltcube_787536001_788140801_4FGL_J2146.8+0425_weekly_bin907.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/17776524/ft2_4FGL_J2146.8+0425_weekly_bin907.fits
.....................!
real 17.63
user 16.97
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17776524/ft1_filtered_4FGL_J2146.8+0425_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17776524/ft2_4FGL_J2146.8+0425_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17776524/ltcube_787536001_788140801_4FGL_J2146.8+0425_weekly_bin907.fits outfile=/lscratch/kocevski/17776524/expmap_787536001_788140801_4FGL_J2146.8+0425_weekly_bin907.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/17776524/ltcube_787536001_788140801_4FGL_J2146.8+0425_weekly_bin907.fits
.....................!
real 62.50
user 58.62
sys 3.15

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
Added 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J2146.8+0425 @ 326.708 4.4266

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17776524/ft1_filtered_4FGL_J2146.8+0425_weekly_bin907.fits scfile=/lscratch/kocevski/17776524/ft2_4FGL_J2146.8+0425_weekly_bin907.fits outfile=/lscratch/kocevski/17776524/cmap_787536001_788140801_4FGL_J2146.8+0425_weekly_bin907.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=326.708 yref=4.4266 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.69
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17776524/ft1_filtered_4FGL_J2146.8+0425_weekly_bin907.fits scfile=/lscratch/kocevski/17776524/ft2_4FGL_J2146.8+0425_weekly_bin907.fits outfile=/lscratch/kocevski/17776524/cmap_HighResolution_787536001_788140801_4FGL_J2146.8+0425_weekly_bin907.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=326.708 yref=4.4266 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.69
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17776524/ft1_filtered_4FGL_J2146.8+0425_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17776524/ft2_4FGL_J2146.8+0425_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17776524/Model_4FGL_J2146.8+0425_weekly_bin907.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 EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17776524/ft1_filtered_4FGL_J2146.8+0425_weekly_bin907.fits.....................!
real 48.47
user 47.01
sys 0.82

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17776524/ft1_filtered_4FGL_J2146.8+0425_weekly_bin907.fits', '/lscratch/kocevski/17776524/ft2_4FGL_J2146.8+0425_weekly_bin907.fits', expMap='/lscratch/kocevski/17776524/expmap_787536001_788140801_4FGL_J2146.8+0425_weekly_bin907.fits', expCube='/lscratch/kocevski/17776524/ltcube_787536001_788140801_4FGL_J2146.8+0425_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17776524/Model_4FGL_J2146.8+0425_weekly_bin907.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2146.8+0425'

4FGL J2146.8+0425
   Spectrum: PowerLaw
295    Prefactor:  6.838e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
296        Index:  2.709e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  6.856e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17776524/ft1_filtered_4FGL_J2146.8+0425_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17776524/ft2_4FGL_J2146.8+0425_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17776524/expmap_787536001_788140801_4FGL_J2146.8+0425_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17776524/ltcube_787536001_788140801_4FGL_J2146.8+0425_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17776524/Model_4FGL_J2146.8+0425_weekly_bin907.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) = 15016.3065763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3670       1.0000          .0000       .10000E+07
     2 'Prefactor '    .13521E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .45292E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .56638E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .40424E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .23481E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    3.2360       1.0000          .0000       .10000E+07
     8 'Prefactor '    22.517       1.0000          .0000       .10000E+07
     9 'Prefactor '    58.394       1.0000          .0000       .10000E+07
    10 'norm      '    .71094       1.0000          .0000       .10000E+07
    11 'norm      '    7.6171       1.0000          .0000       .10000E+07
    12 'Prefactor '    .75012E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    3.1043       1.0000          .0000       .10000E+07
    14 'Prefactor '    .10659E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .25869E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    6.9614       1.0000          .0000       .10000E+07
    17 'Prefactor '    .27606E-06   1.0000          .0000       .10000E+07
    18 'Normalizat'    .45088       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1308       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15016.23     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     1446 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1555        6.1520        .68390E-06    .82763E-02
   2  Prefactor      .0000        3.2696       -.33249E-06** at limit **
   3  Prefactor     .30531E-08    12.878        .33902E-06** at limit **
   4  Prefactor     .11102E-08    4.6726        .47979E-06** at limit **
   5  Prefactor     .55511E-10    29.172        .40710E-06** at limit **
   6  Prefactor      .0000        2.5659       -.91744E-07** at limit **
   7  Prefactor     3.2339        1.5818        .12766E-07   -.37356E-03
   8  Prefactor     22.551        7.0479        .36646E-06   -.42446E-01
   9  Prefactor     60.075        35.654       -.38811E-06   -.56280E-03
  10  norm          .71421        1.1996        .11157E-06   -.24873E-02
  11  norm          7.3805        5.2965       -.91308E-08    .31529E-01
  12  Prefactor     .47518E-07    27.746       -.25577E-05** at limit **
  13  Prefactor     3.2647        7.5677       -.36225E-06    .79560E-03
  14  Prefactor     .55511E-10    8.5127        .40598E-06** at limit **
  15  Prefactor     .55511E-09    5.5342       -.22977E-06** at limit **
  16  Prefactor     6.9191        8.5641       -.19568E-06    .69826E-02
  17  Prefactor     .27756E-09    3.4026        .19814E-06** at limit **
  18  Normalizat    .44948        .17180        .33037E-06   -.61616E-04
  19  Prefactor     1.1311        .89319E-01   -.33175E-06   -.16187E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.15554
  Prefactor  = 0
  Prefactor  = 3.05311e-09
  Prefactor  = 1.11022e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 3.23393
  Prefactor  = 22.5514
  Prefactor  = 60.0751
  norm       = 0.714211
  norm       = 7.38052
  Prefactor  = 4.75175e-08
  Prefactor  = 3.26472
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-10
  Prefactor  = 6.91911
  Prefactor  = 2.77556e-10
  Normalizat = 0.449478
  Prefactor  = 1.13113
 **********
 **   18 **HESSE 
 **********

 FCN=   15016.23     FROM HESSE     STATUS=OK           314 CALLS     1760 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1555        10.005        .66576E-03   -1.5679    
   2  Prefactor      .0000        4.2917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .30531E-08    12.922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11102E-08    4.7569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    28.260        .15945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        2.5355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2339        1.6257        .56283E-03   -1.5672    
   8  Prefactor     22.551        24.335        .21079E-03   -1.5613    
   9  Prefactor     60.075        40.168        .13087E-03   -1.5553    
  10  norm          .71421        1.2389        .59824E-03   -1.5691    
  11  norm          7.3805        13.607        .36312E-03   -1.5654    
  12  Prefactor     .47518E-07    3.5463        .63656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2647        7.6253        .57529E-03   -1.5672    
  14  Prefactor     .55511E-10    8.5050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-09    5.5573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.9191        8.8174        .38000E-03   -1.5655    
  17  Prefactor     .27756E-09    4.1723        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .44948        .17187        .10307       -1.1482    
  19  Prefactor     1.1311        .84319E-01    .36518E-01   -.88478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55165e-08
Minuit parameter uncertainties:
  1  9.28809
  2  1.51279e-05
  3  0.000398996
  4  0.000144635
  5  6.61054e-05
  6  2.74008e-06
  7  1.62573
  8  24.3352
  9  40.1685
  10  1.2389
  11  13.6074
  12  0.00082121
  13  7.62536
  14  5.1204e-05
  15  0.000113453
  16  8.81737
  17  6.55764e-05
  18  0.172073
  19  0.0843289
Done.

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

Extracting fit parameters...

4FGL J2146.8+0425
   Spectrum: PowerLaw
295    Prefactor:  6.008e+01  4.017e+01  0.000e+00  1.000e+06 ( 1.000e-13)
296        Index:  2.709e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  6.856e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.131e+00  8.433e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  4.495e-01  1.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.22
Ra Dec: 326.708 4.427
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 6.48e-08 +/- 4.33e-08
Energy Flux (Fixed Index): 1.55e-05 +/- 1.03e-05

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) = 15016.0713004
delta logL = 0.153777912008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15016.0602639
delta logL = 0.164814355508

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.878       1.0000          .0000       .10000E+07
     2 'Index     '    3.1500       1.0000          .0000       10.000    
     3 'Normalizat'    .42516       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1411       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15016.06     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      271 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.878        335.80        .16040E-03    .63378E-02
   2  Index         3.1501        3.1192        .14411        .20042E-03
   3  Normalizat    .42470        .56781E-01    .10592       -.31866E-03
   4  Prefactor     1.1413        .27012E-01    .36201E-01   -.16259E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.8778
  Index      = 3.15009
  Normalizat = 0.424702
  Prefactor  = 1.14131
 **********
 **   18 **HESSE 
 **********

 FCN=   15016.06     FROM HESSE     STATUS=OK            29 CALLS      300 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.878        95.243        .64158E-05   -1.5583    
   2  Index         3.1501        1.7221        .76822E-02   -.37899    
   3  Normalizat    .42470        .18355        .46932E-03   -1.1604    
   4  Prefactor     1.1413        .95154E-01    .15555E-03   -.88157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41358e-08
Minuit parameter uncertainties:
  1  95.2465
  2  1.76425
  3  0.183811
  4  0.0951686
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) = 15016.0602599
delta logL = 0.164818345058

Extracting fit parameters...

4FGL J2146.8+0425
   Spectrum: PowerLaw
295    Prefactor:  3.888e+01  9.525e+01  0.000e+00  1.000e+06 ( 1.000e-13)
296        Index:  3.150e+00  1.764e+00  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  6.856e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.141e+00  9.517e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  4.247e-01  1.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.68
Ra Dec: 326.708 4.427
Photon Index (Free Index): 3.15 +/- 1.76
Photon Flux (Free Index): 7.79e-08 +/- 4.47e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.10e-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/17776524/cmap_HighResolution_787536001_788140801_4FGL_J2146.8+0425_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.48e-08', energy_flux2='1.45e-05', photon_flux_error='4.33e-08', dlogl='1.65e-01', energy_flux='1.55e-05', photon_flux2='7.79e-08', job_status='DONE', time_completed='2025-12-23 02:38:20.060397', photon_index_error2='1.76', photon_index2='3.15', ts='4.22', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='0.45', time_epoch_completed='1766486300.06', return_code='0', job_id='17776524', GAL2='1.14', EG2='0.42', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='4.47e-08', ts2='4.68', photon_index='2.71' WHERE bin_id='907' AND source_name='4FGL J2146.8+0425' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 02:38:20 PST 2025

