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


Performing analysis on: 4FGL_J2143.5+1743_weekly_bin935
RA = 325.894, Dec = 17.7306
tmin = 804470401, tmax = 805075201
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='31262222', job_status='RUN', time_executed='2026-07-10 15:47:23.421474', time_epoch_executed='1783723643.42' WHERE source_name='4FGL J2143.5+1743' and cadence='weekly' and bin_id='935'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31262222

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31262222/ft1_4FGL_J2143.5+1743_weekly_bin935.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31262222/ft2_4FGL_J2143.5+1743_weekly_bin935.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31262222/ft1_4FGL_J2143.5+1743_weekly_bin935.fits outfile=/lscratch/kocevski/31262222/ft1_filteredMKT_4FGL_J2143.5+1743_weekly_bin935.fits ra=325.894 dec=17.7306 rad=12.0 tmin=804470401.0 tmax=805075201.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.50
user 5.45
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31262222/ft2_4FGL_J2143.5+1743_weekly_bin935.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/31262222/ft1_filteredMKT_4FGL_J2143.5+1743_weekly_bin935.fits evtable="EVENTS" outfile="/lscratch/kocevski/31262222/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.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.56
user 0.23
sys 0.12

Number of photons that the gtmktime cut: 1954

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31262222/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31262222/ft2_4FGL_J2143.5+1743_weekly_bin935.fits sctable="SC_DATA"/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).

935.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31261952/Model_4FGL_J2143.5+1743_weekly_bin935.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/31261952/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits.....................!
real 109.59
user 107.74
sys 0.69

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31261952/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits', '/lscratch/kocevski/31261952/ft2_4FGL_J2143.5+1743_weekly_bin935.fits', expMap='/lscratch/kocevski/31261952/expmap_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits', expCube='/lscratch/kocevski/31261952/ltcube_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31261952/Model_4FGL_J2143.5+1743_weekly_bin935.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/31261952/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits
Spacecraft file(s): /lscratch/kocevski/31261952/ft2_4FGL_J2143.5+1743_weekly_bin935.fits
Exposure map: /lscratch/kocevski/31261952/expmap_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits
Exposure cube: /lscratch/kocevski/31261952/ltcube_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31261952/Model_4FGL_J2143.5+1743_weekly_bin935.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) = 20763.467367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.375       1.0000          .0000       .10000E+07
     2 'Prefactor '    .85805E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .33231E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.4813       1.0000          .0000       .10000E+07
     5 'norm      '    .88660       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.2008       1.0000          .0000       .10000E+07
     7 'Prefactor '    36.240       1.0000          .0000       .10000E+07
     8 'norm      '    .74337       1.0000          .0000       .10000E+07
     9 'norm      '    1.1016       1.0000          .0000       .10000E+07
    10 'norm      '    12.430       1.0000          .0000       .10000E+07
    11 'Prefactor '    14.044       1.0000          .0000       .10000E+07
    12 'Prefactor '    11.991       1.0000          .0000       .10000E+07
    13 'norm      '    .80874       1.0000          .0000       .10000E+07
    14 'Prefactor '    7.3081       1.0000          .0000       .10000E+07
    15 'norm      '    2.4658       1.0000          .0000       .10000E+07
    16 'Prefactor '    .14705E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    7.7960       1.0000          .0000       .10000E+07
    18 'Normalizat'    .90696       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90162       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=   20763.38     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     1152 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.424        2.5017        .69601E-08    .24119E-01
   2  Prefactor     .17819E-07    91.500       -.15467E-06** at limit **
   3  Prefactor     .83267E-09    64.838       -.15154E-05** at limit **
   4  Prefactor     2.3514        9.1654       -.19623E-06   -.78623E-03
   5  norm          .88810        1.1516        .55326E-07   -.77315E-03
   6  Prefactor     1.2018        1.9439       -.18236E-07    .58469E-04
   7  Prefactor     37.295        34.835        .13866E-06   -.48234E-03
   8  norm          .74054        1.2941       -.30908E-07    .34300E-03
   9  norm          1.0926        1.3566        .32066E-07   -.16088E-03
  10  norm          12.715        14.175       -.13227E-06    .25466E-02
  11  Prefactor     14.016        3.5945       -.35246E-07   -.58496E-02
  12  Prefactor     11.998        1.7349       -.14370E-07   -.44382E-02
  13  norm          .80876        .48675        .38474E-08   -.24088E-03
  14  Prefactor     7.3334        7.5501       -.75196E-07    .22565E-03
  15  norm          2.4656        2.0359        .11189E-07   -.14884E-03
  16  Prefactor      .0000        1.4904        .82197E-07** at limit **
  17  Prefactor     7.7886        5.9160        .83117E-07   -.11529E-03
  18  Normalizat    .90662        .15656       -.59330E-06    .39017E-05
  19  Prefactor     .90166        .67417E-01    .41225E-06   -.63415E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4244
  Prefactor  = 1.78191e-08
  Prefactor  = 8.32667e-10
  Prefactor  = 2.35144
  norm       = 0.8881
  Prefactor  = 1.20175
  Prefactor  = 37.295
  norm       = 0.74054
  norm       = 1.09258
  norm       = 12.7149
  Prefactor  = 14.0162
  Prefactor  = 11.9985
  norm       = 0.808764
  Prefactor  = 7.33341
  norm       = 2.46565
  Prefactor  = 0
  Prefactor  = 7.78862
  Normalizat = 0.906619
  Prefactor  = 0.901661
 **********
 **   18 **HESSE 
 **********

 FCN=   20763.38     FROM HESSE     STATUS=OK           330 CALLS     1482 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.424        12.367        .19116E-03   -1.5603    
   2  Prefactor     .17819E-07    13.507        .19349E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .83267E-09    2.4622        .13167E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3514        9.2605        .64874E-03   -1.5677    
   5  norm          .88810        1.1574        .46691E-03   -1.5689    
   6  Prefactor     1.2018        1.9892        .10354E-02   -1.5686    
   7  Prefactor     37.295        34.878        .16613E-03   -1.5586    
   8  norm          .74054        1.3469        .57255E-03   -1.5691    
   9  norm          1.0926        1.4104        .11310E-02   -1.5687    
  10  norm          12.715        14.790        .28387E-03   -1.5637    
  11  Prefactor     14.016        13.320        .26702E-03   -1.5633    
  12  Prefactor     11.998        13.042        .28903E-03   -1.5639    
  13  norm          .80876        .48790        .52286E-04   -1.5690    
  14  Prefactor     7.3334        7.5577        .37078E-03   -1.5654    
  15  norm          2.4656        2.0400        .65096E-03   -1.5677    
  16  Prefactor      .0000        1.4913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.7886        5.9163        .35889E-03   -1.5652    
  18  Normalizat    .90662        .13388        .80207E-01   -.96228    
  19  Prefactor     .90166        .56756E-01    .45026E-01   -.96083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37089e-07
Minuit parameter uncertainties:
  1  12.3674
  2  0.000980976
  3  8.93982e-05
  4  9.26056
  5  1.15743
  6  1.98918
  7  34.8786
  8  1.34692
  9  1.4104
  10  14.7902
  11  13.3202
  12  13.0424
  13  0.487903
  14  7.55768
  15  2.04001
  16  2.41304e-06
  17  5.91627
  18  0.133926
  19  0.0567594
 outfile=/lscratch/kocevski/31262222/ltcube_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.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/31262222/ft2_4FGL_J2143.5+1743_weekly_bin935.fits
.....................!
real 20.27
user 18.78
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31262222/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits evtable="EVENTS" scfile=/lscratch/kocevski/31262222/ft2_4FGL_J2143.5+1743_weekly_bin935.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31262222/ltcube_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits outfile=/lscratch/kocevski/31262222/expmap_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.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/31262222/ltcube_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits
.....................!
real 73.18
user 67.76
sys 4.15

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/31262222/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits scfile=/lscratch/kocevski/31262222/ft2_4FGL_J2143.5+1743_weekly_bin935.fits outfile=/lscratch/kocevski/31262222/cmap_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.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.87
user 0.24
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31262222/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits scfile=/lscratch/kocevski/31262222/ft2_4FGL_J2143.5+1743_weekly_bin935.fits outfile=/lscratch/kocevski/31262222/cmap_HighResolution_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.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 0.79
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31262222/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits evtable="EVENTS" scfile=/lscratch/kocevski/31262222/ft2_4FGL_J2143.5+1743_weekly_bin935.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31262068/Model_4FGL_J2143.5+1743_weekly_bin935.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/31262068/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits.....................!
real 112.12
user 109.79
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31262068/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits', '/lscratch/kocevski/31262068/ft2_4FGL_J2143.5+1743_weekly_bin935.fits', expMap='/lscratch/kocevski/31262068/expmap_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits', expCube='/lscratch/kocevski/31262068/ltcube_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31262068/Model_4FGL_J2143.5+1743_weekly_bin935.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/31262068/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits
Spacecraft file(s): /lscratch/kocevski/31262068/ft2_4FGL_J2143.5+1743_weekly_bin935.fits
Exposure map: /lscratch/kocevski/31262068/expmap_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits
Exposure cube: /lscratch/kocevski/31262068/ltcube_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31262068/Model_4FGL_J2143.5+1743_weekly_bin935.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) = 20763.467367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.375       1.0000          .0000       .10000E+07
     2 'Prefactor '    .85805E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .33231E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.4813       1.0000          .0000       .10000E+07
     5 'norm      '    .88660       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.2008       1.0000          .0000       .10000E+07
     7 'Prefactor '    36.240       1.0000          .0000       .10000E+07
     8 'norm      '    .74337       1.0000          .0000       .10000E+07
     9 'norm      '    1.1016       1.0000          .0000       .10000E+07
    10 'norm      '    12.430       1.0000          .0000       .10000E+07
    11 'Prefactor '    14.044       1.0000          .0000       .10000E+07
    12 'Prefactor '    11.991       1.0000          .0000       .10000E+07
    13 'norm      '    .80874       1.0000          .0000       .10000E+07
    14 'Prefactor '    7.3081       1.0000          .0000       .10000E+07
    15 'norm      '    2.4658       1.0000          .0000       .10000E+07
    16 'Prefactor '    .14705E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    7.7960       1.0000          .0000       .10000E+07
    18 'Normalizat'    .90696       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90162       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=   20763.38     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     1152 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.424        2.5017        .69601E-08    .24119E-01
   2  Prefactor     .17819E-07    91.500       -.15467E-06** at limit **
   3  Prefactor     .83267E-09    64.838       -.15154E-05** at limit **
   4  Prefactor     2.3514        9.1654       -.19623E-06   -.78623E-03
   5  norm          .88810        1.1516        .55326E-07   -.77315E-03
   6  Prefactor     1.2018        1.9439       -.18236E-07    .58469E-04
   7  Prefactor     37.295        34.835        .13866E-06   -.48234E-03
   8  norm          .74054        1.2941       -.30908E-07    .34300E-03
   9  norm          1.0926        1.3566        .32066E-07   -.16088E-03
  10  norm          12.715        14.175       -.13227E-06    .25466E-02
  11  Prefactor     14.016        3.5945       -.35246E-07   -.58496E-02
  12  Prefactor     11.998        1.7349       -.14370E-07   -.44382E-02
  13  norm          .80876        .48675        .38474E-08   -.24088E-03
  14  Prefactor     7.3334        7.5501       -.75196E-07    .22565E-03
  15  norm          2.4656        2.0359        .11189E-07   -.14884E-03
  16  Prefactor      .0000        1.4904        .82197E-07** at limit **
  17  Prefactor     7.7886        5.9160        .83117E-07   -.11529E-03
  18  Normalizat    .90662        .15656       -.59330E-06    .39017E-05
  19  Prefactor     .90166        .67417E-01    .41225E-06   -.63415E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4244
  Prefactor  = 1.78191e-08
  Prefactor  = 8.32667e-10
  Prefactor  = 2.35144
  norm       = 0.8881
  Prefactor  = 1.20175
  Prefactor  = 37.295
  norm       = 0.74054
  norm       = 1.09258
  norm       = 12.7149
  Prefactor  = 14.0162
  Prefactor  = 11.9985
  norm       = 0.808764
  Prefactor  = 7.33341
  norm       = 2.46565
  Prefactor  = 0
  Prefactor  = 7.78862
  Normalizat = 0.906619
  Prefactor  = 0.901661
Done.

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

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  7.405e-01  1.347e+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.017e-01  5.676e-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:  9.066e-01  1.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 325.894 17.731
Photon Flux Upper Limit: 6.80025549595e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.97659461837e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31261952/likelihoodResults_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.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) = 20763.2918409
delta logL = 0.0926765077929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20763.2834004
delta logL = 0.101117009857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57091       1.0000          .0000       .10000E+07
     2 'alpha     '    3.2966       1.0000          .0000       5.0000    
     3 'Normalizat'    .89234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90619       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=   20763.28     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      213 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56876        21.701        .71875E-03    .50026E-01
   2  alpha         3.2993        3.1077        .44165        .13087E-03
   3  Normalizat    .89234        .33320E-01    .80790E-01    .31631E-04
   4  Prefactor     .90620        .15329E-01    .45084E-01   -.48459E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.568761
  alpha      = 3.29927
  Normalizat = 0.892337
  Prefactor  = 0.906202
 **********
 **   18 **HESSE 
 **********

 FCN=   20763.28     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      244 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56876        52.732        .14226E-04   -1.5693    
   2  alpha         3.2993        3.9214        .67284E-01    .32542    
   3  Normalizat    .89234        .15997        .35764E-03   -.96730    
   4  Prefactor     .90620        .83639E-01    .15897E-03   -.95925    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.74627e-05
Minuit parameter uncertainties:
  1  10.953
  2  17.9211
  3  0.160055
  4  0.0836509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20763.283399
delta logL = 0.101118414903

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  5.688e-01  1.095e+01  0.000e+00  1.000e+06 ( 1.000e-11)
280        alpha:  3.299e+00  1.792e+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.062e-01  8.365e-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.923e-01  1.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
Ra Dec: 325.894 17.731

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/31261952/cmap_HighResolution_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-05', job_status='DONE', photon_flux_upper_limit='6.80e-08', time_completed='2026-07-10 15:55:20.368931', job_id='31261952', GAL2='0.91', fit_tolerance='1e-08', EG2='0.89', EG='0.91', time_epoch_completed='1783724120.37', return_code2='102', ts='0.38', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.01e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='935' AND source_name='4FGL J2143.5+1743' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul 10 15:55:21 PDT 2026

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

 FCN=   20763.38     FROM HESSE     STATUS=OK           330 CALLS     1482 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.424        12.367        .19116E-03   -1.5603    
   2  Prefactor     .17819E-07    13.507        .19349E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .83267E-09    2.4622        .13167E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3514        9.2605        .64874E-03   -1.5677    
   5  norm          .88810        1.1574        .46691E-03   -1.5689    
   6  Prefactor     1.2018        1.9892        .10354E-02   -1.5686    
   7  Prefactor     37.295        34.878        .16613E-03   -1.5586    
   8  norm          .74054        1.3469        .57255E-03   -1.5691    
   9  norm          1.0926        1.4104        .11310E-02   -1.5687    
  10  norm          12.715        14.790        .28387E-03   -1.5637    
  11  Prefactor     14.016        13.320        .26702E-03   -1.5633    
  12  Prefactor     11.998        13.042        .28903E-03   -1.5639    
  13  norm          .80876        .48790        .52286E-04   -1.5690    
  14  Prefactor     7.3334        7.5577        .37078E-03   -1.5654    
  15  norm          2.4656        2.0400        .65096E-03   -1.5677    
  16  Prefactor      .0000        1.4913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.7886        5.9163        .35889E-03   -1.5652    
  18  Normalizat    .90662        .13388        .80207E-01   -.96228    
  19  Prefactor     .90166        .56756E-01    .45026E-01   -.96083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37089e-07
Minuit parameter uncertainties:
  1  12.3674
  2  0.000980976
  3  8.93982e-05
  4  9.26056
  5  1.15743
  6  1.98918
  7  34.8786
  8  1.34692
  9  1.4104
  10  14.7902
  11  13.3202
  12  13.0424
  13  0.487903
  14  7.55768
  15  2.04001
  16  2.41304e-06
  17  5.91627
  18  0.133926
  19  0.0567594
Done.

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

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  7.405e-01  1.347e+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.017e-01  5.676e-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:  9.066e-01  1.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 325.894 17.731
Photon Flux Upper Limit: 6.80025549595e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.97659461837e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31262068/likelihoodResults_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.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) = 20763.2918409
delta logL = 0.0926765077929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20763.2834004
delta logL = 0.101117009857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57091       1.0000          .0000       .10000E+07
     2 'alpha     '    3.2966       1.0000          .0000       5.0000    
     3 'Normalizat'    .89234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90619       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=   20763.28     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      213 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56876        21.701        .71875E-03    .50026E-01
   2  alpha         3.2993        3.1077        .44165        .13087E-03
   3  Normalizat    .89234        .33320E-01    .80790E-01    .31631E-04
   4  Prefactor     .90620        .15329E-01    .45084E-01   -.48459E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.568761
  alpha      = 3.29927
  Normalizat = 0.892337
  Prefactor  = 0.906202
 **********
 **   18 **HESSE 
 **********

 FCN=   20763.28     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      244 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56876        52.732        .14226E-04   -1.5693    
   2  alpha         3.2993        3.9214        .67284E-01    .32542    
   3  Normalizat    .89234        .15997        .35764E-03   -.96730    
   4  Prefactor     .90620        .83639E-01    .15897E-03   -.95925    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.74627e-05
Minuit parameter uncertainties:
  1  10.953
  2  17.9211
  3  0.160055
  4  0.0836509
number of points = 17462
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2143.5+1743_weekly_bin935
RA = 325.894, Dec = 17.7306
tmin = 804470401, tmax = 805075201
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='31262559', job_status='RUN', time_executed='2026-07-10 15:52:28.171024', time_epoch_executed='1783723948.17' WHERE source_name='4FGL J2143.5+1743' and cadence='weekly' and bin_id='935'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31262559

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31262559/ft1_4FGL_J2143.5+1743_weekly_bin935.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31262559/ft2_4FGL_J2143.5+1743_weekly_bin935.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31262559/ft1_4FGL_J2143.5+1743_weekly_bin935.fits outfile=/lscratch/kocevski/31262559/ft1_filteredMKT_4FGL_J2143.5+1743_weekly_bin935.fits ra=325.894 dec=17.7306 rad=12.0 tmin=804470401.0 tmax=805075201.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.30
user 5.62
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31262559/ft2_4FGL_J2143.5+1743_weekly_bin935.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/31262559/ft1_filteredMKT_4FGL_J2143.5+1743_weekly_bin935.fits evtable="EVENTS" outfile="/lscratch/kocevski/31262559/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.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.91
user 0.23
sys 0.15

Number of photons that the gtmktime cut: 1954

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31262559/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31262559/ft2_4FGL_J2143.5+1743_weekly_bin935.fits sctable="SC_DATA"shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20763.283399
delta logL = 0.101118414903

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  5.688e-01  1.095e+01  0.000e+00  1.000e+06 ( 1.000e-11)
280        alpha:  3.299e+00  1.792e+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.062e-01  8.365e-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.923e-01  1.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
Ra Dec: 325.894 17.731

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/31262068/cmap_HighResolution_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-05', job_status='DONE', photon_flux_upper_limit='6.80e-08', time_completed='2026-07-10 15:57:20.177089', job_id='31262068', GAL2='0.91', fit_tolerance='1e-08', EG2='0.89', EG='0.91', time_epoch_completed='1783724240.18', return_code2='102', ts='0.38', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.01e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='935' AND source_name='4FGL J2143.5+1743' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul 10 15:57:20 PDT 2026

935.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31262222/Model_4FGL_J2143.5+1743_weekly_bin935.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/31262222/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits.....................!
real 110.81
user 108.68
sys 0.69

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31262222/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits', '/lscratch/kocevski/31262222/ft2_4FGL_J2143.5+1743_weekly_bin935.fits', expMap='/lscratch/kocevski/31262222/expmap_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits', expCube='/lscratch/kocevski/31262222/ltcube_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31262222/Model_4FGL_J2143.5+1743_weekly_bin935.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/31262222/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits
Spacecraft file(s): /lscratch/kocevski/31262222/ft2_4FGL_J2143.5+1743_weekly_bin935.fits
Exposure map: /lscratch/kocevski/31262222/expmap_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits
Exposure cube: /lscratch/kocevski/31262222/ltcube_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31262222/Model_4FGL_J2143.5+1743_weekly_bin935.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) = 20763.467367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.375       1.0000          .0000       .10000E+07
     2 'Prefactor '    .85805E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .33231E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.4813       1.0000          .0000       .10000E+07
     5 'norm      '    .88660       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.2008       1.0000          .0000       .10000E+07
     7 'Prefactor '    36.240       1.0000          .0000       .10000E+07
     8 'norm      '    .74337       1.0000          .0000       .10000E+07
     9 'norm      '    1.1016       1.0000          .0000       .10000E+07
    10 'norm      '    12.430       1.0000          .0000       .10000E+07
    11 'Prefactor '    14.044       1.0000          .0000       .10000E+07
    12 'Prefactor '    11.991       1.0000          .0000       .10000E+07
    13 'norm      '    .80874       1.0000          .0000       .10000E+07
    14 'Prefactor '    7.3081       1.0000          .0000       .10000E+07
    15 'norm      '    2.4658       1.0000          .0000       .10000E+07
    16 'Prefactor '    .14705E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    7.7960       1.0000          .0000       .10000E+07
    18 'Normalizat'    .90696       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90162       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=   20763.38     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     1152 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.424        2.5017        .69601E-08    .24119E-01
   2  Prefactor     .17819E-07    91.500       -.15467E-06** at limit **
   3  Prefactor     .83267E-09    64.838       -.15154E-05** at limit **
   4  Prefactor     2.3514        9.1654       -.19623E-06   -.78623E-03
   5  norm          .88810        1.1516        .55326E-07   -.77315E-03
   6  Prefactor     1.2018        1.9439       -.18236E-07    .58469E-04
   7  Prefactor     37.295        34.835        .13866E-06   -.48234E-03
   8  norm          .74054        1.2941       -.30908E-07    .34300E-03
   9  norm          1.0926        1.3566        .32066E-07   -.16088E-03
  10  norm          12.715        14.175       -.13227E-06    .25466E-02
  11  Prefactor     14.016        3.5945       -.35246E-07   -.58496E-02
  12  Prefactor     11.998        1.7349       -.14370E-07   -.44382E-02
  13  norm          .80876        .48675        .38474E-08   -.24088E-03
  14  Prefactor     7.3334        7.5501       -.75196E-07    .22565E-03
  15  norm          2.4656        2.0359        .11189E-07   -.14884E-03
  16  Prefactor      .0000        1.4904        .82197E-07** at limit **
  17  Prefactor     7.7886        5.9160        .83117E-07   -.11529E-03
  18  Normalizat    .90662        .15656       -.59330E-06    .39017E-05
  19  Prefactor     .90166        .67417E-01    .41225E-06   -.63415E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4244
  Prefactor  = 1.78191e-08
  Prefactor  = 8.32667e-10
  Prefactor  = 2.35144
  norm       = 0.8881
  Prefactor  = 1.20175
  Prefactor  = 37.295
  norm       = 0.74054
  norm       = 1.09258
  norm       = 12.7149
  Prefactor  = 14.0162
  Prefactor  = 11.9985
  norm       = 0.808764
  Prefactor  = 7.33341
  norm       = 2.46565
  Prefactor  = 0
  Prefactor  = 7.78862
  Normalizat = 0.906619
  Prefactor  = 0.901661
 **********
 **   18 **HESSE 
 **********

 FCN=   20763.38     FROM HESSE     STATUS=OK           330 CALLS     1482 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.424        12.367        .19116E-03   -1.5603    
   2  Prefactor     .17819E-07    13.507        .19349E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .83267E-09    2.4622        .13167E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3514        9.2605        .64874E-03   -1.5677    
   5  norm          .88810        1.1574        .46691E-03   -1.5689    
   6  Prefactor     1.2018        1.9892        .10354E-02   -1.5686    
   7  Prefactor     37.295        34.878        .16613E-03   -1.5586    
   8  norm          .74054        1.3469        .57255E-03   -1.5691    
   9  norm          1.0926        1.4104        .11310E-02   -1.5687    
  10  norm          12.715        14.790        .28387E-03   -1.5637    
  11  Prefactor     14.016        13.320        .26702E-03   -1.5633    
  12  Prefactor     11.998        13.042        .28903E-03   -1.5639    
  13  norm          .80876        .48790        .52286E-04   -1.5690    
  14  Prefactor     7.3334        7.5577        .37078E-03   -1.5654    
  15  norm          2.4656        2.0400        .65096E-03   -1.5677    
  16  Prefactor      .0000        1.4913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.7886        5.9163        .35889E-03   -1.5652    
  18  Normalizat    .90662        .13388        .80207E-01   -.96228    
  19  Prefactor     .90166        .56756E-01    .45026E-01   -.96083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37089e-07
Minuit parameter uncertainties:
  1  12.3674
  2  0.000980976
  3  8.93982e-05
  4  9.26056
  5  1.15743
  6  1.98918
  7  34.8786
  8  1.34692
  9  1.4104
  10  14.7902
  11  13.3202
  12  13.0424
  13  0.487903
  14  7.55768
  15  2.04001
  16  2.41304e-06
  17  5.91627
  18  0.133926
  19  0.0567594
 outfile=/lscratch/kocevski/31262559/ltcube_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.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/31262559/ft2_4FGL_J2143.5+1743_weekly_bin935.fits
.....................!
real 20.58
user 19.59
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31262559/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits evtable="EVENTS" scfile=/lscratch/kocevski/31262559/ft2_4FGL_J2143.5+1743_weekly_bin935.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31262559/ltcube_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits outfile=/lscratch/kocevski/31262559/expmap_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.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/31262559/ltcube_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits
.....................!
real 76.47
user 71.11
sys 4.41

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/31262559/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits scfile=/lscratch/kocevski/31262559/ft2_4FGL_J2143.5+1743_weekly_bin935.fits outfile=/lscratch/kocevski/31262559/cmap_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.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.82
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31262559/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits scfile=/lscratch/kocevski/31262559/ft2_4FGL_J2143.5+1743_weekly_bin935.fits outfile=/lscratch/kocevski/31262559/cmap_HighResolution_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.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/31262559/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits evtable="EVENTS" scfile=/lscratch/kocevski/31262559/ft2_4FGL_J2143.5+1743_weekly_binDone.

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

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  7.405e-01  1.347e+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.017e-01  5.676e-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:  9.066e-01  1.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 325.894 17.731
Photon Flux Upper Limit: 6.80025549595e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.97659461837e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31262222/likelihoodResults_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.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) = 20763.2918409
delta logL = 0.0926765077929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20763.2834004
delta logL = 0.101117009857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57091       1.0000          .0000       .10000E+07
     2 'alpha     '    3.2966       1.0000          .0000       5.0000    
     3 'Normalizat'    .89234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90619       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=   20763.28     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      213 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56876        21.701        .71875E-03    .50026E-01
   2  alpha         3.2993        3.1077        .44165        .13087E-03
   3  Normalizat    .89234        .33320E-01    .80790E-01    .31631E-04
   4  Prefactor     .90620        .15329E-01    .45084E-01   -.48459E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.568761
  alpha      = 3.29927
  Normalizat = 0.892337
  Prefactor  = 0.906202
 **********
 **   18 **HESSE 
 **********

 FCN=   20763.28     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      244 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56876        52.732        .14226E-04   -1.5693    
   2  alpha         3.2993        3.9214        .67284E-01    .32542    
   3  Normalizat    .89234        .15997        .35764E-03   -.96730    
   4  Prefactor     .90620        .83639E-01    .15897E-03   -.95925    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.74627e-05
Minuit parameter uncertainties:
  1  10.953
  2  17.9211
  3  0.160055
  4  0.0836509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20763.283399
delta logL = 0.101118414903

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  5.688e-01  1.095e+01  0.000e+00  1.000e+06 ( 1.000e-11)
280        alpha:  3.299e+00  1.792e+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.062e-01  8.365e-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.923e-01  1.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
Ra Dec: 325.894 17.731

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/31262222/cmap_HighResolution_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-05', job_status='DONE', photon_flux_upper_limit='6.80e-08', time_completed='2026-07-10 16:00:37.208368', job_id='31262222', GAL2='0.91', fit_tolerance='1e-08', EG2='0.89', EG='0.91', time_epoch_completed='1783724437.21', return_code2='102', ts='0.38', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.01e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='935' AND source_name='4FGL J2143.5+1743' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul 10 16:00:37 PDT 2026

935.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31262559/Model_4FGL_J2143.5+1743_weekly_bin935.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/31262559/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits.....................!
real 114.83
user 112.92
sys 0.78

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31262559/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits', '/lscratch/kocevski/31262559/ft2_4FGL_J2143.5+1743_weekly_bin935.fits', expMap='/lscratch/kocevski/31262559/expmap_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits', expCube='/lscratch/kocevski/31262559/ltcube_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31262559/Model_4FGL_J2143.5+1743_weekly_bin935.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/31262559/ft1_filtered_4FGL_J2143.5+1743_weekly_bin935.fits
Spacecraft file(s): /lscratch/kocevski/31262559/ft2_4FGL_J2143.5+1743_weekly_bin935.fits
Exposure map: /lscratch/kocevski/31262559/expmap_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits
Exposure cube: /lscratch/kocevski/31262559/ltcube_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31262559/Model_4FGL_J2143.5+1743_weekly_bin935.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) = 20763.467367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.375       1.0000          .0000       .10000E+07
     2 'Prefactor '    .85805E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .33231E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.4813       1.0000          .0000       .10000E+07
     5 'norm      '    .88660       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.2008       1.0000          .0000       .10000E+07
     7 'Prefactor '    36.240       1.0000          .0000       .10000E+07
     8 'norm      '    .74337       1.0000          .0000       .10000E+07
     9 'norm      '    1.1016       1.0000          .0000       .10000E+07
    10 'norm      '    12.430       1.0000          .0000       .10000E+07
    11 'Prefactor '    14.044       1.0000          .0000       .10000E+07
    12 'Prefactor '    11.991       1.0000          .0000       .10000E+07
    13 'norm      '    .80874       1.0000          .0000       .10000E+07
    14 'Prefactor '    7.3081       1.0000          .0000       .10000E+07
    15 'norm      '    2.4658       1.0000          .0000       .10000E+07
    16 'Prefactor '    .14705E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    7.7960       1.0000          .0000       .10000E+07
    18 'Normalizat'    .90696       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90162       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=   20763.38     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     1152 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.424        2.5017        .69601E-08    .24119E-01
   2  Prefactor     .17819E-07    91.500       -.15467E-06** at limit **
   3  Prefactor     .83267E-09    64.838       -.15154E-05** at limit **
   4  Prefactor     2.3514        9.1654       -.19623E-06   -.78623E-03
   5  norm          .88810        1.1516        .55326E-07   -.77315E-03
   6  Prefactor     1.2018        1.9439       -.18236E-07    .58469E-04
   7  Prefactor     37.295        34.835        .13866E-06   -.48234E-03
   8  norm          .74054        1.2941       -.30908E-07    .34300E-03
   9  norm          1.0926        1.3566        .32066E-07   -.16088E-03
  10  norm          12.715        14.175       -.13227E-06    .25466E-02
  11  Prefactor     14.016        3.5945       -.35246E-07   -.58496E-02
  12  Prefactor     11.998        1.7349       -.14370E-07   -.44382E-02
  13  norm          .80876        .48675        .38474E-08   -.24088E-03
  14  Prefactor     7.3334        7.5501       -.75196E-07    .22565E-03
  15  norm          2.4656        2.0359        .11189E-07   -.14884E-03
  16  Prefactor      .0000        1.4904        .82197E-07** at limit **
  17  Prefactor     7.7886        5.9160        .83117E-07   -.11529E-03
  18  Normalizat    .90662        .15656       -.59330E-06    .39017E-05
  19  Prefactor     .90166        .67417E-01    .41225E-06   -.63415E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4244
  Prefactor  = 1.78191e-08
  Prefactor  = 8.32667e-10
  Prefactor  = 2.35144
  norm       = 0.8881
  Prefactor  = 1.20175
  Prefactor  = 37.295
  norm       = 0.74054
  norm       = 1.09258
  norm       = 12.7149
  Prefactor  = 14.0162
  Prefactor  = 11.9985
  norm       = 0.808764
  Prefactor  = 7.33341
  norm       = 2.46565
  Prefactor  = 0
  Prefactor  = 7.78862
  Normalizat = 0.906619
  Prefactor  = 0.901661
 **********
 **   18 **HESSE 
 **********

 FCN=   20763.38     FROM HESSE     STATUS=OK           330 CALLS     1482 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.424        12.367        .19116E-03   -1.5603    
   2  Prefactor     .17819E-07    13.507        .19349E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .83267E-09    2.4622        .13167E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3514        9.2605        .64874E-03   -1.5677    
   5  norm          .88810        1.1574        .46691E-03   -1.5689    
   6  Prefactor     1.2018        1.9892        .10354E-02   -1.5686    
   7  Prefactor     37.295        34.878        .16613E-03   -1.5586    
   8  norm          .74054        1.3469        .57255E-03   -1.5691    
   9  norm          1.0926        1.4104        .11310E-02   -1.5687    
  10  norm          12.715        14.790        .28387E-03   -1.5637    
  11  Prefactor     14.016        13.320        .26702E-03   -1.5633    
  12  Prefactor     11.998        13.042        .28903E-03   -1.5639    
  13  norm          .80876        .48790        .52286E-04   -1.5690    
  14  Prefactor     7.3334        7.5577        .37078E-03   -1.5654    
  15  norm          2.4656        2.0400        .65096E-03   -1.5677    
  16  Prefactor      .0000        1.4913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.7886        5.9163        .35889E-03   -1.5652    
  18  Normalizat    .90662        .13388        .80207E-01   -.96228    
  19  Prefactor     .90166        .56756E-01    .45026E-01   -.96083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37089e-07
Minuit parameter uncertainties:
  1  12.3674
  2  0.000980976
  3  8.93982e-05
  4  9.26056
  5  1.15743
  6  1.98918
  7  34.8786
  8  1.34692
  9  1.4104
  10  14.7902
  11  13.3202
  12  13.0424
  13  0.487903
  14  7.55768
  15  2.04001
  16  2.41304e-06
  17  5.91627
  18  0.133926
  19  0.0567594
Done.

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

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  7.405e-01  1.347e+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.017e-01  5.676e-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:  9.066e-01  1.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 325.894 17.731
Photon Flux Upper Limit: 6.80025549595e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.97659461837e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31262559/likelihoodResults_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.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) = 20763.2918409
delta logL = 0.0926765077929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20763.2834004
delta logL = 0.101117009857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57091       1.0000          .0000       .10000E+07
     2 'alpha     '    3.2966       1.0000          .0000       5.0000    
     3 'Normalizat'    .89234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90619       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=   20763.28     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      213 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56876        21.701        .71875E-03    .50026E-01
   2  alpha         3.2993        3.1077        .44165        .13087E-03
   3  Normalizat    .89234        .33320E-01    .80790E-01    .31631E-04
   4  Prefactor     .90620        .15329E-01    .45084E-01   -.48459E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.568761
  alpha      = 3.29927
  Normalizat = 0.892337
  Prefactor  = 0.906202
 **********
 **   18 **HESSE 
 **********

 FCN=   20763.28     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      244 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56876        52.732        .14226E-04   -1.5693    
   2  alpha         3.2993        3.9214        .67284E-01    .32542    
   3  Normalizat    .89234        .15997        .35764E-03   -.96730    
   4  Prefactor     .90620        .83639E-01    .15897E-03   -.95925    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.74627e-05
Minuit parameter uncertainties:
  1  10.953
  2  17.9211
  3  0.160055
  4  0.0836509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20763.283399
delta logL = 0.101118414903

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  5.688e-01  1.095e+01  0.000e+00  1.000e+06 ( 1.000e-11)
280        alpha:  3.299e+00  1.792e+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.062e-01  8.365e-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.923e-01  1.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
Ra Dec: 325.894 17.731

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/31262559/cmap_HighResolution_804470401_805075201_4FGL_J2143.5+1743_weekly_bin935.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-05', job_status='DONE', photon_flux_upper_limit='6.80e-08', time_completed='2026-07-10 16:06:02.020048', job_id='31262559', GAL2='0.91', fit_tolerance='1e-08', EG2='0.89', EG='0.91', time_epoch_completed='1783724762.02', return_code2='102', ts='0.38', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.01e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='935' AND source_name='4FGL J2143.5+1743' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul 10 16:06:02 PDT 2026

