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


Performing analysis on: 4FGL_J2129.9+1208_weekly_bin877
RA = 322.482, Dec = 12.1439
tmin = 769392001, tmax = 769996801
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='5401958', job_status='RUN', time_executed='2025-05-27 02:34:35.685261', time_epoch_executed='1748338475.69' WHERE source_name='4FGL J2129.9+1208' and cadence='weekly' and bin_id='877'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/5401958

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/5401958/ft1_4FGL_J2129.9+1208_weekly_bin877.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/5401958/ft2_4FGL_J2129.9+1208_weekly_bin877.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/5401958/ft1_4FGL_J2129.9+1208_weekly_bin877.fits outfile=/lscratch/kocevski/5401958/ft1_filteredMKT_4FGL_J2129.9+1208_weekly_bin877.fits ra=322.482 dec=12.1439 rad=12.0 tmin=769392001.0 tmax=769996801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.03
user 3.86
sys 0.30

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

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

Number of photons that the gtmktime cut: 1802

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/5401958/ft1_filtered_4FGL_J2129.9+1208_weekly_bin877.fits" evtable="EVENTS" scfile=/lscratch/kocevski/5401958/ft2_4FGL_J2129.9+1208_weekly_bin877.fits sctable="SC_DATA" outfile=/lscratch/kocevski/5401958/ltcube_769392001_769996801_4FGL_J2129.9+1208_weekly_bin877.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/5401958/ft2_4FGL_J2129.9+1208_weekly_bin877.fits
.....................!
real 16.49
user 15.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/5401958/ft1_filtered_4FGL_J2129.9+1208_weekly_bin877.fits evtable="EVENTS" scfile=/lscratch/kocevski/5401958/ft2_4FGL_J2129.9+1208_weekly_bin877.fits sctable="SC_DATA" expcube=/lscratch/kocevski/5401958/ltcube_769392001_769996801_4FGL_J2129.9+1208_weekly_bin877.fits outfile=/lscratch/kocevski/5401958/expmap_769392001_769996801_4FGL_J2129.9+1208_weekly_bin877.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/5401958/ltcube_769392001_769996801_4FGL_J2129.9+1208_weekly_bin877.fits
.....................!
real 60.56
user 55.97
sys 3.52

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/5401958/ft1_filtered_4FGL_J2129.9+1208_weekly_bin877.fits scfile=/lscratch/kocevski/5401958/ft2_4FGL_J2129.9+1208_weekly_bin877.fits outfile=/lscratch/kocevski/5401958/cmap_769392001_769996801_4FGL_J2129.9+1208_weekly_bin877.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 1.03
user 0.20
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/5401958/ft1_filtered_4FGL_J2129.9+1208_weekly_bin877.fits scfile=/lscratch/kocevski/5401958/ft2_4FGL_J2129.9+1208_weekly_bin877.fits outfile=/lscratch/kocevski/5401958/cmap_HighResolution_769392001_769996801_4FGL_J2129.9+1208_weekly_bin877.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 1.37
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/5401958/ft1_filtered_4FGL_J2129.9+1208_weekly_bin877.fits evtable="EVENTS" scfile=/lscratch/kocevski/5401958/ft2_4FGL_J2129.9+1208_weekly_bin877.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/5401958/Model_4FGL_J2129.9+1208_weekly_bin877.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/5401958/ft1_filtered_4FGL_J2129.9+1208_weekly_bin877.fits.....................!
real 82.63
user 80.63
sys 0.59

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/5401958/ft1_filtered_4FGL_J2129.9+1208_weekly_bin877.fits', '/lscratch/kocevski/5401958/ft2_4FGL_J2129.9+1208_weekly_bin877.fits', expMap='/lscratch/kocevski/5401958/expmap_769392001_769996801_4FGL_J2129.9+1208_weekly_bin877.fits', expCube='/lscratch/kocevski/5401958/ltcube_769392001_769996801_4FGL_J2129.9+1208_weekly_bin877.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/5401958/Model_4FGL_J2129.9+1208_weekly_bin877.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/5401958/ft1_filtered_4FGL_J2129.9+1208_weekly_bin877.fits
Spacecraft file(s): /lscratch/kocevski/5401958/ft2_4FGL_J2129.9+1208_weekly_bin877.fits
Exposure map: /lscratch/kocevski/5401958/expmap_769392001_769996801_4FGL_J2129.9+1208_weekly_bin877.fits
Exposure cube: /lscratch/kocevski/5401958/ltcube_769392001_769996801_4FGL_J2129.9+1208_weekly_bin877.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/5401958/Model_4FGL_J2129.9+1208_weekly_bin877.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) = 19262.0455227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.313       1.0000          .0000       .10000E+07
     2 'norm      '    .36226E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.766       1.0000          .0000       .10000E+07
     4 'Prefactor '    14.439       1.0000          .0000       .10000E+07
     5 'Prefactor '    .78032E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .78178E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    12.497       1.0000          .0000       .10000E+07
     8 'norm      '    1.7665       1.0000          .0000       .10000E+07
     9 'Prefactor '    18.295       1.0000          .0000       .10000E+07
    10 'Prefactor '    .18243E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .20394E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    32.207       1.0000          .0000       .10000E+07
    13 'norm      '    .39835E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .17843E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .97083E-06   1.0000          .0000       .10000E+07
    16 'norm      '    .82804E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10321E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    13.017       1.0000          .0000       .10000E+07
    19 'Prefactor '    23.661       1.0000          .0000       .10000E+07
    20 'norm      '    .53793       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0305       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89812       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19262.00     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2160 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.495        20.278       -.54758E-06   -.10221E-03
   2  norm           .0000        1.3639       -.11709E-08** at limit **
   3  Prefactor     13.750        10.572       -.67086E-06   -.29543E-03
   4  Prefactor     14.447        8.1492       -.15753E-06   -.23283E-03
   5  Prefactor      .0000        3.5545        .15046E-07** at limit **
   6  Prefactor      .0000        3.0099       -.11927E-07** at limit **
   7  Prefactor     12.432        20.094        .25552E-06    .22838E-03
   8  norm          1.7663        2.1908       -.80768E-07   -.18324E-01
   9  Prefactor     18.280        15.078       -.14776E-05   -.58156E-03
  10  Prefactor      .0000        .73578       -.93538E-09** at limit **
  11  Prefactor     .33867E-06    9.5056        .18385E-06** at limit **
  12  Prefactor     32.539        37.870        .59609E-06    .63846E-04
  13  norm           .0000        .67910       -.19297E-08** at limit **
  14  Prefactor      .0000        14.159       -.82398E-08** at limit **
  15  norm           .0000        .36491       -.23506E-08** at limit **
  16  norm           .0000        6.9824        .35053E-07** at limit **
  17  Prefactor      .0000        1.7993       -.20531E-08** at limit **
  18  Prefactor     12.986        13.625       -.48918E-06   -.22260E-03
  19  Prefactor     23.653        30.012        .84613E-06    .90106E-04
  20  norm          .53765        .42470       -.15742E-07   -.18809E-01
  21  Normalizat    1.0307        .13705        .35198E-05   -.25005E-03
  22  Prefactor     .89803        .60086E-01    .26042E-06    .14652E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.4948
  norm       = 0
  Prefactor  = 13.7497
  Prefactor  = 14.4468
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 12.4322
  norm       = 1.76632
  Prefactor  = 18.2797
  Prefactor  = 0
  Prefactor  = 3.38674e-07
  Prefactor  = 32.5392
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 12.9857
  Prefactor  = 23.6527
  norm       = 0.537654
  Normalizat = 1.03072
  Prefactor  = 0.898027
 **********
 **   18 **HESSE 
 **********

 FCN=   19262.00     FROM HESSE     STATUS=OK           344 CALLS     2504 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.495        20.297        .99084E-05   -1.5627    
   2  norm           .0000        1.3652        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.750        10.574        .10788E-04   -1.5634    
   4  Prefactor     14.447        8.1481        .10533E-04   -1.5632    
   5  Prefactor      .0000        3.5559        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        3.0103        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.432        20.018        .11324E-04   -1.5637    
   8  norm          1.7663        2.1799        .21610E-04   -1.5681    
   9  Prefactor     18.280        15.073        .93553E-05   -1.5622    
  10  Prefactor      .0000        .73676        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .33867E-06    93.999        .82262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.539        37.870        .70492E-05   -1.5594    
  13  norm           .0000        .68906        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        14.289        .34366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        .36669        .81856E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        7.0015        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        1.8025        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.986        13.607        .11095E-04   -1.5636    
  19  Prefactor     23.653        30.000        .82252E-05   -1.5611    
  20  norm          .53765        .42090        .77476E-05   -1.5693    
  21  Normalizat    1.0307        .16298        .34066E-03   -.92008    
  22  Prefactor     .89803        .72687E-01    .16252E-03   -.96210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63424e-09
Minuit parameter uncertainties:
  1  20.2967
  2  8.18233e-07
  3  10.5744
  4  8.14808
  5  4.72977e-06
  6  2.57572e-06
  7  20.0176
  8  2.1799
  9  15.0735
  10  4.12951e-07
  11  0.0112846
  12  37.8702
  13  1.36466e-06
  14  2.86762e-05
  15  1.16393e-06
  16  1.10131e-05
  17  2.96861e-06
  18  13.6072
  19  30.0003
  20  0.420902
  21  0.163062
  22  0.0726944
Done.

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

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  0.000e+00  4.130e-07  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:  8.980e-01  7.269e-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:  1.031e+00  1.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 322.482 12.144
Photon Flux Upper Limit: 3.14593671222e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00246468099537 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/5401958/likelihoodResults_769392001_769996801_4FGL_J2129.9+1208_weekly_bin877.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) = 19262.0025451
delta logL = -0.00109928142047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 19262.0014462
delta logL = -3.42333805747e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56732E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.6119       1.0000          .0000       10.000    
     3 'Normalizat'    1.0307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89801       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   19262.00     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      230 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .73140        .42118E-03** at limit **
   2  Index         1.7128        1.0646       -.62903E-04     .0000    
   3  Normalizat    1.0307        1.2364        .14900E-04    .44229E-04
   4  Prefactor     .89803        1.2430       -.63441E-05    .22352E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.71279
  Normalizat = 1.03072
  Prefactor  = 0.898026
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   19262.00     FROM HESSE     STATUS=FAILED         9 CALLS      239 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .73140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .29189        1.5549       -.62903E-04   -.71742    
   3  Normalizat    1.0307        1.2364        .14900E-04   -.92008    
   4  Prefactor     .89803        1.2430       -.63441E-05   -.96210    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.096e-11
Minuit parameter uncertainties:
  1  7.06078e-07
  2  1.07926
  3  1.27371
  4  1.28596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 19262.0014459
delta logL = 1.27329258248e-10

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  0.000e+00  7.061e-07  0.000e+00  1.000e+06 ( 1.000e-12)
302        Index:  1.713e+00  1.079e+00  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:  8.980e-01  1.286e+00  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:  1.031e+00  1.274e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 322.482 12.144

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/5401958/cmap_HighResolution_769392001_769996801_4FGL_J2129.9+1208_weekly_bin877.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.46e-03', job_status='DONE', photon_flux_upper_limit='3.15e-08', time_completed='2025-05-27 02:48:36.696975', job_id='5401958', GAL2='0.90', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1748339316.7', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.27e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='877' AND source_name='4FGL J2129.9+1208' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 27 02:48:37 PDT 2025

