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


Performing analysis on: 4FGL_J1543.0+6130_weekly_bin907
RA = 235.755, Dec = 61.5033
tmin = 787536001, tmax = 788140801
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='17775003', job_status='RUN', time_executed='2025-12-23 02:00:19.726203', time_epoch_executed='1766484019.73' WHERE source_name='4FGL J1543.0+6130' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17775003

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17775003/ft1_4FGL_J1543.0+6130_weekly_bin907.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17775003/ft2_4FGL_J1543.0+6130_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17775003/ft1_4FGL_J1543.0+6130_weekly_bin907.fits outfile=/lscratch/kocevski/17775003/ft1_filteredMKT_4FGL_J1543.0+6130_weekly_bin907.fits ra=235.755 dec=61.5033 rad=12.0 tmin=787536001.0 tmax=788140801.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.41
user 3.68
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17775003/ft2_4FGL_J1543.0+6130_weekly_bin907.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17775003/ft2_4FGL_J1543.0+6130_weekly_bin907.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/17775003/ft1_filteredMKT_4FGL_J1543.0+6130_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17775003/ft1_filtered_4FGL_J1543.0+6130_weekly_bin907.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.71
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1545

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17775003/ft1_filtered_4FGL_J1543.0+6130_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17775003/ft2_4FGL_J1543.0+6130_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17775003/ltcube_787536001_788140801_4FGL_J1543.0+6130_weekly_bin907.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/17775003/ft2_4FGL_J1543.0+6130_weekly_bin907.fits
.....................!
real 16.63
user 15.81
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17775003/ft1_filtered_4FGL_J1543.0+6130_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17775003/ft2_4FGL_J1543.0+6130_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17775003/ltcube_787536001_788140801_4FGL_J1543.0+6130_weekly_bin907.fits outfile=/lscratch/kocevski/17775003/expmap_787536001_788140801_4FGL_J1543.0+6130_weekly_bin907.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/17775003/ltcube_787536001_788140801_4FGL_J1543.0+6130_weekly_bin907.fits
.....................!
real 60.27
user 55.84
sys 3.48

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

Setting source of interest to:
4FGL J1543.0+6130 @ 235.755 61.5033

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17775003/ft1_filtered_4FGL_J1543.0+6130_weekly_bin907.fits scfile=/lscratch/kocevski/17775003/ft2_4FGL_J1543.0+6130_weekly_bin907.fits outfile=/lscratch/kocevski/17775003/cmap_787536001_788140801_4FGL_J1543.0+6130_weekly_bin907.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.755 yref=61.5033 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.67
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17775003/ft1_filtered_4FGL_J1543.0+6130_weekly_bin907.fits scfile=/lscratch/kocevski/17775003/ft2_4FGL_J1543.0+6130_weekly_bin907.fits outfile=/lscratch/kocevski/17775003/cmap_HighResolution_787536001_788140801_4FGL_J1543.0+6130_weekly_bin907.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.755 yref=61.5033 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.64
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17775003/ft1_filtered_4FGL_J1543.0+6130_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17775003/ft2_4FGL_J1543.0+6130_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17775003/Model_4FGL_J1543.0+6130_weekly_bin907.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/17775003/ft1_filtered_4FGL_J1543.0+6130_weekly_bin907.fits.....................!
real 42.18
user 41.07
sys 0.71

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17775003/ft1_filtered_4FGL_J1543.0+6130_weekly_bin907.fits', '/lscratch/kocevski/17775003/ft2_4FGL_J1543.0+6130_weekly_bin907.fits', expMap='/lscratch/kocevski/17775003/expmap_787536001_788140801_4FGL_J1543.0+6130_weekly_bin907.fits', expCube='/lscratch/kocevski/17775003/ltcube_787536001_788140801_4FGL_J1543.0+6130_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17775003/Model_4FGL_J1543.0+6130_weekly_bin907.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1543.0+6130'

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  6.436e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
328        alpha:  1.900e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
329         beta:  5.950e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  9.986e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17775003/ft1_filtered_4FGL_J1543.0+6130_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17775003/ft2_4FGL_J1543.0+6130_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17775003/expmap_787536001_788140801_4FGL_J1543.0+6130_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17775003/ltcube_787536001_788140801_4FGL_J1543.0+6130_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17775003/Model_4FGL_J1543.0+6130_weekly_bin907.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) = 16511.1247971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36281E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    44.782       1.0000          .0000       .10000E+07
     3 'Prefactor '    .49087E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .62017E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .27596E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .91914E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.3178       1.0000          .0000       .10000E+07
     8 'norm      '    1.2342       1.0000          .0000       .10000E+07
     9 'Prefactor '    26.645       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.9471       1.0000          .0000       .10000E+07
    11 'norm      '    .62907E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    33.636       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.7316       1.0000          .0000       .10000E+07
    14 'norm      '    6.6677       1.0000          .0000       .10000E+07
    15 'Prefactor '    4.7562       1.0000          .0000       .10000E+07
    16 'Prefactor '    18.590       1.0000          .0000       .10000E+07
    17 'norm      '    .69848       1.0000          .0000       .10000E+07
    18 'Prefactor '    .54297E-02   1.0000          .0000       .10000E+07
    19 'norm      '    8.8744       1.0000          .0000       .10000E+07
    20 'Prefactor '    .14415E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    18.468       1.0000          .0000       .10000E+07
    22 'Prefactor '    14.794       1.0000          .0000       .10000E+07
    23 'Normalizat'    .94695       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95267       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16511.09     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     2015 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-09    7.5359       -.14529E-06** at limit **
   2  Prefactor     45.185        14.110       -.23420E-07   -.12117    
   3  Prefactor     .61617E-08    2.8059        .13127E-06** at limit **
   4  Prefactor     .12068E-06    4.0423        .81551E-07** at limit **
   5  Prefactor     .39579E-07    15.369       -.16180E-06** at limit **
   6  Prefactor     .51004E-06    2.5873        .12596E-06** at limit **
   7  Prefactor     1.2946        2.7938        .26367E-07   -.12436E-01
   8  norm          1.2199        1.1223       -.13554E-07   -.35597E-02
   9  Prefactor     32.168        47.555       -.20206E-06   -.14160E-02
  10  Prefactor     2.9500        2.6022       -.58316E-07   -.38592E-02
  11  norm          .18874E-07    3.6805        .14636E-06** at limit **
  12  Prefactor     33.709        11.130       -.12398E-07   -.43642E-01
  13  Prefactor     2.7420        2.8466        .55765E-07    .19030E-02
  14  norm          6.6486        7.7936       -.53150E-07    .28024E-02
  15  Prefactor     4.7669        4.0355       -.10734E-06   -.61418E-02
  16  Prefactor     17.986        25.375        .26449E-07   -.37671E-01
  17  norm          .72881        1.9630       -.17657E-07    .46615E-01
  18  Prefactor     .19207E-07    6.7350        .53877E-08** at limit **
  19  norm          8.8839        .94991        .29814E-08    .31574E-02
  20  Prefactor     .11269E-07    3.6777       -.15867E-06** at limit **
  21  Prefactor     18.445        1.4120        .55361E-08   -.75383E-02
  22  Prefactor     14.792        7.4836        .45653E-07   -.18684E-01
  23  Normalizat    .94460        .12061       -.25603E-05   -.57711E-03
  24  Prefactor     .95357        .12315        .17990E-05   -.31452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88578e-10
  Prefactor  = 45.1854
  Prefactor  = 6.16174e-09
  Prefactor  = 1.20681e-07
  Prefactor  = 3.95795e-08
  Prefactor  = 5.10036e-07
  Prefactor  = 1.29455
  norm       = 1.21994
  Prefactor  = 32.168
  Prefactor  = 2.94996
  norm       = 1.88738e-08
  Prefactor  = 33.7091
  Prefactor  = 2.74203
  norm       = 6.64861
  Prefactor  = 4.76692
  Prefactor  = 17.9856
  norm       = 0.728809
  Prefactor  = 1.92069e-08
  norm       = 8.88391
  Prefactor  = 1.12688e-08
  Prefactor  = 18.445
  Prefactor  = 14.7922
  Normalizat = 0.944596
  Prefactor  = 0.953569
 **********
 **   18 **HESSE 
 **********

 FCN=   16511.09     FROM HESSE     STATUS=OK           449 CALLS     2464 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38858E-09    7.5518        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.185        23.327        .14945E-03   -1.5574    
   3  Prefactor     .61617E-08    2.8270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .12068E-06    4.6209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .39579E-07    15.124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .51004E-06    5.2284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2946        31.498        .95870E-03   -1.5685    
   8  norm          1.2199        1.1224        .10108E-03   -1.5686    
   9  Prefactor     32.168        47.424        .19376E-03   -1.5595    
  10  Prefactor     2.9500        2.6029        .59135E-03   -1.5674    
  11  norm          .18874E-07    3.7376        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     33.709        19.505        .17245E-03   -1.5592    
  13  Prefactor     2.7420        2.8550        .61584E-03   -1.5675    
  14  norm          6.6486        7.8040        .38837E-03   -1.5656    
  15  Prefactor     4.7669        4.0410        .46112E-03   -1.5664    
  16  Prefactor     17.986        27.203        .23202E-03   -1.5623    
  17  norm          .72881        8.0945        .60832E-03   -1.5691    
  18  Prefactor     .19207E-07    6.7952        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.8839        .98899        .33622E-03   -1.5648    
  20  Prefactor     .11269E-07    3.7253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.445        14.758        .23278E-03   -1.5622    
  22  Prefactor     14.792        7.6362        .26014E-03   -1.5631    
  23  Normalizat    .94460        .10247        .45499E-01   -.94910    
  24  Prefactor     .95357        .10548        .45673E-01   -.94294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98197e-07
Minuit parameter uncertainties:
  1  0.00010468
  2  23.3269
  3  0.000263921
  4  0.00149355
  5  0.00154706
  6  0.00326598
  7  12.7713
  8  1.12239
  9  47.4246
  10  2.60291
  11  0.000531217
  12  19.5052
  13  2.85496
  14  7.80405
  15  4.041
  16  27.2027
  17  4.85773
  18  0.000722857
  19  0.988989
  20  0.000409764
  21  14.7576
  22  7.63623
  23  0.102488
  24  0.105501
Done.

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

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  1.220e+00  1.122e+00  0.000e+00  1.000e+06 ( 1.000e-12)
328        alpha:  1.900e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
329         beta:  5.950e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  9.986e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  9.536e-01  1.055e-01  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  9.446e-01  1.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.09
Ra Dec: 235.755 61.503
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 9.24e-09 +/- 8.50e-09
Energy Flux (Fixed Index): 7.04e-06 +/- 6.48e-06

TS (Fixed Index): 3.09
Ra Dec: 235.755 61.503
Photon Flux Upper Limit: 3.13846350249e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.39192091596e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17775003/likelihoodResults_787536001_788140801_4FGL_J1543.0+6130_weekly_bin907.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) = 16511.0796103
delta logL = 0.00817336306864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16511.0768576
delta logL = 0.0109260674617

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16511.08     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2869        15.938        .97586E-03    .11681E-01
   2  alpha         2.3551        3.4558        .41236        .86259E-04
   3  Normalizat    .93387        .34089E-01    .45332E-01    .75616E-04
   4  Prefactor     .95877        .27606E-01    .45750E-01   -.58145E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.28687
  alpha      = 2.35512
  Normalizat = 0.933872
  Prefactor  = 0.958767
 **********
 **   18 **HESSE 
 **********

 FCN=   16511.08     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2869        1.2636        .11443E-04   -1.5685    
   2  alpha         2.3551        1.9485        .30227E-01   -.57986E-01
   3  Normalizat    .93387        .13826        .24101E-03   -.95280    
   4  Prefactor     .95877        .12839        .24730E-03   -.94117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03226e-10
Minuit parameter uncertainties:
  1  1.26359
  2  2.23571
  3  0.13831
  4  0.128426
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) = 16511.0768549
delta logL = 0.0109287183004

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  1.287e+00  1.264e+00  0.000e+00  1.000e+06 ( 1.000e-12)
328        alpha:  2.355e+00  2.236e+00  0.000e+00  5.000e+00 ( 1.000e+00)
329         beta:  5.950e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  9.986e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  9.588e-01  1.284e-01  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  9.339e-01  1.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.11
Ra Dec: 235.755 61.503
Photon Index (Free Index): 2.36 +/- 2.24
Photon Flux (Free Index): 1.80e-08 +/- 5.29e-08
Energy Flux (Free Index): 6.37e-06 +/- 5.21e-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/17775003/cmap_HighResolution_787536001_788140801_4FGL_J1543.0+6130_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-05', comment='SUCCESS', photon_flux='9.24e-09', energy_flux2='6.37e-06', photon_flux_error='8.50e-09', dlogl='1.09e-02', energy_flux='7.04e-06', photon_flux2='1.80e-08', job_status='DONE', time_completed='2025-12-23 02:16:08.319524', photon_index_error2='2.24', photon_index2='2.36', ts='3.09', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='3.14e-08', energy_flux_error2='5.21e-06', EG='0.94', time_epoch_completed='1766484968.32', return_code='0', job_id='17775003', GAL2='0.96', EG2='0.93', return_code2='0', energy_flux_error='6.48e-06', photon_flux_error2='5.29e-08', ts2='3.11', photon_index='1.90' WHERE bin_id='907' AND source_name='4FGL J1543.0+6130' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 02:16:08 PST 2025

