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


Performing analysis on: 4FGL_J2146.8+0425_weekly_bin945
RA = 326.708, Dec = 4.4266
tmin = 810518401, tmax = 811123201
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='38331552', job_status='RUN', time_executed='2026-09-15 17:11:08.418358', time_epoch_executed='1789517468.42' WHERE source_name='4FGL J2146.8+0425' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38331552

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38331552/ft1_4FGL_J2146.8+0425_weekly_bin945.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38331552/ft2_4FGL_J2146.8+0425_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38331552/ft1_4FGL_J2146.8+0425_weekly_bin945.fits outfile=/lscratch/kocevski/38331552/ft1_filteredMKT_4FGL_J2146.8+0425_weekly_bin945.fits ra=326.708 dec=4.4266 rad=12.0 tmin=810518401.0 tmax=811123201.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 6.55
user 5.95
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38331552/ft2_4FGL_J2146.8+0425_weekly_bin945.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/38331552/ft1_filteredMKT_4FGL_J2146.8+0425_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38331552/ft1_filtered_4FGL_J2146.8+0425_weekly_bin945.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.62
user 0.22
sys 0.12

Number of photons that the gtmktime cut: 1352

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38331552/ft1_filtered_4FGL_J2146.8+0425_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38331552/ft2_4FGL_J2146.8+0425_weekly_bin945.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38331552/ltcube_810518401_811123201_4FGL_J2146.8+0425_weekly_bin945.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/38331552/ft2_4FGL_J2146.8+0425_weekly_bin945.fits
.....................!
real 19.90
user 19.21
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38331552/ft1_filtered_4FGL_J2146.8+0425_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38331552/ft2_4FGL_J2146.8+0425_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38331552/ltcube_810518401_811123201_4FGL_J2146.8+0425_weekly_bin945.fits outfile=/lscratch/kocevski/38331552/expmap_810518401_811123201_4FGL_J2146.8+0425_weekly_bin945.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/38331552/ltcube_810518401_811123201_4FGL_J2146.8+0425_weekly_bin945.fits
.....................!
real 75.09
user 69.99
sys 4.32

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/38331552/ft1_filtered_4FGL_J2146.8+0425_weekly_bin945.fits scfile=/lscratch/kocevski/38331552/ft2_4FGL_J2146.8+0425_weekly_bin945.fits outfile=/lscratch/kocevski/38331552/cmap_810518401_811123201_4FGL_J2146.8+0425_weekly_bin945.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.62
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38331552/ft1_filtered_4FGL_J2146.8+0425_weekly_bin945.fits scfile=/lscratch/kocevski/38331552/ft2_4FGL_J2146.8+0425_weekly_bin945.fits outfile=/lscratch/kocevski/38331552/cmap_HighResolution_810518401_811123201_4FGL_J2146.8+0425_weekly_bin945.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.79
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38331552/ft1_filtered_4FGL_J2146.8+0425_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38331552/ft2_4FGL_J2146.8+0425_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38331552/Model_4FGL_J2146.8+0425_weekly_bin945.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/38331552/ft1_filtered_4FGL_J2146.8+0425_weekly_bin945.fits.....................!
real 57.83
user 56.07
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38331552/ft1_filtered_4FGL_J2146.8+0425_weekly_bin945.fits', '/lscratch/kocevski/38331552/ft2_4FGL_J2146.8+0425_weekly_bin945.fits', expMap='/lscratch/kocevski/38331552/expmap_810518401_811123201_4FGL_J2146.8+0425_weekly_bin945.fits', expCube='/lscratch/kocevski/38331552/ltcube_810518401_811123201_4FGL_J2146.8+0425_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38331552/Model_4FGL_J2146.8+0425_weekly_bin945.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/38331552/ft1_filtered_4FGL_J2146.8+0425_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38331552/ft2_4FGL_J2146.8+0425_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38331552/expmap_810518401_811123201_4FGL_J2146.8+0425_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38331552/ltcube_810518401_811123201_4FGL_J2146.8+0425_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38331552/Model_4FGL_J2146.8+0425_weekly_bin945.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) = 15205.520347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.040       1.0000          .0000       .10000E+07
     2 'Prefactor '    .47040E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    11.826       1.0000          .0000       .10000E+07
     4 'Prefactor '    15.745       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.3640       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.4310       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.5292       1.0000          .0000       .10000E+07
     8 'Prefactor '    .78810E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .78738E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .79115       1.0000          .0000       .10000E+07
    11 'norm      '    45.182       1.0000          .0000       .10000E+07
    12 'Prefactor '    .15057E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    9.3743       1.0000          .0000       .10000E+07
    14 'Prefactor '    .10768E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .43734E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .15474       1.0000          .0000       .10000E+07
    17 'Prefactor '    .21211E-02   1.0000          .0000       .10000E+07
    18 'Normalizat'    .91037       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96598       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15205.48     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     1463 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.577        21.217       -.31585E-07   -.16306E-03
   2  Prefactor      .0000        22.457       -.10675E-06** at limit **
   3  Prefactor     11.952        42.420        .51812E-05    .41168E-03
   4  Prefactor     15.674        14.346       -.12082E-06   -.27166E-03
   5  Prefactor     .45936        20.719       -.35554E-06   -.19844E-02
   6  Prefactor     3.4297        3.6848       -.26430E-08   -.92992E-02
   7  Prefactor     2.5492        1.7478       -.96782E-08    .19742E-02
   8  Prefactor      .0000        11.826       -.54895E-07** at limit **
   9  Prefactor      .0000        13.515        .21337E-07** at limit **
  10  norm          .79120        1.4639       -.52142E-07   -.28740E-01
  11  norm          45.173        18.603        .78935E-07    .23128E-03
  12  Prefactor      .0000        2.5331        .91549E-08** at limit **
  13  Prefactor     9.4059        7.3902        .14587E-07   -.61261E-03
  14  Prefactor      .0000        3.6703        .34506E-08** at limit **
  15  Prefactor      .0000        6.4952        .43101E-07** at limit **
  16  Prefactor     .10396        4.1430        .18466E-07** at limit **
  17  Prefactor      .0000        8.8142        .20344E-08** at limit **
  18  Normalizat    .91094        .16215       -.23602E-05    .21864E-03
  19  Prefactor     .96563        .77191E-01   -.23145E-06    .32001E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5773
  Prefactor  = 0
  Prefactor  = 11.9516
  Prefactor  = 15.6737
  Prefactor  = 0.459365
  Prefactor  = 3.4297
  Prefactor  = 2.54917
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.791202
  norm       = 45.1735
  Prefactor  = 0
  Prefactor  = 9.4059
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0.103965
  Prefactor  = 0
  Normalizat = 0.910936
  Prefactor  = 0.965628
 **********
 **   18 **HESSE 
 **********

 FCN=   15205.48     FROM HESSE     STATUS=OK           286 CALLS     1749 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.577        21.242        .99926E-05   -1.5627    
   2  Prefactor      .0000        22.475        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.952        41.856        .11642E-04   -1.5639    
   4  Prefactor     15.674        14.352        .10086E-04   -1.5629    
   5  Prefactor     .45936        20.199        .14048E-01   -1.5694    
   6  Prefactor     3.4297        3.6804        .21833E-04   -1.5671    
   7  Prefactor     2.5492        1.7321        .11992E-04   -1.5676    
   8  Prefactor      .0000        11.835        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        13.518        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .79120        1.4656        .19042E-04   -1.5690    
  11  norm          45.173        18.564        .59513E-05   -1.5574    
  12  Prefactor      .0000        2.5397        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.4059        7.3904        .13083E-04   -1.5647    
  14  Prefactor      .0000        3.6720        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        6.5015        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10396        4.9095        .77861E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        8.8243        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .91094        .19165        .36205E-03   -.96077    
  19  Prefactor     .96563        .92394E-01    .17683E-03   -.93884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83413e-09
Minuit parameter uncertainties:
  1  21.2424
  2  3.86915e-05
  3  41.8566
  4  14.3519
  5  6.09226
  6  3.68038
  7  1.73214
  8  1.40459e-05
  9  2.68727e-06
  10  1.46556
  11  18.5638
  12  2.27098e-06
  13  7.3904
  14  3.51973e-06
  15  9.70505e-06
  16  1.42887
  17  1.03949e-05
  18  0.191798
  19  0.0924092
Done.

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

Extracting fit parameters...

4FGL J2146.8+0425
   Spectrum: PowerLaw
295    Prefactor:  0.000e+00  2.687e-06  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:  9.656e-01  9.241e-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:  9.109e-01  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 326.708 4.427
Photon Flux Upper Limit: 6.02841655599e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00474835120756 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38331552/likelihoodResults_810518401_811123201_4FGL_J2146.8+0425_weekly_bin945.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): 102
logL (Free Index) = 15205.4786593
delta logL = -6.9875133704e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15205.4785896
delta logL = -1.72633008333e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16597E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.5093       1.0000          .0000       10.000    
     3 'Normalizat'    .91088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96566       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=   15205.48     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      270 TOTAL
                     EDM=   .10E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        12.988        .28496E-06** at limit **
   2  Index         2.7693        6.3811       -.14171E-04     .0000    
   3  Normalizat    .91094        .18026        .26845E-05   -.27213E-05
   4  Prefactor     .96563        .91004E-01   -.68074E-06   -.47459E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.7693
  Normalizat = 0.910935
  Prefactor  = 0.965628
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15205.48     FROM HESSE     STATUS=FAILED        11 CALLS      281 TOTAL
                     EDM=   .10E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        13.069        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .86867        1.9983       -.14171E-04   -.46245    
   3  Normalizat    .91094        1.2457        .26845E-05   -.96077    
   4  Prefactor     .96563        1.3069       -.68074E-06   -.93884    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.02039e-14
Minuit parameter uncertainties:
  1  2.92772e-06
  2  1.32919
  3  1.28887
  4  1.35383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 15205.4785895
delta logL = 2.54658516496e-11

Extracting fit parameters...

4FGL J2146.8+0425
   Spectrum: PowerLaw
295    Prefactor:  0.000e+00  2.928e-06  0.000e+00  1.000e+06 ( 1.000e-13)
296        Index:  2.769e+00  1.329e+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:  9.656e-01  1.354e+00  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:  9.109e-01  1.289e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 326.708 4.427

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/38331552/cmap_HighResolution_810518401_811123201_4FGL_J2146.8+0425_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', job_status='DONE', photon_flux_upper_limit='6.03e-08', time_completed='2026-09-15 17:18:46.326536', job_id='38331552', GAL2='0.97', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1789517926.33', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='945' AND source_name='4FGL J2146.8+0425' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 17:18:46 PDT 2026

