/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_J2157.5+3127_weekly_bin906
RA = 329.386, Dec = 31.4552
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='17381097', job_status='RUN', time_executed='2025-12-16 03:15:03.840861', time_epoch_executed='1765883703.84' WHERE source_name='4FGL J2157.5+3127' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17381097

Creating custom pfile directory:
/lscratch/kocevski/17381097/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/17381097/ft1_4FGL_J2157.5+3127_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/17381097/ft2_4FGL_J2157.5+3127_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17381097/ft1_4FGL_J2157.5+3127_weekly_bin906.fits outfile=/lscratch/kocevski/17381097/ft1_filteredMKT_4FGL_J2157.5+3127_weekly_bin906.fits ra=329.386 dec=31.4552 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.62
user 5.09
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17381097/ft2_4FGL_J2157.5+3127_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17381097/ft2_4FGL_J2157.5+3127_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/17381097/ft1_filteredMKT_4FGL_J2157.5+3127_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17381097/ft1_filtered_4FGL_J2157.5+3127_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.93
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 2554

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17381097/ft1_filtered_4FGL_J2157.5+3127_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17381097/ft2_4FGL_J2157.5+3127_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17381097/ltcube_786931201_787536001_4FGL_J2157.5+3127_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/17381097/ft2_4FGL_J2157.5+3127_weekly_bin906.fits
.....................!
real 19.19
user 18.33
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17381097/ft1_filtered_4FGL_J2157.5+3127_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17381097/ft2_4FGL_J2157.5+3127_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17381097/ltcube_786931201_787536001_4FGL_J2157.5+3127_weekly_bin906.fits outfile=/lscratch/kocevski/17381097/expmap_786931201_787536001_4FGL_J2157.5+3127_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/17381097/ltcube_786931201_787536001_4FGL_J2157.5+3127_weekly_bin906.fits
.....................!
real 70.05
user 65.23
sys 4.05

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 Cygnus Loop in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Added 186 point sources and 3 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 J2157.5+3127 @ 329.386 31.4552

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17381097/ft1_filtered_4FGL_J2157.5+3127_weekly_bin906.fits scfile=/lscratch/kocevski/17381097/ft2_4FGL_J2157.5+3127_weekly_bin906.fits outfile=/lscratch/kocevski/17381097/cmap_786931201_787536001_4FGL_J2157.5+3127_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=329.386 yref=31.4552 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.75
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17381097/ft1_filtered_4FGL_J2157.5+3127_weekly_bin906.fits scfile=/lscratch/kocevski/17381097/ft2_4FGL_J2157.5+3127_weekly_bin906.fits outfile=/lscratch/kocevski/17381097/cmap_HighResolution_786931201_787536001_4FGL_J2157.5+3127_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=329.386 yref=31.4552 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.75
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17381097/ft1_filtered_4FGL_J2157.5+3127_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17381097/ft2_4FGL_J2157.5+3127_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17381097/Model_4FGL_J2157.5+3127_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 Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source gamma Cygni
Working on...
/lscratch/kocevski/17381097/ft1_filtered_4FGL_J2157.5+3127_weekly_bin906.fits.....................!
real 154.74
user 152.54
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17381097/ft1_filtered_4FGL_J2157.5+3127_weekly_bin906.fits', '/lscratch/kocevski/17381097/ft2_4FGL_J2157.5+3127_weekly_bin906.fits', expMap='/lscratch/kocevski/17381097/expmap_786931201_787536001_4FGL_J2157.5+3127_weekly_bin906.fits', expCube='/lscratch/kocevski/17381097/ltcube_786931201_787536001_4FGL_J2157.5+3127_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17381097/Model_4FGL_J2157.5+3127_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2157.5+3127'

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.006e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
369        alpha:  2.171e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
370         beta:  1.366e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
371           Eb:  6.818e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17381097/ft1_filtered_4FGL_J2157.5+3127_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17381097/ft2_4FGL_J2157.5+3127_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17381097/expmap_786931201_787536001_4FGL_J2157.5+3127_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17381097/ltcube_786931201_787536001_4FGL_J2157.5+3127_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17381097/Model_4FGL_J2157.5+3127_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) = 26261.7064211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.488       1.0000          .0000       .10000E+07
     2 'Prefactor '    .57602E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .47368       1.0000          .0000       .10000E+07
     4 'norm      '    .14549E-06   1.0000          .0000       .10000E+07
     5 'norm      '    5.9778       1.0000          .0000       .10000E+07
     6 'Prefactor '    82.197       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14477E-05   1.0000          .0000       .10000E+07
     8 'norm      '    .48568       1.0000          .0000       .10000E+07
     9 'Prefactor '    43.355       1.0000          .0000       .10000E+07
    10 'norm      '    2.8506       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.0093       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.5894       1.0000          .0000       .10000E+07
    13 'Prefactor '    .17079E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .74183       1.0000          .0000       .10000E+07
    15 'Normalizat'    .90775       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .96495       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26261.67     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1194 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.492        17.328       -.12848E-05   -.20926E-02
   2  Prefactor     .32904E-01    4.2417       -.87863E-06** at limit **
   3  norm          .47061        1.9299       -.79834E-06    .41006E-03
   4  norm           .0000        2.0101        .34307E-06** at limit **
   5  norm          6.0250        6.3929        .87704E-06    .15247E-02
   6  Prefactor     87.049        74.534        .10782E-06    .71416E-03
   7  Prefactor     .55511E-10    1.2940       -.56667E-06** at limit **
   8  norm          .48584        .36759       -.55176E-07    .39890E-03
   9  Prefactor     43.129        26.237        .11234E-06   -.27032E-03
  10  norm          2.8511        .57367       -.54803E-07   -.15079E-03
  11  Prefactor     3.9619        21.745       -.16401E-05   -.27592E-03
  12  Prefactor     3.6048        5.0307        .83453E-07    .50218E-03
  13  Prefactor     .17819E-07    8.1796       -.16221E-05** at limit **
  14  norm          .74203        .49444       -.27675E-07    .29151E-02
  15  Normalizat    .90755        .13934       -.70247E-05    .64867E-04
  16  Prefactor     .96484        .48310E-01    .27826E-05    .23211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4924
  Prefactor  = 0.0329037
  norm       = 0.470611
  norm       = 0
  norm       = 6.02504
  Prefactor  = 87.0495
  Prefactor  = 5.55112e-11
  norm       = 0.485842
  Prefactor  = 43.129
  norm       = 2.85106
  Prefactor  = 3.96193
  Prefactor  = 3.60483
  Prefactor  = 1.78191e-08
  norm       = 0.742028
  Normalizat = 0.907548
  Prefactor  = 0.964845
 **********
 **   18 **HESSE 
 **********

 FCN=   26261.67     FROM HESSE     STATUS=OK           253 CALLS     1447 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.492        17.397        .23923E-03   -1.5624    
   2  Prefactor     .32904E-01    1.6696        .52351E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .47061        2.2121        .81403E-03   -1.5694    
   4  norm           .0000        .27442        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.0250        6.3901        .41046E-03   -1.5659    
   6  Prefactor     87.049        74.556        .11031E-03   -1.5521    
   7  Prefactor     .55511E-10    1.2956        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .48584        .42418        .19241E-02   -1.5694    
   9  Prefactor     43.129        26.251        .15189E-03   -1.5577    
  10  norm          2.8511        .57473        .60193E-03   -1.5674    
  11  Prefactor     3.9619        22.165        .50342E-03   -1.5668    
  12  Prefactor     3.6048        5.0451        .53313E-03   -1.5670    
  13  Prefactor     .17819E-07    8.6709        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .74203        .49624        .57376E-04   -1.5691    
  15  Normalizat    .90755        .12974        .97234E-01   -.96195    
  16  Prefactor     .96484        .43998E-01    .32463E-01   -.93911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.26919e-06
Minuit parameter uncertainties:
  1  17.3975
  2  0.468773
  3  2.04061
  4  5.1768e-06
  5  6.39011
  6  74.5565
  7  1.33725e-05
  8  0.424183
  9  26.2507
  10  0.57473
  11  18.7421
  12  5.04511
  13  0.000786126
  14  0.496243
  15  0.129789
  16  0.0439995
Done.

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

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  4.858e-01  4.242e-01  0.000e+00  1.000e+06 ( 1.000e-11)
369        alpha:  2.171e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
370         beta:  1.366e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
371           Eb:  6.818e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  9.648e-01  4.400e-02  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  9.075e-01  1.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.68
Ra Dec: 329.386 31.455
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 2.11e-08 +/- 1.84e-08
Energy Flux (Fixed Index): 8.56e-06 +/- 7.47e-06

TS (Fixed Index): 2.68
Ra Dec: 329.386 31.455
Photon Flux Upper Limit: 5.55232242457e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.24889122099e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17381097/likelihoodResults_786931201_787536001_4FGL_J2157.5+3127_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) = 26261.5333407
delta logL = 0.138898494843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26261.5288422
delta logL = 0.143396936

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   26261.53     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      224 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45088        3.5326        .17006E-02    .55463E-01
   2  alpha         2.5619        3.7737        .41168        .10691E-03
   3  Normalizat    .89637        .27929E-01    .97783E-01    .10410E-03
   4  Prefactor     .96665        .94378E-02    .32435E-01   -.22159E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.450876
  alpha      = 2.56191
  Normalizat = 0.896369
  Prefactor  = 0.96665
 **********
 **   18 **HESSE 
 **********

 FCN=   26261.53     FROM HESSE     STATUS=OK            35 CALLS      259 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45088        .40766        .80423E-04   -1.5695    
   2  alpha         2.5619        .84704        .31822E-01    .24766E-01
   3  Normalizat    .89637        .13922        .43325E-03   -.96588    
   4  Prefactor     .96665        .47299E-01    .14332E-03   -.93850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49768e-08
Minuit parameter uncertainties:
  1  0.407659
  2  0.864152
  3  0.139277
  4  0.0473012
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) = 26261.5288414
delta logL = 0.143397764106

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  4.509e-01  4.077e-01  0.000e+00  1.000e+06 ( 1.000e-11)
369        alpha:  2.562e+00  8.642e-01  0.000e+00  5.000e+00 ( 1.000e+00)
370         beta:  1.366e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
371           Eb:  6.818e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  9.667e-01  4.730e-02  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  8.964e-01  1.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.98
Ra Dec: 329.386 31.455
Photon Index (Free Index): 2.56 +/- 0.86
Photon Flux (Free Index): 3.02e-08 +/- 2.54e-08
Energy Flux (Free Index): 8.44e-06 +/- 6.12e-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/17381097/cmap_HighResolution_786931201_787536001_4FGL_J2157.5+3127_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.25e-05', comment='SUCCESS', photon_flux='2.11e-08', energy_flux2='8.44e-06', photon_flux_error='1.84e-08', dlogl='1.43e-01', energy_flux='8.56e-06', photon_flux2='3.02e-08', job_status='DONE', time_completed='2025-12-16 03:31:11.068514', photon_index_error2='0.86', photon_index2='2.56', ts='2.68', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='5.55e-08', energy_flux_error2='6.12e-06', EG='0.91', time_epoch_completed='1765884671.07', return_code='0', job_id='17381097', GAL2='0.97', EG2='0.90', return_code2='0', energy_flux_error='7.47e-06', photon_flux_error2='2.54e-08', ts2='2.98', photon_index='2.17' WHERE bin_id='906' AND source_name='4FGL J2157.5+3127' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:31:11 PST 2025

