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


Performing analysis on: 4FGL_J2143.5+1743_weekly_bin906
RA = 325.894, Dec = 17.7306
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='17381075', job_status='RUN', time_executed='2025-12-16 03:14:49.908691', time_epoch_executed='1765883689.91' WHERE source_name='4FGL J2143.5+1743' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17381075

Creating custom pfile directory:
/lscratch/kocevski/17381075/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/17381075/ft1_4FGL_J2143.5+1743_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/17381075/ft2_4FGL_J2143.5+1743_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17381075/ft1_4FGL_J2143.5+1743_weekly_bin906.fits outfile=/lscratch/kocevski/17381075/ft1_filteredMKT_4FGL_J2143.5+1743_weekly_bin906.fits ra=325.894 dec=17.7306 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 5.82
user 4.92
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17381075/ft2_4FGL_J2143.5+1743_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17381075/ft2_4FGL_J2143.5+1743_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/17381075/ft1_filteredMKT_4FGL_J2143.5+1743_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17381075/ft1_filtered_4FGL_J2143.5+1743_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 0.93
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 1831

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17381075/ft1_filtered_4FGL_J2143.5+1743_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17381075/ft2_4FGL_J2143.5+1743_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17381075/ltcube_786931201_787536001_4FGL_J2143.5+1743_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/17381075/ft2_4FGL_J2143.5+1743_weekly_bin906.fits
.....................!
real 19.08
user 18.05
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17381075/ft1_filtered_4FGL_J2143.5+1743_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17381075/ft2_4FGL_J2143.5+1743_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17381075/ltcube_786931201_787536001_4FGL_J2143.5+1743_weekly_bin906.fits outfile=/lscratch/kocevski/17381075/expmap_786931201_787536001_4FGL_J2143.5+1743_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/17381075/ltcube_786931201_787536001_4FGL_J2143.5+1743_weekly_bin906.fits
.....................!
real 70.06
user 64.87
sys 3.78

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 Cygnus Loop in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 165 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 J2143.5+1743 @ 325.894 17.7306

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17381075/ft1_filtered_4FGL_J2143.5+1743_weekly_bin906.fits scfile=/lscratch/kocevski/17381075/ft2_4FGL_J2143.5+1743_weekly_bin906.fits outfile=/lscratch/kocevski/17381075/cmap_786931201_787536001_4FGL_J2143.5+1743_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=325.894 yref=17.7306 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.88
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17381075/ft1_filtered_4FGL_J2143.5+1743_weekly_bin906.fits scfile=/lscratch/kocevski/17381075/ft2_4FGL_J2143.5+1743_weekly_bin906.fits outfile=/lscratch/kocevski/17381075/cmap_HighResolution_786931201_787536001_4FGL_J2143.5+1743_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=325.894 yref=17.7306 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.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17381075/ft1_filtered_4FGL_J2143.5+1743_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17381075/ft2_4FGL_J2143.5+1743_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17381075/Model_4FGL_J2143.5+1743_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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17381075/ft1_filtered_4FGL_J2143.5+1743_weekly_bin906.fits.....................!
real 102.41
user 99.74
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17381075/ft1_filtered_4FGL_J2143.5+1743_weekly_bin906.fits', '/lscratch/kocevski/17381075/ft2_4FGL_J2143.5+1743_weekly_bin906.fits', expMap='/lscratch/kocevski/17381075/expmap_786931201_787536001_4FGL_J2143.5+1743_weekly_bin906.fits', expCube='/lscratch/kocevski/17381075/ltcube_786931201_787536001_4FGL_J2143.5+1743_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17381075/Model_4FGL_J2143.5+1743_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2143.5+1743'

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  7.341e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
280        alpha:  2.450e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  3.790e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.009e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17381075/ft1_filtered_4FGL_J2143.5+1743_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17381075/ft2_4FGL_J2143.5+1743_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17381075/expmap_786931201_787536001_4FGL_J2143.5+1743_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17381075/ltcube_786931201_787536001_4FGL_J2143.5+1743_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17381075/Model_4FGL_J2143.5+1743_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) = 19243.8804319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0793       1.0000          .0000       .10000E+07
     2 'Prefactor '    52.558       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.4699       1.0000          .0000       .10000E+07
     4 'Prefactor '    .23235E-03   1.0000          .0000       .10000E+07
     5 'norm      '    6.4126       1.0000          .0000       .10000E+07
     6 'Prefactor '    .27496       1.0000          .0000       .10000E+07
     7 'Prefactor '    89.379       1.0000          .0000       .10000E+07
     8 'norm      '    2.9900       1.0000          .0000       .10000E+07
     9 'norm      '    1.2740       1.0000          .0000       .10000E+07
    10 'norm      '    .15236E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .79635E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    48.203       1.0000          .0000       .10000E+07
    13 'norm      '    .46469E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.6634       1.0000          .0000       .10000E+07
    15 'norm      '    2.7665       1.0000          .0000       .10000E+07
    16 'Prefactor '    .53904E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .94468E-05   1.0000          .0000       .10000E+07
    18 'Normalizat'    .82212       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97083       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19243.86     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1600 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0797        10.905        .66310E-06    .63556E-01
   2  Prefactor     52.032        33.330        .40004E-06   -.19105    
   3  Prefactor     3.4619        8.2814        .46375E-06    .11104E-02
   4  Prefactor     .66613E-09    6.9085       -.38353E-06** at limit **
   5  norm          6.4212        3.0309       -.12241E-06   -.20030E-02
   6  Prefactor     .26764        5.1026       -.11359E-05   -.55774E-03
   7  Prefactor     88.250        52.802        .85394E-07    .11547    
   8  norm          2.9918        1.4330        .16028E-07   -.23154E-02
   9  norm          1.2732        1.2998       -.13685E-07   -.13130E-02
  10  norm          .11657E-08    6.3967        .18442E-06** at limit **
  11  Prefactor     .33307E-09    9.5031       -.13192E-06** at limit **
  12  Prefactor     48.169        22.406        .87012E-07    .26323    
  13  norm          .44978E-01    1.2744       -.84191E-07** at limit **
  14  Prefactor     3.6419        5.0371       -.20374E-07    .29774E-03
  15  norm          2.7653        2.0664        .31863E-06    .29498E-02
  16  Prefactor      .0000        2.1965       -.10027E-07** at limit **
  17  Prefactor     .55511E-10    3.4499        .21792E-06** at limit **
  18  Normalizat    .82225        .16329       -.37532E-05    .28080E-04
  19  Prefactor     .97096        .72658E-01    .15122E-05    .13002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.07967
  Prefactor  = 52.0322
  Prefactor  = 3.46193
  Prefactor  = 6.66134e-10
  norm       = 6.42118
  Prefactor  = 0.267639
  Prefactor  = 88.2504
  norm       = 2.9918
  norm       = 1.2732
  norm       = 1.16573e-09
  Prefactor  = 3.33067e-10
  Prefactor  = 48.1686
  norm       = 0.0449783
  Prefactor  = 3.64192
  norm       = 2.76533
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Normalizat = 0.822255
  Prefactor  = 0.970959
 **********
 **   18 **HESSE 
 **********

 FCN=   19243.86     FROM HESSE     STATUS=OK           320 CALLS     1920 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0797        11.262        .44590E-03   -1.5663    
   2  Prefactor     52.032        44.930        .13795E-03   -1.5564    
   3  Prefactor     3.4619        8.3220        .54262E-03   -1.5671    
   4  Prefactor     .66613E-09    6.9081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.4212        3.0321        .39611E-03   -1.5657    
   6  Prefactor     .26764        .98846        .71470E-02   -1.5698    
   7  Prefactor     88.250        57.389        .10578E-03   -1.5520    
   8  norm          2.9918        1.4397        .58683E-03   -1.5673    
   9  norm          1.2732        1.3180        .98455E-03   -1.5685    
  10  norm          .11657E-08    6.3867        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .33307E-09    9.4977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     48.169        27.443        .14404E-03   -1.5569    
  13  norm          .44978E-01    .25373        .22064E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6419        5.0481        .52750E-03   -1.5670    
  15  norm          2.7653        2.0688        .61165E-03   -1.5675    
  16  Prefactor      .0000        2.1956        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    3.4436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .82225        .14185        .84998E-01   -.99248    
  19  Prefactor     .97096        .61236E-01    .45901E-01   -.93704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1524e-06
Minuit parameter uncertainties:
  1  11.262
  2  44.9302
  3  8.32204
  4  0.000135382
  5  3.03207
  6  0.988463
  7  57.3896
  8  1.43974
  9  1.31797
  10  0.000172889
  11  0.000112478
  12  27.4426
  13  0.213658
  14  5.04808
  15  2.06882
  16  2.02409e-06
  17  2.06056e-05
  18  0.141918
  19  0.0612402
Done.

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

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  2.992e+00  1.440e+00  0.000e+00  1.000e+06 ( 1.000e-11)
280        alpha:  2.450e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  3.790e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.009e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  9.710e-01  6.124e-02  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  8.223e-01  1.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.63
Ra Dec: 325.894 17.731
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 5.98e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 8.37e-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) = 19243.4615921
delta logL = 0.393588369276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19243.4590484
delta logL = 0.396132004109

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   19243.46     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      240 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6655        16.152        .62373E-03    .14448E-01
   2  alpha         2.9950        3.9626        .42215        .95672E-04
   3  Normalizat    .78492        .56312E-01    .86805E-01    .86728E-04
   4  Prefactor     .98247        .24021E-01    .46048E-01   -.11642E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.6655
  alpha      = 2.99496
  Normalizat = 0.784923
  Prefactor  = 0.98247
 **********
 **   18 **HESSE 
 **********

 FCN=   19243.46     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6655        1.7238        .92860E-05   -1.5675    
   2  alpha         2.9950        .76928        .23136E-01    .19930    
   3  Normalizat    .78492        .16484        .38442E-03   -1.0063    
   4  Prefactor     .98247        .73470E-01    .15750E-03   -.93316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49196e-08
Minuit parameter uncertainties:
  1  1.72378
  2  0.782508
  3  0.164941
  4  0.0734777
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) = 19243.459047
delta logL = 0.396133443737

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  2.666e+00  1.724e+00  0.000e+00  1.000e+06 ( 1.000e-11)
280        alpha:  2.995e+00  7.825e-01  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  3.790e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.009e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  9.825e-01  7.348e-02  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  7.849e-01  1.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.55
Ra Dec: 325.894 17.731
Photon Index (Free Index): 2.99 +/- 0.78
Photon Flux (Free Index): 8.24e-08 +/- 3.98e-08
Energy Flux (Free Index): 1.65e-05 +/- 7.59e-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/17381075/cmap_HighResolution_786931201_787536001_4FGL_J2143.5+1743_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.98e-08', energy_flux2='1.65e-05', photon_flux_error='2.88e-08', dlogl='3.96e-01', energy_flux='1.74e-05', photon_flux2='8.24e-08', job_status='DONE', time_completed='2025-12-16 03:27:16.120220', photon_index_error2='0.78', photon_index2='2.99', ts='6.63', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='7.59e-06', EG='0.82', time_epoch_completed='1765884436.12', return_code='0', job_id='17381075', GAL2='0.98', EG2='0.78', return_code2='0', energy_flux_error='8.37e-06', photon_flux_error2='3.98e-08', ts2='7.55', photon_index='2.45' WHERE bin_id='906' AND source_name='4FGL J2143.5+1743' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:27:16 PST 2025

