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


Performing analysis on: 4FGL_J2147.1+0931_daily_bin2114
RA = 326.783, Dec = 9.5181
tmin = 787276801, tmax = 787536001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

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

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='17378787', job_status='RUN', time_executed='2025-12-16 02:22:53.266073', time_epoch_executed='1765880573.27' WHERE source_name='4FGL J2147.1+0931' and cadence='daily' and bin_id='2114'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17378787

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17378787/ft1_4FGL_J2147.1+0931_daily_bin2114.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17378787/ft2_4FGL_J2147.1+0931_daily_bin2114.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17378787/ft1_4FGL_J2147.1+0931_daily_bin2114.fits outfile=/lscratch/kocevski/17378787/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin2114.fits ra=326.783 dec=9.5181 rad=12.0 tmin=787276801.0 tmax=787536001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.62
user 1.92
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17378787/ft2_4FGL_J2147.1+0931_daily_bin2114.fits

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

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

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

Number of photons that the gtmktime cut: 642

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17378787/ft1_filtered_4FGL_J2147.1+0931_daily_bin2114.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17378787/ft2_4FGL_J2147.1+0931_daily_bin2114.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17378787/ltcube_787276801_787536001_4FGL_J2147.1+0931_daily_bin2114.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/17378787/ft2_4FGL_J2147.1+0931_daily_bin2114.fits
.....................!
real 8.86
user 8.05
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17378787/ft1_filtered_4FGL_J2147.1+0931_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378787/ft2_4FGL_J2147.1+0931_daily_bin2114.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17378787/ltcube_787276801_787536001_4FGL_J2147.1+0931_daily_bin2114.fits outfile=/lscratch/kocevski/17378787/expmap_787276801_787536001_4FGL_J2147.1+0931_daily_bin2114.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/17378787/ltcube_787276801_787536001_4FGL_J2147.1+0931_daily_bin2114.fits
.....................!
real 71.28
user 66.55
sys 3.78

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

Setting source of interest to:
4FGL J2147.1+0931 @ 326.783 9.5181

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17378787/ft1_filtered_4FGL_J2147.1+0931_daily_bin2114.fits scfile=/lscratch/kocevski/17378787/ft2_4FGL_J2147.1+0931_daily_bin2114.fits outfile=/lscratch/kocevski/17378787/cmap_787276801_787536001_4FGL_J2147.1+0931_daily_bin2114.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=326.783 yref=9.5181 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.82
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17378787/ft1_filtered_4FGL_J2147.1+0931_daily_bin2114.fits scfile=/lscratch/kocevski/17378787/ft2_4FGL_J2147.1+0931_daily_bin2114.fits outfile=/lscratch/kocevski/17378787/cmap_HighResolution_787276801_787536001_4FGL_J2147.1+0931_daily_bin2114.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=326.783 yref=9.5181 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.88
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17378787/ft1_filtered_4FGL_J2147.1+0931_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378787/ft2_4FGL_J2147.1+0931_daily_bin2114.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17378787/Model_4FGL_J2147.1+0931_daily_bin2114.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17378787/ft1_filtered_4FGL_J2147.1+0931_daily_bin2114.fits.....................!
real 27.25
user 25.71
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17378787/ft1_filtered_4FGL_J2147.1+0931_daily_bin2114.fits', '/lscratch/kocevski/17378787/ft2_4FGL_J2147.1+0931_daily_bin2114.fits', expMap='/lscratch/kocevski/17378787/expmap_787276801_787536001_4FGL_J2147.1+0931_daily_bin2114.fits', expCube='/lscratch/kocevski/17378787/ltcube_787276801_787536001_4FGL_J2147.1+0931_daily_bin2114.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17378787/Model_4FGL_J2147.1+0931_daily_bin2114.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2147.1+0931'

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  2.902e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
298        alpha:  2.432e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  9.991e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  4.060e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17378787/ft1_filtered_4FGL_J2147.1+0931_daily_bin2114.fits
Spacecraft file(s): /lscratch/kocevski/17378787/ft2_4FGL_J2147.1+0931_daily_bin2114.fits
Exposure map: /lscratch/kocevski/17378787/expmap_787276801_787536001_4FGL_J2147.1+0931_daily_bin2114.fits
Exposure cube: /lscratch/kocevski/17378787/ltcube_787276801_787536001_4FGL_J2147.1+0931_daily_bin2114.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17378787/Model_4FGL_J2147.1+0931_daily_bin2114.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10728E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    29.461       1.0000          .0000       .10000E+07
     3 'Prefactor '    .64978E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    19.816       1.0000          .0000       .10000E+07
     5 'norm      '    2.5864       1.0000          .0000       .10000E+07
     6 'Prefactor '    .46944E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .98688       1.0000          .0000       .10000E+07
     8 'Prefactor '    .54956E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.6117       1.0000          .0000       .10000E+07
    10 'Prefactor '    155.96       1.0000          .0000       .10000E+07
    11 'norm      '    3.2611       1.0000          .0000       .10000E+07
    12 'Prefactor '    .13492       1.0000          .0000       .10000E+07
    13 'norm      '    2.4303       1.0000          .0000       .10000E+07
    14 'norm      '    .16508E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    7.5813       1.0000          .0000       .10000E+07
    16 'Prefactor '    .15888E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    20.348       1.0000          .0000       .10000E+07
    18 'norm      '    .33029E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .47323E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    29.049       1.0000          .0000       .10000E+07
    21 'norm      '    .10883E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    9.0895       1.0000          .0000       .10000E+07
    23 'Prefactor '    1.0713       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .46154       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0468       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6850.083     FROM MIGRAD    STATUS=CONVERGED    222 CALLS     2390 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15155E-07    189.13        .24650E-06** at limit **
   2  Prefactor     28.989        10.078       -.46586E-07    .44165E-01
   3  Prefactor     .21094E-08    12.891       -.34910E-06** at limit **
   4  Prefactor     19.979        27.652        .24774E-06   -.15509E-01
   5  norm          2.5836        4.1749       -.14774E-07    .33152E-03
   6  Prefactor      .0000        6.7321       -.67573E-06** at limit **
   7  Prefactor     .99909        6.4977       -.16548E-07    .36851E-02
   8  Prefactor      .0000        1.0084       -.13676E-07** at limit **
   9  Prefactor     9.8579        27.897        .37425E-06    .11454E-02
  10  Prefactor     160.65        120.52        .48805E-06   -.12483E-02
  11  norm          3.2510        2.0836       -.15511E-06   -.81878E-04
  12  Prefactor     .49960E-09    88.195       -.16327E-05** at limit **
  13  norm          2.4337        2.3871        .22148E-07    .25013E-03
  14  norm          .27756E-08    20.854       -.15292E-08** at limit **
  15  Prefactor     7.6071        8.8563        .41341E-06    .13828E-02
  16  Prefactor     .55511E-10    14.277        .62924E-06** at limit **
  17  Prefactor     20.724        14.672       -.11991E-06    .16949E-01
  18  norm           .0000        1.0666       -.69489E-07** at limit **
  19  Prefactor     .18874E-08    30.313       -.10200E-05** at limit **
  20  Prefactor     29.033        18.876        .19307E-06    .16444E-01
  21  norm          .23870E-08    10.493        .65758E-06** at limit **
  22  Prefactor     9.1812        7.2219        .29118E-07    .37755E-01
  23  Prefactor     1.0710        .26982       -.29175E-06   -.12251E-03
  24  Prefactor     .10000E-03    3.8940        .22897E-05** at limit **
  25  Normalizat    .46083        .26987       -.52881E-05   -.14283E-06
  26  Prefactor     1.0467        .12865        .39444E-05    .64813E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.51545e-08
  Prefactor  = 28.989
  Prefactor  = 2.10942e-09
  Prefactor  = 19.9792
  norm       = 2.58362
  Prefactor  = 0
  Prefactor  = 0.999085
  Prefactor  = 0
  Prefactor  = 9.85787
  Prefactor  = 160.655
  norm       = 3.25096
  Prefactor  = 4.996e-10
  norm       = 2.43371
  norm       = 2.77556e-09
  Prefactor  = 7.60709
  Prefactor  = 5.55112e-11
  Prefactor  = 20.7237
  norm       = 0
  Prefactor  = 1.88738e-09
  Prefactor  = 29.0327
  norm       = 2.38698e-09
  Prefactor  = 9.18122
  Prefactor  = 1.07103
  Prefactor  = 0.0001
  Normalizat = 0.460831
  Prefactor  = 1.04673
 **********
 **   18 **HESSE 
 **********

 FCN=   6850.083     FROM HESSE     STATUS=OK           524 CALLS     2914 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15155E-07    14.768        .69500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.989        23.520        .18427E-03   -1.5600    
   3  Prefactor     .21094E-08    12.931        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.979        43.493        .22472E-03   -1.5619    
   5  norm          2.5836        4.1956        .63426E-03   -1.5676    
   6  Prefactor      .0000        6.7201        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .99909        6.8041        .43301E-03   -1.5688    
   8  Prefactor      .0000        1.0091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.8579        43.815        .32299E-03   -1.5645    
  10  Prefactor     160.65        120.55        .80082E-04   -1.5454    
  11  norm          3.2510        2.1013        .56055E-03   -1.5672    
  12  Prefactor     .49960E-09    87.433        .13073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4337        2.4292        .65615E-03   -1.5677    
  14  norm          .27756E-08    20.894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.6071        8.9530        .36398E-03   -1.5653    
  16  Prefactor     .55511E-10    14.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.724        16.454        .22175E-03   -1.5617    
  18  norm           .0000        .52172        .19212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .18874E-08    30.313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.033        20.580        .18557E-03   -1.5600    
  21  norm          .23870E-08    10.453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.1812        15.801        .33219E-03   -1.5647    
  23  Prefactor     1.0710        .28128        .46079E-02   -1.5501    
  24  Prefactor     .10000E-03    3.8807        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .46083        .27296        .10189       -1.1427    
  26  Prefactor     1.0467        .11980        .40101E-01   -.91188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20186e-07
Minuit parameter uncertainties:
  1  0.000946066
  2  23.5203
  3  0.000331667
  4  43.4937
  5  4.19564
  6  7.89568e-06
  7  5.21457
  8  5.24167e-07
  9  41.5662
  10  120.55
  11  2.1013
  12  0.000407436
  13  2.42916
  14  0.000483718
  15  8.95304
  16  6.58611e-05
  17  16.454
  18  1.4823e-07
  19  0.000480273
  20  20.5799
  21  0.000317592
  22  15.8013
  23  0.281282
  24  3.20909e-08
  25  0.273759
  26  0.119834
Done.

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

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  2.434e+00  2.429e+00  0.000e+00  1.000e+06 ( 1.000e-11)
298        alpha:  2.432e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  9.991e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  4.060e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  1.047e+00  1.198e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  4.608e-01  2.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 326.783 9.518
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.67e-08 +/- 4.66e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.31e-05

TS (Fixed Index): 1.36
Ra Dec: 326.783 9.518
Photon Flux Upper Limit: 1.40015364799e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.94051282643e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17378787/likelihoodResults_787276801_787536001_4FGL_J2147.1+0931_daily_bin2114.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6849.93509949
delta logL = 0.147719337122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6849.91277293
delta logL = 0.170045896637

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6849.913     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0506        41.436        .72124E-03    .87866E-02
   2  alpha         3.0854        2.7939        .42672        .26413E-04
   3  Normalizat    .42067        .70890E-01    .10653        .66822E-03
   4  Prefactor     1.0613        .37148E-01    .39290E-01    .19835E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 2.05057
  alpha      = 3.08544
  Normalizat = 0.42067
  Prefactor  = 1.06132
 **********
 **   18 **HESSE 
 **********

 FCN=   6849.913     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0506        3.2289        .94556E-05   -1.5679    
   2  alpha         3.0854        1.5543        .24809E-01    .23637    
   3  Normalizat    .42067        .26413        .47198E-03   -1.1625    
   4  Prefactor     1.0613        .13159        .15476E-03   -.90712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01494e-08
Minuit parameter uncertainties:
  1  3.22894
  2  1.68637
  3  0.264916
  4  0.131631
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) = 6849.91277259
delta logL = 0.170046233459

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  2.051e+00  3.229e+00  0.000e+00  1.000e+06 ( 1.000e-11)
298        alpha:  3.085e+00  1.686e+00  0.000e+00  5.000e+00 ( 1.000e+00)
299         beta:  9.991e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  4.060e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  1.061e+00  1.316e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  4.207e-01  2.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.77
Ra Dec: 326.783 9.518
Photon Index (Free Index): 3.09 +/- 1.69
Photon Flux (Free Index): 6.68e-08 +/- 5.92e-08
Energy Flux (Free Index): 1.29e-05 +/- 1.26e-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/17378787/cmap_HighResolution_787276801_787536001_4FGL_J2147.1+0931_daily_bin2114.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-05', comment='SUCCESS', photon_flux='4.67e-08', energy_flux2='1.29e-05', photon_flux_error='4.66e-08', dlogl='1.70e-01', energy_flux='1.32e-05', photon_flux2='6.68e-08', job_status='DONE', time_completed='2025-12-16 02:30:03.615541', photon_index_error2='1.69', photon_index2='3.09', ts='1.36', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.26e-05', EG='0.46', time_epoch_completed='1765881003.62', return_code='0', job_id='17378787', GAL2='1.06', EG2='0.42', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='5.92e-08', ts2='1.77', photon_index='2.43' WHERE bin_id='2114' AND source_name='4FGL J2147.1+0931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:30:04 PST 2025

