 **********
 **   18 **HESSE 
 **********

 FCN=   8979.363     FROM HESSE     STATUS=OK           542 CALLS     2941 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    17.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.7031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.5227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.641        19.687        .15648E-03   -1.5580    
   5  Prefactor     10.471        12.148        .30870E-03   -1.5643    
   6  norm          4.9057        .96176        .45387E-03   -1.5664    
   7  norm           .0000        10.054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .22204E-09    3.7573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-09    4.7136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.7067        12.052        .33878E-03   -1.5649    
  11  norm          3.5683        3.2079        .53468E-03   -1.5670    
  12  norm          1.2526        3.8700        .99758E-03   -1.5686    
  13  Prefactor     .22593E-07    44.855        .15383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2601        4.6022        .10056E-02   -1.5686    
  15  norm          3.9254        1.0589        .50879E-03   -1.5668    
  16  norm          6.6902        2.6161        .38775E-03   -1.5656    
  17  Prefactor     3.3417        8.8214        .55315E-03   -1.5671    
  18  Prefactor     13.928        12.832        .26751E-03   -1.5633    
  19  Prefactor      .0000        1.1704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        3.4180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .19447E-05    66.727        .15278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .36415E-07    124.32        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .43727        1.7135        .85257E-03   -1.5695    
  24  norm           .0000        .65147        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.3572        54.150        .47972E-03   -1.5666    
  26  Normalizat    .76545        .14078        .64580E-01   -1.0136    
  27  Prefactor     1.0965        .12855        .37725E-01   -.89578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9829e-07
Minuit parameter uncertainties:
  1  0.00013062
  2  6.69744e-06
  3  3.25455e-06
  4  19.6871
  5  12.1476
  6  0.961762
  7  1.91719e-05
  8  5.97312e-05
  9  0.000101426
  10  12.0516
  11  3.2079
  12  3.87
  13  0.00201332
  14  4.60217
  15  1.05886
  16  2.61608
  17  8.82143
  18  12.8324
  19  7.52118e-07
  20  7.31985e-07
  21  0.0227833
  22  0.0042543
  23  1.7135
  24  1.37561e-06
  25  30.721
  26  0.140842
  27  0.128586
/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)
number of points = 7516
number of fields = 31
RA_SUN column already exists. File will not be modified.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.


Performing analysis on: 4FGL_J1047.7+7238_daily_bin2182
RA = 161.939, Dec = 72.642
tmin = 804902401, tmax = 805161601
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='31265005', job_status='RUN', time_executed='2026-07-10 16:06:37.357097', time_epoch_executed='1783724797.36' WHERE source_name='4FGL J1047.7+7238' and cadence='daily' and bin_id='2182'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31265005

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31265005/ft1_4FGL_J1047.7+7238_daily_bin2182.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31265005/ft2_4FGL_J1047.7+7238_daily_bin2182.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31265005/ft1_4FGL_J1047.7+7238_daily_bin2182.fits outfile=/lscratch/kocevski/31265005/ft1_filteredMKT_4FGL_J1047.7+7238_daily_bin2182.fits ra=161.939 dec=72.642 rad=12.0 tmin=804902401.0 tmax=805161601.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.67
user 2.09
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31265005/ft2_4FGL_J1047.7+7238_daily_bin2182.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31265005/ft2_4FGL_J1047.7+7238_daily_bin2182.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/31265005/ft1_filteredMKT_4FGL_J1047.7+7238_daily_bin2182.fits evtable="EVENTS" outfile="/lscratch/kocevski/31265005/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.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.71
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 846

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31265005/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31265005/ft2_4FGL_J1047.7+7238_daily_bin2182.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31264874/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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/31264874/ft2_4FGL_J1047.7+7238_daily_bin2182.fits
.....................!
real 8.36
user 7.81
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31264874/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31264874/ft2_4FGL_J1047.7+7238_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31264874/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits outfile=/lscratch/kocevski/31264874/expmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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/31264874/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits
.....................!
real 70.24
user 65.43
sys 4.14

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

Setting source of interest to:
4FGL J1047.7+7238 @ 161.939 72.642

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31264874/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits scfile=/lscratch/kocevski/31264874/ft2_4FGL_J1047.7+7238_daily_bin2182.fits outfile=/lscratch/kocevski/31264874/cmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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=161.939 yref=72.642 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.70
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31264874/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits scfile=/lscratch/kocevski/31264874/ft2_4FGL_J1047.7+7238_daily_bin2182.fits outfile=/lscratch/kocevski/31264874/cmap_HighResolution_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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=161.939 yref=72.642 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.74
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31264874/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31264874/ft2_4FGL_J1047.7+7238_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31264874/Model_4FGL_J1047.7+7238_daily_bin2182.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/31263807/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits.....................!
real 47.35
user 43.12
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31263807/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits', '/lscratch/kocevski/31263807/ft2_4FGL_J1047.7+7238_daily_bin2182.fits', expMap='/lscratch/kocevski/31263807/expmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits', expCube='/lscratch/kocevski/31263807/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31263807/Model_4FGL_J1047.7+7238_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1047.7+7238'

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.026e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31263807/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31263807/ft2_4FGL_J1047.7+7238_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31263807/expmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31263807/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31263807/Model_4FGL_J1047.7+7238_daily_bin2182.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) = 8979.4309667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11007E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .16389E-05   1.0000          .0000       .10000E+07
     3 'norm      '    .17605E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    40.847       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.518       1.0000          .0000       .10000E+07
     6 'norm      '    4.9060       1.0000          .0000       .10000E+07
     7 'norm      '    .78686E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .13238E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .27421E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    8.7417       1.0000          .0000       .10000E+07
    11 'norm      '    3.5695       1.0000          .0000       .10000E+07
    12 'norm      '    1.2537       1.0000          .0000       .10000E+07
    13 'Prefactor '    .54040E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.2417       1.0000          .0000       .10000E+07
    15 'norm      '    3.9277       1.0000          .0000       .10000E+07
    16 'norm      '    6.6888       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.3447       1.0000          .0000       .10000E+07
    18 'Prefactor '    13.992       1.0000          .0000       .10000E+07
    19 'Prefactor '    .85508E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .14512E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .56830E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .51903E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .43757       1.0000          .0000       .10000E+07
    24 'norm      '    .40019E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    4.4028       1.0000          .0000       .10000E+07
    26 'Normalizat'    .76527       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0964       1.0000          .0000    Done.

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

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.260e+00  4.602e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  1.097e+00  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  7.655e-01  1.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 161.939 72.642
Photon Flux Upper Limit: 8.1674809999e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00623844945165 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31263319/likelihoodResults_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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) = 8978.15036016
delta logL = 1.21290094294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8978.02849558
delta logL = 1.33476551798

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62263E-04   1.0000          .0000       .10000E+07
     2 'Index     '    6.6514       1.0000          .0000       10.000    
     3 'Normalizat'    .69337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8979.426     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      736 TOTAL
                     EDM=   .30E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6519        .42118E-03** at limit **
   2  Index         1.0235        .64413        .44935E-06     .0000    
   3  Normalizat    .76886        1.0841       -.24792E-05    .50999E-04
   4  Prefactor     1.0974        1.1108       -.13002E-05    .74506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.02352
  Normalizat = 0.768862
  Prefactor  = 1.09742
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8979.426     FROM HESSE     STATUS=FAILED         9 CALLS      745 TOTAL
                     EDM=   .30E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6519        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .49832E-01    1.0645        .44935E-06   -82.601    
   3  Normalizat    .76886        1.0841       -.24792E-05   -1.0123    
   4  Prefactor     1.0974        1.1108       -.13002E-05   -.89549    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.0465e-12
Minuit parameter uncertainties:
  1  4.69421e-06
  2  0.649083
  3  1.11697
  4  1.13558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 8979.42588158
delta logL = -0.0626204745568

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  4.694e-06  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  1.024e+00  6.491e-01  0.000e+00  1.000e+01 (-1.000e+00)
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  1.097e+00  1.136e+00  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  7.689e-01  1.117e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 161.939 72.642

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/31263319/cmap_HighResolution_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2026-07-10 16:09:55.376267', job_id='31263319', GAL2='1.10', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1783724995.38', return_code2='101', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-6.26e-02', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='2182' AND source_name='4FGL J1047.7+7238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 16:09:55 PDT 2026

   10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8979.363     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     2399 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    17.035        .33849E-06** at limit **
   2  Prefactor      .0000        1.7002        .30033E-07** at limit **
   3  norm           .0000        1.5541        .10938E-08** at limit **
   4  Prefactor     40.641        2.0411        .18890E-08   -.95579E-01
   5  Prefactor     10.471        5.2523        .59786E-08   -.56602E-02
   6  norm          4.9057        .95693       -.18398E-07   -.80229E-02
   7  norm           .0000        10.049       -.17303E-06** at limit **
   8  Prefactor     .22204E-09    3.7419        .86328E-07** at limit **
   9  Prefactor     .55511E-09    4.6823        .95878E-07** at limit **
  10  Prefactor     8.7067        9.2863       -.35974E-08    .31494E-02
  11  norm          3.5683        3.2019        .19560E-08   -.24343E-03
  12  norm          1.2526        3.5077        .63373E-07    .10995E-02
  13  Prefactor     .22593E-07    .92619        .30662E-07** at limit **
  14  Prefactor     1.2601        4.4551       -.20075E-07    .89804E-04
  15  norm          3.9254        1.0362        .11231E-07    .28051E-02
  16  norm          6.6902        2.6252       -.37151E-07   -.31207E-02
  17  Prefactor     3.3417        8.0678       -.67984E-07   -.41054E-02
  18  Prefactor     13.928        3.0355        .28362E-08   -.23844E-01
  19  Prefactor      .0000        1.1707       -.24453E-07** at limit **
  20  Prefactor      .0000        3.3940        .72215E-07** at limit **
  21  Prefactor     .19447E-05    11.993        .52874E-10** at limit **
  22  Prefactor     .36415E-07    125.43        .36266E-07** at limit **
  23  norm          .43727        1.6707        .14064E-07    .25589E-03
  24  norm           .0000        .65097       -.34016E-07** at limit **
  25  Prefactor     4.3572        1.5301        .85157E-08   -.21743E-01
  26  Normalizat    .76545        .15684       -.99577E-06    .14719E-04
  27  Prefactor     1.0965        .14309        .13859E-05    .84061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  norm       = 0
  Prefactor  = 40.6411
  Prefactor  = 10.4713
  norm       = 4.9057
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 5.55112e-10
  Prefactor  = 8.70675
  norm       = 3.56826
  norm       = 1.25258
  Prefactor  = 2.2593e-08
  Prefactor  = 1.26013
  norm       = 3.92535
  norm       = 6.69024
  Prefactor  = 3.34169
  Prefactor  = 13.9284
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.94472e-06
  Prefactor  = 3.64153e-08
  norm       = 0.437272
  norm       = 0
  Prefactor  = 4.35717
  Normalizat = 0.765454
  Prefactor  = 1.09653
ile=/lscratch/kocevski/31264996/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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/31264996/ft2_4FGL_J1047.7+7238_daily_bin2182.fits
.....................!
real 8.74
user 8.09
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31264996/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31264996/ft2_4FGL_J1047.7+7238_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31264996/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits outfile=/lscratch/kocevski/31264996/expmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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/31264996/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits
.....................!
real 70.52
user 65.91
sys 4.00

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

Setting source of interest to:
4FGL J1047.7+7238 @ 161.939 72.642

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31264996/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits scfile=/lscratch/kocevski/31264996/ft2_4FGL_J1047.7+7238_daily_bin2182.fits outfile=/lscratch/kocevski/31264996/cmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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=161.939 yref=72.642 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.69
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31264996/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits scfile=/lscratch/kocevski/31264996/ft2_4FGL_J1047.7+7238_daily_bin2182.fits outfile=/lscratch/kocevski/31264996/cmap_HighResolution_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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=161.939 yref=72.642 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.67
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31264996/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31264996/ft2_4FGL_J1047.7+7238_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31264996/Model_4FGL_J1047.7+7238_daily_bin2182.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
number of points = 7516
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1047.7+7238_daily_bin2182
RA = 161.939, Dec = 72.642
tmin = 804902401, tmax = 805161601
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='31265136', job_status='RUN', time_executed='2026-07-10 16:08:35.160218', time_epoch_executed='1783724915.16' WHERE source_name='4FGL J1047.7+7238' and cadence='daily' and bin_id='2182'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31265136

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31265136/ft1_4FGL_J1047.7+7238_daily_bin2182.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31265136/ft2_4FGL_J1047.7+7238_daily_bin2182.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31265136/ft1_4FGL_J1047.7+7238_daily_bin2182.fits outfile=/lscratch/kocevski/31265136/ft1_filteredMKT_4FGL_J1047.7+7238_daily_bin2182.fits ra=161.939 dec=72.642 rad=12.0 tmin=804902401.0 tmax=805161601.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.58
user 2.10
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31265136/ft2_4FGL_J1047.7+7238_daily_bin2182.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31265136/ft2_4FGL_J1047.7+7238_daily_bin2182.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/31265136/ft1_filteredMKT_4FGL_J1047.7+7238_daily_bin2182.fits evtable="EVENTS" outfile="/lscratch/kocevski/31265136/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.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.65
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 846

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31265136/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31265136/ft2_4FGL_J1047.7+7238_daily_bin2182.fits sctable="SC_DATA" outf **********
 **   18 **HESSE 
 **********

 FCN=   8979.363     FROM HESSE     STATUS=OK           542 CALLS     2941 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    17.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.7031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.5227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.641        19.687        .15648E-03   -1.5580    
   5  Prefactor     10.471        12.148        .30870E-03   -1.5643    
   6  norm          4.9057        .96176        .45387E-03   -1.5664    
   7  norm           .0000        10.054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .22204E-09    3.7573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-09    4.7136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.7067        12.052        .33878E-03   -1.5649    
  11  norm          3.5683        3.2079        .53468E-03   -1.5670    
  12  norm          1.2526        3.8700        .99758E-03   -1.5686    
  13  Prefactor     .22593E-07    44.855        .15383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2601        4.6022        .10056E-02   -1.5686    
  15  norm          3.9254        1.0589        .50879E-03   -1.5668    
  16  norm          6.6902        2.6161        .38775E-03   -1.5656    
  17  Prefactor     3.3417        8.8214        .55315E-03   -1.5671    
  18  Prefactor     13.928        12.832        .26751E-03   -1.5633    
  19  Prefactor      .0000        1.1704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        3.4180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .19447E-05    66.727        .15278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .36415E-07    124.32        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .43727        1.7135        .85257E-03   -1.5695    
  24  norm           .0000        .65147        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.3572        54.150        .47972E-03   -1.5666    
  26  Normalizat    .76545        .14078        .64580E-01   -1.0136    
  27  Prefactor     1.0965        .12855        .37725E-01   -.89578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9829e-07
Minuit parameter uncertainties:
  1  0.00013062
  2  6.69744e-06
  3  3.25455e-06
  4  19.6871
  5  12.1476
  6  0.961762
  7  1.91719e-05
  8  5.97312e-05
  9  0.000101426
  10  12.0516
  11  3.2079
  12  3.87
  13  0.00201332
  14  4.60217
  15  1.05886
  16  2.61608
  17  8.82143
  18  12.8324
  19  7.52118e-07
  20  7.31985e-07
  21  0.0227833
  22  0.0042543
  23  1.7135
  24  1.37561e-06
  25  30.721
  26  0.140842
  27  0.128586
ile=/lscratch/kocevski/31265005/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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/31265005/ft2_4FGL_J1047.7+7238_daily_bin2182.fits
.....................!
real 9.08
user 8.45
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31265005/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31265005/ft2_4FGL_J1047.7+7238_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31265005/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits outfile=/lscratch/kocevski/31265005/expmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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/31265005/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits
.....................!
real 73.19
user 68.47
sys 3.97

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

Setting source of interest to:
4FGL J1047.7+7238 @ 161.939 72.642

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31265005/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits scfile=/lscratch/kocevski/31265005/ft2_4FGL_J1047.7+7238_daily_bin2182.fits outfile=/lscratch/kocevski/31265005/cmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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=161.939 yref=72.642 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.79
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31265005/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits scfile=/lscratch/kocevski/31265005/ft2_4FGL_J1047.7+7238_daily_bin2182.fits outfile=/lscratch/kocevski/31265005/cmap_HighResolution_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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=161.939 yref=72.642 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.83
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31265005/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31265005/ft2_4FGL_J1047.7+7238_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31265005/Model_4FGL_J1047.7+7238_daily_bin2182.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/31264650/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits.....................!
real 48.25
user 44.99
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31264650/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits', '/lscratch/kocevski/31264650/ft2_4FGL_J1047.7+7238_daily_bin2182.fits', expMap='/lscratch/kocevski/31264650/expmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits', expCube='/lscratch/kocevski/31264650/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31264650/Model_4FGL_J1047.7+7238_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1047.7+7238'

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.026e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31264650/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31264650/ft2_4FGL_J1047.7+7238_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31264650/expmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31264650/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31264650/Model_4FGL_J1047.7+7238_daily_bin2182.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) = 8979.4309667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11007E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .16389E-05   1.0000          .0000       .10000E+07
     3 'norm      '    .17605E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    40.847       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.518       1.0000          .0000       .10000E+07
     6 'norm      '    4.9060       1.0000          .0000       .10000E+07
     7 'norm      '    .78686E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .13238E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .27421E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    8.7417       1.0000          .0000       .10000E+07
    11 'norm      '    3.5695       1.0000          .0000       .10000E+07
    12 'norm      '    1.2537       1.0000          .0000       .10000E+07
    13 'Prefactor '    .54040E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.2417       1.0000          .0000       .10000E+07
    15 'norm      '    3.9277       1.0000          .0000       .10000E+07
    16 'norm      '    6.6888       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.3447       1.0000          .0000       .10000E+07
    18 'Prefactor '    13.992       1.0000          .0000       .10000E+07
    19 'Prefactor '    .85508E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .14512E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .56830E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .51903E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .43757       1.0000          .0000       .10000E+07
    24 'norm      '    .40019E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    4.4028       1.0000          .0000       .10000E+07
    26 'Normalizat'    .76527       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0964       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8979.363     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     2399 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    17.035        .33849E-06** at limit **
   2  Prefactor      .0000        1.7002        .30033E-07** at limit **
   3  norm           .0000        1.5541        .10938E-08** at limit **
   4  Prefactor     40.641        2.0411        .18890E-08   -.95579E-01
   5  Prefactor     10.471        5.2523        .59786E-08   -.56602E-02
   6  norm          4.9057        .95693       -.18398E-07   -.80229E-02
   7  norm           .0000        10.049       -.17303E-06** at limit **
   8  Prefactor     .22204E-09    3.7419        .86328E-07** at limit **
   9  Prefactor     .55511E-09    4.6823        .95878E-07** at limit **
  10  Prefactor     8.7067        9.2863       -.35974E-08    .31494E-02
  11  norm          3.5683        3.2019        .19560E-08   -.24343E-03
  12  norm          1.2526        3.5077        .63373E-07    .10995E-02
  13  Prefactor     .22593E-07    .92619        .30662E-07** at limit **
  14  Prefactor     1.2601        4.4551       -.20075E-07    .89804E-04
  15  norm          3.9254        1.0362        .11231E-07    .28051E-02
  16  norm          6.6902        2.6252       -.37151E-07   -.31207E-02
  17  Prefactor     3.3417        8.0678       -.67984E-07   -.41054E-02
  18  Prefactor     13.928        3.0355        .28362E-08   -.23844E-01
  19  Prefactor      .0000        1.1707       -.24453E-07** at limit **
  20  Prefactor      .0000        3.3940        .72215E-07** at limit **
  21  Prefactor     .19447E-05    11.993        .52874E-10** at limit **
  22  Prefactor     .36415E-07    125.43        .36266E-07** at limit **
  23  norm          .43727        1.6707        .14064E-07    .25589E-03
  24  norm           .0000        .65097       -.34016E-07** at limit **
  25  Prefactor     4.3572        1.5301        .85157E-08   -.21743E-01
  26  Normalizat    .76545        .15684       -.99577E-06    .14719E-04
  27  Prefactor     1.0965        .14309        .13859E-05    .84061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  norm       = 0
  Prefactor  = 40.6411
  Prefactor  = 10.4713
  norm       = 4.9057
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 5.55112e-10
  Prefactor  = 8.70675
  norm       = 3.56826
  norm       = 1.25258
  Prefactor  = 2.2593e-08
  Prefactor  = 1.26013
  norm       = 3.92535
  norm       = 6.69024
  Prefactor  = 3.34169
  Prefactor  = 13.9284
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.94472e-06
  Prefactor  = 3.64153e-08
  norm       = 0.437272
  norm       = 0
  Prefactor  = 4.35717
  Normalizat = 0.765454
  Prefactor  = 1.09653
Working on...
/lscratch/kocevski/31264874/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits.....................!
real 40.64
user 39.07
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31264874/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits', '/lscratch/kocevski/31264874/ft2_4FGL_J1047.7+7238_daily_bin2182.fits', expMap='/lscratch/kocevski/31264874/expmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits', expCube='/lscratch/kocevski/31264874/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31264874/Model_4FGL_J1047.7+7238_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1047.7+7238'

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.026e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31264874/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31264874/ft2_4FGL_J1047.7+7238_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31264874/expmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31264874/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31264874/Model_4FGL_J1047.7+7238_daily_bin2182.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) = 8979.4309667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11007E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .16389E-05   1.0000          .0000       .10000E+07
     3 'norm      '    .17605E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    40.847       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.518       1.0000          .0000       .10000E+07
     6 'norm      '    4.9060       1.0000          .0000       .10000E+07
     7 'norm      '    .78686E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .13238E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .27421E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    8.7417       1.0000          .0000       .10000E+07
    11 'norm      '    3.5695       1.0000          .0000       .10000E+07
    12 'norm      '    1.2537       1.0000          .0000       .10000E+07
    13 'Prefactor '    .54040E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.2417       1.0000          .0000       .10000E+07
    15 'norm      '    3.9277       1.0000          .0000       .10000E+07
    16 'norm      '    6.6888       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.3447       1.0000          .0000       .10000E+07
    18 'Prefactor '    13.992       1.0000          .0000       .10000E+07
    19 'Prefactor '    .85508E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .14512E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .56830E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .51903E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .43757       1.0000          .0000       .10000E+07
    24 'norm      '    .40019E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    4.4028       1.0000          .0000       .10000E+07
    26 'Normalizat'    .76527       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0964       1.0000          .0000    Done.

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

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.260e+00  4.602e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  1.097e+00  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  7.655e-01  1.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 161.939 72.642
Photon Flux Upper Limit: 8.1674809999e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00623844945165 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31263807/likelihoodResults_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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) = 8978.15036016
delta logL = 1.21290094294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8978.02849558
delta logL = 1.33476551798

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62263E-04   1.0000          .0000       .10000E+07
     2 'Index     '    6.6514       1.0000          .0000       10.000    
     3 'Normalizat'    .69337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8979.426     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      736 TOTAL
                     EDM=   .30E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6519        .42118E-03** at limit **
   2  Index         1.0235        .64413        .44935E-06     .0000    
   3  Normalizat    .76886        1.0841       -.24792E-05    .50999E-04
   4  Prefactor     1.0974        1.1108       -.13002E-05    .74506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.02352
  Normalizat = 0.768862
  Prefactor  = 1.09742
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8979.426     FROM HESSE     STATUS=FAILED         9 CALLS      745 TOTAL
                     EDM=   .30E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6519        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .49832E-01    1.0645        .44935E-06   -82.601    
   3  Normalizat    .76886        1.0841       -.24792E-05   -1.0123    
   4  Prefactor     1.0974        1.1108       -.13002E-05   -.89549    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.0465e-12
Minuit parameter uncertainties:
  1  4.69421e-06
  2  0.649083
  3  1.11697
  4  1.13558
   10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8979.363     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     2399 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    17.035        .33849E-06** at limit **
   2  Prefactor      .0000        1.7002        .30033E-07** at limit **
   3  norm           .0000        1.5541        .10938E-08** at limit **
   4  Prefactor     40.641        2.0411        .18890E-08   -.95579E-01
   5  Prefactor     10.471        5.2523        .59786E-08   -.56602E-02
   6  norm          4.9057        .95693       -.18398E-07   -.80229E-02
   7  norm           .0000        10.049       -.17303E-06** at limit **
   8  Prefactor     .22204E-09    3.7419        .86328E-07** at limit **
   9  Prefactor     .55511E-09    4.6823        .95878E-07** at limit **
  10  Prefactor     8.7067        9.2863       -.35974E-08    .31494E-02
  11  norm          3.5683        3.2019        .19560E-08   -.24343E-03
  12  norm          1.2526        3.5077        .63373E-07    .10995E-02
  13  Prefactor     .22593E-07    .92619        .30662E-07** at limit **
  14  Prefactor     1.2601        4.4551       -.20075E-07    .89804E-04
  15  norm          3.9254        1.0362        .11231E-07    .28051E-02
  16  norm          6.6902        2.6252       -.37151E-07   -.31207E-02
  17  Prefactor     3.3417        8.0678       -.67984E-07   -.41054E-02
  18  Prefactor     13.928        3.0355        .28362E-08   -.23844E-01
  19  Prefactor      .0000        1.1707       -.24453E-07** at limit **
  20  Prefactor      .0000        3.3940        .72215E-07** at limit **
  21  Prefactor     .19447E-05    11.993        .52874E-10** at limit **
  22  Prefactor     .36415E-07    125.43        .36266E-07** at limit **
  23  norm          .43727        1.6707        .14064E-07    .25589E-03
  24  norm           .0000        .65097       -.34016E-07** at limit **
  25  Prefactor     4.3572        1.5301        .85157E-08   -.21743E-01
  26  Normalizat    .76545        .15684       -.99577E-06    .14719E-04
  27  Prefactor     1.0965        .14309        .13859E-05    .84061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  norm       = 0
  Prefactor  = 40.6411
  Prefactor  = 10.4713
  norm       = 4.9057
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 5.55112e-10
  Prefactor  = 8.70675
  norm       = 3.56826
  norm       = 1.25258
  Prefactor  = 2.2593e-08
  Prefactor  = 1.26013
  norm       = 3.92535
  norm       = 6.69024
  Prefactor  = 3.34169
  Prefactor  = 13.9284
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.94472e-06
  Prefactor  = 3.64153e-08
  norm       = 0.437272
  norm       = 0
  Prefactor  = 4.35717
  Normalizat = 0.765454
  Prefactor  = 1.09653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
 **********
 **   18 **HESSE 
 **********

 FCN=   8979.363     FROM HESSE     STATUS=OK           542 CALLS     2941 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    17.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.7031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.5227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.641        19.687        .15648E-03   -1.5580    
   5  Prefactor     10.471        12.148        .30870E-03   -1.5643    
   6  norm          4.9057        .96176        .45387E-03   -1.5664    
   7  norm           .0000        10.054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .22204E-09    3.7573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-09    4.7136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.7067        12.052        .33878E-03   -1.5649    
  11  norm          3.5683        3.2079        .53468E-03   -1.5670    
  12  norm          1.2526        3.8700        .99758E-03   -1.5686    
  13  Prefactor     .22593E-07    44.855        .15383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2601        4.6022        .10056E-02   -1.5686    
  15  norm          3.9254        1.0589        .50879E-03   -1.5668    
  16  norm          6.6902        2.6161        .38775E-03   -1.5656    
  17  Prefactor     3.3417        8.8214        .55315E-03   -1.5671    
  18  Prefactor     13.928        12.832        .26751E-03   -1.5633    
  19  Prefactor      .0000        1.1704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        3.4180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .19447E-05    66.727        .15278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .36415E-07    124.32        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .43727        1.7135        .85257E-03   -1.5695    
  24  norm           .0000        .65147        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.3572        54.150        .47972E-03   -1.5666    
  26  Normalizat    .76545        .14078        .64580E-01   -1.0136    
  27  Prefactor     1.0965        .12855        .37725E-01   -.89578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9829e-07
Minuit parameter uncertainties:
  1  0.00013062
  2  6.69744e-06
  3  3.25455e-06
  4  19.6871
  5  12.1476
  6  0.961762
  7  1.91719e-05
  8  5.97312e-05
  9  0.000101426
  10  12.0516
  11  3.2079
  12  3.87
  13  0.00201332
  14  4.60217
  15  1.05886
  16  2.61608
  17  8.82143
  18  12.8324
  19  7.52118e-07
  20  7.31985e-07
  21  0.0227833
  22  0.0042543
  23  1.7135
  24  1.37561e-06
  25  30.721
  26  0.140842
  27  0.128586
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 8979.42588158
delta logL = -0.0626204745568

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  4.694e-06  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  1.024e+00  6.491e-01  0.000e+00  1.000e+01 (-1.000e+00)
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  1.097e+00  1.136e+00  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  7.689e-01  1.117e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 161.939 72.642

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/31263807/cmap_HighResolution_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2026-07-10 16:12:16.067116', job_id='31263807', GAL2='1.10', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1783725136.07', return_code2='101', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-6.26e-02', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='2182' AND source_name='4FGL J1047.7+7238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 16:12:16 PDT 2026

ile=/lscratch/kocevski/31265136/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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/31265136/ft2_4FGL_J1047.7+7238_daily_bin2182.fits
.....................!
real 9.14
user 8.46
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31265136/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31265136/ft2_4FGL_J1047.7+7238_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31265136/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits outfile=/lscratch/kocevski/31265136/expmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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/31265136/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits
.....................!
real 73.89
user 69.05
sys 4.25

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

Setting source of interest to:
4FGL J1047.7+7238 @ 161.939 72.642

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31265136/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits scfile=/lscratch/kocevski/31265136/ft2_4FGL_J1047.7+7238_daily_bin2182.fits outfile=/lscratch/kocevski/31265136/cmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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=161.939 yref=72.642 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.64
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31265136/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits scfile=/lscratch/kocevski/31265136/ft2_4FGL_J1047.7+7238_daily_bin2182.fits outfile=/lscratch/kocevski/31265136/cmap_HighResolution_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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=161.939 yref=72.642 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.75
user 0.27
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31265136/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31265136/ft2_4FGL_J1047.7+7238_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31265136/Model_4FGL_J1047.7+7238_daily_bin2182.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
 **********
 **   18 **HESSE 
 **********

 FCN=   8979.363     FROM HESSE     STATUS=OK           542 CALLS     2941 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    17.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.7031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.5227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.641        19.687        .15648E-03   -1.5580    
   5  Prefactor     10.471        12.148        .30870E-03   -1.5643    
   6  norm          4.9057        .96176        .45387E-03   -1.5664    
   7  norm           .0000        10.054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .22204E-09    3.7573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-09    4.7136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.7067        12.052        .33878E-03   -1.5649    
  11  norm          3.5683        3.2079        .53468E-03   -1.5670    
  12  norm          1.2526        3.8700        .99758E-03   -1.5686    
  13  Prefactor     .22593E-07    44.855        .15383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2601        4.6022        .10056E-02   -1.5686    
  15  norm          3.9254        1.0589        .50879E-03   -1.5668    
  16  norm          6.6902        2.6161        .38775E-03   -1.5656    
  17  Prefactor     3.3417        8.8214        .55315E-03   -1.5671    
  18  Prefactor     13.928        12.832        .26751E-03   -1.5633    
  19  Prefactor      .0000        1.1704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        3.4180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .19447E-05    66.727        .15278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .36415E-07    124.32        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .43727        1.7135        .85257E-03   -1.5695    
  24  norm           .0000        .65147        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.3572        54.150        .47972E-03   -1.5666    
  26  Normalizat    .76545        .14078        .64580E-01   -1.0136    
  27  Prefactor     1.0965        .12855        .37725E-01   -.89578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9829e-07
Minuit parameter uncertainties:
  1  0.00013062
  2  6.69744e-06
  3  3.25455e-06
  4  19.6871
  5  12.1476
  6  0.961762
  7  1.91719e-05
  8  5.97312e-05
  9  0.000101426
  10  12.0516
  11  3.2079
  12  3.87
  13  0.00201332
  14  4.60217
  15  1.05886
  16  2.61608
  17  8.82143
  18  12.8324
  19  7.52118e-07
  20  7.31985e-07
  21  0.0227833
  22  0.0042543
  23  1.7135
  24  1.37561e-06
  25  30.721
  26  0.140842
  27  0.128586
Working on...
/lscratch/kocevski/31264996/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits.....................!
real 43.85
user 41.71
sys 1.63

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31264996/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits', '/lscratch/kocevski/31264996/ft2_4FGL_J1047.7+7238_daily_bin2182.fits', expMap='/lscratch/kocevski/31264996/expmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits', expCube='/lscratch/kocevski/31264996/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31264996/Model_4FGL_J1047.7+7238_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1047.7+7238'

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.026e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31264996/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31264996/ft2_4FGL_J1047.7+7238_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31264996/expmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31264996/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31264996/Model_4FGL_J1047.7+7238_daily_bin2182.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) = 8979.4309667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11007E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .16389E-05   1.0000          .0000       .10000E+07
     3 'norm      '    .17605E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    40.847       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.518       1.0000          .0000       .10000E+07
     6 'norm      '    4.9060       1.0000          .0000       .10000E+07
     7 'norm      '    .78686E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .13238E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .27421E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    8.7417       1.0000          .0000       .10000E+07
    11 'norm      '    3.5695       1.0000          .0000       .10000E+07
    12 'norm      '    1.2537       1.0000          .0000       .10000E+07
    13 'Prefactor '    .54040E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.2417       1.0000          .0000       .10000E+07
    15 'norm      '    3.9277       1.0000          .0000       .10000E+07
    16 'norm      '    6.6888       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.3447       1.0000          .0000       .10000E+07
    18 'Prefactor '    13.992       1.0000          .0000       .10000E+07
    19 'Prefactor '    .85508E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .14512E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .56830E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .51903E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .43757       1.0000          .0000       .10000E+07
    24 'norm      '    .40019E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    4.4028       1.0000          .0000       .10000E+07
    26 'Normalizat'    .76527       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0964       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8979.363     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     2399 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    17.035        .33849E-06** at limit **
   2  Prefactor      .0000        1.7002        .30033E-07** at limit **
   3  norm           .0000        1.5541        .10938E-08** at limit **
   4  Prefactor     40.641        2.0411        .18890E-08   -.95579E-01
   5  Prefactor     10.471        5.2523        .59786E-08   -.56602E-02
   6  norm          4.9057        .95693       -.18398E-07   -.80229E-02
   7  norm           .0000        10.049       -.17303E-06** at limit **
   8  Prefactor     .22204E-09    3.7419        .86328E-07** at limit **
   9  Prefactor     .55511E-09    4.6823        .95878E-07** at limit **
  10  Prefactor     8.7067        9.2863       -.35974E-08    .31494E-02
  11  norm          3.5683        3.2019        .19560E-08   -.24343E-03
  12  norm          1.2526        3.5077        .63373E-07    .10995E-02
  13  Prefactor     .22593E-07    .92619        .30662E-07** at limit **
  14  Prefactor     1.2601        4.4551       -.20075E-07    .89804E-04
  15  norm          3.9254        1.0362        .11231E-07    .28051E-02
  16  norm          6.6902        2.6252       -.37151E-07   -.31207E-02
  17  Prefactor     3.3417        8.0678       -.67984E-07   -.41054E-02
  18  Prefactor     13.928        3.0355        .28362E-08   -.23844E-01
  19  Prefactor      .0000        1.1707       -.24453E-07** at limit **
  20  Prefactor      .0000        3.3940        .72215E-07** at limit **
  21  Prefactor     .19447E-05    11.993        .52874E-10** at limit **
  22  Prefactor     .36415E-07    125.43        .36266E-07** at limit **
  23  norm          .43727        1.6707        .14064E-07    .25589E-03
  24  norm           .0000        .65097       -.34016E-07** at limit **
  25  Prefactor     4.3572        1.5301        .85157E-08   -.21743E-01
  26  Normalizat    .76545        .15684       -.99577E-06    .14719E-04
  27  Prefactor     1.0965        .14309        .13859E-05    .84061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  norm       = 0
  Prefactor  = 40.6411
  Prefactor  = 10.4713
  norm       = 4.9057
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 5.55112e-10
  Prefactor  = 8.70675
  norm       = 3.56826
  norm       = 1.25258
  Prefactor  = 2.2593e-08
  Prefactor  = 1.26013
  norm       = 3.92535
  norm       = 6.69024
  Prefactor  = 3.34169
  Prefactor  = 13.9284
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.94472e-06
  Prefactor  = 3.64153e-08
  norm       = 0.437272
  norm       = 0
  Prefactor  = 4.35717
  Normalizat = 0.765454
  Prefactor  = 1.09653
 **********
 **   18 **HESSE 
 **********

 FCN=   8979.363     FROM HESSE     STATUS=OK           542 CALLS     2941 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    17.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.7031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.5227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.641        19.687        .15648E-03   -1.5580    
   5  Prefactor     10.471        12.148        .30870E-03   -1.5643    
   6  norm          4.9057        .96176        .45387E-03   -1.5664    
   7  norm           .0000        10.054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .22204E-09    3.7573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-09    4.7136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.7067        12.052        .33878E-03   -1.5649    
  11  norm          3.5683        3.2079        .53468E-03   -1.5670    
  12  norm          1.2526        3.8700        .99758E-03   -1.5686    
  13  Prefactor     .22593E-07    44.855        .15383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2601        4.6022        .10056E-02   -1.5686    
  15  norm          3.9254        1.0589        .50879E-03   -1.5668    
  16  norm          6.6902        2.6161        .38775E-03   -1.5656    
  17  Prefactor     3.3417        8.8214        .55315E-03   -1.5671    
  18  Prefactor     13.928        12.832        .26751E-03   -1.5633    
  19  Prefactor      .0000        1.1704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        3.4180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .19447E-05    66.727        .15278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .36415E-07    124.32        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .43727        1.7135        .85257E-03   -1.5695    
  24  norm           .0000        .65147        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.3572        54.150        .47972E-03   -1.5666    
  26  Normalizat    .76545        .14078        .64580E-01   -1.0136    
  27  Prefactor     1.0965        .12855        .37725E-01   -.89578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9829e-07
Minuit parameter uncertainties:
  1  0.00013062
  2  6.69744e-06
  3  3.25455e-06
  4  19.6871
  5  12.1476
  6  0.961762
  7  1.91719e-05
  8  5.97312e-05
  9  0.000101426
  10  12.0516
  11  3.2079
  12  3.87
  13  0.00201332
  14  4.60217
  15  1.05886
  16  2.61608
  17  8.82143
  18  12.8324
  19  7.52118e-07
  20  7.31985e-07
  21  0.0227833
  22  0.0042543
  23  1.7135
  24  1.37561e-06
  25  30.721
  26  0.140842
  27  0.128586
Working on...
/lscratch/kocevski/31265005/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits.....................!
real 43.44
user 41.76
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31265005/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits', '/lscratch/kocevski/31265005/ft2_4FGL_J1047.7+7238_daily_bin2182.fits', expMap='/lscratch/kocevski/31265005/expmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits', expCube='/lscratch/kocevski/31265005/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31265005/Model_4FGL_J1047.7+7238_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1047.7+7238'

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.026e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31265005/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31265005/ft2_4FGL_J1047.7+7238_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31265005/expmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31265005/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31265005/Model_4FGL_J1047.7+7238_daily_bin2182.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) = 8979.4309667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11007E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .16389E-05   1.0000          .0000       .10000E+07
     3 'norm      '    .17605E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    40.847       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.518       1.0000          .0000       .10000E+07
     6 'norm      '    4.9060       1.0000          .0000       .10000E+07
     7 'norm      '    .78686E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .13238E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .27421E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    8.7417       1.0000          .0000       .10000E+07
    11 'norm      '    3.5695       1.0000          .0000       .10000E+07
    12 'norm      '    1.2537       1.0000          .0000       .10000E+07
    13 'Prefactor '    .54040E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.2417       1.0000          .0000       .10000E+07
    15 'norm      '    3.9277       1.0000          .0000       .10000E+07
    16 'norm      '    6.6888       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.3447       1.0000          .0000       .10000E+07
    18 'Prefactor '    13.992       1.0000          .0000       .10000E+07
    19 'Prefactor '    .85508E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .14512E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .56830E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .51903E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .43757       1.0000          .0000       .10000E+07
    24 'norm      '    .40019E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    4.4028       1.0000          .0000       .10000E+07
    26 'Normalizat'    .76527       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0964       1.0000          .0000    Done.

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

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.260e+00  4.602e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  1.097e+00  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  7.655e-01  1.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 161.939 72.642
Photon Flux Upper Limit: 8.1674809999e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00623844945165 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31264650/likelihoodResults_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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) = 8978.15036016
delta logL = 1.21290094294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8978.02849558
delta logL = 1.33476551798

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62263E-04   1.0000          .0000       .10000E+07
     2 'Index     '    6.6514       1.0000          .0000       10.000    
     3 'Normalizat'    .69337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8979.426     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      736 TOTAL
                     EDM=   .30E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6519        .42118E-03** at limit **
   2  Index         1.0235        .64413        .44935E-06     .0000    
   3  Normalizat    .76886        1.0841       -.24792E-05    .50999E-04
   4  Prefactor     1.0974        1.1108       -.13002E-05    .74506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.02352
  Normalizat = 0.768862
  Prefactor  = 1.09742
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8979.426     FROM HESSE     STATUS=FAILED         9 CALLS      745 TOTAL
                     EDM=   .30E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6519        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .49832E-01    1.0645        .44935E-06   -82.601    
   3  Normalizat    .76886        1.0841       -.24792E-05   -1.0123    
   4  Prefactor     1.0974        1.1108       -.13002E-05   -.89549    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.0465e-12
Minuit parameter uncertainties:
  1  4.69421e-06
  2  0.649083
  3  1.11697
  4  1.13558
   10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8979.363     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     2399 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    17.035        .33849E-06** at limit **
   2  Prefactor      .0000        1.7002        .30033E-07** at limit **
   3  norm           .0000        1.5541        .10938E-08** at limit **
   4  Prefactor     40.641        2.0411        .18890E-08   -.95579E-01
   5  Prefactor     10.471        5.2523        .59786E-08   -.56602E-02
   6  norm          4.9057        .95693       -.18398E-07   -.80229E-02
   7  norm           .0000        10.049       -.17303E-06** at limit **
   8  Prefactor     .22204E-09    3.7419        .86328E-07** at limit **
   9  Prefactor     .55511E-09    4.6823        .95878E-07** at limit **
  10  Prefactor     8.7067        9.2863       -.35974E-08    .31494E-02
  11  norm          3.5683        3.2019        .19560E-08   -.24343E-03
  12  norm          1.2526        3.5077        .63373E-07    .10995E-02
  13  Prefactor     .22593E-07    .92619        .30662E-07** at limit **
  14  Prefactor     1.2601        4.4551       -.20075E-07    .89804E-04
  15  norm          3.9254        1.0362        .11231E-07    .28051E-02
  16  norm          6.6902        2.6252       -.37151E-07   -.31207E-02
  17  Prefactor     3.3417        8.0678       -.67984E-07   -.41054E-02
  18  Prefactor     13.928        3.0355        .28362E-08   -.23844E-01
  19  Prefactor      .0000        1.1707       -.24453E-07** at limit **
  20  Prefactor      .0000        3.3940        .72215E-07** at limit **
  21  Prefactor     .19447E-05    11.993        .52874E-10** at limit **
  22  Prefactor     .36415E-07    125.43        .36266E-07** at limit **
  23  norm          .43727        1.6707        .14064E-07    .25589E-03
  24  norm           .0000        .65097       -.34016E-07** at limit **
  25  Prefactor     4.3572        1.5301        .85157E-08   -.21743E-01
  26  Normalizat    .76545        .15684       -.99577E-06    .14719E-04
  27  Prefactor     1.0965        .14309        .13859E-05    .84061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  norm       = 0
  Prefactor  = 40.6411
  Prefactor  = 10.4713
  norm       = 4.9057
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 5.55112e-10
  Prefactor  = 8.70675
  norm       = 3.56826
  norm       = 1.25258
  Prefactor  = 2.2593e-08
  Prefactor  = 1.26013
  norm       = 3.92535
  norm       = 6.69024
  Prefactor  = 3.34169
  Prefactor  = 13.9284
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.94472e-06
  Prefactor  = 3.64153e-08
  norm       = 0.437272
  norm       = 0
  Prefactor  = 4.35717
  Normalizat = 0.765454
  Prefactor  = 1.09653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 8979.42588158
delta logL = -0.0626204745568

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  4.694e-06  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  1.024e+00  6.491e-01  0.000e+00  1.000e+01 (-1.000e+00)
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  1.097e+00  1.136e+00  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  7.689e-01  1.117e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 161.939 72.642

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/31264650/cmap_HighResolution_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2026-07-10 16:14:08.199755', job_id='31264650', GAL2='1.10', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1783725248.2', return_code2='101', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-6.26e-02', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='2182' AND source_name='4FGL J1047.7+7238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 16:14:08 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.260e+00  4.602e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  1.097e+00  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  7.655e-01  1.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 161.939 72.642
Photon Flux Upper Limit: 8.1674809999e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00623844945165 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31264874/likelihoodResults_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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) = 8978.15036016
delta logL = 1.21290094294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8978.02849558
delta logL = 1.33476551798

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62263E-04   1.0000          .0000       .10000E+07
     2 'Index     '    6.6514       1.0000          .0000       10.000    
     3 'Normalizat'    .69337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8979.426     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      736 TOTAL
                     EDM=   .30E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6519        .42118E-03** at limit **
   2  Index         1.0235        .64413        .44935E-06     .0000    
   3  Normalizat    .76886        1.0841       -.24792E-05    .50999E-04
   4  Prefactor     1.0974        1.1108       -.13002E-05    .74506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.02352
  Normalizat = 0.768862
  Prefactor  = 1.09742
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8979.426     FROM HESSE     STATUS=FAILED         9 CALLS      745 TOTAL
                     EDM=   .30E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6519        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .49832E-01    1.0645        .44935E-06   -82.601    
   3  Normalizat    .76886        1.0841       -.24792E-05   -1.0123    
   4  Prefactor     1.0974        1.1108       -.13002E-05   -.89549    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.0465e-12
Minuit parameter uncertainties:
  1  4.69421e-06
  2  0.649083
  3  1.11697
  4  1.13558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 8979.42588158
delta logL = -0.0626204745568

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  4.694e-06  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  1.024e+00  6.491e-01  0.000e+00  1.000e+01 (-1.000e+00)
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  1.097e+00  1.136e+00  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  7.689e-01  1.117e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 161.939 72.642

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/31264874/cmap_HighResolution_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2026-07-10 16:14:21.898059', job_id='31264874', GAL2='1.10', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1783725261.9', return_code2='101', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-6.26e-02', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='2182' AND source_name='4FGL J1047.7+7238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 16:14:22 PDT 2026

 **********
 **   18 **HESSE 
 **********

 FCN=   8979.363     FROM HESSE     STATUS=OK           542 CALLS     2941 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    17.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.7031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.5227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.641        19.687        .15648E-03   -1.5580    
   5  Prefactor     10.471        12.148        .30870E-03   -1.5643    
   6  norm          4.9057        .96176        .45387E-03   -1.5664    
   7  norm           .0000        10.054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .22204E-09    3.7573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-09    4.7136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.7067        12.052        .33878E-03   -1.5649    
  11  norm          3.5683        3.2079        .53468E-03   -1.5670    
  12  norm          1.2526        3.8700        .99758E-03   -1.5686    
  13  Prefactor     .22593E-07    44.855        .15383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2601        4.6022        .10056E-02   -1.5686    
  15  norm          3.9254        1.0589        .50879E-03   -1.5668    
  16  norm          6.6902        2.6161        .38775E-03   -1.5656    
  17  Prefactor     3.3417        8.8214        .55315E-03   -1.5671    
  18  Prefactor     13.928        12.832        .26751E-03   -1.5633    
  19  Prefactor      .0000        1.1704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        3.4180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .19447E-05    66.727        .15278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .36415E-07    124.32        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .43727        1.7135        .85257E-03   -1.5695    
  24  norm           .0000        .65147        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.3572        54.150        .47972E-03   -1.5666    
  26  Normalizat    .76545        .14078        .64580E-01   -1.0136    
  27  Prefactor     1.0965        .12855        .37725E-01   -.89578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9829e-07
Minuit parameter uncertainties:
  1  0.00013062
  2  6.69744e-06
  3  3.25455e-06
  4  19.6871
  5  12.1476
  6  0.961762
  7  1.91719e-05
  8  5.97312e-05
  9  0.000101426
  10  12.0516
  11  3.2079
  12  3.87
  13  0.00201332
  14  4.60217
  15  1.05886
  16  2.61608
  17  8.82143
  18  12.8324
  19  7.52118e-07
  20  7.31985e-07
  21  0.0227833
  22  0.0042543
  23  1.7135
  24  1.37561e-06
  25  30.721
  26  0.140842
  27  0.128586
Done.

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

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.260e+00  4.602e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  1.097e+00  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  7.655e-01  1.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 161.939 72.642
Photon Flux Upper Limit: 8.1674809999e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00623844945165 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31264996/likelihoodResults_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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) = 8978.15036016
delta logL = 1.21290094294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8978.02849558
delta logL = 1.33476551798

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62263E-04   1.0000          .0000       .10000E+07
     2 'Index     '    6.6514       1.0000          .0000       10.000    
     3 'Normalizat'    .69337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8979.426     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      736 TOTAL
                     EDM=   .30E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6519        .42118E-03** at limit **
   2  Index         1.0235        .64413        .44935E-06     .0000    
   3  Normalizat    .76886        1.0841       -.24792E-05    .50999E-04
   4  Prefactor     1.0974        1.1108       -.13002E-05    .74506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.02352
  Normalizat = 0.768862
  Prefactor  = 1.09742
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8979.426     FROM HESSE     STATUS=FAILED         9 CALLS      745 TOTAL
                     EDM=   .30E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6519        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .49832E-01    1.0645        .44935E-06   -82.601    
   3  Normalizat    .76886        1.0841       -.24792E-05   -1.0123    
   4  Prefactor     1.0974        1.1108       -.13002E-05   -.89549    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.0465e-12
Minuit parameter uncertainties:
  1  4.69421e-06
  2  0.649083
  3  1.11697
  4  1.13558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 8979.42588158
delta logL = -0.0626204745568

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  4.694e-06  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  1.024e+00  6.491e-01  0.000e+00  1.000e+01 (-1.000e+00)
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  1.097e+00  1.136e+00  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  7.689e-01  1.117e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 161.939 72.642

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/31264996/cmap_HighResolution_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2026-07-10 16:15:14.845304', job_id='31264996', GAL2='1.10', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1783725314.85', return_code2='101', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-6.26e-02', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='2182' AND source_name='4FGL J1047.7+7238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 16:15:15 PDT 2026

Working on...
/lscratch/kocevski/31265136/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits.....................!
real 43.59
user 42.13
sys 0.89

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31265136/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits', '/lscratch/kocevski/31265136/ft2_4FGL_J1047.7+7238_daily_bin2182.fits', expMap='/lscratch/kocevski/31265136/expmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits', expCube='/lscratch/kocevski/31265136/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31265136/Model_4FGL_J1047.7+7238_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1047.7+7238'

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.026e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31265136/ft1_filtered_4FGL_J1047.7+7238_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31265136/ft2_4FGL_J1047.7+7238_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31265136/expmap_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31265136/ltcube_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31265136/Model_4FGL_J1047.7+7238_daily_bin2182.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) = 8979.4309667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11007E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .16389E-05   1.0000          .0000       .10000E+07
     3 'norm      '    .17605E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    40.847       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.518       1.0000          .0000       .10000E+07
     6 'norm      '    4.9060       1.0000          .0000       .10000E+07
     7 'norm      '    .78686E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .13238E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .27421E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    8.7417       1.0000          .0000       .10000E+07
    11 'norm      '    3.5695       1.0000          .0000       .10000E+07
    12 'norm      '    1.2537       1.0000          .0000       .10000E+07
    13 'Prefactor '    .54040E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.2417       1.0000          .0000       .10000E+07
    15 'norm      '    3.9277       1.0000          .0000       .10000E+07
    16 'norm      '    6.6888       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.3447       1.0000          .0000       .10000E+07
    18 'Prefactor '    13.992       1.0000          .0000       .10000E+07
    19 'Prefactor '    .85508E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .14512E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .56830E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .51903E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .43757       1.0000          .0000       .10000E+07
    24 'norm      '    .40019E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    4.4028       1.0000          .0000       .10000E+07
    26 'Normalizat'    .76527       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0964       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8979.363     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     2399 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    17.035        .33849E-06** at limit **
   2  Prefactor      .0000        1.7002        .30033E-07** at limit **
   3  norm           .0000        1.5541        .10938E-08** at limit **
   4  Prefactor     40.641        2.0411        .18890E-08   -.95579E-01
   5  Prefactor     10.471        5.2523        .59786E-08   -.56602E-02
   6  norm          4.9057        .95693       -.18398E-07   -.80229E-02
   7  norm           .0000        10.049       -.17303E-06** at limit **
   8  Prefactor     .22204E-09    3.7419        .86328E-07** at limit **
   9  Prefactor     .55511E-09    4.6823        .95878E-07** at limit **
  10  Prefactor     8.7067        9.2863       -.35974E-08    .31494E-02
  11  norm          3.5683        3.2019        .19560E-08   -.24343E-03
  12  norm          1.2526        3.5077        .63373E-07    .10995E-02
  13  Prefactor     .22593E-07    .92619        .30662E-07** at limit **
  14  Prefactor     1.2601        4.4551       -.20075E-07    .89804E-04
  15  norm          3.9254        1.0362        .11231E-07    .28051E-02
  16  norm          6.6902        2.6252       -.37151E-07   -.31207E-02
  17  Prefactor     3.3417        8.0678       -.67984E-07   -.41054E-02
  18  Prefactor     13.928        3.0355        .28362E-08   -.23844E-01
  19  Prefactor      .0000        1.1707       -.24453E-07** at limit **
  20  Prefactor      .0000        3.3940        .72215E-07** at limit **
  21  Prefactor     .19447E-05    11.993        .52874E-10** at limit **
  22  Prefactor     .36415E-07    125.43        .36266E-07** at limit **
  23  norm          .43727        1.6707        .14064E-07    .25589E-03
  24  norm           .0000        .65097       -.34016E-07** at limit **
  25  Prefactor     4.3572        1.5301        .85157E-08   -.21743E-01
  26  Normalizat    .76545        .15684       -.99577E-06    .14719E-04
  27  Prefactor     1.0965        .14309        .13859E-05    .84061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  norm       = 0
  Prefactor  = 40.6411
  Prefactor  = 10.4713
  norm       = 4.9057
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 5.55112e-10
  Prefactor  = 8.70675
  norm       = 3.56826
  norm       = 1.25258
  Prefactor  = 2.2593e-08
  Prefactor  = 1.26013
  norm       = 3.92535
  norm       = 6.69024
  Prefactor  = 3.34169
  Prefactor  = 13.9284
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.94472e-06
  Prefactor  = 3.64153e-08
  norm       = 0.437272
  norm       = 0
  Prefactor  = 4.35717
  Normalizat = 0.765454
  Prefactor  = 1.09653
Done.

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

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.260e+00  4.602e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  1.097e+00  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  7.655e-01  1.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 161.939 72.642
Photon Flux Upper Limit: 8.1674809999e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00623844945165 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31265005/likelihoodResults_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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) = 8978.15036016
delta logL = 1.21290094294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8978.02849558
delta logL = 1.33476551798

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62263E-04   1.0000          .0000       .10000E+07
     2 'Index     '    6.6514       1.0000          .0000       10.000    
     3 'Normalizat'    .69337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8979.426     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      736 TOTAL
                     EDM=   .30E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6519        .42118E-03** at limit **
   2  Index         1.0235        .64413        .44935E-06     .0000    
   3  Normalizat    .76886        1.0841       -.24792E-05    .50999E-04
   4  Prefactor     1.0974        1.1108       -.13002E-05    .74506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.02352
  Normalizat = 0.768862
  Prefactor  = 1.09742
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8979.426     FROM HESSE     STATUS=FAILED         9 CALLS      745 TOTAL
                     EDM=   .30E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6519        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .49832E-01    1.0645        .44935E-06   -82.601    
   3  Normalizat    .76886        1.0841       -.24792E-05   -1.0123    
   4  Prefactor     1.0974        1.1108       -.13002E-05   -.89549    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.0465e-12
Minuit parameter uncertainties:
  1  4.69421e-06
  2  0.649083
  3  1.11697
  4  1.13558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 8979.42588158
delta logL = -0.0626204745568

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  4.694e-06  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  1.024e+00  6.491e-01  0.000e+00  1.000e+01 (-1.000e+00)
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  1.097e+00  1.136e+00  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  7.689e-01  1.117e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 161.939 72.642

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/31265005/cmap_HighResolution_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2026-07-10 16:16:22.059220', job_id='31265005', GAL2='1.10', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1783725382.06', return_code2='101', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-6.26e-02', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='2182' AND source_name='4FGL J1047.7+7238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 16:16:22 PDT 2026

 **********
 **   18 **HESSE 
 **********

 FCN=   8979.363     FROM HESSE     STATUS=OK           542 CALLS     2941 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    17.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.7031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.5227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.641        19.687        .15648E-03   -1.5580    
   5  Prefactor     10.471        12.148        .30870E-03   -1.5643    
   6  norm          4.9057        .96176        .45387E-03   -1.5664    
   7  norm           .0000        10.054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .22204E-09    3.7573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-09    4.7136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.7067        12.052        .33878E-03   -1.5649    
  11  norm          3.5683        3.2079        .53468E-03   -1.5670    
  12  norm          1.2526        3.8700        .99758E-03   -1.5686    
  13  Prefactor     .22593E-07    44.855        .15383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2601        4.6022        .10056E-02   -1.5686    
  15  norm          3.9254        1.0589        .50879E-03   -1.5668    
  16  norm          6.6902        2.6161        .38775E-03   -1.5656    
  17  Prefactor     3.3417        8.8214        .55315E-03   -1.5671    
  18  Prefactor     13.928        12.832        .26751E-03   -1.5633    
  19  Prefactor      .0000        1.1704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        3.4180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .19447E-05    66.727        .15278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .36415E-07    124.32        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .43727        1.7135        .85257E-03   -1.5695    
  24  norm           .0000        .65147        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.3572        54.150        .47972E-03   -1.5666    
  26  Normalizat    .76545        .14078        .64580E-01   -1.0136    
  27  Prefactor     1.0965        .12855        .37725E-01   -.89578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9829e-07
Minuit parameter uncertainties:
  1  0.00013062
  2  6.69744e-06
  3  3.25455e-06
  4  19.6871
  5  12.1476
  6  0.961762
  7  1.91719e-05
  8  5.97312e-05
  9  0.000101426
  10  12.0516
  11  3.2079
  12  3.87
  13  0.00201332
  14  4.60217
  15  1.05886
  16  2.61608
  17  8.82143
  18  12.8324
  19  7.52118e-07
  20  7.31985e-07
  21  0.0227833
  22  0.0042543
  23  1.7135
  24  1.37561e-06
  25  30.721
  26  0.140842
  27  0.128586
Done.

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

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.260e+00  4.602e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  1.097e+00  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  7.655e-01  1.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 161.939 72.642
Photon Flux Upper Limit: 8.1674809999e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00623844945165 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31265136/likelihoodResults_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.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) = 8978.15036016
delta logL = 1.21290094294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8978.02849558
delta logL = 1.33476551798

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62263E-04   1.0000          .0000       .10000E+07
     2 'Index     '    6.6514       1.0000          .0000       10.000    
     3 'Normalizat'    .69337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8979.426     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      736 TOTAL
                     EDM=   .30E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6519        .42118E-03** at limit **
   2  Index         1.0235        .64413        .44935E-06     .0000    
   3  Normalizat    .76886        1.0841       -.24792E-05    .50999E-04
   4  Prefactor     1.0974        1.1108       -.13002E-05    .74506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.02352
  Normalizat = 0.768862
  Prefactor  = 1.09742
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8979.426     FROM HESSE     STATUS=FAILED         9 CALLS      745 TOTAL
                     EDM=   .30E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6519        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .49832E-01    1.0645        .44935E-06   -82.601    
   3  Normalizat    .76886        1.0841       -.24792E-05   -1.0123    
   4  Prefactor     1.0974        1.1108       -.13002E-05   -.89549    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.0465e-12
Minuit parameter uncertainties:
  1  4.69421e-06
  2  0.649083
  3  1.11697
  4  1.13558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 8979.42588158
delta logL = -0.0626204745568

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  4.694e-06  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  1.024e+00  6.491e-01  0.000e+00  1.000e+01 (-1.000e+00)
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  1.097e+00  1.136e+00  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  7.689e-01  1.117e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 161.939 72.642

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/31265136/cmap_HighResolution_804902401_805161601_4FGL_J1047.7+7238_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2026-07-10 16:18:07.168499', job_id='31265136', GAL2='1.10', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1783725487.17', return_code2='101', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-6.26e-02', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='2182' AND source_name='4FGL J1047.7+7238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 16:18:07 PDT 2026

