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


Performing analysis on: 4FGL_J0654.3+5042_weekly_bin906
RA = 103.596, Dec = 50.7027
tmin = 786931201, 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='17373778', job_status='RUN', time_executed='2025-12-16 01:32:41.023428', time_epoch_executed='1765877561.02' WHERE source_name='4FGL J0654.3+5042' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17373778

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17373778/ft1_4FGL_J0654.3+5042_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17373778/ft2_4FGL_J0654.3+5042_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17373778/ft1_4FGL_J0654.3+5042_weekly_bin906.fits outfile=/lscratch/kocevski/17373778/ft1_filteredMKT_4FGL_J0654.3+5042_weekly_bin906.fits ra=103.596 dec=50.7027 rad=12.0 tmin=786931201.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 6.60
user 5.45
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17373778/ft2_4FGL_J0654.3+5042_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17373778/ft2_4FGL_J0654.3+5042_weekly_bin906.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/17373778/ft1_filteredMKT_4FGL_J0654.3+5042_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17373778/ft1_filtered_4FGL_J0654.3+5042_weekly_bin906.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.01
user 0.24
sys 0.12

Number of photons that the gtmktime cut: 2409

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17373778/ft1_filtered_4FGL_J0654.3+5042_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17373778/ft2_4FGL_J0654.3+5042_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17373778/ltcube_786931201_787536001_4FGL_J0654.3+5042_weekly_bin906.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/17373778/ft2_4FGL_J0654.3+5042_weekly_bin906.fits
.....................!
real 19.56
user 18.66
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17373778/ft1_filtered_4FGL_J0654.3+5042_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17373778/ft2_4FGL_J0654.3+5042_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17373778/ltcube_786931201_787536001_4FGL_J0654.3+5042_weekly_bin906.fits outfile=/lscratch/kocevski/17373778/expmap_786931201_787536001_4FGL_J0654.3+5042_weekly_bin906.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/17373778/ltcube_786931201_787536001_4FGL_J0654.3+5042_weekly_bin906.fits
.....................!
real 73.95
user 68.77
sys 4.32

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
Extended source HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Added 191 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0654.3+5042 @ 103.596 50.7027

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17373778/ft1_filtered_4FGL_J0654.3+5042_weekly_bin906.fits scfile=/lscratch/kocevski/17373778/ft2_4FGL_J0654.3+5042_weekly_bin906.fits outfile=/lscratch/kocevski/17373778/cmap_786931201_787536001_4FGL_J0654.3+5042_weekly_bin906.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=103.596 yref=50.7027 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.94
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17373778/ft1_filtered_4FGL_J0654.3+5042_weekly_bin906.fits scfile=/lscratch/kocevski/17373778/ft2_4FGL_J0654.3+5042_weekly_bin906.fits outfile=/lscratch/kocevski/17373778/cmap_HighResolution_786931201_787536001_4FGL_J0654.3+5042_weekly_bin906.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=103.596 yref=50.7027 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.97
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17373778/ft1_filtered_4FGL_J0654.3+5042_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17373778/ft2_4FGL_J0654.3+5042_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17373778/Model_4FGL_J0654.3+5042_weekly_bin906.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
adding source HB 9
Working on...
/lscratch/kocevski/17373778/ft1_filtered_4FGL_J0654.3+5042_weekly_bin906.fits.....................!
real 134.63
user 131.95
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17373778/ft1_filtered_4FGL_J0654.3+5042_weekly_bin906.fits', '/lscratch/kocevski/17373778/ft2_4FGL_J0654.3+5042_weekly_bin906.fits', expMap='/lscratch/kocevski/17373778/expmap_786931201_787536001_4FGL_J0654.3+5042_weekly_bin906.fits', expCube='/lscratch/kocevski/17373778/ltcube_786931201_787536001_4FGL_J0654.3+5042_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17373778/Model_4FGL_J0654.3+5042_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0654.3+5042'

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  2.530e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        alpha:  2.128e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  8.007e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  8.361e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17373778/ft1_filtered_4FGL_J0654.3+5042_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17373778/ft2_4FGL_J0654.3+5042_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17373778/expmap_786931201_787536001_4FGL_J0654.3+5042_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17373778/ltcube_786931201_787536001_4FGL_J0654.3+5042_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17373778/Model_4FGL_J0654.3+5042_weekly_bin906.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) = 25320.6923061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7417       1.0000          .0000       .10000E+07
     2 'norm      '    .90838       1.0000          .0000       .10000E+07
     3 'norm      '    2.8064       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.3745       1.0000          .0000       .10000E+07
     5 'Prefactor '    .59405E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.1264       1.0000          .0000       .10000E+07
     7 'Prefactor '    9.3017       1.0000          .0000       .10000E+07
     8 'norm      '    2.7519       1.0000          .0000       .10000E+07
     9 'norm      '    .88690E-03   1.0000          .0000       .10000E+07
    10 'norm      '    1.0928       1.0000          .0000       .10000E+07
    11 'Prefactor '    8.4109       1.0000          .0000       .10000E+07
    12 'Prefactor '    .34061E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.0793       1.0000          .0000       .10000E+07
    14 'Prefactor '    .67394       1.0000          .0000       .10000E+07
    15 'norm      '    6.5434       1.0000          .0000       .10000E+07
    16 'Prefactor '    26.449       1.0000          .0000       .10000E+07
    17 'Prefactor '    32.376       1.0000          .0000       .10000E+07
    18 'norm      '    5.8000       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.1437       1.0000          .0000       .10000E+07
    20 'Prefactor '    .15823E-03   1.0000          .0000       .10000E+07
    21 'norm      '    1.3530       1.0000          .0000       .10000E+07
    22 'norm      '    2.8046       1.0000          .0000       .10000E+07
    23 'norm      '    2.2752       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.0840       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0064       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25320.61     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1675 TOTAL
                     EDM=   .59E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3202        11.746       -.67826E-07   -.29971E-02
   2  norm          .91395        1.2891        .43880E-08   -.35623E-05
   3  norm          2.8046        1.9700        .11671E-07   -.13053E-03
   4  Prefactor     3.3773        4.3870       -.37120E-07    .32754E-04
   5  Prefactor      .0000        6.7389        .24048E-07** at limit **
   6  Prefactor     3.0479        7.6502       -.49507E-07    .17051E-02
   7  Prefactor     9.2900        1.4901       -.42781E-09    .61588E-02
   8  norm          2.7500        1.7500        .41891E-07   -.38896E-03
   9  norm          .11102E-09    17.279        .39214E-07** at limit **
  10  norm          1.0885        2.5535       -.30877E-07    .26821E-05
  11  Prefactor     8.3865        5.9584       -.30267E-08    .66907E-04
  12  Prefactor      .0000        2.6363        .78585E-07** at limit **
  13  Prefactor     5.1750        9.8096        .14286E-08    .12875E-03
  14  Prefactor     .91600        1.0967       -.24539E-08   -.18465E-02
  15  norm          6.5363        3.8492       -.37653E-07    .20124E-03
  16  Prefactor     26.416        2.3468       -.15465E-08    .23226E-02
  17  Prefactor     32.006        12.145       -.23398E-07    .57614E-02
  18  norm          5.8002        .82446       -.91992E-08    .70119E-03
  19  Prefactor     2.1479        3.7509        .86371E-08   -.28531E-04
  20  Prefactor      .0000        6.5585       -.11308E-07** at limit **
  21  norm          1.3537        1.0632        .31726E-07   -.37969E-03
  22  norm          2.8058        2.2208       -.43708E-07    .26795E-03
  23  norm          2.2748        1.0752        .22528E-07   -.20509E-03
  24  Normalizat    1.0840        .13497        .27011E-06    .97739E-05
  25  Prefactor     1.0065        .59818E-01   -.24974E-06    .20900E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.32017
  norm       = 0.913947
  norm       = 2.80456
  Prefactor  = 3.37728
  Prefactor  = 0
  Prefactor  = 3.04785
  Prefactor  = 9.28998
  norm       = 2.74996
  norm       = 1.11022e-10
  norm       = 1.0885
  Prefactor  = 8.38646
  Prefactor  = 0
  Prefactor  = 5.17505
  Prefactor  = 0.915999
  norm       = 6.53633
  Prefactor  = 26.4156
  Prefactor  = 32.0058
  norm       = 5.80019
  Prefactor  = 2.14794
  Prefactor  = 0
  norm       = 1.35372
  norm       = 2.80575
  norm       = 2.27484
  Normalizat = 1.08404
  Prefactor  = 1.00647
 **********
 **   18 **HESSE 
 **********

 FCN=   25320.61     FROM HESSE     STATUS=OK           499 CALLS     2174 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3202        23.683        .52173E-03   -1.5672    
   2  norm          .91395        1.2946        .45182E-03   -1.5689    
   3  norm          2.8046        1.9710        .60698E-03   -1.5674    
   4  Prefactor     3.3773        4.4220        .55059E-03   -1.5671    
   5  Prefactor      .0000        6.6784        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0479        27.895        .57313E-03   -1.5673    
   7  Prefactor     9.2900        14.217        .32836E-03   -1.5647    
   8  norm          2.7500        1.7546        .61339E-03   -1.5675    
   9  norm          .11102E-09    .84288        .52860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0885        2.6076        .11420E-02   -1.5687    
  11  Prefactor     8.3865        5.9779        .34542E-03   -1.5650    
  12  Prefactor      .0000        2.6257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1750        10.020        .44590E-03   -1.5662    
  14  Prefactor     .91600        17.347        .62850E-03   -1.5689    
  15  norm          6.5363        3.8537        .39208E-03   -1.5657    
  16  Prefactor     26.416        14.727        .19448E-03   -1.5605    
  17  Prefactor     32.006        18.576        .17577E-03   -1.5595    
  18  norm          5.8002        .83048        .41679E-03   -1.5660    
  19  Prefactor     2.1479        3.7921        .70361E-03   -1.5679    
  20  Prefactor      .0000        6.5941        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3537        1.0596        .93983E-03   -1.5685    
  22  norm          2.8058        2.2226        .60719E-03   -1.5674    
  23  norm          2.2748        1.0736        .68051E-03   -1.5678    
  24  Normalizat    1.0840        .12396        .81972E-01   -.90266    
  25  Prefactor     1.0065        .53282E-01    .43919E-01   -.92514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29277e-07
Minuit parameter uncertainties:
  1  17.7349
  2  1.29461
  3  1.97097
  4  4.42202
  5  7.8485e-06
  6  18.4414
  7  14.2175
  8  1.75456
  9  1.9686e-05
  10  2.60756
  11  5.97786
  12  4.98087e-06
  13  10.0195
  14  7.97248
  15  3.85375
  16  14.7268
  17  18.5759
  18  0.830477
  19  3.79211
  20  2.32853e-05
  21  1.05962
  22  2.22264
  23  1.07356
  24  0.123991
  25  0.0532844
Done.

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

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  2.750e+00  1.755e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        alpha:  2.128e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  8.007e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  8.361e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.006e+00  5.328e-02  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.084e+00  1.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.69
Ra Dec: 103.596 50.703
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.87e-08 +/- 1.19e-08
Energy Flux (Fixed Index): 8.73e-06 +/- 5.57e-06

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) = 25320.378549
delta logL = 0.234294457201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25320.3764057
delta logL = 0.236437796175

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   25320.38     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      202 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6838        2.2817        .62171E-03   -.76246E-02
   2  alpha         1.7565        .53878        .43729       -.71252E-04
   3  Normalizat    1.0908        .11408        .81745E-01    .68388E-04
   4  Prefactor     1.0052        .52120E-01    .44149E-01   -.53073E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.68379
  alpha      = 1.75651
  Normalizat = 1.09079
  Prefactor  = 1.00521
 **********
 **   18 **HESSE 
 **********

 FCN=   25320.38     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6838        1.8016        .16474E-04   -1.5675    
   2  alpha         1.7565        .51764        .26787E-01   -.30196    
   3  Normalizat    1.0908        .12790        .36190E-03   -.90048    
   4  Prefactor     1.0052        .58691E-01    .17137E-03   -.92556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58304e-11
Minuit parameter uncertainties:
  1  1.8016
  2  0.521784
  3  0.127932
  4  0.058695
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) = 25320.3764055
delta logL = 0.236437980162

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  2.684e+00  1.802e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        alpha:  1.757e+00  5.218e-01  0.000e+00  5.000e+00 ( 1.000e+00)
252         beta:  8.007e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  8.361e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.005e+00  5.870e-02  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.091e+00  1.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.16
Ra Dec: 103.596 50.703
Photon Index (Free Index): 1.76 +/- 0.52
Photon Flux (Free Index): 1.25e-08 +/- 1.11e-08
Energy Flux (Free Index): 1.18e-05 +/- 1.02e-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/17373778/cmap_HighResolution_786931201_787536001_4FGL_J0654.3+5042_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.87e-08', energy_flux2='1.18e-05', photon_flux_error='1.19e-08', dlogl='2.36e-01', energy_flux='8.73e-06', photon_flux2='1.25e-08', job_status='DONE', time_completed='2025-12-16 01:50:20.867263', photon_index_error2='0.52', photon_index2='1.76', ts='6.69', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.02e-05', EG='1.08', time_epoch_completed='1765878620.87', return_code='0', job_id='17373778', GAL2='1.01', EG2='1.09', return_code2='0', energy_flux_error='5.57e-06', photon_flux_error2='1.11e-08', ts2='7.16', photon_index='2.13' WHERE bin_id='906' AND source_name='4FGL J0654.3+5042' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:50:21 PST 2025

