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

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

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

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

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

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

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


Performing analysis on: 4FGL_J1159.0+0939_weekly_bin906
RA = 179.751, Dec = 9.6603
tmin = 786931201, tmax = 787536001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

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

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='17378715', job_status='RUN', time_executed='2025-12-16 02:20:28.994163', time_epoch_executed='1765880428.99' WHERE source_name='4FGL J1159.0+0939' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17378715

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17378715/ft1_4FGL_J1159.0+0939_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17378715/ft2_4FGL_J1159.0+0939_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17378715/ft1_4FGL_J1159.0+0939_weekly_bin906.fits outfile=/lscratch/kocevski/17378715/ft1_filteredMKT_4FGL_J1159.0+0939_weekly_bin906.fits ra=179.751 dec=9.6603 rad=12.0 tmin=786931201.0 tmax=787536001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.95
user 5.19
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17378715/ft2_4FGL_J1159.0+0939_weekly_bin906.fits

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

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

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

Number of photons that the gtmktime cut: 1535

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

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

Working on file /lscratch/kocevski/17378715/ft2_4FGL_J1159.0+0939_weekly_bin906.fits
.....................!
real 19.42
user 18.64
sys 0.25

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

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/17378715/ltcube_786931201_787536001_4FGL_J1159.0+0939_weekly_bin906.fits
.....................!
real 71.49
user 66.37
sys 3.96

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

Setting source of interest to:
4FGL J1159.0+0939 @ 179.751 9.6603

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17378715/ft1_filtered_4FGL_J1159.0+0939_weekly_bin906.fits scfile=/lscratch/kocevski/17378715/ft2_4FGL_J1159.0+0939_weekly_bin906.fits outfile=/lscratch/kocevski/17378715/cmap_786931201_787536001_4FGL_J1159.0+0939_weekly_bin906.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.751 yref=9.6603 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.98
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17378715/ft1_filtered_4FGL_J1159.0+0939_weekly_bin906.fits scfile=/lscratch/kocevski/17378715/ft2_4FGL_J1159.0+0939_weekly_bin906.fits outfile=/lscratch/kocevski/17378715/cmap_HighResolution_786931201_787536001_4FGL_J1159.0+0939_weekly_bin906.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.751 yref=9.6603 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.83
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17378715/ft1_filtered_4FGL_J1159.0+0939_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378715/ft2_4FGL_J1159.0+0939_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17378715/Model_4FGL_J1159.0+0939_weekly_bin906.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17378715/ft1_filtered_4FGL_J1159.0+0939_weekly_bin906.fits.....................!
real 56.88
user 54.79
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17378715/ft1_filtered_4FGL_J1159.0+0939_weekly_bin906.fits', '/lscratch/kocevski/17378715/ft2_4FGL_J1159.0+0939_weekly_bin906.fits', expMap='/lscratch/kocevski/17378715/expmap_786931201_787536001_4FGL_J1159.0+0939_weekly_bin906.fits', expCube='/lscratch/kocevski/17378715/ltcube_786931201_787536001_4FGL_J1159.0+0939_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17378715/Model_4FGL_J1159.0+0939_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.0+0939'

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  2.838e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17378715/ft1_filtered_4FGL_J1159.0+0939_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17378715/ft2_4FGL_J1159.0+0939_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17378715/expmap_786931201_787536001_4FGL_J1159.0+0939_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17378715/ltcube_786931201_787536001_4FGL_J1159.0+0939_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17378715/Model_4FGL_J1159.0+0939_weekly_bin906.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90023E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.1286       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.7108       1.0000          .0000       .10000E+07
     4 'Prefactor '    .60822E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .61697E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .58801E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .55177E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.6457       1.0000          .0000       .10000E+07
     9 'Prefactor '    41.006       1.0000          .0000       .10000E+07
    10 'Prefactor '    .60860       1.0000          .0000       .10000E+07
    11 'Prefactor '    20.368       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.8142       1.0000          .0000       .10000E+07
    13 'Prefactor '    .16653E-08   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.5257       1.0000          .0000       .10000E+07
    15 'Prefactor '    8.1407       1.0000          .0000       .10000E+07
    16 'norm      '    .48683E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .16145E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .47667E-06   1.0000          .0000       .10000E+07
    19 'norm      '    3.4464       1.0000          .0000       .10000E+07
    20 'Prefactor '    7.2104       1.0000          .0000       .10000E+07
    21 'norm      '    1.2043       1.0000          .0000       .10000E+07
    22 'Normalizat'    .93342       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0028       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17039.81     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     1516 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11102E-09    11.697        .17597E-06** at limit **
   2  Prefactor     3.1322        1.4527        .45378E-07    .61427E-02
   3  Prefactor     1.7122        2.5437       -.11187E-07   -.27737E-03
   4  Prefactor     .66613E-09    17.346        .44425E-06** at limit **
   5  Prefactor      .0000        2.5384        .67677E-07** at limit **
   6  Prefactor     .55511E-10    3.9016        .50338E-08** at limit **
   7  Prefactor      .0000        2.6694        .64082E-07** at limit **
   8  Prefactor     2.6474        2.0816       -.28978E-07   -.20593E-02
   9  Prefactor     44.437        38.999       -.42659E-08   -.13578E-03
  10  Prefactor     .24578        497.05       -.61369E-05** at limit **
  11  Prefactor     20.660        10.850        .19757E-06   -.73606E-02
  12  Prefactor     1.8151        1.5067        .10681E-07    .22948E-03
  13  Prefactor      .0000        2.5491       -.24159E-07** at limit **
  14  Prefactor     1.5383        2.9869        .30311E-06    .29316E-01
  15  Prefactor     8.1161        5.3715       -.24516E-08    .57842E-03
  16  norm           .0000        1.4187       -.21673E-07** at limit **
  17  Prefactor     .11102E-09    3.8432        .81684E-07** at limit **
  18  norm          .39968E-08    6.2093        .11640E-06** at limit **
  19  norm          3.4475        .43531        .47113E-09   -.32925E-02
  20  Prefactor     7.2393        5.2860        .45513E-07    .13915E-02
  21  norm          1.2056        .77738        .15761E-07    .26795E-02
  22  Normalizat    .93258        .13240       -.39112E-06   -.14325E-03
  23  Prefactor     1.0027        .11688       -.48833E-06   -.15226E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11022e-10
  Prefactor  = 3.13225
  Prefactor  = 1.71224
  Prefactor  = 6.66134e-10
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 2.64736
  Prefactor  = 44.4367
  Prefactor  = 0.245781
  Prefactor  = 20.6599
  Prefactor  = 1.81514
  Prefactor  = 0
  Prefactor  = 1.53833
  Prefactor  = 8.11608
  norm       = 0
  Prefactor  = 1.11022e-10
  norm       = 3.9968e-09
  norm       = 3.44752
  Prefactor  = 7.23932
  norm       = 1.20557
  Normalizat = 0.932577
  Prefactor  = 1.00269
 **********
 **   18 **HESSE 
 **********

 FCN=   17039.81     FROM HESSE     STATUS=OK           424 CALLS     1940 TOTAL
                     EDM=   .99E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11102E-09    11.565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1322        1.4630        .57292E-03   -1.5673    
   3  Prefactor     1.7122        2.5698        .80338E-03   -1.5682    
   4  Prefactor     .66613E-09    17.457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        2.5293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    3.8907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        2.6597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6474        2.0989        .62653E-03   -1.5675    
   9  Prefactor     44.437        38.945        .15618E-03   -1.5575    
  10  Prefactor     .24578        21.024        .10710E-01   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.660        10.963        .22165E-03   -1.5617    
  12  Prefactor     1.8151        1.5265        .77524E-03   -1.5681    
  13  Prefactor      .0000        2.4710        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5383        24.398        .86418E-03   -1.5683    
  15  Prefactor     8.1161        5.3756        .35115E-03   -1.5651    
  16  norm           .0000        1.3982        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11102E-09    3.8565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .39968E-08    6.2513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.4475        .43614        .54456E-03   -1.5671    
  20  Prefactor     7.2393        5.2891        .37331E-03   -1.5654    
  21  norm          1.2056        .78690        .10327E-02   -1.5686    
  22  Normalizat    .93258        .11444        .45327E-01   -.95325    
  23  Prefactor     1.0027        .10053        .44725E-01   -.92640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.94594e-08
Minuit parameter uncertainties:
  1  6.71324e-05
  2  1.46302
  3  2.56981
  4  0.000214682
  5  1.37024e-07
  6  2.50648e-05
  7  4.43508e-06
  8  2.09888
  9  38.9456
  10  4.54639
  11  10.9634
  12  1.52655
  13  1.46143e-05
  14  12.2528
  15  5.37558
  16  7.44198e-06
  17  3.73823e-05
  18  0.000315322
  19  0.436145
  20  5.28911
  21  0.786901
  22  0.114474
  23  0.100552
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  0.000e+00  1.370e-07  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.003e+00  1.006e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  9.326e-01  1.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 179.751 9.660
Photon Flux Upper Limit: 2.86459847943e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00217135031363 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17378715/likelihoodResults_786931201_787536001_4FGL_J1159.0+0939_weekly_bin906.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 17039.8092281
delta logL = -0.000800727757451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 17039.8084274
delta logL = -7.22066033632e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17039.81     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      234 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.0533        .42118E-03** at limit **
   2  Index         3.0730        1.8184       -.13582E-04     .0000    
   3  Normalizat    .93258        1.2663        .26080E-05    .45046E-04
   4  Prefactor     1.0027        1.2998       -.12924E-05    .59617E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.07302
  Normalizat = 0.932578
  Prefactor  = 1.00269
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17039.81     FROM HESSE     STATUS=FAILED         9 CALLS      243 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.0533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0659        2.1631       -.13582E-04   -.39564    
   3  Normalizat    .93258        1.2663        .26080E-05   -.95325    
   4  Prefactor     1.0027        1.2998       -.12924E-05   -.92640    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.97628e-12
Minuit parameter uncertainties:
  1  1.14923e-06
  2  1.86909
  3  1.31068
  4  1.34424
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) = 17039.8084274
delta logL = 3.63797880709e-12

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  0.000e+00  1.149e-06  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  3.073e+00  1.869e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.003e+00  1.344e+00  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  9.326e-01  1.311e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 179.751 9.660

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/17378715/cmap_HighResolution_786931201_787536001_4FGL_J1159.0+0939_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.17e-03', job_status='DONE', photon_flux_upper_limit='2.86e-08', time_completed='2025-12-16 02:33:01.580670', job_id='17378715', GAL2='1.00', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1765881181.58', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='906' AND source_name='4FGL J1159.0+0939' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:33:02 PST 2025

