 **********
 **   18 **HESSE 
 **********

 FCN=   15697.64     FROM HESSE     STATUS=OK           249 CALLS     1962 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.307        27.296        .19162E-03   -1.5603    
   2  Prefactor     3.5417        4.6353        .53241E-03   -1.5670    
   3  norm          5.3341        4.3830        .43721E-03   -1.5662    
   4  norm          1.3147        .91322        .96033E-03   -1.5685    
   5  norm          .94369E-09    13.724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     89.129        285.82        .99715E-04   -1.5519    
   7  Prefactor     .11102E-09    4.4202        .82286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .14061        .43044        .12958E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    18.951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5481        .72085        .63940E-03   -1.5676    
  11  Prefactor     15.007        23.448        .25749E-03   -1.5630    
  12  Prefactor     15.141        17.962        .25656E-03   -1.5630    
  13  Prefactor     .55511E-09    7.9589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9789        1.3608        .45037E-03   -1.5663    
  15  Normalizat    1.0475        .20314        .10680       -.91454    
  16  Prefactor     .93741        .59705E-01    .33896E-01   -.94846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53584e-07
Minuit parameter uncertainties:
  1  27.2965
  2  4.63534
  3  4.383
  4  0.913216
  5  0.000228118
  6  285.868
  7  3.8694e-05
  8  0.430437
  9  6.0893e-05
  10  0.720851
  11  23.4477
  12  17.9618
  13  0.000133254
  14  1.36081
  15  0.203292
  16  0.0597092
tfile=/lscratch/kocevski/34218470/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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/34218470/ft2_4FGL_J2157.5+3127_daily_bin2191.fits
.....................!
real 7.76
user 7.00
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34218470/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits evtable="EVENTS" scfile=/lscratch/kocevski/34218470/ft2_4FGL_J2157.5+3127_daily_bin2191.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34218470/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218470/expmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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/34218470/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits
.....................!
real 61.03
user 56.62
sys 3.48

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/34218470/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits scfile=/lscratch/kocevski/34218470/ft2_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218470/cmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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.82
user 0.19
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34218470/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits scfile=/lscratch/kocevski/34218470/ft2_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218470/cmap_HighResolution_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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.93
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34218470/f/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 = 7628
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2157.5+3127_daily_bin2191
RA = 329.386, Dec = 31.4552
tmin = 807235201, tmax = 807494401
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='34218648', job_status='RUN', time_executed='2026-08-04 22:36:27.392811', time_epoch_executed='1785908187.39' WHERE source_name='4FGL J2157.5+3127' and cadence='daily' and bin_id='2191'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34218648

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34218648/ft1_4FGL_J2157.5+3127_daily_bin2191.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34218648/ft2_4FGL_J2157.5+3127_daily_bin2191.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34218648/ft1_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218648/ft1_filteredMKT_4FGL_J2157.5+3127_daily_bin2191.fits ra=329.386 dec=31.4552 rad=12.0 tmin=807235201.0 tmax=807494401.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.39
user 1.60
sys 0.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34218648/ft2_4FGL_J2157.5+3127_daily_bin2191.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/34218648/ft1_filteredMKT_4FGL_J2157.5+3127_daily_bin2191.fits evtable="EVENTS" outfile="/lscratch/kocevski/34218648/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.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.83
user 0.20
sys 0.11

Number of photons that the gtmktime cut: 1478

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34218648/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34218648/ft2_4FGL_J2157.5+3127_daily_bin2191.fits sctable="SC_DATA" oDone.

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

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.406e-01  4.304e-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.374e-01  5.971e-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:  1.048e+00  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/34218117/likelihoodResults_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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) = 15697.6352743
delta logL = 0.00131113490534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15697.6352314
delta logL = 0.00135398714156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14061       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2525       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93747       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15697.64     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14056        .43693        .13511E-04** at limit **
   2  alpha         2.2537        1.5251        .67962E-01    .15192E-04
   3  Normalizat    1.0470        .21293        .47353E-03   -.21127E-05
   4  Prefactor     .93748        .64556E-01    .14977E-03   -.18701E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.140561
  alpha      = 2.25373
  Normalizat = 1.04696
  Prefactor  = 0.937484
 **********
 **   18 **HESSE 
 **********

 FCN=   15697.64     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14056        .42134        .54043E-06   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2537        1.4824        .27185E-02   -.98670E-01
   3  Normalizat    1.0470        .21303        .18941E-04   -.91473    
   4  Prefactor     .93748        .64569E-01    .29954E-04   -.94843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31805e-10
Minuit parameter uncertainties:
  1  0.421342
  2  1.58812
  3  0.213205
  4  0.0645741
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) = 15697.6352311
delta logL = 0.00135432761454

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.406e-01  4.213e-01  0.000e+00  1.000e+06 ( 1.000e-11)
369        alpha:  2.254e+00  1.588e+00  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.375e-01  6.457e-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:  1.047e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 329.386 31.455

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/34218117/cmap_HighResolution_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2026-08-04 22:39:45.308728', job_id='34218117', GAL2='0.94', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1785908385.31', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.35e-03', ts2='0.13', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='2191' AND source_name='4FGL J2157.5+3127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug  4 22:39:45 PDT 2026

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


Performing analysis on: 4FGL_J2157.5+3127_daily_bin2191
RA = 329.386, Dec = 31.4552
tmin = 807235201, tmax = 807494401
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='34218672', job_status='RUN', time_executed='2026-08-04 22:37:01.695705', time_epoch_executed='1785908221.7' WHERE source_name='4FGL J2157.5+3127' and cadence='daily' and bin_id='2191'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34218672

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34218672/ft1_4FGL_J2157.5+3127_daily_bin2191.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34218672/ft2_4FGL_J2157.5+3127_daily_bin2191.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34218672/ft1_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218672/ft1_filteredMKT_4FGL_J2157.5+3127_daily_bin2191.fits ra=329.386 dec=31.4552 rad=12.0 tmin=807235201.0 tmax=807494401.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.36
user 1.61
sys 0.16

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

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

Number of photons that the gtmktime cut: 1478

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34218672/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34218672/ft2_4FGL_J2157.5+3127_daily_bin2191.fits sctable="SC_DATA" ouDone.


Performing analysis on: 4FGL_J2157.5+3127_daily_bin2191
RA = 329.386, Dec = 31.4552
tmin = 807235201, tmax = 807494401
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='34218659', job_status='RUN', time_executed='2026-08-04 22:37:02.757808', time_epoch_executed='1785908222.76' WHERE source_name='4FGL J2157.5+3127' and cadence='daily' and bin_id='2191'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34218659

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34218659/ft1_4FGL_J2157.5+3127_daily_bin2191.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34218659/ft2_4FGL_J2157.5+3127_daily_bin2191.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34218659/ft1_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218659/ft1_filteredMKT_4FGL_J2157.5+3127_daily_bin2191.fits ra=329.386 dec=31.4552 rad=12.0 tmin=807235201.0 tmax=807494401.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.24
user 1.49
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34218659/ft2_4FGL_J2157.5+3127_daily_bin2191.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/34218659/ft1_filteredMKT_4FGL_J2157.5+3127_daily_bin2191.fits evtable="EVENTS" outfile="/lscratch/kocevski/34218659/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.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.06
user 0.16
sys 0.14

Number of photons that the gtmktime cut: 1478

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34218659/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34218659/ft2_4FGL_J2157.5+3127_daily_bin2191.fits sctable="SC_DATA" outfile=/lscratch/kocevski/34218648/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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/34218648/ft2_4FGL_J2157.5+3127_daily_bin2191.fits
.....................!
real 8.47
user 7.62
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34218648/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits evtable="EVENTS" scfile=/lscratch/kocevski/34218648/ft2_4FGL_J2157.5+3127_daily_bin2191.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34218648/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218648/expmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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/34218648/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits
.....................!
real 64.35
user 59.59
sys 3.90

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/34218648/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits scfile=/lscratch/kocevski/34218648/ft2_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218648/cmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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.98
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34218648/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits scfile=/lscratch/kocevski/34218648/ft2_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218648/cmap_HighResolution_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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.91
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34218648/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits evtable="EVENTS" scfile=/lscratch/kocevski/34218371/ft2_4FGL_J2157.5+3127_daily_bin2191.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/34218371/Model_4FGL_J2157.5+3127_daily_bin2191.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/34218371/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits.....................!
real 84.81
user 82.81
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34218371/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits', '/lscratch/kocevski/34218371/ft2_4FGL_J2157.5+3127_daily_bin2191.fits', expMap='/lscratch/kocevski/34218371/expmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits', expCube='/lscratch/kocevski/34218371/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34218371/Model_4FGL_J2157.5+3127_daily_bin2191.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/34218371/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits
Spacecraft file(s): /lscratch/kocevski/34218371/ft2_4FGL_J2157.5+3127_daily_bin2191.fits
Exposure map: /lscratch/kocevski/34218371/expmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits
Exposure cube: /lscratch/kocevski/34218371/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34218371/Model_4FGL_J2157.5+3127_daily_bin2191.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) = 15697.6411062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.243       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.5987       1.0000          .0000       .10000E+07
     3 'norm      '    5.2792       1.0000          .0000       .10000E+07
     4 'norm      '    1.3149       1.0000          .0000       .10000E+07
     5 'norm      '    .11228E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    100.58       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11469       1.0000          .0000       .10000E+07
     8 'norm      '    .14008       1.0000          .0000       .10000E+07
     9 'Prefactor '    .45991E-02   1.0000          .0000       .10000E+07
    10 'norm      '    2.5482       1.0000          .0000       .10000E+07
    11 'Prefactor '    15.099       1.0000          .0000       .10000E+07
    12 'Prefactor '    15.208       1.0000          .0000       .10000E+07
    13 'Prefactor '    .29873E-03   1.0000          .0000       .10000E+07
    14 'norm      '    4.9809       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.0465       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .93731       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=   15697.64     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1713 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.307        27.270       -.63207E-06    .80823E-03
   2  Prefactor     3.5417        4.6057        .41192E-06   -.23999E-02
   3  norm          5.3341        4.3549       -.52066E-08   -.16691E-02
   4  norm          1.3147        .92461        .26915E-07   -.46720E-03
   5  norm          .94369E-09    14.185        .11649E-05** at limit **
   6  Prefactor     89.129        284.89       -.79081E-06   -.64046E-05
   7  Prefactor     .11102E-09    22.462       -.31132E-06** at limit **
   8  norm          .14061        .42412        .22344E-06** at limit **
   9  Prefactor     .55511E-10    18.850       -.28993E-06** at limit **
  10  norm          2.5481        .72085        .15614E-06   -.50035E-01
  11  Prefactor     15.007        23.453        .16425E-06   -.95710E-03
  12  Prefactor     15.141        17.993        .32944E-06   -.86326E-03
  13  Prefactor     .55511E-09    7.9554        .86736E-06** at limit **
  14  norm          4.9789        1.3606        .34618E-07   -.50029E-02
  15  Normalizat    1.0475        .22205        .13606E-04   -.16493E-03
  16  Prefactor     .93741        .66401E-01   -.42960E-05   -.13398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.3071
  Prefactor  = 3.54173
  norm       = 5.3341
  norm       = 1.31474
  norm       = 9.4369e-10
  Prefactor  = 89.1287
  Prefactor  = 1.11022e-10
  norm       = 0.140611
  Prefactor  = 5.55112e-11
  norm       = 2.54813
  Prefactor  = 15.0066
  Prefactor  = 15.1406
  Prefactor  = 5.55112e-10
  norm       = 4.97888
  Normalizat = 1.04754
  Prefactor  = 0.937407
utfile=/lscratch/kocevski/34218659/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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/34218659/ft2_4FGL_J2157.5+3127_daily_bin2191.fits
.....................!
real 8.15
user 7.33
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34218659/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits evtable="EVENTS" scfile=/lscratch/kocevski/34218659/ft2_4FGL_J2157.5+3127_daily_bin2191.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34218659/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218659/expmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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/34218659/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits
.....................!
real 61.76
user 57.16
sys 3.57

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/34218659/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits scfile=/lscratch/kocevski/34218659/ft2_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218659/cmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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.95
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34218659/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits scfile=/lscratch/kocevski/34218659/ft2_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218659/cmap_HighResolution_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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.98
user 0.20
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34218659/tfile=/lscratch/kocevski/34218672/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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/34218672/ft2_4FGL_J2157.5+3127_daily_bin2191.fits
.....................!
real 8.49
user 7.66
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34218672/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits evtable="EVENTS" scfile=/lscratch/kocevski/34218672/ft2_4FGL_J2157.5+3127_daily_bin2191.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34218672/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218672/expmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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/34218672/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits
.....................!
real 66.00
user 61.25
sys 3.86

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/34218672/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits scfile=/lscratch/kocevski/34218672/ft2_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218672/cmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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.96
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34218672/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits scfile=/lscratch/kocevski/34218672/ft2_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218672/cmap_HighResolution_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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.98
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34218672/f **********
 **   18 **HESSE 
 **********

 FCN=   15697.64     FROM HESSE     STATUS=OK           249 CALLS     1962 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.307        27.296        .19162E-03   -1.5603    
   2  Prefactor     3.5417        4.6353        .53241E-03   -1.5670    
   3  norm          5.3341        4.3830        .43721E-03   -1.5662    
   4  norm          1.3147        .91322        .96033E-03   -1.5685    
   5  norm          .94369E-09    13.724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     89.129        285.82        .99715E-04   -1.5519    
   7  Prefactor     .11102E-09    4.4202        .82286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .14061        .43044        .12958E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    18.951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5481        .72085        .63940E-03   -1.5676    
  11  Prefactor     15.007        23.448        .25749E-03   -1.5630    
  12  Prefactor     15.141        17.962        .25656E-03   -1.5630    
  13  Prefactor     .55511E-09    7.9589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9789        1.3608        .45037E-03   -1.5663    
  15  Normalizat    1.0475        .20314        .10680       -.91454    
  16  Prefactor     .93741        .59705E-01    .33896E-01   -.94846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53584e-07
Minuit parameter uncertainties:
  1  27.2965
  2  4.63534
  3  4.383
  4  0.913216
  5  0.000228118
  6  285.868
  7  3.8694e-05
  8  0.430437
  9  6.0893e-05
  10  0.720851
  11  23.4477
  12  17.9618
  13  0.000133254
  14  1.36081
  15  0.203292
  16  0.0597092
number of points = 7628
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2157.5+3127_daily_bin2191
RA = 329.386, Dec = 31.4552
tmin = 807235201, tmax = 807494401
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='34218783', job_status='RUN', time_executed='2026-08-04 22:39:09.102143', time_epoch_executed='1785908349.1' WHERE source_name='4FGL J2157.5+3127' and cadence='daily' and bin_id='2191'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34218783

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34218783/ft1_4FGL_J2157.5+3127_daily_bin2191.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34218783/ft2_4FGL_J2157.5+3127_daily_bin2191.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34218783/ft1_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218783/ft1_filteredMKT_4FGL_J2157.5+3127_daily_bin2191.fits ra=329.386 dec=31.4552 rad=12.0 tmin=807235201.0 tmax=807494401.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.30
user 1.51
sys 0.16

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

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

Number of photons that the gtmktime cut: 1478

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34218783/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34218783/ft2_4FGL_J2157.5+3127_daily_bin2191.fits sctable="SC_DATA" ouDone.

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

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.406e-01  4.304e-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.374e-01  5.971e-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:  1.048e+00  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/34218371/likelihoodResults_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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) = 15697.6352743
delta logL = 0.00131113490534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15697.6352314
delta logL = 0.00135398714156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14061       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2525       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93747       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15697.64     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14056        .43693        .13511E-04** at limit **
   2  alpha         2.2537        1.5251        .67962E-01    .15192E-04
   3  Normalizat    1.0470        .21293        .47353E-03   -.21127E-05
   4  Prefactor     .93748        .64556E-01    .14977E-03   -.18701E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.140561
  alpha      = 2.25373
  Normalizat = 1.04696
  Prefactor  = 0.937484
 **********
 **   18 **HESSE 
 **********

 FCN=   15697.64     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14056        .42134        .54043E-06   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2537        1.4824        .27185E-02   -.98670E-01
   3  Normalizat    1.0470        .21303        .18941E-04   -.91473    
   4  Prefactor     .93748        .64569E-01    .29954E-04   -.94843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31805e-10
Minuit parameter uncertainties:
  1  0.421342
  2  1.58812
  3  0.213205
  4  0.0645741
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) = 15697.6352311
delta logL = 0.00135432761454

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.406e-01  4.213e-01  0.000e+00  1.000e+06 ( 1.000e-11)
369        alpha:  2.254e+00  1.588e+00  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.375e-01  6.457e-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:  1.047e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 329.386 31.455

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/34218371/cmap_HighResolution_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2026-08-04 22:42:16.218161', job_id='34218371', GAL2='0.94', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1785908536.22', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.35e-03', ts2='0.13', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='2191' AND source_name='4FGL J2157.5+3127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug  4 22:42:16 PDT 2026

t1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits evtable="EVENTS" scfile=/lscratch/kocevski/34218470/ft2_4FGL_J2157.5+3127_daily_bin2191.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/34218470/Model_4FGL_J2157.5+3127_daily_bin2191.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/34218470/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits.....................!
real 86.44
user 84.51
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34218470/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits', '/lscratch/kocevski/34218470/ft2_4FGL_J2157.5+3127_daily_bin2191.fits', expMap='/lscratch/kocevski/34218470/expmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits', expCube='/lscratch/kocevski/34218470/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34218470/Model_4FGL_J2157.5+3127_daily_bin2191.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/34218470/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits
Spacecraft file(s): /lscratch/kocevski/34218470/ft2_4FGL_J2157.5+3127_daily_bin2191.fits
Exposure map: /lscratch/kocevski/34218470/expmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits
Exposure cube: /lscratch/kocevski/34218470/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34218470/Model_4FGL_J2157.5+3127_daily_bin2191.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) = 15697.6411062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.243       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.5987       1.0000          .0000       .10000E+07
     3 'norm      '    5.2792       1.0000          .0000       .10000E+07
     4 'norm      '    1.3149       1.0000          .0000       .10000E+07
     5 'norm      '    .11228E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    100.58       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11469       1.0000          .0000       .10000E+07
     8 'norm      '    .14008       1.0000          .0000       .10000E+07
     9 'Prefactor '    .45991E-02   1.0000          .0000       .10000E+07
    10 'norm      '    2.5482       1.0000          .0000       .10000E+07
    11 'Prefactor '    15.099       1.0000          .0000       .10000E+07
    12 'Prefactor '    15.208       1.0000          .0000       .10000E+07
    13 'Prefactor '    .29873E-03   1.0000          .0000       .10000E+07
    14 'norm      '    4.9809       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.0465       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .93731       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=   15697.64     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1713 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.307        27.270       -.63207E-06    .80823E-03
   2  Prefactor     3.5417        4.6057        .41192E-06   -.23999E-02
   3  norm          5.3341        4.3549       -.52066E-08   -.16691E-02
   4  norm          1.3147        .92461        .26915E-07   -.46720E-03
   5  norm          .94369E-09    14.185        .11649E-05** at limit **
   6  Prefactor     89.129        284.89       -.79081E-06   -.64046E-05
   7  Prefactor     .11102E-09    22.462       -.31132E-06** at limit **
   8  norm          .14061        .42412        .22344E-06** at limit **
   9  Prefactor     .55511E-10    18.850       -.28993E-06** at limit **
  10  norm          2.5481        .72085        .15614E-06   -.50035E-01
  11  Prefactor     15.007        23.453        .16425E-06   -.95710E-03
  12  Prefactor     15.141        17.993        .32944E-06   -.86326E-03
  13  Prefactor     .55511E-09    7.9554        .86736E-06** at limit **
  14  norm          4.9789        1.3606        .34618E-07   -.50029E-02
  15  Normalizat    1.0475        .22205        .13606E-04   -.16493E-03
  16  Prefactor     .93741        .66401E-01   -.42960E-05   -.13398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.3071
  Prefactor  = 3.54173
  norm       = 5.3341
  norm       = 1.31474
  norm       = 9.4369e-10
  Prefactor  = 89.1287
  Prefactor  = 1.11022e-10
  norm       = 0.140611
  Prefactor  = 5.55112e-11
  norm       = 2.54813
  Prefactor  = 15.0066
  Prefactor  = 15.1406
  Prefactor  = 5.55112e-10
  norm       = 4.97888
  Normalizat = 1.04754
  Prefactor  = 0.937407
 **********
 **   18 **HESSE 
 **********

 FCN=   15697.64     FROM HESSE     STATUS=OK           249 CALLS     1962 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.307        27.296        .19162E-03   -1.5603    
   2  Prefactor     3.5417        4.6353        .53241E-03   -1.5670    
   3  norm          5.3341        4.3830        .43721E-03   -1.5662    
   4  norm          1.3147        .91322        .96033E-03   -1.5685    
   5  norm          .94369E-09    13.724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     89.129        285.82        .99715E-04   -1.5519    
   7  Prefactor     .11102E-09    4.4202        .82286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .14061        .43044        .12958E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    18.951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5481        .72085        .63940E-03   -1.5676    
  11  Prefactor     15.007        23.448        .25749E-03   -1.5630    
  12  Prefactor     15.141        17.962        .25656E-03   -1.5630    
  13  Prefactor     .55511E-09    7.9589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9789        1.3608        .45037E-03   -1.5663    
  15  Normalizat    1.0475        .20314        .10680       -.91454    
  16  Prefactor     .93741        .59705E-01    .33896E-01   -.94846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53584e-07
Minuit parameter uncertainties:
  1  27.2965
  2  4.63534
  3  4.383
  4  0.913216
  5  0.000228118
  6  285.868
  7  3.8694e-05
  8  0.430437
  9  6.0893e-05
  10  0.720851
  11  23.4477
  12  17.9618
  13  0.000133254
  14  1.36081
  15  0.203292
  16  0.0597092
tfile=/lscratch/kocevski/34218783/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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/34218783/ft2_4FGL_J2157.5+3127_daily_bin2191.fits
.....................!
real 9.06
user 8.05
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34218783/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits evtable="EVENTS" scfile=/lscratch/kocevski/34218783/ft2_4FGL_J2157.5+3127_daily_bin2191.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34218783/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218783/expmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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/34218783/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits
.....................!
real 70.10
user 64.98
sys 4.07

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/34218783/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits scfile=/lscratch/kocevski/34218783/ft2_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218783/cmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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.85
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34218783/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits scfile=/lscratch/kocevski/34218783/ft2_4FGL_J2157.5+3127_daily_bin2191.fits outfile=/lscratch/kocevski/34218783/cmap_HighResolution_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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.87
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34218783/fDone.

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

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.406e-01  4.304e-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.374e-01  5.971e-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:  1.048e+00  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/34218470/likelihoodResults_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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) = 15697.6352743
delta logL = 0.00131113490534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15697.6352314
delta logL = 0.00135398714156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14061       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2525       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93747       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15697.64     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14056        .43693        .13511E-04** at limit **
   2  alpha         2.2537        1.5251        .67962E-01    .15192E-04
   3  Normalizat    1.0470        .21293        .47353E-03   -.21127E-05
   4  Prefactor     .93748        .64556E-01    .14977E-03   -.18701E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.140561
  alpha      = 2.25373
  Normalizat = 1.04696
  Prefactor  = 0.937484
 **********
 **   18 **HESSE 
 **********

 FCN=   15697.64     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14056        .42134        .54043E-06   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2537        1.4824        .27185E-02   -.98670E-01
   3  Normalizat    1.0470        .21303        .18941E-04   -.91473    
   4  Prefactor     .93748        .64569E-01    .29954E-04   -.94843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31805e-10
Minuit parameter uncertainties:
  1  0.421342
  2  1.58812
  3  0.213205
  4  0.0645741
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) = 15697.6352311
delta logL = 0.00135432761454

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.406e-01  4.213e-01  0.000e+00  1.000e+06 ( 1.000e-11)
369        alpha:  2.254e+00  1.588e+00  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.375e-01  6.457e-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:  1.047e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 329.386 31.455

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/34218470/cmap_HighResolution_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2026-08-04 22:44:03.187682', job_id='34218470', GAL2='0.94', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1785908643.19', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.35e-03', ts2='0.13', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='2191' AND source_name='4FGL J2157.5+3127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug  4 22:44:03 PDT 2026

ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits evtable="EVENTS" scfile=/lscratch/kocevski/34218648/ft2_4FGL_J2157.5+3127_daily_bin2191.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/34218648/Model_4FGL_J2157.5+3127_daily_bin2191.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/34218648/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits.....................!
real 89.11
user 87.24
sys 0.62

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34218648/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits', '/lscratch/kocevski/34218648/ft2_4FGL_J2157.5+3127_daily_bin2191.fits', expMap='/lscratch/kocevski/34218648/expmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits', expCube='/lscratch/kocevski/34218648/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34218648/Model_4FGL_J2157.5+3127_daily_bin2191.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/34218648/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits
Spacecraft file(s): /lscratch/kocevski/34218648/ft2_4FGL_J2157.5+3127_daily_bin2191.fits
Exposure map: /lscratch/kocevski/34218648/expmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits
Exposure cube: /lscratch/kocevski/34218648/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34218648/Model_4FGL_J2157.5+3127_daily_bin2191.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) = 15697.6411062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.243       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.5987       1.0000          .0000       .10000E+07
     3 'norm      '    5.2792       1.0000          .0000       .10000E+07
     4 'norm      '    1.3149       1.0000          .0000       .10000E+07
     5 'norm      '    .11228E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    100.58       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11469       1.0000          .0000       .10000E+07
     8 'norm      '    .14008       1.0000          .0000       .10000E+07
     9 'Prefactor '    .45991E-02   1.0000          .0000       .10000E+07
    10 'norm      '    2.5482       1.0000          .0000       .10000E+07
    11 'Prefactor '    15.099       1.0000          .0000       .10000E+07
    12 'Prefactor '    15.208       1.0000          .0000       .10000E+07
    13 'Prefactor '    .29873E-03   1.0000          .0000       .10000E+07
    14 'norm      '    4.9809       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.0465       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .93731       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6630Eft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits evtable="EVENTS" scfile=/lscratch/kocevski/34218659/ft2_4FGL_J2157.5+3127_daily_bin2191.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/34218659/Model_4FGL_J2157.5+3127_daily_bin2191.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/34218659/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits.....................!
real 86.02
user 83.85
sys 0.89

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34218659/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits', '/lscratch/kocevski/34218659/ft2_4FGL_J2157.5+3127_daily_bin2191.fits', expMap='/lscratch/kocevski/34218659/expmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits', expCube='/lscratch/kocevski/34218659/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34218659/Model_4FGL_J2157.5+3127_daily_bin2191.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/34218659/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits
Spacecraft file(s): /lscratch/kocevski/34218659/ft2_4FGL_J2157.5+3127_daily_bin2191.fits
Exposure map: /lscratch/kocevski/34218659/expmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits
Exposure cube: /lscratch/kocevski/34218659/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34218659/Model_4FGL_J2157.5+3127_daily_bin2191.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) = 15697.6411062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.243       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.5987       1.0000          .0000       .10000E+07
     3 'norm      '    5.2792       1.0000          .0000       .10000E+07
     4 'norm      '    1.3149       1.0000          .0000       .10000E+07
     5 'norm      '    .11228E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    100.58       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11469       1.0000          .0000       .10000E+07
     8 'norm      '    .14008       1.0000          .0000       .10000E+07
     9 'Prefactor '    .45991E-02   1.0000          .0000       .10000E+07
    10 'norm      '    2.5482       1.0000          .0000       .10000E+07
    11 'Prefactor '    15.099       1.0000          .0000       .10000E+07
    12 'Prefactor '    15.208       1.0000          .0000       .10000E+07
    13 'Prefactor '    .29873E-03   1.0000          .0000       .10000E+07
    14 'norm      '    4.9809       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.0465       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .93731       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=   15697.64     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1713 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.307        27.270       -.63207E-06    .80823E-03
   2  Prefactor     3.5417        4.6057        .41192E-06   -.23999E-02
   3  norm          5.3341        4.3549       -.52066E-08   -.16691E-02
   4  norm          1.3147        .92461        .26915E-07   -.46720E-03
   5  norm          .94369E-09    14.185        .11649E-05** at limit **
   6  Prefactor     89.129        284.89       -.79081E-06   -.64046E-05
   7  Prefactor     .11102E-09    22.462       -.31132E-06** at limit **
   8  norm          .14061        .42412        .22344E-06** at limit **
   9  Prefactor     .55511E-10    18.850       -.28993E-06** at limit **
  10  norm          2.5481        .72085        .15614E-06   -.50035E-01
  11  Prefactor     15.007        23.453        .16425E-06   -.95710E-03
  12  Prefactor     15.141        17.993        .32944E-06   -.86326E-03
  13  Prefactor     .55511E-09    7.9554        .86736E-06** at limit **
  14  norm          4.9789        1.3606        .34618E-07   -.50029E-02
  15  Normalizat    1.0475        .22205        .13606E-04   -.16493E-03
  16  Prefactor     .93741        .66401E-01   -.42960E-05   -.13398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.3071
  Prefactor  = 3.54173
  norm       = 5.3341
  norm       = 1.31474
  norm       = 9.4369e-10
  Prefactor  = 89.1287
  Prefactor  = 1.11022e-10
  norm       = 0.140611
  Prefactor  = 5.55112e-11
  norm       = 2.54813
  Prefactor  = 15.0066
  Prefactor  = 15.1406
  Prefactor  = 5.55112e-10
  norm       = 4.97888
  Normalizat = 1.04754
  Prefactor  = 0.937407
+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15697.64     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1713 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.307        27.270       -.63207E-06    .80823E-03
   2  Prefactor     3.5417        4.6057        .41192E-06   -.23999E-02
   3  norm          5.3341        4.3549       -.52066E-08   -.16691E-02
   4  norm          1.3147        .92461        .26915E-07   -.46720E-03
   5  norm          .94369E-09    14.185        .11649E-05** at limit **
   6  Prefactor     89.129        284.89       -.79081E-06   -.64046E-05
   7  Prefactor     .11102E-09    22.462       -.31132E-06** at limit **
   8  norm          .14061        .42412        .22344E-06** at limit **
   9  Prefactor     .55511E-10    18.850       -.28993E-06** at limit **
  10  norm          2.5481        .72085        .15614E-06   -.50035E-01
  11  Prefactor     15.007        23.453        .16425E-06   -.95710E-03
  12  Prefactor     15.141        17.993        .32944E-06   -.86326E-03
  13  Prefactor     .55511E-09    7.9554        .86736E-06** at limit **
  14  norm          4.9789        1.3606        .34618E-07   -.50029E-02
  15  Normalizat    1.0475        .22205        .13606E-04   -.16493E-03
  16  Prefactor     .93741        .66401E-01   -.42960E-05   -.13398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.3071
  Prefactor  = 3.54173
  norm       = 5.3341
  norm       = 1.31474
  norm       = 9.4369e-10
  Prefactor  = 89.1287
  Prefactor  = 1.11022e-10
  norm       = 0.140611
  Prefactor  = 5.55112e-11
  norm       = 2.54813
  Prefactor  = 15.0066
  Prefactor  = 15.1406
  Prefactor  = 5.55112e-10
  norm       = 4.97888
  Normalizat = 1.04754
  Prefactor  = 0.937407
t1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits evtable="EVENTS" scfile=/lscratch/kocevski/34218672/ft2_4FGL_J2157.5+3127_daily_bin2191.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/34218672/Model_4FGL_J2157.5+3127_daily_bin2191.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/34218672/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits.....................!
real 92.45
user 90.40
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34218672/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits', '/lscratch/kocevski/34218672/ft2_4FGL_J2157.5+3127_daily_bin2191.fits', expMap='/lscratch/kocevski/34218672/expmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits', expCube='/lscratch/kocevski/34218672/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34218672/Model_4FGL_J2157.5+3127_daily_bin2191.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/34218672/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits
Spacecraft file(s): /lscratch/kocevski/34218672/ft2_4FGL_J2157.5+3127_daily_bin2191.fits
Exposure map: /lscratch/kocevski/34218672/expmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits
Exposure cube: /lscratch/kocevski/34218672/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34218672/Model_4FGL_J2157.5+3127_daily_bin2191.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) = 15697.6411062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.243       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.5987       1.0000          .0000       .10000E+07
     3 'norm      '    5.2792       1.0000          .0000       .10000E+07
     4 'norm      '    1.3149       1.0000          .0000       .10000E+07
     5 'norm      '    .11228E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    100.58       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11469       1.0000          .0000       .10000E+07
     8 'norm      '    .14008       1.0000          .0000       .10000E+07
     9 'Prefactor '    .45991E-02   1.0000          .0000       .10000E+07
    10 'norm      '    2.5482       1.0000          .0000       .10000E+07
    11 'Prefactor '    15.099       1.0000          .0000       .10000E+07
    12 'Prefactor '    15.208       1.0000          .0000       .10000E+07
    13 'Prefactor '    .29873E-03   1.0000          .0000       .10000E+07
    14 'norm      '    4.9809       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.0465       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .93731       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6630E+ **********
 **   18 **HESSE 
 **********

 FCN=   15697.64     FROM HESSE     STATUS=OK           249 CALLS     1962 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.307        27.296        .19162E-03   -1.5603    
   2  Prefactor     3.5417        4.6353        .53241E-03   -1.5670    
   3  norm          5.3341        4.3830        .43721E-03   -1.5662    
   4  norm          1.3147        .91322        .96033E-03   -1.5685    
   5  norm          .94369E-09    13.724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     89.129        285.82        .99715E-04   -1.5519    
   7  Prefactor     .11102E-09    4.4202        .82286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .14061        .43044        .12958E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    18.951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5481        .72085        .63940E-03   -1.5676    
  11  Prefactor     15.007        23.448        .25749E-03   -1.5630    
  12  Prefactor     15.141        17.962        .25656E-03   -1.5630    
  13  Prefactor     .55511E-09    7.9589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9789        1.3608        .45037E-03   -1.5663    
  15  Normalizat    1.0475        .20314        .10680       -.91454    
  16  Prefactor     .93741        .59705E-01    .33896E-01   -.94846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53584e-07
Minuit parameter uncertainties:
  1  27.2965
  2  4.63534
  3  4.383
  4  0.913216
  5  0.000228118
  6  285.868
  7  3.8694e-05
  8  0.430437
  9  6.0893e-05
  10  0.720851
  11  23.4477
  12  17.9618
  13  0.000133254
  14  1.36081
  15  0.203292
  16  0.0597092
 **********
 **   18 **HESSE 
 **********

 FCN=   15697.64     FROM HESSE     STATUS=OK           249 CALLS     1962 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.307        27.296        .19162E-03   -1.5603    
   2  Prefactor     3.5417        4.6353        .53241E-03   -1.5670    
   3  norm          5.3341        4.3830        .43721E-03   -1.5662    
   4  norm          1.3147        .91322        .96033E-03   -1.5685    
   5  norm          .94369E-09    13.724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     89.129        285.82        .99715E-04   -1.5519    
   7  Prefactor     .11102E-09    4.4202        .82286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .14061        .43044        .12958E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    18.951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5481        .72085        .63940E-03   -1.5676    
  11  Prefactor     15.007        23.448        .25749E-03   -1.5630    
  12  Prefactor     15.141        17.962        .25656E-03   -1.5630    
  13  Prefactor     .55511E-09    7.9589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9789        1.3608        .45037E-03   -1.5663    
  15  Normalizat    1.0475        .20314        .10680       -.91454    
  16  Prefactor     .93741        .59705E-01    .33896E-01   -.94846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53584e-07
Minuit parameter uncertainties:
  1  27.2965
  2  4.63534
  3  4.383
  4  0.913216
  5  0.000228118
  6  285.868
  7  3.8694e-05
  8  0.430437
  9  6.0893e-05
  10  0.720851
  11  23.4477
  12  17.9618
  13  0.000133254
  14  1.36081
  15  0.203292
  16  0.0597092
05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15697.64     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1713 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.307        27.270       -.63207E-06    .80823E-03
   2  Prefactor     3.5417        4.6057        .41192E-06   -.23999E-02
   3  norm          5.3341        4.3549       -.52066E-08   -.16691E-02
   4  norm          1.3147        .92461        .26915E-07   -.46720E-03
   5  norm          .94369E-09    14.185        .11649E-05** at limit **
   6  Prefactor     89.129        284.89       -.79081E-06   -.64046E-05
   7  Prefactor     .11102E-09    22.462       -.31132E-06** at limit **
   8  norm          .14061        .42412        .22344E-06** at limit **
   9  Prefactor     .55511E-10    18.850       -.28993E-06** at limit **
  10  norm          2.5481        .72085        .15614E-06   -.50035E-01
  11  Prefactor     15.007        23.453        .16425E-06   -.95710E-03
  12  Prefactor     15.141        17.993        .32944E-06   -.86326E-03
  13  Prefactor     .55511E-09    7.9554        .86736E-06** at limit **
  14  norm          4.9789        1.3606        .34618E-07   -.50029E-02
  15  Normalizat    1.0475        .22205        .13606E-04   -.16493E-03
  16  Prefactor     .93741        .66401E-01   -.42960E-05   -.13398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.3071
  Prefactor  = 3.54173
  norm       = 5.3341
  norm       = 1.31474
  norm       = 9.4369e-10
  Prefactor  = 89.1287
  Prefactor  = 1.11022e-10
  norm       = 0.140611
  Prefactor  = 5.55112e-11
  norm       = 2.54813
  Prefactor  = 15.0066
  Prefactor  = 15.1406
  Prefactor  = 5.55112e-10
  norm       = 4.97888
  Normalizat = 1.04754
  Prefactor  = 0.937407
 **********
 **   18 **HESSE 
 **********

 FCN=   15697.64     FROM HESSE     STATUS=OK           249 CALLS     1962 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.307        27.296        .19162E-03   -1.5603    
   2  Prefactor     3.5417        4.6353        .53241E-03   -1.5670    
   3  norm          5.3341        4.3830        .43721E-03   -1.5662    
   4  norm          1.3147        .91322        .96033E-03   -1.5685    
   5  norm          .94369E-09    13.724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     89.129        285.82        .99715E-04   -1.5519    
   7  Prefactor     .11102E-09    4.4202        .82286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .14061        .43044        .12958E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    18.951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5481        .72085        .63940E-03   -1.5676    
  11  Prefactor     15.007        23.448        .25749E-03   -1.5630    
  12  Prefactor     15.141        17.962        .25656E-03   -1.5630    
  13  Prefactor     .55511E-09    7.9589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9789        1.3608        .45037E-03   -1.5663    
  15  Normalizat    1.0475        .20314        .10680       -.91454    
  16  Prefactor     .93741        .59705E-01    .33896E-01   -.94846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53584e-07
Minuit parameter uncertainties:
  1  27.2965
  2  4.63534
  3  4.383
  4  0.913216
  5  0.000228118
  6  285.868
  7  3.8694e-05
  8  0.430437
  9  6.0893e-05
  10  0.720851
  11  23.4477
  12  17.9618
  13  0.000133254
  14  1.36081
  15  0.203292
  16  0.0597092
Done.

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

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.406e-01  4.304e-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.374e-01  5.971e-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:  1.048e+00  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/34218659/likelihoodResults_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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) = 15697.6352743
delta logL = 0.00131113490534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15697.6352314
delta logL = 0.00135398714156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14061       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2525       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93747       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15697.64     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14056        .43693        .13511E-04** at limit **
   2  alpha         2.2537        1.5251        .67962E-01    .15192E-04
   3  Normalizat    1.0470        .21293        .47353E-03   -.21127E-05
   4  Prefactor     .93748        .64556E-01    .14977E-03   -.18701E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.140561
  alpha      = 2.25373
  Normalizat = 1.04696
  Prefactor  = 0.937484
 **********
 **   18 **HESSE 
 **********

 FCN=   15697.64     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14056        .42134        .54043E-06   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2537        1.4824        .27185E-02   -.98670E-01
   3  Normalizat    1.0470        .21303        .18941E-04   -.91473    
   4  Prefactor     .93748        .64569E-01    .29954E-04   -.94843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31805e-10
Minuit parameter uncertainties:
  1  0.421342
  2  1.58812
  3  0.213205
  4  0.0645741
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) = 15697.6352311
delta logL = 0.00135432761454

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.406e-01  4.213e-01  0.000e+00  1.000e+06 ( 1.000e-11)
369        alpha:  2.254e+00  1.588e+00  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.375e-01  6.457e-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:  1.047e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 329.386 31.455

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/34218659/cmap_HighResolution_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2026-08-04 22:46:23.787086', job_id='34218659', GAL2='0.94', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1785908783.79', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.35e-03', ts2='0.13', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='2191' AND source_name='4FGL J2157.5+3127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug  4 22:46:24 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.406e-01  4.304e-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.374e-01  5.971e-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:  1.048e+00  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/34218648/likelihoodResults_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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) = 15697.6352743
delta logL = 0.00131113490534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15697.6352314
delta logL = 0.00135398714156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14061       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2525       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93747       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15697.64     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14056        .43693        .13511E-04** at limit **
   2  alpha         2.2537        1.5251        .67962E-01    .15192E-04
   3  Normalizat    1.0470        .21293        .47353E-03   -.21127E-05
   4  Prefactor     .93748        .64556E-01    .14977E-03   -.18701E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.140561
  alpha      = 2.25373
  Normalizat = 1.04696
  Prefactor  = 0.937484
 **********
 **   18 **HESSE 
 **********

 FCN=   15697.64     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14056        .42134        .54043E-06   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2537        1.4824        .27185E-02   -.98670E-01
   3  Normalizat    1.0470        .21303        .18941E-04   -.91473    
   4  Prefactor     .93748        .64569E-01    .29954E-04   -.94843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31805e-10
Minuit parameter uncertainties:
  1  0.421342
  2  1.58812
  3  0.213205
  4  0.0645741
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) = 15697.6352311
delta logL = 0.00135432761454

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.406e-01  4.213e-01  0.000e+00  1.000e+06 ( 1.000e-11)
369        alpha:  2.254e+00  1.588e+00  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.375e-01  6.457e-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:  1.047e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 329.386 31.455

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/34218648/cmap_HighResolution_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2026-08-04 22:46:31.004527', job_id='34218648', GAL2='0.94', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1785908791.0', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.35e-03', ts2='0.13', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='2191' AND source_name='4FGL J2157.5+3127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug  4 22:46:31 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.406e-01  4.304e-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.374e-01  5.971e-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:  1.048e+00  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/34218672/likelihoodResults_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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) = 15697.6352743
delta logL = 0.00131113490534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15697.6352314
delta logL = 0.00135398714156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14061       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2525       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93747       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15697.64     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14056        .43693        .13511E-04** at limit **
   2  alpha         2.2537        1.5251        .67962E-01    .15192E-04
   3  Normalizat    1.0470        .21293        .47353E-03   -.21127E-05
   4  Prefactor     .93748        .64556E-01    .14977E-03   -.18701E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.140561
  alpha      = 2.25373
  Normalizat = 1.04696
  Prefactor  = 0.937484
 **********
 **   18 **HESSE 
 **********

 FCN=   15697.64     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14056        .42134        .54043E-06   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2537        1.4824        .27185E-02   -.98670E-01
   3  Normalizat    1.0470        .21303        .18941E-04   -.91473    
   4  Prefactor     .93748        .64569E-01    .29954E-04   -.94843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31805e-10
Minuit parameter uncertainties:
  1  0.421342
  2  1.58812
  3  0.213205
  4  0.0645741
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) = 15697.6352311
delta logL = 0.00135432761454

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.406e-01  4.213e-01  0.000e+00  1.000e+06 ( 1.000e-11)
369        alpha:  2.254e+00  1.588e+00  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.375e-01  6.457e-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:  1.047e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 329.386 31.455

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/34218672/cmap_HighResolution_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2026-08-04 22:46:50.498407', job_id='34218672', GAL2='0.94', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1785908810.5', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.35e-03', ts2='0.13', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='2191' AND source_name='4FGL J2157.5+3127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug  4 22:46:50 PDT 2026

t1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits evtable="EVENTS" scfile=/lscratch/kocevski/34218783/ft2_4FGL_J2157.5+3127_daily_bin2191.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/34218783/Model_4FGL_J2157.5+3127_daily_bin2191.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/34218783/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits.....................!
real 96.33
user 94.50
sys 0.64

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34218783/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits', '/lscratch/kocevski/34218783/ft2_4FGL_J2157.5+3127_daily_bin2191.fits', expMap='/lscratch/kocevski/34218783/expmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits', expCube='/lscratch/kocevski/34218783/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34218783/Model_4FGL_J2157.5+3127_daily_bin2191.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/34218783/ft1_filtered_4FGL_J2157.5+3127_daily_bin2191.fits
Spacecraft file(s): /lscratch/kocevski/34218783/ft2_4FGL_J2157.5+3127_daily_bin2191.fits
Exposure map: /lscratch/kocevski/34218783/expmap_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits
Exposure cube: /lscratch/kocevski/34218783/ltcube_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34218783/Model_4FGL_J2157.5+3127_daily_bin2191.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) = 15697.6411062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.243       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.5987       1.0000          .0000       .10000E+07
     3 'norm      '    5.2792       1.0000          .0000       .10000E+07
     4 'norm      '    1.3149       1.0000          .0000       .10000E+07
     5 'norm      '    .11228E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    100.58       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11469       1.0000          .0000       .10000E+07
     8 'norm      '    .14008       1.0000          .0000       .10000E+07
     9 'Prefactor '    .45991E-02   1.0000          .0000       .10000E+07
    10 'norm      '    2.5482       1.0000          .0000       .10000E+07
    11 'Prefactor '    15.099       1.0000          .0000       .10000E+07
    12 'Prefactor '    15.208       1.0000          .0000       .10000E+07
    13 'Prefactor '    .29873E-03   1.0000          .0000       .10000E+07
    14 'norm      '    4.9809       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.0465       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .93731       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=   15697.64     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1713 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.307        27.270       -.63207E-06    .80823E-03
   2  Prefactor     3.5417        4.6057        .41192E-06   -.23999E-02
   3  norm          5.3341        4.3549       -.52066E-08   -.16691E-02
   4  norm          1.3147        .92461        .26915E-07   -.46720E-03
   5  norm          .94369E-09    14.185        .11649E-05** at limit **
   6  Prefactor     89.129        284.89       -.79081E-06   -.64046E-05
   7  Prefactor     .11102E-09    22.462       -.31132E-06** at limit **
   8  norm          .14061        .42412        .22344E-06** at limit **
   9  Prefactor     .55511E-10    18.850       -.28993E-06** at limit **
  10  norm          2.5481        .72085        .15614E-06   -.50035E-01
  11  Prefactor     15.007        23.453        .16425E-06   -.95710E-03
  12  Prefactor     15.141        17.993        .32944E-06   -.86326E-03
  13  Prefactor     .55511E-09    7.9554        .86736E-06** at limit **
  14  norm          4.9789        1.3606        .34618E-07   -.50029E-02
  15  Normalizat    1.0475        .22205        .13606E-04   -.16493E-03
  16  Prefactor     .93741        .66401E-01   -.42960E-05   -.13398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.3071
  Prefactor  = 3.54173
  norm       = 5.3341
  norm       = 1.31474
  norm       = 9.4369e-10
  Prefactor  = 89.1287
  Prefactor  = 1.11022e-10
  norm       = 0.140611
  Prefactor  = 5.55112e-11
  norm       = 2.54813
  Prefactor  = 15.0066
  Prefactor  = 15.1406
  Prefactor  = 5.55112e-10
  norm       = 4.97888
  Normalizat = 1.04754
  Prefactor  = 0.937407
 **********
 **   18 **HESSE 
 **********

 FCN=   15697.64     FROM HESSE     STATUS=OK           249 CALLS     1962 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.307        27.296        .19162E-03   -1.5603    
   2  Prefactor     3.5417        4.6353        .53241E-03   -1.5670    
   3  norm          5.3341        4.3830        .43721E-03   -1.5662    
   4  norm          1.3147        .91322        .96033E-03   -1.5685    
   5  norm          .94369E-09    13.724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     89.129        285.82        .99715E-04   -1.5519    
   7  Prefactor     .11102E-09    4.4202        .82286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .14061        .43044        .12958E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    18.951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5481        .72085        .63940E-03   -1.5676    
  11  Prefactor     15.007        23.448        .25749E-03   -1.5630    
  12  Prefactor     15.141        17.962        .25656E-03   -1.5630    
  13  Prefactor     .55511E-09    7.9589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9789        1.3608        .45037E-03   -1.5663    
  15  Normalizat    1.0475        .20314        .10680       -.91454    
  16  Prefactor     .93741        .59705E-01    .33896E-01   -.94846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53584e-07
Minuit parameter uncertainties:
  1  27.2965
  2  4.63534
  3  4.383
  4  0.913216
  5  0.000228118
  6  285.868
  7  3.8694e-05
  8  0.430437
  9  6.0893e-05
  10  0.720851
  11  23.4477
  12  17.9618
  13  0.000133254
  14  1.36081
  15  0.203292
  16  0.0597092
Done.

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

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.406e-01  4.304e-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.374e-01  5.971e-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:  1.048e+00  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/34218783/likelihoodResults_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.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) = 15697.6352743
delta logL = 0.00131113490534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15697.6352314
delta logL = 0.00135398714156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14061       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2525       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93747       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15697.64     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14056        .43693        .13511E-04** at limit **
   2  alpha         2.2537        1.5251        .67962E-01    .15192E-04
   3  Normalizat    1.0470        .21293        .47353E-03   -.21127E-05
   4  Prefactor     .93748        .64556E-01    .14977E-03   -.18701E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.140561
  alpha      = 2.25373
  Normalizat = 1.04696
  Prefactor  = 0.937484
 **********
 **   18 **HESSE 
 **********

 FCN=   15697.64     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14056        .42134        .54043E-06   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2537        1.4824        .27185E-02   -.98670E-01
   3  Normalizat    1.0470        .21303        .18941E-04   -.91473    
   4  Prefactor     .93748        .64569E-01    .29954E-04   -.94843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31805e-10
Minuit parameter uncertainties:
  1  0.421342
  2  1.58812
  3  0.213205
  4  0.0645741
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) = 15697.6352311
delta logL = 0.00135432761454

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.406e-01  4.213e-01  0.000e+00  1.000e+06 ( 1.000e-11)
369        alpha:  2.254e+00  1.588e+00  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.375e-01  6.457e-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:  1.047e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 329.386 31.455

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/34218783/cmap_HighResolution_807235201_807494401_4FGL_J2157.5+3127_daily_bin2191.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2026-08-04 22:49:21.197852', job_id='34218783', GAL2='0.94', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1785908961.2', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.35e-03', ts2='0.13', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='2191' AND source_name='4FGL J2157.5+3127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug  4 22:49:21 PDT 2026

