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


Performing analysis on: 4FGL_J2347.0+5141_weekly_bin906
RA = 356.766, Dec = 51.6966
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='17382356', job_status='RUN', time_executed='2025-12-16 03:30:02.272567', time_epoch_executed='1765884602.27' WHERE source_name='4FGL J2347.0+5141' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17382356

Creating custom pfile directory:
/lscratch/kocevski/17382356/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/17382356/ft1_4FGL_J2347.0+5141_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/17382356/ft2_4FGL_J2347.0+5141_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17382356/ft1_4FGL_J2347.0+5141_weekly_bin906.fits outfile=/lscratch/kocevski/17382356/ft1_filteredMKT_4FGL_J2347.0+5141_weekly_bin906.fits ra=356.766 dec=51.6966 rad=12.0 tmin=786931201.0 tmax=787536001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.94
user 5.40
sys 0.28

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17382356/ft2_4FGL_J2347.0+5141_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17382356/ft2_4FGL_J2347.0+5141_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/17382356/ft1_filteredMKT_4FGL_J2347.0+5141_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17382356/ft1_filtered_4FGL_J2347.0+5141_weekly_bin906.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 4919

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17382356/ft1_filtered_4FGL_J2347.0+5141_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17382356/ft2_4FGL_J2347.0+5141_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17382356/ltcube_786931201_787536001_4FGL_J2347.0+5141_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/17382356/ft2_4FGL_J2347.0+5141_weekly_bin906.fits
.....................!
real 18.98
user 18.50
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17382356/ft1_filtered_4FGL_J2347.0+5141_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17382356/ft2_4FGL_J2347.0+5141_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17382356/ltcube_786931201_787536001_4FGL_J2347.0+5141_weekly_bin906.fits outfile=/lscratch/kocevski/17382356/expmap_786931201_787536001_4FGL_J2347.0+5141_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/17382356/ltcube_786931201_787536001_4FGL_J2347.0+5141_weekly_bin906.fits
.....................!
real 72.89
user 68.18
sys 4.23

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Added 195 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2347.0+5141 @ 356.766 51.6966

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17382356/ft1_filtered_4FGL_J2347.0+5141_weekly_bin906.fits scfile=/lscratch/kocevski/17382356/ft2_4FGL_J2347.0+5141_weekly_bin906.fits outfile=/lscratch/kocevski/17382356/cmap_786931201_787536001_4FGL_J2347.0+5141_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=356.766 yref=51.6966 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.59
user 0.25
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17382356/ft1_filtered_4FGL_J2347.0+5141_weekly_bin906.fits scfile=/lscratch/kocevski/17382356/ft2_4FGL_J2347.0+5141_weekly_bin906.fits outfile=/lscratch/kocevski/17382356/cmap_HighResolution_786931201_787536001_4FGL_J2347.0+5141_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=356.766 yref=51.6966 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.54
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17382356/ft1_filtered_4FGL_J2347.0+5141_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17382356/ft2_4FGL_J2347.0+5141_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17382356/Model_4FGL_J2347.0+5141_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 CTB 109
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/17382356/ft1_filtered_4FGL_J2347.0+5141_weekly_bin906.fits.....................!
real 262.44
user 259.94
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17382356/ft1_filtered_4FGL_J2347.0+5141_weekly_bin906.fits', '/lscratch/kocevski/17382356/ft2_4FGL_J2347.0+5141_weekly_bin906.fits', expMap='/lscratch/kocevski/17382356/expmap_786931201_787536001_4FGL_J2347.0+5141_weekly_bin906.fits', expCube='/lscratch/kocevski/17382356/ltcube_786931201_787536001_4FGL_J2347.0+5141_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17382356/Model_4FGL_J2347.0+5141_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2347.0+5141'

4FGL J2347.0+5141
   Spectrum: LogParabola
615         norm:  7.273e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
616        alpha:  1.746e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
617         beta:  3.654e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
618           Eb:  1.935e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17382356/ft1_filtered_4FGL_J2347.0+5141_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17382356/ft2_4FGL_J2347.0+5141_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17382356/expmap_786931201_787536001_4FGL_J2347.0+5141_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17382356/ltcube_786931201_787536001_4FGL_J2347.0+5141_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17382356/Model_4FGL_J2347.0+5141_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) = 47509.7807671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14920E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .16653E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    .89734       1.0000          .0000       .10000E+07
     4 'Prefactor '    .31586E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    78.790       1.0000          .0000       .10000E+07
     6 'norm      '    2.3638       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.5963       1.0000          .0000       .10000E+07
     8 'norm      '    .87371E-03   1.0000          .0000       .10000E+07
     9 'norm      '    3.8442       1.0000          .0000       .10000E+07
    10 'Prefactor '    .10506E-01   1.0000          .0000       .10000E+07
    11 'norm      '    .75103       1.0000          .0000       .10000E+07
    12 'norm      '    11.160       1.0000          .0000       .10000E+07
    13 'Prefactor '    33.053       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.0737       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .93813       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   47509.72     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      863 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39461E-05    3.2340       -.24381E-05** at limit **
   2  norm           .0000        .29374        .54308E-07** at limit **
   3  Prefactor     .89790        1.2552       -.28645E-06    .12073E-02
   4  Prefactor     .12212E-08    6.7649       -.15809E-05** at limit **
   5  Prefactor     77.476        23.382       -.72937E-06   -.18399E-01
   6  norm          2.3696        2.1729       -.38974E-06   -.48893E-02
   7  Prefactor     6.8732        8.2752       -.11568E-05    .12740E-01
   8  norm          .23176E-06    167.54       -.19453E-04** at limit **
   9  norm          3.8718        11.713       -.10248E-05    .56097E-04
  10  Prefactor     .44409E-09    11.351       -.35095E-05** at limit **
  11  norm          .73871        3.5765       -.23758E-05   -.82662E-02
  12  norm          11.108        6.1577        .34384E-06    .10233E-02
  13  Prefactor     30.853        26.772       -.16707E-05   -.22389E-02
  14  Normalizat    1.0760        .12453       -.83099E-05    .40009E-03
  15  Prefactor     .93812        .23314E-01   -.12002E-05    .26830E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.94612e-06
  norm       = 0
  Prefactor  = 0.897904
  Prefactor  = 1.22125e-09
  Prefactor  = 77.4761
  norm       = 2.36963
  Prefactor  = 6.87319
  norm       = 2.31759e-07
  norm       = 3.87176
  Prefactor  = 4.44089e-10
  norm       = 0.738714
  norm       = 11.108
  Prefactor  = 30.8527
  Normalizat = 1.07602
  Prefactor  = 0.93812
 **********
 **   18 **HESSE 
 **********

 FCN=   47509.72     FROM HESSE     STATUS=OK           228 CALLS     1091 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39461E-05    3.5224        .17397E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .29386        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .89790        1.2665        .45944E-03   -1.5689    
   4  Prefactor     .12212E-08    6.7887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     77.476        24.748        .11267E-03   -1.5532    
   6  norm          2.3696        2.1816        .66625E-03   -1.5677    
   7  Prefactor     6.8732        24.147        .36362E-03   -1.5656    
   8  norm          .23176E-06    3.4324        .10149E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.8718        11.730        .51448E-03   -1.5669    
  10  Prefactor     .44409E-09    11.440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .73871        3.5579        .56659E-03   -1.5691    
  12  norm          11.108        6.1874        .29964E-03   -1.5641    
  13  Prefactor     30.853        27.058        .17396E-03   -1.5597    
  14  Normalizat    1.0760        .12438        .13511       -.90526    
  15  Prefactor     .93812        .22673E-01    .27329E-01   -.94822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73783e-07
Minuit parameter uncertainties:
  1  0.00745645
  2  4.35548e-08
  3  1.26647
  4  0.000183572
  5  24.7483
  6  2.18157
  7  24.1471
  8  0.00178383
  9  11.7297
  10  0.000140107
  11  3.24238
  12  6.18736
  13  27.0586
  14  0.124409
  15  0.0226735
Done.

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

Extracting fit parameters...

4FGL J2347.0+5141
   Spectrum: LogParabola
615         norm:  1.111e+01  6.187e+00  0.000e+00  1.000e+06 ( 1.000e-13)
616        alpha:  1.746e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
617         beta:  3.654e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
618           Eb:  1.935e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  9.381e-01  2.267e-02  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  1.076e+00  1.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.46
Ra Dec: 356.766 51.697
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 2.25e-08 +/- 1.25e-08
Energy Flux (Fixed Index): 3.05e-05 +/- 1.70e-05

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) = 47509.1844357
delta logL = 0.530948835403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 47509.1558899
delta logL = 0.559494650654

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   47509.16     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      231 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.511        60.667        .30879E-03    .26558E-01
   2  alpha         2.1943        1.9314        .29586        .37501E-03
   3  Normalizat    1.0538        .75433E-01    .13630        .16930E-03
   4  Prefactor     .93871        .97722E-02    .27318E-01   -.78016E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.5113
  alpha      = 2.19432
  Normalizat = 1.05382
  Prefactor  = 0.938711
 **********
 **   18 **HESSE 
 **********

 FCN=   47509.16     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.511        6.1716        .12352E-04   -1.5643    
   2  alpha         2.1943        .42243        .17627E-01   -.12258    
   3  Normalizat    1.0538        .12351        .60538E-03   -.91248    
   4  Prefactor     .93871        .23032E-01    .12073E-03   -.94801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31464e-08
Minuit parameter uncertainties:
  1  6.17157
  2  0.424496
  3  0.123547
  4  0.0230325
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) = 47509.1558899
delta logL = 0.55949465197

Extracting fit parameters...

4FGL J2347.0+5141
   Spectrum: LogParabola
615         norm:  1.051e+01  6.172e+00  0.000e+00  1.000e+06 ( 1.000e-13)
616        alpha:  2.194e+00  4.245e-01  0.000e+00  5.000e+00 ( 1.000e+00)
617         beta:  3.654e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
618           Eb:  1.935e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  9.387e-01  2.303e-02  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  1.054e+00  1.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.65
Ra Dec: 356.766 51.697
Photon Index (Free Index): 2.19 +/- 0.42
Photon Flux (Free Index): 4.86e-08 +/- 3.29e-08
Energy Flux (Free Index): 2.34e-05 +/- 1.21e-05

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/17382356/cmap_HighResolution_786931201_787536001_4FGL_J2347.0+5141_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.25e-08', energy_flux2='2.34e-05', photon_flux_error='1.25e-08', dlogl='5.59e-01', energy_flux='3.05e-05', photon_flux2='4.86e-08', job_status='DONE', time_completed='2025-12-16 03:49:31.299232', photon_index_error2='0.42', photon_index2='2.19', ts='9.46', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='1.08', time_epoch_completed='1765885771.3', return_code='0', job_id='17382356', GAL2='0.94', EG2='1.05', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='3.29e-08', ts2='10.65', photon_index='1.75' WHERE bin_id='906' AND source_name='4FGL J2347.0+5141' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:49:31 PST 2025

