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


Performing analysis on: 4FGL_J0729.1+5703_weekly_bin907
RA = 112.286, Dec = 57.0558
tmin = 787536001, tmax = 788140801
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='17772004', job_status='RUN', time_executed='2025-12-23 01:10:08.987460', time_epoch_executed='1766481008.99' WHERE source_name='4FGL J0729.1+5703' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17772004

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17772004/ft1_4FGL_J0729.1+5703_weekly_bin907.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17772004/ft2_4FGL_J0729.1+5703_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17772004/ft1_4FGL_J0729.1+5703_weekly_bin907.fits outfile=/lscratch/kocevski/17772004/ft1_filteredMKT_4FGL_J0729.1+5703_weekly_bin907.fits ra=112.286 dec=57.0558 rad=12.0 tmin=787536001.0 tmax=788140801.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.30
user 4.46
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17772004/ft2_4FGL_J0729.1+5703_weekly_bin907.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17772004/ft2_4FGL_J0729.1+5703_weekly_bin907.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/17772004/ft1_filteredMKT_4FGL_J0729.1+5703_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17772004/ft1_filtered_4FGL_J0729.1+5703_weekly_bin907.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2039

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17772004/ft1_filtered_4FGL_J0729.1+5703_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17772004/ft2_4FGL_J0729.1+5703_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17772004/ltcube_787536001_788140801_4FGL_J0729.1+5703_weekly_bin907.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/17772004/ft2_4FGL_J0729.1+5703_weekly_bin907.fits
.....................!
real 19.25
user 18.18
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17772004/ft1_filtered_4FGL_J0729.1+5703_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17772004/ft2_4FGL_J0729.1+5703_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17772004/ltcube_787536001_788140801_4FGL_J0729.1+5703_weekly_bin907.fits outfile=/lscratch/kocevski/17772004/expmap_787536001_788140801_4FGL_J0729.1+5703_weekly_bin907.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/17772004/ltcube_787536001_788140801_4FGL_J0729.1+5703_weekly_bin907.fits
.....................!
real 72.75
user 67.54
sys 4.30

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 209 point sources and 0 extended sources

Setting source of interest to:
4FGL J0729.1+5703 @ 112.286 57.0558

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17772004/ft1_filtered_4FGL_J0729.1+5703_weekly_bin907.fits scfile=/lscratch/kocevski/17772004/ft2_4FGL_J0729.1+5703_weekly_bin907.fits outfile=/lscratch/kocevski/17772004/cmap_787536001_788140801_4FGL_J0729.1+5703_weekly_bin907.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=112.286 yref=57.0558 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.01
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17772004/ft1_filtered_4FGL_J0729.1+5703_weekly_bin907.fits scfile=/lscratch/kocevski/17772004/ft2_4FGL_J0729.1+5703_weekly_bin907.fits outfile=/lscratch/kocevski/17772004/cmap_HighResolution_787536001_788140801_4FGL_J0729.1+5703_weekly_bin907.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=112.286 yref=57.0558 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.07
user 0.26
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17772004/ft1_filtered_4FGL_J0729.1+5703_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17772004/ft2_4FGL_J0729.1+5703_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17772004/Model_4FGL_J0729.1+5703_weekly_bin907.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/17772004/ft1_filtered_4FGL_J0729.1+5703_weekly_bin907.fits.....................!
real 88.75
user 86.55
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17772004/ft1_filtered_4FGL_J0729.1+5703_weekly_bin907.fits', '/lscratch/kocevski/17772004/ft2_4FGL_J0729.1+5703_weekly_bin907.fits', expMap='/lscratch/kocevski/17772004/expmap_787536001_788140801_4FGL_J0729.1+5703_weekly_bin907.fits', expCube='/lscratch/kocevski/17772004/ltcube_787536001_788140801_4FGL_J0729.1+5703_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17772004/Model_4FGL_J0729.1+5703_weekly_bin907.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0729.1+5703'

4FGL J0729.1+5703
   Spectrum: PowerLaw
277    Prefactor:  3.521e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.778e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17772004/ft1_filtered_4FGL_J0729.1+5703_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17772004/ft2_4FGL_J0729.1+5703_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17772004/expmap_787536001_788140801_4FGL_J0729.1+5703_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17772004/ltcube_787536001_788140801_4FGL_J0729.1+5703_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17772004/Model_4FGL_J0729.1+5703_weekly_bin907.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) = 21891.9232016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16427E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .61584E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.6407       1.0000          .0000       .10000E+07
     4 'Prefactor '    17.574       1.0000          .0000       .10000E+07
     5 'norm      '    2.6908       1.0000          .0000       .10000E+07
     6 'norm      '    1.0326       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.9478       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.5184       1.0000          .0000       .10000E+07
     9 'Prefactor '    24.508       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.0955       1.0000          .0000       .10000E+07
    11 'norm      '    5.5336       1.0000          .0000       .10000E+07
    12 'Prefactor '    20.827       1.0000          .0000       .10000E+07
    13 'Prefactor '    15.023       1.0000          .0000       .10000E+07
    14 'norm      '    5.8735       1.0000          .0000       .10000E+07
    15 'Prefactor '    .16095E-05   1.0000          .0000       .10000E+07
    16 'norm      '    .33060       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.5810       1.0000          .0000       .10000E+07
    18 'norm      '    .24990       1.0000          .0000       .10000E+07
    19 'norm      '    .79603E-07   1.0000          .0000       .10000E+07
    20 'norm      '    2.8277       1.0000          .0000       .10000E+07
    21 'Prefactor '    .13036       1.0000          .0000       .10000E+07
    22 'Prefactor '    .46630       1.0000          .0000       .10000E+07
    23 'Prefactor '    21.920       1.0000          .0000       .10000E+07
    24 'Prefactor '    7.2858       1.0000          .0000       .10000E+07
    25 'Prefactor '    12.756       1.0000          .0000       .10000E+07
    26 'Normalizat'    .83801       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0317       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   21890.23     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1387 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.0189        .54849E-07** at limit **
   2  Prefactor      .0000        1.6709       -.14543E-07** at limit **
   3  Prefactor     3.6401        1.5890        .10374E-07   -.78524E-02
   4  Prefactor     17.619        1.4628       -.13343E-08    .88653E-02
   5  norm          2.6894        2.4839        .40272E-07    .33348E-02
   6  norm          1.0291        1.5539       -.17245E-07   -.20844E-02
   7  Prefactor     4.9087        4.7273       -.20270E-07   -.28103E-01
   8  Prefactor     6.5516        3.7418       -.58554E-07   -.22379E-02
   9  Prefactor     24.518        1.6955       -.32139E-08    .75600E-02
  10  Prefactor     7.2774        5.0576        .20071E-07   -.84574E-02
  11  norm          5.5356        1.8521       -.99038E-08   -.23830E-01
  12  Prefactor     20.764        8.1897        .16725E-07   -.10093    
  13  Prefactor     15.087        16.990        .95206E-08   -.39102E-01
  14  norm          5.8748        .84332       -.24423E-07   -.43338E-01
  15  Prefactor     .55511E-10    6.1231       -.57486E-07** at limit **
  16  norm          .33067        .65222       -.34863E-07   -.61894E-02
  17  Prefactor     6.6588        2.2333        .13250E-07   -.24252E-01
  18  norm          .25030        1.1323       -.36566E-07   -.17369E-02
  19  norm           .0000        1.1706       -.34422E-07** at limit **
  20  norm          2.8296        1.1631        .14880E-07    .76507E-02
  21  Prefactor     .13031        .38543       -.24013E-07** at limit **
  22  Prefactor     .54877        3.2265        .41253E-07    .14361E-02
  23  Prefactor     21.894        4.7787        .11245E-07   -.40453E-02
  24  Prefactor     7.2862        4.2062       -.42583E-08   -.98701E-02
  25  Prefactor     12.843        4.8801        .18023E-08   -.10383    
  26  Normalizat    .83754        .12993        .74878E-06    .14583E-03
  27  Prefactor     1.0316        .77085E-01    .20161E-07    .25811E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 3.64011
  Prefactor  = 17.6194
  norm       = 2.68943
  norm       = 1.0291
  Prefactor  = 4.90873
  Prefactor  = 6.55157
  Prefactor  = 24.5184
  Prefactor  = 7.27744
  norm       = 5.53563
  Prefactor  = 20.7638
  Prefactor  = 15.0866
  norm       = 5.87475
  Prefactor  = 5.55112e-11
  norm       = 0.33067
  Prefactor  = 6.6588
  norm       = 0.250304
  norm       = 0
  norm       = 2.8296
  Prefactor  = 0.130308
  Prefactor  = 0.548774
  Prefactor  = 21.8939
  Prefactor  = 7.28622
  Prefactor  = 12.843
  Normalizat = 0.837537
  Prefactor  = 1.03163
 **********
 **   18 **HESSE 
 **********

 FCN=   21890.23     FROM HESSE     STATUS=OK           570 CALLS     1957 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.0200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.6693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.6401        12.278        .52921E-03   -1.5670    
   4  Prefactor     17.619        14.922        .23864E-03   -1.5624    
   5  norm          2.6894        2.5225        .62083E-03   -1.5675    
   6  norm          1.0291        2.0235        .51347E-02   -1.5688    
   7  Prefactor     4.9087        4.8468        .45191E-03   -1.5664    
   8  Prefactor     6.5516        4.1831        .39284E-03   -1.5657    
   9  Prefactor     24.518        10.828        .20204E-03   -1.5609    
  10  Prefactor     7.2774        10.769        .37636E-03   -1.5654    
  11  norm          5.5356        5.4596        .42687E-03   -1.5661    
  12  Prefactor     20.764        15.884        .21919E-03   -1.5617    
  13  Prefactor     15.087        19.097        .25814E-03   -1.5630    
  14  norm          5.8748        .85175        .41414E-03   -1.5659    
  15  Prefactor     .55511E-10    6.0928        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .33067        .73407        .40353E-02   -1.5696    
  17  Prefactor     6.6588        14.212        .39095E-03   -1.5656    
  18  norm          .25030        .75693        .34519E-02   -1.5698    
  19  norm           .0000        1.1661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.8296        1.1662        .60452E-03   -1.5674    
  21  Prefactor     .13031        .36722        .28090E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .54877        14.252        .82175E-03   -1.5693    
  23  Prefactor     21.894        5.1037        .21365E-03   -1.5614    
  24  Prefactor     7.2862        4.2151        .37136E-03   -1.5654    
  25  Prefactor     12.843        7.4275        .28021E-03   -1.5636    
  26  Normalizat    .83754        .12050        .77266E-01   -.98691    
  27  Prefactor     1.0316        .68332E-01    .41130E-01   -.91682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13166e-07
Minuit parameter uncertainties:
  1  4.02566e-06
  2  1.20485e-05
  3  12.2776
  4  14.9218
  5  2.5225
  6  2.02349
  7  4.84684
  8  4.18309
  9  10.8276
  10  10.7686
  11  5.45965
  12  15.8842
  13  19.0974
  14  0.851754
  15  3.36713e-05
  16  0.734073
  17  14.2125
  18  0.756926
  19  9.74232e-06
  20  1.16621
  21  0.367225
  22  5.59335
  23  5.1037
  24  4.21512
  25  7.42748
  26  0.120538
  27  0.0683375
Done.

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

Extracting fit parameters...

4FGL J0729.1+5703
   Spectrum: PowerLaw
277    Prefactor:  2.076e+01  1.588e+01  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.778e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  1.032e+00  6.834e-02  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
671   Normalization:  8.375e-01  1.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.33
Ra Dec: 112.286 57.056
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 3.22e-08 +/- 2.46e-08
Energy Flux (Fixed Index): 9.22e-06 +/- 7.05e-06

TS (Fixed Index): 2.33
Ra Dec: 112.286 57.056
Photon Flux Upper Limit: 7.82982136183e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0060940769896 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17772004/likelihoodResults_787536001_788140801_4FGL_J0729.1+5703_weekly_bin907.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) = 21889.6423123
delta logL = 0.583050324287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 21889.6217525
delta logL = 0.603610046761

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   21889.62     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      304 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7869        115.59        .15368E-04    .12132E-03
   2  Index         3.4991        6.6697        .78655E-02    .78207E-04
   3  Normalizat    .80869        .12990        .34737E-03    .26183E-06
   4  Prefactor     1.0437        .78513E-01    .18995E-03   -.15801E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.7869
  Index      = 3.49908
  Normalizat = 0.808687
  Prefactor  = 1.04373
 **********
 **   18 **HESSE 
 **********

 FCN=   21889.62     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .94E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7869        11.503        .61474E-06   -1.5656    
   2  Index         3.4991        .98423        .31462E-03   -.30488    
   3  Normalizat    .80869        .12847        .13895E-04   -.99747    
   4  Prefactor     1.0437        .77576E-01    .37990E-04   -.91286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.36215e-14
Minuit parameter uncertainties:
  1  11.5029
  2  0.991358
  3  0.128521
  4  0.0775848
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) = 21889.6217498
delta logL = 0.603612804196

Extracting fit parameters...

4FGL J0729.1+5703
   Spectrum: PowerLaw
277    Prefactor:  6.787e+00  1.150e+01  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  3.499e+00  9.914e-01  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  8.778e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  1.044e+00  7.758e-02  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
671   Normalization:  8.087e-01  1.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.68
Ra Dec: 112.286 57.056
Photon Index (Free Index): 3.50 +/- 0.99
Photon Flux (Free Index): 5.44e-08 +/- 3.37e-08
Energy Flux (Free Index): 9.06e-06 +/- 5.47e-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/17772004/cmap_HighResolution_787536001_788140801_4FGL_J0729.1+5703_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.09e-03', comment='SUCCESS', photon_flux='3.22e-08', energy_flux2='9.06e-06', photon_flux_error='2.46e-08', dlogl='6.04e-01', energy_flux='9.22e-06', photon_flux2='5.44e-08', job_status='DONE', time_completed='2025-12-23 01:30:49.890180', photon_index_error2='0.99', photon_index2='3.50', ts='2.33', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='7.83e-08', energy_flux_error2='5.47e-06', EG='0.84', time_epoch_completed='1766482249.89', return_code='0', job_id='17772004', GAL2='1.04', EG2='0.81', return_code2='0', energy_flux_error='7.05e-06', photon_flux_error2='3.37e-08', ts2='3.68', photon_index='2.51' WHERE bin_id='907' AND source_name='4FGL J0729.1+5703' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 01:30:49 PST 2025

