 **********
 **   18 **HESSE 
 **********

 FCN=   20971.99     FROM HESSE     STATUS=OK           623 CALLS     4527 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.595        13.363        .23841E-03   -1.5624    
   2  Prefactor     2.3326        4.0478        .67220E-03   -1.5677    
   3  Prefactor     3.5211        2.3439        .53805E-03   -1.5670    
   4  norm           .0000        .37452        .28345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6825        1.4957        .81009E-03   -1.5682    
   6  Prefactor     .15268        1.5325        .92514E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.036        23.511        .28870E-03   -1.5639    
   8  Prefactor     .58842E-08    17.172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.9583        6.3122        .31783E-03   -1.5645    
  10  norm          .15338        .41741        .24516E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .71260        7.1632        .59142E-03   -1.5691    
  12  norm          .36082E-08    5.7264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    2.7655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.764        26.094        .23088E-03   -1.5621    
  15  Prefactor     .42991        1.3794        .85836E-03   -1.5695    
  16  Prefactor     1.1613        3.2218        .10703E-02   -1.5686    
  17  Prefactor     6.4825        14.764        .39355E-03   -1.5657    
  18  Prefactor     .35280        1.6426        .93842E-03   -1.5696    
  19  Prefactor     1.1517        1.3391        .10791E-02   -1.5686    
  20  norm          .40814E-02    .23034E-01    .11655E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .55511E-10    1.2507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.715        10.579        .22530E-03   -1.5619    
  23  Prefactor     .55012E-07    .60687        .62847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10603E-07    6.9868        .16797E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .90238E-01    .43636        .39072E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.4245        1.3927        .36800E-03   -1.5653    
  27  Normalizat    1.0031        .95449E-01    .46207E-01   -.92925    
  28  Prefactor     .88793        .93148E-01    .44850E-01   -.96564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27351e-07
Minuit parameter uncertainties:
  1  13.3627
  2  4.04776
  3  2.34389
  4  5.39064e-07
  5  1.4957
  6  0.967414
  7  23.5108
  8  0.000634717
  9  6.31224
  10  0.417412
  11  4.51863
  12  0.000287472
  13  4.17411e-05
  14  26.0946
  15  1.37937
  16  3.22184
  17  14.7637
  18  1.52249
  19  1.33912
  20  0.0193916
  21  1.76084e-05
  22  10.5795
  23  0.000365404
  24  0.00054488
  25  0.39687
  26  1.39267
  27  0.0954654
  28  0.0931645
/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).

Done.

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

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  1.665e-10  4.174e-05  0.000e+00  1.000e+06 ( 1.000e-14)
297        Index:  1.981e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  3.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  8.879e-01  9.316e-02  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.003e+00  9.547e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 235.799 42.155
Photon Flux Upper Limit: 1.35031965502e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00101114051276 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/6958767/likelihoodResults_771811201_772416001_4FGL_J1543.1+4209_weekly_bin881.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) = 20971.9927596
delta logL = -0.000326846420649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20971.9924328
delta logL = -4.23788151238e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16154E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .64193       1.0000          .0000       10.000    
     3 'Normalizat'    1.0032       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88791       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20971.99     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      234 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.4500        .42118E-03** at limit **
   2  Index         2.0911        1.6443        .10966E-03     .0000    
   3  Normalizat    1.0031        1.3326       -.16994E-04   -.17256E-02
   4  Prefactor     .88793        1.2334        .18925E-05   -.16701E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.09115
  Normalizat = 1.00314
  Prefactor  = 0.887927
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20971.99     FROM HESSE     STATUS=FAILED         9 CALLS      243 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.4500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .47601        1.8635        .10966E-03   -.62090    
   3  Normalizat    1.0031        1.3326       -.16994E-04   -.92925    
   4  Prefactor     .88793        1.2334        .18925E-05   -.96564    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.5815e-10
Minuit parameter uncertainties:
  1  1.46909e-05
  2  1.6927
  3  1.38119
  4  1.27575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 20971.9924327
delta logL = -4.0017766878e-10

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  0.000e+00  1.469e-05  0.000e+00  1.000e+06 ( 1.000e-14)
297        Index:  2.091e+00  1.693e+00  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  3.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  8.879e-01  1.276e+00  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.003e+00  1.381e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 235.799 42.155

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/6958767/cmap_HighResolution_771811201_772416001_4FGL_J1543.1+4209_weekly_bin881.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-03', job_status='DONE', photon_flux_upper_limit='1.35e-08', time_completed='2025-06-24 06:12:06.536764', job_id='6958767', GAL2='0.89', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1750770726.54', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-4.00e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='881' AND source_name='4FGL J1543.1+4209' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 24 06:12:08 PDT 2025

number of points = 17400
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1543.1+4209_weekly_bin881
RA = 235.799, Dec = 42.1549
tmin = 771811201, tmax = 772416001
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='6959356', job_status='RUN', time_executed='2025-06-24 06:10:33.813795', time_epoch_executed='1750770633.81' WHERE source_name='4FGL J1543.1+4209' and cadence='weekly' and bin_id='881'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/6959356

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/6959356/ft1_4FGL_J1543.1+4209_weekly_bin881.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/6959356/ft2_4FGL_J1543.1+4209_weekly_bin881.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/6959356/ft1_4FGL_J1543.1+4209_weekly_bin881.fits outfile=/lscratch/kocevski/6959356/ft1_filteredMKT_4FGL_J1543.1+4209_weekly_bin881.fits ra=235.799 dec=42.1549 rad=12.0 tmin=771811201.0 tmax=772416001.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 8.31
user 4.03
sys 0.31

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/6959356/ft2_4FGL_J1543.1+4209_weekly_bin881.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/6959356/ft2_4FGL_J1543.1+4209_weekly_bin881.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/6959356/ft1_filteredMKT_4FGL_J1543.1+4209_weekly_bin881.fits evtable="EVENTS" outfile="/lscratch/kocevski/6959356/ft1_filtered_4FGL_J1543.1+4209_weekly_bin881.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 3.76
user 0.19
sys 0.16

Number of photons that the gtmktime cut: 1917

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/6959356/ft1_filtered_4FGL_J1543.1+4209_weekly_bin881.fits" evtable="EVENTS" scfile=/lscratch/kocevski/6959356/ft2_4FGL_J1543.1+4209_weekly_bin881.fits sctable="SC_DATA" outfile=/lscratch/kocevski/6959356/ltcube_771811201_772416001_4FGL_J1543.1+4209_weekly_bin881.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/6959356/ft2_4FGL_J1543.1+4209_weekly_bin881.fits
.....................!
real 20.41
user 16.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/6959356/ft1_filtered_4FGL_J1543.1+4209_weekly_bin881.fits evtable="EVENTS" scfile=/lscratch/kocevski/6959356/ft2_4FGL_J1543.1+4209_weekly_bin881.fits sctable="SC_DATA" expcube=/lscratch/kocevski/6959356/ltcube_771811201_772416001_4FGL_J1543.1+4209_weekly_bin881.fits outfile=/lscratch/kocevski/6959356/expmap_771811201_772416001_4FGL_J1543.1+4209_weekly_bin881.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/6959356/ltcube_771811201_772416001_4FGL_J1543.1+4209_weekly_bin881.fits
.....................!
real 67.95
user 60.13
sys 3.88

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

Setting source of interest to:
4FGL J1543.1+4209 @ 235.799 42.1549

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/6959356/ft1_filtered_4FGL_J1543.1+4209_weekly_bin881.fits scfile=/lscratch/kocevski/6959356/ft2_4FGL_J1543.1+4209_weekly_bin881.fits outfile=/lscratch/kocevski/6959356/cmap_771811201_772416001_4FGL_J1543.1+4209_weekly_bin881.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=235.799 yref=42.1549 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 8.21
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/6959356/ft1_filtered_4FGL_J1543.1+4209_weekly_bin881.fits scfile=/lscratch/kocevski/6959356/ft2_4FGL_J1543.1+4209_weekly_bin881.fits outfile=/lscratch/kocevski/6959356/cmap_HighResolution_771811201_772416001_4FGL_J1543.1+4209_weekly_bin881.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=235.799 yref=42.1549 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 6.59
user 0.25
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/6959356/ft1_filtered_4FGL_J1543.1+4209_weekly_bin881.fits evtable="EVENTS" scfile=/lscratch/kocevski/6959356/ft2_4FGL_J1543.1+4209_weekly_bin881.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/6959356/Model_4FGL_J1543.1+4209_weekly_bin881.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/6959356/ft1_filtered_4FGL_J1543.1+4209_weekly_bin881.fits.....................!
real 56.14
user 48.74
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/6959356/ft1_filtered_4FGL_J1543.1+4209_weekly_bin881.fits', '/lscratch/kocevski/6959356/ft2_4FGL_J1543.1+4209_weekly_bin881.fits', expMap='/lscratch/kocevski/6959356/expmap_771811201_772416001_4FGL_J1543.1+4209_weekly_bin881.fits', expCube='/lscratch/kocevski/6959356/ltcube_771811201_772416001_4FGL_J1543.1+4209_weekly_bin881.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/6959356/Model_4FGL_J1543.1+4209_weekly_bin881.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1543.1+4209'

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  1.013e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
297        Index:  1.981e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  3.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/6959356/ft1_filtered_4FGL_J1543.1+4209_weekly_bin881.fits
Spacecraft file(s): /lscratch/kocevski/6959356/ft2_4FGL_J1543.1+4209_weekly_bin881.fits
Exposure map: /lscratch/kocevski/6959356/expmap_771811201_772416001_4FGL_J1543.1+4209_weekly_bin881.fits
Exposure cube: /lscratch/kocevski/6959356/ltcube_771811201_772416001_4FGL_J1543.1+4209_weekly_bin881.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/6959356/Model_4FGL_J1543.1+4209_weekly_bin881.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) = 20971.9999352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.608       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.3261       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.5267       1.0000          .0000       .10000E+07
     4 'norm      '    .55706E-05   1.0000          .0000       .10000E+07
     5 'norm      '    1.6879       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14035       1.0000          .0000       .10000E+07
     7 'Prefactor '    12.019       1.0000          .0000       .10000E+07
     8 'Prefactor '    .56654E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.9246       1.0000          .0000       .10000E+07
    10 'norm      '    .15327       1.0000          .0000       .10000E+07
    11 'Prefactor '    .71946       1.0000          .0000       .10000E+07
    12 'norm      '    .14212E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .27485E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    18.773       1.0000          .0000       .10000E+07
    15 'Prefactor '    .43230       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.1593       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.4953       1.0000          .0000       .10000E+07
    18 'Prefactor '    .36351       1.0000          .0000       .10000E+07
    19 'Prefactor '    1.1498       1.0000          .0000       .10000E+07
    20 'norm      '    .43805E-02   1.0000          .0000       .10000E+07
    21 'norm      '    .97566E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    19.713       1.0000          .0000       .10000E+07
    23 'Prefactor '    .12221E-02   1.0000          .0000       .10000E+07
    24 'norm      '    .23824E-01   1.0000          .0000       .10000E+07
    25 'Prefactor '    .96084E-01   1.0000          .0000       .10000E+07
    26 'Prefactor '    7.4179       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0032       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88784       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20971.99     FROM MIGRAD    STATUS=CONVERGED    187 CALLS     3904 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.595        1.2974       -.46209E-08    .75872E-02
   2  Prefactor     2.3326        3.6302        .16260E-07    .48778E-03
   3  Prefactor     3.5211        2.3383       -.27919E-07   -.10882E-03
   4  norm           .0000        1.4875        .52233E-07** at limit **
   5  norm          1.6825        1.4405        .33601E-07    .80196E-03
   6  Prefactor     .15268        3.3109        .36940E-07** at limit **
   7  Prefactor     12.036        4.3810        .45629E-07   -.53201E-01
   8  Prefactor     .58842E-08    17.451        .50013E-06** at limit **
   9  Prefactor     9.9583        4.9783       -.23785E-07   -.44820E-02
  10  norm          .15338        .50728       -.67764E-07** at limit **
  11  Prefactor     .71260        5.7779        .21266E-06    .26217E-01
  12  norm          .36082E-08    5.6840       -.83081E-07** at limit **
  13  Prefactor     .16653E-09    2.7617       -.65320E-07** at limit **
  14  Prefactor     18.764        4.7328       -.44090E-07    .77563E-01
  15  Prefactor     .42991        1.3851        .89523E-09    .10532E-02
  16  Prefactor     1.1613        2.2129       -.19300E-07    .52552E-03
  17  Prefactor     6.4825        1.6246        .13843E-07   -.83454E-02
  18  Prefactor     .35280        1.6633       -.72479E-07   -.84461E-03
  19  Prefactor     1.1517        1.2913       -.34266E-07   -.13714E-02
  20  norm          .40814E-02    .21557        .60421E-07** at limit **
  21  norm          .55511E-10    1.2498       -.86350E-07** at limit **
  22  Prefactor     19.715        2.0426       -.11451E-07    .46496E-02
  23  Prefactor     .55012E-07    10.563       -.29920E-07** at limit **
  24  norm          .10603E-07    29.309        .12478E-06** at limit **
  25  Prefactor     .90238E-01    3.0711        .35000E-06** at limit **
  26  Prefactor     7.4245        1.4412       -.26116E-07   -.20988E-02
  27  Normalizat    1.0031        .11301        .87480E-06    .11914E-03
  28  Prefactor     .88793        .11173        .12098E-08    .15508E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5954
  Prefactor  = 2.33255
  Prefactor  = 3.52111
  norm       = 0
  norm       = 1.68253
  Prefactor  = 0.152677
  Prefactor  = 12.0358
  Prefactor  = 5.88418e-09
  Prefactor  = 9.95829
  norm       = 0.153377
  Prefactor  = 0.712597
  norm       = 3.60822e-09
  Prefactor  = 1.66533e-10
  Prefactor  = 18.7643
  Prefactor  = 0.429913
  Prefactor  = 1.1613
  Prefactor  = 6.4825
  Prefactor  = 0.352797
  Prefactor  = 1.15169
  norm       = 0.00408136
  norm       = 5.55112e-11
  Prefactor  = 19.7154
  Prefactor  = 5.50116e-08
  norm       = 1.06026e-08
  Prefactor  = 0.0902378
  Prefactor  = 7.4245
  Normalizat = 1.00314
  Prefactor  = 0.887929
 **********
 **   18 **HESSE 
 **********

 FCN=   20971.99     FROM HESSE     STATUS=OK           623 CALLS     4527 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.595        13.363        .23841E-03   -1.5624    
   2  Prefactor     2.3326        4.0478        .67220E-03   -1.5677    
   3  Prefactor     3.5211        2.3439        .53805E-03   -1.5670    
   4  norm           .0000        .37452        .28345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6825        1.4957        .81009E-03   -1.5682    
   6  Prefactor     .15268        1.5325        .92514E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.036        23.511        .28870E-03   -1.5639    
   8  Prefactor     .58842E-08    17.172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.9583        6.3122        .31783E-03   -1.5645    
  10  norm          .15338        .41741        .24516E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .71260        7.1632        .59142E-03   -1.5691    
  12  norm          .36082E-08    5.7264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    2.7655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.764        26.094        .23088E-03   -1.5621    
  15  Prefactor     .42991        1.3794        .85836E-03   -1.5695    
  16  Prefactor     1.1613        3.2218        .10703E-02   -1.5686    
  17  Prefactor     6.4825        14.764        .39355E-03   -1.5657    
  18  Prefactor     .35280        1.6426        .93842E-03   -1.5696    
  19  Prefactor     1.1517        1.3391        .10791E-02   -1.5686    
  20  norm          .40814E-02    .23034E-01    .11655E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .55511E-10    1.2507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.715        10.579        .22530E-03   -1.5619    
  23  Prefactor     .55012E-07    .60687        .62847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10603E-07    6.9868        .16797E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .90238E-01    .43636        .39072E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.4245        1.3927        .36800E-03   -1.5653    
  27  Normalizat    1.0031        .95449E-01    .46207E-01   -.92925    
  28  Prefactor     .88793        .93148E-01    .44850E-01   -.96564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27351e-07
Minuit parameter uncertainties:
  1  13.3627
  2  4.04776
  3  2.34389
  4  5.39064e-07
  5  1.4957
  6  0.967414
  7  23.5108
  8  0.000634717
  9  6.31224
  10  0.417412
  11  4.51863
  12  0.000287472
  13  4.17411e-05
  14  26.0946
  15  1.37937
  16  3.22184
  17  14.7637
  18  1.52249
  19  1.33912
  20  0.0193916
  21  1.76084e-05
  22  10.5795
  23  0.000365404
  24  0.00054488
  25  0.39687
  26  1.39267
  27  0.0954654
  28  0.0931645
Done.

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

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  1.665e-10  4.174e-05  0.000e+00  1.000e+06 ( 1.000e-14)
297        Index:  1.981e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  3.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  8.879e-01  9.316e-02  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.003e+00  9.547e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 235.799 42.155
Photon Flux Upper Limit: 1.35031965502e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00101114051276 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/6959356/likelihoodResults_771811201_772416001_4FGL_J1543.1+4209_weekly_bin881.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) = 20971.9927596
delta logL = -0.000326846420649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20971.9924328
delta logL = -4.23788151238e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16154E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .64193       1.0000          .0000       10.000    
     3 'Normalizat'    1.0032       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88791       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20971.99     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      234 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.4500        .42118E-03** at limit **
   2  Index         2.0911        1.6443        .10966E-03     .0000    
   3  Normalizat    1.0031        1.3326       -.16994E-04   -.17256E-02
   4  Prefactor     .88793        1.2334        .18925E-05   -.16701E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.09115
  Normalizat = 1.00314
  Prefactor  = 0.887927
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20971.99     FROM HESSE     STATUS=FAILED         9 CALLS      243 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.4500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .47601        1.8635        .10966E-03   -.62090    
   3  Normalizat    1.0031        1.3326       -.16994E-04   -.92925    
   4  Prefactor     .88793        1.2334        .18925E-05   -.96564    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.5815e-10
Minuit parameter uncertainties:
  1  1.46909e-05
  2  1.6927
  3  1.38119
  4  1.27575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 20971.9924327
delta logL = -4.0017766878e-10

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  0.000e+00  1.469e-05  0.000e+00  1.000e+06 ( 1.000e-14)
297        Index:  2.091e+00  1.693e+00  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  3.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  8.879e-01  1.276e+00  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.003e+00  1.381e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 235.799 42.155

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/6959356/cmap_HighResolution_771811201_772416001_4FGL_J1543.1+4209_weekly_bin881.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-03', job_status='DONE', photon_flux_upper_limit='1.35e-08', time_completed='2025-06-24 07:05:48.215690', job_id='6959356', GAL2='0.89', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1750773948.22', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-4.00e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='881' AND source_name='4FGL J1543.1+4209' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 24 07:05:50 PDT 2025

