/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 = 17127 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J1640.4+3945_weekly_bin791 RA = 250.119, Dec = 39.7626 tmin = 717379201, tmax = 717984001 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='29832279', job_status='RUN', time_executed='2023-10-03 01:01:04.189829', time_epoch_executed='1696320064.19' WHERE source_name='4FGL J1640.4+3945' and cadence='weekly' and bin_id='791' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/29832279 Creating custom pfile directory: /lscratch/kocevski/29832279/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=717379201.0 && nMetStart<717984001.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=717379201.0 && nMetStart<717984001.0' /Data/Flight/Level1/LPA Retrieving 106 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/29832279/ft1_4FGL_J1640.4+3945_weekly_bin791.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=717379201.0 && nMetStart<717984001.0' /Data/Flight/Level1/LPA Retrieving 106 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/29832279/ft2_4FGL_J1640.4+3945_weekly_bin791.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/29832279/ft1_4FGL_J1640.4+3945_weekly_bin791.fits outfile=/lscratch/kocevski/29832279/ft1_filteredMKT_4FGL_J1640.4+3945_weekly_bin791.fits ra=250.119 dec=39.7626 rad=12.0 tmin=717379201.0 tmax=717984001.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.71 user 4.39 sys 0.26 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/29832279/ft2_4FGL_J1640.4+3945_weekly_bin791.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/29832279/ft2_4FGL_J1640.4+3945_weekly_bin791.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/29832279/ft1_filteredMKT_4FGL_J1640.4+3945_weekly_bin791.fits evtable="EVENTS" outfile="/lscratch/kocevski/29832279/ft1_filtered_4FGL_J1640.4+3945_weekly_bin791.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.37 user 0.22 sys 0.12 Number of photons that the gtmktime cut: 1663 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/29832279/ft1_filtered_4FGL_J1640.4+3945_weekly_bin791.fits" evtable="EVENTS" scfile=/lscratch/kocevski/29832279/ft2_4FGL_J1640.4+3945_weekly_bin791.fits sctable="SC_DATA" outfile=/lscratch/kocevski/29832279/ltcube_717379201_717984001_4FGL_J1640.4+3945_weekly_bin791.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/29832279/ft2_4FGL_J1640.4+3945_weekly_bin791.fits .....................! real 17.88 user 17.46 sys 0.23 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/29832279/ft1_filtered_4FGL_J1640.4+3945_weekly_bin791.fits evtable="EVENTS" scfile=/lscratch/kocevski/29832279/ft2_4FGL_J1640.4+3945_weekly_bin791.fits sctable="SC_DATA" expcube=/lscratch/kocevski/29832279/ltcube_717379201_717984001_4FGL_J1640.4+3945_weekly_bin791.fits outfile=/lscratch/kocevski/29832279/expmap_717379201_717984001_4FGL_J1640.4+3945_weekly_bin791.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/29832279/ltcube_717379201_717984001_4FGL_J1640.4+3945_weekly_bin791.fits .....................! real 69.07 user 64.91 sys 3.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 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/29832279/ft1_filtered_4FGL_J1640.4+3945_weekly_bin791.fits scfile=/lscratch/kocevski/29832279/ft2_4FGL_J1640.4+3945_weekly_bin791.fits outfile=/lscratch/kocevski/29832279/cmap_717379201_717984001_4FGL_J1640.4+3945_weekly_bin791.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.42 user 0.22 sys 0.14 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/29832279/ft1_filtered_4FGL_J1640.4+3945_weekly_bin791.fits scfile=/lscratch/kocevski/29832279/ft2_4FGL_J1640.4+3945_weekly_bin791.fits outfile=/lscratch/kocevski/29832279/cmap_HighResolution_717379201_717984001_4FGL_J1640.4+3945_weekly_bin791.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.40 user 0.23 sys 0.13 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/29832279/ft1_filtered_4FGL_J1640.4+3945_weekly_bin791.fits evtable="EVENTS" scfile=/lscratch/kocevski/29832279/ft2_4FGL_J1640.4+3945_weekly_bin791.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/29832279/Model_4FGL_J1640.4+3945_weekly_bin791.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/29832279/ft1_filtered_4FGL_J1640.4+3945_weekly_bin791.fits.....................! real 47.36 user 46.09 sys 0.88 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/29832279/ft1_filtered_4FGL_J1640.4+3945_weekly_bin791.fits', '/lscratch/kocevski/29832279/ft2_4FGL_J1640.4+3945_weekly_bin791.fits', expMap='/lscratch/kocevski/29832279/expmap_717379201_717984001_4FGL_J1640.4+3945_weekly_bin791.fits', expCube='/lscratch/kocevski/29832279/ltcube_717379201_717984001_4FGL_J1640.4+3945_weekly_bin791.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/29832279/Model_4FGL_J1640.4+3945_weekly_bin791.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/29832279/ft1_filtered_4FGL_J1640.4+3945_weekly_bin791.fits Spacecraft file(s): /lscratch/kocevski/29832279/ft2_4FGL_J1640.4+3945_weekly_bin791.fits Exposure map: /lscratch/kocevski/29832279/expmap_717379201_717984001_4FGL_J1640.4+3945_weekly_bin791.fits Exposure cube: /lscratch/kocevski/29832279/ltcube_717379201_717984001_4FGL_J1640.4+3945_weekly_bin791.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/29832279/Model_4FGL_J1640.4+3945_weekly_bin791.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) = 17827.9534825 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 17827.1743186 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .92920E-01 1.0000 .0000 .10000E+07 2 'Prefactor ' .31030E-01 1.0000 .0000 .10000E+07 3 'Prefactor ' 3.3613 1.0000 .0000 .10000E+07 4 'Prefactor ' 3.0606 1.0000 .0000 .10000E+07 5 'Prefactor ' 12.931 1.0000 .0000 .10000E+07 6 'Prefactor ' .66984E-01 1.0000 .0000 .10000E+07 7 'norm ' .14288 1.0000 .0000 .10000E+07 8 'norm ' .74063E-06 1.0000 .0000 .10000E+07 9 'Prefactor ' .70049 1.0000 .0000 .10000E+07 10 'Prefactor ' 1.7733 1.0000 .0000 .10000E+07 11 'norm ' .10734E-01 1.0000 .0000 .10000E+07 12 'Prefactor ' .78216 1.0000 .0000 .10000E+07 13 'Prefactor ' 13.471 1.0000 .0000 .10000E+07 14 'Prefactor ' .48844 1.0000 .0000 .10000E+07 15 'Prefactor ' .17342E-06 1.0000 .0000 .10000E+07 16 'norm ' 6.4810 1.0000 .0000 .10000E+07 17 'norm ' .30531E-07 1.0000 .0000 .10000E+07 18 'Prefactor ' 4.6434 1.0000 .0000 .10000E+07 19 'norm ' .38218 1.0000 .0000 .10000E+07 20 'norm ' .28137E-02 1.0000 .0000 .10000E+07 21 'norm ' 4.2347 1.0000 .0000 .10000E+07 22 'norm ' .87798E-05 1.0000 .0000 .10000E+07 23 'Prefactor ' 7.5932 1.0000 .0000 .10000E+07 24 'Normalizat' 1.2050 1.0000 .10000E-01 10.000 25 'Prefactor ' .91372 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= 17827.17 FROM MIGRAD STATUS=CONVERGED 157 CALLS 1341 TOTAL EDM= .16E-08 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 2.0% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .71420E-05 107.61 .21180E-04** at limit ** 2 Prefactor .14988E-08 36.369 -.10541E-05** at limit ** 3 Prefactor 3.3670 2.4493 -.31394E-07 -.49685E-02 4 Prefactor 3.0645 3.7882 .67893E-07 -.11398E-02 5 Prefactor 12.944 2.1864 .74883E-06 .28024E-01 6 Prefactor .67782E-01 10.081 .16039E-05** at limit ** 7 norm .14157 .98631E-01 -.37799E-07** at limit ** 8 norm .16098E-08 4.4719 .18098E-06** at limit ** 9 Prefactor 1.1723 8.7154 -.18992E-05 -.66220E-01 10 Prefactor 1.7766 2.2680 -.19100E-06 .24747E-03 11 norm .52031E-06 24.483 -.49064E-06** at limit ** 12 Prefactor .78255 1.4891 -.13760E-06 -.12310E-01 13 Prefactor 13.468 2.0004 -.18995E-07 -.49455E-01 14 Prefactor .49065 1.6431 .11731E-05 -.22463E-02 15 Prefactor .55511E-09 4.4368 .14113E-05** at limit ** 16 norm 6.4817 1.5774 .81518E-07 .18688E-02 17 norm .0000 .24961 .52773E-07** at limit ** 18 Prefactor 4.6539 4.7133 -.73874E-06 -.83690E-04 19 norm .38252 .42716 -.56404E-06 -.35779E-02 20 norm .17553E-06 15.318 -.63921E-05** at limit ** 21 norm 4.2358 1.3585 -.48390E-07 -.37658E-02 22 norm .55511E-10 1.2098 -.16638E-07** at limit ** 23 Prefactor 7.9783 31.335 .17640E-04 -.26695E-01 24 Normalizat 1.2041 .16146 .26572E-05 -.35336E-03 25 Prefactor .91394 .12266 .73272E-06 -.49091E-03 ERR DEF= .500 Final values: Prefactor = 7.14195e-06 Prefactor = 1.4988e-09 Prefactor = 3.36704 Prefactor = 3.06449 Prefactor = 12.9436 Prefactor = 0.0677823 norm = 0.14157 norm = 1.60982e-09 Prefactor = 1.17226 Prefactor = 1.77656 norm = 5.20306e-07 Prefactor = 0.782549 Prefactor = 13.4678 Prefactor = 0.490646 Prefactor = 5.55112e-10 norm = 6.48168 norm = 0 Prefactor = 4.65395 norm = 0.382517 norm = 1.75526e-07 norm = 4.23579 norm = 5.55112e-11 Prefactor = 7.97828 Normalizat = 1.20413 Prefactor = 0.913943 ********** ** 18 **HESSE ********** FCN= 17827.17 FROM HESSE STATUS=OK 503 CALLS 1844 TOTAL EDM= .13E-05 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .71420E-05 5.2868 .14123E-01 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Prefactor .14988E-08 36.189 .16396E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 3 Prefactor 3.3670 2.4649 .55172E-03 -1.5671 4 Prefactor 3.0645 4.6733 .57961E-03 -1.5673 5 Prefactor 12.944 14.218 .27830E-03 -1.5636 6 Prefactor .67782E-01 .62204 .65096E-02 -1.5703 WARNING - - ABOVE PARAMETER IS AT LIMIT. 7 norm .14157 .12091 .71249E-03 -1.5700 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm .16098E-08 4.4747 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 9 Prefactor 1.1723 38.248 .60668E-03 -1.5686 10 Prefactor 1.7766 2.2968 .78594E-03 -1.5681 11 norm .52031E-06 25.160 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 12 Prefactor .78255 1.6555 .54274E-03 -1.5690 13 Prefactor 13.468 2.1814 .27265E-03 -1.5635 14 Prefactor .49065 1.6609 .79881E-03 -1.5694 15 Prefactor .55511E-09 .97743 .42118E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 16 norm 6.4817 1.5807 .39399E-03 -1.5657 17 norm .0000 .24445 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 18 Prefactor 4.6539 4.8747 .46682E-03 -1.5665 19 norm .38252 .49574 .20630E-02 -1.5696 20 norm .17553E-06 15.035 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 21 norm 4.2358 1.3675 .48942E-03 -1.5667 22 norm .55511E-10 1.2205 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 23 Prefactor 7.9783 35.696 .36370E-03 -1.5651 24 Normalizat 1.2041 .13636 .64031E-01 -.86475 25 Prefactor .91394 .10207 .45180E-01 -.95656 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 1.28802e-06 Minuit parameter uncertainties: 1 0.0122895 2 0.000466491 3 2.46489 4 4.6733 5 14.2183 6 0.410674 7 0.120906 8 0.000170828 9 13.3921 10 2.29685 11 0.0072364 12 1.65547 13 2.18143 14 1.66086 15 4.63389e-05 16 1.58072 17 4.65241e-06 18 4.87475 19 0.49574 20 0.00324882 21 1.36752 22 1.42988e-05 23 33.7521 24 0.136403 25 0.102092 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 17827.1723485 Extracting fit parameters... 4FGL J1640.4+3945 Spectrum: PowerLaw 308 Prefactor: 7.825e-01 1.655e+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: 9.139e-01 1.021e-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.204e+00 1.364e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): 0.59 Ra Dec: 250.119 39.763 Photon Flux Upper Limit: 1.13011378282e-07 ph cm-2 s-1 Energy Flux Upper Limit: 0.00874506531859 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/29832279/likelihoodResults_717379201_717984001_4FGL_J1640.4+3945_weekly_bin791.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) = 17827.1705828 delta logL = 0.00176575590376 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 0 logL (Free Index) = 17827.1701325 delta logL = 0.00221603354657 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .81464 1.0000 .0000 .10000E+07 2 'Index ' 2.3735 1.0000 .0000 10.000 3 'Normalizat' 1.2053 1.0000 .10000E-01 10.000 4 'Prefactor ' .91336 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. MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT. MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. FCN= 17827.17 FROM MIGRAD STATUS=CONVERGED 92 CALLS 246 TOTAL EDM= .51E-08 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .81501 1.2217 .15381E-04 -.16557E-03 2 Index 2.3738 .73984 .98419E-02 .40424E-03 3 Normalizat 1.2053 .15245 .28314E-03 -.27657E-03 4 Prefactor .91336 .12133 .25683E-03 -.28100E-03 ERR DEF= .500 Final values: Prefactor = 0.815014 Index = 2.37381 Normalizat = 1.20532 Prefactor = 0.913357 ********** ** 18 **HESSE ********** FCN= 17827.17 FROM HESSE STATUS=OK 25 CALLS 271 TOTAL EDM= .37E-10 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .81501 1.1750 .61524E-06 -1.5690 2 Index 2.3738 .71166 .19684E-02 -.55299 3 Normalizat 1.2053 .15261 .11325E-04 -.86439 4 Prefactor .91336 .12145 .10273E-04 -.95676 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 3.72215e-11 Minuit parameter uncertainties: 1 1.17498 2 0.71502 3 0.152671 4 0.121486 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) = 17827.1701323 delta logL = 0.00221625043196 Extracting fit parameters... 4FGL J1640.4+3945 Spectrum: PowerLaw 308 Prefactor: 8.150e-01 1.175e+00 0.000e+00 1.000e+06 ( 1.000e-12) 309 Index: 2.374e+00 7.150e-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: 9.134e-01 1.215e-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.205e+00 1.527e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): 0.59 Ra Dec: 250.119 39.763 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/29832279/cmap_HighResolution_717379201_717984001_4FGL_J1640.4+3945_weekly_bin791.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.75e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2023-10-03 01:09:57.598412', job_id='29832279', GAL2='0.91', fit_tolerance='1e-08', EG2='1.21', EG='1.20', time_epoch_completed='1696320597.6', return_code2='0', ts='0.59', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.22e-03', ts2='0.68', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='791' AND source_name='4FGL J1640.4+3945' AND cadence='weekly'; Database successfully updated. Analysis Complete. Tue Oct 3 01:09:57 PDT 2023