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


Performing analysis on: 4FGL_J1033.9+6050_daily_bin2114
RA = 158.485, Dec = 60.8493
tmin = 787276801, 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='17371763', job_status='RUN', time_executed='2025-12-16 00:49:21.467573', time_epoch_executed='1765874961.47' WHERE source_name='4FGL J1033.9+6050' and cadence='daily' and bin_id='2114'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17371763

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17371763/ft1_4FGL_J1033.9+6050_daily_bin2114.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17371763/ft2_4FGL_J1033.9+6050_daily_bin2114.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17371763/ft1_4FGL_J1033.9+6050_daily_bin2114.fits outfile=/lscratch/kocevski/17371763/ft1_filteredMKT_4FGL_J1033.9+6050_daily_bin2114.fits ra=158.485 dec=60.8493 rad=12.0 tmin=787276801.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 2.74
user 1.92
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17371763/ft2_4FGL_J1033.9+6050_daily_bin2114.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17371763/ft2_4FGL_J1033.9+6050_daily_bin2114.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/17371763/ft1_filteredMKT_4FGL_J1033.9+6050_daily_bin2114.fits evtable="EVENTS" outfile="/lscratch/kocevski/17371763/ft1_filtered_4FGL_J1033.9+6050_daily_bin2114.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 1.10
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 749

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17371763/ft1_filtered_4FGL_J1033.9+6050_daily_bin2114.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17371763/ft2_4FGL_J1033.9+6050_daily_bin2114.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17371763/ltcube_787276801_787536001_4FGL_J1033.9+6050_daily_bin2114.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/17371763/ft2_4FGL_J1033.9+6050_daily_bin2114.fits
.....................!
real 9.54
user 8.43
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17371763/ft1_filtered_4FGL_J1033.9+6050_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17371763/ft2_4FGL_J1033.9+6050_daily_bin2114.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17371763/ltcube_787276801_787536001_4FGL_J1033.9+6050_daily_bin2114.fits outfile=/lscratch/kocevski/17371763/expmap_787276801_787536001_4FGL_J1033.9+6050_daily_bin2114.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/17371763/ltcube_787276801_787536001_4FGL_J1033.9+6050_daily_bin2114.fits
.....................!
real 70.51
user 65.16
sys 4.08

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

Setting source of interest to:
4FGL J1033.9+6050 @ 158.485 60.8493

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17371763/ft1_filtered_4FGL_J1033.9+6050_daily_bin2114.fits scfile=/lscratch/kocevski/17371763/ft2_4FGL_J1033.9+6050_daily_bin2114.fits outfile=/lscratch/kocevski/17371763/cmap_787276801_787536001_4FGL_J1033.9+6050_daily_bin2114.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=158.485 yref=60.8493 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.98
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17371763/ft1_filtered_4FGL_J1033.9+6050_daily_bin2114.fits scfile=/lscratch/kocevski/17371763/ft2_4FGL_J1033.9+6050_daily_bin2114.fits outfile=/lscratch/kocevski/17371763/cmap_HighResolution_787276801_787536001_4FGL_J1033.9+6050_daily_bin2114.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=158.485 yref=60.8493 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.92
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17371763/ft1_filtered_4FGL_J1033.9+6050_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17371763/ft2_4FGL_J1033.9+6050_daily_bin2114.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17371763/Model_4FGL_J1033.9+6050_daily_bin2114.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/17371763/ft1_filtered_4FGL_J1033.9+6050_daily_bin2114.fits.....................!
real 35.31
user 33.20
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17371763/ft1_filtered_4FGL_J1033.9+6050_daily_bin2114.fits', '/lscratch/kocevski/17371763/ft2_4FGL_J1033.9+6050_daily_bin2114.fits', expMap='/lscratch/kocevski/17371763/expmap_787276801_787536001_4FGL_J1033.9+6050_daily_bin2114.fits', expCube='/lscratch/kocevski/17371763/ltcube_787276801_787536001_4FGL_J1033.9+6050_daily_bin2114.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17371763/Model_4FGL_J1033.9+6050_daily_bin2114.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1033.9+6050'

4FGL J1033.9+6050
   Spectrum: LogParabola
421         norm:  4.658e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
422        alpha:  2.137e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
423         beta:  9.680e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
424           Eb:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17371763/ft1_filtered_4FGL_J1033.9+6050_daily_bin2114.fits
Spacecraft file(s): /lscratch/kocevski/17371763/ft2_4FGL_J1033.9+6050_daily_bin2114.fits
Exposure map: /lscratch/kocevski/17371763/expmap_787276801_787536001_4FGL_J1033.9+6050_daily_bin2114.fits
Exposure cube: /lscratch/kocevski/17371763/ltcube_787276801_787536001_4FGL_J1033.9+6050_daily_bin2114.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17371763/Model_4FGL_J1033.9+6050_daily_bin2114.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) = 8071.78175188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14780       1.0000          .0000       .10000E+07
     2 'Prefactor '    12.435       1.0000          .0000       .10000E+07
     3 'Prefactor '    .19792E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .33292E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    8.2998       1.0000          .0000       .10000E+07
     6 'norm      '    .10261E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    31.103       1.0000          .0000       .10000E+07
     8 'norm      '    2.1830       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.0881       1.0000          .0000       .10000E+07
    10 'norm      '    1.5266       1.0000          .0000       .10000E+07
    11 'norm      '    .36238E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.6939       1.0000          .0000       .10000E+07
    13 'norm      '    15.237       1.0000          .0000       .10000E+07
    14 'Prefactor '    .60531E-02   1.0000          .0000       .10000E+07
    15 'norm      '    3.1500       1.0000          .0000       .10000E+07
    16 'norm      '    1.7166       1.0000          .0000       .10000E+07
    17 'Prefactor '    .95662E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .73516E-05   1.0000          .0000       .10000E+07
    19 'norm      '    .82761       1.0000          .0000       .10000E+07
    20 'norm      '    10.249       1.0000          .0000       .10000E+07
    21 'Prefactor '    .15246E-01   1.0000          .0000       .10000E+07
    22 'norm      '    1.4239       1.0000          .0000       .10000E+07
    23 'Prefactor '    .12602E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    42.895       1.0000          .0000       .10000E+07
    25 'Prefactor '    1.4977       1.0000          .0000       .10000E+07
    26 'Prefactor '    .16290E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    33.149       1.0000          .0000       .10000E+07
    28 'Prefactor '    4.1149       1.0000          .0000       .10000E+07
    29 'norm      '    .21581E-05   1.0000          .0000       .10000E+07
    30 'norm      '    7.1555       1.0000          .0000       .10000E+07
    31 'Prefactor '    .74992E-04   1.0000          .0000       .10000E+07
    32 'Prefactor '    .12513E-01   1.0000          .0000       .10000E+07
    33 'Prefactor '    7.5916       1.0000          .0000       .10000E+07
    34 'Normalizat'    .73547       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.1626       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8071.761     FROM MIGRAD    STATUS=CONVERGED    202 CALLS     5309 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14806        .72914       -.55298E-07** at limit **
   2  Prefactor     12.471        13.391        .14445E-08   -.70968E-02
   3  Prefactor     .11657E-08    2.7504        .73445E-08** at limit **
   4  Prefactor     .38858E-09    2.4037        .19376E-07** at limit **
   5  Prefactor     8.3408        7.3713        .46397E-07    .11032E-02
   6  norm          .95646E-07    2.0336       -.27513E-07** at limit **
   7  Prefactor     31.203        1.5264       -.26846E-08   -.48102E-02
   8  norm          2.1818        .59464        .29234E-08    .34261E-02
   9  Prefactor     1.0884        3.6198       -.43098E-07   -.19117E-02
  10  norm          1.5269        .73327        .56804E-08   -.19087E-02
  11  norm           .0000        .99031       -.15873E-07** at limit **
  12  Prefactor     1.7901        4.0070        .45815E-07   -.25307E-02
  13  norm          15.200        12.638       -.67362E-07    .57811E-01
  14  Prefactor     .60063E-07    29.726        .20080E-06** at limit **
  15  norm          3.1522        1.8689        .35596E-07    .12111E-01
  16  norm          1.7162        1.2911        .41575E-08    .89583E-03
  17  Prefactor     .77161E-08    38.466        .19642E-06** at limit **
  18  Prefactor     .15937E-06    1.6794       -.17361E-07** at limit **
  19  norm          .82769        .61126       -.58162E-08   -.41882E-02
  20  norm          10.248        2.9305        .20824E-07    .68453E-02
  21  Prefactor     .61062E-09    .78096        .29197E-08** at limit **
  22  norm          1.4259        1.7413        .22246E-07    .38716E-02
  23  Prefactor     .19984E-07    131.45        .24041E-06** at limit **
  24  Prefactor     42.944        1.2466       -.31386E-09   -.39707E-02
  25  Prefactor     1.5058        5.8130        .17312E-06    .29075E-02
  26  Prefactor     .11102E-09    9.7018       -.19204E-07** at limit **
  27  Prefactor     33.049        1.5747        .53300E-08   -.10014E-01
  28  Prefactor     4.1157        2.9028       -.25177E-08   -.84582E-03
  29  norm          .10547E-08    2.7677        .82228E-08** at limit **
  30  norm          7.1496        4.5273       -.45107E-08   -.20762E-02
  31  Prefactor      .0000        3.3551        .55809E-08** at limit **
  32  Prefactor     .20983E-07    22.735       -.23259E-06** at limit **
  33  Prefactor     7.5757        1.1507       -.60663E-09   -.20154E-02
  34  Normalizat    .73531        .16201       -.88178E-06   -.42130E-03
  35  Prefactor     1.1626        .18072       -.68799E-06   -.56690E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.14806
  Prefactor  = 12.4712
  Prefactor  = 1.16573e-09
  Prefactor  = 3.88578e-10
  Prefactor  = 8.34078
  norm       = 9.56457e-08
  Prefactor  = 31.2033
  norm       = 2.18176
  Prefactor  = 1.08841
  norm       = 1.52692
  norm       = 0
  Prefactor  = 1.79012
  norm       = 15.1999
  Prefactor  = 6.00631e-08
  norm       = 3.15219
  norm       = 1.71617
  Prefactor  = 7.71605e-09
  Prefactor  = 1.59373e-07
  norm       = 0.827694
  norm       = 10.2479
  Prefactor  = 6.10623e-10
  norm       = 1.42589
  Prefactor  = 1.9984e-08
  Prefactor  = 42.9438
  Prefactor  = 1.50583
  Prefactor  = 1.11022e-10
  Prefactor  = 33.0489
  Prefactor  = 4.11568
  norm       = 1.05471e-09
  norm       = 7.1496
  Prefactor  = 0
  Prefactor  = 2.09832e-08
  Prefactor  = 7.57573
  Normalizat = 0.735313
  Prefactor  = 1.16258
 **********
 **   18 **HESSE 
 **********

 FCN=   8071.761     FROM HESSE     STATUS=OK           854 CALLS     6163 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14806        .51121        .21794E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.471        13.505        .28381E-03   -1.5637    
   3  Prefactor     .11657E-08    2.7285        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38858E-09    2.4066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.3408        7.4410        .34774E-03   -1.5650    
   6  norm          .95646E-07    2.6081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.203        30.193        .17933E-03   -1.5596    
   8  norm          2.1818        .60356        .69645E-03   -1.5678    
   9  Prefactor     1.0884        3.6868        .11482E-02   -1.5687    
  10  norm          1.5269        .74475        .86385E-03   -1.5683    
  11  norm           .0000        .99175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7901        38.561        .80831E-03   -1.5681    
  13  norm          15.200        16.512        .25632E-03   -1.5630    
  14  Prefactor     .60063E-07    29.929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.1522        1.8764        .57087E-03   -1.5672    
  16  norm          1.7162        1.2926        .80170E-03   -1.5682    
  17  Prefactor     .77161E-08    38.539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .15937E-06    2.6330        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .82769        .61641        .50899E-03   -1.5690    
  20  norm          10.248        2.9551        .31274E-03   -1.5644    
  21  Prefactor     .61062E-09    40.640        .17372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4259        1.8605        .90579E-03   -1.5684    
  23  Prefactor     .19984E-07    131.41        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     42.944        27.157        .15270E-03   -1.5577    
  25  Prefactor     1.5058        5.9432        .87495E-03   -1.5683    
  26  Prefactor     .11102E-09    9.7027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     33.049        23.024        .17371E-03   -1.5593    
  28  Prefactor     4.1157        2.9040        .49671E-03   -1.5667    
  29  norm          .10547E-08    2.7759        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          7.1496        4.5466        .37476E-03   -1.5654    
  31  Prefactor      .0000        3.3581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .20983E-07    22.775        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     7.5757        25.441        .36373E-03   -1.5653    
  34  Normalizat    .73531        .15108        .63063E-01   -1.0252    
  35  Prefactor     1.1626        .15890        .57528E-01   -.87491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90656e-07
Minuit parameter uncertainties:
  1  0.511215
  2  13.5051
  3  0.000113394
  4  6.09691e-05
  5  7.44104
  6  0.000998954
  7  30.1934
  8  0.603562
  9  3.68678
  10  0.744755
  11  6.33462e-06
  12  16.6169
  13  16.5124
  14  0.00268168
  15  1.8764
  16  1.29256
  17  0.00109031
  18  0.00129566
  19  0.616407
  20  2.9551
  21  0.000314112
  22  1.86047
  23  0.00323918
  24  27.157
  25  5.94318
  26  6.93371e-05
  27  23.024
  28  2.90403
  29  0.000107043
  30  4.54659
  31  1.3521e-06
  32  0.00138173
  33  25.4417
  34  0.151168
  35  0.158964
Done.

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

Extracting fit parameters...

4FGL J1033.9+6050
   Spectrum: LogParabola
421         norm:  3.152e+00  1.876e+00  0.000e+00  1.000e+06 ( 1.000e-12)
422        alpha:  2.137e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
423         beta:  9.680e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
424           Eb:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
784    Prefactor:  1.163e+00  1.590e-01  0.000e+00  1.000e+01 ( 1.000e+00)
785        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
786        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
783   Normalization:  7.353e-01  1.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.22
Ra Dec: 158.485 60.849
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.57e-08 +/- 2.13e-08
Energy Flux (Fixed Index): 1.77e-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) = 8071.71694235
delta logL = 0.0440763248598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8071.71368298
delta logL = 0.0473356875409

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4124       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9709       1.0000          .0000       5.0000    
     3 'Normalizat'    .74181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1583       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8071.714     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      241 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4124        54.668        .54738E-03    .64932E-02
   2  alpha         1.9708        2.8960        .31098        .24372E-04
   3  Normalizat    .74181        .12242        .62808E-01    .28292E-04
   4  Prefactor     1.1583        .86544E-01    .57615E-01    .67062E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.41236
  alpha      = 1.97085
  Normalizat = 0.741814
  Prefactor  = 1.15834
 **********
 **   18 **HESSE 
 **********

 FCN=   8071.714     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4124        2.1558        .96152E-05   -1.5671    
   2  alpha         1.9708        .53169        .15278E-01   -.21327    
   3  Normalizat    .74181        .15466        .27784E-03   -1.0226    
   4  Prefactor     1.1583        .17309        .25476E-03   -.87623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25799e-10
Minuit parameter uncertainties:
  1  2.15577
  2  0.535977
  3  0.15475
  4  0.17317
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) = 8071.71368297
delta logL = 0.0473357020928

Extracting fit parameters...

4FGL J1033.9+6050
   Spectrum: LogParabola
421         norm:  3.412e+00  2.156e+00  0.000e+00  1.000e+06 ( 1.000e-12)
422        alpha:  1.971e+00  5.360e-01  0.000e+00  5.000e+00 ( 1.000e+00)
423         beta:  9.680e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
424           Eb:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
784    Prefactor:  1.158e+00  1.732e-01  0.000e+00  1.000e+01 ( 1.000e+00)
785        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
786        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
783   Normalization:  7.418e-01  1.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.29
Ra Dec: 158.485 60.849
Photon Index (Free Index): 1.97 +/- 0.54
Photon Flux (Free Index): 3.09e-08 +/- 2.37e-08
Energy Flux (Free Index): 2.02e-05 +/- 1.57e-05

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/17371763/cmap_HighResolution_787276801_787536001_4FGL_J1033.9+6050_daily_bin2114.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.57e-08', energy_flux2='2.02e-05', photon_flux_error='2.13e-08', dlogl='4.73e-02', energy_flux='1.77e-05', photon_flux2='3.09e-08', job_status='DONE', time_completed='2025-12-16 01:03:19.654746', photon_index_error2='0.54', photon_index2='1.97', ts='6.22', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='0.74', time_epoch_completed='1765875799.65', return_code='0', job_id='17371763', GAL2='1.16', EG2='0.74', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='2.37e-08', ts2='6.29', photon_index='2.14' WHERE bin_id='2114' AND source_name='4FGL J1033.9+6050' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:03:20 PST 2025

