/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 = 17387 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J2140.5-6731_weekly_bin943 RA = 325.138, Dec = -67.5192 tmin = 809308801, tmax = 809913601 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='36661675', job_status='RUN', time_executed='2026-09-01 17:13:59.704664', time_epoch_executed='1788308039.7' WHERE source_name='4FGL J2140.5-6731' and cadence='weekly' and bin_id='943' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/36661675 Creating custom pfile directory: /lscratch/kocevski/36661675/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=809308801.0 && nMetStart<809913601.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=809308801.0 && nMetStart<809913601.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/36661675/ft1_4FGL_J2140.5-6731_weekly_bin943.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=809308801.0 && nMetStart<809913601.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/36661675/ft2_4FGL_J2140.5-6731_weekly_bin943.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/36661675/ft1_4FGL_J2140.5-6731_weekly_bin943.fits outfile=/lscratch/kocevski/36661675/ft1_filteredMKT_4FGL_J2140.5-6731_weekly_bin943.fits ra=325.138 dec=-67.5192 rad=12.0 tmin=809308801.0 tmax=809913601.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 7.00 user 6.52 sys 0.29 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36661675/ft2_4FGL_J2140.5-6731_weekly_bin943.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/36661675/ft2_4FGL_J2140.5-6731_weekly_bin943.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/36661675/ft1_filteredMKT_4FGL_J2140.5-6731_weekly_bin943.fits evtable="EVENTS" outfile="/lscratch/kocevski/36661675/ft1_filtered_4FGL_J2140.5-6731_weekly_bin943.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.46 user 0.21 sys 0.12 Number of photons that the gtmktime cut: 1510 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/36661675/ft1_filtered_4FGL_J2140.5-6731_weekly_bin943.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36661675/ft2_4FGL_J2140.5-6731_weekly_bin943.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36661675/ltcube_809308801_809913601_4FGL_J2140.5-6731_weekly_bin943.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/36661675/ft2_4FGL_J2140.5-6731_weekly_bin943.fits .....................! real 18.47 user 17.95 sys 0.22 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/36661675/ft1_filtered_4FGL_J2140.5-6731_weekly_bin943.fits evtable="EVENTS" scfile=/lscratch/kocevski/36661675/ft2_4FGL_J2140.5-6731_weekly_bin943.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36661675/ltcube_809308801_809913601_4FGL_J2140.5-6731_weekly_bin943.fits outfile=/lscratch/kocevski/36661675/expmap_809308801_809913601_4FGL_J2140.5-6731_weekly_bin943.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/36661675/ltcube_809308801_809913601_4FGL_J2140.5-6731_weekly_bin943.fits .....................! real 71.57 user 66.55 sys 4.25 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 SMC-Galaxy in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/SMC-Galaxy.fits is the correct path to the extended template. Added 173 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 J2140.5-6731 @ 325.138 -67.5192 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/36661675/ft1_filtered_4FGL_J2140.5-6731_weekly_bin943.fits scfile=/lscratch/kocevski/36661675/ft2_4FGL_J2140.5-6731_weekly_bin943.fits outfile=/lscratch/kocevski/36661675/cmap_809308801_809913601_4FGL_J2140.5-6731_weekly_bin943.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.138 yref=-67.5192 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.51 user 0.25 sys 0.13 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/36661675/ft1_filtered_4FGL_J2140.5-6731_weekly_bin943.fits scfile=/lscratch/kocevski/36661675/ft2_4FGL_J2140.5-6731_weekly_bin943.fits outfile=/lscratch/kocevski/36661675/cmap_HighResolution_809308801_809913601_4FGL_J2140.5-6731_weekly_bin943.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.138 yref=-67.5192 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.51 user 0.25 sys 0.14 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/36661675/ft1_filtered_4FGL_J2140.5-6731_weekly_bin943.fits evtable="EVENTS" scfile=/lscratch/kocevski/36661675/ft2_4FGL_J2140.5-6731_weekly__bin943.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36661189/Model_4FGL_J2140.5-6731_weekly_bin943.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). adding source EG_v02 adding source GAL_V02 adding source SMC-Galaxy Working on... /lscratch/kocevski/36661189/ft1_filtered_4FGL_J2140.5-6731_weekly_bin943.fits.....................! real 1699.94 user 1688.05 sys 1.03 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/36661189/ft1_filtered_4FGL_J2140.5-6731_weekly_bin943.fits', '/lscratch/kocevski/36661189/ft2_4FGL_J2140.5-6731_weekly_bin943.fits', expMap='/lscratch/kocevski/36661189/expmap_809308801_809913601_4FGL_J2140.5-6731_weekly_bin943.fits', expCube='/lscratch/kocevski/36661189/ltcube_809308801_809913601_4FGL_J2140.5-6731_weekly_bin943.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36661189/Model_4FGL_J2140.5-6731_weekly_bin943.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2140.5-6731' 4FGL J2140.5-6731 Spectrum: LogParabola 390 norm: 1.635e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-12) 391 alpha: 2.653e+00 0.000e+00 0.000e+00 5.000e+00 ( 1.000e+00) fixed 392 beta: 9.977e-01 0.000e+00 -5.000e+00 1.000e+01 ( 1.000e+00) fixed 393 Eb: 5.657e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/36661189/ft1_filtered_4FGL_J2140.5-6731_weekly_bin943.fits Spacecraft file(s): /lscratch/kocevski/36661189/ft2_4FGL_J2140.5-6731_weekly_bin943.fits Exposure map: /lscratch/kocevski/36661189/expmap_809308801_809913601_4FGL_J2140.5-6731_weekly_bin943.fits Exposure cube: /lscratch/kocevski/36661189/ltcube_809308801_809913601_4FGL_J2140.5-6731_weekly_bin943.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/36661189/Model_4FGL_J2140.5-6731_weekly_bin943.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) = 15940.344277 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 15940.2922679 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'norm ' 49.771 1.0000 .0000 .10000E+07 2 'Prefactor ' 8.8063 1.0000 .0000 .10000E+07 3 'norm ' .53015E-02 1.0000 .0000 .10000E+07 4 'norm ' .81310 1.0000 .0000 .10000E+07 5 'norm ' .23925E-07 1.0000 .0000 .10000E+07 6 'Prefactor ' 13.980 1.0000 .0000 .10000E+07 7 'norm ' .29310E-07 1.0000 .0000 .10000E+07 8 'Prefactor ' .18070E-01 1.0000 .0000 .10000E+07 9 'Prefactor ' .30359E-06 1.0000 .0000 .10000E+07 10 'Normalizat' 1.4604 1.0000 .10000E-01 10.000 11 'Prefactor ' .88442 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5780E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 15940.29 FROM MIGRAD STATUS=CONVERGED 147 CALLS 648 TOTAL EDM= .63E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 5.3% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 norm 46.311 40.418 -.10521E-05 -.12673E-02 2 Prefactor 8.4667 10.930 -.33460E-06 -.42112E-03 3 norm .56188E-06 815.58 -.11806E-04** at limit ** 4 norm .74787 9.3217 -.60606E-06 -.68961E-03 5 norm .0000 .16951 .39389E-08** at limit ** 6 Prefactor 13.756 20.630 -.19394E-05 .82806E-03 7 norm .0000 4.4278 .14964E-06** at limit ** 8 Prefactor .51625E-08 24.834 .16696E-05** at limit ** 9 Prefactor .0000 1.2426 -.38159E-07** at limit ** 10 Normalizat 1.4598 .15662 .29989E-05 .37264E-03 11 Prefactor .88565 .92812E-01 .46243E-05 .46238E-03 ERR DEF= .500 Final values: norm = 46.3113 Prefactor = 8.46666 norm = 5.61884e-07 norm = 0.747866 norm = 0 Prefactor = 13.7563 norm = 0 Prefactor = 5.16254e-09 Prefactor = 0 Normalizat = 1.45983 Prefactor = 0.885655 ********** ** 18 **HESSE ********** FCN= 15940.29 FROM HESSE STATUS=OK 150 CALLS 798 TOTAL EDM= .20E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 norm 46.311 41.015 .14176E-03 -1.5572 2 Prefactor 8.4667 11.054 .33753E-03 -1.5650 3 norm .56188E-06 .66851 .42118E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 norm .74787 10.079 .51964E-03 -1.5691 5 norm .0000 .16632 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 6 Prefactor 13.756 21.695 .26762E-03 -1.5634 7 norm .0000 .48907 .29105E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 Prefactor .51625E-08 2.6598 .11425E-01 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 9 Prefactor .0000 1.2645 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Normalizat 1.4598 .13245 .61557E-01 -.78913 11 Prefactor .88565 .78340E-01 .44806E-01 -.96644 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 2.0335e-07 Minuit parameter uncertainties: 1 41.0149 2 11.0545 3 0.00122578 4 5.4909 5 5.62578e-07 6 21.695 7 3.54424e-06 8 0.000234346 9 4.77657e-06 10 0.132477 11 0.0783495 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 15940.2879236 Extracting fit parameters... 4FGL J2140.5-6731 Spectrum: LogParabola 390 norm: 7.479e-01 5.491e+00 0.000e+00 1.000e+06 ( 1.000e-12) 391 alpha: 2.653e+00 0.000e+00 0.000e+00 5.000e+00 ( 1.000e+00) fixed 392 beta: 9.977e-01 0.000e+00 -5.000e+00 1.000e+01 ( 1.000e+00) fixed 393 Eb: 5.657e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 570 Prefactor: 8.857e-01 7.835e-02 0.000e+00 1.000e+01 ( 1.000e+00) 571 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 572 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 569 Normalization: 1.460e+00 1.325e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): 0.02 Ra Dec: 325.138 -67.519 Photon Flux Upper Limit: 2.86655775165e-08 ph cm-2 s-1 Energy Flux Upper Limit: 9.88236365532e-06 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/36661189/likelihoodResults_809308801_809913601_4FGL_J2140.5-6731_weekly_bin943.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) = 15940.2513902 delta logL = 0.0365334395919 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 0 logL (Free Index) = 15940.2513736 delta logL = 0.0365500355874 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'norm ' 1.7573 1.0000 .0000 .10000E+07 2 'alpha ' 1.6849 1.0000 .0000 5.0000 3 'Normalizat' 1.4609 1.0000 .10000E-01 10.000 4 'Prefactor ' .88458 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5780E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT. MIGRAD MINIMIZATION HAS CONVERGED. FCN= 15940.25 FROM MIGRAD STATUS=CONVERGED 69 CALLS 255 TOTAL EDM= .10E-05 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 norm 1.7405 12.122 .0000 .18238 2 alpha 1.6820 3.1132 .0000 -.11665E-03 3 Normalizat 1.4608 .13162 .0000 .12912E-04 4 Prefactor .88463 .77279E-01 .0000 .18832E-04 ERR DEF= .500 Final values: norm = 1.74055 alpha = 1.68197 Normalizat = 1.46083 Prefactor = 0.884626 ********** ** 18 **HESSE ********** FCN= 15940.25 FROM HESSE STATUS=OK 31 CALLS 286 TOTAL EDM= .11E-08 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 norm 1.7405 6.0425 .15806E-03 -1.5682 2 alpha 1.6820 3.3410 .74943E-01 -.33335 3 Normalizat 1.4608 .15640 .27217E-03 -.78885 4 Prefactor .88463 .91692E-01 .19748E-03 -.96680 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 1.08667e-09 Minuit parameter uncertainties: 1 6.0425 2 2.91466 3 0.156456 4 0.0917076 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) = 15940.2513694 delta logL = 0.0365542687268 Extracting fit parameters... 4FGL J2140.5-6731 Spectrum: LogParabola 390 norm: 1.741e+00 6.043e+00 0.000e+00 1.000e+06 ( 1.000e-12) 391 alpha: 1.682e+00 2.915e+00 0.000e+00 5.000e+00 ( 1.000e+00) 392 beta: 9.977e-01 0.000e+00 -5.000e+00 1.000e+01 ( 1.000e+00) fixed 393 Eb: 5.657e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 570 Prefactor: 8.846e-01 9.171e-02 0.000e+00 1.000e+01 ( 1.000e+00) 571 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 572 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 569 Normalization: 1.461e+00 1.565e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): 0.02 Ra Dec: 325.138 -67.519 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/36661189/cmap_HighResolution_809308801_809913601_4FGL_J2140.5-6731_weekly_bin943.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.88e-06', job_status='DONE', photon_flux_upper_limit='2.87e-08', time_completed='2026-09-01 17:40:25.331772', job_id='36661189', GAL2='0.88', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1788309625.33', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.66e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='943' AND source_name='4FGL J2140.5-6731' AND cadence='weekly'; Database successfully updated. Analysis Complete. Tue Sep 1 17:40:25 PDT 2026 bin943.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36661675/Model_4FGL_J2140.5-6731_weekly_bin943.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). adding source EG_v02 adding source GAL_V02 adding source SMC-Galaxy Working on... /lscratch/kocevski/36661675/ft1_filtered_4FGL_J2140.5-6731_weekly_bin943.fits.....................! real 1619.96 user 1609.12 sys 1.27 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/36661675/ft1_filtered_4FGL_J2140.5-6731_weekly_bin943.fits', '/lscratch/kocevski/36661675/ft2_4FGL_J2140.5-6731_weekly_bin943.fits', expMap='/lscratch/kocevski/36661675/expmap_809308801_809913601_4FGL_J2140.5-6731_weekly_bin943.fits', expCube='/lscratch/kocevski/36661675/ltcube_809308801_809913601_4FGL_J2140.5-6731_weekly_bin943.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36661675/Model_4FGL_J2140.5-6731_weekly_bin943.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2140.5-6731' 4FGL J2140.5-6731 Spectrum: LogParabola 390 norm: 1.635e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-12) 391 alpha: 2.653e+00 0.000e+00 0.000e+00 5.000e+00 ( 1.000e+00) fixed 392 beta: 9.977e-01 0.000e+00 -5.000e+00 1.000e+01 ( 1.000e+00) fixed 393 Eb: 5.657e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/36661675/ft1_filtered_4FGL_J2140.5-6731_weekly_bin943.fits Spacecraft file(s): /lscratch/kocevski/36661675/ft2_4FGL_J2140.5-6731_weekly_bin943.fits Exposure map: /lscratch/kocevski/36661675/expmap_809308801_809913601_4FGL_J2140.5-6731_weekly_bin943.fits Exposure cube: /lscratch/kocevski/36661675/ltcube_809308801_809913601_4FGL_J2140.5-6731_weekly_bin943.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/36661675/Model_4FGL_J2140.5-6731_weekly_bin943.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) = 15940.344277 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 15940.2922679 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'norm ' 49.771 1.0000 .0000 .10000E+07 2 'Prefactor ' 8.8063 1.0000 .0000 .10000E+07 3 'norm ' .53015E-02 1.0000 .0000 .10000E+07 4 'norm ' .81310 1.0000 .0000 .10000E+07 5 'norm ' .23925E-07 1.0000 .0000 .10000E+07 6 'Prefactor ' 13.980 1.0000 .0000 .10000E+07 7 'norm ' .29310E-07 1.0000 .0000 .10000E+07 8 'Prefactor ' .18070E-01 1.0000 .0000 .10000E+07 9 'Prefactor ' .30359E-06 1.0000 .0000 .10000E+07 10 'Normalizat' 1.4604 1.0000 .10000E-01 10.000 11 'Prefactor ' .88442 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5780E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 15940.29 FROM MIGRAD STATUS=CONVERGED 147 CALLS 648 TOTAL EDM= .63E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 5.3% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 norm 46.311 40.418 -.10521E-05 -.12673E-02 2 Prefactor 8.4667 10.930 -.33460E-06 -.42112E-03 3 norm .56188E-06 815.58 -.11806E-04** at limit ** 4 norm .74787 9.3217 -.60606E-06 -.68961E-03 5 norm .0000 .16951 .39389E-08** at limit ** 6 Prefactor 13.756 20.630 -.19394E-05 .82806E-03 7 norm .0000 4.4278 .14964E-06** at limit ** 8 Prefactor .51625E-08 24.834 .16696E-05** at limit ** 9 Prefactor .0000 1.2426 -.38159E-07** at limit ** 10 Normalizat 1.4598 .15662 .29989E-05 .37264E-03 11 Prefactor .88565 .92812E-01 .46243E-05 .46238E-03 ERR DEF= .500 Final values: norm = 46.3113 Prefactor = 8.46666 norm = 5.61884e-07 norm = 0.747866 norm = 0 Prefactor = 13.7563 norm = 0 Prefactor = 5.16254e-09 Prefactor = 0 Normalizat = 1.45983 Prefactor = 0.885655 ********** ** 18 **HESSE ********** FCN= 15940.29 FROM HESSE STATUS=OK 150 CALLS 798 TOTAL EDM= .20E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 norm 46.311 41.015 .14176E-03 -1.5572 2 Prefactor 8.4667 11.054 .33753E-03 -1.5650 3 norm .56188E-06 .66851 .42118E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 norm .74787 10.079 .51964E-03 -1.5691 5 norm .0000 .16632 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 6 Prefactor 13.756 21.695 .26762E-03 -1.5634 7 norm .0000 .48907 .29105E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 Prefactor .51625E-08 2.6598 .11425E-01 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 9 Prefactor .0000 1.2645 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Normalizat 1.4598 .13245 .61557E-01 -.78913 11 Prefactor .88565 .78340E-01 .44806E-01 -.96644 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 2.0335e-07 Minuit parameter uncertainties: 1 41.0149 2 11.0545 3 0.00122578 4 5.4909 5 5.62578e-07 6 21.695 7 3.54424e-06 8 0.000234346 9 4.77657e-06 10 0.132477 11 0.0783495 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 15940.2879236 Extracting fit parameters... 4FGL J2140.5-6731 Spectrum: LogParabola 390 norm: 7.479e-01 5.491e+00 0.000e+00 1.000e+06 ( 1.000e-12) 391 alpha: 2.653e+00 0.000e+00 0.000e+00 5.000e+00 ( 1.000e+00) fixed 392 beta: 9.977e-01 0.000e+00 -5.000e+00 1.000e+01 ( 1.000e+00) fixed 393 Eb: 5.657e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 570 Prefactor: 8.857e-01 7.835e-02 0.000e+00 1.000e+01 ( 1.000e+00) 571 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 572 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 569 Normalization: 1.460e+00 1.325e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): 0.02 Ra Dec: 325.138 -67.519 Photon Flux Upper Limit: 2.86655775165e-08 ph cm-2 s-1 Energy Flux Upper Limit: 9.88236365532e-06 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/36661675/likelihoodResults_809308801_809913601_4FGL_J2140.5-6731_weekly_bin943.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) = 15940.2513902 delta logL = 0.0365334395919 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 0 logL (Free Index) = 15940.2513736 delta logL = 0.0365500355874 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'norm ' 1.7573 1.0000 .0000 .10000E+07 2 'alpha ' 1.6849 1.0000 .0000 5.0000 3 'Normalizat' 1.4609 1.0000 .10000E-01 10.000 4 'Prefactor ' .88458 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5780E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT. MIGRAD MINIMIZATION HAS CONVERGED. FCN= 15940.25 FROM MIGRAD STATUS=CONVERGED 69 CALLS 255 TOTAL EDM= .10E-05 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 norm 1.7405 12.122 .0000 .18238 2 alpha 1.6820 3.1132 .0000 -.11665E-03 3 Normalizat 1.4608 .13162 .0000 .12912E-04 4 Prefactor .88463 .77279E-01 .0000 .18832E-04 ERR DEF= .500 Final values: norm = 1.74055 alpha = 1.68197 Normalizat = 1.46083 Prefactor = 0.884626 ********** ** 18 **HESSE ********** FCN= 15940.25 FROM HESSE STATUS=OK 31 CALLS 286 TOTAL EDM= .11E-08 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 norm 1.7405 6.0425 .15806E-03 -1.5682 2 alpha 1.6820 3.3410 .74943E-01 -.33335 3 Normalizat 1.4608 .15640 .27217E-03 -.78885 4 Prefactor .88463 .91692E-01 .19748E-03 -.96680 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 1.08667e-09 Minuit parameter uncertainties: 1 6.0425 2 2.91466 3 0.156456 4 0.0917076 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) = 15940.2513694 delta logL = 0.0365542687268 Extracting fit parameters... 4FGL J2140.5-6731 Spectrum: LogParabola 390 norm: 1.741e+00 6.043e+00 0.000e+00 1.000e+06 ( 1.000e-12) 391 alpha: 1.682e+00 2.915e+00 0.000e+00 5.000e+00 ( 1.000e+00) 392 beta: 9.977e-01 0.000e+00 -5.000e+00 1.000e+01 ( 1.000e+00) fixed 393 Eb: 5.657e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 570 Prefactor: 8.846e-01 9.171e-02 0.000e+00 1.000e+01 ( 1.000e+00) 571 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 572 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 569 Normalization: 1.461e+00 1.565e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): 0.02 Ra Dec: 325.138 -67.519 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/36661675/cmap_HighResolution_809308801_809913601_4FGL_J2140.5-6731_weekly_bin943.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.88e-06', job_status='DONE', photon_flux_upper_limit='2.87e-08', time_completed='2026-09-01 17:46:00.696300', job_id='36661675', GAL2='0.88', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1788309960.7', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.66e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='943' AND source_name='4FGL J2140.5-6731' AND cadence='weekly'; Database successfully updated. Analysis Complete. Tue Sep 1 17:46:00 PDT 2026