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


Performing analysis on: 4FGL_J0709.1+2241_weekly_bin858
RA = 107.277, Dec = 22.6847
tmin = 757900801, tmax = 758505601
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='61722801', job_status='RUN', time_executed='2025-01-14 02:36:23.701648', time_epoch_executed='1736850983.7' WHERE source_name='4FGL J0709.1+2241' and cadence='weekly' and bin_id='858'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/61722801

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/61722801/ft1_4FGL_J0709.1+2241_weekly_bin858.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/61722801/ft2_4FGL_J0709.1+2241_weekly_bin858.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/61722801/ft1_4FGL_J0709.1+2241_weekly_bin858.fits outfile=/lscratch/kocevski/61722801/ft1_filteredMKT_4FGL_J0709.1+2241_weekly_bin858.fits ra=107.277 dec=22.6847 rad=12.0 tmin=757900801.0 tmax=758505601.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 3.15
user 2.81
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/61722801/ft2_4FGL_J0709.1+2241_weekly_bin858.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/61722801/ft2_4FGL_J0709.1+2241_weekly_bin858.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/61722801/ft1_filteredMKT_4FGL_J0709.1+2241_weekly_bin858.fits evtable="EVENTS" outfile="/lscratch/kocevski/61722801/ft1_filtered_4FGL_J0709.1+2241_weekly_bin858.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.47
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 95

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/61722801/ft1_filtered_4FGL_J0709.1+2241_weekly_bin858.fits" evtable="EVENTS" scfile=/lscratch/kocevski/61722801/ft2_4FGL_J0709.1+2241_weekly_bin858.fits sctable="SC_DATA" outfile=/lscratch/kocevski/61722801/ltcube_757900801_758505601_4FGL_J0709.1+2241_weekly_bin858.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/61722801/ft2_4FGL_J0709.1+2241_weekly_bin858.fits
.....................!
real 16.34
user 15.94
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/61722801/ft1_filtered_4FGL_J0709.1+2241_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61722801/ft2_4FGL_J0709.1+2241_weekly_bin858.fits sctable="SC_DATA" expcube=/lscratch/kocevski/61722801/ltcube_757900801_758505601_4FGL_J0709.1+2241_weekly_bin858.fits outfile=/lscratch/kocevski/61722801/expmap_757900801_758505601_4FGL_J0709.1+2241_weekly_bin858.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/61722801/ltcube_757900801_758505601_4FGL_J0709.1+2241_weekly_bin858.fits
.....................!
real 59.35
user 55.67
sys 3.33

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 IC 443 in ROI with RadialGaussian spatial model.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Extended source S 147 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/S147.fits is the correct path to the extended template.
Extended source Rosette in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/Rosette.fits is the correct path to the extended template.
Added 166 point sources and 4 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 J0709.1+2241 @ 107.277 22.6847

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/61722801/ft1_filtered_4FGL_J0709.1+2241_weekly_bin858.fits scfile=/lscratch/kocevski/61722801/ft2_4FGL_J0709.1+2241_weekly_bin858.fits outfile=/lscratch/kocevski/61722801/cmap_757900801_758505601_4FGL_J0709.1+2241_weekly_bin858.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.277 yref=22.6847 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.41
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/61722801/ft1_filtered_4FGL_J0709.1+2241_weekly_bin858.fits scfile=/lscratch/kocevski/61722801/ft2_4FGL_J0709.1+2241_weekly_bin858.fits outfile=/lscratch/kocevski/61722801/cmap_HighResolution_757900801_758505601_4FGL_J0709.1+2241_weekly_bin858.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.277 yref=22.6847 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.37
user 0.20
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/61722801/ft1_filtered_4FGL_J0709.1+2241_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61722801/ft2_4FGL_J0709.1+2241_weekly_bin858.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/61722801/Model_4FGL_J0709.1+2241_weekly_bin858.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
adding source IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/lscratch/kocevski/61722801/ft1_filtered_4FGL_J0709.1+2241_weekly_bin858.fits........................!
real 13.30
user 12.43
sys 0.72

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/61722801/ft1_filtered_4FGL_J0709.1+2241_weekly_bin858.fits', '/lscratch/kocevski/61722801/ft2_4FGL_J0709.1+2241_weekly_bin858.fits', expMap='/lscratch/kocevski/61722801/expmap_757900801_758505601_4FGL_J0709.1+2241_weekly_bin858.fits', expCube='/lscratch/kocevski/61722801/ltcube_757900801_758505601_4FGL_J0709.1+2241_weekly_bin858.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/61722801/Model_4FGL_J0709.1+2241_weekly_bin858.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0709.1+2241'

4FGL J0709.1+2241
   Spectrum: PowerLaw
282    Prefactor:  3.306e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
283        Index:  2.064e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/61722801/ft1_filtered_4FGL_J0709.1+2241_weekly_bin858.fits
Spacecraft file(s): /lscratch/kocevski/61722801/ft2_4FGL_J0709.1+2241_weekly_bin858.fits
Exposure map: /lscratch/kocevski/61722801/expmap_757900801_758505601_4FGL_J0709.1+2241_weekly_bin858.fits
Exposure cube: /lscratch/kocevski/61722801/ltcube_757900801_758505601_4FGL_J0709.1+2241_weekly_bin858.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/61722801/Model_4FGL_J0709.1+2241_weekly_bin858.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1041.19377297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1041.01467552

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51333E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .14111       1.0000          .0000       .10000E+07
     3 'norm      '    .79920E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.2612       1.0000          .0000       .10000E+07
     5 'Prefactor '    .12193       1.0000          .0000       .10000E+07
     6 'norm      '    8.1753       1.0000          .0000       .10000E+07
     7 'norm      '    5.5240       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.0245       1.0000          .0000       .10000E+07
     9 'norm      '    2.1817       1.0000          .0000       .10000E+07
    10 'norm      '    2.8080       1.0000          .0000       .10000E+07
    11 'norm      '    1.7830       1.0000          .0000       .10000E+07
    12 'Prefactor '    7.4886       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.9747       1.0000          .0000       .10000E+07
    14 'Prefactor '    7.1990       1.0000          .0000       .10000E+07
    15 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    16 'Prefactor '    .74644       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1017.339     FROM MIGRAD    STATUS=CONVERGED    279 CALLS      411 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44409E-09    51.151       -.84734E-06** at limit **
   2  Prefactor      .0000        207.85       -.13079E-05** at limit **
   3  norm          .23870E-08    112.96        .92202E-07** at limit **
   4  Prefactor     .66613E-08    541.73       -.41392E-05** at limit **
   5  Prefactor     .58287E-08    382.78        .54582E-06** at limit **
   6  norm          8.1753        1.0019         .0000         .0000    
   7  norm          .10000E+07    51446.        .21812E-04** at limit **
   8  Prefactor     1.0245        1.2818         .0000         .0000    
   9  norm          2.1817        1.0290         .0000         .0000    
  10  norm          2.8080        1.0168         .0000         .0000    
  11  norm          1.7830        1.0460         .0000         .0000    
  12  Prefactor     7.4886        1.0022         .0000         .0000    
  13  Prefactor     6.9747        1.0026         .0000         .0000    
  14  Prefactor     7.1990        1.0024         .0000         .0000    
  15  Normalizat    .10000E-01    .30522       -.14687E-04** at limit **
  16  Prefactor     .52588        .14777        .81863E-05    .29578E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44089e-10
  Prefactor  = 0
  norm       = 2.38698e-09
  Prefactor  = 6.66134e-09
  Prefactor  = 5.82867e-09
  norm       = 8.17533
  norm       = 1e+06
  Prefactor  = 1.02448
  norm       = 2.18169
  norm       = 2.80798
  norm       = 1.78302
  Prefactor  = 7.48855
  Prefactor  = 6.9747
  Prefactor  = 7.19905
  Normalizat = 0.01
  Prefactor  = 0.525879
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1017.339     FROM HESSE     STATUS=FAILED        31 CALLS      442 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44409E-09    51.273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        212.18        .12935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .23870E-08    117.99        .14504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .66613E-08    560.14        .68285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .58287E-08    383.51        .13374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          29409.        29400.         .0000       -1.5651    
   7  norm          .10000E+07    .45634E-01    .21812E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0245        1.2818         .0000       -1.5688    
   9  norm          2.1817        1.0290         .0000       -1.5678    
  10  norm          2.8080        1.0168         .0000       -1.5674    
  11  norm          1.7830        1.0460         .0000       -1.5681    
  12  Prefactor     7.4886        1.0022         .0000       -1.5653    
  13  Prefactor     6.9747        1.0026         .0000       -1.5655    
  14  Prefactor     7.1990        1.0024         .0000       -1.5654    
  15  Normalizat    .10000E-01    .25505       -.14687E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .52588        .93082        .81863E-05   -1.1080    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.17912e-11
Minuit parameter uncertainties:
  1  0.000296896
  2  0.000119864
  3  0.00106236
  4  0.00385753
  5  0.00298779
  6  1.00188
  7  0.000132891
  8  1.28178
  9  1.02902
  10  1.01681
  11  1.04601
  12  1.00225
  13  1.00259
  14  1.00243
  15  4.31904e-07
  16  0.960159
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1017.33890255

Extracting fit parameters...

4FGL J0709.1+2241
   Spectrum: PowerLaw
282    Prefactor:  5.829e-09  2.988e-03  0.000e+00  1.000e+06 ( 1.000e-13)
283        Index:  2.064e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  5.259e-01  9.602e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.000e-02  4.319e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 107.277 22.685
Photon Flux Upper Limit: 7.6274695995e-06 ph cm-2 s-1
Energy Flux Upper Limit: 0.575061775648 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/61722801/likelihoodResults_757900801_758505601_4FGL_J0709.1+2241_weekly_bin858.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) = 1017.34014256
delta logL = -0.00124001429856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1017.33890268
delta logL = -1.30071612148e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1017.339     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      252 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20539E-08    133.22        .42118E-03** at limit **
   2  Index         .76878        8.9769        .50000       -.10232E-10
   3  Normalizat    .10000E-01    .20396E-03    .25483    ** at limit **
   4  Prefactor     .52588        .37916E-02    .40033E-01    .80008E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.05391e-09
  Index      = 0.768778
  Normalizat = 0.01
  Prefactor  = 0.52588
 **********
 **   18 **HESSE 
 **********

 FCN=   1017.339     FROM HESSE     STATUS=NOT POSDEF    25 CALLS      277 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20539E-08    663.15        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .76878        6.8164        .50000       -1.0089    
   3  Normalizat    .10000E-01    .10438E-02    .55621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .52588        .84684E-02    .20910E-03   -1.1080    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.02186e-11
Minuit parameter uncertainties:
  1  0.0023456
  2  431132
  3  1.88776e-07
  4  0.00846841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1017.33890255
delta logL = -7.27595761418e-12

Extracting fit parameters...

4FGL J0709.1+2241
   Spectrum: PowerLaw
282    Prefactor:  2.054e-09  2.346e-03  0.000e+00  1.000e+06 ( 1.000e-13)
283        Index:  7.688e-01  4.311e+05  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  5.259e-01  8.468e-03  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.000e-02  1.888e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 107.277 22.685

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/61722801/cmap_HighResolution_757900801_758505601_4FGL_J0709.1+2241_weekly_bin858.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-01', job_status='DONE', photon_flux_upper_limit='7.63e-06', time_completed='2025-01-14 02:38:53.196034', job_id='61722801', GAL2='0.53', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1736851133.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.53', dlogl='-7.28e-12', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='858' AND source_name='4FGL J0709.1+2241' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 14 02:38:53 PST 2025

