17 **MINIMIZE .6620E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 6550.992 FROM MIGRAD STATUS=CONVERGED 184 CALLS 2168 TOTAL EDM= .78E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 2.4% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .43410E-07 6.1630 -.19993E-05** at limit ** 2 Prefactor 93.880 66.245 .19852E-05 -.20616E-01 3 Prefactor 1.8828 3.9783 .12766E-06 .82314E-03 4 Prefactor .25979E-07 5.8954 .10249E-05** at limit ** 5 Prefactor 14.978 7.0274 .82318E-06 -.12136 6 Prefactor .0000 1.0088 -.68645E-07** at limit ** 7 norm .92531E-01 .10954 -.33201E-07** at limit ** 8 norm .37970E-07 6.8554 .10048E-05** at limit ** 9 Prefactor .25091E-07 15.564 -.63886E-06** at limit ** 10 Prefactor .55511E-10 3.4831 -.23420E-06** at limit ** 11 norm .99032E-07 20.682 -.30019E-07** at limit ** 12 Prefactor 2.9645 2.2051 .29486E-07 .34708E-02 13 Prefactor 5.2039 2.3816 -.37886E-07 .14434E-02 14 Prefactor 5.2214 3.2848 -.11674E-06 .12510E-02 15 Prefactor .0000 1.4613 -.18254E-06** at limit ** 16 norm .90826 1.7217 .13181E-06 -.10127E-02 17 norm .86543 .86359 -.33867E-06 .52502E-03 18 Prefactor .55511E-10 2.8258 .10939E-06** at limit ** 19 norm .0000 .52419 .58329E-07** at limit ** 20 norm 9.9655 9.9257 .23555E-05 .30683E-01 21 norm .55511E-10 1.1797 -.19322E-06** at limit ** 22 norm 8.7146 5.6721 -.39681E-06 -.56349E-02 23 Prefactor .21094E-08 36.028 -.13663E-05** at limit ** 24 Normalizat 1.0521 .21948 .15454E-04 .41516E-04 25 Prefactor .80855 .17491 -.14213E-04 -.56258E-04 ERR DEF= .500 Final values: Prefactor = 4.34097e-08 Prefactor = 93.8803 Prefactor = 1.88276 Prefactor = 2.59792e-08 Prefactor = 14.9776 Prefactor = 0 norm = 0.0925307 norm = 3.79696e-08 Prefactor = 2.5091e-08 Prefactor = 5.55112e-11 norm = 9.90319e-08 Prefactor = 2.96452 Prefactor = 5.20386 Prefactor = 5.22145 Prefactor = 0 norm = 0.908256 norm = 0.865427 Prefactor = 5.55112e-11 norm = 0 norm = 9.96549 norm = 5.55112e-11 norm = 8.71463 Prefactor = 2.10942e-09 Normalizat = 1.05214 Prefactor = 0.808551 /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). ********** ** 18 **HESSE ********** FCN= 6550.992 FROM HESSE STATUS=OK 473 CALLS 2641 TOTAL EDM= .41E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .43410E-07 6.2708 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Prefactor 93.880 67.153 .10345E-03 -1.5514 3 Prefactor 1.8828 3.9906 .75788E-03 -1.5681 4 Prefactor .25979E-07 5.9322 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 Prefactor 14.978 19.212 .25856E-03 -1.5631 6 Prefactor .0000 1.0082 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 7 norm .92531E-01 .11924 .61218E-03 -1.5702 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm .37970E-07 6.9345 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 9 Prefactor .25091E-07 15.604 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .55511E-10 3.4569 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 norm .99032E-07 20.905 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 12 Prefactor 2.9645 2.1079 .58989E-03 -1.5674 13 Prefactor 5.2039 2.2576 .44023E-03 -1.5662 14 Prefactor 5.2214 3.2911 .43955E-03 -1.5662 15 Prefactor .0000 1.4532 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 16 norm .90826 1.7351 .45742E-03 -1.5689 17 norm .86543 .87131 .48199E-03 -1.5689 18 Prefactor .55511E-10 2.8247 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 19 norm .0000 .51559 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 20 norm 9.9655 10.010 .31771E-03 -1.5645 21 norm .55511E-10 1.1660 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 22 norm 8.7146 5.6893 .33927E-03 -1.5649 23 Prefactor .21094E-08 35.984 .14376E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 24 Normalizat 1.0521 .18990 .40416E-01 -.91304 25 Prefactor .80855 .14899 .43830E-01 -.99414 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 4.05696e-07 Minuit parameter uncertainties: 1 0.00104365 2 67.1532 3 3.99065 4 0.000785546 5 19.2125 6 3.27797e-06 7 0.119238 8 0.00102591 9 0.00125116 10 3.31907e-05 11 0.00287763 12 2.10786 13 2.25756 14 3.29114 15 5.63949e-06 16 1.7351 17 0.871308 18 2.52641e-05 19 5.10785e-06 20 10.0104 21 1.21877e-05 22 5.68934 23 0.000553313 24 0.190021 25 0.149063 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 6550.99223006 Extracting fit parameters... 4FGL J1640.4+3945 Spectrum: PowerLaw 308 Prefactor: 2.965e+00 2.108e+00 0.000e+00 1.000e+06 ( 1.000e-12) 309 Index: 2.421e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 310 Scale: 1.366e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 659 Prefactor: 8.086e-01 1.491e-01 0.000e+00 1.000e+01 ( 1.000e+00) 660 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 661 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 658 Normalization: 1.052e+00 1.900e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): 6.69 Ra Dec: 250.119 39.763 Photon Index (Fixed Index): 2.42 +/- 0.00 Photon Flux (Fixed Index): 1.17e-07 +/- 8.32e-08 Energy Flux (Fixed Index): 3.73e-05 +/- 2.65e-05 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) = 6550.99193481 delta logL = 0.000295243676192 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 0 logL (Free Index) = 6550.99138915 delta logL = 0.00084090780274 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' 3.0370 1.0000 .0000 .10000E+07 2 'Index ' 2.4029 1.0000 .0000 10.000 3 'Normalizat' 1.0537 1.0000 .10000E-01 10.000 4 'Prefactor ' .80767 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .6620E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. FCN= 6550.991 FROM MIGRAD STATUS=CONVERGED 83 CALLS 228 TOTAL EDM= .65E-10 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor 3.0368 2.4737 .63039E-05 .38936E-02 2 Index 2.4029 .48731 .41313E-02 .68819E-04 3 Normalizat 1.0537 .21137 .24822E-03 -.15824E-03 4 Prefactor .80767 .17353 .23339E-03 -.19928E-03 ERR DEF= .500 Final values: Prefactor = 3.03684 Index = 2.40294 Normalizat = 1.05367 Prefactor = 0.807672 ********** ** 18 **HESSE ********** FCN= 6550.991 FROM HESSE STATUS=OK 25 CALLS 253 TOTAL EDM= .52E-10 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor 3.0368 2.2670 .25216E-06 -1.5673 2 Index 2.4029 .44625 .16525E-03 -.54616 3 Normalizat 1.0537 .21115 .99287E-05 -.91254 4 Prefactor .80767 .17350 .93356E-05 -.99446 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 5.24041e-11 Minuit parameter uncertainties: 1 2.26702 2 0.44707 3 0.211319 4 0.173613 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) = 6550.99138913 delta logL = 0.000840928449179 Extracting fit parameters... 4FGL J1640.4+3945 Spectrum: PowerLaw 308 Prefactor: 3.037e+00 2.267e+00 0.000e+00 1.000e+06 ( 1.000e-12) 309 Index: 2.403e+00 4.471e-01 0.000e+00 1.000e+01 (-1.000e+00) 310 Scale: 1.366e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 659 Prefactor: 8.077e-01 1.736e-01 0.000e+00 1.000e+01 ( 1.000e+00) 660 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 661 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 658 Normalization: 1.054e+00 2.113e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): 7.35 Ra Dec: 250.119 39.763 Photon Index (Free Index): 2.40 +/- 0.45 Photon Flux (Free Index): 1.16e-07 +/- 6.27e-08 Energy Flux (Free Index): 3.78e-05 +/- 2.14e-05 Creating a high resolution counts map... INFO: Auto-setting vmin to -2.500e-04 [aplpy.core] INFO: Auto-setting vmax to 2.775e-03 [aplpy.core] Saving /lscratch/kocevski/27405514/cmap_HighResolution_801273601_801532801_4FGL_J1640.4+3945_daily_bin2168.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='3.78e-05', photon_flux_error='8.32e-08', dlogl='8.41e-04', energy_flux='3.73e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2026-05-29 12:44:52.275213', photon_index_error2='0.45', photon_index2='2.40', ts='6.69', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='2.14e-05', EG='1.05', time_epoch_completed='1780083892.28', return_code='0', job_id='27405514', GAL2='0.81', EG2='1.05', return_code2='0', energy_flux_error='2.65e-05', photon_flux_error2='6.27e-08', ts2='7.35', photon_index='2.42' WHERE bin_id='2168' AND source_name='4FGL J1640.4+3945' AND cadence='daily'; Database successfully updated. Analysis Complete. Fri May 29 12:44:52 PDT 2026 number of points = 7576 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J1640.4+3945_daily_bin2168 RA = 250.119, Dec = 39.7626 tmin = 801273601, tmax = 801532801 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='27405637', job_status='RUN', time_executed='2026-05-29 12:44:30.661797', time_epoch_executed='1780083870.66' WHERE source_name='4FGL J1640.4+3945' and cadence='daily' and bin_id='2168' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/27405637 Creating custom pfile directory: /lscratch/kocevski/27405637/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=801273601.0 && nMetStart<801532801.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=801273601.0 && nMetStart<801532801.0' /Data/Flight/Level1/LPA Retrieving 47 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/27405637/ft1_4FGL_J1640.4+3945_daily_bin2168.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=801273601.0 && nMetStart<801532801.0' /Data/Flight/Level1/LPA Retrieving 47 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/27405637/ft2_4FGL_J1640.4+3945_daily_bin2168.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/27405637/ft1_4FGL_J1640.4+3945_daily_bin2168.fits outfile=/lscratch/kocevski/27405637/ft1_filteredMKT_4FGL_J1640.4+3945_daily_bin2168.fits ra=250.119 dec=39.7626 rad=12.0 tmin=801273601.0 tmax=801532801.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 2.31 user 1.96 sys 0.19 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/27405637/ft2_4FGL_J1640.4+3945_daily_bin2168.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/27405637/ft2_4FGL_J1640.4+3945_daily_bin2168.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/27405637/ft1_filteredMKT_4FGL_J1640.4+3945_daily_bin2168.fits evtable="EVENTS" outfile="/lscratch/kocevski/27405637/ft1_filtered_4FGL_J1640.4+3945_daily_bin2168.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.19 sys 0.15 Number of photons that the gtmktime cut: 623 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/27405637/ft1_filtered_4FGL_J1640.4+3945_daily_bin2168.fits" evtable="EVENTS" scfile=/lscratch/kocevski/27405637/ft2_4FGL_J1640.4+3945_daily_bin2168.fits sctable="SC_DATA" outfile=/lscratch/kocevski/27405637/ltcube_801273601_801532801_4FGL_J1640.4+3945_daily_bin2168.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/27405637/ft2_4FGL_J1640.4+3945_daily_bin2168.fits .....................! real 7.99 user 7.52 sys 0.25 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/27405637/ft1_filtered_4FGL_J1640.4+3945_daily_bin2168.fits evtable="EVENTS" scfile=/lscratch/kocevski/27405637/ft2_4FGL_J1640.4+3945_daily_bin2168.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27405637/ltcube_801273601_801532801_4FGL_J1640.4+3945_daily_bin2168.fits outfile=/lscratch/kocevski/27405637/expmap_801273601_801532801_4FGL_J1640.4+3945_daily_bin2168.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/27405637/ltcube_801273601_801532801_4FGL_J1640.4+3945_daily_bin2168.fits .....................! real 66.77 user 62.13 sys 4.12 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 205 point sources and 0 extended sources Setting source of interest to: 4FGL J1640.4+3945 @ 250.119 39.7626 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/27405637/ft1_filtered_4FGL_J1640.4+3945_daily_bin2168.fits scfile=/lscratch/kocevski/27405637/ft2_4FGL_J1640.4+3945_daily_bin2168.fits outfile=/lscratch/kocevski/27405637/cmap_801273601_801532801_4FGL_J1640.4+3945_daily_bin2168.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=250.119 yref=39.7626 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.20 sys 0.14 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/27405637/ft1_filtered_4FGL_J1640.4+3945_daily_bin2168.fits scfile=/lscratch/kocevski/27405637/ft2_4FGL_J1640.4+3945_daily_bin2168.fits outfile=/lscratch/kocevski/27405637/cmap_HighResolution_801273601_801532801_4FGL_J1640.4+3945_daily_bin2168.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=250.119 yref=39.7626 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.49 user 0.22 sys 0.12 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/27405637/ft1_filtered_4FGL_J1640.4+3945_daily_bin2168.fits evtable="EVENTS" scfile=/lscratch/kocevski/27405637/ft2_4FGL_J1640.4+3945_daily_bin2168.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27405637/Model_4FGL_J1640.4+3945_daily_bin2168.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). adding source EG_v02 adding source GAL_V02 Working on... /lscratch/kocevski/27405637/ft1_filtered_4FGL_J1640.4+3945_daily_bin2168.fits.....................! real 20.89 user 19.72 sys 0.86 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/27405637/ft1_filtered_4FGL_J1640.4+3945_daily_bin2168.fits', '/lscratch/kocevski/27405637/ft2_4FGL_J1640.4+3945_daily_bin2168.fits', expMap='/lscratch/kocevski/27405637/expmap_801273601_801532801_4FGL_J1640.4+3945_daily_bin2168.fits', expCube='/lscratch/kocevski/27405637/ltcube_801273601_801532801_4FGL_J1640.4+3945_daily_bin2168.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27405637/Model_4FGL_J1640.4+3945_daily_bin2168.xml', optimizer='MINUIT') Using source of interest name: '4FGL J1640.4+3945' 4FGL J1640.4+3945 Spectrum: PowerLaw 308 Prefactor: 1.345e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-12) 309 Index: 2.421e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 310 Scale: 1.366e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/27405637/ft1_filtered_4FGL_J1640.4+3945_daily_bin2168.fits Spacecraft file(s): /lscratch/kocevski/27405637/ft2_4FGL_J1640.4+3945_daily_bin2168.fits Exposure map: /lscratch/kocevski/27405637/expmap_801273601_801532801_4FGL_J1640.4+3945_daily_bin2168.fits Exposure cube: /lscratch/kocevski/27405637/ltcube_801273601_801532801_4FGL_J1640.4+3945_daily_bin2168.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/27405637/Model_4FGL_J1640.4+3945_daily_bin2168.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) = 6551.00079637 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 6550.99420017 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .46354E-04 1.0000 .0000 .10000E+07 2 'Prefactor ' 93.445 1.0000 .0000 .10000E+07 3 'Prefactor ' 1.8846 1.0000 .0000 .10000E+07 4 'Prefactor ' .85471E-03 1.0000 .0000 .10000E+07 5 'Prefactor ' 14.975 1.0000 .0000 .10000E+07 6 'Prefactor ' .28401E-04 1.0000 .0000 .10000E+07 7 'norm ' .92495E-01 1.0000 .0000 .10000E+07 8 'norm ' .13682E-02 1.0000 .0000 .10000E+07 9 'Prefactor ' .53708E-02 1.0000 .0000 .10000E+07 10 'Prefactor ' .12978E-02 1.0000 .0000 .10000E+07 11 'norm ' .12250E-02 1.0000 .0000 .10000E+07 12 'Prefactor ' 2.9608 1.0000 .0000 .10000E+07 13 'Prefactor ' 5.2084 1.0000 .0000 .10000E+07 14 'Prefactor ' 5.2242 1.0000 .0000 .10000E+07 15 'Prefactor ' .87078E-05 1.0000 .0000 .10000E+07 16 'norm ' .90026 1.0000 .0000 .10000E+07 17 'norm ' .86516 1.0000 .0000 .10000E+07 18 'Prefactor ' .87954E-03 1.0000 .0000 .10000E+07 19 'norm ' .12862E-06 1.0000 .0000 .10000E+07 20 'norm ' 9.9324 1.0000 .0000 .10000E+07 21 'norm ' .68160E-04 1.0000 .0000 .10000E+07 22 'norm ' 8.7167 1.0000 .0000 .10000E+07 23 'Prefactor ' .84161E-01 1.0000 .0000 .10000E+07 24 'Normalizat' 1.0521 1.0000 .10000E-01 10.000 25 'Prefactor ' .80866 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .6620E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 6550.992 FROM MIGRAD STATUS=CONVERGED 184 CALLS 2168 TOTAL EDM= .78E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 2.4% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .43410E-07 6.1630 -.19993E-05** at limit ** 2 Prefactor 93.880 66.245 .19852E-05 -.20616E-01 3 Prefactor 1.8828 3.9783 .12766E-06 .82314E-03 4 Prefactor .25979E-07 5.8954 .10249E-05** at limit ** 5 Prefactor 14.978 7.0274 .82318E-06 -.12136 6 Prefactor .0000 1.0088 -.68645E-07** at limit ** 7 norm .92531E-01 .10954 -.33201E-07** at limit ** 8 norm .37970E-07 6.8554 .10048E-05** at limit ** 9 Prefactor .25091E-07 15.564 -.63886E-06** at limit ** 10 Prefactor .55511E-10 3.4831 -.23420E-06** at limit ** 11 norm .99032E-07 20.682 -.30019E-07** at limit ** 12 Prefactor 2.9645 2.2051 .29486E-07 .34708E-02 13 Prefactor 5.2039 2.3816 -.37886E-07 .14434E-02 14 Prefactor 5.2214 3.2848 -.11674E-06 .12510E-02 15 Prefactor .0000 1.4613 -.18254E-06** at limit ** 16 norm .90826 1.7217 .13181E-06 -.10127E-02 17 norm .86543 .86359 -.33867E-06 .52502E-03 18 Prefactor .55511E-10 2.8258 .10939E-06** at limit ** 19 norm .0000 .52419 .58329E-07** at limit ** 20 norm 9.9655 9.9257 .23555E-05 .30683E-01 21 norm .55511E-10 1.1797 -.19322E-06** at limit ** 22 norm 8.7146 5.6721 -.39681E-06 -.56349E-02 23 Prefactor .21094E-08 36.028 -.13663E-05** at limit ** 24 Normalizat 1.0521 .21948 .15454E-04 .41516E-04 25 Prefactor .80855 .17491 -.14213E-04 -.56258E-04 ERR DEF= .500 Final values: Prefactor = 4.34097e-08 Prefactor = 93.8803 Prefactor = 1.88276 Prefactor = 2.59792e-08 Prefactor = 14.9776 Prefactor = 0 norm = 0.0925307 norm = 3.79696e-08 Prefactor = 2.5091e-08 Prefactor = 5.55112e-11 norm = 9.90319e-08 Prefactor = 2.96452 Prefactor = 5.20386 Prefactor = 5.22145 Prefactor = 0 norm = 0.908256 norm = 0.865427 Prefactor = 5.55112e-11 norm = 0 norm = 9.96549 norm = 5.55112e-11 norm = 8.71463 Prefactor = 2.10942e-09 Normalizat = 1.05214 Prefactor = 0.808551 ********** ** 18 **HESSE ********** FCN= 6550.992 FROM HESSE STATUS=OK 473 CALLS 2641 TOTAL EDM= .41E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .43410E-07 6.2708 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Prefactor 93.880 67.153 .10345E-03 -1.5514 3 Prefactor 1.8828 3.9906 .75788E-03 -1.5681 4 Prefactor .25979E-07 5.9322 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 Prefactor 14.978 19.212 .25856E-03 -1.5631 6 Prefactor .0000 1.0082 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 7 norm .92531E-01 .11924 .61218E-03 -1.5702 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm .37970E-07 6.9345 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 9 Prefactor .25091E-07 15.604 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .55511E-10 3.4569 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 norm .99032E-07 20.905 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 12 Prefactor 2.9645 2.1079 .58989E-03 -1.5674 13 Prefactor 5.2039 2.2576 .44023E-03 -1.5662 14 Prefactor 5.2214 3.2911 .43955E-03 -1.5662 15 Prefactor .0000 1.4532 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 16 norm .90826 1.7351 .45742E-03 -1.5689 17 norm .86543 .87131 .48199E-03 -1.5689 18 Prefactor .55511E-10 2.8247 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 19 norm .0000 .51559 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 20 norm 9.9655 10.010 .31771E-03 -1.5645 21 norm .55511E-10 1.1660 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 22 norm 8.7146 5.6893 .33927E-03 -1.5649 23 Prefactor .21094E-08 35.984 .14376E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 24 Normalizat 1.0521 .18990 .40416E-01 -.91304 25 Prefactor .80855 .14899 .43830E-01 -.99414 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 4.05696e-07 Minuit parameter uncertainties: 1 0.00104365 2 67.1532 3 3.99065 4 0.000785546 5 19.2125 6 3.27797e-06 7 0.119238 8 0.00102591 9 0.00125116 10 3.31907e-05 11 0.00287763 12 2.10786 13 2.25756 14 3.29114 15 5.63949e-06 16 1.7351 17 0.871308 18 2.52641e-05 19 5.10785e-06 20 10.0104 21 1.21877e-05 22 5.68934 23 0.000553313 24 0.190021 25 0.149063 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 6550.99223006 Extracting fit parameters... 4FGL J1640.4+3945 Spectrum: PowerLaw 308 Prefactor: 2.965e+00 2.108e+00 0.000e+00 1.000e+06 ( 1.000e-12) 309 Index: 2.421e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 310 Scale: 1.366e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 659 Prefactor: 8.086e-01 1.491e-01 0.000e+00 1.000e+01 ( 1.000e+00) 660 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 661 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 658 Normalization: 1.052e+00 1.900e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): 6.69 Ra Dec: 250.119 39.763 Photon Index (Fixed Index): 2.42 +/- 0.00 Photon Flux (Fixed Index): 1.17e-07 +/- 8.32e-08 Energy Flux (Fixed Index): 3.73e-05 +/- 2.65e-05 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) = 6550.99193481 delta logL = 0.000295243676192 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 0 logL (Free Index) = 6550.99138915 delta logL = 0.00084090780274 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' 3.0370 1.0000 .0000 .10000E+07 2 'Index ' 2.4029 1.0000 .0000 10.000 3 'Normalizat' 1.0537 1.0000 .10000E-01 10.000 4 'Prefactor ' .80767 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .6620E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. FCN= 6550.991 FROM MIGRAD STATUS=CONVERGED 83 CALLS 228 TOTAL EDM= .65E-10 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor 3.0368 2.4737 .63039E-05 .38936E-02 2 Index 2.4029 .48731 .41313E-02 .68819E-04 3 Normalizat 1.0537 .21137 .24822E-03 -.15824E-03 4 Prefactor .80767 .17353 .23339E-03 -.19928E-03 ERR DEF= .500 Final values: Prefactor = 3.03684 Index = 2.40294 Normalizat = 1.05367 Prefactor = 0.807672 ********** ** 18 **HESSE ********** FCN= 6550.991 FROM HESSE STATUS=OK 25 CALLS 253 TOTAL EDM= .52E-10 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor 3.0368 2.2670 .25216E-06 -1.5673 2 Index 2.4029 .44625 .16525E-03 -.54616 3 Normalizat 1.0537 .21115 .99287E-05 -.91254 4 Prefactor .80767 .17350 .93356E-05 -.99446 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 5.24041e-11 Minuit parameter uncertainties: 1 2.26702 2 0.44707 3 0.211319 4 0.173613 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) = 6550.99138913 delta logL = 0.000840928449179 Extracting fit parameters... 4FGL J1640.4+3945 Spectrum: PowerLaw 308 Prefactor: 3.037e+00 2.267e+00 0.000e+00 1.000e+06 ( 1.000e-12) 309 Index: 2.403e+00 4.471e-01 0.000e+00 1.000e+01 (-1.000e+00) 310 Scale: 1.366e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 659 Prefactor: 8.077e-01 1.736e-01 0.000e+00 1.000e+01 ( 1.000e+00) 660 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 661 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 658 Normalization: 1.054e+00 2.113e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): 7.35 Ra Dec: 250.119 39.763 Photon Index (Free Index): 2.40 +/- 0.45 Photon Flux (Free Index): 1.16e-07 +/- 6.27e-08 Energy Flux (Free Index): 3.78e-05 +/- 2.14e-05 Creating a high resolution counts map... INFO: Auto-setting vmin to -2.500e-04 [aplpy.core] INFO: Auto-setting vmax to 2.775e-03 [aplpy.core] Saving /lscratch/kocevski/27405637/cmap_HighResolution_801273601_801532801_4FGL_J1640.4+3945_daily_bin2168.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='3.78e-05', photon_flux_error='8.32e-08', dlogl='8.41e-04', energy_flux='3.73e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2026-05-29 12:49:11.669937', photon_index_error2='0.45', photon_index2='2.40', ts='6.69', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='2.14e-05', EG='1.05', time_epoch_completed='1780084151.67', return_code='0', job_id='27405637', GAL2='0.81', EG2='1.05', return_code2='0', energy_flux_error='2.65e-05', photon_flux_error2='6.27e-08', ts2='7.35', photon_index='2.42' WHERE bin_id='2168' AND source_name='4FGL J1640.4+3945' AND cadence='daily'; Database successfully updated. Analysis Complete. Fri May 29 12:49:11 PDT 2026