********** ** 18 **HESSE ********** FCN= 14064.46 FROM HESSE STATUS=OK 286 CALLS 1660 TOTAL EDM= .41E-05 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor 17.431 19.054 .24034E-03 -1.5624 2 Prefactor 14.036 2.2097 .26712E-03 -1.5633 3 norm .11102E-09 2.9499 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 norm 11.557 7.6702 .29307E-03 -1.5640 5 Prefactor 8.9319 113.01 .45023E-03 -1.5648 6 norm 7.1229 6.8476 .37555E-03 -1.5655 7 norm .66613E-09 9.1796 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm 2.0161 .89071 .72887E-03 -1.5680 9 Prefactor .0000 13.594 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .62396 8.1036 .66648E-03 -1.5692 11 norm .11102E-09 1.3086 .42118E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 12 Prefactor .53031 2.9503 .75685E-03 -1.5693 13 norm 7.2568 13.089 .37317E-03 -1.5654 14 Prefactor .0000 3.0309 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 15 Prefactor .0000 4.9242 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 16 Prefactor .11102E-09 27.572 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 17 Normalizat .92008 .16641 .84762E-01 -.95758 18 Prefactor .88090 .71180E-01 .44769E-01 -.96812 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 4.10717e-06 Minuit parameter uncertainties: 1 19.0536 2 2.20972 3 3.29873e-05 4 7.67017 5 63.5448 6 6.84765 7 0.000156997 8 0.890705 9 6.19746e-06 10 4.49728 11 2.10344e-05 12 2.50168 13 13.0894 14 4.95769e-06 15 1.42822e-05 16 0.000106817 17 0.166502 18 0.0711879 /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) A" outfile=/lscratch/kocevski/37399476/ltcube_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.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/37399476/ft2_4FGL_J2040.5-1705_weekly_bin944.fits .....................! real 20.33 user 19.53 sys 0.33 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/37399476/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37399476/ft2_4FGL_J2040.5-1705_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37399476/ltcube_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits outfile=/lscratch/kocevski/37399476/expmap_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.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/37399476/ltcube_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits .....................! real 74.83 user 68.64 sys 4.66 Generating the xml model: radLim = 0.001 maxRad = 12 normsOnly = True freeVariableSources = True Fixing all sources to their catalog values, except variable sources Creating file and adding sources from 4FGL Added 181 point sources and 0 extended sources Setting source of interest to: 4FGL J2040.5-1705 @ 310.136 -17.0901 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/37399476/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits scfile=/lscratch/kocevski/37399476/ft2_4FGL_J2040.5-1705_weekly_bin944.fits outfile=/lscratch/kocevski/37399476/cmap_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.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=310.136 yref=-17.0901 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.56 user 0.24 sys 0.12 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/37399476/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits scfile=/lscratch/kocevski/37399476/ft2_4FGL_J2040.5-1705_weekly_bin944.fits outfile=/lscratch/kocevski/37399476/cmap_HighResolution_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.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=310.136 yref=-17.0901 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.71 user 0.25 sys 0.15 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/37399476/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37399476/ft2_4FGL_J2040.5-1705_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37399476/Model_4FGL_J2040.5-1705_weekly_bin944.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 WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 14064.4647124 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 5.303e-01 2.502e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 8.809e-01 7.119e-02 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.201e-01 1.665e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): 0.05 Ra Dec: 310.136 -17.090 Photon Flux Upper Limit: 8.23864603482e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00642445380583 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/37399439/likelihoodResults_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.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) = 14063.948938 delta logL = 0.51577440041 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 0 logL (Free Index) = 14063.9381514 delta logL = 0.526561039071 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .72100 1.0000 .0000 .10000E+07 2 'Index ' 1.3387 1.0000 .0000 10.000 3 'Normalizat' .92653 1.0000 .10000E-01 10.000 4 'Prefactor ' .87851 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. FCN= 14063.94 FROM MIGRAD STATUS=CONVERGED 53 CALLS 219 TOTAL EDM= .39E-09 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .72151 1.0115 .59020E-03 .32787E-02 2 Index 1.3387 .44149 .31967 -.14886E-03 3 Normalizat .92652 .16265 .84478E-01 .51882E-04 4 Prefactor .87852 .69653E-01 .44731E-01 -.24478E-05 ERR DEF= .500 Final values: Prefactor = 0.721506 Index = 1.33874 Normalizat = 0.92652 Prefactor = 0.878515 ********** ** 18 **HESSE ********** FCN= 14063.94 FROM HESSE STATUS=OK 33 CALLS 252 TOTAL EDM= .22E-10 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .72151 1.3513 .13763E-04 -1.5691 2 Index 1.3387 .76926 .15032E-01 -.82162 3 Normalizat .92652 .19679 .37404E-03 -.95534 4 Prefactor .87852 .84466E-01 .16311E-03 -.96896 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 2.15328e-11 Minuit parameter uncertainties: 1 1.35132 2 0.775954 3 0.196942 4 0.0844783 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) = 14063.9381513 delta logL = 0.526561136494 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 7.215e-01 1.351e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 1.339e+00 7.760e-01 0.000e+00 1.000e+01 (-1.000e+00) 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 8.785e-01 8.448e-02 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.265e-01 1.969e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): 1.10 Ra Dec: 310.136 -17.090 Photon Index (Free Index): 1.34 +/- 0.78 Photon Flux (Free Index): 2.97e-09 +/- 5.31e-09 Energy Flux (Free Index): 1.61e-05 +/- 3.16e-05 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/37399439/cmap_HighResolution_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', comment='SUCCESS', energy_flux2='1.61e-05', dlogl='5.27e-01', photon_flux2='2.97e-09', job_status='DONE', time_completed='2026-09-08 16:43:17.587413', photon_index_error2='0.78', photon_index2='1.34', ts='0.05', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='8.24e-08', energy_flux_error2='3.16e-05', EG='0.92', time_epoch_completed='1788910997.59', return_code='0', job_id='37399439', GAL2='0.88', EG2='0.93', return_code2='0', photon_flux_error2='5.31e-09', ts2='1.10', photon_index='2.54' WHERE bin_id='944' AND source_name='4FGL J2040.5-1705' AND cadence='weekly'; Database successfully updated. Analysis Complete. Tue Sep 8 16:43:17 PDT 2026 number of points = 17404 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J2040.5-1705_weekly_bin944 RA = 310.136, Dec = -17.0901 tmin = 809913601, tmax = 810518401 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='37399632', job_status='RUN', time_executed='2026-09-08 16:42:49.430229', time_epoch_executed='1788910969.43' WHERE source_name='4FGL J2040.5-1705' and cadence='weekly' and bin_id='944' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/37399632 Creating custom pfile directory: /lscratch/kocevski/37399632/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=809913601.0 && nMetStart<810518401.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=809913601.0 && nMetStart<810518401.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/37399632/ft1_4FGL_J2040.5-1705_weekly_bin944.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=809913601.0 && nMetStart<810518401.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/37399632/ft2_4FGL_J2040.5-1705_weekly_bin944.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/37399632/ft1_4FGL_J2040.5-1705_weekly_bin944.fits outfile=/lscratch/kocevski/37399632/ft1_filteredMKT_4FGL_J2040.5-1705_weekly_bin944.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=809913601.0 tmax=810518401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). Done. real 4.75 user 4.16 sys 0.25 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37399632/ft2_4FGL_J2040.5-1705_weekly_bin944.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/37399632/ft2_4FGL_J2040.5-1705_weekly_bin944.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/37399632/ft1_filteredMKT_4FGL_J2040.5-1705_weekly_bin944.fits evtable="EVENTS" outfile="/lscratch/kocevski/37399632/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.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.81 user 0.22 sys 0.16 Number of photons that the gtmktime cut: 1255 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/37399632/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37399632/ft2_4FGL_J2040.5-1705_weekly_bin944.fits sctable="SC_DATsource GAL_V02 Working on... /lscratch/kocevski/37399458/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits.....................! real 49.40 user 47.93 sys 0.83 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/37399458/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits', '/lscratch/kocevski/37399458/ft2_4FGL_J2040.5-1705_weekly_bin944.fits', expMap='/lscratch/kocevski/37399458/expmap_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits', expCube='/lscratch/kocevski/37399458/ltcube_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37399458/Model_4FGL_J2040.5-1705_weekly_bin944.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2040.5-1705' 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 1.223e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/37399458/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits Spacecraft file(s): /lscratch/kocevski/37399458/ft2_4FGL_J2040.5-1705_weekly_bin944.fits Exposure map: /lscratch/kocevski/37399458/expmap_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits Exposure cube: /lscratch/kocevski/37399458/ltcube_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/37399458/Model_4FGL_J2040.5-1705_weekly_bin944.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) = 14064.5119047 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 14064.4670193 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' 17.326 1.0000 .0000 .10000E+07 2 'Prefactor ' 14.033 1.0000 .0000 .10000E+07 3 'norm ' .20168E-03 1.0000 .0000 .10000E+07 4 'norm ' 11.664 1.0000 .0000 .10000E+07 5 'Prefactor ' 4.9839 1.0000 .0000 .10000E+07 6 'norm ' 7.1258 1.0000 .0000 .10000E+07 7 'norm ' .78126E-05 1.0000 .0000 .10000E+07 8 'norm ' 2.0152 1.0000 .0000 .10000E+07 9 'Prefactor ' .83467E-04 1.0000 .0000 .10000E+07 10 'Prefactor ' .62925 1.0000 .0000 .10000E+07 11 'norm ' .10383E-05 1.0000 .0000 .10000E+07 12 'Prefactor ' .53064 1.0000 .0000 .10000E+07 13 'norm ' 7.2161 1.0000 .0000 .10000E+07 14 'Prefactor ' .26063E-04 1.0000 .0000 .10000E+07 15 'Prefactor ' .25403E-03 1.0000 .0000 .10000E+07 16 'Prefactor ' .12207E-01 1.0000 .0000 .10000E+07 17 'Normalizat' .91942 1.0000 .10000E-01 10.000 18 'Prefactor ' .88148 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 14064.46 FROM MIGRAD STATUS=CONVERGED 151 CALLS 1374 TOTAL EDM= .31E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 1.4% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor 17.431 1.0489 -.12198E-07 -.10685E-01 2 Prefactor 14.036 2.1873 -.53270E-07 -.28028E-02 3 norm .11102E-09 2.9566 -.50052E-06** at limit ** 4 norm 11.557 7.6593 .27998E-06 -.10407E-02 5 Prefactor 8.9319 114.57 -.80228E-05 -.86962E-03 6 norm 7.1229 6.8487 -.14239E-07 -.79602E-03 7 norm .66613E-09 9.1825 -.71504E-06** at limit ** 8 norm 2.0161 .88739 -.37762E-07 -.60368E-03 9 Prefactor .0000 13.659 .84294E-06** at limit ** 10 Prefactor .62396 8.1046 -.23914E-05 .10665E-02 11 norm .11102E-09 10.708 .65796E-06** at limit ** 12 Prefactor .53031 2.9415 -.15569E-06 .33138E-03 13 norm 7.2568 1.0900 -.57388E-07 -.16464E-01 14 Prefactor .0000 3.0568 .23491E-06** at limit ** 15 Prefactor .0000 4.9017 .43515E-06** at limit ** 16 Prefactor .11102E-09 28.153 -.11047E-05** at limit ** 17 Normalizat .92008 .19991 .16931E-06 -.12517E-04 18 Prefactor .88090 .86551E-01 .13342E-05 -.99106E-04 ERR DEF= .500 Final values: Prefactor = 17.4306 Prefactor = 14.0357 norm = 1.11022e-10 norm = 11.5574 Prefactor = 8.93192 norm = 7.12294 norm = 6.66134e-10 norm = 2.01607 Prefactor = 0 Prefactor = 0.623965 norm = 1.11022e-10 Prefactor = 0.530311 norm = 7.25677 Prefactor = 0 Prefactor = 0 Prefactor = 1.11022e-10 Normalizat = 0.920079 Prefactor = 0.880904 source GAL_V02 Working on... /lscratch/kocevski/37399482/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits.....................! real 40.96 user 39.49 sys 0.94 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/37399482/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits', '/lscratch/kocevski/37399482/ft2_4FGL_J2040.5-1705_weekly_bin944.fits', expMap='/lscratch/kocevski/37399482/expmap_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits', expCube='/lscratch/kocevski/37399482/ltcube_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37399482/Model_4FGL_J2040.5-1705_weekly_bin944.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2040.5-1705' 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 1.223e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/37399482/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits Spacecraft file(s): /lscratch/kocevski/37399482/ft2_4FGL_J2040.5-1705_weekly_bin944.fits Exposure map: /lscratch/kocevski/37399482/expmap_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits Exposure cube: /lscratch/kocevski/37399482/ltcube_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/37399482/Model_4FGL_J2040.5-1705_weekly_bin944.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) = 14064.5119047 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 14064.4670193 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' 17.326 1.0000 .0000 .10000E+07 2 'Prefactor ' 14.033 1.0000 .0000 .10000E+07 3 'norm ' .20168E-03 1.0000 .0000 .10000E+07 4 'norm ' 11.664 1.0000 .0000 .10000E+07 5 'Prefactor ' 4.9839 1.0000 .0000 .10000E+07 6 'norm ' 7.1258 1.0000 .0000 .10000E+07 7 'norm ' .78126E-05 1.0000 .0000 .10000E+07 8 'norm ' 2.0152 1.0000 .0000 .10000E+07 9 'Prefactor ' .83467E-04 1.0000 .0000 .10000E+07 10 'Prefactor ' .62925 1.0000 .0000 .10000E+07 11 'norm ' .10383E-05 1.0000 .0000 .10000E+07 12 'Prefactor ' .53064 1.0000 .0000 .10000E+07 13 'norm ' 7.2161 1.0000 .0000 .10000E+07 14 'Prefactor ' .26063E-04 1.0000 .0000 .10000E+07 15 'Prefactor ' .25403E-03 1.0000 .0000 .10000E+07 16 'Prefactor ' .12207E-01 1.0000 .0000 .10000E+07 17 'Normalizat' .91942 1.0000 .10000E-01 10.000 18 'Prefactor ' .88148 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 14064.46 FROM MIGRAD STATUS=CONVERGED 151 CALLS 1374 TOTAL EDM= .31E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 1.4% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor 17.431 1.0489 -.12198E-07 -.10685E-01 2 Prefactor 14.036 2.1873 -.53270E-07 -.28028E-02 3 norm .11102E-09 2.9566 -.50052E-06** at limit ** 4 norm 11.557 7.6593 .27998E-06 -.10407E-02 5 Prefactor 8.9319 114.57 -.80228E-05 -.86962E-03 6 norm 7.1229 6.8487 -.14239E-07 -.79602E-03 7 norm .66613E-09 9.1825 -.71504E-06** at limit ** 8 norm 2.0161 .88739 -.37762E-07 -.60368E-03 9 Prefactor .0000 13.659 .84294E-06** at limit ** 10 Prefactor .62396 8.1046 -.23914E-05 .10665E-02 11 norm .11102E-09 10.708 .65796E-06** at limit ** 12 Prefactor .53031 2.9415 -.15569E-06 .33138E-03 13 norm 7.2568 1.0900 -.57388E-07 -.16464E-01 14 Prefactor .0000 3.0568 .23491E-06** at limit ** 15 Prefactor .0000 4.9017 .43515E-06** at limit ** 16 Prefactor .11102E-09 28.153 -.11047E-05** at limit ** 17 Normalizat .92008 .19991 .16931E-06 -.12517E-04 18 Prefactor .88090 .86551E-01 .13342E-05 -.99106E-04 ERR DEF= .500 Final values: Prefactor = 17.4306 Prefactor = 14.0357 norm = 1.11022e-10 norm = 11.5574 Prefactor = 8.93192 norm = 7.12294 norm = 6.66134e-10 norm = 2.01607 Prefactor = 0 Prefactor = 0.623965 norm = 1.11022e-10 Prefactor = 0.530311 norm = 7.25677 Prefactor = 0 Prefactor = 0 Prefactor = 1.11022e-10 Normalizat = 0.920079 Prefactor = 0.880904 ********** ** 18 **HESSE ********** FCN= 14064.46 FROM HESSE STATUS=OK 286 CALLS 1660 TOTAL EDM= .41E-05 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor 17.431 19.054 .24034E-03 -1.5624 2 Prefactor 14.036 2.2097 .26712E-03 -1.5633 3 norm .11102E-09 2.9499 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 norm 11.557 7.6702 .29307E-03 -1.5640 5 Prefactor 8.9319 113.01 .45023E-03 -1.5648 6 norm 7.1229 6.8476 .37555E-03 -1.5655 7 norm .66613E-09 9.1796 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm 2.0161 .89071 .72887E-03 -1.5680 9 Prefactor .0000 13.594 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .62396 8.1036 .66648E-03 -1.5692 11 norm .11102E-09 1.3086 .42118E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 12 Prefactor .53031 2.9503 .75685E-03 -1.5693 13 norm 7.2568 13.089 .37317E-03 -1.5654 14 Prefactor .0000 3.0309 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 15 Prefactor .0000 4.9242 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 16 Prefactor .11102E-09 27.572 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 17 Normalizat .92008 .16641 .84762E-01 -.95758 18 Prefactor .88090 .71180E-01 .44769E-01 -.96812 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 4.10717e-06 Minuit parameter uncertainties: 1 19.0536 2 2.20972 3 3.29873e-05 4 7.67017 5 63.5448 6 6.84765 7 0.000156997 8 0.890705 9 6.19746e-06 10 4.49728 11 2.10344e-05 12 2.50168 13 13.0894 14 4.95769e-06 15 1.42822e-05 16 0.000106817 17 0.166502 18 0.0711879 ********** ** 18 **HESSE ********** FCN= 14064.46 FROM HESSE STATUS=OK 286 CALLS 1660 TOTAL EDM= .41E-05 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor 17.431 19.054 .24034E-03 -1.5624 2 Prefactor 14.036 2.2097 .26712E-03 -1.5633 3 norm .11102E-09 2.9499 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 norm 11.557 7.6702 .29307E-03 -1.5640 5 Prefactor 8.9319 113.01 .45023E-03 -1.5648 6 norm 7.1229 6.8476 .37555E-03 -1.5655 7 norm .66613E-09 9.1796 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm 2.0161 .89071 .72887E-03 -1.5680 9 Prefactor .0000 13.594 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .62396 8.1036 .66648E-03 -1.5692 11 norm .11102E-09 1.3086 .42118E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 12 Prefactor .53031 2.9503 .75685E-03 -1.5693 13 norm 7.2568 13.089 .37317E-03 -1.5654 14 Prefactor .0000 3.0309 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 15 Prefactor .0000 4.9242 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 16 Prefactor .11102E-09 27.572 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 17 Normalizat .92008 .16641 .84762E-01 -.95758 18 Prefactor .88090 .71180E-01 .44769E-01 -.96812 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 4.10717e-06 Minuit parameter uncertainties: 1 19.0536 2 2.20972 3 3.29873e-05 4 7.67017 5 63.5448 6 6.84765 7 0.000156997 8 0.890705 9 6.19746e-06 10 4.49728 11 2.10344e-05 12 2.50168 13 13.0894 14 4.95769e-06 15 1.42822e-05 16 0.000106817 17 0.166502 18 0.0711879 source GAL_V02 Working on... /lscratch/kocevski/37399476/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits.....................! real 48.94 user 47.21 sys 0.82 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/37399476/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits', '/lscratch/kocevski/37399476/ft2_4FGL_J2040.5-1705_weekly_bin944.fits', expMap='/lscratch/kocevski/37399476/expmap_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits', expCube='/lscratch/kocevski/37399476/ltcube_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37399476/Model_4FGL_J2040.5-1705_weekly_bin944.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2040.5-1705' 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 1.223e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/37399476/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits Spacecraft file(s): /lscratch/kocevski/37399476/ft2_4FGL_J2040.5-1705_weekly_bin944.fits Exposure map: /lscratch/kocevski/37399476/expmap_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits Exposure cube: /lscratch/kocevski/37399476/ltcube_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/37399476/Model_4FGL_J2040.5-1705_weekly_bin944.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) = 14064.5119047 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 14064.4670193 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' 17.326 1.0000 .0000 .10000E+07 2 'Prefactor ' 14.033 1.0000 .0000 .10000E+07 3 'norm ' .20168E-03 1.0000 .0000 .10000E+07 4 'norm ' 11.664 1.0000 .0000 .10000E+07 5 'Prefactor ' 4.9839 1.0000 .0000 .10000E+07 6 'norm ' 7.1258 1.0000 .0000 .10000E+07 7 'norm ' .78126E-05 1.0000 .0000 .10000E+07 8 'norm ' 2.0152 1.0000 .0000 .10000E+07 9 'Prefactor ' .83467E-04 1.0000 .0000 .10000E+07 10 'Prefactor ' .62925 1.0000 .0000 .10000E+07 11 'norm ' .10383E-05 1.0000 .0000 .10000E+07 12 'Prefactor ' .53064 1.0000 .0000 .10000E+07 13 'norm ' 7.2161 1.0000 .0000 .10000E+07 14 'Prefactor ' .26063E-04 1.0000 .0000 .10000E+07 15 'Prefactor ' .25403E-03 1.0000 .0000 .10000E+07 16 'Prefactor ' .12207E-01 1.0000 .0000 .10000E+07 17 'Normalizat' .91942 1.0000 .10000E-01 10.000 18 'Prefactor ' .88148 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 14064.46 FROM MIGRAD STATUS=CONVERGED 151 CALLS 1374 TOTAL EDM= .31E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 1.4% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor 17.431 1.0489 -.12198E-07 -.10685E-01 2 Prefactor 14.036 2.1873 -.53270E-07 -.28028E-02 3 norm .11102E-09 2.9566 -.50052E-06** at limit ** 4 norm 11.557 7.6593 .27998E-06 -.10407E-02 5 Prefactor 8.9319 114.57 -.80228E-05 -.86962E-03 6 norm 7.1229 6.8487 -.14239E-07 -.79602E-03 7 norm .66613E-09 9.1825 -.71504E-06** at limit ** 8 norm 2.0161 .88739 -.37762E-07 -.60368E-03 9 Prefactor .0000 13.659 .84294E-06** at limit ** 10 Prefactor .62396 8.1046 -.23914E-05 .10665E-02 11 norm .11102E-09 10.708 .65796E-06** at limit ** 12 Prefactor .53031 2.9415 -.15569E-06 .33138E-03 13 norm 7.2568 1.0900 -.57388E-07 -.16464E-01 14 Prefactor .0000 3.0568 .23491E-06** at limit ** 15 Prefactor .0000 4.9017 .43515E-06** at limit ** 16 Prefactor .11102E-09 28.153 -.11047E-05** at limit ** 17 Normalizat .92008 .19991 .16931E-06 -.12517E-04 18 Prefactor .88090 .86551E-01 .13342E-05 -.99106E-04 ERR DEF= .500 Final values: Prefactor = 17.4306 Prefactor = 14.0357 norm = 1.11022e-10 norm = 11.5574 Prefactor = 8.93192 norm = 7.12294 norm = 6.66134e-10 norm = 2.01607 Prefactor = 0 Prefactor = 0.623965 norm = 1.11022e-10 Prefactor = 0.530311 norm = 7.25677 Prefactor = 0 Prefactor = 0 Prefactor = 1.11022e-10 Normalizat = 0.920079 Prefactor = 0.880904 ********** ** 18 **HESSE ********** FCN= 14064.46 FROM HESSE STATUS=OK 286 CALLS 1660 TOTAL EDM= .41E-05 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor 17.431 19.054 .24034E-03 -1.5624 2 Prefactor 14.036 2.2097 .26712E-03 -1.5633 3 norm .11102E-09 2.9499 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 norm 11.557 7.6702 .29307E-03 -1.5640 5 Prefactor 8.9319 113.01 .45023E-03 -1.5648 6 norm 7.1229 6.8476 .37555E-03 -1.5655 7 norm .66613E-09 9.1796 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm 2.0161 .89071 .72887E-03 -1.5680 9 Prefactor .0000 13.594 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .62396 8.1036 .66648E-03 -1.5692 11 norm .11102E-09 1.3086 .42118E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 12 Prefactor .53031 2.9503 .75685E-03 -1.5693 13 norm 7.2568 13.089 .37317E-03 -1.5654 14 Prefactor .0000 3.0309 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 15 Prefactor .0000 4.9242 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 16 Prefactor .11102E-09 27.572 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 17 Normalizat .92008 .16641 .84762E-01 -.95758 18 Prefactor .88090 .71180E-01 .44769E-01 -.96812 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 4.10717e-06 Minuit parameter uncertainties: 1 19.0536 2 2.20972 3 3.29873e-05 4 7.67017 5 63.5448 6 6.84765 7 0.000156997 8 0.890705 9 6.19746e-06 10 4.49728 11 2.10344e-05 12 2.50168 13 13.0894 14 4.95769e-06 15 1.42822e-05 16 0.000106817 17 0.166502 18 0.0711879 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 14064.4647124 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 5.303e-01 2.502e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 8.809e-01 7.119e-02 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.201e-01 1.665e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): 0.05 Ra Dec: 310.136 -17.090 Photon Flux Upper Limit: 8.23864603482e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00642445380583 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/37399458/likelihoodResults_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.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) = 14063.948938 delta logL = 0.51577440041 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 0 logL (Free Index) = 14063.9381514 delta logL = 0.526561039071 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .72100 1.0000 .0000 .10000E+07 2 'Index ' 1.3387 1.0000 .0000 10.000 3 'Normalizat' .92653 1.0000 .10000E-01 10.000 4 'Prefactor ' .87851 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. FCN= 14063.94 FROM MIGRAD STATUS=CONVERGED 53 CALLS 219 TOTAL EDM= .39E-09 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .72151 1.0115 .59020E-03 .32787E-02 2 Index 1.3387 .44149 .31967 -.14886E-03 3 Normalizat .92652 .16265 .84478E-01 .51882E-04 4 Prefactor .87852 .69653E-01 .44731E-01 -.24478E-05 ERR DEF= .500 Final values: Prefactor = 0.721506 Index = 1.33874 Normalizat = 0.92652 Prefactor = 0.878515 ********** ** 18 **HESSE ********** FCN= 14063.94 FROM HESSE STATUS=OK 33 CALLS 252 TOTAL EDM= .22E-10 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .72151 1.3513 .13763E-04 -1.5691 2 Index 1.3387 .76926 .15032E-01 -.82162 3 Normalizat .92652 .19679 .37404E-03 -.95534 4 Prefactor .87852 .84466E-01 .16311E-03 -.96896 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 2.15328e-11 Minuit parameter uncertainties: 1 1.35132 2 0.775954 3 0.196942 4 0.0844783 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) = 14063.9381513 delta logL = 0.526561136494 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 7.215e-01 1.351e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 1.339e+00 7.760e-01 0.000e+00 1.000e+01 (-1.000e+00) 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 8.785e-01 8.448e-02 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.265e-01 1.969e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): 1.10 Ra Dec: 310.136 -17.090 Photon Index (Free Index): 1.34 +/- 0.78 Photon Flux (Free Index): 2.97e-09 +/- 5.31e-09 Energy Flux (Free Index): 1.61e-05 +/- 3.16e-05 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/37399458/cmap_HighResolution_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', comment='SUCCESS', energy_flux2='1.61e-05', dlogl='5.27e-01', photon_flux2='2.97e-09', job_status='DONE', time_completed='2026-09-08 16:45:24.850249', photon_index_error2='0.78', photon_index2='1.34', ts='0.05', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='8.24e-08', energy_flux_error2='3.16e-05', EG='0.92', time_epoch_completed='1788911124.85', return_code='0', job_id='37399458', GAL2='0.88', EG2='0.93', return_code2='0', photon_flux_error2='5.31e-09', ts2='1.10', photon_index='2.54' WHERE bin_id='944' AND source_name='4FGL J2040.5-1705' AND cadence='weekly'; Database successfully updated. Analysis Complete. Tue Sep 8 16:45:24 PDT 2026 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 14064.4647124 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 5.303e-01 2.502e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 8.809e-01 7.119e-02 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.201e-01 1.665e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): 0.05 Ra Dec: 310.136 -17.090 Photon Flux Upper Limit: 8.23864603482e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00642445380583 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/37399482/likelihoodResults_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.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) = 14063.948938 delta logL = 0.51577440041 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 0 logL (Free Index) = 14063.9381514 delta logL = 0.526561039071 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .72100 1.0000 .0000 .10000E+07 2 'Index ' 1.3387 1.0000 .0000 10.000 3 'Normalizat' .92653 1.0000 .10000E-01 10.000 4 'Prefactor ' .87851 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. FCN= 14063.94 FROM MIGRAD STATUS=CONVERGED 53 CALLS 219 TOTAL EDM= .39E-09 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .72151 1.0115 .59020E-03 .32787E-02 2 Index 1.3387 .44149 .31967 -.14886E-03 3 Normalizat .92652 .16265 .84478E-01 .51882E-04 4 Prefactor .87852 .69653E-01 .44731E-01 -.24478E-05 ERR DEF= .500 Final values: Prefactor = 0.721506 Index = 1.33874 Normalizat = 0.92652 Prefactor = 0.878515 ********** ** 18 **HESSE ********** FCN= 14063.94 FROM HESSE STATUS=OK 33 CALLS 252 TOTAL EDM= .22E-10 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .72151 1.3513 .13763E-04 -1.5691 2 Index 1.3387 .76926 .15032E-01 -.82162 3 Normalizat .92652 .19679 .37404E-03 -.95534 4 Prefactor .87852 .84466E-01 .16311E-03 -.96896 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 2.15328e-11 Minuit parameter uncertainties: 1 1.35132 2 0.775954 3 0.196942 4 0.0844783 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) = 14063.9381513 delta logL = 0.526561136494 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 7.215e-01 1.351e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 1.339e+00 7.760e-01 0.000e+00 1.000e+01 (-1.000e+00) 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 8.785e-01 8.448e-02 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.265e-01 1.969e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): 1.10 Ra Dec: 310.136 -17.090 Photon Index (Free Index): 1.34 +/- 0.78 Photon Flux (Free Index): 2.97e-09 +/- 5.31e-09 Energy Flux (Free Index): 1.61e-05 +/- 3.16e-05 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/37399482/cmap_HighResolution_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', comment='SUCCESS', energy_flux2='1.61e-05', dlogl='5.27e-01', photon_flux2='2.97e-09', job_status='DONE', time_completed='2026-09-08 16:45:33.948602', photon_index_error2='0.78', photon_index2='1.34', ts='0.05', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='8.24e-08', energy_flux_error2='3.16e-05', EG='0.92', time_epoch_completed='1788911133.95', return_code='0', job_id='37399482', GAL2='0.88', EG2='0.93', return_code2='0', photon_flux_error2='5.31e-09', ts2='1.10', photon_index='2.54' WHERE bin_id='944' AND source_name='4FGL J2040.5-1705' AND cadence='weekly'; Database successfully updated. Analysis Complete. Tue Sep 8 16:45:34 PDT 2026 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 14064.4647124 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 5.303e-01 2.502e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 8.809e-01 7.119e-02 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.201e-01 1.665e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): 0.05 Ra Dec: 310.136 -17.090 Photon Flux Upper Limit: 8.23864603482e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00642445380583 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/37399476/likelihoodResults_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.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) = 14063.948938 delta logL = 0.51577440041 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 0 logL (Free Index) = 14063.9381514 delta logL = 0.526561039071 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .72100 1.0000 .0000 .10000E+07 2 'Index ' 1.3387 1.0000 .0000 10.000 3 'Normalizat' .92653 1.0000 .10000E-01 10.000 4 'Prefactor ' .87851 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. FCN= 14063.94 FROM MIGRAD STATUS=CONVERGED 53 CALLS 219 TOTAL EDM= .39E-09 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .72151 1.0115 .59020E-03 .32787E-02 2 Index 1.3387 .44149 .31967 -.14886E-03 3 Normalizat .92652 .16265 .84478E-01 .51882E-04 4 Prefactor .87852 .69653E-01 .44731E-01 -.24478E-05 ERR DEF= .500 Final values: Prefactor = 0.721506 Index = 1.33874 Normalizat = 0.92652 Prefactor = 0.878515 ********** ** 18 **HESSE ********** FCN= 14063.94 FROM HESSE STATUS=OK 33 CALLS 252 TOTAL EDM= .22E-10 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .72151 1.3513 .13763E-04 -1.5691 2 Index 1.3387 .76926 .15032E-01 -.82162 3 Normalizat .92652 .19679 .37404E-03 -.95534 4 Prefactor .87852 .84466E-01 .16311E-03 -.96896 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 2.15328e-11 Minuit parameter uncertainties: 1 1.35132 2 0.775954 3 0.196942 4 0.0844783 A" outfile=/lscratch/kocevski/37399632/ltcube_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.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/37399632/ft2_4FGL_J2040.5-1705_weekly_bin944.fits .....................! real 18.19 user 17.52 sys 0.22 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/37399632/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37399632/ft2_4FGL_J2040.5-1705_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37399632/ltcube_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits outfile=/lscratch/kocevski/37399632/expmap_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.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/37399632/ltcube_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits .....................! real 68.59 user 63.84 sys 4.09 Generating the xml model: radLim = 0.001 maxRad = 12 normsOnly = True freeVariableSources = True Fixing all sources to their catalog values, except variable sources Creating file and adding sources from 4FGL Added 181 point sources and 0 extended sources Setting source of interest to: 4FGL J2040.5-1705 @ 310.136 -17.0901 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/37399632/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits scfile=/lscratch/kocevski/37399632/ft2_4FGL_J2040.5-1705_weekly_bin944.fits outfile=/lscratch/kocevski/37399632/cmap_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.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=310.136 yref=-17.0901 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.66 user 0.23 sys 0.14 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/37399632/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits scfile=/lscratch/kocevski/37399632/ft2_4FGL_J2040.5-1705_weekly_bin944.fits outfile=/lscratch/kocevski/37399632/cmap_HighResolution_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.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=310.136 yref=-17.0901 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). This is gtbin version HEAD real 0.64 user 0.24 sys 0.13 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/37399632/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37399632/ft2_4FGL_J2040.5-1705_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37399632/Model_4FGL_J2040.5-1705_weekly_bin944.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 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) = 14063.9381513 delta logL = 0.526561136494 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 7.215e-01 1.351e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 1.339e+00 7.760e-01 0.000e+00 1.000e+01 (-1.000e+00) 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 8.785e-01 8.448e-02 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.265e-01 1.969e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): 1.10 Ra Dec: 310.136 -17.090 Photon Index (Free Index): 1.34 +/- 0.78 Photon Flux (Free Index): 2.97e-09 +/- 5.31e-09 Energy Flux (Free Index): 1.61e-05 +/- 3.16e-05 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/37399476/cmap_HighResolution_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', comment='SUCCESS', energy_flux2='1.61e-05', dlogl='5.27e-01', photon_flux2='2.97e-09', job_status='DONE', time_completed='2026-09-08 16:46:07.110281', photon_index_error2='0.78', photon_index2='1.34', ts='0.05', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='8.24e-08', energy_flux_error2='3.16e-05', EG='0.92', time_epoch_completed='1788911167.11', return_code='0', job_id='37399476', GAL2='0.88', EG2='0.93', return_code2='0', photon_flux_error2='5.31e-09', ts2='1.10', photon_index='2.54' WHERE bin_id='944' AND source_name='4FGL J2040.5-1705' AND cadence='weekly'; Database successfully updated. Analysis Complete. Tue Sep 8 16:46:07 PDT 2026 source GAL_V02 Working on... /lscratch/kocevski/37399632/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits.....................! real 46.81 user 44.78 sys 1.32 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/37399632/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits', '/lscratch/kocevski/37399632/ft2_4FGL_J2040.5-1705_weekly_bin944.fits', expMap='/lscratch/kocevski/37399632/expmap_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits', expCube='/lscratch/kocevski/37399632/ltcube_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37399632/Model_4FGL_J2040.5-1705_weekly_bin944.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2040.5-1705' 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 1.223e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/37399632/ft1_filtered_4FGL_J2040.5-1705_weekly_bin944.fits Spacecraft file(s): /lscratch/kocevski/37399632/ft2_4FGL_J2040.5-1705_weekly_bin944.fits Exposure map: /lscratch/kocevski/37399632/expmap_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits Exposure cube: /lscratch/kocevski/37399632/ltcube_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/37399632/Model_4FGL_J2040.5-1705_weekly_bin944.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) = 14064.5119047 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 14064.4670193 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' 17.326 1.0000 .0000 .10000E+07 2 'Prefactor ' 14.033 1.0000 .0000 .10000E+07 3 'norm ' .20168E-03 1.0000 .0000 .10000E+07 4 'norm ' 11.664 1.0000 .0000 .10000E+07 5 'Prefactor ' 4.9839 1.0000 .0000 .10000E+07 6 'norm ' 7.1258 1.0000 .0000 .10000E+07 7 'norm ' .78126E-05 1.0000 .0000 .10000E+07 8 'norm ' 2.0152 1.0000 .0000 .10000E+07 9 'Prefactor ' .83467E-04 1.0000 .0000 .10000E+07 10 'Prefactor ' .62925 1.0000 .0000 .10000E+07 11 'norm ' .10383E-05 1.0000 .0000 .10000E+07 12 'Prefactor ' .53064 1.0000 .0000 .10000E+07 13 'norm ' 7.2161 1.0000 .0000 .10000E+07 14 'Prefactor ' .26063E-04 1.0000 .0000 .10000E+07 15 'Prefactor ' .25403E-03 1.0000 .0000 .10000E+07 16 'Prefactor ' .12207E-01 1.0000 .0000 .10000E+07 17 'Normalizat' .91942 1.0000 .10000E-01 10.000 18 'Prefactor ' .88148 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 14064.46 FROM MIGRAD STATUS=CONVERGED 151 CALLS 1374 TOTAL EDM= .31E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 1.4% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor 17.431 1.0489 -.12198E-07 -.10685E-01 2 Prefactor 14.036 2.1873 -.53270E-07 -.28028E-02 3 norm .11102E-09 2.9566 -.50052E-06** at limit ** 4 norm 11.557 7.6593 .27998E-06 -.10407E-02 5 Prefactor 8.9319 114.57 -.80228E-05 -.86962E-03 6 norm 7.1229 6.8487 -.14239E-07 -.79602E-03 7 norm .66613E-09 9.1825 -.71504E-06** at limit ** 8 norm 2.0161 .88739 -.37762E-07 -.60368E-03 9 Prefactor .0000 13.659 .84294E-06** at limit ** 10 Prefactor .62396 8.1046 -.23914E-05 .10665E-02 11 norm .11102E-09 10.708 .65796E-06** at limit ** 12 Prefactor .53031 2.9415 -.15569E-06 .33138E-03 13 norm 7.2568 1.0900 -.57388E-07 -.16464E-01 14 Prefactor .0000 3.0568 .23491E-06** at limit ** 15 Prefactor .0000 4.9017 .43515E-06** at limit ** 16 Prefactor .11102E-09 28.153 -.11047E-05** at limit ** 17 Normalizat .92008 .19991 .16931E-06 -.12517E-04 18 Prefactor .88090 .86551E-01 .13342E-05 -.99106E-04 ERR DEF= .500 Final values: Prefactor = 17.4306 Prefactor = 14.0357 norm = 1.11022e-10 norm = 11.5574 Prefactor = 8.93192 norm = 7.12294 norm = 6.66134e-10 norm = 2.01607 Prefactor = 0 Prefactor = 0.623965 norm = 1.11022e-10 Prefactor = 0.530311 norm = 7.25677 Prefactor = 0 Prefactor = 0 Prefactor = 1.11022e-10 Normalizat = 0.920079 Prefactor = 0.880904 ********** ** 18 **HESSE ********** FCN= 14064.46 FROM HESSE STATUS=OK 286 CALLS 1660 TOTAL EDM= .41E-05 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor 17.431 19.054 .24034E-03 -1.5624 2 Prefactor 14.036 2.2097 .26712E-03 -1.5633 3 norm .11102E-09 2.9499 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 norm 11.557 7.6702 .29307E-03 -1.5640 5 Prefactor 8.9319 113.01 .45023E-03 -1.5648 6 norm 7.1229 6.8476 .37555E-03 -1.5655 7 norm .66613E-09 9.1796 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm 2.0161 .89071 .72887E-03 -1.5680 9 Prefactor .0000 13.594 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .62396 8.1036 .66648E-03 -1.5692 11 norm .11102E-09 1.3086 .42118E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 12 Prefactor .53031 2.9503 .75685E-03 -1.5693 13 norm 7.2568 13.089 .37317E-03 -1.5654 14 Prefactor .0000 3.0309 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 15 Prefactor .0000 4.9242 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 16 Prefactor .11102E-09 27.572 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 17 Normalizat .92008 .16641 .84762E-01 -.95758 18 Prefactor .88090 .71180E-01 .44769E-01 -.96812 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 4.10717e-06 Minuit parameter uncertainties: 1 19.0536 2 2.20972 3 3.29873e-05 4 7.67017 5 63.5448 6 6.84765 7 0.000156997 8 0.890705 9 6.19746e-06 10 4.49728 11 2.10344e-05 12 2.50168 13 13.0894 14 4.95769e-06 15 1.42822e-05 16 0.000106817 17 0.166502 18 0.0711879 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 14064.4647124 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 5.303e-01 2.502e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 8.809e-01 7.119e-02 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.201e-01 1.665e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): 0.05 Ra Dec: 310.136 -17.090 Photon Flux Upper Limit: 8.23864603482e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00642445380583 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/37399632/likelihoodResults_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.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) = 14063.948938 delta logL = 0.51577440041 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 0 logL (Free Index) = 14063.9381514 delta logL = 0.526561039071 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .72100 1.0000 .0000 .10000E+07 2 'Index ' 1.3387 1.0000 .0000 10.000 3 'Normalizat' .92653 1.0000 .10000E-01 10.000 4 'Prefactor ' .87851 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. FCN= 14063.94 FROM MIGRAD STATUS=CONVERGED 53 CALLS 219 TOTAL EDM= .39E-09 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .72151 1.0115 .59020E-03 .32787E-02 2 Index 1.3387 .44149 .31967 -.14886E-03 3 Normalizat .92652 .16265 .84478E-01 .51882E-04 4 Prefactor .87852 .69653E-01 .44731E-01 -.24478E-05 ERR DEF= .500 Final values: Prefactor = 0.721506 Index = 1.33874 Normalizat = 0.92652 Prefactor = 0.878515 ********** ** 18 **HESSE ********** FCN= 14063.94 FROM HESSE STATUS=OK 33 CALLS 252 TOTAL EDM= .22E-10 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .72151 1.3513 .13763E-04 -1.5691 2 Index 1.3387 .76926 .15032E-01 -.82162 3 Normalizat .92652 .19679 .37404E-03 -.95534 4 Prefactor .87852 .84466E-01 .16311E-03 -.96896 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 2.15328e-11 Minuit parameter uncertainties: 1 1.35132 2 0.775954 3 0.196942 4 0.0844783 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) = 14063.9381513 delta logL = 0.526561136494 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 7.215e-01 1.351e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 1.339e+00 7.760e-01 0.000e+00 1.000e+01 (-1.000e+00) 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 8.785e-01 8.448e-02 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.265e-01 1.969e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): 1.10 Ra Dec: 310.136 -17.090 Photon Index (Free Index): 1.34 +/- 0.78 Photon Flux (Free Index): 2.97e-09 +/- 5.31e-09 Energy Flux (Free Index): 1.61e-05 +/- 3.16e-05 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/37399632/cmap_HighResolution_809913601_810518401_4FGL_J2040.5-1705_weekly_bin944.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', comment='SUCCESS', energy_flux2='1.61e-05', dlogl='5.27e-01', photon_flux2='2.97e-09', job_status='DONE', time_completed='2026-09-08 16:49:17.462242', photon_index_error2='0.78', photon_index2='1.34', ts='0.05', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='8.24e-08', energy_flux_error2='3.16e-05', EG='0.92', time_epoch_completed='1788911357.46', return_code='0', job_id='37399632', GAL2='0.88', EG2='0.93', return_code2='0', photon_flux_error2='5.31e-09', ts2='1.10', photon_index='2.54' WHERE bin_id='944' AND source_name='4FGL J2040.5-1705' AND cadence='weekly'; Database successfully updated. Analysis Complete. Tue Sep 8 16:49:17 PDT 2026