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


Performing analysis on: 4FGL_J1031.1+7442_weekly_bin915
RA = 157.792, Dec = 74.7019
tmin = 792374401, tmax = 792979201
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='21232888', job_status='RUN', time_executed='2026-02-17 01:52:41.276781', time_epoch_executed='1771321961.28' WHERE source_name='4FGL J1031.1+7442' and cadence='weekly' and bin_id='915'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/21232888

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/21232888/ft1_4FGL_J1031.1+7442_weekly_bin915.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/21232888/ft2_4FGL_J1031.1+7442_weekly_bin915.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/21232888/ft1_4FGL_J1031.1+7442_weekly_bin915.fits outfile=/lscratch/kocevski/21232888/ft1_filteredMKT_4FGL_J1031.1+7442_weekly_bin915.fits ra=157.792 dec=74.7019 rad=12.0 tmin=792374401.0 tmax=792979201.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 6.03
user 5.31
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/21232888/ft2_4FGL_J1031.1+7442_weekly_bin915.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/21232888/ft2_4FGL_J1031.1+7442_weekly_bin915.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/21232888/ft1_filteredMKT_4FGL_J1031.1+7442_weekly_bin915.fits evtable="EVENTS" outfile="/lscratch/kocevski/21232888/ft1_filtered_4FGL_J1031.1+7442_weekly_bin915.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.76
user 0.28
sys 0.15

Number of photons that the gtmktime cut: 2018

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/21232888/ft1_filtered_4FGL_J1031.1+7442_weekly_bin915.fits" evtable="EVENTS" scfile=/lscratch/kocevski/21232888/ft2_4FGL_J1031.1+7442_weekly_bin915.fits sctable="SC_DATA" outfile=/lscratch/kocevski/21232888/ltcube_792374401_792979201_4FGL_J1031.1+7442_weekly_bin915.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/21232888/ft2_4FGL_J1031.1+7442_weekly_bin915.fits
.....................!
real 27.34
user 26.51
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/21232888/ft1_filtered_4FGL_J1031.1+7442_weekly_bin915.fits evtable="EVENTS" scfile=/lscratch/kocevski/21232888/ft2_4FGL_J1031.1+7442_weekly_bin915.fits sctable="SC_DATA" expcube=/lscratch/kocevski/21232888/ltcube_792374401_792979201_4FGL_J1031.1+7442_weekly_bin915.fits outfile=/lscratch/kocevski/21232888/expmap_792374401_792979201_4FGL_J1031.1+7442_weekly_bin915.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/21232888/ltcube_792374401_792979201_4FGL_J1031.1+7442_weekly_bin915.fits
.....................!
real 81.28
user 75.72
sys 4.62

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

Setting source of interest to:
4FGL J1031.1+7442 @ 157.792 74.7019

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/21232888/ft1_filtered_4FGL_J1031.1+7442_weekly_bin915.fits scfile=/lscratch/kocevski/21232888/ft2_4FGL_J1031.1+7442_weekly_bin915.fits outfile=/lscratch/kocevski/21232888/cmap_792374401_792979201_4FGL_J1031.1+7442_weekly_bin915.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=157.792 yref=74.7019 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.86
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/21232888/ft1_filtered_4FGL_J1031.1+7442_weekly_bin915.fits scfile=/lscratch/kocevski/21232888/ft2_4FGL_J1031.1+7442_weekly_bin915.fits outfile=/lscratch/kocevski/21232888/cmap_HighResolution_792374401_792979201_4FGL_J1031.1+7442_weekly_bin915.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=157.792 yref=74.7019 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.91
user 0.28
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/21232888/ft1_filtered_4FGL_J1031.1+7442_weekly_bin915.fits evtable="EVENTS" scfile=/lscratch/kocevski/21232888/ft2_4FGL_J1031.1+7442_weekly_bin915.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/21232888/Model_4FGL_J1031.1+7442_weekly_bin915.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/21232888/ft1_filtered_4FGL_J1031.1+7442_weekly_bin915.fits.....................!
real 116.46
user 113.74
sys 1.53

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/21232888/ft1_filtered_4FGL_J1031.1+7442_weekly_bin915.fits', '/lscratch/kocevski/21232888/ft2_4FGL_J1031.1+7442_weekly_bin915.fits', expMap='/lscratch/kocevski/21232888/expmap_792374401_792979201_4FGL_J1031.1+7442_weekly_bin915.fits', expCube='/lscratch/kocevski/21232888/ltcube_792374401_792979201_4FGL_J1031.1+7442_weekly_bin915.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/21232888/Model_4FGL_J1031.1+7442_weekly_bin915.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1031.1+7442'

4FGL J1031.1+7442
   Spectrum: PowerLaw
344    Prefactor:  7.368e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
345        Index:  2.162e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  2.674e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/21232888/ft1_filtered_4FGL_J1031.1+7442_weekly_bin915.fits
Spacecraft file(s): /lscratch/kocevski/21232888/ft2_4FGL_J1031.1+7442_weekly_bin915.fits
Exposure map: /lscratch/kocevski/21232888/expmap_792374401_792979201_4FGL_J1031.1+7442_weekly_bin915.fits
Exposure cube: /lscratch/kocevski/21232888/ltcube_792374401_792979201_4FGL_J1031.1+7442_weekly_bin915.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/21232888/Model_4FGL_J1031.1+7442_weekly_bin915.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) = 21249.8505873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29239E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .85180E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.2189       1.0000          .0000       .10000E+07
     4 'norm      '    1.1649       1.0000          .0000       .10000E+07
     5 'Prefactor '    9.5916       1.0000          .0000       .10000E+07
     6 'Prefactor '    18.034       1.0000          .0000       .10000E+07
     7 'Prefactor '    .43615E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    4.7040       1.0000          .0000       .10000E+07
     9 'norm      '    2.7623       1.0000          .0000       .10000E+07
    10 'norm      '    5.9113       1.0000          .0000       .10000E+07
    11 'Prefactor '    25.158       1.0000          .0000       .10000E+07
    12 'Prefactor '    .44409E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    27.872       1.0000          .0000       .10000E+07
    14 'norm      '    5.9611       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.4679       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.1314       1.0000          .0000       .10000E+07
    17 'norm      '    1.4020       1.0000          .0000       .10000E+07
    18 'norm      '    4.5301       1.0000          .0000       .10000E+07
    19 'Prefactor '    .22438E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .11463E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    .12823E-07   1.0000          .0000       .10000E+07
    22 'Prefactor '    .57176E-08   1.0000          .0000       .10000E+07
    23 'Prefactor '    .32991E-02   1.0000          .0000       .10000E+07
    24 'norm      '    4.2482       1.0000          .0000       .10000E+07
    25 'norm      '    1.9360       1.0000          .0000       .10000E+07
    26 'Prefactor '    .23456E-03   1.0000          .0000       .10000E+07
    27 'Prefactor '    1.6105       1.0000          .0000       .10000E+07
    28 'Normalizat'    1.1012       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88475       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   21248.04     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     1594 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        5.8294        .13664E-06** at limit **
   2  Prefactor     .33307E-09    39.680       -.40304E-06** at limit **
   3  Prefactor     1.2193        1.5167       -.21130E-07    .69929E-03
   4  norm          1.1662        .98043        .49786E-07   -.21047E-02
   5  Prefactor     9.6775        1.0692        .23194E-08   -.22150E-03
   6  Prefactor     17.982        3.2681        .92775E-08    .61034E-01
   7  Prefactor      .0000        1.5272       -.16488E-07** at limit **
   8  Prefactor     4.7038        6.3058       -.61365E-07    .95915E-03
   9  norm          2.7624        .52834        .58955E-08   -.39277E-02
  10  norm          5.9209        1.3945       -.83944E-08   -.10873E-01
  11  Prefactor     25.123        7.2340       -.16034E-07   -.83350E-02
  12  Prefactor      .0000        1.3439        .83049E-07** at limit **
  13  Prefactor     28.036        4.5907       -.12987E-07    .18450E-01
  14  norm          5.9596        2.3671        .91292E-08    .82421E-04
  15  Prefactor     .61062E-08    163.42       -.67448E-06** at limit **
  16  Prefactor     1.1310        1.2974        .20661E-07   -.74863E-03
  17  norm          1.4018        .43296        .40860E-08   -.22836E-02
  18  norm          4.5325        1.5175        .17316E-07   -.89563E-03
  19  Prefactor     .11269E-07    17.224       -.20291E-07** at limit **
  20  Prefactor      .0000        2.2678       -.11473E-06** at limit **
  21  Prefactor      .0000        .63900        .44977E-07** at limit **
  22  Prefactor      .0000        1.5084        .11803E-06** at limit **
  23  Prefactor     .71609E-08    14.922       -.23815E-06** at limit **
  24  norm          4.2474        2.1886       -.36264E-07    .10407E-02
  25  norm          1.9359        1.1651       -.37781E-08    .96526E-03
  26  Prefactor     .22204E-09    8.8313        .40765E-07** at limit **
  27  Prefactor     1.6209        5.7289        .18232E-06   -.11043E-03
  28  Normalizat    1.1014        .10932       -.15123E-05    .19488E-04
  29  Prefactor     .88469        .88803E-01    .13392E-05    .28000E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 1.21934
  norm       = 1.16619
  Prefactor  = 9.67746
  Prefactor  = 17.9819
  Prefactor  = 0
  Prefactor  = 4.70383
  norm       = 2.76235
  norm       = 5.92094
  Prefactor  = 25.1228
  Prefactor  = 0
  Prefactor  = 28.0355
  norm       = 5.95961
  Prefactor  = 6.10623e-09
  Prefactor  = 1.13103
  norm       = 1.40181
  norm       = 4.53247
  Prefactor  = 1.12688e-08
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 7.16094e-09
  norm       = 4.24738
  norm       = 1.93589
  Prefactor  = 2.22045e-10
  Prefactor  = 1.62092
  Normalizat = 1.10137
  Prefactor  = 0.88469
 **********
 **   18 **HESSE 
 **********

 FCN=   21248.04     FROM HESSE     STATUS=OK           619 CALLS     2213 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        5.8317        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .33307E-09    38.180        .14346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2193        1.5464        .10217E-02   -1.5686    
   4  norm          1.1662        1.0609        .10652E-02   -1.5686    
   5  Prefactor     9.6775        20.084        .32333E-03   -1.5646    
   6  Prefactor     17.982        12.323        .23557E-03   -1.5623    
   7  Prefactor      .0000        1.5285        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.7038        6.3900        .46373E-03   -1.5665    
   9  norm          2.7624        .52950        .61215E-03   -1.5675    
  10  norm          5.9209        6.2098        .41279E-03   -1.5659    
  11  Prefactor     25.123        10.578        .19941E-03   -1.5608    
  12  Prefactor      .0000        1.3440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.036        22.571        .18945E-03   -1.5602    
  14  norm          5.9596        2.3890        .41104E-03   -1.5659    
  15  Prefactor     .61062E-08    163.12        .88692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1310        1.3114        .10974E-02   -1.5687    
  17  norm          1.4018        .43944        .91582E-03   -1.5684    
  18  norm          4.5325        1.5218        .47276E-03   -1.5665    
  19  Prefactor     .11269E-07    18.070        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        2.2782        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        .63681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        1.5084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .71609E-08    15.406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.2474        2.1890        .48862E-03   -1.5667    
  25  norm          1.9359        1.1648        .74600E-03   -1.5680    
  26  Prefactor     .22204E-09    8.8408        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.6209        5.7240        .83438E-03   -1.5683    
  28  Normalizat    1.1014        .96211E-01    .58094E-01   -.89708    
  29  Prefactor     .88469        .78130E-01    .44810E-01   -.96678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11892e-06
Minuit parameter uncertainties:
  1  1.25277e-05
  2  0.000222594
  3  1.5464
  4  1.06092
  5  20.0843
  6  12.323
  7  1.00564e-06
  8  6.39006
  9  0.529502
  10  6.20983
  11  10.5785
  12  2.65125e-06
  13  22.5715
  14  2.38899
  15  0.00199305
  16  1.31142
  17  0.439438
  18  1.52182
  19  0.000903384
  20  7.99187e-06
  21  2.20941e-06
  22  3.69737e-06
  23  0.000664779
  24  2.18904
  25  1.16481
  26  9.03416e-05
  27  5.72403
  28  0.0962262
  29  0.0781399
Done.

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

Extracting fit parameters...

4FGL J1031.1+7442
   Spectrum: PowerLaw
344    Prefactor:  2.804e+01  2.257e+01  0.000e+00  1.000e+06 ( 1.000e-14)
345        Index:  2.162e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  2.674e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  8.847e-01  7.814e-02  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  1.101e+00  9.623e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.36
Ra Dec: 157.792 74.702
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 2.37e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.14e-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) = 21247.9592931
delta logL = 0.0789411065271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 21247.9377926
delta logL = 0.100441527073

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.780       1.0000          .0000       .10000E+07
     2 'Index     '    2.4111       1.0000          .0000       10.000    
     3 'Normalizat'    1.0927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88823       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+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=   21247.94     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      297 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.774        36.302        .89968E-05   -.66113E-02
   2  Index         2.4112        .92621        .66612E-02   -.18172E-03
   3  Normalizat    1.0928        .10973        .25768E-03    .13367E-02
   4  Prefactor     .88822        .88465E-01    .23439E-03    .10247E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.7742
  Index      = 2.41118
  Normalizat = 1.09276
  Prefactor  = 0.888219
 **********
 **   18 **HESSE 
 **********

 FCN=   21247.94     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.774        22.378        .35987E-06   -1.5619    
   2  Index         2.4112        .57324        .26645E-03   -.54423    
   3  Normalizat    1.0928        .10707        .51537E-04   -.89984    
   4  Prefactor     .88822        .87656E-01    .46878E-04   -.96554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21993e-09
Minuit parameter uncertainties:
  1  22.3785
  2  0.574966
  3  0.107096
  4  0.08767
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) = 21247.9377926
delta logL = 0.100441581671

Extracting fit parameters...

4FGL J1031.1+7442
   Spectrum: PowerLaw
344    Prefactor:  1.977e+01  2.238e+01  0.000e+00  1.000e+06 ( 1.000e-14)
345        Index:  2.411e+00  5.750e-01  0.000e+00  1.000e+01 (-1.000e+00)
346        Scale:  2.674e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  8.882e-01  8.767e-02  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  1.093e+00  1.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.66
Ra Dec: 157.792 74.702
Photon Index (Free Index): 2.41 +/- 0.57
Photon Flux (Free Index): 3.87e-08 +/- 2.90e-08
Energy Flux (Free Index): 1.25e-05 +/- 7.65e-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/21232888/cmap_HighResolution_792374401_792979201_4FGL_J1031.1+7442_weekly_bin915.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='1.25e-05', photon_flux_error='2.37e-08', dlogl='1.00e-01', energy_flux='1.42e-05', photon_flux2='3.87e-08', job_status='DONE', time_completed='2026-02-17 02:08:02.130322', photon_index_error2='0.57', photon_index2='2.41', ts='4.36', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='7.65e-06', EG='1.10', time_epoch_completed='1771322882.13', return_code='0', job_id='21232888', GAL2='0.89', EG2='1.09', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='2.90e-08', ts2='4.66', photon_index='2.16' WHERE bin_id='915' AND source_name='4FGL J1031.1+7442' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 17 02:08:02 PST 2026

