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


Performing analysis on: 4FGL_J0949.7+5819_weekly_bin906
RA = 147.437, Dec = 58.3283
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='17377808', job_status='RUN', time_executed='2025-12-16 02:00:18.416416', time_epoch_executed='1765879218.42' WHERE source_name='4FGL J0949.7+5819' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17377808

Creating custom pfile directory:
/lscratch/kocevski/17377808/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/17377808/ft1_4FGL_J0949.7+5819_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/17377808/ft2_4FGL_J0949.7+5819_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17377808/ft1_4FGL_J0949.7+5819_weekly_bin906.fits outfile=/lscratch/kocevski/17377808/ft1_filteredMKT_4FGL_J0949.7+5819_weekly_bin906.fits ra=147.437 dec=58.3283 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.35
user 4.41
sys 0.35

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17377808/ft2_4FGL_J0949.7+5819_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17377808/ft2_4FGL_J0949.7+5819_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/17377808/ft1_filteredMKT_4FGL_J0949.7+5819_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17377808/ft1_filtered_4FGL_J0949.7+5819_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.88
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 1693

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17377808/ft1_filtered_4FGL_J0949.7+5819_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17377808/ft2_4FGL_J0949.7+5819_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17377808/ltcube_786931201_787536001_4FGL_J0949.7+5819_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/17377808/ft2_4FGL_J0949.7+5819_weekly_bin906.fits
.....................!
real 16.36
user 15.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17377808/ft1_filtered_4FGL_J0949.7+5819_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17377808/ft2_4FGL_J0949.7+5819_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17377808/ltcube_786931201_787536001_4FGL_J0949.7+5819_weekly_bin906.fits outfile=/lscratch/kocevski/17377808/expmap_786931201_787536001_4FGL_J0949.7+5819_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/17377808/ltcube_786931201_787536001_4FGL_J0949.7+5819_weekly_bin906.fits
.....................!
real 60.73
user 56.47
sys 3.53

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

Setting source of interest to:
4FGL J0949.7+5819 @ 147.437 58.3283

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17377808/ft1_filtered_4FGL_J0949.7+5819_weekly_bin906.fits scfile=/lscratch/kocevski/17377808/ft2_4FGL_J0949.7+5819_weekly_bin906.fits outfile=/lscratch/kocevski/17377808/cmap_786931201_787536001_4FGL_J0949.7+5819_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=147.437 yref=58.3283 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.72
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17377808/ft1_filtered_4FGL_J0949.7+5819_weekly_bin906.fits scfile=/lscratch/kocevski/17377808/ft2_4FGL_J0949.7+5819_weekly_bin906.fits outfile=/lscratch/kocevski/17377808/cmap_HighResolution_786931201_787536001_4FGL_J0949.7+5819_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=147.437 yref=58.3283 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.93
user 0.20
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17377808/ft1_filtered_4FGL_J0949.7+5819_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17377808/ft2_4FGL_J0949.7+5819_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17377808/Model_4FGL_J0949.7+5819_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/17377808/ft1_filtered_4FGL_J0949.7+5819_weekly_bin906.fits.....................!
real 57.07
user 55.41
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17377808/ft1_filtered_4FGL_J0949.7+5819_weekly_bin906.fits', '/lscratch/kocevski/17377808/ft2_4FGL_J0949.7+5819_weekly_bin906.fits', expMap='/lscratch/kocevski/17377808/expmap_786931201_787536001_4FGL_J0949.7+5819_weekly_bin906.fits', expCube='/lscratch/kocevski/17377808/ltcube_786931201_787536001_4FGL_J0949.7+5819_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17377808/Model_4FGL_J0949.7+5819_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0949.7+5819'

4FGL J0949.7+5819
   Spectrum: PowerLaw
401    Prefactor:  8.885e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  2.628e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  7.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17377808/ft1_filtered_4FGL_J0949.7+5819_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17377808/ft2_4FGL_J0949.7+5819_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17377808/expmap_786931201_787536001_4FGL_J0949.7+5819_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17377808/ltcube_786931201_787536001_4FGL_J0949.7+5819_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17377808/Model_4FGL_J0949.7+5819_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) = 18329.4121771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.519       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.4635       1.0000          .0000       .10000E+07
     3 'Prefactor '    .15101E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .19257E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    18.553       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.1878       1.0000          .0000       .10000E+07
     7 'norm      '    .85774       1.0000          .0000       .10000E+07
     8 'Prefactor '    .95030E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.8012       1.0000          .0000       .10000E+07
    10 'Prefactor '    .66613E-09   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.4498       1.0000          .0000       .10000E+07
    12 'Prefactor '    .39649       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.7393       1.0000          .0000       .10000E+07
    14 'norm      '    .48511E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    24.308       1.0000          .0000       .10000E+07
    16 'norm      '    1.7361       1.0000          .0000       .10000E+07
    17 'norm      '    4.4500       1.0000          .0000       .10000E+07
    18 'Prefactor '    .79308E-05   1.0000          .0000       .10000E+07
    19 'norm      '    2.0720       1.0000          .0000       .10000E+07
    20 'norm      '    2.6428       1.0000          .0000       .10000E+07
    21 'Prefactor '    8.9819       1.0000          .0000       .10000E+07
    22 'norm      '    9.6030       1.0000          .0000       .10000E+07
    23 'Prefactor '    .13084E-02   1.0000          .0000       .10000E+07
    24 'norm      '    .69584       1.0000          .0000       .10000E+07
    25 'norm      '    1.5034       1.0000          .0000       .10000E+07
    26 'Prefactor '    .44037E-02   1.0000          .0000       .10000E+07
    27 'Prefactor '    .24929E-01   1.0000          .0000       .10000E+07
    28 'norm      '    1.1342       1.0000          .0000       .10000E+07
    29 'Prefactor '    .27503E-02   1.0000          .0000       .10000E+07
    30 'Prefactor '    15.791       1.0000          .0000       .10000E+07
    31 'Normalizat'    .87049       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0268       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18326.66     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     1803 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.427        5.4583        .68185E-07    .16261E-01
   2  Prefactor     5.4737        3.4829       -.11772E-06   -.27019E-02
   3  Prefactor      .0000        10.140       -.27591E-06** at limit **
   4  norm          .12212E-08    4.8643        .77059E-07** at limit **
   5  Prefactor     18.475        1.3156       -.14277E-08    .29358E-01
   6  Prefactor     5.2069        5.0524        .16388E-06    .64499E-01
   7  norm          .85790        .48895       -.31359E-07   -.49506E-03
   8  Prefactor     .49960E-09    1.6961       -.78049E-07** at limit **
   9  Prefactor     2.8215        4.5658        .73273E-07    .13989E-01
  10  Prefactor      .0000        .52455       -.18330E-07** at limit **
  11  Prefactor     4.4723        6.0548       -.23611E-06    .46274E-01
  12  Prefactor     .38266        5.6211        .50208E-06    .12223E-02
  13  Prefactor     6.7313        3.8401       -.12629E-06   -.42890E-02
  14  norm          .55511E-10    1.2966        .19950E-06** at limit **
  15  Prefactor     24.322        1.9951       -.22387E-08   -.69687E-01
  16  norm          1.7360        .35276       -.52707E-08    .11478E-02
  17  norm          4.5382        4.6809       -.57474E-07   -.11038E-01
  18  Prefactor     .21649E-08    2.9290       -.41949E-06** at limit **
  19  norm          2.0723        .48369       -.14469E-07    .32784E-02
  20  norm          2.6408        1.2882       -.11409E-06   -.17919E-02
  21  Prefactor     9.0065        1.0575        .86476E-08    .31787E-02
  22  norm          9.5336        1.1846       -.25827E-07    .34015E-02
  23  Prefactor      .0000        5.4390       -.14191E-07** at limit **
  24  norm          .69597        .75413       -.31353E-07    .64303E-03
  25  norm          1.5028        .79762       -.98506E-07   -.27243E-02
  26  Prefactor     .25036E-07    28.280        .81068E-06** at limit **
  27  Prefactor     .16653E-09    18.065       -.20863E-05** at limit **
  28  norm          1.1309        1.0353       -.31409E-08    .11795E-02
  29  Prefactor     .24092E-07    24.240        .13918E-05** at limit **
  30  Prefactor     15.952        1.0662        .34902E-08    .11525E-01
  31  Normalizat    .87028        .10489        .19329E-05    .36261E-05
  32  Prefactor     1.0270        .10636        .12268E-05   -.21275E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.4274
  Prefactor  = 5.47367
  Prefactor  = 0
  norm       = 1.22125e-09
  Prefactor  = 18.4745
  Prefactor  = 5.20692
  norm       = 0.857902
  Prefactor  = 4.996e-10
  Prefactor  = 2.82147
  Prefactor  = 0
  Prefactor  = 4.47231
  Prefactor  = 0.382662
  Prefactor  = 6.73126
  norm       = 5.55112e-11
  Prefactor  = 24.3216
  norm       = 1.73603
  norm       = 4.53818
  Prefactor  = 2.16493e-09
  norm       = 2.07227
  norm       = 2.64084
  Prefactor  = 9.00653
  norm       = 9.53364
  Prefactor  = 0
  norm       = 0.695967
  norm       = 1.50277
  Prefactor  = 2.50355e-08
  Prefactor  = 1.66533e-10
  norm       = 1.13087
  Prefactor  = 2.40918e-08
  Prefactor  = 15.9522
  Normalizat = 0.870277
  Prefactor  = 1.02703
 **********
 **   18 **HESSE 
 **********

 FCN=   18326.66     FROM HESSE     STATUS=OK           735 CALLS     2538 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.427        5.6415        .21563E-03   -1.5615    
   2  Prefactor     5.4737        3.5011        .42964E-03   -1.5661    
   3  Prefactor      .0000        10.171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .12212E-08    4.6954        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.475        7.4450        .23225E-03   -1.5622    
   6  Prefactor     5.2069        7.1302        .44112E-03   -1.5662    
   7  norm          .85790        .49879        .48727E-03   -1.5689    
   8  Prefactor     .49960E-09    1.7024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8215        6.6825        .60758E-03   -1.5674    
  10  Prefactor      .0000        .52324        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.4723        8.0062        .47712E-03   -1.5666    
  12  Prefactor     .38266        1.8002        .62748E-02   -1.5696    
  13  Prefactor     6.7313        3.8827        .38628E-03   -1.5656    
  14  norm          .55511E-10    1.3047        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.322        16.662        .20287E-03   -1.5609    
  16  norm          1.7360        .35892        .79145E-03   -1.5682    
  17  norm          4.5382        6.6334        .47711E-03   -1.5665    
  18  Prefactor     .21649E-08    2.9123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0723        .48816        .71733E-03   -1.5679    
  20  norm          2.6408        1.2895        .62690E-03   -1.5675    
  21  Prefactor     9.0065        16.596        .33419E-03   -1.5648    
  22  norm          9.5336        7.7507        .32314E-03   -1.5646    
  23  Prefactor      .0000        5.4186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .69597        .76508        .61047E-03   -1.5691    
  25  norm          1.5028        .80286        .87270E-03   -1.5683    
  26  Prefactor     .25036E-07    28.459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .16653E-09    18.044        .16732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.1309        1.1242        .10946E-02   -1.5687    
  29  Prefactor     .24092E-07    24.418        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     15.952        14.414        .25178E-03   -1.5628    
  31  Normalizat    .87028        .10061        .44523E-01   -.97513    
  32  Prefactor     1.0270        .97139E-01    .41517E-01   -.91834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84032e-07
Minuit parameter uncertainties:
  1  5.64146
  2  3.50114
  3  1.66906e-05
  4  0.000151314
  5  7.44501
  6  7.13021
  7  0.498792
  8  5.6992e-05
  9  6.68256
  10  8.55783e-07
  11  8.00621
  12  1.65994
  13  3.88273
  14  1.69188e-05
  15  16.6617
  16  0.358918
  17  6.63346
  18  0.000159595
  19  0.488161
  20  1.28948
  21  16.5957
  22  7.75072
  23  6.76336e-06
  24  0.765079
  25  0.802857
  26  0.00168773
  27  0.000110641
  28  1.12419
  29  0.0015343
  30  14.4143
  31  0.100629
  32  0.0971551
Done.

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

Extracting fit parameters...

4FGL J0949.7+5819
   Spectrum: PowerLaw
401    Prefactor:  2.432e+01  1.666e+01  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  2.628e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  7.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  1.027e+00  9.716e-02  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  8.703e-01  1.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.37
Ra Dec: 147.437 58.328
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 2.68e-08 +/- 1.84e-08
Energy Flux (Fixed Index): 6.86e-06 +/- 4.70e-06

TS (Fixed Index): 3.37
Ra Dec: 147.437 58.328
Photon Flux Upper Limit: 6.37423591075e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00499695184931 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17377808/likelihoodResults_786931201_787536001_4FGL_J0949.7+5819_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): 0
logL (Free Index) = 18326.653282
delta logL = 0.00456870520065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18326.6515675
delta logL = 0.00628317312294

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.417       1.0000          .0000       .10000E+07
     2 'Index     '    2.5567       1.0000          .0000       10.000    
     3 'Normalizat'    .87200       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0259       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+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=   18326.65     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      239 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.417        20.281        .79358E-05   -.25317E-02
   2  Index         2.5567        .65701        .11359E-01   -.46047E-04
   3  Normalizat    .87200        .10287        .25804E-03   -.15156E-04
   4  Prefactor     1.0259        .10500        .24757E-03   -.28103E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.4172
  Index      = 2.55667
  Normalizat = 0.872002
  Prefactor  = 1.02592
 **********
 **   18 **HESSE 
 **********

 FCN=   18326.65     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.417        19.482        .15872E-05   -1.5607    
   2  Index         2.5567        .63070        .45437E-03   -.51056    
   3  Normalizat    .87200        .10287        .10321E-04   -.97451    
   4  Prefactor     1.0259        .10502        .99029E-05   -.91870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06839e-10
Minuit parameter uncertainties:
  1  19.4823
  2  0.632921
  3  0.102895
  4  0.105039
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) = 18326.6515675
delta logL = 0.00628320197575

Extracting fit parameters...

4FGL J0949.7+5819
   Spectrum: PowerLaw
401    Prefactor:  2.542e+01  1.948e+01  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  2.557e+00  6.329e-01  0.000e+00  1.000e+01 (-1.000e+00)
403        Scale:  7.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  1.026e+00  1.050e-01  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  8.720e-01  1.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.37
Ra Dec: 147.437 58.328
Photon Index (Free Index): 2.56 +/- 0.63
Photon Flux (Free Index): 2.55e-08 +/- 2.14e-08
Energy Flux (Free Index): 6.96e-06 +/- 4.85e-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/17377808/cmap_HighResolution_786931201_787536001_4FGL_J0949.7+5819_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.00e-03', comment='SUCCESS', photon_flux='2.68e-08', energy_flux2='6.96e-06', photon_flux_error='1.84e-08', dlogl='6.28e-03', energy_flux='6.86e-06', photon_flux2='2.55e-08', job_status='DONE', time_completed='2025-12-16 02:16:50.528168', photon_index_error2='0.63', photon_index2='2.56', ts='3.37', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='6.37e-08', energy_flux_error2='4.85e-06', EG='0.87', time_epoch_completed='1765880210.53', return_code='0', job_id='17377808', GAL2='1.03', EG2='0.87', return_code2='0', energy_flux_error='4.70e-06', photon_flux_error2='2.14e-08', ts2='3.37', photon_index='2.63' WHERE bin_id='906' AND source_name='4FGL J0949.7+5819' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:16:51 PST 2025

