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


Performing analysis on: 4FGL_J1048.4+7143_weekly_bin910
RA = 162.107, Dec = 71.7297
tmin = 789350401, tmax = 789955201
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='18861272', job_status='RUN', time_executed='2026-01-13 00:45:19.284009', time_epoch_executed='1768293919.28' WHERE source_name='4FGL J1048.4+7143' and cadence='weekly' and bin_id='910'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18861272

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18861272/ft1_4FGL_J1048.4+7143_weekly_bin910.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18861272/ft2_4FGL_J1048.4+7143_weekly_bin910.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18861272/ft1_4FGL_J1048.4+7143_weekly_bin910.fits outfile=/lscratch/kocevski/18861272/ft1_filteredMKT_4FGL_J1048.4+7143_weekly_bin910.fits ra=162.107 dec=71.7297 rad=12.0 tmin=789350401.0 tmax=789955201.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 3.86
user 2.89
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18861272/ft2_4FGL_J1048.4+7143_weekly_bin910.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18861272/ft2_4FGL_J1048.4+7143_weekly_bin910.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/18861272/ft1_filteredMKT_4FGL_J1048.4+7143_weekly_bin910.fits evtable="EVENTS" outfile="/lscratch/kocevski/18861272/ft1_filtered_4FGL_J1048.4+7143_weekly_bin910.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.18
sys 0.14

Number of photons that the gtmktime cut: 2318

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18861272/ft1_filtered_4FGL_J1048.4+7143_weekly_bin910.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18861272/ft2_4FGL_J1048.4+7143_weekly_bin910.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18861272/ltcube_789350401_789955201_4FGL_J1048.4+7143_weekly_bin910.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/18861272/ft2_4FGL_J1048.4+7143_weekly_bin910.fits
.....................!
real 18.45
user 17.70
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18861272/ft1_filtered_4FGL_J1048.4+7143_weekly_bin910.fits evtable="EVENTS" scfile=/lscratch/kocevski/18861272/ft2_4FGL_J1048.4+7143_weekly_bin910.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18861272/ltcube_789350401_789955201_4FGL_J1048.4+7143_weekly_bin910.fits outfile=/lscratch/kocevski/18861272/expmap_789350401_789955201_4FGL_J1048.4+7143_weekly_bin910.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/18861272/ltcube_789350401_789955201_4FGL_J1048.4+7143_weekly_bin910.fits
.....................!
real 65.10
user 60.06
sys 3.87

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

Setting source of interest to:
4FGL J1048.4+7143 @ 162.107 71.7297

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18861272/ft1_filtered_4FGL_J1048.4+7143_weekly_bin910.fits scfile=/lscratch/kocevski/18861272/ft2_4FGL_J1048.4+7143_weekly_bin910.fits outfile=/lscratch/kocevski/18861272/cmap_789350401_789955201_4FGL_J1048.4+7143_weekly_bin910.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=162.107 yref=71.7297 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.89
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18861272/ft1_filtered_4FGL_J1048.4+7143_weekly_bin910.fits scfile=/lscratch/kocevski/18861272/ft2_4FGL_J1048.4+7143_weekly_bin910.fits outfile=/lscratch/kocevski/18861272/cmap_HighResolution_789350401_789955201_4FGL_J1048.4+7143_weekly_bin910.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=162.107 yref=71.7297 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.92
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18861272/ft1_filtered_4FGL_J1048.4+7143_weekly_bin910.fits evtable="EVENTS" scfile=/lscratch/kocevski/18861272/ft2_4FGL_J1048.4+7143_weekly_bin910.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18861272/Model_4FGL_J1048.4+7143_weekly_bin910.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/18861272/ft1_filtered_4FGL_J1048.4+7143_weekly_bin910.fits.....................!
real 94.80
user 93.19
sys 0.63

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18861272/ft1_filtered_4FGL_J1048.4+7143_weekly_bin910.fits', '/lscratch/kocevski/18861272/ft2_4FGL_J1048.4+7143_weekly_bin910.fits', expMap='/lscratch/kocevski/18861272/expmap_789350401_789955201_4FGL_J1048.4+7143_weekly_bin910.fits', expCube='/lscratch/kocevski/18861272/ltcube_789350401_789955201_4FGL_J1048.4+7143_weekly_bin910.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18861272/Model_4FGL_J1048.4+7143_weekly_bin910.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1048.4+7143'

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  2.733e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
390        alpha:  2.203e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
391         beta:  8.500e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
392           Eb:  6.970e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18861272/ft1_filtered_4FGL_J1048.4+7143_weekly_bin910.fits
Spacecraft file(s): /lscratch/kocevski/18861272/ft2_4FGL_J1048.4+7143_weekly_bin910.fits
Exposure map: /lscratch/kocevski/18861272/expmap_789350401_789955201_4FGL_J1048.4+7143_weekly_bin910.fits
Exposure cube: /lscratch/kocevski/18861272/ltcube_789350401_789955201_4FGL_J1048.4+7143_weekly_bin910.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18861272/Model_4FGL_J1048.4+7143_weekly_bin910.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) = 24841.8452199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.968       1.0000          .0000       .10000E+07
     2 'Prefactor '    .94256E-05   1.0000          .0000       .10000E+07
     3 'norm      '    .86336       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11790E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .52368E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .83177E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .44387E-02   1.0000          .0000       .10000E+07
     8 'norm      '    1.6116       1.0000          .0000       .10000E+07
     9 'norm      '    17.317       1.0000          .0000       .10000E+07
    10 'Prefactor '    9.3821       1.0000          .0000       .10000E+07
    11 'Prefactor '    12.415       1.0000          .0000       .10000E+07
    12 'Prefactor '    7.3186       1.0000          .0000       .10000E+07
    13 'Prefactor '    23.023       1.0000          .0000       .10000E+07
    14 'norm      '    .11854E-04   1.0000          .0000       .10000E+07
    15 'norm      '    13.574       1.0000          .0000       .10000E+07
    16 'Prefactor '    .38728E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .14746E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .66984       1.0000          .0000       .10000E+07
    19 'norm      '    13.324       1.0000          .0000       .10000E+07
    20 'Prefactor '    .93613E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .39656E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    1.7304       1.0000          .0000       .10000E+07
    23 'norm      '    .38807E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .26452E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    .11227E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    11.724       1.0000          .0000       .10000E+07
    27 'norm      '    13.129       1.0000          .0000       .10000E+07
    28 'norm      '    4.5183       1.0000          .0000       .10000E+07
    29 'Prefactor '    .45489E-02   1.0000          .0000       .10000E+07
    30 'Normalizat'    1.1150       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .90828       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24841.76     FROM MIGRAD    STATUS=CONVERGED    186 CALLS     2973 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.753        4.0913        .11497E-06   -.48190E-01
   2  Prefactor      .0000        1.5604       -.87399E-06** at limit **
   3  norm          .86281        1.1554        .25714E-06   -.21754E-02
   4  Prefactor     .11657E-07    21.865        .29111E-05** at limit **
   5  Prefactor     .37970E-07    6.6427       -.23334E-05** at limit **
   6  Prefactor     .16170E-06    4.9025        .25317E-05** at limit **
   7  Prefactor     .52897E-06    6.7610        .11503E-05** at limit **
   8  norm          1.6116        .48406       -.66873E-07    .32611E-02
   9  norm          17.393        2.6199        .41034E-06   -.13723E-01
  10  Prefactor     9.4369        5.0332       -.19650E-06    .16360E-02
  11  Prefactor     12.424        6.3995        .20158E-06   -.14625E-02
  12  Prefactor     7.1838        2.2880       -.17504E-06   -.25504E-02
  13  Prefactor     22.942        4.7552        .37220E-06    .45559E-03
  14  norm          .55511E-10    1.1694       -.39020E-06** at limit **
  15  norm          13.570        2.8153       -.17785E-07   -.69477E-02
  16  Prefactor     .65989E-05    27.418       -.26302E-05** at limit **
  17  Prefactor     .72164E-09    2.9393       -.76376E-06** at limit **
  18  norm          .67008        .32262        .10211E-06    .68816E-02
  19  norm          13.325        1.8491       -.52417E-07    .33682E-02
  20  Prefactor     .15582E-06    6.6633        .48802E-05** at limit **
  21  Prefactor     .55511E-10    3.1031       -.13569E-05** at limit **
  22  Prefactor     1.7312        1.2190       -.94009E-08   -.65691E-02
  23  norm           .0000        1.4804       -.38540E-06** at limit **
  24  Prefactor     .58433E-04    8.6559       -.42381E-06** at limit **
  25  Prefactor      .0000        7.2744       -.22793E-06** at limit **
  26  Prefactor     11.685        9.3213        .26709E-06    .10022E-02
  27  norm          13.131        3.0187        .36433E-07   -.63180E-02
  28  norm          4.5200        1.7565       -.29234E-07    .11963E-01
  29  Prefactor     .10345E-05    89.326       -.16124E-04** at limit **
  30  Normalizat    1.1149        .10646       -.91598E-05    .67770E-03
  31  Prefactor     .90818        .94399E-01    .89151E-05    .11145E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.7532
  Prefactor  = 0
  norm       = 0.862812
  Prefactor  = 1.16573e-08
  Prefactor  = 3.79696e-08
  Prefactor  = 1.61704e-07
  Prefactor  = 5.28966e-07
  norm       = 1.61159
  norm       = 17.3931
  Prefactor  = 9.43693
  Prefactor  = 12.4239
  Prefactor  = 7.18384
  Prefactor  = 22.9416
  norm       = 5.55112e-11
  norm       = 13.5704
  Prefactor  = 6.59889e-06
  Prefactor  = 7.21645e-10
  norm       = 0.670077
  norm       = 13.3252
  Prefactor  = 1.5582e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 1.73116
  norm       = 0
  Prefactor  = 5.84328e-05
  Prefactor  = 0
  Prefactor  = 11.6851
  norm       = 13.1307
  norm       = 4.51995
  Prefactor  = 1.03451e-06
  Normalizat = 1.11491
  Prefactor  = 0.908179
 **********
 **   18 **HESSE 
 **********

 FCN=   24841.76     FROM HESSE     STATUS=OK           694 CALLS     3667 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.753        27.391        .16449E-03   -1.5585    
   2  Prefactor      .0000        1.5500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .86281        1.1605        .48327E-03   -1.5689    
   4  Prefactor     .11657E-07    21.903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .37970E-07    6.6964        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16170E-06    11.661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .52897E-06    11.077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6116        .48796        .83401E-03   -1.5683    
   9  norm          17.393        15.308        .24041E-03   -1.5625    
  10  Prefactor     9.4369        11.889        .32694E-03   -1.5647    
  11  Prefactor     12.424        6.4120        .28404E-03   -1.5637    
  12  Prefactor     7.1838        27.468        .37052E-03   -1.5654    
  13  Prefactor     22.942        13.687        .20846E-03   -1.5612    
  14  norm          .55511E-10    1.1590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.570        2.8690        .27161E-03   -1.5634    
  16  Prefactor     .65989E-05    33.394        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .72164E-09    2.8559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .67008        .32984        .63191E-03   -1.5692    
  19  norm          13.325        1.8604        .27415E-03   -1.5635    
  20  Prefactor     .15582E-06    7.1309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .55511E-10    3.1102        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.7312        1.2181        .79776E-03   -1.5682    
  23  norm           .0000        1.4806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .58433E-04    3.9845        .61480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        8.1278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     11.685        9.3255        .29232E-03   -1.5640    
  27  norm          13.131        3.0196        .27618E-03   -1.5635    
  28  norm          4.5200        1.8800        .47339E-03   -1.5665    
  29  Prefactor     .10345E-05    89.064        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1149        .94971E-01    .59263E-01   -.89275    
  31  Prefactor     .90818        .83006E-01    .45110E-01   -.95856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64104e-07
Minuit parameter uncertainties:
  1  27.391
  2  1.33665e-06
  3  1.16051
  4  0.00101023
  5  0.00100857
  6  0.00274653
  7  0.00484111
  8  0.487958
  9  15.3078
  10  11.8888
  11  6.41199
  12  27.4685
  13  13.6875
  14  1.62637e-05
  15  2.86898
  16  0.0296893
  17  9.17199e-05
  18  0.32984
  19  1.86042
  20  0.00210835
  21  2.13519e-05
  22  1.21813
  23  5.06286e-06
  24  0.0305174
  25  1.38877e-05
  26  9.32549
  27  3.01958
  28  1.88004
  29  0.0191977
  30  0.0949852
  31  0.0830176
Done.

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

Extracting fit parameters...

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  6.701e-01  3.298e-01  0.000e+00  1.000e+06 ( 1.000e-11)
390        alpha:  2.203e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
391         beta:  8.500e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
392           Eb:  6.970e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  9.082e-01  8.302e-02  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.115e+00  9.499e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.61
Ra Dec: 162.107 71.730
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 3.43e-08 +/- 1.69e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 6.77e-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) = 24841.5210219
delta logL = 0.238973838328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24841.4953716
delta logL = 0.26462405319

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   24841.50     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60750        .53245        .68547E-03    .15645E-01
   2  alpha         1.8475        .56872        .43080       -.12705E-03
   3  Normalizat    1.1226        .90577E-01    .59117E-01    .37841E-04
   4  Prefactor     .90652        .82359E-01    .45088E-01    .48415E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.607498
  alpha      = 1.84747
  Normalizat = 1.12263
  Prefactor  = 0.90652
 **********
 **   18 **HESSE 
 **********

 FCN=   24841.50     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60750        .34136        .58490E-05   -1.5692    
   2  alpha         1.8475        .47030        .20337E-01   -.26407    
   3  Normalizat    1.1226        .10207        .26145E-03   -.89028    
   4  Prefactor     .90652        .92912E-01    .26051E-03   -.95914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58362e-11
Minuit parameter uncertainties:
  1  0.341357
  2  0.473324
  3  0.102093
  4  0.0929282
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) = 24841.4953714
delta logL = 0.264624309209

Extracting fit parameters...

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  6.075e-01  3.414e-01  0.000e+00  1.000e+06 ( 1.000e-11)
390        alpha:  1.847e+00  4.733e-01  0.000e+00  5.000e+00 ( 1.000e+00)
391         beta:  8.500e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
392           Eb:  6.970e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  9.065e-01  9.293e-02  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.123e+00  1.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.24
Ra Dec: 162.107 71.730
Photon Index (Free Index): 1.85 +/- 0.47
Photon Flux (Free Index): 2.23e-08 +/- 1.81e-08
Energy Flux (Free Index): 1.60e-05 +/- 9.06e-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/18861272/cmap_HighResolution_789350401_789955201_4FGL_J1048.4+7143_weekly_bin910.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.43e-08', energy_flux2='1.60e-05', photon_flux_error='1.69e-08', dlogl='2.65e-01', energy_flux='1.38e-05', photon_flux2='2.23e-08', job_status='DONE', time_completed='2026-01-13 01:06:45.841895', photon_index_error2='0.47', photon_index2='1.85', ts='8.61', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='9.06e-06', EG='1.11', time_epoch_completed='1768295205.84', return_code='0', job_id='18861272', GAL2='0.91', EG2='1.12', return_code2='0', energy_flux_error='6.77e-06', photon_flux_error2='1.81e-08', ts2='9.24', photon_index='2.20' WHERE bin_id='910' AND source_name='4FGL J1048.4+7143' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 13 01:06:46 PST 2026

