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


Performing analysis on: 4FGL_J0833.9+4223_weekly_bin855
RA = 128.476, Dec = 42.3989
tmin = 756086401, tmax = 756691201
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='60727676', job_status='RUN', time_executed='2024-12-24 03:22:52.669076', time_epoch_executed='1735039372.67' WHERE source_name='4FGL J0833.9+4223' and cadence='weekly' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60727676

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

Retrieving the FT1 file...

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

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

Retrieving 65 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60727676/ft1_4FGL_J0833.9+4223_weekly_bin855.fits


Retrieving the FT1 file...

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

Retrieving 65 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60727676/ft2_4FGL_J0833.9+4223_weekly_bin855.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60727676/ft1_4FGL_J0833.9+4223_weekly_bin855.fits outfile=/lscratch/kocevski/60727676/ft1_filteredMKT_4FGL_J0833.9+4223_weekly_bin855.fits ra=128.476 dec=42.3989 rad=12.0 tmin=756086401.0 tmax=756691201.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 2.56
user 2.19
sys 0.24

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

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

Number of photons that the gtmktime cut: 904

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60727676/ft1_filtered_4FGL_J0833.9+4223_weekly_bin855.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60727676/ft2_4FGL_J0833.9+4223_weekly_bin855.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60727676/ltcube_756086401_756691201_4FGL_J0833.9+4223_weekly_bin855.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/60727676/ft2_4FGL_J0833.9+4223_weekly_bin855.fits
.....................!
real 9.66
user 9.25
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60727676/ft1_filtered_4FGL_J0833.9+4223_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60727676/ft2_4FGL_J0833.9+4223_weekly_bin855.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60727676/ltcube_756086401_756691201_4FGL_J0833.9+4223_weekly_bin855.fits outfile=/lscratch/kocevski/60727676/expmap_756086401_756691201_4FGL_J0833.9+4223_weekly_bin855.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/60727676/ltcube_756086401_756691201_4FGL_J0833.9+4223_weekly_bin855.fits
.....................!
real 59.22
user 55.52
sys 3.33

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
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/60727676/ft1_filtered_4FGL_J0833.9+4223_weekly_bin855.fits scfile=/lscratch/kocevski/60727676/ft2_4FGL_J0833.9+4223_weekly_bin855.fits outfile=/lscratch/kocevski/60727676/cmap_756086401_756691201_4FGL_J0833.9+4223_weekly_bin855.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.36
user 0.20
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60727676/ft1_filtered_4FGL_J0833.9+4223_weekly_bin855.fits scfile=/lscratch/kocevski/60727676/ft2_4FGL_J0833.9+4223_weekly_bin855.fits outfile=/lscratch/kocevski/60727676/cmap_HighResolution_756086401_756691201_4FGL_J0833.9+4223_weekly_bin855.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.39
user 0.20
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60727676/ft1_filtered_4FGL_J0833.9+4223_weekly_bin855.fits', '/lscratch/kocevski/60727676/ft2_4FGL_J0833.9+4223_weekly_bin855.fits', expMap='/lscratch/kocevski/60727676/expmap_756086401_756691201_4FGL_J0833.9+4223_weekly_bin855.fits', expCube='/lscratch/kocevski/60727676/ltcube_756086401_756691201_4FGL_J0833.9+4223_weekly_bin855.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60727676/Model_4FGL_J0833.9+4223_weekly_bin855.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/60727676/ft1_filtered_4FGL_J0833.9+4223_weekly_bin855.fits
Spacecraft file(s): /lscratch/kocevski/60727676/ft2_4FGL_J0833.9+4223_weekly_bin855.fits
Exposure map: /lscratch/kocevski/60727676/expmap_756086401_756691201_4FGL_J0833.9+4223_weekly_bin855.fits
Exposure cube: /lscratch/kocevski/60727676/ltcube_756086401_756691201_4FGL_J0833.9+4223_weekly_bin855.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60727676/Model_4FGL_J0833.9+4223_weekly_bin855.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) = 9936.11206933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.866       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.9127       1.0000          .0000       .10000E+07
     3 'norm      '    4.3798       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.5335       1.0000          .0000       .10000E+07
     5 'Prefactor '    .40280E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    16.216       1.0000          .0000       .10000E+07
     7 'norm      '    10.622       1.0000          .0000       .10000E+07
     8 'norm      '    .11158E-07   1.0000          .0000       .10000E+07
     9 'norm      '    .51870       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23769E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12285E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.3357       1.0000          .0000       .10000E+07
    13 'Prefactor '    52.242       1.0000          .0000       .10000E+07
    14 'Prefactor '    .62361E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .66613E-09   1.0000          .0000       .10000E+07
    16 'norm      '    6.6415       1.0000          .0000       .10000E+07
    17 'norm      '    4.5725       1.0000          .0000       .10000E+07
    18 'Prefactor '    45.623       1.0000          .0000       .10000E+07
    19 'Prefactor '    20.675       1.0000          .0000       .10000E+07
    20 'Prefactor '    5.8468       1.0000          .0000       .10000E+07
    21 'Prefactor '    .21099E-02   1.0000          .0000       .10000E+07
    22 'norm      '    .17764E-08   1.0000          .0000       .10000E+07
    23 'Prefactor '    1.4279       1.0000          .0000       .10000E+07
    24 'norm      '    1.1602       1.0000          .0000       .10000E+07
    25 'Prefactor '    .84038       1.0000          .0000       .10000E+07
    26 'Normalizat'    .82967       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97664       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=   9936.110     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     2533 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.861        2.1690       -.21282E-06   -.12195    
   2  Prefactor     3.9024        3.3494       -.66153E-06   -.71525E-01
   3  norm          4.3791        2.4704        .18454E-06    .58395E-02
   4  Prefactor     3.5345        6.3283        .20482E-06    .65062E-02
   5  Prefactor     .29865E-07    24.206       -.18925E-06** at limit **
   6  Prefactor     16.248        5.4915        .20295E-06   -.11380E-02
   7  norm          10.622        5.0795        .57240E-06    .17940E-02
   8  norm           .0000        .55128        .23862E-06** at limit **
   9  norm          .51843        .44407        .66445E-08   -.67424E-03
  10  Prefactor     .55511E-10    6.8387        .68299E-06** at limit **
  11  Prefactor     .16653E-09    4.4863       -.10842E-06** at limit **
  12  Prefactor     4.3346        2.5523       -.11736E-06   -.14963E-02
  13  Prefactor     52.155        1.4685        .67990E-07    .53731E-02
  14  Prefactor      .0000        2.7830       -.69685E-06** at limit **
  15  Prefactor      .0000        1.4030        .90948E-07** at limit **
  16  norm          6.6252        4.3761        .65653E-06   -.88034E-05
  17  norm          4.5795        3.9297        .51938E-06    .33000E-03
  18  Prefactor     45.569        1.2968       -.80659E-08   -.15292E-01
  19  Prefactor     20.825        30.688        .31946E-05   -.25719E-01
  20  Prefactor     5.8411        3.0399       -.52695E-06    .10425E-02
  21  Prefactor     .20151E-07    17.284        .13430E-05** at limit **
  22  norm           .0000        .12683        .42692E-07** at limit **
  23  Prefactor     1.4294        1.9922        .45655E-06   -.85619E-04
  24  norm          1.1963        6.2135        .20079E-05   -.45297E-03
  25  Prefactor     .83943        1.1688        .18156E-06    .38651E-03
  26  Normalizat    .82956        .16692       -.58729E-05    .77753E-04
  27  Prefactor     .97668        .13596       -.13185E-05    .38203E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8606
  Prefactor  = 3.90243
  norm       = 4.37908
  Prefactor  = 3.5345
  Prefactor  = 2.9865e-08
  Prefactor  = 16.2477
  norm       = 10.6216
  norm       = 0
  norm       = 0.518433
  Prefactor  = 5.55112e-11
  Prefactor  = 1.66533e-10
  Prefactor  = 4.33458
  Prefactor  = 52.1546
  Prefactor  = 0
  Prefactor  = 0
  norm       = 6.62523
  norm       = 4.57951
  Prefactor  = 45.5686
  Prefactor  = 20.8245
  Prefactor  = 5.84113
  Prefactor  = 2.01505e-08
  norm       = 0
  Prefactor  = 1.4294
  norm       = 1.19628
  Prefactor  = 0.839428
  Normalizat = 0.829562
  Prefactor  = 0.976677
 **********
 **   18 **HESSE 
 **********

 FCN=   9936.110     FROM HESSE     STATUS=OK           550 CALLS     3083 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.861        12.320        .26873E-03   -1.5634    
   2  Prefactor     3.9024        14.244        .50980E-03   -1.5668    
   3  norm          4.3791        2.6278        .48102E-03   -1.5666    
   4  Prefactor     3.5345        6.5721        .53751E-03   -1.5670    
   5  Prefactor     .29865E-07    24.303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.248        5.5293        .24845E-03   -1.5627    
   7  norm          10.622        5.0861        .30718E-03   -1.5643    
   8  norm           .0000        .54934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .51843        .46198        .76850E-03   -1.5694    
  10  Prefactor     .55511E-10    6.8409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16653E-09    4.4829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3346        2.5730        .48353E-03   -1.5666    
  13  Prefactor     52.155        25.515        .13836E-03   -1.5564    
  14  Prefactor      .0000        2.7789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        1.4011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.6252        4.3850        .38914E-03   -1.5656    
  17  norm          4.5795        4.0246        .47051E-03   -1.5665    
  18  Prefactor     45.569        24.238        .14806E-03   -1.5573    
  19  Prefactor     20.825        32.215        .21999E-03   -1.5617    
  20  Prefactor     5.8411        3.0450        .41509E-03   -1.5660    
  21  Prefactor     .20151E-07    17.246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        .12603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4294        2.0330        .90402E-03   -1.5684    
  24  norm          1.1963        6.3061        .10695E-02   -1.5686    
  25  Prefactor     .83943        1.1846        .49972E-03   -1.5690    
  26  Normalizat    .82956        .14953        .64044E-01   -.98981    
  27  Prefactor     .97668        .11872        .45974E-01   -.93511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53376e-06
Minuit parameter uncertainties:
  1  12.3205
  2  14.2443
  3  2.62779
  4  6.57207
  5  0.00170388
  6  5.52935
  7  5.08608
  8  3.47357e-07
  9  0.461975
  10  3.73125e-05
  11  5.10221e-05
  12  2.573
  13  25.5154
  14  5.74073e-06
  15  1.14545e-06
  16  4.38498
  17  4.02462
  18  24.2382
  19  32.2151
  20  3.04498
  21  0.00117982
  22  1.22254e-07
  23  2.03299
  24  5.49323
  25  1.18459
  26  0.149599
  27  0.118753
Done.

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

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  5.215e+01  2.552e+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:  9.767e-01  1.188e-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:  8.296e-01  1.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.64
Ra Dec: 128.476 42.399
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 6.87e-08 +/- 3.36e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.05e-05

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) = 9936.00577766
delta logL = 0.104673359216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9935.99745935
delta logL = 0.112991673775

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.021       1.0000          .0000       .10000E+07
     2 'Index     '    2.6618       1.0000          .0000       10.000    
     3 'Normalizat'    .81671       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98405       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.

 FCN=   9935.997     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      288 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.023        31.544        .60990E-05   -.63004E-03
   2  Index         2.6619        .53103        .58033E-02   -.63605E-04
   3  Normalizat    .81668        .15650        .28525E-03    .30426E-03
   4  Prefactor     .98404        .13291        .22515E-03    .47353E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.0231
  Index      = 2.66188
  Normalizat = 0.81668
  Prefactor  = 0.984042
 **********
 **   18 **HESSE 
 **********

 FCN=   9935.997     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.023        29.586        .24396E-06   -1.5577    
   2  Index         2.6619        .49760        .23213E-03   -.48660    
   3  Normalizat    .81668        .15634        .11410E-04   -.99453    
   4  Prefactor     .98404        .13282        .45030E-04   -.93263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01367e-10
Minuit parameter uncertainties:
  1  29.5863
  2  0.49866
  3  0.156431
  4  0.132867
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) = 9935.99745923
delta logL = 0.112991795224

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  4.302e+01  2.959e+01  0.000e+00  1.000e+06 ( 1.000e-13)
336        Index:  2.662e+00  4.987e-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:  9.840e-01  1.329e-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:  8.167e-01  1.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.88
Ra Dec: 128.476 42.399
Photon Index (Free Index): 2.66 +/- 0.50
Photon Flux (Free Index): 7.99e-08 +/- 4.33e-08
Energy Flux (Free Index): 1.98e-05 +/- 9.75e-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/60727676/cmap_HighResolution_756086401_756691201_4FGL_J0833.9+4223_weekly_bin855.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.87e-08', energy_flux2='1.98e-05', photon_flux_error='3.36e-08', dlogl='1.13e-01', energy_flux='2.15e-05', photon_flux2='7.99e-08', job_status='DONE', time_completed='2024-12-24 03:28:45.008698', photon_index_error2='0.50', photon_index2='2.66', ts='7.64', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='9.75e-06', EG='0.83', time_epoch_completed='1735039725.01', return_code='0', job_id='60727676', GAL2='0.98', EG2='0.82', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='4.33e-08', ts2='7.88', photon_index='2.43' WHERE bin_id='855' AND source_name='4FGL J0833.9+4223' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 24 03:28:45 PST 2024

