/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_J1048.4+7143_weekly_bin906
RA = 162.107, Dec = 71.7297
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='17378040', job_status='RUN', time_executed='2025-12-16 02:06:04.771701', time_epoch_executed='1765879564.77' WHERE source_name='4FGL J1048.4+7143' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17378040

Creating custom pfile directory:
/lscratch/kocevski/17378040/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/17378040/ft1_4FGL_J1048.4+7143_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/17378040/ft2_4FGL_J1048.4+7143_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17378040/ft1_4FGL_J1048.4+7143_weekly_bin906.fits outfile=/lscratch/kocevski/17378040/ft1_filteredMKT_4FGL_J1048.4+7143_weekly_bin906.fits ra=162.107 dec=71.7297 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.92
user 5.07
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17378040/ft2_4FGL_J1048.4+7143_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/17378040/ft1_filteredMKT_4FGL_J1048.4+7143_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17378040/ft1_filtered_4FGL_J1048.4+7143_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.92
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 2022

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17378040/ft1_filtered_4FGL_J1048.4+7143_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17378040/ft2_4FGL_J1048.4+7143_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17378040/ltcube_786931201_787536001_4FGL_J1048.4+7143_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/17378040/ft2_4FGL_J1048.4+7143_weekly_bin906.fits
.....................!
real 18.52
user 17.68
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17378040/ft1_filtered_4FGL_J1048.4+7143_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378040/ft2_4FGL_J1048.4+7143_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17378040/ltcube_786931201_787536001_4FGL_J1048.4+7143_weekly_bin906.fits outfile=/lscratch/kocevski/17378040/expmap_786931201_787536001_4FGL_J1048.4+7143_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/17378040/ltcube_786931201_787536001_4FGL_J1048.4+7143_weekly_bin906.fits
.....................!
real 69.03
user 64.73
sys 3.37

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/17378040/ft1_filtered_4FGL_J1048.4+7143_weekly_bin906.fits scfile=/lscratch/kocevski/17378040/ft2_4FGL_J1048.4+7143_weekly_bin906.fits outfile=/lscratch/kocevski/17378040/cmap_786931201_787536001_4FGL_J1048.4+7143_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=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.91
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17378040/ft1_filtered_4FGL_J1048.4+7143_weekly_bin906.fits scfile=/lscratch/kocevski/17378040/ft2_4FGL_J1048.4+7143_weekly_bin906.fits outfile=/lscratch/kocevski/17378040/cmap_HighResolution_786931201_787536001_4FGL_J1048.4+7143_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=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.80
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17378040/ft1_filtered_4FGL_J1048.4+7143_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378040/ft2_4FGL_J1048.4+7143_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17378040/Model_4FGL_J1048.4+7143_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/17378040/ft1_filtered_4FGL_J1048.4+7143_weekly_bin906.fits.....................!
real 89.10
user 86.91
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17378040/ft1_filtered_4FGL_J1048.4+7143_weekly_bin906.fits', '/lscratch/kocevski/17378040/ft2_4FGL_J1048.4+7143_weekly_bin906.fits', expMap='/lscratch/kocevski/17378040/expmap_786931201_787536001_4FGL_J1048.4+7143_weekly_bin906.fits', expCube='/lscratch/kocevski/17378040/ltcube_786931201_787536001_4FGL_J1048.4+7143_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17378040/Model_4FGL_J1048.4+7143_weekly_bin906.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/17378040/ft1_filtered_4FGL_J1048.4+7143_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17378040/ft2_4FGL_J1048.4+7143_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17378040/expmap_786931201_787536001_4FGL_J1048.4+7143_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17378040/ltcube_786931201_787536001_4FGL_J1048.4+7143_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17378040/Model_4FGL_J1048.4+7143_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) = 21466.9233323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17033E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9688       1.0000          .0000       .10000E+07
     3 'norm      '    1.1565       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33553E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    22.418       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.1056       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.3587       1.0000          .0000       .10000E+07
     8 'norm      '    1.9043       1.0000          .0000       .10000E+07
     9 'norm      '    8.7919       1.0000          .0000       .10000E+07
    10 'Prefactor '    .79575E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    11.702       1.0000          .0000       .10000E+07
    12 'Prefactor '    146.66       1.0000          .0000       .10000E+07
    13 'Prefactor '    .67704E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .64464       1.0000          .0000       .10000E+07
    15 'norm      '    8.3107       1.0000          .0000       .10000E+07
    16 'Prefactor '    .39003E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .35316E-06   1.0000          .0000       .10000E+07
    18 'norm      '    .61659       1.0000          .0000       .10000E+07
    19 'norm      '    7.7940       1.0000          .0000       .10000E+07
    20 'Prefactor '    .26096E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    18.316       1.0000          .0000       .10000E+07
    22 'Prefactor '    2.1601       1.0000          .0000       .10000E+07
    23 'norm      '    .11867E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    .22996E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    .20466E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    1.9336       1.0000          .0000       .10000E+07
    27 'norm      '    2.1965       1.0000          .0000       .10000E+07
    28 'norm      '    1.0986       1.0000          .0000       .10000E+07
    29 'Prefactor '    9.2859       1.0000          .0000       .10000E+07
    30 'Normalizat'    .98662       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0143       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=   21458.63     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     1770 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    19.745       -.18735E-06** at limit **
   2  Prefactor     4.9680        2.6497       -.43546E-08   -.51420E-03
   3  norm          1.1479        1.2555        .29648E-07    .28209E-02
   4  Prefactor     .17053E-06    7.3376       -.16915E-06** at limit **
   5  Prefactor     22.589        1.0764        .20771E-08   -.48906E-02
   6  Prefactor     1.1303        8.3894       -.67367E-08   -.48663E-03
   7  Prefactor     1.3645        3.9475       -.56494E-07   -.69394E-03
   8  norm          1.9043        .46696        .11750E-08   -.20940E-04
   9  norm          8.7358        6.0320        .52559E-07   -.11427E-01
  10  Prefactor     .77716E-08    5.6024        .51299E-07** at limit **
  11  Prefactor     11.757        3.9749       -.28238E-07   -.58876E-01
  12  Prefactor     146.97        24.179        .38751E-07   -.25857E-01
  13  Prefactor     .17764E-08    5.6561        .96773E-07** at limit **
  14  norm          .64483        .74532        .10520E-07    .17250E-02
  15  norm          8.3052        2.8223        .12898E-07    .69514E-02
  16  Prefactor     .27756E-09    22.519       -.61567E-07** at limit **
  17  Prefactor      .0000        .63662       -.34907E-07** at limit **
  18  norm          .61616        .35685       -.84268E-10    .30981E-02
  19  norm          7.7941        1.7587        .22495E-07    .90091E-02
  20  Prefactor      .0000        2.1636        .20895E-07** at limit **
  21  Prefactor     18.340        1.1645        .17470E-08    .19899E-02
  22  Prefactor     2.1595        1.5083        .17843E-07    .23929E-02
  23  norm          .11102E-09    1.8340        .30849E-07** at limit **
  24  Prefactor     .94258E-07    3.4166       -.32163E-07** at limit **
  25  Prefactor     .73552E-07    10.698        .35971E-07** at limit **
  26  Prefactor     1.9345        4.5843        .60481E-07    .36420E-01
  27  norm          2.1974        2.1508       -.48185E-07   -.38223E-02
  28  norm          1.1000        1.2659        .53970E-07    .54609E-02
  29  Prefactor     9.2383        1.3543        .98842E-08   -.13699E-01
  30  Normalizat    .98642        .10886       -.65007E-06   -.12395E-03
  31  Prefactor     1.0142        .10010        .35989E-08   -.95098E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Prefactor  = 4.96795
  norm       = 1.14786
  Prefactor  = 1.7053e-07
  Prefactor  = 22.5889
  Prefactor  = 1.1303
  Prefactor  = 1.36446
  norm       = 1.90428
  norm       = 8.73575
  Prefactor  = 7.77156e-09
  Prefactor  = 11.7574
  Prefactor  = 146.967
  Prefactor  = 1.77636e-09
  norm       = 0.644833
  norm       = 8.30525
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  norm       = 0.616162
  norm       = 7.79406
  Prefactor  = 0
  Prefactor  = 18.3404
  Prefactor  = 2.15949
  norm       = 1.11022e-10
  Prefactor  = 9.42579e-08
  Prefactor  = 7.35523e-08
  Prefactor  = 1.93448
  norm       = 2.19744
  norm       = 1.09998
  Prefactor  = 9.23834
  Normalizat = 0.986424
  Prefactor  = 1.01416
 **********
 **   18 **HESSE 
 **********

 FCN=   21458.63     FROM HESSE     STATUS=OK           690 CALLS     2460 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    19.243        .17240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9680        2.6499        .45093E-03   -1.5663    
   3  norm          1.1479        1.5596        .10729E-02   -1.5687    
   4  Prefactor     .17053E-06    9.4330        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.589        15.826        .21126E-03   -1.5613    
   6  Prefactor     1.1303        8.3603        .11261E-02   -1.5687    
   7  Prefactor     1.3645        3.9882        .93691E-03   -1.5685    
   8  norm          1.9043        .47036        .75325E-03   -1.5680    
   9  norm          8.7358        7.3350        .33781E-03   -1.5649    
  10  Prefactor     .77716E-08    5.6388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.757        6.9349        .29260E-03   -1.5639    
  12  Prefactor     146.97        24.403        .82582E-04   -1.5465    
  13  Prefactor     .17764E-08    7.3410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .64483        .75880        .65321E-03   -1.5692    
  15  norm          8.3052        2.8783        .34751E-03   -1.5650    
  16  Prefactor     .27756E-09    22.494        .16009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        .63546        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .61616        .36622        .67755E-03   -1.5692    
  19  norm          7.7941        1.7762        .35894E-03   -1.5652    
  20  Prefactor      .0000        2.1640        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.340        11.833        .23375E-03   -1.5622    
  22  Prefactor     2.1595        1.5093        .70060E-03   -1.5679    
  23  norm          .11102E-09    1.8361        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .94258E-07    8.5330        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .73552E-07    11.490        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.9345        14.839        .74655E-03   -1.5680    
  27  norm          2.1974        2.1616        .69402E-03   -1.5678    
  28  norm          1.1000        1.2937        .11346E-02   -1.5687    
  29  Prefactor     9.2383        20.405        .32864E-03   -1.5647    
  30  Normalizat    .98642        .99072E-01    .45999E-01   -.93487    
  31  Prefactor     1.0142        .89920E-01    .42764E-01   -.92259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39351e-06
Minuit parameter uncertainties:
  1  0.000139268
  2  2.64992
  3  1.5596
  4  0.00253654
  5  15.8265
  6  6.14807
  7  3.98816
  8  0.470361
  9  7.33504
  10  0.00041834
  11  6.93487
  12  24.403
  13  0.000229027
  14  0.758804
  15  2.87828
  16  0.000152569
  17  3.524e-06
  18  0.366217
  19  1.77624
  20  6.39072e-06
  21  11.8329
  22  1.5093
  23  2.50961e-05
  24  0.00179344
  25  0.00183886
  26  10.7156
  27  2.16161
  28  1.29372
  29  20.4049
  30  0.0990902
  31  0.0899332
Done.

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

Extracting fit parameters...

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  6.162e-01  3.662e-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:  1.014e+00  8.993e-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:  9.864e-01  9.909e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.47
Ra Dec: 162.107 71.730
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 3.16e-08 +/- 1.88e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 7.52e-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) = 21458.1881852
delta logL = 0.443949708995

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 21458.1782564
delta logL = 0.453878449938

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55256       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6832       1.0000          .0000       5.0000    
     3 'Normalizat'    .97059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0213       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=   21458.18     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55258        2.7134        .73589E-03    .34050E-01
   2  alpha         2.6831        3.6841        .41292        .12254E-03
   3  Normalizat    .97058        .27394E-01    .45797E-01    .47007E-04
   4  Prefactor     1.0213        .23934E-01    .42017E-01    .27041E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.552576
  alpha      = 2.68315
  Normalizat = 0.970585
  Prefactor  = 1.02126
 **********
 **   18 **HESSE 
 **********

 FCN=   21458.18     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55258        .34701        .51041E-05   -1.5693    
   2  alpha         2.6831        .54513        .17593E-01    .73325E-01
   3  Normalizat    .97058        .10709        .26844E-03   -.94022    
   4  Prefactor     1.0213        .98909E-01    .24438E-03   -.92024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1674e-08
Minuit parameter uncertainties:
  1  0.347013
  2  0.549569
  3  0.107114
  4  0.0989269
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) = 21458.1782564
delta logL = 0.453878455774

Extracting fit parameters...

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  5.526e-01  3.470e-01  0.000e+00  1.000e+06 ( 1.000e-11)
390        alpha:  2.683e+00  5.496e-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:  1.021e+00  9.893e-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:  9.706e-01  1.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.44
Ra Dec: 162.107 71.730
Photon Index (Free Index): 2.68 +/- 0.55
Photon Flux (Free Index): 5.03e-08 +/- 2.89e-08
Energy Flux (Free Index): 1.26e-05 +/- 6.16e-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/17378040/cmap_HighResolution_786931201_787536001_4FGL_J1048.4+7143_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.16e-08', energy_flux2='1.26e-05', photon_flux_error='1.88e-08', dlogl='4.54e-01', energy_flux='1.26e-05', photon_flux2='5.03e-08', job_status='DONE', time_completed='2025-12-16 02:20:53.088942', photon_index_error2='0.55', photon_index2='2.68', ts='5.47', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='6.16e-06', EG='0.99', time_epoch_completed='1765880453.09', return_code='0', job_id='17378040', GAL2='1.02', EG2='0.97', return_code2='0', energy_flux_error='7.52e-06', photon_flux_error2='2.89e-08', ts2='6.44', photon_index='2.20' WHERE bin_id='906' AND source_name='4FGL J1048.4+7143' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:20:53 PST 2025

