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


Performing analysis on: 4FGL_J1019.7+6321_weekly_bin910
RA = 154.926, Dec = 63.3527
tmin = 789350401, tmax = 789955201
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='18861189', job_status='RUN', time_executed='2026-01-13 00:41:34.152864', time_epoch_executed='1768293694.15' WHERE source_name='4FGL J1019.7+6321' and cadence='weekly' and bin_id='910'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18861189

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18861189/ft1_4FGL_J1019.7+6321_weekly_bin910.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18861189/ft2_4FGL_J1019.7+6321_weekly_bin910.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18861189/ft1_4FGL_J1019.7+6321_weekly_bin910.fits outfile=/lscratch/kocevski/18861189/ft1_filteredMKT_4FGL_J1019.7+6321_weekly_bin910.fits ra=154.926 dec=63.3527 rad=12.0 tmin=789350401.0 tmax=789955201.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.23
user 3.30
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18861189/ft2_4FGL_J1019.7+6321_weekly_bin910.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18861189/ft2_4FGL_J1019.7+6321_weekly_bin910.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/18861189/ft1_filteredMKT_4FGL_J1019.7+6321_weekly_bin910.fits evtable="EVENTS" outfile="/lscratch/kocevski/18861189/ft1_filtered_4FGL_J1019.7+6321_weekly_bin910.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.02
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1656

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18861189/ft1_filtered_4FGL_J1019.7+6321_weekly_bin910.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18861189/ft2_4FGL_J1019.7+6321_weekly_bin910.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18861189/ltcube_789350401_789955201_4FGL_J1019.7+6321_weekly_bin910.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/18861189/ft2_4FGL_J1019.7+6321_weekly_bin910.fits
.....................!
real 19.54
user 18.56
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18861189/ft1_filtered_4FGL_J1019.7+6321_weekly_bin910.fits evtable="EVENTS" scfile=/lscratch/kocevski/18861189/ft2_4FGL_J1019.7+6321_weekly_bin910.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18861189/ltcube_789350401_789955201_4FGL_J1019.7+6321_weekly_bin910.fits outfile=/lscratch/kocevski/18861189/expmap_789350401_789955201_4FGL_J1019.7+6321_weekly_bin910.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/18861189/ltcube_789350401_789955201_4FGL_J1019.7+6321_weekly_bin910.fits
.....................!
real 70.42
user 65.22
sys 4.10

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

Setting source of interest to:
4FGL J1019.7+6321 @ 154.926 63.3527

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18861189/ft1_filtered_4FGL_J1019.7+6321_weekly_bin910.fits scfile=/lscratch/kocevski/18861189/ft2_4FGL_J1019.7+6321_weekly_bin910.fits outfile=/lscratch/kocevski/18861189/cmap_789350401_789955201_4FGL_J1019.7+6321_weekly_bin910.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=154.926 yref=63.3527 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.01
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18861189/ft1_filtered_4FGL_J1019.7+6321_weekly_bin910.fits scfile=/lscratch/kocevski/18861189/ft2_4FGL_J1019.7+6321_weekly_bin910.fits outfile=/lscratch/kocevski/18861189/cmap_HighResolution_789350401_789955201_4FGL_J1019.7+6321_weekly_bin910.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=154.926 yref=63.3527 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.02
user 0.26
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18861189/ft1_filtered_4FGL_J1019.7+6321_weekly_bin910.fits evtable="EVENTS" scfile=/lscratch/kocevski/18861189/ft2_4FGL_J1019.7+6321_weekly_bin910.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18861189/Model_4FGL_J1019.7+6321_weekly_bin910.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/18861189/ft1_filtered_4FGL_J1019.7+6321_weekly_bin910.fits.....................!
real 71.39
user 69.43
sys 0.68

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18861189/ft1_filtered_4FGL_J1019.7+6321_weekly_bin910.fits', '/lscratch/kocevski/18861189/ft2_4FGL_J1019.7+6321_weekly_bin910.fits', expMap='/lscratch/kocevski/18861189/expmap_789350401_789955201_4FGL_J1019.7+6321_weekly_bin910.fits', expCube='/lscratch/kocevski/18861189/ltcube_789350401_789955201_4FGL_J1019.7+6321_weekly_bin910.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18861189/Model_4FGL_J1019.7+6321_weekly_bin910.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1019.7+6321'

4FGL J1019.7+6321
   Spectrum: LogParabola
405         norm:  3.570e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
406        alpha:  1.940e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
407         beta:  1.985e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
408           Eb:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18861189/ft1_filtered_4FGL_J1019.7+6321_weekly_bin910.fits
Spacecraft file(s): /lscratch/kocevski/18861189/ft2_4FGL_J1019.7+6321_weekly_bin910.fits
Exposure map: /lscratch/kocevski/18861189/expmap_789350401_789955201_4FGL_J1019.7+6321_weekly_bin910.fits
Exposure cube: /lscratch/kocevski/18861189/ltcube_789350401_789955201_4FGL_J1019.7+6321_weekly_bin910.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18861189/Model_4FGL_J1019.7+6321_weekly_bin910.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) = 17877.0263029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.223       1.0000          .0000       .10000E+07
     2 'Prefactor '    .33331E-05   1.0000          .0000       .10000E+07
     3 'norm      '    2.4110       1.0000          .0000       .10000E+07
     4 'Prefactor '    .81402E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .15592E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .13079E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .10700E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .32263E-02   1.0000          .0000       .10000E+07
     9 'norm      '    1.1661       1.0000          .0000       .10000E+07
    10 'norm      '    1.3356       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.8609       1.0000          .0000       .10000E+07
    12 'norm      '    13.829       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.3883       1.0000          .0000       .10000E+07
    14 'Prefactor '    11.284       1.0000          .0000       .10000E+07
    15 'Prefactor '    16.893       1.0000          .0000       .10000E+07
    16 'norm      '    .53574E-05   1.0000          .0000       .10000E+07
    17 'norm      '    .90744       1.0000          .0000       .10000E+07
    18 'Prefactor '    .22359E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .93037E-04   1.0000          .0000       .10000E+07
    20 'norm      '    .62488       1.0000          .0000       .10000E+07
    21 'norm      '    12.891       1.0000          .0000       .10000E+07
    22 'Prefactor '    67.601       1.0000          .0000       .10000E+07
    23 'norm      '    1.1771       1.0000          .0000       .10000E+07
    24 'Prefactor '    .20252E-01   1.0000          .0000       .10000E+07
    25 'Prefactor '    .27754E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    .19361E-02   1.0000          .0000       .10000E+07
    27 'Prefactor '    .16203E-04   1.0000          .0000       .10000E+07
    28 'Prefactor '    .23376E-05   1.0000          .0000       .10000E+07
    29 'Prefactor '    1.7044       1.0000          .0000       .10000E+07
    30 'norm      '    .37291E-05   1.0000          .0000       .10000E+07
    31 'norm      '    1.0944       1.0000          .0000       .10000E+07
    32 'Normalizat'    1.1771       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .97518       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17876.99     FROM MIGRAD    STATUS=CONVERGED    216 CALLS     3306 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.527        1.9459        .32284E-08    .58606E-02
   2  Prefactor     .77716E-09    2.8113       -.79424E-07** at limit **
   3  norm          2.4100        1.1289       -.79891E-08   -.37435E-02
   4  Prefactor     .44409E-09    3.1171       -.29212E-07** at limit **
   5  Prefactor     .10940E-04    132.34        .88476E-07** at limit **
   6  Prefactor      .0000        2.2325        .27615E-07** at limit **
   7  norm          .55511E-10    2.1996       -.76006E-08** at limit **
   8  Prefactor      .0000        15.319        .10096E-06** at limit **
   9  norm          1.1660        .42783       -.76041E-08   -.99613E-02
  10  norm          1.3355        .44257        .20588E-08   -.12926E-03
  11  Prefactor     6.9007        4.5251       -.77326E-07   -.53944E-01
  12  norm          13.890        2.5547       -.21021E-07   -.64298E-01
  13  Prefactor     7.9705        12.083        .23220E-06    .46908E-02
  14  Prefactor     12.120        29.156       -.39549E-06   -.10785E-01
  15  Prefactor     16.702        10.807        .15367E-07    .81088E-02
  16  norm           .0000        1.3513       -.28880E-07** at limit **
  17  norm          .90772        .75580        .12137E-07    .30358E-02
  18  Prefactor     .65947E-07    29.058        .78489E-07** at limit **
  19  Prefactor      .0000        2.2174        .49253E-07** at limit **
  20  norm          .62533        .31688       -.39620E-08   -.59236E-02
  21  norm          12.890        1.8410       -.10788E-08   -.34063E-02
  22  Prefactor     67.299        19.233       -.62958E-07    .14953    
  23  norm          1.1779        .99601       -.95663E-09   -.81726E-03
  24  Prefactor      .0000        23.834       -.22328E-07** at limit **
  25  Prefactor      .0000        3.6749        .13181E-08** at limit **
  26  Prefactor     .98033E-07    15.579       -.21316E-06** at limit **
  27  Prefactor     .55511E-10    4.3179        .80101E-08** at limit **
  28  Prefactor     .49960E-09    2.8827        .28631E-07** at limit **
  29  Prefactor     1.7041        1.2198        .99860E-08    .17794E-02
  30  norm           .0000        1.5859       -.11001E-07** at limit **
  31  norm          1.0936        2.0247       -.51380E-07   -.28556E-02
  32  Normalizat    1.1778        .12142       -.18328E-06   -.23665E-03
  33  Prefactor     .97493        .11793       -.36380E-06   -.22458E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.527
  Prefactor  = 7.77156e-10
  norm       = 2.41003
  Prefactor  = 4.44089e-10
  Prefactor  = 1.09404e-05
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 0
  norm       = 1.16604
  norm       = 1.33548
  Prefactor  = 6.90071
  norm       = 13.8896
  Prefactor  = 7.97051
  Prefactor  = 12.1195
  Prefactor  = 16.7018
  norm       = 0
  norm       = 0.907717
  Prefactor  = 6.59472e-08
  Prefactor  = 0
  norm       = 0.62533
  norm       = 12.89
  Prefactor  = 67.2988
  norm       = 1.17794
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 9.80327e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 4.996e-10
  Prefactor  = 1.70407
  norm       = 0
  norm       = 1.09355
  Normalizat = 1.17779
  Prefactor  = 0.974931
 **********
 **   18 **HESSE 
 **********

 FCN=   17876.99     FROM HESSE     STATUS=OK           779 CALLS     4085 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.527        26.118        .19169E-03   -1.5603    
   2  Prefactor     .77716E-09    2.8160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4100        1.1326        .65903E-03   -1.5677    
   4  Prefactor     .44409E-09    3.1164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10940E-04    4.2962        .93015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        2.2327        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .55511E-10    2.2027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        15.439        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1660        .42401        .10642E-02   -1.5686    
  10  norm          1.3355        .44678        .94898E-03   -1.5685    
  11  Prefactor     6.9007        16.644        .38280E-03   -1.5655    
  12  norm          13.890        14.292        .26908E-03   -1.5633    
  13  Prefactor     7.9705        12.533        .34589E-03   -1.5651    
  14  Prefactor     12.120        30.366        .29799E-03   -1.5638    
  15  Prefactor     16.702        10.930        .24341E-03   -1.5626    
  16  norm           .0000        1.3369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .90772        .75653        .45247E-03   -1.5689    
  18  Prefactor     .65947E-07    29.343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.1710        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .62533        .32456        .67029E-03   -1.5692    
  21  norm          12.890        1.8552        .27873E-03   -1.5636    
  22  Prefactor     67.299        67.245        .12163E-03   -1.5544    
  23  norm          1.1779        1.0028        .10547E-02   -1.5686    
  24  Prefactor      .0000        23.786        .17020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        3.6779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .98033E-07    1.2582        .58179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .55511E-10    4.3305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .49960E-09    2.8850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.7041        1.2171        .80521E-03   -1.5682    
  30  norm           .0000        1.5877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          1.0936        2.0628        .11400E-02   -1.5687    
  32  Normalizat    1.1778        .10919        .58547E-01   -.87292    
  33  Prefactor     .97493        .10551        .45956E-01   -.93570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68995e-06
Minuit parameter uncertainties:
  1  26.1182
  2  9.32797e-05
  3  1.13258
  4  7.30545e-05
  5  0.0137115
  6  4.76925e-06
  7  1.89367e-05
  8  1.20493e-05
  9  0.42401
  10  0.446783
  11  16.644
  12  14.2918
  13  12.5331
  14  30.3666
  15  10.9298
  16  1.01443e-05
  17  0.756532
  18  0.00278201
  19  3.26424e-06
  20  0.324556
  21  1.8552
  22  67.2456
  23  1.00285
  24  1.74842e-05
  25  5.06256e-06
  26  0.000702335
  27  3.58603e-05
  28  7.54885e-05
  29  1.21707
  30  8.0033e-06
  31  2.06283
  32  0.109212
  33  0.105532
Done.

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

Extracting fit parameters...

4FGL J1019.7+6321
   Spectrum: LogParabola
405         norm:  1.389e+01  1.429e+01  0.000e+00  1.000e+06 ( 1.000e-13)
406        alpha:  1.940e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
407         beta:  1.985e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
408           Eb:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  9.749e-01  1.055e-01  0.000e+00  1.000e+01 ( 1.000e+00)
757        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
758        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
755   Normalization:  1.178e+00  1.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 154.926 63.353
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 1.14e-08 +/- 1.17e-08
Energy Flux (Fixed Index): 8.26e-06 +/- 8.50e-06

TS (Fixed Index): 1.46
Ra Dec: 154.926 63.353
Photon Flux Upper Limit: 3.80944786549e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.76929362572e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18861189/likelihoodResults_789350401_789955201_4FGL_J1019.7+6321_weekly_bin910.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) = 17875.3778813
delta logL = 1.61216329171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17875.3718932
delta logL = 1.61815147516

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17875.37     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      262 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4997        67.098        .34365E-03    .64493E-02
   2  alpha         3.2263        3.8005        .27659        .21103E-03
   3  Normalizat    1.1328        .43576E-01    .59474E-01    .25921E-03
   4  Prefactor     .99414        .37951E-01    .46193E-01    .25918E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.49973
  alpha      = 3.22628
  Normalizat = 1.13283
  Prefactor  = 0.994135
 **********
 **   18 **HESSE 
 **********

 FCN=   17875.37     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4997        15.459        .13746E-04   -1.5650    
   2  alpha         3.2263        1.0384        .13595E-01    .29476    
   3  Normalizat    1.1328        .12045        .26302E-03   -.88704    
   4  Prefactor     .99414        .11805        .27934E-03   -.92925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.13687e-11
Minuit parameter uncertainties:
  1  15.4595
  2  1.07411
  3  0.120483
  4  0.118081
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) = 17875.3718927
delta logL = 1.61815192362

Extracting fit parameters...

4FGL J1019.7+6321
   Spectrum: LogParabola
405         norm:  8.500e+00  1.546e+01  0.000e+00  1.000e+06 ( 1.000e-13)
406        alpha:  3.226e+00  1.074e+00  0.000e+00  5.000e+00 ( 1.000e+00)
407         beta:  1.985e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
408           Eb:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  9.941e-01  1.181e-01  0.000e+00  1.000e+01 ( 1.000e+00)
757        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
758        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
755   Normalization:  1.133e+00  1.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.82
Ra Dec: 154.926 63.353
Photon Index (Free Index): 3.23 +/- 1.07
Photon Flux (Free Index): 5.68e-08 +/- 3.56e-08
Energy Flux (Free Index): 1.27e-05 +/- 7.19e-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/18861189/cmap_HighResolution_789350401_789955201_4FGL_J1019.7+6321_weekly_bin910.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-05', comment='SUCCESS', photon_flux='1.14e-08', energy_flux2='1.27e-05', photon_flux_error='1.17e-08', dlogl='1.62e+00', energy_flux='8.26e-06', photon_flux2='5.68e-08', job_status='DONE', time_completed='2026-01-13 01:03:19.435168', photon_index_error2='1.07', photon_index2='3.23', ts='1.46', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='3.81e-08', energy_flux_error2='7.19e-06', EG='1.18', time_epoch_completed='1768294999.44', return_code='0', job_id='18861189', GAL2='0.99', EG2='1.13', return_code2='0', energy_flux_error='8.50e-06', photon_flux_error2='3.56e-08', ts2='4.82', photon_index='1.94' WHERE bin_id='910' AND source_name='4FGL J1019.7+6321' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 13 01:03:19 PST 2026

