/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits PyFITSDeprecationWarning) # noqa Likelihood Analysis Tool Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov) Importing modules... This is make3FGLxml version 01r0. The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher. This is make4FGLDR3xml version 01r09. The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations. WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). /sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead. warnings.warn(message, mplDeprecation, stacklevel=1) WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). number of points = 17546 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J1640.3+6850_weekly_bin895 RA = 250.082, Dec = 68.8483 tmin = 780278401, tmax = 780883201 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='14090054', job_status='RUN', time_executed='2025-10-20 11:20:46.598860', time_epoch_executed='1760984446.6' WHERE source_name='4FGL J1640.3+6850' and cadence='weekly' and bin_id='895' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/14090054 Creating custom pfile directory: /lscratch/kocevski/14090054/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=780278401.0 && nMetStart<780883201.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=780278401.0 && nMetStart<780883201.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/14090054/ft1_4FGL_J1640.3+6850_weekly_bin895.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=780278401.0 && nMetStart<780883201.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/14090054/ft2_4FGL_J1640.3+6850_weekly_bin895.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/14090054/ft1_4FGL_J1640.3+6850_weekly_bin895.fits outfile=/lscratch/kocevski/14090054/ft1_filteredMKT_4FGL_J1640.3+6850_weekly_bin895.fits ra=250.082 dec=68.8483 rad=12.0 tmin=780278401.0 tmax=780883201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). Done. real 6.08 user 4.90 sys 0.24 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/14090054/ft2_4FGL_J1640.3+6850_weekly_bin895.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/14090054/ft2_4FGL_J1640.3+6850_weekly_bin895.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/14090054/ft1_filteredMKT_4FGL_J1640.3+6850_weekly_bin895.fits evtable="EVENTS" outfile="/lscratch/kocevski/14090054/ft1_filtered_4FGL_J1640.3+6850_weekly_bin895.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.97 user 0.20 sys 0.13 Number of photons that the gtmktime cut: 2115 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/14090054/ft1_filtered_4FGL_J1640.3+6850_weekly_bin895.fits" evtable="EVENTS" scfile=/lscratch/kocevski/14090054/ft2_4FGL_J1640.3+6850_weekly_bin895.fits sctable="SC_DATA" outfile=/lscratch/kocevski/14090054/ltcube_780278401_780883201_4FGL_J1640.3+6850_weekly_bin895.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/14090054/ft2_4FGL_J1640.3+6850_weekly_bin895.fits .....................! real 17.42 user 16.17 sys 0.25 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/14090054/ft1_filtered_4FGL_J1640.3+6850_weekly_bin895.fits evtable="EVENTS" scfile=/lscratch/kocevski/14090054/ft2_4FGL_J1640.3+6850_weekly_bin895.fits sctable="SC_DATA" expcube=/lscratch/kocevski/14090054/ltcube_780278401_780883201_4FGL_J1640.3+6850_weekly_bin895.fits outfile=/lscratch/kocevski/14090054/expmap_780278401_780883201_4FGL_J1640.3+6850_weekly_bin895.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/14090054/ltcube_780278401_780883201_4FGL_J1640.3+6850_weekly_bin895.fits .....................! real 60.41 user 55.71 sys 3.57 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 209 point sources and 0 extended sources Setting source of interest to: 4FGL J1640.3+6850 @ 250.082 68.8483 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/14090054/ft1_filtered_4FGL_J1640.3+6850_weekly_bin895.fits scfile=/lscratch/kocevski/14090054/ft2_4FGL_J1640.3+6850_weekly_bin895.fits outfile=/lscratch/kocevski/14090054/cmap_780278401_780883201_4FGL_J1640.3+6850_weekly_bin895.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.082 yref=68.8483 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). This is gtbin version HEAD real 1.37 user 0.20 sys 0.14 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/14090054/ft1_filtered_4FGL_J1640.3+6850_weekly_bin895.fits scfile=/lscratch/kocevski/14090054/ft2_4FGL_J1640.3+6850_weekly_bin895.fits outfile=/lscratch/kocevski/14090054/cmap_HighResolution_780278401_780883201_4FGL_J1640.3+6850_weekly_bin895.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.082 yref=68.8483 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). This is gtbin version HEAD real 1.21 user 0.20 sys 0.14 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/14090054/ft1_filtered_4FGL_J1640.3+6850_weekly_bin895.fits evtable="EVENTS" scfile=/lscratch/kocevski/14090054/ft2_4FGL_J1640.3+6850_weekly_bin895.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/14090054/Model_4FGL_J1640.3+6850_weekly_bin895.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/14090054/ft1_filtered_4FGL_J1640.3+6850_weekly_bin895.fits.....................! real 67.13 user 64.85 sys 0.93 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/14090054/ft1_filtered_4FGL_J1640.3+6850_weekly_bin895.fits', '/lscratch/kocevski/14090054/ft2_4FGL_J1640.3+6850_weekly_bin895.fits', expMap='/lscratch/kocevski/14090054/expmap_780278401_780883201_4FGL_J1640.3+6850_weekly_bin895.fits', expCube='/lscratch/kocevski/14090054/ltcube_780278401_780883201_4FGL_J1640.3+6850_weekly_bin895.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/14090054/Model_4FGL_J1640.3+6850_weekly_bin895.xml', optimizer='MINUIT') Using source of interest name: '4FGL J1640.3+6850' 4FGL J1640.3+6850 Spectrum: PowerLaw 350 Prefactor: 3.992e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-14) 351 Index: 2.132e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 352 Scale: 2.329e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/14090054/ft1_filtered_4FGL_J1640.3+6850_weekly_bin895.fits Spacecraft file(s): /lscratch/kocevski/14090054/ft2_4FGL_J1640.3+6850_weekly_bin895.fits Exposure map: /lscratch/kocevski/14090054/expmap_780278401_780883201_4FGL_J1640.3+6850_weekly_bin895.fits Exposure cube: /lscratch/kocevski/14090054/ltcube_780278401_780883201_4FGL_J1640.3+6850_weekly_bin895.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/14090054/Model_4FGL_J1640.3+6850_weekly_bin895.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) = 22185.6145448 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 22185.5718744 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .99920E-09 1.0000 .0000 .10000E+07 2 'Prefactor ' .25300E-03 1.0000 .0000 .10000E+07 3 'Prefactor ' 5.3715 1.0000 .0000 .10000E+07 4 'Prefactor ' 17.989 1.0000 .0000 .10000E+07 5 'Prefactor ' .24364E-02 1.0000 .0000 .10000E+07 6 'norm ' 2.0193 1.0000 .0000 .10000E+07 7 'Prefactor ' 20.040 1.0000 .0000 .10000E+07 8 'Prefactor ' 7.5970 1.0000 .0000 .10000E+07 9 'norm ' 5.8101 1.0000 .0000 .10000E+07 10 'Prefactor ' .15432E-03 1.0000 .0000 .10000E+07 11 'Prefactor ' 4.5623 1.0000 .0000 .10000E+07 12 'Prefactor ' .63881E-02 1.0000 .0000 .10000E+07 13 'norm ' 4.4214 1.0000 .0000 .10000E+07 14 'Prefactor ' 4.3246 1.0000 .0000 .10000E+07 15 'norm ' .66253 1.0000 .0000 .10000E+07 16 'Prefactor ' 6.5589 1.0000 .0000 .10000E+07 17 'Prefactor ' 1.5943 1.0000 .0000 .10000E+07 18 'Prefactor ' 11.374 1.0000 .0000 .10000E+07 19 'Prefactor ' .73646E-02 1.0000 .0000 .10000E+07 20 'Prefactor ' 26.254 1.0000 .0000 .10000E+07 21 'Prefactor ' 6.3036 1.0000 .0000 .10000E+07 22 'Prefactor ' .15602E-02 1.0000 .0000 .10000E+07 23 'norm ' 8.7013 1.0000 .0000 .10000E+07 24 'norm ' 1.3446 1.0000 .0000 .10000E+07 25 'norm ' 11.624 1.0000 .0000 .10000E+07 26 'Prefactor ' 2.1901 1.0000 .0000 .10000E+07 27 'Prefactor ' .61082E-05 1.0000 .0000 .10000E+07 28 'Prefactor ' .31310 1.0000 .0000 .10000E+07 29 'Prefactor ' .15742E-04 1.0000 .0000 .10000E+07 30 'Normalizat' 1.1075 1.0000 .10000E-01 10.000 31 'Prefactor ' .88165 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .6760E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 22185.57 FROM MIGRAD STATUS=CONVERGED 155 CALLS 2299 TOTAL EDM= .88E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 1.4% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .19635E-05 7.2980 -.15355E-06** at limit ** 2 Prefactor .27756E-09 2.6953 .99360E-07** at limit ** 3 Prefactor 5.3737 4.8220 -.28419E-06 .89599E-02 4 Prefactor 17.745 1.4478 -.26844E-07 -.39177E-03 5 Prefactor .11491E-07 5.3485 -.30664E-06** at limit ** 6 norm 2.0198 1.1394 -.17234E-06 -.14339E-02 7 Prefactor 19.821 5.1170 -.13148E-06 .56584E-01 8 Prefactor 7.5819 1.6396 .69328E-07 -.13164E-01 9 norm 5.8099 7.4331 .36961E-06 .35753E-01 10 Prefactor .89734E-06 6.8785 -.34680E-06** at limit ** 11 Prefactor 4.5531 3.2056 .43795E-07 .17434E-02 12 Prefactor .76006E-06 9.2821 .13033E-06** at limit ** 13 norm 4.4589 4.5545 -.69945E-07 .79789E-03 14 Prefactor 4.3257 5.6490 .11613E-06 .16785E-02 15 norm .66258 .39707 .38915E-07 .61638E-02 16 Prefactor 6.5674 4.3440 .31804E-07 -.26896E-03 17 Prefactor 1.5948 1.4382 .70163E-07 .27820E-02 18 Prefactor 11.368 2.0121 -.68718E-07 .98882E-02 19 Prefactor .30387E-06 4.8324 .14107E-06** at limit ** 20 Prefactor 26.235 1.0772 .39871E-08 -.30256E-02 21 Prefactor 6.2737 4.3297 -.25579E-07 .11485E-02 22 Prefactor .17741E-06 7.1010 -.17000E-06** at limit ** 23 norm 8.6987 1.9872 -.17295E-07 -.22270E-02 24 norm 1.3447 .37873 .39885E-08 .10271E-02 25 norm 11.631 3.0876 -.58875E-07 -.28793E-02 26 Prefactor 2.1862 7.8627 .52977E-06 .23454E-01 27 Prefactor .61906E-06 19.017 -.10231E-05** at limit ** 28 Prefactor .32717 8.3855 -.90149E-06 .75305E-03 29 Prefactor .34417E-08 5.9237 .50625E-07** at limit ** 30 Normalizat 1.1077 .11283 .82086E-06 .14451E-03 31 Prefactor .88152 .91795E-01 .96287E-06 .19545E-03 ERR DEF= .500 Final values: Prefactor = 1.96354e-06 Prefactor = 2.77556e-10 Prefactor = 5.3737 Prefactor = 17.7448 Prefactor = 1.14908e-08 norm = 2.01979 Prefactor = 19.821 Prefactor = 7.58193 norm = 5.80995 Prefactor = 8.97338e-07 Prefactor = 4.55308 Prefactor = 7.60059e-07 norm = 4.45894 Prefactor = 4.32575 norm = 0.662579 Prefactor = 6.5674 Prefactor = 1.59481 Prefactor = 11.3684 Prefactor = 3.03868e-07 Prefactor = 26.2349 Prefactor = 6.27365 Prefactor = 1.77414e-07 norm = 8.69872 norm = 1.34468 norm = 11.6312 Prefactor = 2.18618 Prefactor = 6.1906e-07 Prefactor = 0.327175 Prefactor = 3.44169e-09 Normalizat = 1.10771 Prefactor = 0.881523 ********** ** 18 **HESSE ********** FCN= 22185.57 FROM HESSE STATUS=OK 708 CALLS 3007 TOTAL EDM= .50E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .19635E-05 14.127 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Prefactor .27756E-09 2.7554 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 3 Prefactor 5.3737 9.9357 .43337E-03 -1.5662 4 Prefactor 17.745 21.520 .23587E-03 -1.5624 5 Prefactor .11491E-07 5.5163 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 6 norm 2.0198 1.1453 .72802E-03 -1.5680 7 Prefactor 19.821 26.673 .22345E-03 -1.5619 8 Prefactor 7.5819 12.937 .36360E-03 -1.5653 9 norm 5.8099 7.7901 .41643E-03 -1.5660 10 Prefactor .89734E-06 19.851 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 Prefactor 4.5531 3.2054 .47105E-03 -1.5665 12 Prefactor .76006E-06 12.112 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 13 norm 4.4589 4.5652 .47869E-03 -1.5666 14 Prefactor 4.3257 5.6724 .48416E-03 -1.5666 15 norm .66258 .44363 .63803E-03 -1.5692 16 Prefactor 6.5674 4.4079 .39162E-03 -1.5657 17 Prefactor 1.5948 1.6250 .83976E-03 -1.5683 18 Prefactor 11.368 10.300 .29681E-03 -1.5641 19 Prefactor .30387E-06 1.3971 .56333E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 20 Prefactor 26.235 15.121 .19520E-03 -1.5606 21 Prefactor 6.2737 4.3697 .39956E-03 -1.5658 22 Prefactor .17741E-06 18.593 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 23 norm 8.6987 1.9964 .33957E-03 -1.5649 24 norm 1.3447 .38644 .94419E-03 -1.5685 25 norm 11.631 3.1137 .29358E-03 -1.5640 26 Prefactor 2.1862 8.9867 .69518E-03 -1.5678 27 Prefactor .61906E-06 23.101 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 28 Prefactor .32717 1.1895 .80793E-02 -1.5697 29 Prefactor .34417E-08 6.1168 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 30 Normalizat 1.1077 .98993E-01 .57999E-01 -.89505 31 Prefactor .88152 .79029E-01 .44771E-01 -.96790 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 5.00334e-07 Minuit parameter uncertainties: 1 0.0105334 2 5.56107e-05 3 9.93574 4 21.5196 5 0.000503678 6 1.1453 7 26.6736 8 12.9366 9 7.79008 10 0.00844115 11 3.20536 12 0.00606817 13 4.56525 14 5.67243 15 0.443629 16 4.40786 17 1.62503 18 10.2998 19 0.00130317 20 15.1208 21 4.36971 22 0.00363253 23 1.99642 24 0.386442 25 3.11371 26 8.86491 27 0.00756334 28 1.18954 29 0.00028945 30 0.0990095 31 0.079039 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 22185.5709335 Extracting fit parameters... 4FGL J1640.3+6850 Spectrum: PowerLaw 350 Prefactor: 7.601e-07 6.068e-03 0.000e+00 1.000e+06 ( 1.000e-14) 351 Index: 2.132e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 352 Scale: 2.329e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 673 Prefactor: 8.815e-01 7.904e-02 0.000e+00 1.000e+01 ( 1.000e+00) 674 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 675 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 672 Normalization: 1.108e+00 9.901e-02 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): -0.00 Ra Dec: 250.082 68.848 Photon Flux Upper Limit: 2.53084364612e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00191841336417 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/14090054/likelihoodResults_780278401_780883201_4FGL_J1640.3+6850_weekly_bin895.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): 102 logL (Free Index) = 22185.6113014 delta logL = -0.0403678416369 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 22185.5709352 delta logL = -1.68359474628e-06 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .59994E-04 1.0000 .0000 .10000E+07 2 'Index ' 2.7305 1.0000 .0000 10.000 3 'Normalizat' 1.1077 1.0000 .10000E-01 10.000 4 'Prefactor ' .88154 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .6760E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 22185.57 FROM MIGRAD STATUS=CONVERGED 45 CALLS 214 TOTAL EDM= .20E-11 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .0000 10.368 .42118E-03** at limit ** 2 Index 1.9059 .88780 -.12892E-04 .0000 3 Normalizat 1.1077 1.1500 -.37877E-05 .36203E-04 4 Prefactor .88152 1.2273 .44368E-05 .82630E-04 ERR DEF= .500 Final values: Prefactor = 0 Index = 1.90587 Normalizat = 1.10771 Prefactor = 0.881523 ********** ** 18 **HESSE ********** MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 22185.57 FROM HESSE STATUS=FAILED 9 CALLS 223 TOTAL EDM= .20E-11 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .0000 10.368 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .38223 1.6037 -.12892E-04 -.66725 3 Normalizat 1.1077 1.1500 -.37877E-05 -.89505 4 Prefactor .88152 1.2273 .44368E-05 -.96790 ERR DEF= .500 Minuit fit quality: 1 estimated distance: 1.98583e-12 Minuit parameter uncertainties: 1 1.73987e-06 2 0.895537 3 1.1777 4 1.26928 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Done. MINUIT Return Code (Free Index): 101 logL (Free Index) = 22185.5709335 delta logL = 3.13448254019e-08 Extracting fit parameters... 4FGL J1640.3+6850 Spectrum: PowerLaw 350 Prefactor: 0.000e+00 1.740e-06 0.000e+00 1.000e+06 ( 1.000e-14) 351 Index: 1.906e+00 8.955e-01 0.000e+00 1.000e+01 (-1.000e+00) 352 Scale: 2.329e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 673 Prefactor: 8.815e-01 1.269e+00 0.000e+00 1.000e+01 ( 1.000e+00) 674 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 675 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 672 Normalization: 1.108e+00 1.178e+00 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): -0.00 Ra Dec: 250.082 68.848 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/14090054/cmap_HighResolution_780278401_780883201_4FGL_J1640.3+6850_weekly_bin895.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-03', job_status='DONE', photon_flux_upper_limit='2.53e-08', time_completed='2025-10-20 11:44:51.180377', job_id='14090054', GAL2='0.88', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1760985891.18', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.13e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='895' AND source_name='4FGL J1640.3+6850' AND cadence='weekly'; Database successfully updated. Analysis Complete. Mon Oct 20 11:44:51 PDT 2025