/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.0+4038_weekly_bin906
RA = 147.262, Dec = 40.6367
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='17377652', job_status='RUN', time_executed='2025-12-16 01:56:15.064838', time_epoch_executed='1765878975.06' WHERE source_name='4FGL J0949.0+4038' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17377652

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


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17377652/ft1_4FGL_J0949.0+4038_weekly_bin906.fits outfile=/lscratch/kocevski/17377652/ft1_filteredMKT_4FGL_J0949.0+4038_weekly_bin906.fits ra=147.262 dec=40.6367 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.36
user 4.41
sys 0.39

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17377652/ft2_4FGL_J0949.0+4038_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17377652/ft2_4FGL_J0949.0+4038_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/17377652/ft1_filteredMKT_4FGL_J0949.0+4038_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17377652/ft1_filtered_4FGL_J0949.0+4038_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.74
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 1236

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17377652/ft1_filtered_4FGL_J0949.0+4038_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17377652/ft2_4FGL_J0949.0+4038_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17377652/ltcube_786931201_787536001_4FGL_J0949.0+4038_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/17377652/ft2_4FGL_J0949.0+4038_weekly_bin906.fits
.....................!
real 15.91
user 14.84
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17377652/ft1_filtered_4FGL_J0949.0+4038_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17377652/ft2_4FGL_J0949.0+4038_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17377652/ltcube_786931201_787536001_4FGL_J0949.0+4038_weekly_bin906.fits outfile=/lscratch/kocevski/17377652/expmap_786931201_787536001_4FGL_J0949.0+4038_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/17377652/ltcube_786931201_787536001_4FGL_J0949.0+4038_weekly_bin906.fits
.....................!
real 60.59
user 55.69
sys 3.78

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

Setting source of interest to:
4FGL J0949.0+4038 @ 147.262 40.6367

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17377652/ft1_filtered_4FGL_J0949.0+4038_weekly_bin906.fits scfile=/lscratch/kocevski/17377652/ft2_4FGL_J0949.0+4038_weekly_bin906.fits outfile=/lscratch/kocevski/17377652/cmap_786931201_787536001_4FGL_J0949.0+4038_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.262 yref=40.6367 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.89
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17377652/ft1_filtered_4FGL_J0949.0+4038_weekly_bin906.fits scfile=/lscratch/kocevski/17377652/ft2_4FGL_J0949.0+4038_weekly_bin906.fits outfile=/lscratch/kocevski/17377652/cmap_HighResolution_786931201_787536001_4FGL_J0949.0+4038_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.262 yref=40.6367 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.08
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17377652/ft1_filtered_4FGL_J0949.0+4038_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17377652/ft2_4FGL_J0949.0+4038_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17377652/Model_4FGL_J0949.0+4038_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/17377652/ft1_filtered_4FGL_J0949.0+4038_weekly_bin906.fits.....................!
real 35.71
user 33.53
sys 1.13

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

Using source of interest name: '4FGL J0949.0+4038'

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  7.192e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
324        Index:  2.608e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.143e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.181       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0795       1.0000          .0000       .10000E+07
     3 'Prefactor '    .55588E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .11686E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .24056       1.0000          .0000       .10000E+07
     6 'norm      '    .21804E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.4823       1.0000          .0000       .10000E+07
     8 'Prefactor '    .36623E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    5.5788       1.0000          .0000       .10000E+07
    10 'norm      '    3.5747       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.4617       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.1560       1.0000          .0000       .10000E+07
    13 'Prefactor '    46.254       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.8858       1.0000          .0000       .10000E+07
    15 'norm      '    8.7460       1.0000          .0000       .10000E+07
    16 'Prefactor '    .69712E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .15895E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .58732E-05   1.0000          .0000       .10000E+07
    19 'norm      '    2.6548       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.0105       1.0000          .0000       .10000E+07
    21 'norm      '    1.3170       1.0000          .0000       .10000E+07
    22 'Prefactor '    13.516       1.0000          .0000       .10000E+07
    23 'Prefactor '    1.4946       1.0000          .0000       .10000E+07
    24 'Normalizat'    .90128       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0253       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13948.31     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     2185 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.711        21.792        .15590E-06    .63747E-01
   2  Prefactor     1.0723        2.1581        .19702E-06    .90093E-03
   3  Prefactor     .88818E-09    4.7611       -.83337E-06** at limit **
   4  norm           .0000        .25399        .16414E-06** at limit **
   5  Prefactor     .24363        1.6984       -.43268E-06** at limit **
   6  norm          .44409E-09    3.5638       -.23142E-06** at limit **
   7  Prefactor     1.4828        1.2310       -.16344E-07    .90663E-03
   8  Prefactor     .11102E-09    1.8478       -.28574E-06** at limit **
   9  Prefactor     5.5811        7.9942        .69268E-06    .87111E-02
  10  norm          3.5349        6.9590        .13788E-06    .41362E-02
  11  Prefactor     4.5473        25.334       -.13497E-05   -.31986E-01
  12  Prefactor     6.1564        4.1806       -.51759E-07   -.21332E-02
  13  Prefactor     46.558        15.002        .38786E-06   -.19951    
  14  Prefactor     2.9183        2.9926        .70653E-08   -.40648E-03
  15  norm          8.7586        2.8894        .22206E-06    .46077E-01
  16  Prefactor     .53291E-08    4.8663        .16097E-06** at limit **
  17  Prefactor      .0000        .33960        .18948E-07** at limit **
  18  Prefactor      .0000        1.4073        .12380E-06** at limit **
  19  norm          2.6550        1.3005       -.16471E-06   -.18711E-02
  20  Prefactor     2.0112        2.0014       -.15175E-06   -.63243E-03
  21  norm          1.2923        4.3120        .62955E-06    .63631E-03
  22  Prefactor     13.594        2.7936       -.48357E-07   -.24337E-01
  23  Prefactor     1.4977        2.3458        .22287E-06    .12237E-02
  24  Normalizat    .90101        .12253        .39567E-05    .10864E-04
  25  Prefactor     1.0251        .14319       -.43671E-05   -.17917E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.7111
  Prefactor  = 1.07226
  Prefactor  = 8.88178e-10
  norm       = 0
  Prefactor  = 0.243626
  norm       = 4.44089e-10
  Prefactor  = 1.48275
  Prefactor  = 1.11022e-10
  Prefactor  = 5.58108
  norm       = 3.53495
  Prefactor  = 4.54729
  Prefactor  = 6.15637
  Prefactor  = 46.5576
  Prefactor  = 2.9183
  norm       = 8.75858
  Prefactor  = 5.32907e-09
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.65499
  Prefactor  = 2.01124
  norm       = 1.29225
  Prefactor  = 13.5942
  Prefactor  = 1.49772
  Normalizat = 0.901014
  Prefactor  = 1.02511
 **********
 **   18 **HESSE 
 **********

 FCN=   13948.31     FROM HESSE     STATUS=OK           499 CALLS     2684 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.711        23.187        .18515E-03   -1.5599    
   2  Prefactor     1.0723        2.2568        .11601E-02   -1.5687    
   3  Prefactor     .88818E-09    4.7536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .11386        .12024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .24363        .78881        .43279E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .44409E-09    3.5335        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4828        1.2797        .88105E-03   -1.5684    
   8  Prefactor     .11102E-09    1.8495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5811        8.5805        .42511E-03   -1.5661    
  10  norm          3.5349        7.1481        .53427E-03   -1.5670    
  11  Prefactor     4.5473        27.463        .47646E-03   -1.5665    
  12  Prefactor     6.1564        4.1932        .40439E-03   -1.5658    
  13  Prefactor     46.558        28.427        .14705E-03   -1.5571    
  14  Prefactor     2.9183        2.9915        .59800E-03   -1.5674    
  15  norm          8.7586        7.8609        .33870E-03   -1.5649    
  16  Prefactor     .53291E-08    4.7367        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        .33881        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        1.3663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.6550        1.3014        .62536E-03   -1.5675    
  20  Prefactor     2.0112        2.0167        .72984E-03   -1.5680    
  21  norm          1.2923        4.3601        .95914E-03   -1.5685    
  22  Prefactor     13.594        16.428        .27219E-03   -1.5634    
  23  Prefactor     1.4977        2.3885        .87617E-03   -1.5683    
  24  Normalizat    .90101        .10826        .44918E-01   -.96424    
  25  Prefactor     1.0251        .12359        .41651E-01   -.91897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8466e-07
Minuit parameter uncertainties:
  1  23.1874
  2  2.25679
  3  0.000128984
  4  4.5758e-08
  5  0.788809
  6  8.10596e-05
  7  1.27967
  8  2.6086e-05
  9  8.58056
  10  7.14809
  11  22.3502
  12  4.19322
  13  28.4272
  14  2.99153
  15  7.8609
  16  0.000317332
  17  2.56191e-07
  18  1.19335e-05
  19  1.30139
  20  2.01675
  21  4.36011
  22  16.4276
  23  2.38854
  24  0.108282
  25  0.123623
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  4.656e+01  2.843e+01  0.000e+00  1.000e+06 ( 1.000e-13)
324        Index:  2.608e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.143e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.025e+00  1.236e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  9.010e-01  1.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.59
Ra Dec: 147.262 40.637
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 4.89e-08 +/- 2.98e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 7.77e-06

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) = 13947.801559
delta logL = 0.506935832422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13947.7930256
delta logL = 0.515469269683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.248       1.0000          .0000       .10000E+07
     2 'Index     '    3.1831       1.0000          .0000       10.000    
     3 'Normalizat'    .86854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13947.79     FROM MIGRAD    STATUS=FAILED        92 CALLS      308 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.238        31.844        .72740E-05   -.26288E-02
   2  Index         3.1835        .76583        .64560E-02    .11067E-02
   3  Normalizat    .86839        .12275        .22782E-03   -.88328E-04
   4  Prefactor     1.0526        .14667        .25750E-03   -.28557E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13947.79     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      383 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.238        31.844        .21152E-04   -1.5598    
   2  Index         3.1835        .76583        .53242E-03   -.37181    
   3  Normalizat    .86839        .12275        .16888E-03   -.97580    
   4  Prefactor     1.0526        .14667        .20867E-03   -.90995    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13947.79     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      411 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.238        26.441        .29096E-06    .83152E-04
   2  Index         3.1835        .63559        .12912E-02   -.64979E-05
   3  Normalizat    .86839        .12222        .91127E-05    .14971E-05
   4  Prefactor     1.0526        .14608        .10300E-04    .44151E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.2377
  Index      = 3.1835
  Normalizat = 0.868387
  Prefactor  = 1.05262
 **********
 **   18 **HESSE 
 **********

 FCN=   13947.79     FROM HESSE     STATUS=OK            23 CALLS      434 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.238        25.586        .37188E-06   -1.5598    
   2  Index         3.1835        .61484        .51648E-04   -.37181    
   3  Normalizat    .86839        .12191        .18225E-05   -.97580    
   4  Prefactor     1.0526        .14569        .20600E-05   -.90995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.118e-12
Minuit parameter uncertainties:
  1  25.5857
  2  0.616636
  3  0.121951
  4  0.14575
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) = 13947.7930247
delta logL = 0.515470179274

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  3.024e+01  2.559e+01  0.000e+00  1.000e+06 ( 1.000e-13)
324        Index:  3.184e+00  6.166e-01  0.000e+00  1.000e+01 (-1.000e+00)
325        Scale:  7.143e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.053e+00  1.457e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  8.684e-01  1.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.82
Ra Dec: 147.262 40.637
Photon Index (Free Index): 3.18 +/- 0.62
Photon Flux (Free Index): 7.26e-08 +/- 3.70e-08
Energy Flux (Free Index): 1.34e-05 +/- 6.16e-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/17377652/cmap_HighResolution_786931201_787536001_4FGL_J0949.0+4038_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.89e-08', energy_flux2='1.34e-05', photon_flux_error='2.98e-08', dlogl='5.15e-01', energy_flux='1.27e-05', photon_flux2='7.26e-08', job_status='DONE', time_completed='2025-12-16 02:08:55.258140', photon_index_error2='0.62', photon_index2='3.18', ts='5.59', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='6.16e-06', EG='0.90', time_epoch_completed='1765879735.26', return_code='0', job_id='17377652', GAL2='1.05', EG2='0.87', return_code2='0', energy_flux_error='7.77e-06', photon_flux_error2='3.70e-08', ts2='6.82', photon_index='2.61' WHERE bin_id='906' AND source_name='4FGL J0949.0+4038' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:08:55 PST 2025

