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


Performing analysis on: 4FGL_J2129.9+1208_weekly_bin908
RA = 322.482, Dec = 12.1439
tmin = 788140801, tmax = 788745601
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='18161698', job_status='RUN', time_executed='2025-12-30 02:51:37.939295', time_epoch_executed='1767091897.94' WHERE source_name='4FGL J2129.9+1208' and cadence='weekly' and bin_id='908'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18161698

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18161698/ft1_4FGL_J2129.9+1208_weekly_bin908.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18161698/ft2_4FGL_J2129.9+1208_weekly_bin908.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18161698/ft1_4FGL_J2129.9+1208_weekly_bin908.fits outfile=/lscratch/kocevski/18161698/ft1_filteredMKT_4FGL_J2129.9+1208_weekly_bin908.fits ra=322.482 dec=12.1439 rad=12.0 tmin=788140801.0 tmax=788745601.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 4.47
user 3.74
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18161698/ft2_4FGL_J2129.9+1208_weekly_bin908.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18161698/ft2_4FGL_J2129.9+1208_weekly_bin908.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/18161698/ft1_filteredMKT_4FGL_J2129.9+1208_weekly_bin908.fits evtable="EVENTS" outfile="/lscratch/kocevski/18161698/ft1_filtered_4FGL_J2129.9+1208_weekly_bin908.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.72
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 1607

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18161698/ft1_filtered_4FGL_J2129.9+1208_weekly_bin908.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18161698/ft2_4FGL_J2129.9+1208_weekly_bin908.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18161698/ltcube_788140801_788745601_4FGL_J2129.9+1208_weekly_bin908.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/18161698/ft2_4FGL_J2129.9+1208_weekly_bin908.fits
.....................!
real 15.90
user 15.21
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18161698/ft1_filtered_4FGL_J2129.9+1208_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18161698/ft2_4FGL_J2129.9+1208_weekly_bin908.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18161698/ltcube_788140801_788745601_4FGL_J2129.9+1208_weekly_bin908.fits outfile=/lscratch/kocevski/18161698/expmap_788140801_788745601_4FGL_J2129.9+1208_weekly_bin908.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/18161698/ltcube_788140801_788745601_4FGL_J2129.9+1208_weekly_bin908.fits
.....................!
real 60.31
user 56.18
sys 3.53

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.
Added 176 point sources and 1 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 J2129.9+1208 @ 322.482 12.1439

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18161698/ft1_filtered_4FGL_J2129.9+1208_weekly_bin908.fits scfile=/lscratch/kocevski/18161698/ft2_4FGL_J2129.9+1208_weekly_bin908.fits outfile=/lscratch/kocevski/18161698/cmap_788140801_788745601_4FGL_J2129.9+1208_weekly_bin908.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=322.482 yref=12.1439 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.53
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18161698/ft1_filtered_4FGL_J2129.9+1208_weekly_bin908.fits scfile=/lscratch/kocevski/18161698/ft2_4FGL_J2129.9+1208_weekly_bin908.fits outfile=/lscratch/kocevski/18161698/cmap_HighResolution_788140801_788745601_4FGL_J2129.9+1208_weekly_bin908.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=322.482 yref=12.1439 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.53
user 0.22
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18161698/ft1_filtered_4FGL_J2129.9+1208_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18161698/ft2_4FGL_J2129.9+1208_weekly_bin908.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18161698/Model_4FGL_J2129.9+1208_weekly_bin908.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 Loop
adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/18161698/ft1_filtered_4FGL_J2129.9+1208_weekly_bin908.fits.....................!
real 78.09
user 76.26
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18161698/ft1_filtered_4FGL_J2129.9+1208_weekly_bin908.fits', '/lscratch/kocevski/18161698/ft2_4FGL_J2129.9+1208_weekly_bin908.fits', expMap='/lscratch/kocevski/18161698/expmap_788140801_788745601_4FGL_J2129.9+1208_weekly_bin908.fits', expCube='/lscratch/kocevski/18161698/ltcube_788140801_788745601_4FGL_J2129.9+1208_weekly_bin908.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18161698/Model_4FGL_J2129.9+1208_weekly_bin908.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2129.9+1208'

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  1.210e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
302        Index:  2.618e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  6.533e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18161698/ft1_filtered_4FGL_J2129.9+1208_weekly_bin908.fits
Spacecraft file(s): /lscratch/kocevski/18161698/ft2_4FGL_J2129.9+1208_weekly_bin908.fits
Exposure map: /lscratch/kocevski/18161698/expmap_788140801_788745601_4FGL_J2129.9+1208_weekly_bin908.fits
Exposure cube: /lscratch/kocevski/18161698/ltcube_788140801_788745601_4FGL_J2129.9+1208_weekly_bin908.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18161698/Model_4FGL_J2129.9+1208_weekly_bin908.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) = 17884.7229152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19191E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .17908E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    8.6724       1.0000          .0000       .10000E+07
     4 'Prefactor '    21.927       1.0000          .0000       .10000E+07
     5 'Prefactor '    .16046E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    11.822       1.0000          .0000       .10000E+07
     7 'Prefactor '    .81785E-03   1.0000          .0000       .10000E+07
     8 'norm      '    2.1116       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.6574       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.0650       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.2545       1.0000          .0000       .10000E+07
    12 'Prefactor '    55.348       1.0000          .0000       .10000E+07
    13 'norm      '    4.3344       1.0000          .0000       .10000E+07
    14 'Prefactor '    22.574       1.0000          .0000       .10000E+07
    15 'norm      '    .10498E-04   1.0000          .0000       .10000E+07
    16 'norm      '    6.1333       1.0000          .0000       .10000E+07
    17 'Prefactor '    .83925E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    8.8510       1.0000          .0000       .10000E+07
    19 'Prefactor '    .25300E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .21927E-07   1.0000          .0000       .10000E+07
    21 'Normalizat'    .78548       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94450       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17884.72     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1767 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    19.668        .10106E-05** at limit **
   2  norm          .26645E-08    4.2997       -.22454E-06** at limit **
   3  Prefactor     8.6591        9.1369       -.61762E-07    .21960E-03
   4  Prefactor     21.922        10.627        .14500E-06   -.41083E-01
   5  Prefactor     .36748E-07    12.629       -.36131E-06** at limit **
   6  Prefactor     11.811        5.0943       -.18422E-06   -.81315E-01
   7  Prefactor     .15321E-07    89.325       -.17041E-05** at limit **
   8  norm          2.1109        1.8273       -.13144E-06    .24151E-02
   9  Prefactor     9.6560        2.5872       -.14184E-07   -.21067E-02
  10  Prefactor     5.0561        4.0780       -.65826E-07    .10804E-02
  11  Prefactor     2.8906        59.692       -.17578E-06   -.11337E-01
  12  Prefactor     55.443        2.9537        .12159E-07   -.22057E-01
  13  norm          4.3340        1.6566       -.24841E-07    .11771E-02
  14  Prefactor     22.507        5.3556       -.51036E-07    .14932E-01
  15  norm          .11102E-08    4.9712       -.12137E-07** at limit **
  16  norm          6.0956        12.167       -.60394E-06    .83452E-02
  17  Prefactor      .0000        1.6599        .11130E-06** at limit **
  18  Prefactor     8.7455        9.4971       -.17707E-06    .55494E-01
  19  Prefactor     .88263E-08    11.924        .60241E-06** at limit **
  20  norm           .0000        .13712       -.49242E-07** at limit **
  21  Normalizat    .78642        .18176        .56560E-05    .75427E-04
  22  Prefactor     .94428        .75375E-01   -.28724E-05    .31071E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  norm       = 2.66454e-09
  Prefactor  = 8.65915
  Prefactor  = 21.9217
  Prefactor  = 3.67484e-08
  Prefactor  = 11.8115
  Prefactor  = 1.53211e-08
  norm       = 2.11088
  Prefactor  = 9.65602
  Prefactor  = 5.05607
  Prefactor  = 2.89063
  Prefactor  = 55.4431
  norm       = 4.33396
  Prefactor  = 22.5066
  norm       = 1.11022e-09
  norm       = 6.0956
  Prefactor  = 0
  Prefactor  = 8.7455
  Prefactor  = 8.82627e-09
  norm       = 0
  Normalizat = 0.786421
  Prefactor  = 0.944283
 **********
 **   18 **HESSE 
 **********

 FCN=   17884.72     FROM HESSE     STATUS=OK           392 CALLS     2159 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    19.401        .17090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .26645E-08    4.2885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.6591        9.1431        .34014E-03   -1.5649    
   4  Prefactor     21.922        11.936        .21361E-03   -1.5614    
   5  Prefactor     .36748E-07    13.183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.811        11.097        .29110E-03   -1.5639    
   7  Prefactor     .15321E-07    88.495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1109        1.8312        .70965E-03   -1.5679    
   9  Prefactor     9.6560        14.009        .32222E-03   -1.5646    
  10  Prefactor     5.0561        4.0828        .44654E-03   -1.5663    
  11  Prefactor     2.8906        73.491        .56114E-03   -1.5674    
  12  Prefactor     55.443        49.267        .13442E-03   -1.5559    
  13  norm          4.3340        1.7441        .48360E-03   -1.5666    
  14  Prefactor     22.507        35.200        .21053E-03   -1.5613    
  15  norm          .11102E-08    .74099        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.0956        13.299        .40515E-03   -1.5659    
  17  Prefactor      .0000        1.6619        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.7455        20.723        .33667E-03   -1.5649    
  19  Prefactor     .88263E-08    12.529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        .13666        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .78642        .16094        .88473E-01   -1.0057    
  22  Prefactor     .94428        .63456E-01    .45570E-01   -.94610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1488e-07
Minuit parameter uncertainties:
  1  0.000162298
  2  0.000213913
  3  9.14309
  4  11.9365
  5  0.0013922
  6  11.0968
  7  0.00232866
  8  1.83123
  9  14.0093
  10  4.08284
  11  29.1508
  12  49.2672
  13  1.7441
  14  35.2004
  15  5.74995e-05
  16  13.2994
  17  2.05713e-06
  18  20.7232
  19  0.000664904
  20  6.84795e-07
  21  0.161033
  22  0.0634608
Done.

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

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  5.056e+00  4.083e+00  0.000e+00  1.000e+06 ( 1.000e-12)
302        Index:  2.618e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  6.533e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  9.443e-01  6.346e-02  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  7.864e-01  1.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.25
Ra Dec: 322.482 12.144
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 4.26e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 8.87e-06

TS (Fixed Index): 2.25
Ra Dec: 322.482 12.144
Photon Flux Upper Limit: 1.09698428965e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0085943125315 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18161698/likelihoodResults_788140801_788745601_4FGL_J2129.9+1208_weekly_bin908.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) = 17884.71744
delta logL = 0.00252769583676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17884.7167186
delta logL = 0.0032490700396

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9207       1.0000          .0000       .10000E+07
     2 'Index     '    2.6813       1.0000          .0000       10.000    
     3 'Normalizat'    .78296       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94527       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17884.72     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9198        73.381        .45317E-03    .81934E-02
   2  Index         2.6817        3.6629        .22946        .14638E-03
   3  Normalizat    .78293        .48586E-01    .88654E-01    .85585E-04
   4  Prefactor     .94530        .18763E-01    .45579E-01   -.61215E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.91976
  Index      = 2.68171
  Normalizat = 0.782931
  Prefactor  = 0.945301
 **********
 **   18 **HESSE 
 **********

 FCN=   17884.72     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9198        4.6632        .18127E-04   -1.5664    
   2  Index         2.6817        .85382        .12500E-01   -.48212    
   3  Normalizat    .78293        .17639        .39266E-03   -1.0070    
   4  Prefactor     .94530        .75702E-01    .15802E-03   -.94576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8177e-11
Minuit parameter uncertainties:
  1  4.66321
  2  0.859194
  3  0.176514
  4  0.0757102
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) = 17884.7167183
delta logL = 0.00324935247409

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  4.920e+00  4.663e+00  0.000e+00  1.000e+06 ( 1.000e-12)
302        Index:  2.682e+00  8.592e-01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  6.533e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  9.453e-01  7.571e-02  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  7.829e-01  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.26
Ra Dec: 322.482 12.144
Photon Index (Free Index): 2.68 +/- 0.86
Photon Flux (Free Index): 4.49e-08 +/- 4.41e-08
Energy Flux (Free Index): 1.10e-05 +/- 8.78e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/18161698/cmap_HighResolution_788140801_788745601_4FGL_J2129.9+1208_weekly_bin908.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.59e-03', comment='SUCCESS', photon_flux='4.26e-08', energy_flux2='1.10e-05', photon_flux_error='3.43e-08', dlogl='3.25e-03', energy_flux='1.10e-05', photon_flux2='4.49e-08', job_status='DONE', time_completed='2025-12-30 03:03:23.715055', photon_index_error2='0.86', photon_index2='2.68', ts='2.25', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='8.78e-06', EG='0.79', time_epoch_completed='1767092603.72', return_code='0', job_id='18161698', GAL2='0.95', EG2='0.78', return_code2='0', energy_flux_error='8.87e-06', photon_flux_error2='4.41e-08', ts2='2.26', photon_index='2.62' WHERE bin_id='908' AND source_name='4FGL J2129.9+1208' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 30 03:03:23 PST 2025

