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


Performing analysis on: 4FGL_J1129.5+3034_daily_bin2053
RA = 172.38, Dec = 30.5789
tmin = 771465601, tmax = 771724801
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='6446763', job_status='RUN', time_executed='2025-06-16 01:01:07.053462', time_epoch_executed='1750060867.05' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='2053'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/6446763

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/6446763/ft1_4FGL_J1129.5+3034_daily_bin2053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/6446763/ft2_4FGL_J1129.5+3034_daily_bin2053.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/6446763/ft1_4FGL_J1129.5+3034_daily_bin2053.fits outfile=/lscratch/kocevski/6446763/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin2053.fits ra=172.38 dec=30.5789 rad=12.0 tmin=771465601.0 tmax=771724801.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 9.47
user 1.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/6446763/ft2_4FGL_J1129.5+3034_daily_bin2053.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/6446763/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin2053.fits evtable="EVENTS" outfile="/lscratch/kocevski/6446763/ft1_filtered_4FGL_J1129.5+3034_daily_bin2053.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 7.45
user 0.19
sys 0.17

Number of photons that the gtmktime cut: 1093

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/6446763/ft1_filtered_4FGL_J1129.5+3034_daily_bin2053.fits" evtable="EVENTS" scfile=/lscratch/kocevski/6446763/ft2_4FGL_J1129.5+3034_daily_bin2053.fits sctable="SC_DATA" outfile=/lscratch/kocevski/6446763/ltcube_771465601_771724801_4FGL_J1129.5+3034_daily_bin2053.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/6446763/ft2_4FGL_J1129.5+3034_daily_bin2053.fits
.....................!
real 15.35
user 7.00
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/6446763/ft1_filtered_4FGL_J1129.5+3034_daily_bin2053.fits evtable="EVENTS" scfile=/lscratch/kocevski/6446763/ft2_4FGL_J1129.5+3034_daily_bin2053.fits sctable="SC_DATA" expcube=/lscratch/kocevski/6446763/ltcube_771465601_771724801_4FGL_J1129.5+3034_daily_bin2053.fits outfile=/lscratch/kocevski/6446763/expmap_771465601_771724801_4FGL_J1129.5+3034_daily_bin2053.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/6446763/ltcube_771465601_771724801_4FGL_J1129.5+3034_daily_bin2053.fits
.....................!
real 71.72
user 59.08
sys 4.00

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/6446763/ft1_filtered_4FGL_J1129.5+3034_daily_bin2053.fits scfile=/lscratch/kocevski/6446763/ft2_4FGL_J1129.5+3034_daily_bin2053.fits outfile=/lscratch/kocevski/6446763/cmap_771465601_771724801_4FGL_J1129.5+3034_daily_bin2053.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 2.91
user 0.24
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/6446763/ft1_filtered_4FGL_J1129.5+3034_daily_bin2053.fits scfile=/lscratch/kocevski/6446763/ft2_4FGL_J1129.5+3034_daily_bin2053.fits outfile=/lscratch/kocevski/6446763/cmap_HighResolution_771465601_771724801_4FGL_J1129.5+3034_daily_bin2053.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 2.32
user 0.25
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/6446763/ft1_filtered_4FGL_J1129.5+3034_daily_bin2053.fits evtable="EVENTS" scfile=/lscratch/kocevski/6446763/ft2_4FGL_J1129.5+3034_daily_bin2053.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/6446763/Model_4FGL_J1129.5+3034_daily_bin2053.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/6446763/ft1_filtered_4FGL_J1129.5+3034_daily_bin2053.fits.....................!
real 36.32
user 31.83
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/6446763/ft1_filtered_4FGL_J1129.5+3034_daily_bin2053.fits', '/lscratch/kocevski/6446763/ft2_4FGL_J1129.5+3034_daily_bin2053.fits', expMap='/lscratch/kocevski/6446763/expmap_771465601_771724801_4FGL_J1129.5+3034_daily_bin2053.fits', expCube='/lscratch/kocevski/6446763/ltcube_771465601_771724801_4FGL_J1129.5+3034_daily_bin2053.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/6446763/Model_4FGL_J1129.5+3034_daily_bin2053.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/6446763/ft1_filtered_4FGL_J1129.5+3034_daily_bin2053.fits
Spacecraft file(s): /lscratch/kocevski/6446763/ft2_4FGL_J1129.5+3034_daily_bin2053.fits
Exposure map: /lscratch/kocevski/6446763/expmap_771465601_771724801_4FGL_J1129.5+3034_daily_bin2053.fits
Exposure cube: /lscratch/kocevski/6446763/ltcube_771465601_771724801_4FGL_J1129.5+3034_daily_bin2053.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/6446763/Model_4FGL_J1129.5+3034_daily_bin2053.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) = 11043.6665756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.045       1.0000          .0000       .10000E+07
     2 'Prefactor '    11.264       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.9532       1.0000          .0000       .10000E+07
     4 'Prefactor '    11.851       1.0000          .0000       .10000E+07
     5 'norm      '    .88071       1.0000          .0000       .10000E+07
     6 'Prefactor '    .61905       1.0000          .0000       .10000E+07
     7 'Prefactor '    .10473E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    5.7391       1.0000          .0000       .10000E+07
     9 'norm      '    7.4651       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.3894       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.2286       1.0000          .0000       .10000E+07
    12 'Prefactor '    .52597E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13262E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .34546E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .91320       1.0000          .0000       .10000E+07
    16 'Prefactor '    .56883E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    7.6628       1.0000          .0000       .10000E+07
    18 'Prefactor '    .26450E-01   1.0000          .0000       .10000E+07
    19 'norm      '    1.6587       1.0000          .0000       .10000E+07
    20 'Prefactor '    .50013E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .57690       1.0000          .0000       .10000E+07
    22 'Prefactor '    37.005       1.0000          .0000       .10000E+07
    23 'norm      '    43.271       1.0000          .0000       .10000E+07
    24 'norm      '    1.6048       1.0000          .0000       .10000E+07
    25 'Prefactor '    .21419E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    2.0992       1.0000          .0000       .10000E+07
    27 'Prefactor '    3.4334       1.0000          .0000       .10000E+07
    28 'Normalizat'    .88417       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88872       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=   11043.65     FROM MIGRAD    STATUS=CONVERGED    213 CALLS     2765 TOTAL
                     EDM=   .82E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.042        19.697       -.19219E-07   -.17864E-02
   2  Prefactor     11.268        9.4398       -.11639E-07    .61154E-04
   3  Prefactor     4.9389        8.3065       -.13625E-07    .15961E-03
   4  Prefactor     11.833        15.230       -.63251E-07   -.63169E-03
   5  norm          .88056        .22964       -.19864E-09    .86377E-04
   6  Prefactor     .62002        2.3703       -.62047E-07    .67618E-04
   7  Prefactor      .0000        2.8591        .91694E-08** at limit **
   8  Prefactor     5.8171        6.1875       -.40181E-07    .73056E-04
   9  norm          7.4519        7.5415       -.19173E-07   -.18963E-04
  10  Prefactor     7.4300        4.7555       -.22134E-07    .60855E-03
  11  Prefactor     1.3246        7.1612       -.11098E-06   -.16796E-03
  12  Prefactor      .0000        1.5947        .31318E-07** at limit **
  13  Prefactor      .0000        31.271        .22812E-07** at limit **
  14  Prefactor      .0000        6.7910       -.60606E-07** at limit **
  15  norm          .91411        1.6688       -.64728E-07    .25646E-03
  16  Prefactor     .50515E-07    1220.7        .28068E-05** at limit **
  17  Prefactor     7.6678        4.2232       -.14423E-07    .47434E-04
  18  Prefactor      .0000        38.643        .17966E-06** at limit **
  19  norm          1.6588        .76651       -.76561E-08    .24485E-03
  20  Prefactor     .55511E-10    25.980        .23898E-06** at limit **
  21  Prefactor     .57690        .93394        .47976E-08   -.13291E-03
  22  Prefactor     37.063        3.1158        .15323E-07   -.22167E-01
  23  norm          43.272        2.6977        .20663E-08   -.57327E-03
  24  norm          1.6054        1.1861        .23087E-08    .17489E-04
  25  Prefactor      .0000        3.5350        .34459E-07** at limit **
  26  Prefactor     2.0997        1.1729        .67019E-08   -.11744E-03
  27  Prefactor     3.4338        1.7087       -.76752E-08    .35864E-04
  28  Normalizat    .88389        .16883        .87260E-06   -.13084E-04
  29  Prefactor     .88867        .18728        .58551E-06   -.13462E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.0422
  Prefactor  = 11.268
  Prefactor  = 4.93889
  Prefactor  = 11.8329
  norm       = 0.880561
  Prefactor  = 0.620016
  Prefactor  = 0
  Prefactor  = 5.81713
  norm       = 7.45189
  Prefactor  = 7.43002
  Prefactor  = 1.32457
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.914112
  Prefactor  = 5.05151e-08
  Prefactor  = 7.6678
  Prefactor  = 0
  norm       = 1.6588
  Prefactor  = 5.55112e-11
  Prefactor  = 0.576899
  Prefactor  = 37.0627
  norm       = 43.2724
  norm       = 1.60538
  Prefactor  = 0
  Prefactor  = 2.09972
  Prefactor  = 3.43376
  Normalizat = 0.883888
  Prefactor  = 0.888672
 **********
 **   18 **HESSE 
 **********

 FCN=   11043.65     FROM HESSE     STATUS=OK           633 CALLS     3398 TOTAL
                     EDM=   .60E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.042        19.767        .22343E-03   -1.5618    
   2  Prefactor     11.268        9.5551        .29825E-03   -1.5641    
   3  Prefactor     4.9389        8.7081        .45165E-03   -1.5664    
   4  Prefactor     11.833        15.295        .29075E-03   -1.5639    
   5  norm          .88056        .22926        .47103E-03   -1.5689    
   6  Prefactor     .62002        2.4593        .67539E-03   -1.5692    
   7  Prefactor      .0000        2.8553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.8171        6.1870        .41903E-03   -1.5660    
   9  norm          7.4519        7.5565        .36683E-03   -1.5653    
  10  Prefactor     7.4300        7.9966        .36872E-03   -1.5653    
  11  Prefactor     1.3246        14.915        .10148E-02   -1.5685    
  12  Prefactor      .0000        1.5785        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        31.363        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        6.8374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .91411        1.6816        .44852E-03   -1.5689    
  16  Prefactor     .50515E-07    7.6705        .71656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.6678        4.2336        .36202E-03   -1.5653    
  18  Prefactor      .0000        37.839        .16644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6588        .79376        .81896E-03   -1.5682    
  20  Prefactor     .55511E-10    25.862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .57690        .95720        .71323E-03   -1.5693    
  22  Prefactor     37.063        34.063        .16441E-03   -1.5586    
  23  norm          43.272        2.7026        .15203E-03   -1.5576    
  24  norm          1.6054        1.1808        .83624E-03   -1.5683    
  25  Prefactor      .0000        3.5246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.0997        1.1665        .71203E-03   -1.5679    
  27  Prefactor     3.4338        1.7124        .54563E-03   -1.5671    
  28  Normalizat    .88389        .14263        .64166E-01   -.97029    
  29  Prefactor     .88867        .15792        .73827E-01   -.96538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03161e-06
Minuit parameter uncertainties:
  1  19.7668
  2  9.55509
  3  8.70817
  4  15.2954
  5  0.229261
  6  2.45927
  7  7.2761e-07
  8  6.18706
  9  7.5565
  10  7.99657
  11  8.88966
  12  4.69093e-07
  13  5.32932e-05
  14  1.60304e-06
  15  1.6816
  16  0.00124503
  17  4.23357
  18  2.15079e-05
  19  0.793761
  20  6.61809e-05
  21  0.957203
  22  34.0634
  23  2.70256
  24  1.18082
  25  8.415e-07
  26  1.1665
  27  1.71237
  28  0.142691
  29  0.158
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  0.000e+00  1.603e-06  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:  8.887e-01  1.580e-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:  8.839e-01  1.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/6446763/likelihoodResults_771465601_771724801_4FGL_J1129.5+3034_daily_bin2053.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) = 11043.6514135
delta logL = -0.00170974719367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11043.6497037
delta logL = -7.51788320486e-09

Fit tolerance = 1e-08

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

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

 FCN=   11043.65     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      225 TOTAL
                     EDM=   .72E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        9.1625        .42118E-03** at limit **
   2  Index         3.1700        1.0488        .20377E-04     .0000    
   3  Normalizat    .88389        1.2199       -.14821E-05   -.14958E-05
   4  Prefactor     .88867        1.2341        .27831E-05    .27764E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.17003
  Normalizat = 0.883888
  Prefactor  = 0.888672
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11043.65     FROM HESSE     STATUS=FAILED         9 CALLS      234 TOTAL
                     EDM=   .72E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        9.1625        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1314        2.0857        .20377E-04   -.37470    
   3  Normalizat    .88389        1.2199       -.14821E-05   -.97029    
   4  Prefactor     .88867        1.2341        .27831E-05   -.96538    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.16141e-14
Minuit parameter uncertainties:
  1  3.42928e-06
  2  1.05787
  3  1.26152
  4  1.27651
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) = 11043.6497037
delta logL = 0.0

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  0.000e+00  3.429e-06  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  3.170e+00  1.058e+00  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:  8.887e-01  1.277e+00  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:  8.839e-01  1.262e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 172.380 30.579

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/6446763/cmap_HighResolution_771465601_771724801_4FGL_J1129.5+3034_daily_bin2053.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-03', job_status='DONE', photon_flux_upper_limit='4.76e-08', time_completed='2025-06-16 01:13:55.296397', job_id='6446763', GAL2='0.89', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1750061635.3', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='2053' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jun 16 01:13:55 PDT 2025

