/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

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


Performing analysis on: 4FGL_J1129.5+3034_weekly_bin906
RA = 172.38, Dec = 30.5789
tmin = 786931201, tmax = 787536001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='17378483', job_status='RUN', time_executed='2025-12-16 02:15:39.094251', time_epoch_executed='1765880139.09' WHERE source_name='4FGL J1129.5+3034' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17378483

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17378483/ft1_4FGL_J1129.5+3034_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17378483/ft2_4FGL_J1129.5+3034_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17378483/ft1_4FGL_J1129.5+3034_weekly_bin906.fits outfile=/lscratch/kocevski/17378483/ft1_filteredMKT_4FGL_J1129.5+3034_weekly_bin906.fits ra=172.38 dec=30.5789 rad=12.0 tmin=786931201.0 tmax=787536001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.84
user 5.01
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17378483/ft2_4FGL_J1129.5+3034_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17378483/ft2_4FGL_J1129.5+3034_weekly_bin906.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/17378483/ft1_filteredMKT_4FGL_J1129.5+3034_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17378483/ft1_filtered_4FGL_J1129.5+3034_weekly_bin906.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.87
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 1595

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17378483/ft1_filtered_4FGL_J1129.5+3034_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17378483/ft2_4FGL_J1129.5+3034_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17378483/ltcube_786931201_787536001_4FGL_J1129.5+3034_weekly_bin906.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/17378483/ft2_4FGL_J1129.5+3034_weekly_bin906.fits
.....................!
real 18.21
user 17.37
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17378483/ft1_filtered_4FGL_J1129.5+3034_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378483/ft2_4FGL_J1129.5+3034_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17378483/ltcube_786931201_787536001_4FGL_J1129.5+3034_weekly_bin906.fits outfile=/lscratch/kocevski/17378483/expmap_786931201_787536001_4FGL_J1129.5+3034_weekly_bin906.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/17378483/ltcube_786931201_787536001_4FGL_J1129.5+3034_weekly_bin906.fits
.....................!
real 66.93
user 62.31
sys 3.66

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1129.5+3034 @ 172.38 30.5789

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17378483/ft1_filtered_4FGL_J1129.5+3034_weekly_bin906.fits scfile=/lscratch/kocevski/17378483/ft2_4FGL_J1129.5+3034_weekly_bin906.fits outfile=/lscratch/kocevski/17378483/cmap_786931201_787536001_4FGL_J1129.5+3034_weekly_bin906.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=172.38 yref=30.5789 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.86
user 0.25
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17378483/ft1_filtered_4FGL_J1129.5+3034_weekly_bin906.fits scfile=/lscratch/kocevski/17378483/ft2_4FGL_J1129.5+3034_weekly_bin906.fits outfile=/lscratch/kocevski/17378483/cmap_HighResolution_786931201_787536001_4FGL_J1129.5+3034_weekly_bin906.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=172.38 yref=30.5789 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.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17378483/ft1_filtered_4FGL_J1129.5+3034_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378483/ft2_4FGL_J1129.5+3034_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17378483/Model_4FGL_J1129.5+3034_weekly_bin906.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17378483/ft1_filtered_4FGL_J1129.5+3034_weekly_bin906.fits.....................!
real 51.80
user 49.90
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17378483/ft1_filtered_4FGL_J1129.5+3034_weekly_bin906.fits', '/lscratch/kocevski/17378483/ft2_4FGL_J1129.5+3034_weekly_bin906.fits', expMap='/lscratch/kocevski/17378483/expmap_786931201_787536001_4FGL_J1129.5+3034_weekly_bin906.fits', expCube='/lscratch/kocevski/17378483/ltcube_786931201_787536001_4FGL_J1129.5+3034_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17378483/Model_4FGL_J1129.5+3034_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1129.5+3034'

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  2.468e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17378483/ft1_filtered_4FGL_J1129.5+3034_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17378483/ft2_4FGL_J1129.5+3034_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17378483/expmap_786931201_787536001_4FGL_J1129.5+3034_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17378483/ltcube_786931201_787536001_4FGL_J1129.5+3034_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17378483/Model_4FGL_J1129.5+3034_weekly_bin906.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8097       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.4042       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.2598       1.0000          .0000       .10000E+07
     4 'Prefactor '    11.542       1.0000          .0000       .10000E+07
     5 'norm      '    1.1248       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.6492       1.0000          .0000       .10000E+07
     7 'Prefactor '    24.693       1.0000          .0000       .10000E+07
     8 'Prefactor '    .20393E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .48961E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    9.8675       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.6468       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.2743       1.0000          .0000       .10000E+07
    13 'Prefactor '    21.254       1.0000          .0000       .10000E+07
    14 'Prefactor '    10.820       1.0000          .0000       .10000E+07
    15 'norm      '    6.1404       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.0651       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.1102       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.3345       1.0000          .0000       .10000E+07
    19 'norm      '    3.2682       1.0000          .0000       .10000E+07
    20 'Prefactor '    3.3883       1.0000          .0000       .10000E+07
    21 'Prefactor '    .75113       1.0000          .0000       .10000E+07
    22 'Prefactor '    .47027E-03   1.0000          .0000       .10000E+07
    23 'norm      '    13.692       1.0000          .0000       .10000E+07
    24 'norm      '    1.7498       1.0000          .0000       .10000E+07
    25 'Prefactor '    .21198E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    2.2916       1.0000          .0000       .10000E+07
    27 'Prefactor '    .33367       1.0000          .0000       .10000E+07
    28 'Normalizat'    .94280       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99222       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17602.32     FROM MIGRAD    STATUS=CONVERGED    152 CALLS     2072 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8209        1.6769       -.12966E-06    .67309E-02
   2  Prefactor     3.4270        4.6445       -.96036E-07    .21303E-02
   3  Prefactor     2.2504        5.2149        .43696E-07   -.84985E-03
   4  Prefactor     11.429        11.732        .19225E-05   -.70018E-03
   5  norm          1.1244        .19309        .23730E-09    .23463E-01
   6  Prefactor     2.6496        1.7385       -.29934E-07    .68993E-03
   7  Prefactor     24.741        8.9844        .44899E-06    .11449E-02
   8  Prefactor     .72164E-09    15.912        .26222E-06** at limit **
   9  norm           .0000        2.3826       -.70248E-07** at limit **
  10  Prefactor     9.8780        4.7048        .41824E-07    .64257E-03
  11  Prefactor     5.6462        5.4404        .24150E-08   -.15228E-03
  12  Prefactor     1.2751        1.5395        .68671E-08   -.29723E-02
  13  Prefactor     21.182        1.0374       -.20261E-07    .18561E-02
  14  Prefactor     10.875        4.0325        .25751E-06   -.46534E-02
  15  norm          6.1510        1.9169        .53742E-08    .19184E-03
  16  Prefactor     2.0352        6.2153       -.13598E-06    .34137E-03
  17  Prefactor     1.1002        3.5685        .84929E-07    .26874E-03
  18  Prefactor     2.3263        59.575       -.98876E-06   -.27672E-03
  19  norm          3.2803        .84942        .32613E-07    .10232E-01
  20  Prefactor     3.3883        8.2595        .27255E-05    .40219E-03
  21  Prefactor     .75100        .80489       -.43377E-07    .37609E-02
  22  Prefactor     .34417E-08    16.820       -.96562E-06** at limit **
  23  norm          13.692        1.3924       -.50890E-09   -.52502E-02
  24  norm          1.7490        1.2646       -.52538E-07   -.45571E-02
  25  Prefactor     .16653E-09    2.7525       -.71015E-07** at limit **
  26  Prefactor     2.2922        1.2172        .28087E-07   -.74123E-03
  27  Prefactor     .33227        .86232       -.58159E-07   -.38332E-02
  28  Normalizat    .94318        .13358       -.54579E-05    .85975E-04
  29  Prefactor     .99204        .14354        .54094E-06   -.11462E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.82086
  Prefactor  = 3.42703
  Prefactor  = 2.25041
  Prefactor  = 11.4292
  norm       = 1.1244
  Prefactor  = 2.64964
  Prefactor  = 24.7412
  Prefactor  = 7.21645e-10
  norm       = 0
  Prefactor  = 9.87803
  Prefactor  = 5.6462
  Prefactor  = 1.27508
  Prefactor  = 21.1822
  Prefactor  = 10.8748
  norm       = 6.15099
  Prefactor  = 2.0352
  Prefactor  = 1.10018
  Prefactor  = 2.32627
  norm       = 3.28033
  Prefactor  = 3.38832
  Prefactor  = 0.751003
  Prefactor  = 3.44169e-09
  norm       = 13.6917
  norm       = 1.74899
  Prefactor  = 1.66533e-10
  Prefactor  = 2.29218
  Prefactor  = 0.332268
  Normalizat = 0.943181
  Prefactor  = 0.992043
 **********
 **   18 **HESSE 
 **********

 FCN=   17602.32     FROM HESSE     STATUS=OK           631 CALLS     2703 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8209        9.1249        .31970E-03   -1.5645    
   2  Prefactor     3.4270        4.6680        .54807E-03   -1.5671    
   3  Prefactor     2.2504        5.2756        .68308E-03   -1.5678    
   4  Prefactor     11.429        11.778        .29463E-03   -1.5640    
   5  norm          1.1244        .19300        .52177E-03   -1.5687    
   6  Prefactor     2.6496        1.7568        .62608E-03   -1.5675    
   7  Prefactor     24.741        9.4959        .20128E-03   -1.5608    
   8  Prefactor     .72164E-09    15.631        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        2.3803        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.8780        4.7091        .31876E-03   -1.5645    
  11  Prefactor     5.6462        5.4491        .42250E-03   -1.5660    
  12  Prefactor     1.2751        1.6510        .98436E-03   -1.5685    
  13  Prefactor     21.182        18.674        .21697E-03   -1.5616    
  14  Prefactor     10.875        9.3058        .30433E-03   -1.5642    
  15  norm          6.1510        1.9582        .40491E-03   -1.5658    
  16  Prefactor     2.0352        7.3558        .71872E-03   -1.5679    
  17  Prefactor     1.1002        3.6481        .11207E-02   -1.5687    
  18  Prefactor     2.3263        61.798        .55404E-03   -1.5677    
  19  norm          3.2803        .85538        .55991E-03   -1.5672    
  20  Prefactor     3.3883        8.3925        .54942E-03   -1.5671    
  21  Prefactor     .75100        .81573        .56651E-03   -1.5691    
  22  Prefactor     .34417E-08    16.943        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          13.692        1.3921        .27044E-03   -1.5634    
  24  norm          1.7490        1.2687        .79234E-03   -1.5682    
  25  Prefactor     .16653E-09    2.7347        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.2922        1.2180        .67779E-03   -1.5678    
  27  Prefactor     .33227        .72472        .44415E-02   -1.5696    
  28  Normalizat    .94318        .11593        .45446E-01   -.94959    
  29  Prefactor     .99204        .12367        .68739E-01   -.92995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9478e-07
Minuit parameter uncertainties:
  1  9.12496
  2  4.66805
  3  5.27557
  4  11.7784
  5  0.193004
  6  1.75683
  7  9.49586
  8  0.000209994
  9  1.16909e-05
  10  4.70909
  11  5.44912
  12  1.65103
  13  18.6745
  14  9.30577
  15  1.95816
  16  7.35582
  17  3.64813
  18  23.9802
  19  0.855385
  20  8.3925
  21  0.815725
  22  0.00048119
  23  1.39207
  24  1.26868
  25  3.93988e-05
  26  1.218
  27  0.724717
  28  0.115965
  29  0.123707
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.087e+01  9.306e+00  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  9.920e-01  1.237e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  9.432e-01  1.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.47
Ra Dec: 172.380 30.579
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 1.87e-08
Energy Flux (Fixed Index): 6.68e-06 +/- 5.71e-06

TS (Fixed Index): 2.47
Ra Dec: 172.380 30.579
Photon Flux Upper Limit: 6.07450342977e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471163931251 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17378483/likelihoodResults_786931201_787536001_4FGL_J1129.5+3034_weekly_bin906.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17602.2318221
delta logL = 0.0931136045292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17602.22903
delta logL = 0.0959056844767

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17602.23     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      268 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.158        284.98        .27588E-03   -.70412E-02
   2  Index         2.1345        6.0017        .25068       -.88281E-04
   3  Normalizat    .95144        .52559E-01    .45556E-01    .39413E-04
   4  Prefactor     .98580        .44108E-01    .68923E-01    .34933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.158
  Index      = 2.13453
  Normalizat = 0.951442
  Prefactor  = 0.985799
 **********
 **   18 **HESSE 
 **********

 FCN=   17602.23     FROM HESSE     STATUS=OK            31 CALLS      299 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.158        11.286        .11035E-04   -1.5635    
   2  Index         2.1345        .70541        .13493E-01   -.61028    
   3  Normalizat    .95144        .12603        .27243E-03   -.94675    
   4  Prefactor     .98580        .14283        .30487E-03   -.93204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54296e-10
Minuit parameter uncertainties:
  1  11.2856
  2  0.708942
  3  0.126064
  4  0.142884
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) = 17602.22903
delta logL = 0.0959057405707

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.316e+01  1.129e+01  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.135e+00  7.089e-01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  9.858e-01  1.429e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  9.514e-01  1.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.66
Ra Dec: 172.380 30.579
Photon Index (Free Index): 2.13 +/- 0.71
Photon Flux (Free Index): 1.61e-08 +/- 1.84e-08
Energy Flux (Free Index): 8.23e-06 +/- 8.73e-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/17378483/cmap_HighResolution_786931201_787536001_4FGL_J1129.5+3034_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='8.23e-06', photon_flux_error='1.87e-08', dlogl='9.59e-02', energy_flux='6.68e-06', photon_flux2='1.61e-08', job_status='DONE', time_completed='2025-12-16 02:30:08.760476', photon_index_error2='0.71', photon_index2='2.13', ts='2.47', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='6.07e-08', energy_flux_error2='8.73e-06', EG='0.94', time_epoch_completed='1765881008.76', return_code='0', job_id='17378483', GAL2='0.99', EG2='0.95', return_code2='0', energy_flux_error='5.71e-06', photon_flux_error2='1.84e-08', ts2='2.66', photon_index='2.46' WHERE bin_id='906' AND source_name='4FGL J1129.5+3034' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:30:09 PST 2025

