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


Performing analysis on: 4FGL_J1048.4+7143_daily_bin2114
RA = 162.107, Dec = 71.7297
tmin = 787276801, 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='17371785', job_status='RUN', time_executed='2025-12-16 00:49:42.303601', time_epoch_executed='1765874982.3' WHERE source_name='4FGL J1048.4+7143' and cadence='daily' and bin_id='2114'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17371785

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17371785/ft1_4FGL_J1048.4+7143_daily_bin2114.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17371785/ft2_4FGL_J1048.4+7143_daily_bin2114.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17371785/ft1_4FGL_J1048.4+7143_daily_bin2114.fits outfile=/lscratch/kocevski/17371785/ft1_filteredMKT_4FGL_J1048.4+7143_daily_bin2114.fits ra=162.107 dec=71.7297 rad=12.0 tmin=787276801.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 2.48
user 1.65
sys 0.17

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

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

Number of photons that the gtmktime cut: 872

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17371785/ft1_filtered_4FGL_J1048.4+7143_daily_bin2114.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17371785/ft2_4FGL_J1048.4+7143_daily_bin2114.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17371785/ltcube_787276801_787536001_4FGL_J1048.4+7143_daily_bin2114.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/17371785/ft2_4FGL_J1048.4+7143_daily_bin2114.fits
.....................!
real 7.50
user 6.70
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17371785/ft1_filtered_4FGL_J1048.4+7143_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17371785/ft2_4FGL_J1048.4+7143_daily_bin2114.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17371785/ltcube_787276801_787536001_4FGL_J1048.4+7143_daily_bin2114.fits outfile=/lscratch/kocevski/17371785/expmap_787276801_787536001_4FGL_J1048.4+7143_daily_bin2114.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/17371785/ltcube_787276801_787536001_4FGL_J1048.4+7143_daily_bin2114.fits
.....................!
real 59.96
user 55.51
sys 3.55

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/17371785/ft1_filtered_4FGL_J1048.4+7143_daily_bin2114.fits scfile=/lscratch/kocevski/17371785/ft2_4FGL_J1048.4+7143_daily_bin2114.fits outfile=/lscratch/kocevski/17371785/cmap_787276801_787536001_4FGL_J1048.4+7143_daily_bin2114.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.96
user 0.20
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17371785/ft1_filtered_4FGL_J1048.4+7143_daily_bin2114.fits scfile=/lscratch/kocevski/17371785/ft2_4FGL_J1048.4+7143_daily_bin2114.fits outfile=/lscratch/kocevski/17371785/cmap_HighResolution_787276801_787536001_4FGL_J1048.4+7143_daily_bin2114.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.96
user 0.21
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25731E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .52754       1.0000          .0000       .10000E+07
     3 'norm      '    .14975       1.0000          .0000       .10000E+07
     4 'Prefactor '    .20730E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    50.516       1.0000          .0000       .10000E+07
     6 'Prefactor '    8.8449       1.0000          .0000       .10000E+07
     7 'Prefactor '    .53790E-06   1.0000          .0000       .10000E+07
     8 'norm      '    1.3409       1.0000          .0000       .10000E+07
     9 'norm      '    13.445       1.0000          .0000       .10000E+07
    10 'Prefactor '    .14510       1.0000          .0000       .10000E+07
    11 'Prefactor '    7.4903       1.0000          .0000       .10000E+07
    12 'Prefactor '    70.519       1.0000          .0000       .10000E+07
    13 'Prefactor '    .13157       1.0000          .0000       .10000E+07
    14 'norm      '    3.1796       1.0000          .0000       .10000E+07
    15 'norm      '    8.9723       1.0000          .0000       .10000E+07
    16 'Prefactor '    .58112E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .16498E-06   1.0000          .0000       .10000E+07
    18 'norm      '    .71629       1.0000          .0000       .10000E+07
    19 'norm      '    9.4686       1.0000          .0000       .10000E+07
    20 'Prefactor '    .38676E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    29.725       1.0000          .0000       .10000E+07
    22 'Prefactor '    4.0302       1.0000          .0000       .10000E+07
    23 'norm      '    .96034E-08   1.0000          .0000       .10000E+07
    24 'Prefactor '    .41822E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    .30181E-01   1.0000          .0000       .10000E+07
    26 'Prefactor '    8.1947       1.0000          .0000       .10000E+07
    27 'norm      '    5.5626       1.0000          .0000       .10000E+07
    28 'norm      '    1.2137       1.0000          .0000       .10000E+07
    29 'Prefactor '    .78163E-02   1.0000          .0000       .10000E+07
    30 'Normalizat'    .91385       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1171       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=   9239.867     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     3008 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91382E-06    .84495        .15315E-07** at limit **
   2  Prefactor     .52487        .61456        .19231E-07   -.18072E-01
   3  norm          .18682        5.0273        .43352E-06** at limit **
   4  Prefactor     .31392E-06    35.147       -.53379E-06** at limit **
   5  Prefactor     49.657        5.4488       -.27226E-07   -.10165    
   6  Prefactor     8.9553        1.0254       -.19340E-08    .10655E-01
   7  Prefactor     .18874E-08    5.4565        .10982E-06** at limit **
   8  norm          1.3398        .69625       -.11972E-07   -.20347E-03
   9  norm          13.447        1.0041       -.25322E-08    .84946E-02
  10  Prefactor     .19021E-05    .87072        .45536E-07** at limit **
  11  Prefactor     7.5156        1.1443       -.12432E-07   -.23604E-01
  12  Prefactor     70.403        1.0128       -.12718E-08    .16799E-01
  13  Prefactor     .96857E-05    3.6692       -.14364E-06** at limit **
  14  norm          3.1892        1.9337        .74059E-07   -.12041E-02
  15  norm          8.9738        4.2561       -.12415E-06    .86894E-03
  16  Prefactor     .92704E-08    36.940       -.23184E-06** at limit **
  17  Prefactor      .0000        1.6552       -.63818E-07** at limit **
  18  norm          .71727        .55705        .26243E-07   -.62520E-03
  19  norm          9.4650        2.8414        .18117E-07   -.86608E-03
  20  Prefactor     .16098E-08    4.1407        .21489E-06** at limit **
  21  Prefactor     29.926        1.4022        .55503E-08    .28518E-02
  22  Prefactor     4.0272        2.8499        .61715E-08   -.27430E-03
  23  norm           .0000        3.1183        .22070E-07** at limit **
  24  Prefactor     .38858E-09    6.6876       -.86824E-07** at limit **
  25  Prefactor     .10618E-05    .86481        .15568E-07** at limit **
  26  Prefactor     8.2753        1.1481        .24841E-08   -.40605E-01
  27  norm          5.5539        4.1778        .28671E-06   -.94207E-03
  28  norm          1.2129        1.6401        .13110E-06    .32683E-04
  29  Prefactor     .25979E-07    20.528       -.40006E-06** at limit **
  30  Normalizat    .91456        .16928       -.31075E-05   -.20741E-04
  31  Prefactor     1.1169        .15574        .30501E-05   -.82404E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.13825e-07
  Prefactor  = 0.524871
  norm       = 0.186819
  Prefactor  = 3.13916e-07
  Prefactor  = 49.6574
  Prefactor  = 8.95532
  Prefactor  = 1.88738e-09
  norm       = 1.33977
  norm       = 13.4468
  Prefactor  = 1.90209e-06
  Prefactor  = 7.51564
  Prefactor  = 70.4034
  Prefactor  = 9.6857e-06
  norm       = 3.18921
  norm       = 8.97385
  Prefactor  = 9.27036e-09
  Prefactor  = 0
  norm       = 0.717271
  norm       = 9.46495
  Prefactor  = 1.60982e-09
  Prefactor  = 29.9255
  Prefactor  = 4.02725
  norm       = 0
  Prefactor  = 3.88578e-10
  Prefactor  = 1.06176e-06
  Prefactor  = 8.27535
  norm       = 5.5539
  norm       = 1.21289
  Prefactor  = 2.59792e-08
  Normalizat = 0.914561
  Prefactor  = 1.11685
 **********
 **   18 **HESSE 
 **********

 FCN=   9239.867     FROM HESSE     STATUS=OK           706 CALLS     3714 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91382E-06    70.633        .16685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .52487        10.910        .75986E-03   -1.5693    
   3  norm          .18682        1.1720        .53454E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .31392E-06    36.618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     49.657        26.796        .14071E-03   -1.5567    
   6  Prefactor     8.9553        12.532        .33678E-03   -1.5648    
   7  Prefactor     .18874E-08    5.4847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3398        .71161        .94612E-03   -1.5685    
   9  norm          13.447        15.840        .27291E-03   -1.5635    
  10  Prefactor     .19021E-05    14.761        .90416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.5156        10.204        .36621E-03   -1.5653    
  12  Prefactor     70.403        41.391        .11909E-03   -1.5540    
  13  Prefactor     .96857E-05    9.4564        .13149E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.1892        2.1073        .56806E-03   -1.5672    
  15  norm          8.9738        4.3655        .33437E-03   -1.5648    
  16  Prefactor     .92704E-08    37.015        .15231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        1.6534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .71727        .56939        .59396E-03   -1.5691    
  19  norm          9.4650        2.8567        .32544E-03   -1.5646    
  20  Prefactor     .16098E-08    4.1704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.926        22.128        .18345E-03   -1.5599    
  22  Prefactor     4.0272        2.8493        .50206E-03   -1.5668    
  23  norm           .0000        3.1118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .38858E-09    6.7003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10618E-05    70.918        .16441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.2753        17.251        .34998E-03   -1.5650    
  27  norm          5.5539        4.1860        .42574E-03   -1.5661    
  28  norm          1.2129        1.6700        .10256E-02   -1.5686    
  29  Prefactor     .25979E-07    20.881        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .91456        .15438        .45078E-01   -.95950    
  31  Prefactor     1.1169        .13901        .54511E-01   -.88930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87156e-07
Minuit parameter uncertainties:
  1  0.0160685
  2  4.78591
  3  0.935836
  4  0.00678076
  5  26.7963
  6  12.5316
  7  0.000202826
  8  0.711612
  9  15.8399
  10  0.0105973
  11  10.2039
  12  41.391
  13  0.0191408
  14  2.10726
  15  4.36549
  16  0.00117264
  17  8.57975e-06
  18  0.569388
  19  2.85673
  20  0.000165221
  21  22.1282
  22  2.84931
  23  1.72982e-05
  24  0.000100062
  25  0.0173552
  26  17.2511
  27  4.18601
  28  1.67001
  29  0.00147232
  30  0.154452
  31  0.139053
Done.

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

Extracting fit parameters...

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  7.173e-01  5.694e-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.117e+00  1.391e-01  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.146e-01  1.545e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.34
Ra Dec: 162.107 71.730
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 3.67e-08 +/- 2.92e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 1.17e-05

TS (Fixed Index): 3.34
Ra Dec: 162.107 71.730
Photon Flux Upper Limit: 9.69675670338e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.88391042526e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17371785/likelihoodResults_787276801_787536001_4FGL_J1048.4+7143_daily_bin2114.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) = 9239.74008006
delta logL = 0.126996597119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9239.73202418
delta logL = 0.135052480338

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .65621       1.0000          .0000       .10000E+07
     2 'alpha     '    2.5587       1.0000          .0000       5.0000    
     3 'Normalizat'    .90254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1223       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=   9239.732     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      229 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65625        7.8134        .64337E-03    .19660E-01
   2  alpha         2.5588        3.7453        .41166        .37732E-04
   3  Normalizat    .90255        .49941E-01    .44934E-01    .26225E-04
   4  Prefactor     1.1223        .42184E-01    .54377E-01    .82582E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.656251
  alpha      = 2.55885
  Normalizat = 0.902548
  Prefactor  = 1.12231
 **********
 **   18 **HESSE 
 **********

 FCN=   9239.732     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65625        .53670        .52010E-05   -1.5692    
   2  alpha         2.5588        .71090        .16984E-01    .23541E-01
   3  Normalizat    .90255        .16595        .28268E-03   -.96371    
   4  Prefactor     1.1223        .15472        .24042E-03   -.88757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16289e-09
Minuit parameter uncertainties:
  1  0.536697
  2  0.720849
  3  0.166048
  4  0.154783
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) = 9239.73202403
delta logL = 0.135052630438

Extracting fit parameters...

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  6.563e-01  5.367e-01  0.000e+00  1.000e+06 ( 1.000e-11)
390        alpha:  2.559e+00  7.208e-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.122e+00  1.548e-01  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.025e-01  1.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.64
Ra Dec: 162.107 71.730
Photon Index (Free Index): 2.56 +/- 0.72
Photon Flux (Free Index): 5.09e-08 +/- 4.24e-08
Energy Flux (Free Index): 1.40e-05 +/- 9.88e-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/17371785/cmap_HighResolution_787276801_787536001_4FGL_J1048.4+7143_daily_bin2114.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-05', comment='SUCCESS', photon_flux='3.67e-08', energy_flux2='1.40e-05', photon_flux_error='2.92e-08', dlogl='1.35e-01', energy_flux='1.47e-05', photon_flux2='5.09e-08', job_status='DONE', time_completed='2025-12-16 01:00:07.827416', photon_index_error2='0.72', photon_index2='2.56', ts='3.34', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='9.70e-08', energy_flux_error2='9.88e-06', EG='0.91', time_epoch_completed='1765875607.83', return_code='0', job_id='17371785', GAL2='1.12', EG2='0.90', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='4.24e-08', ts2='3.64', photon_index='2.20' WHERE bin_id='2114' AND source_name='4FGL J1048.4+7143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:00:08 PST 2025

