/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 17186
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0047.9+3947_weekly_bin906
RA = 11.9763, Dec = 39.7975
tmin = 786931201, tmax = 787536001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='17371703', job_status='RUN', time_executed='2025-12-16 00:46:02.353564', time_epoch_executed='1765874762.35' WHERE source_name='4FGL J0047.9+3947' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17371703

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17371703/ft1_4FGL_J0047.9+3947_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17371703/ft2_4FGL_J0047.9+3947_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17371703/ft1_4FGL_J0047.9+3947_weekly_bin906.fits outfile=/lscratch/kocevski/17371703/ft1_filteredMKT_4FGL_J0047.9+3947_weekly_bin906.fits ra=11.9763 dec=39.7975 rad=12.0 tmin=786931201.0 tmax=787536001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.64
user 5.51
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17371703/ft2_4FGL_J0047.9+3947_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17371703/ft2_4FGL_J0047.9+3947_weekly_bin906.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/17371703/ft1_filteredMKT_4FGL_J0047.9+3947_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17371703/ft1_filtered_4FGL_J0047.9+3947_weekly_bin906.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.11
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1962

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17371703/ft1_filtered_4FGL_J0047.9+3947_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17371703/ft2_4FGL_J0047.9+3947_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17371703/ltcube_786931201_787536001_4FGL_J0047.9+3947_weekly_bin906.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/17371703/ft2_4FGL_J0047.9+3947_weekly_bin906.fits
.....................!
real 20.02
user 18.62
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17371703/ft1_filtered_4FGL_J0047.9+3947_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17371703/ft2_4FGL_J0047.9+3947_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17371703/ltcube_786931201_787536001_4FGL_J0047.9+3947_weekly_bin906.fits outfile=/lscratch/kocevski/17371703/expmap_786931201_787536001_4FGL_J0047.9+3947_weekly_bin906.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/17371703/ltcube_786931201_787536001_4FGL_J0047.9+3947_weekly_bin906.fits
.....................!
real 74.71
user 69.06
sys 4.19

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

Setting source of interest to:
4FGL J0047.9+3947 @ 11.9763 39.7975

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17371703/ft1_filtered_4FGL_J0047.9+3947_weekly_bin906.fits scfile=/lscratch/kocevski/17371703/ft2_4FGL_J0047.9+3947_weekly_bin906.fits outfile=/lscratch/kocevski/17371703/cmap_786931201_787536001_4FGL_J0047.9+3947_weekly_bin906.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=11.9763 yref=39.7975 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.97
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17371703/ft1_filtered_4FGL_J0047.9+3947_weekly_bin906.fits scfile=/lscratch/kocevski/17371703/ft2_4FGL_J0047.9+3947_weekly_bin906.fits outfile=/lscratch/kocevski/17371703/cmap_HighResolution_786931201_787536001_4FGL_J0047.9+3947_weekly_bin906.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=11.9763 yref=39.7975 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 1.11
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17371703/ft1_filtered_4FGL_J0047.9+3947_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17371703/ft2_4FGL_J0047.9+3947_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17371703/Model_4FGL_J0047.9+3947_weekly_bin906.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17371703/ft1_filtered_4FGL_J0047.9+3947_weekly_bin906.fits.....................!
real 82.46
user 80.02
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17371703/ft1_filtered_4FGL_J0047.9+3947_weekly_bin906.fits', '/lscratch/kocevski/17371703/ft2_4FGL_J0047.9+3947_weekly_bin906.fits', expMap='/lscratch/kocevski/17371703/expmap_786931201_787536001_4FGL_J0047.9+3947_weekly_bin906.fits', expCube='/lscratch/kocevski/17371703/ltcube_786931201_787536001_4FGL_J0047.9+3947_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17371703/Model_4FGL_J0047.9+3947_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0047.9+3947'

4FGL J0047.9+3947
   Spectrum: PowerLaw
158    Prefactor:  1.715e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
159        Index:  1.981e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
160        Scale:  2.140e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17371703/ft1_filtered_4FGL_J0047.9+3947_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17371703/ft2_4FGL_J0047.9+3947_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17371703/expmap_786931201_787536001_4FGL_J0047.9+3947_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17371703/ltcube_786931201_787536001_4FGL_J0047.9+3947_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17371703/Model_4FGL_J0047.9+3947_weekly_bin906.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7923       1.0000          .0000       .10000E+07
     2 'norm      '    .96844E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .51953E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.9306       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.0439       1.0000          .0000       .10000E+07
     6 'Prefactor '    .69033E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .65520E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    5.5056       1.0000          .0000       .10000E+07
     9 'norm      '    6.1512       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.1747       1.0000          .0000       .10000E+07
    11 'Prefactor '    .29994E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .65503E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    .21175E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .55461E-06   1.0000          .0000       .10000E+07
    15 'norm      '    2.6838       1.0000          .0000       .10000E+07
    16 'Prefactor '    29.264       1.0000          .0000       .10000E+07
    17 'norm      '    1.4098       1.0000          .0000       .10000E+07
    18 'norm      '    .88818E-09   1.0000          .0000       .10000E+07
    19 'Prefactor '    3.4012       1.0000          .0000       .10000E+07
    20 'Prefactor '    .20719E-04   1.0000          .0000       .10000E+07
    21 'Normalizat'    .95056       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95558       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20741.08     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     1785 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7892        7.0061        .13190E-05    .51716E-01
   2  norm          .50859E-06    3.3656        .72420E-06** at limit **
   3  Prefactor     .39446E-06    5.7242        .47532E-06** at limit **
   4  Prefactor     6.9296        4.1431        .10127E-06   -.13761E-02
   5  Prefactor     1.0464        1.2841       -.16553E-06    .52509E-02
   6  Prefactor     .12346E-06    8.6273        .13991E-06** at limit **
   7  Prefactor     .76716E-07    7.5854        .31407E-06** at limit **
   8  Prefactor     5.3119        2.0527       -.22306E-07   -.10083E-01
   9  norm          6.1510        1.7526        .36294E-07   -.72470E-02
  10  Prefactor     3.1754        2.8770       -.16728E-06    .55221E-02
  11  Prefactor     .34972E-08    5.8281        .65527E-06** at limit **
  12  Prefactor      .0000        .95399        .27094E-06** at limit **
  13  Prefactor     .12940E-06    6.2308       -.14153E-05** at limit **
  14  norm           .0000        .87408       -.25039E-08** at limit **
  15  norm          2.6843        1.5694       -.20593E-06    .29786E-02
  16  Prefactor     29.148        11.440        .56660E-06   -.16340    
  17  norm          1.4098        .64162        .29303E-07    .34789E-02
  18  norm           .0000        .41438       -.12533E-06** at limit **
  19  Prefactor     4.1758        61.774        .89536E-05   -.33645E-02
  20  Prefactor     .99920E-09    3.2207       -.96691E-06** at limit **
  21  Normalizat    .95062        .12696        .51119E-07    .79439E-04
  22  Prefactor     .95551        .67879E-01    .67761E-06    .44939E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.78919
  norm       = 5.08593e-07
  Prefactor  = 3.94462e-07
  Prefactor  = 6.92958
  Prefactor  = 1.04638
  Prefactor  = 1.23457e-07
  Prefactor  = 7.67164e-08
  Prefactor  = 5.31186
  norm       = 6.151
  Prefactor  = 3.17543
  Prefactor  = 3.4972e-09
  Prefactor  = 0
  Prefactor  = 1.29396e-07
  norm       = 0
  norm       = 2.68434
  Prefactor  = 29.1483
  norm       = 1.40976
  norm       = 0
  Prefactor  = 4.17576
  Prefactor  = 9.99201e-10
  Normalizat = 0.950621
  Prefactor  = 0.955511
 **********
 **   18 **HESSE 
 **********

 FCN=   20741.08     FROM HESSE     STATUS=OK           404 CALLS     2189 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7892        12.767        .45934E-03   -1.5664    
   2  norm          .50859E-06    4.5769        .10128E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .39446E-06    8.7926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.9296        4.1325        .38085E-03   -1.5655    
   5  Prefactor     1.0464        1.2883        .12202E-03   -1.5688    
   6  Prefactor     .12346E-06    8.8317        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .76716E-07    12.856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3119        14.058        .42797E-03   -1.5662    
   9  norm          6.1510        1.7541        .40455E-03   -1.5658    
  10  Prefactor     3.1754        2.8858        .56852E-03   -1.5672    
  11  Prefactor     .34972E-08    13.429        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        .94765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12940E-06    7.9677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .23979        .23999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6843        1.5706        .62171E-03   -1.5675    
  16  Prefactor     29.148        21.085        .18489E-03   -1.5600    
  17  norm          1.4098        .63860        .91218E-03   -1.5684    
  18  norm           .0000        .19863        .22649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.1758        72.510        .54832E-03   -1.5667    
  20  Prefactor     .99920E-09    3.1905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .95062        .11042        .70685E-01   -.94704    
  22  Prefactor     .95551        .58182E-01    .45709E-01   -.94227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04454e-07
Minuit parameter uncertainties:
  1  12.767
  2  0.00305137
  3  0.00372482
  4  4.13255
  5  1.28834
  6  0.00208827
  7  0.00198635
  8  14.0584
  9  1.75413
  10  2.88584
  11  0.000432223
  12  3.23097e-06
  13  0.00203079
  14  5.03924e-07
  15  1.57056
  16  21.0847
  17  0.638605
  18  2.27287e-06
  19  34.8019
  20  0.000113421
  21  0.11045
  22  0.0581856
Done.

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

Extracting fit parameters...

4FGL J0047.9+3947
   Spectrum: PowerLaw
158    Prefactor:  3.175e+00  2.886e+00  0.000e+00  1.000e+06 ( 1.000e-13)
159        Index:  1.981e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
160        Scale:  2.140e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  9.555e-01  5.819e-02  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  9.506e-01  1.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.94
Ra Dec: 11.976 39.797
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 1.40e-08 +/- 1.27e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 9.21e-06

TS (Fixed Index): 1.94
Ra Dec: 11.976 39.797
Photon Flux Upper Limit: 4.26282009858e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00319199923086 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17371703/likelihoodResults_786931201_787536001_4FGL_J0047.9+3947_weekly_bin906.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) = 20740.6207221
delta logL = 0.458122063312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20740.61335
delta logL = 0.465494161137

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20740.61     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      265 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7903        20.738        .78144E-03    .28477E-01
   2  Index         2.5150        2.1631        .13055        .42287E-03
   3  Normalizat    .93505        .33759E-01    .71206E-01    .62078E-04
   4  Prefactor     .95972        .17053E-01    .45762E-01    .28311E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.79028
  Index      = 2.51502
  Normalizat = 0.935047
  Prefactor  = 0.959725
 **********
 **   18 **HESSE 
 **********

 FCN=   20740.61     FROM HESSE     STATUS=OK            31 CALLS      296 TOTAL
                     EDM=   .89E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7903        3.1972        .13362E-04   -1.5681    
   2  Index         2.5150        .81306        .76472E-02   -.52013    
   3  Normalizat    .93505        .12656        .31505E-03   -.95239    
   4  Prefactor     .95972        .67450E-01    .16705E-03   -.94084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92943e-08
Minuit parameter uncertainties:
  1  3.19723
  2  0.817893
  3  0.126597
  4  0.0674554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20740.61335
delta logL = 0.465494162396

Extracting fit parameters...

4FGL J0047.9+3947
   Spectrum: PowerLaw
158    Prefactor:  1.790e+00  3.197e+00  0.000e+00  1.000e+06 ( 1.000e-13)
159        Index:  2.515e+00  8.179e-01  0.000e+00  1.000e+01 (-1.000e+00)
160        Scale:  2.140e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  9.597e-01  6.746e-02  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  9.350e-01  1.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 11.976 39.797
Photon Index (Free Index): 2.52 +/- 0.82
Photon Flux (Free Index): 2.62e-08 +/- 2.08e-08
Energy Flux (Free Index): 7.50e-06 +/- 6.79e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/17371703/cmap_HighResolution_786931201_787536001_4FGL_J0047.9+3947_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-03', comment='SUCCESS', photon_flux='1.40e-08', energy_flux2='7.50e-06', photon_flux_error='1.27e-08', dlogl='4.65e-01', energy_flux='1.01e-05', photon_flux2='2.62e-08', job_status='DONE', time_completed='2025-12-16 01:02:16.525524', photon_index_error2='0.82', photon_index2='2.52', ts='1.94', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='4.26e-08', energy_flux_error2='6.79e-06', EG='0.95', time_epoch_completed='1765875736.53', return_code='0', job_id='17371703', GAL2='0.96', EG2='0.94', return_code2='0', energy_flux_error='9.21e-06', photon_flux_error2='2.08e-08', ts2='2.89', photon_index='1.98' WHERE bin_id='906' AND source_name='4FGL J0047.9+3947' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:02:16 PST 2025

