/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_J0948.9+0022_weekly_bin906
RA = 147.244, Dec = 0.3717
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='17377646', job_status='RUN', time_executed='2025-12-16 01:56:13.976088', time_epoch_executed='1765878973.98' WHERE source_name='4FGL J0948.9+0022' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17377646

Creating custom pfile directory:
/lscratch/kocevski/17377646/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/17377646/ft1_4FGL_J0948.9+0022_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/17377646/ft2_4FGL_J0948.9+0022_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17377646/ft1_4FGL_J0948.9+0022_weekly_bin906.fits outfile=/lscratch/kocevski/17377646/ft1_filteredMKT_4FGL_J0948.9+0022_weekly_bin906.fits ra=147.244 dec=0.3717 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.11
user 4.31
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17377646/ft2_4FGL_J0948.9+0022_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17377646/ft2_4FGL_J0948.9+0022_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/17377646/ft1_filteredMKT_4FGL_J0948.9+0022_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17377646/ft1_filtered_4FGL_J0948.9+0022_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.78
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 1658

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17377646/ft1_filtered_4FGL_J0948.9+0022_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17377646/ft2_4FGL_J0948.9+0022_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17377646/ltcube_786931201_787536001_4FGL_J0948.9+0022_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/17377646/ft2_4FGL_J0948.9+0022_weekly_bin906.fits
.....................!
real 16.10
user 15.38
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17377646/ft1_filtered_4FGL_J0948.9+0022_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17377646/ft2_4FGL_J0948.9+0022_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17377646/ltcube_786931201_787536001_4FGL_J0948.9+0022_weekly_bin906.fits outfile=/lscratch/kocevski/17377646/expmap_786931201_787536001_4FGL_J0948.9+0022_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/17377646/ltcube_786931201_787536001_4FGL_J0948.9+0022_weekly_bin906.fits
.....................!
real 59.34
user 55.45
sys 3.22

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

Setting source of interest to:
4FGL J0948.9+0022 @ 147.244 0.3717

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17377646/ft1_filtered_4FGL_J0948.9+0022_weekly_bin906.fits scfile=/lscratch/kocevski/17377646/ft2_4FGL_J0948.9+0022_weekly_bin906.fits outfile=/lscratch/kocevski/17377646/cmap_786931201_787536001_4FGL_J0948.9+0022_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=147.244 yref=0.3717 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.81
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17377646/ft1_filtered_4FGL_J0948.9+0022_weekly_bin906.fits scfile=/lscratch/kocevski/17377646/ft2_4FGL_J0948.9+0022_weekly_bin906.fits outfile=/lscratch/kocevski/17377646/cmap_HighResolution_786931201_787536001_4FGL_J0948.9+0022_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=147.244 yref=0.3717 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.85
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17377646/ft1_filtered_4FGL_J0948.9+0022_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17377646/ft2_4FGL_J0948.9+0022_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17377646/Model_4FGL_J0948.9+0022_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/17377646/ft1_filtered_4FGL_J0948.9+0022_weekly_bin906.fits.....................!
real 52.47
user 50.68
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17377646/ft1_filtered_4FGL_J0948.9+0022_weekly_bin906.fits', '/lscratch/kocevski/17377646/ft2_4FGL_J0948.9+0022_weekly_bin906.fits', expMap='/lscratch/kocevski/17377646/expmap_786931201_787536001_4FGL_J0948.9+0022_weekly_bin906.fits', expCube='/lscratch/kocevski/17377646/ltcube_786931201_787536001_4FGL_J0948.9+0022_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17377646/Model_4FGL_J0948.9+0022_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0948.9+0022'

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.422e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-10)
218        alpha:  2.453e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
219         beta:  1.652e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17377646/ft1_filtered_4FGL_J0948.9+0022_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17377646/ft2_4FGL_J0948.9+0022_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17377646/expmap_786931201_787536001_4FGL_J0948.9+0022_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17377646/ltcube_786931201_787536001_4FGL_J0948.9+0022_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17377646/Model_4FGL_J0948.9+0022_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) = 18420.0870532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2305       1.0000          .0000       .10000E+07
     2 'norm      '    5.3812       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.9915       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12171E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .64975E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .45973E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .10176E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .75173       1.0000          .0000       .10000E+07
     9 'norm      '    .68290       1.0000          .0000       .10000E+07
    10 'norm      '    .12609E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .55947E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    9.5142       1.0000          .0000       .10000E+07
    13 'Prefactor '    .81304E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .46463E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .19321E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .15805E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .50891E-04   1.0000          .0000       .10000E+07
    18 'norm      '    3.5738       1.0000          .0000       .10000E+07
    19 'Prefactor '    12.628       1.0000          .0000       .10000E+07
    20 'Normalizat'    .72508       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2315       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18419.96     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1298 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2290        1.8579       -.48347E-07    .72239E-03
   2  norm          5.3706        3.0049       -.78884E-07    .12811E-02
   3  Prefactor     1.9926        3.9255       -.71559E-07    .21422E-03
   4  Prefactor      .0000        .58566       -.84366E-07** at limit **
   5  Prefactor     .55511E-09    19.407        .35876E-06** at limit **
   6  Prefactor     .11102E-09    16.703       -.54000E-07** at limit **
   7  norm           .0000        .64864        .18563E-07** at limit **
   8  norm          .75229        .72877       -.17738E-07   -.50873E-03
   9  norm          .68270        .34376        .81666E-08   -.43235E-02
  10  norm           .0000        1.3834       -.60838E-07** at limit **
  11  Prefactor     .22204E-09    8.6574       -.23558E-08** at limit **
  12  Prefactor     9.4832        1.8106        .26667E-08   -.13690E-01
  13  Prefactor     .22204E-09    28.581       -.10036E-05** at limit **
  14  Prefactor      .0000        1.2930       -.11232E-06** at limit **
  15  Prefactor      .0000        6.5239       -.27176E-06** at limit **
  16  Prefactor     .55511E-10    5.8652       -.45683E-06** at limit **
  17  Prefactor      .0000        1.9111       -.19503E-06** at limit **
  18  norm          3.5758        .88292       -.34470E-07    .27196E-02
  19  Prefactor     12.637        4.0870        .12497E-06   -.34050E-02
  20  Normalizat    .72512        .12613        .48366E-05   -.19527E-03
  21  Prefactor     1.2315        .10351       -.10617E-05   -.21866E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22897
  norm       = 5.3706
  Prefactor  = 1.99257
  Prefactor  = 0
  Prefactor  = 5.55112e-10
  Prefactor  = 1.11022e-10
  norm       = 0
  norm       = 0.752294
  norm       = 0.682699
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 9.48318
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 3.5758
  Prefactor  = 12.6365
  Normalizat = 0.725121
  Prefactor  = 1.23153
 **********
 **   18 **HESSE 
 **********

 FCN=   18419.96     FROM HESSE     STATUS=OK           359 CALLS     1657 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2290        1.8664        .68807E-03   -1.5678    
   2  norm          5.3706        3.0078        .43297E-03   -1.5662    
   3  Prefactor     1.9926        3.9416        .73385E-03   -1.5680    
   4  Prefactor      .0000        .58194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-09    19.439        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11102E-09    16.694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .64256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .75229        .73634        .56604E-03   -1.5691    
   9  norm          .68270        .34785        .62107E-03   -1.5691    
  10  norm           .0000        .31169        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .22204E-09    8.6087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.4832        14.015        .32465E-03   -1.5646    
  13  Prefactor     .22204E-09    28.551        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.3006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        6.5331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    5.8684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        1.9141        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.5758        .88581        .53434E-03   -1.5670    
  19  Prefactor     12.637        4.0941        .28163E-03   -1.5637    
  20  Normalizat    .72512        .11094        .68691E-01   -1.0291    
  21  Prefactor     1.2315        .90223E-01    .33924E-01   -.85366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01272e-08
Minuit parameter uncertainties:
  1  1.86644
  2  3.00783
  3  3.9416
  4  2.1026e-06
  5  0.000202772
  6  7.75007e-05
  7  4.96131e-07
  8  0.736339
  9  0.347851
  10  1.75559e-06
  11  8.32581e-05
  12  14.0153
  13  0.000150363
  14  3.95548e-06
  15  4.94018e-06
  16  2.81685e-05
  17  6.88641e-06
  18  0.885811
  19  4.09409
  20  0.11097
  21  0.0902348
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  6.827e-01  3.479e-01  0.000e+00  1.000e+06 ( 1.000e-10)
218        alpha:  2.453e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
219         beta:  1.652e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  1.232e+00  9.023e-02  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  7.251e-01  1.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.19
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 5.24e-08 +/- 2.67e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 6.66e-06

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) = 18419.4557909
delta logL = 0.505827906371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18419.4456297
delta logL = 0.515989137257

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18419.45     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73127        5.4919        .58230E-03    .28513E-01
   2  alpha         3.0839        3.3470        .42668        .66089E-05
   3  Normalizat    .69031        .52135E-01    .70252E-01    .79543E-04
   4  Prefactor     1.2515        .59185E-01    .33512E-01   -.48400E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.731269
  alpha      = 3.08388
  Normalizat = 0.690313
  Prefactor  = 1.25149
 **********
 **   18 **HESSE 
 **********

 FCN=   18419.45     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .19E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73127        .35065        .47420E-05   -1.5691    
   2  alpha         3.0839        .68575        .29764E-01    .23573    
   3  Normalizat    .69031        .12885        .31091E-03   -1.0428    
   4  Prefactor     1.2515        .10582        .19918E-03   -.84761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85503e-13
Minuit parameter uncertainties:
  1  0.350652
  2  0.695184
  3  0.128902
  4  0.105838
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) = 18419.4456286
delta logL = 0.515990229444

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  7.313e-01  3.507e-01  0.000e+00  1.000e+06 ( 1.000e-10)
218        alpha:  3.084e+00  6.952e-01  0.000e+00  5.000e+00 ( 1.000e+00)
219         beta:  1.652e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  1.251e+00  1.058e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  6.903e-01  1.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.35
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.08 +/- 0.70
Photon Flux (Free Index): 7.47e-08 +/- 3.51e-08
Energy Flux (Free Index): 1.40e-05 +/- 6.17e-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/17377646/cmap_HighResolution_786931201_787536001_4FGL_J0948.9+0022_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.24e-08', energy_flux2='1.40e-05', photon_flux_error='2.67e-08', dlogl='5.16e-01', energy_flux='1.31e-05', photon_flux2='7.47e-08', job_status='DONE', time_completed='2025-12-16 02:06:47.608220', photon_index_error2='0.70', photon_index2='3.08', ts='6.19', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='6.17e-06', EG='0.73', time_epoch_completed='1765879607.61', return_code='0', job_id='17377646', GAL2='1.25', EG2='0.69', return_code2='0', energy_flux_error='6.66e-06', photon_flux_error2='3.51e-08', ts2='7.35', photon_index='2.45' WHERE bin_id='906' AND source_name='4FGL J0948.9+0022' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:06:47 PST 2025

