/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_J2147.1+0931_weekly_bin906
RA = 326.783, Dec = 9.5181
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='17381084', job_status='RUN', time_executed='2025-12-16 03:14:59.660261', time_epoch_executed='1765883699.66' WHERE source_name='4FGL J2147.1+0931' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17381084

Creating custom pfile directory:
/lscratch/kocevski/17381084/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/17381084/ft1_4FGL_J2147.1+0931_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/17381084/ft2_4FGL_J2147.1+0931_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17381084/ft1_4FGL_J2147.1+0931_weekly_bin906.fits outfile=/lscratch/kocevski/17381084/ft1_filteredMKT_4FGL_J2147.1+0931_weekly_bin906.fits ra=326.783 dec=9.5181 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.13
user 5.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17381084/ft2_4FGL_J2147.1+0931_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/17381084/ft1_filteredMKT_4FGL_J2147.1+0931_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17381084/ft1_filtered_4FGL_J2147.1+0931_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.14
user 0.22
sys 0.12

Number of photons that the gtmktime cut: 1606

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17381084/ft1_filtered_4FGL_J2147.1+0931_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17381084/ft2_4FGL_J2147.1+0931_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17381084/ltcube_786931201_787536001_4FGL_J2147.1+0931_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/17381084/ft2_4FGL_J2147.1+0931_weekly_bin906.fits
.....................!
real 24.46
user 23.35
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17381084/ft1_filtered_4FGL_J2147.1+0931_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17381084/ft2_4FGL_J2147.1+0931_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17381084/ltcube_786931201_787536001_4FGL_J2147.1+0931_weekly_bin906.fits outfile=/lscratch/kocevski/17381084/expmap_786931201_787536001_4FGL_J2147.1+0931_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/17381084/ltcube_786931201_787536001_4FGL_J2147.1+0931_weekly_bin906.fits
.....................!
real 69.62
user 64.89
sys 3.79

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/17381084/ft1_filtered_4FGL_J2147.1+0931_weekly_bin906.fits scfile=/lscratch/kocevski/17381084/ft2_4FGL_J2147.1+0931_weekly_bin906.fits outfile=/lscratch/kocevski/17381084/cmap_786931201_787536001_4FGL_J2147.1+0931_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=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.89
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17381084/ft1_filtered_4FGL_J2147.1+0931_weekly_bin906.fits scfile=/lscratch/kocevski/17381084/ft2_4FGL_J2147.1+0931_weekly_bin906.fits outfile=/lscratch/kocevski/17381084/cmap_HighResolution_786931201_787536001_4FGL_J2147.1+0931_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=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.99
user 0.27
sys 0.21

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17381084/ft1_filtered_4FGL_J2147.1+0931_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17381084/ft2_4FGL_J2147.1+0931_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17381084/Model_4FGL_J2147.1+0931_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/17381084/ft1_filtered_4FGL_J2147.1+0931_weekly_bin906.fits.....................!
real 59.15
user 56.94
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17381084/ft1_filtered_4FGL_J2147.1+0931_weekly_bin906.fits', '/lscratch/kocevski/17381084/ft2_4FGL_J2147.1+0931_weekly_bin906.fits', expMap='/lscratch/kocevski/17381084/expmap_786931201_787536001_4FGL_J2147.1+0931_weekly_bin906.fits', expCube='/lscratch/kocevski/17381084/ltcube_786931201_787536001_4FGL_J2147.1+0931_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17381084/Model_4FGL_J2147.1+0931_weekly_bin906.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/17381084/ft1_filtered_4FGL_J2147.1+0931_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17381084/ft2_4FGL_J2147.1+0931_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17381084/expmap_786931201_787536001_4FGL_J2147.1+0931_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17381084/ltcube_786931201_787536001_4FGL_J2147.1+0931_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17381084/Model_4FGL_J2147.1+0931_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) = 17057.0256031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10833       1.0000          .0000       .10000E+07
     2 'Prefactor '    10.443       1.0000          .0000       .10000E+07
     3 'Prefactor '    11.117       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.4842       1.0000          .0000       .10000E+07
     5 'norm      '    6.6525       1.0000          .0000       .10000E+07
     6 'Prefactor '    .55511E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .14026       1.0000          .0000       .10000E+07
     8 'Prefactor '    .19984E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    .64913       1.0000          .0000       .10000E+07
    10 'Prefactor '    84.978       1.0000          .0000       .10000E+07
    11 'norm      '    2.9443       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10247E-02   1.0000          .0000       .10000E+07
    13 'norm      '    1.3254       1.0000          .0000       .10000E+07
    14 'norm      '    .69822E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .11805E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .65716E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    12.163       1.0000          .0000       .10000E+07
    18 'norm      '    .98187E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .12019E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    19.339       1.0000          .0000       .10000E+07
    21 'norm      '    3.5633       1.0000          .0000       .10000E+07
    22 'Prefactor '    .25338E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    1.1576       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.0152       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .78581       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0071       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=   17053.88     FROM MIGRAD    STATUS=CONVERGED    185 CALLS     1464 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50385        30.637        .10019E-06   -.13668E-04
   2  Prefactor     10.464        4.7537       -.24066E-07   -.42057E-04
   3  Prefactor     11.040        7.6859       -.40031E-07   -.21495E-03
   4  Prefactor     .36867E-03    412.80        .73360E-06** at limit **
   5  norm          6.6400        3.2958       -.19927E-07    .15383E-03
   6  Prefactor      .0000        5.0786       -.24454E-07** at limit **
   7  Prefactor     .14276        9.5873        .42705E-07** at limit **
   8  Prefactor      .0000        .85809        .11902E-07** at limit **
   9  Prefactor     .12323E-04    239.25        .48095E-06** at limit **
  10  Prefactor     84.248        52.948        .46756E-07   -.26694E-01
  11  norm          2.9439        1.4256       -.64618E-08    .44723E-03
  12  Prefactor     .22204E-09    4.6812        .14714E-06** at limit **
  13  norm          1.3231        1.3252        .25459E-07   -.92642E-04
  14  norm          .22204E-09    5.7681        .19769E-07** at limit **
  15  Prefactor     .11102E-09    8.5358        .30749E-07** at limit **
  16  Prefactor     .22204E-09    4.7322        .14776E-06** at limit **
  17  Prefactor     12.166        9.3471        .70426E-07    .95559E-03
  18  norm          .98657E-01    .62387        .34905E-08** at limit **
  19  Prefactor     .11657E-08    10.766        .41058E-07** at limit **
  20  Prefactor     19.334        8.0122        .85742E-09   -.27197E-02
  21  norm          3.5607        2.5846        .83351E-08    .31201E-04
  22  Prefactor      .0000        5.4739       -.20893E-07** at limit **
  23  Prefactor     1.1575        .17418       -.34591E-07    .22000E-03
  24  Prefactor     3.0206        3.7564       -.28298E-06    .14173E-04
  25  Normalizat    .78706        .16884       -.45322E-06    .53539E-05
  26  Prefactor     1.0067        .83169E-01    .31570E-06    .70532E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.503852
  Prefactor  = 10.4637
  Prefactor  = 11.0399
  Prefactor  = 0.000368675
  norm       = 6.63999
  Prefactor  = 0
  Prefactor  = 0.142757
  Prefactor  = 0
  Prefactor  = 1.23226e-05
  Prefactor  = 84.2475
  norm       = 2.94392
  Prefactor  = 2.22045e-10
  norm       = 1.32309
  norm       = 2.22045e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 2.22045e-10
  Prefactor  = 12.1662
  norm       = 0.0986575
  Prefactor  = 1.16573e-09
  Prefactor  = 19.3341
  norm       = 3.56068
  Prefactor  = 0
  Prefactor  = 1.15747
  Prefactor  = 3.02064
  Normalizat = 0.787058
  Prefactor  = 1.00673
 **********
 **   18 **HESSE 
 **********

 FCN=   17053.88     FROM HESSE     STATUS=OK           540 CALLS     2004 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50385        4.3215        .87495E-02   -1.5694    
   2  Prefactor     10.464        12.657        .30980E-03   -1.5643    
   3  Prefactor     11.040        10.442        .30023E-03   -1.5642    
   4  Prefactor     .36867E-03    18.392        .18177E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.6400        3.3052        .38882E-03   -1.5656    
   6  Prefactor      .0000        5.1284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .14276        .87761        .75077E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .85686        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12323E-04    16.041        .11003E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     84.248        55.570        .10849E-03   -1.5524    
  11  norm          2.9439        1.4406        .59164E-03   -1.5674    
  12  Prefactor     .22204E-09    9.3588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3231        1.3489        .95448E-03   -1.5685    
  14  norm          .22204E-09    7.0107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-09    8.4442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .22204E-09    9.3829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.166        9.7361        .28698E-03   -1.5638    
  18  norm          .98657E-01    .31326        .21836E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11657E-08    10.801        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.334        12.325        .22747E-03   -1.5620    
  21  norm          3.5607        2.5860        .53516E-03   -1.5670    
  22  Prefactor      .0000        6.9750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1575        .17476        .46066E-02   -1.5493    
  24  Prefactor     3.0206        3.7604        .58432E-02   -1.5360    
  25  Normalizat    .78706        .15007        .83375E-01   -1.0055    
  26  Prefactor     1.0067        .70090E-01    .43780E-01   -.92506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94258e-08
Minuit parameter uncertainties:
  1  2.95119
  2  12.6572
  3  10.4423
  4  0.164688
  5  3.30525
  6  2.63942e-06
  7  0.707915
  8  3.59515e-07
  9  0.0281188
  10  55.5701
  11  1.44058
  12  9.14818e-05
  13  1.34891
  14  8.05548e-05
  15  5.86943e-05
  16  8.95015e-05
  17  9.73615
  18  0.313255
  19  0.000223839
  20  12.3251
  21  2.58597
  22  1.18455e-05
  23  0.174765
  24  3.76068
  25  0.150152
  26  0.0700965
Done.

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

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  1.323e+00  1.349e+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.007e+00  7.010e-02  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:  7.871e-01  1.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.27
Ra Dec: 326.783 9.518
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.54e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 7.15e-06 +/- 7.29e-06

TS (Fixed Index): 1.27
Ra Dec: 326.783 9.518
Photon Flux Upper Limit: 7.73589978357e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.17714765553e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17381084/likelihoodResults_786931201_787536001_4FGL_J2147.1+0931_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) = 17053.8734095
delta logL = 0.00378663326046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17053.87325
delta logL = 0.00394620162479

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3163       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3494       1.0000          .0000       5.0000    
     3 'Normalizat'    .78972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0058       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17053.87     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      247 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3162        1.3203        .14445E-04   -.15111E-03
   2  alpha         2.3488        .89687        .36286E-01   -.26629E-03
   3  Normalizat    .78973        .16559        .36859E-03    .12338E-06
   4  Prefactor     1.0058        .82579E-01    .16579E-03   -.10972E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.31621
  alpha      = 2.34881
  Normalizat = 0.789734
  Prefactor  = 1.00583
 **********
 **   18 **HESSE 
 **********

 FCN=   17053.87     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3162        1.3280        .57778E-06   -1.5685    
   2  alpha         2.3488        .90273        .72572E-02   -.60514E-01
   3  Normalizat    .78973        .16582        .14744E-04   -1.0045    
   4  Prefactor     1.0058        .82629E-01    .66316E-05   -.92535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54074e-11
Minuit parameter uncertainties:
  1  1.32796
  2  0.923683
  3  0.165929
  4  0.0826396
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) = 17053.8732498
delta logL = 0.0039463853318

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  1.316e+00  1.328e+00  0.000e+00  1.000e+06 ( 1.000e-11)
298        alpha:  2.349e+00  9.237e-01  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.006e+00  8.264e-02  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:  7.897e-01  1.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 326.783 9.518
Photon Index (Free Index): 2.35 +/- 0.92
Photon Flux (Free Index): 2.39e-08 +/- 2.95e-08
Energy Flux (Free Index): 7.23e-06 +/- 7.29e-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/17381084/cmap_HighResolution_786931201_787536001_4FGL_J2147.1+0931_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.18e-05', comment='SUCCESS', photon_flux='2.54e-08', energy_flux2='7.23e-06', photon_flux_error='2.59e-08', dlogl='3.95e-03', energy_flux='7.15e-06', photon_flux2='2.39e-08', job_status='DONE', time_completed='2025-12-16 03:27:52.868540', photon_index_error2='0.92', photon_index2='2.35', ts='1.27', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='7.74e-08', energy_flux_error2='7.29e-06', EG='0.79', time_epoch_completed='1765884472.87', return_code='0', job_id='17381084', GAL2='1.01', EG2='0.79', return_code2='0', energy_flux_error='7.29e-06', photon_flux_error2='2.95e-08', ts2='1.27', photon_index='2.43' WHERE bin_id='906' AND source_name='4FGL J2147.1+0931' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:27:53 PST 2025

