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


Performing analysis on: 4FGL_J0710.4+5908_weekly_bin877
RA = 107.623, Dec = 59.1352
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='5398896', job_status='RUN', time_executed='2025-05-27 01:00:37.427885', time_epoch_executed='1748332837.43' WHERE source_name='4FGL J0710.4+5908' and cadence='weekly' and bin_id='877'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/5398896

Creating custom pfile directory:
/lscratch/kocevski/5398896/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 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/5398896/ft1_4FGL_J0710.4+5908_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 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/5398896/ft2_4FGL_J0710.4+5908_weekly_bin877.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/5398896/ft1_4FGL_J0710.4+5908_weekly_bin877.fits outfile=/lscratch/kocevski/5398896/ft1_filteredMKT_4FGL_J0710.4+5908_weekly_bin877.fits ra=107.623 dec=59.1352 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 6.10
user 4.79
sys 0.33

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/5398896/ft2_4FGL_J0710.4+5908_weekly_bin877.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/5398896/ft2_4FGL_J0710.4+5908_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/5398896/ft1_filteredMKT_4FGL_J0710.4+5908_weekly_bin877.fits evtable="EVENTS" outfile="/lscratch/kocevski/5398896/ft1_filtered_4FGL_J0710.4+5908_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 1.11
user 0.24
sys 0.13

Number of photons that the gtmktime cut: 2172

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/5398896/ft1_filtered_4FGL_J0710.4+5908_weekly_bin877.fits" evtable="EVENTS" scfile=/lscratch/kocevski/5398896/ft2_4FGL_J0710.4+5908_weekly_bin877.fits sctable="SC_DATA" outfile=/lscratch/kocevski/5398896/ltcube_769392001_769996801_4FGL_J0710.4+5908_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/5398896/ft2_4FGL_J0710.4+5908_weekly_bin877.fits
.....................!
real 20.81
user 19.51
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/5398896/ft1_filtered_4FGL_J0710.4+5908_weekly_bin877.fits evtable="EVENTS" scfile=/lscratch/kocevski/5398896/ft2_4FGL_J0710.4+5908_weekly_bin877.fits sctable="SC_DATA" expcube=/lscratch/kocevski/5398896/ltcube_769392001_769996801_4FGL_J0710.4+5908_weekly_bin877.fits outfile=/lscratch/kocevski/5398896/expmap_769392001_769996801_4FGL_J0710.4+5908_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/5398896/ltcube_769392001_769996801_4FGL_J0710.4+5908_weekly_bin877.fits
.....................!
real 74.24
user 68.75
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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Added 204 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 J0710.4+5908 @ 107.623 59.1352

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/5398896/ft1_filtered_4FGL_J0710.4+5908_weekly_bin877.fits scfile=/lscratch/kocevski/5398896/ft2_4FGL_J0710.4+5908_weekly_bin877.fits outfile=/lscratch/kocevski/5398896/cmap_769392001_769996801_4FGL_J0710.4+5908_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=107.623 yref=59.1352 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.79
user 0.24
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/5398896/ft1_filtered_4FGL_J0710.4+5908_weekly_bin877.fits scfile=/lscratch/kocevski/5398896/ft2_4FGL_J0710.4+5908_weekly_bin877.fits outfile=/lscratch/kocevski/5398896/cmap_HighResolution_769392001_769996801_4FGL_J0710.4+5908_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=107.623 yref=59.1352 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.62
user 0.25
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/5398896/ft1_filtered_4FGL_J0710.4+5908_weekly_bin877.fits evtable="EVENTS" scfile=/lscratch/kocevski/5398896/ft2_4FGL_J0710.4+5908_weekly_bin877.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/5398896/Model_4FGL_J0710.4+5908_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 EG_v02
adding source G150.3+4.5
adding source GAL_V02
Working on...
/lscratch/kocevski/5398896/ft1_filtered_4FGL_J0710.4+5908_weekly_bin877.fits.....................!
real 100.61
user 97.57
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/5398896/ft1_filtered_4FGL_J0710.4+5908_weekly_bin877.fits', '/lscratch/kocevski/5398896/ft2_4FGL_J0710.4+5908_weekly_bin877.fits', expMap='/lscratch/kocevski/5398896/expmap_769392001_769996801_4FGL_J0710.4+5908_weekly_bin877.fits', expCube='/lscratch/kocevski/5398896/ltcube_769392001_769996801_4FGL_J0710.4+5908_weekly_bin877.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/5398896/Model_4FGL_J0710.4+5908_weekly_bin877.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0710.4+5908'

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  2.350e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
267        Index:  1.689e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  4.959e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/5398896/ft1_filtered_4FGL_J0710.4+5908_weekly_bin877.fits
Spacecraft file(s): /lscratch/kocevski/5398896/ft2_4FGL_J0710.4+5908_weekly_bin877.fits
Exposure map: /lscratch/kocevski/5398896/expmap_769392001_769996801_4FGL_J0710.4+5908_weekly_bin877.fits
Exposure cube: /lscratch/kocevski/5398896/ltcube_769392001_769996801_4FGL_J0710.4+5908_weekly_bin877.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/5398896/Model_4FGL_J0710.4+5908_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) = 23061.934046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.309       1.0000          .0000       .10000E+07
     2 'Prefactor '    9.5551       1.0000          .0000       .10000E+07
     3 'Prefactor '    .68280E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.8395       1.0000          .0000       .10000E+07
     5 'Prefactor '    .50072E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    36.653       1.0000          .0000       .10000E+07
     7 'norm      '    .72164E-09   1.0000          .0000       .10000E+07
     8 'norm      '    .68465       1.0000          .0000       .10000E+07
     9 'Prefactor '    .16875E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.8865       1.0000          .0000       .10000E+07
    11 'Prefactor '    .98681E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .32756E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    17.127       1.0000          .0000       .10000E+07
    14 'Prefactor '    17.727       1.0000          .0000       .10000E+07
    15 'norm      '    .13654       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.5258       1.0000          .0000       .10000E+07
    17 'Prefactor '    .12757E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .57931E-06   1.0000          .0000       .10000E+07
    19 'norm      '    .48739       1.0000          .0000       .10000E+07
    20 'norm      '    1.2477       1.0000          .0000       .10000E+07
    21 'Prefactor '    .14112       1.0000          .0000       .10000E+07
    22 'Prefactor '    4.4385       1.0000          .0000       .10000E+07
    23 'Prefactor '    5.0512       1.0000          .0000       .10000E+07
    24 'Normalizat'    .83466       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1358       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23061.92     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     2200 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.320        1.0054        .45962E-08   -.30744E-02
   2  Prefactor     9.5439        1.3847        .86974E-07   -.26649E-01
   3  Prefactor     .16653E-09    35.379       -.11438E-06** at limit **
   4  Prefactor     7.8552        6.0384       -.59478E-06   -.45876E-02
   5  Prefactor     .28866E-08    13.773        .24348E-06** at limit **
   6  Prefactor     36.704        1.0877       -.37554E-08   -.67022E-03
   7  norm           .0000        1.5259       -.11374E-06** at limit **
   8  norm          .67657        2.3883       -.25469E-06    .17808E-02
   9  Prefactor      .0000        1.9698       -.11428E-06** at limit **
  10  Prefactor     2.8733        4.3696       -.14694E-06   -.46549E-03
  11  Prefactor     .49960E-09    6.6727       -.11702E-06** at limit **
  12  Prefactor     .84932E-08    26.104        .55676E-06** at limit **
  13  Prefactor     17.090        2.2092       -.10852E-06    .50354E-01
  14  Prefactor     17.706        1.0432        .27084E-07   -.25796E-02
  15  norm          .13623        .43639        .40677E-07** at limit **
  16  Prefactor     1.5487        5.5796        .15213E-05    .19976E-02
  17  Prefactor     .32196E-08    7.5277       -.56625E-06** at limit **
  18  norm           .0000        .70963        .27837E-06** at limit **
  19  norm          .48752        1.3382       -.39947E-06    .24541E-02
  20  norm          1.2477        .77686       -.72934E-07   -.19528E-01
  21  Prefactor     .14074        .52940        .65739E-07** at limit **
  22  Prefactor     4.4670        4.4596        .23886E-06   -.38038E-02
  23  Prefactor     5.0434        3.8965       -.14489E-06    .74586E-03
  24  Normalizat    .83480        .12376       -.61305E-05   -.63171E-04
  25  Prefactor     1.1358        .68830E-01    .30135E-05   -.73029E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3199
  Prefactor  = 9.54391
  Prefactor  = 1.66533e-10
  Prefactor  = 7.85519
  Prefactor  = 2.88658e-09
  Prefactor  = 36.7038
  norm       = 0
  norm       = 0.676566
  Prefactor  = 0
  Prefactor  = 2.87331
  Prefactor  = 4.996e-10
  Prefactor  = 8.49321e-09
  Prefactor  = 17.0897
  Prefactor  = 17.706
  norm       = 0.13623
  Prefactor  = 1.54871
  Prefactor  = 3.21965e-09
  norm       = 0
  norm       = 0.487523
  norm       = 1.24773
  Prefactor  = 0.140741
  Prefactor  = 4.46702
  Prefactor  = 5.04336
  Normalizat = 0.834803
  Prefactor  = 1.13578
 **********
 **   18 **HESSE 
 **********

 FCN=   23061.92     FROM HESSE     STATUS=OK           495 CALLS     2695 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.320        16.309        .25572E-03   -1.5630    
   2  Prefactor     9.5439        18.725        .32395E-03   -1.5646    
   3  Prefactor     .16653E-09    4.6855        .14875E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.8552        6.0557        .35789E-03   -1.5652    
   5  Prefactor     .28866E-08    13.860        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.704        22.081        .16519E-03   -1.5587    
   7  norm           .0000        1.5244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .67657        2.4311        .61963E-03   -1.5692    
   9  Prefactor      .0000        1.9768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8733        4.4508        .59793E-03   -1.5674    
  11  Prefactor     .49960E-09    6.6770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .84932E-08    26.231        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.090        14.717        .24174E-03   -1.5625    
  14  Prefactor     17.706        14.395        .23761E-03   -1.5624    
  15  norm          .13623        .32373        .23153E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5487        5.6615        .86417E-03   -1.5683    
  17  Prefactor     .32196E-08    7.5896        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        .70061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .48752        1.3742        .79989E-03   -1.5694    
  20  norm          1.2477        .76323        .10015E-02   -1.5686    
  21  Prefactor     .14074        .39821        .28584E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.4670        4.4802        .47774E-03   -1.5666    
  23  Prefactor     5.0434        3.9199        .44716E-03   -1.5663    
  24  Normalizat    .83480        .11699        .79136E-01   -.98790    
  25  Prefactor     1.1358        .62037E-01    .36362E-01   -.88331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99552e-07
Minuit parameter uncertainties:
  1  16.3093
  2  18.725
  3  5.47729e-05
  4  6.05573
  5  0.000400953
  6  22.0814
  7  1.75429e-06
  8  2.43109
  9  8.37677e-06
  10  4.4508
  11  0.00011625
  12  0.00094271
  13  14.7167
  14  14.3947
  15  0.323726
  16  5.6615
  17  0.000311693
  18  2.55074e-06
  19  1.3742
  20  0.763226
  21  0.398206
  22  4.48024
  23  3.91987
  24  0.117029
  25  0.0620414
Done.

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

Extracting fit parameters...

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  0.000e+00  8.377e-06  0.000e+00  1.000e+06 ( 1.000e-14)
267        Index:  1.689e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  4.959e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
660    Prefactor:  1.136e+00  6.204e-02  0.000e+00  1.000e+01 ( 1.000e+00)
661        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
662        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  8.348e-01  1.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 107.623 59.135
Photon Flux Upper Limit: 1.17296900803e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.000854982654701 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/5398896/likelihoodResults_769392001_769996801_4FGL_J0710.4+5908_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): 102
logL (Free Index) = 23061.9200721
delta logL = -0.000235593481193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23061.9198367
delta logL = -1.31367414724e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   23061.92     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      236 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.4360        .42118E-03** at limit **
   2  Index         1.3309        1.2472       -.21387E-05     .0000    
   3  Normalizat    .83480        1.1726        .11292E-04    .14303E-04
   4  Prefactor     1.1358        1.1285       -.67832E-07   -.32606E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.3309
  Normalizat = 0.834803
  Prefactor  = 1.13578
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   23061.92     FROM HESSE     STATUS=FAILED         9 CALLS      245 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.4360        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .13961        1.4476       -.21387E-05   -.82393    
   3  Normalizat    .83480        1.1726        .11292E-04   -.98790    
   4  Prefactor     1.1358        1.1285       -.67832E-07   -.88331    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.26016e-12
Minuit parameter uncertainties:
  1  3.40345e-06
  2  1.27703
  3  1.21147
  4  1.15374
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) = 23061.9198365
delta logL = 0.0

Extracting fit parameters...

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  0.000e+00  3.403e-06  0.000e+00  1.000e+06 ( 1.000e-14)
267        Index:  1.331e+00  1.277e+00  0.000e+00  1.000e+01 (-1.000e+00)
268        Scale:  4.959e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
660    Prefactor:  1.136e+00  1.154e+00  0.000e+00  1.000e+01 ( 1.000e+00)
661        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
662        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  8.348e-01  1.211e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 107.623 59.135

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/5398896/cmap_HighResolution_769392001_769996801_4FGL_J0710.4+5908_weekly_bin877.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.55e-04', job_status='DONE', photon_flux_upper_limit='1.17e-08', time_completed='2025-05-27 01:16:43.998511', job_id='5398896', GAL2='1.14', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1748333804.0', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='1.69' WHERE bin_id='877' AND source_name='4FGL J0710.4+5908' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 27 01:16:44 PDT 2025

