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


Performing analysis on: 4FGL_J0833.9+4223_weekly_bin908
RA = 128.476, Dec = 42.3989
tmin = 788140801, tmax = 788745601
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='18157971', job_status='RUN', time_executed='2025-12-30 01:08:03.551643', time_epoch_executed='1767085683.55' WHERE source_name='4FGL J0833.9+4223' and cadence='weekly' and bin_id='908'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18157971

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18157971/ft1_4FGL_J0833.9+4223_weekly_bin908.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18157971/ft2_4FGL_J0833.9+4223_weekly_bin908.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18157971/ft1_4FGL_J0833.9+4223_weekly_bin908.fits outfile=/lscratch/kocevski/18157971/ft1_filteredMKT_4FGL_J0833.9+4223_weekly_bin908.fits ra=128.476 dec=42.3989 rad=12.0 tmin=788140801.0 tmax=788745601.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 4.74
user 4.14
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18157971/ft2_4FGL_J0833.9+4223_weekly_bin908.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18157971/ft2_4FGL_J0833.9+4223_weekly_bin908.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/18157971/ft1_filteredMKT_4FGL_J0833.9+4223_weekly_bin908.fits evtable="EVENTS" outfile="/lscratch/kocevski/18157971/ft1_filtered_4FGL_J0833.9+4223_weekly_bin908.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.62
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1526

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18157971/ft1_filtered_4FGL_J0833.9+4223_weekly_bin908.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18157971/ft2_4FGL_J0833.9+4223_weekly_bin908.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18157971/ltcube_788140801_788745601_4FGL_J0833.9+4223_weekly_bin908.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/18157971/ft2_4FGL_J0833.9+4223_weekly_bin908.fits
.....................!
real 18.21
user 17.50
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18157971/ft1_filtered_4FGL_J0833.9+4223_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18157971/ft2_4FGL_J0833.9+4223_weekly_bin908.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18157971/ltcube_788140801_788745601_4FGL_J0833.9+4223_weekly_bin908.fits outfile=/lscratch/kocevski/18157971/expmap_788140801_788745601_4FGL_J0833.9+4223_weekly_bin908.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/18157971/ltcube_788140801_788745601_4FGL_J0833.9+4223_weekly_bin908.fits
.....................!
real 68.42
user 63.80
sys 3.92

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

Setting source of interest to:
4FGL J0833.9+4223 @ 128.476 42.3989

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18157971/ft1_filtered_4FGL_J0833.9+4223_weekly_bin908.fits scfile=/lscratch/kocevski/18157971/ft2_4FGL_J0833.9+4223_weekly_bin908.fits outfile=/lscratch/kocevski/18157971/cmap_788140801_788745601_4FGL_J0833.9+4223_weekly_bin908.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=128.476 yref=42.3989 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.71
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18157971/ft1_filtered_4FGL_J0833.9+4223_weekly_bin908.fits scfile=/lscratch/kocevski/18157971/ft2_4FGL_J0833.9+4223_weekly_bin908.fits outfile=/lscratch/kocevski/18157971/cmap_HighResolution_788140801_788745601_4FGL_J0833.9+4223_weekly_bin908.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=128.476 yref=42.3989 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.64
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18157971/ft1_filtered_4FGL_J0833.9+4223_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18157971/ft2_4FGL_J0833.9+4223_weekly_bin908.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18157971/Model_4FGL_J0833.9+4223_weekly_bin908.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/18157971/ft1_filtered_4FGL_J0833.9+4223_weekly_bin908.fits.....................!
real 52.82
user 51.13
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18157971/ft1_filtered_4FGL_J0833.9+4223_weekly_bin908.fits', '/lscratch/kocevski/18157971/ft2_4FGL_J0833.9+4223_weekly_bin908.fits', expMap='/lscratch/kocevski/18157971/expmap_788140801_788745601_4FGL_J0833.9+4223_weekly_bin908.fits', expCube='/lscratch/kocevski/18157971/ltcube_788140801_788745601_4FGL_J0833.9+4223_weekly_bin908.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18157971/Model_4FGL_J0833.9+4223_weekly_bin908.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0833.9+4223'

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  8.920e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
336        Index:  2.434e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  8.609e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18157971/ft1_filtered_4FGL_J0833.9+4223_weekly_bin908.fits
Spacecraft file(s): /lscratch/kocevski/18157971/ft2_4FGL_J0833.9+4223_weekly_bin908.fits
Exposure map: /lscratch/kocevski/18157971/expmap_788140801_788745601_4FGL_J0833.9+4223_weekly_bin908.fits
Exposure cube: /lscratch/kocevski/18157971/ltcube_788140801_788745601_4FGL_J0833.9+4223_weekly_bin908.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18157971/Model_4FGL_J0833.9+4223_weekly_bin908.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) = 16461.7822241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9569       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.3688       1.0000          .0000       .10000E+07
     3 'norm      '    1.1569       1.0000          .0000       .10000E+07
     4 'Prefactor '    .31031E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .12177E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    17.009       1.0000          .0000       .10000E+07
     7 'norm      '    1.5828       1.0000          .0000       .10000E+07
     8 'norm      '    .68531E-01   1.0000          .0000       .10000E+07
     9 'norm      '    1.2380       1.0000          .0000       .10000E+07
    10 'Prefactor '    .42937E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .17070E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .79475       1.0000          .0000       .10000E+07
    13 'Prefactor '    21.425       1.0000          .0000       .10000E+07
    14 'Prefactor '    .63729       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.6594       1.0000          .0000       .10000E+07
    16 'norm      '    3.9679       1.0000          .0000       .10000E+07
    17 'norm      '    .25439E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.0664       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.0962       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.4039       1.0000          .0000       .10000E+07
    21 'Prefactor '    6.2442       1.0000          .0000       .10000E+07
    22 'norm      '    .21039E-07   1.0000          .0000       .10000E+07
    23 'Prefactor '    .55900E-07   1.0000          .0000       .10000E+07
    24 'norm      '    .13644E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    2.7863       1.0000          .0000       .10000E+07
    26 'Normalizat'    .92969       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0679       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16461.74     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     1905 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9536        6.0203        .30213E-06    .38668E-01
   2  Prefactor     6.3626        1.1326        .16562E-07    .20928E-02
   3  norm          1.1574        1.0726        .23116E-07    .22773E-02
   4  Prefactor     .55511E-10    1.1673        .81682E-07** at limit **
   5  Prefactor     .74774E-07    5.2728        .21238E-06** at limit **
   6  Prefactor     16.993        4.0205       -.91424E-08    .23095E-02
   7  norm          1.5862        3.2356        .40218E-07    .91727E-03
   8  norm          .68357E-01    1.3605        .14571E-06** at limit **
   9  norm          1.2385        .42797        .29192E-08   -.23763E-02
  10  Prefactor     .96090E-07    12.302       -.46320E-06** at limit **
  11  Prefactor     .13878E-08    5.2423        .76631E-06** at limit **
  12  Prefactor     .79479        1.9329       -.12565E-06    .27941E-03
  13  Prefactor     21.461        1.0580        .88097E-08   -.24037E-01
  14  Prefactor     .62272        1.1473       -.10473E-06   -.11725E-01
  15  Prefactor     1.6585        1.6499       -.13145E-07   -.64553E-03
  16  norm          3.9908        2.9334       -.22883E-07    .39975E-03
  17  norm          .31490E-05    1.9295        .22148E-06** at limit **
  18  Prefactor     4.1727        2.7556       -.11425E-06   -.23932E-01
  19  Prefactor     2.1168        1.5979        .37446E-07    .25726E-02
  20  Prefactor     2.4039        2.1485       -.81578E-08   -.30104E-02
  21  Prefactor     6.2470        4.2313       -.36685E-07    .79802E-01
  22  norm           .0000        .10464        .25643E-07** at limit **
  23  Prefactor      .0000        .88416       -.42257E-07** at limit **
  24  norm          .12768E-08    2.1559       -.14962E-07** at limit **
  25  Prefactor     2.7874        1.4802       -.82644E-08   -.30310E-02
  26  Normalizat    .92949        .12589       -.10161E-05   -.56387E-04
  27  Prefactor     1.0680        .10967        .13457E-05    .54644E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.95363
  Prefactor  = 6.36264
  norm       = 1.15735
  Prefactor  = 5.55112e-11
  Prefactor  = 7.47735e-08
  Prefactor  = 16.9926
  norm       = 1.5862
  norm       = 0.0683572
  norm       = 1.23846
  Prefactor  = 9.60898e-08
  Prefactor  = 1.38778e-09
  Prefactor  = 0.794792
  Prefactor  = 21.461
  Prefactor  = 0.62272
  Prefactor  = 1.65846
  norm       = 3.99076
  norm       = 3.14904e-06
  Prefactor  = 4.17268
  Prefactor  = 2.11676
  Prefactor  = 2.40391
  Prefactor  = 6.247
  norm       = 0
  Prefactor  = 0
  norm       = 1.27676e-09
  Prefactor  = 2.78742
  Normalizat = 0.929488
  Prefactor  = 1.06801
 **********
 **   18 **HESSE 
 **********

 FCN=   16461.74     FROM HESSE     STATUS=OK           568 CALLS     2473 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9536        6.8552        .59030E-03   -1.5674    
   2  Prefactor     6.3626        7.1977        .39749E-03   -1.5658    
   3  norm          1.1574        1.0911        .10725E-02   -1.5686    
   4  Prefactor     .55511E-10    1.1752        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .74774E-07    5.9320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.993        4.0405        .24258E-03   -1.5626    
   7  norm          1.5862        3.3745        .84370E-03   -1.5683    
   8  norm          .68357E-01    .45773        .28729E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2385        .43726        .10081E-02   -1.5686    
  10  Prefactor     .96090E-07    12.997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .13878E-08    6.2058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .79479        1.9637        .53327E-03   -1.5690    
  13  Prefactor     21.461        17.283        .21610E-03   -1.5615    
  14  Prefactor     .62272        11.629        .65952E-03   -1.5692    
  15  Prefactor     1.6585        1.6342        .81873E-03   -1.5682    
  16  norm          3.9908        2.9632        .50612E-03   -1.5668    
  17  norm          .31490E-05    1.4450        .55863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.1727        9.8641        .49975E-03   -1.5667    
  19  Prefactor     2.1168        22.666        .71260E-03   -1.5679    
  20  Prefactor     2.4039        2.1893        .66010E-03   -1.5677    
  21  Prefactor     6.2470        7.7968        .40148E-03   -1.5658    
  22  norm           .0000        .63245E-01    .12783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        .86941        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .12768E-08    2.1691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.7874        1.5014        .60932E-03   -1.5675    
  26  Normalizat    .92949        .11412        .45280E-01   -.95432    
  27  Prefactor     1.0680        .97031E-01    .38957E-01   -.90496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44948e-07
Minuit parameter uncertainties:
  1  6.8552
  2  7.19771
  3  1.0911
  4  1.96917e-05
  5  0.00133218
  6  4.04051
  7  3.37452
  8  0.353773
  9  0.437257
  10  0.00223539
  11  0.000187263
  12  1.96369
  13  17.2833
  14  5.38211
  15  1.63425
  16  2.96319
  17  0.0042663
  18  9.86416
  19  13.8533
  20  2.1893
  21  7.79677
  22  5.92269e-07
  23  1.28762e-06
  24  0.000105009
  25  1.50141
  26  0.114148
  27  0.0970474
Done.

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

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  2.146e+01  1.728e+01  0.000e+00  1.000e+06 ( 1.000e-13)
336        Index:  2.434e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  8.609e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.068e+00  9.705e-02  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  9.295e-01  1.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.57
Ra Dec: 128.476 42.399
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.83e-08 +/- 2.28e-08
Energy Flux (Fixed Index): 8.86e-06 +/- 7.14e-06

TS (Fixed Index): 2.57
Ra Dec: 128.476 42.399
Photon Flux Upper Limit: 7.20239827509e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00557822091223 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18157971/likelihoodResults_788140801_788745601_4FGL_J0833.9+4223_weekly_bin908.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) = 16461.1442976
delta logL = 0.599525847159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16461.1283891
delta logL = 0.615434396168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.878       1.0000          .0000       .10000E+07
     2 'Index     '    3.0945       1.0000          .0000       10.000    
     3 'Normalizat'    .90680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0794       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+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=   16461.13     FROM MIGRAD    STATUS=FAILED        98 CALLS      292 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.876        16.976        .11155E-04   -.23278E-02
   2  Index         3.0958        .80760        .78216E-02    .12115E-02
   3  Normalizat    .90682        .12380        .27110E-03    .80180E-04
   4  Prefactor     1.0794        .10818        .22220E-03    .12934E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   16461.13     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      369 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.876        16.976        .11420E-04   -1.5636    
   2  Index         3.0958        .80760        .46486E-03   -.39071    
   3  Normalizat    .90682        .12380        .13431E-03   -.96221    
   4  Prefactor     1.0794        .10818        .12392E-03   -.90127    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16461.13     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      407 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.876        13.884        .44619E-06   -.26348E-03
   2  Index         3.0958        .66087        .15643E-02    .35174E-05
   3  Normalizat    .90682        .12367        .10844E-04   -.25161E-05
   4  Prefactor     1.0794        .10806        .88880E-05   -.10233E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8756
  Index      = 3.09576
  Normalizat = 0.90682
  Prefactor  = 1.07944
 **********
 **   18 **HESSE 
 **********

 FCN=   16461.13     FROM HESSE     STATUS=OK            23 CALLS      430 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.876        13.414        .37280E-06   -1.5636    
   2  Index         3.0958        .63841        .62573E-04   -.39071    
   3  Normalizat    .90682        .12385        .21688E-05   -.96221    
   4  Prefactor     1.0794        .10816        .17776E-05   -.90127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34004e-12
Minuit parameter uncertainties:
  1  13.414
  2  0.640453
  3  0.123885
  4  0.108182
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) = 16461.1283826
delta logL = 0.615440884114

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  1.288e+01  1.341e+01  0.000e+00  1.000e+06 ( 1.000e-13)
336        Index:  3.096e+00  6.405e-01  0.000e+00  1.000e+01 (-1.000e+00)
337        Scale:  8.609e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.079e+00  1.082e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  9.068e-01  1.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.87
Ra Dec: 128.476 42.399
Photon Index (Free Index): 3.10 +/- 0.64
Photon Flux (Free Index): 4.83e-08 +/- 3.09e-08
Energy Flux (Free Index): 9.21e-06 +/- 5.57e-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/18157971/cmap_HighResolution_788140801_788745601_4FGL_J0833.9+4223_weekly_bin908.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-03', comment='SUCCESS', photon_flux='2.83e-08', energy_flux2='9.21e-06', photon_flux_error='2.28e-08', dlogl='6.15e-01', energy_flux='8.86e-06', photon_flux2='4.83e-08', job_status='DONE', time_completed='2025-12-30 01:20:29.777447', photon_index_error2='0.64', photon_index2='3.10', ts='2.57', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='7.20e-08', energy_flux_error2='5.57e-06', EG='0.93', time_epoch_completed='1767086429.78', return_code='0', job_id='18157971', GAL2='1.08', EG2='0.91', return_code2='0', energy_flux_error='7.14e-06', photon_flux_error2='3.09e-08', ts2='3.87', photon_index='2.43' WHERE bin_id='908' AND source_name='4FGL J0833.9+4223' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 30 01:20:30 PST 2025

