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


Performing analysis on: 4FGL_J0946.6+1016_weekly_bin906
RA = 146.661, Dec = 10.277
tmin = 786931201, 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='17377635', job_status='RUN', time_executed='2025-12-16 01:56:13.974862', time_epoch_executed='1765878973.97' WHERE source_name='4FGL J0946.6+1016' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17377635

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17377635/ft1_4FGL_J0946.6+1016_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17377635/ft2_4FGL_J0946.6+1016_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17377635/ft1_4FGL_J0946.6+1016_weekly_bin906.fits outfile=/lscratch/kocevski/17377635/ft1_filteredMKT_4FGL_J0946.6+1016_weekly_bin906.fits ra=146.661 dec=10.277 rad=12.0 tmin=786931201.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 5.14
user 4.31
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17377635/ft2_4FGL_J0946.6+1016_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17377635/ft2_4FGL_J0946.6+1016_weekly_bin906.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/17377635/ft1_filteredMKT_4FGL_J0946.6+1016_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17377635/ft1_filtered_4FGL_J0946.6+1016_weekly_bin906.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.74
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 1382

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17377635/ft1_filtered_4FGL_J0946.6+1016_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17377635/ft2_4FGL_J0946.6+1016_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17377635/ltcube_786931201_787536001_4FGL_J0946.6+1016_weekly_bin906.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/17377635/ft2_4FGL_J0946.6+1016_weekly_bin906.fits
.....................!
real 16.65
user 15.95
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17377635/ft1_filtered_4FGL_J0946.6+1016_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17377635/ft2_4FGL_J0946.6+1016_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17377635/ltcube_786931201_787536001_4FGL_J0946.6+1016_weekly_bin906.fits outfile=/lscratch/kocevski/17377635/expmap_786931201_787536001_4FGL_J0946.6+1016_weekly_bin906.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/17377635/ltcube_786931201_787536001_4FGL_J0946.6+1016_weekly_bin906.fits
.....................!
real 59.39
user 55.48
sys 3.26

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

Setting source of interest to:
4FGL J0946.6+1016 @ 146.661 10.277

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17377635/ft1_filtered_4FGL_J0946.6+1016_weekly_bin906.fits scfile=/lscratch/kocevski/17377635/ft2_4FGL_J0946.6+1016_weekly_bin906.fits outfile=/lscratch/kocevski/17377635/cmap_786931201_787536001_4FGL_J0946.6+1016_weekly_bin906.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=146.661 yref=10.277 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.73
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17377635/ft1_filtered_4FGL_J0946.6+1016_weekly_bin906.fits scfile=/lscratch/kocevski/17377635/ft2_4FGL_J0946.6+1016_weekly_bin906.fits outfile=/lscratch/kocevski/17377635/cmap_HighResolution_786931201_787536001_4FGL_J0946.6+1016_weekly_bin906.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=146.661 yref=10.277 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.63
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17377635/ft1_filtered_4FGL_J0946.6+1016_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17377635/ft2_4FGL_J0946.6+1016_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17377635/Model_4FGL_J0946.6+1016_weekly_bin906.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/17377635/ft1_filtered_4FGL_J0946.6+1016_weekly_bin906.fits.....................!
real 45.01
user 43.64
sys 0.64

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17377635/ft1_filtered_4FGL_J0946.6+1016_weekly_bin906.fits', '/lscratch/kocevski/17377635/ft2_4FGL_J0946.6+1016_weekly_bin906.fits', expMap='/lscratch/kocevski/17377635/expmap_786931201_787536001_4FGL_J0946.6+1016_weekly_bin906.fits', expCube='/lscratch/kocevski/17377635/ltcube_786931201_787536001_4FGL_J0946.6+1016_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17377635/Model_4FGL_J0946.6+1016_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0946.6+1016'

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.452e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
201        alpha:  2.344e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  8.006e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.052e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17377635/ft1_filtered_4FGL_J0946.6+1016_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17377635/ft2_4FGL_J0946.6+1016_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17377635/expmap_786931201_787536001_4FGL_J0946.6+1016_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17377635/ltcube_786931201_787536001_4FGL_J0946.6+1016_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17377635/Model_4FGL_J0946.6+1016_weekly_bin906.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) = 15709.6337509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3337       1.0000          .0000       .10000E+07
     2 'Prefactor '    .70499E-08   1.0000          .0000       .10000E+07
     3 'norm      '    .86731       1.0000          .0000       .10000E+07
     4 'norm      '    .66414       1.0000          .0000       .10000E+07
     5 'Prefactor '    22.339       1.0000          .0000       .10000E+07
     6 'Prefactor '    .12412E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .45801E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .32848E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .15338E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .16159E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .27998E-05   1.0000          .0000       .10000E+07
    12 'Normalizat'    .91622       1.0000         .10000E-01   10.000    
    13 'Prefactor '    1.0543       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15709.59     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      683 TOTAL
                     EDM=   .50E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3344        2.0207        .61968E-07   -.12463E-04
   2  Prefactor      .0000        .60079       -.10490E-06** at limit **
   3  norm          .86804        .75316        .85464E-07    .19767E-02
   4  norm          .66432        .33762        .10534E-07   -.13617E-02
   5  Prefactor     23.265        20.297        .34020E-06    .78846E-05
   6  Prefactor      .0000        7.9168       -.60171E-06** at limit **
   7  Prefactor      .0000        1.2477       -.43441E-06** at limit **
   8  Prefactor      .0000        5.9814        .15403E-05** at limit **
   9  Prefactor      .0000        8.7271        .19456E-05** at limit **
  10  Prefactor      .0000        5.5847        .12242E-06** at limit **
  11  Prefactor      .0000        1.8619       -.73607E-06** at limit **
  12  Normalizat    .91545        .12507       -.47484E-05    .58627E-04
  13  Prefactor     1.0544        .10816        .60790E-05    .18748E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.3344
  Prefactor  = 0
  norm       = 0.868038
  norm       = 0.664322
  Prefactor  = 23.2645
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 0.915455
  Prefactor  = 1.05437
 **********
 **   18 **HESSE 
 **********

 FCN=   15709.59     FROM HESSE     STATUS=OK           165 CALLS      848 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3344        2.0570        .94996E-03   -1.5685    
   2  Prefactor      .0000        .59668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .86804        .75843        .48047E-03   -1.5689    
   4  norm          .66432        .34179        .63668E-03   -1.5692    
   5  Prefactor     23.265        20.258        .21163E-03   -1.5611    
   6  Prefactor      .0000        7.8235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        1.2501        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        5.9819        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        8.7221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        5.5857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        1.8636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Normalizat    .91545        .10752        .45108E-01   -.95919    
  13  Prefactor     1.0544        .92729E-01    .39667E-01   -.90938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82766e-10
Minuit parameter uncertainties:
  1  2.05699
  2  1.02965e-06
  3  0.758433
  4  0.341787
  5  20.2576
  6  1.77937e-05
  7  6.19851e-07
  8  3.15404e-06
  9  1.84071e-05
  10  2.05167e-06
  11  1.04233e-06
  12  0.107546
  13  0.0927434
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  8.680e-01  7.584e-01  0.000e+00  1.000e+06 ( 1.000e-11)
201        alpha:  2.344e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  8.006e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.052e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  1.054e+00  9.274e-02  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  9.155e-01  1.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.69
Ra Dec: 146.661 10.277
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 2.60e-08 +/- 2.27e-08
Energy Flux (Fixed Index): 8.33e-06 +/- 7.28e-06

TS (Fixed Index): 1.69
Ra Dec: 146.661 10.277
Photon Flux Upper Limit: 7.0566877545e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.26093520987e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17377635/likelihoodResults_786931201_787536001_4FGL_J0946.6+1016_weekly_bin906.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) = 15708.7355422
delta logL = 0.853066417876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15708.7262827
delta logL = 0.862325879129

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15708.73     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      204 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81004        8.9101        .52189E-04    .22166E-01
   2  alpha         3.1449        4.0641        .43031        .11984E-03
   3  Normalizat    .87948        .40246E-01    .44639E-01    .45694E-04
   4  Prefactor     1.0729        .35597E-01    .38720E-01    .13863E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.810042
  alpha      = 3.14488
  Normalizat = 0.879485
  Prefactor  = 1.07292
 **********
 **   18 **HESSE 
 **********

 FCN=   15708.73     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81004        .69758        .20876E-05   -1.5690    
   2  alpha         3.1449        .68042        .20556E-01    .26090    
   3  Normalizat    .87948        .12751        .25804E-03   -.97185    
   4  Prefactor     1.0729        .10949        .20731E-03   -.90337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10924e-10
Minuit parameter uncertainties:
  1  0.697576
  2  0.689755
  3  0.127549
  4  0.109516
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) = 15708.7262827
delta logL = 0.862325882206

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  8.100e-01  6.976e-01  0.000e+00  1.000e+06 ( 1.000e-11)
201        alpha:  3.145e+00  6.898e-01  0.000e+00  5.000e+00 ( 1.000e+00)
202         beta:  8.006e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.052e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  1.073e+00  1.095e-01  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  8.795e-01  1.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.54
Ra Dec: 146.661 10.277
Photon Index (Free Index): 3.14 +/- 0.69
Photon Flux (Free Index): 5.46e-08 +/- 3.43e-08
Energy Flux (Free Index): 1.04e-05 +/- 6.41e-06

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/17377635/cmap_HighResolution_786931201_787536001_4FGL_J0946.6+1016_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.26e-05', comment='SUCCESS', photon_flux='2.60e-08', energy_flux2='1.04e-05', photon_flux_error='2.27e-08', dlogl='8.62e-01', energy_flux='8.33e-06', photon_flux2='5.46e-08', job_status='DONE', time_completed='2025-12-16 02:05:55.151220', photon_index_error2='0.69', photon_index2='3.14', ts='1.69', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='7.06e-08', energy_flux_error2='6.41e-06', EG='0.92', time_epoch_completed='1765879555.15', return_code='0', job_id='17377635', GAL2='1.07', EG2='0.88', return_code2='0', energy_flux_error='7.28e-06', photon_flux_error2='3.43e-08', ts2='3.54', photon_index='2.34' WHERE bin_id='906' AND source_name='4FGL J0946.6+1016' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:05:55 PST 2025

