/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). e GAL_V02 Working on... /lscratch/kocevski/18890176/ft1_filtered_4FGL_J2225.6+2120_weekly_bin777.fits.....................! real 115.70 user 114.24 sys 0.70 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/18890176/ft1_filtered_4FGL_J2225.6+2120_weekly_bin777.fits', '/lscratch/kocevski/18890176/ft2_4FGL_J2225.6+2120_weekly_bin777.fits', expMap='/lscratch/kocevski/18890176/expmap_708912001_709516801_4FGL_J2225.6+2120_weekly_bin777.fits', expCube='/lscratch/kocevski/18890176/ltcube_708912001_709516801_4FGL_J2225.6+2120_weekly_bin777.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18890176/Model_4FGL_J2225.6+2120_weekly_bin777.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2225.6+2120' 4FGL J2225.6+2120 Spectrum: PowerLaw 273 Prefactor: 3.284e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-12) 274 Index: 2.811e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 275 Scale: 4.626e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/18890176/ft1_filtered_4FGL_J2225.6+2120_weekly_bin777.fits Spacecraft file(s): /lscratch/kocevski/18890176/ft2_4FGL_J2225.6+2120_weekly_bin777.fits Exposure map: /lscratch/kocevski/18890176/expmap_708912001_709516801_4FGL_J2225.6+2120_weekly_bin777.fits Exposure cube: /lscratch/kocevski/18890176/ltcube_708912001_709516801_4FGL_J2225.6+2120_weekly_bin777.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/18890176/Model_4FGL_J2225.6+2120_weekly_bin777.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) = 35172.5422455 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 35172.183813 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' 22.466 1.0000 .0000 .10000E+07 2 'norm ' .15488E-07 1.0000 .0000 .10000E+07 3 'Prefactor ' 54.655 1.0000 .0000 .10000E+07 4 'norm ' .58453E-07 1.0000 .0000 .10000E+07 5 'Prefactor ' 7.9941 1.0000 .0000 .10000E+07 6 'norm ' .39986E-01 1.0000 .0000 .10000E+07 7 'Prefactor ' 3.0782 1.0000 .0000 .10000E+07 8 'norm ' 2.4520 1.0000 .0000 .10000E+07 9 'Prefactor ' .37481E-06 1.0000 .0000 .10000E+07 10 'Prefactor ' .49511E-05 1.0000 .0000 .10000E+07 11 'Prefactor ' 2.9146 1.0000 .10000E-03 10000. 12 'Prefactor ' 6.2090 1.0000 .10000E-03 10000. 13 'norm ' 1.0419 1.0000 .0000 .10000E+07 14 'norm ' 2.2808 1.0000 .0000 .10000E+07 15 'Prefactor ' 11.350 1.0000 .0000 .10000E+07 16 'Prefactor ' 4.2081 1.0000 .0000 .10000E+07 17 'Prefactor ' .74123 1.0000 .10000E-03 10000. 18 'Prefactor ' 3.3903 1.0000 .0000 .10000E+07 19 'Prefactor ' 3.5203 1.0000 .0000 .10000E+07 20 'Normalizat' 1.0268 1.0000 .10000E-01 10.000 21 'Prefactor ' .95620 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5150E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 35172.18 FROM MIGRAD STATUS=CONVERGED 135 CALLS 1036 TOTAL EDM= .44E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= .5% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor 22.580 29.090 .42615E-07 -.17348E-01 2 norm .0000 .49438 .34403E-07** at limit ** 3 Prefactor 54.180 15.058 .68626E-08 -.15712E-01 4 norm .0000 .14602 -.82790E-08** at limit ** 5 Prefactor 8.0084 3.8781 .34685E-08 .44046E-01 6 norm .38367E-01 .73955 .37589E-07** at limit ** 7 Prefactor 3.0817 4.9349 -.91738E-07 -.13060E-02 8 norm 2.4527 1.9312 .68544E-07 .30886E-02 9 Prefactor .72164E-09 8.2551 .22148E-06** at limit ** 10 Prefactor .22204E-09 6.9471 .10935E-06** at limit ** 11 Prefactor 2.9144 .18736 .87350E-08 -.51574E-03 12 Prefactor 6.2102 3.8905 -.37815E-07 -.18632E-04 13 norm 1.0415 .43330 .76779E-08 .23054E-02 14 norm 2.2801 .75061 -.21236E-07 -.53662E-02 15 Prefactor 11.387 2.6996 .45295E-08 -.78371E-01 16 Prefactor 4.2032 4.3929 .11154E-08 -.16676E-03 17 Prefactor .74099 .90806E-01 -.49646E-07 -.32523E-02 18 Prefactor 3.3902 4.8468 .91114E-08 .57698E-03 19 Prefactor 3.5330 6.4077 .36324E-07 .29639E-03 20 Normalizat 1.0271 .12846 -.29309E-06 -.81303E-04 21 Prefactor .95624 .63568E-01 .32063E-07 -.12459E-03 ERR DEF= .500 Final values: Prefactor = 22.5803 norm = 0 Prefactor = 54.18 norm = 0 Prefactor = 8.00842 norm = 0.0383672 Prefactor = 3.08168 norm = 2.45269 Prefactor = 7.21645e-10 Prefactor = 2.22045e-10 Prefactor = 2.91435 Prefactor = 6.2102 norm = 1.04146 norm = 2.28011 Prefactor = 11.3866 Prefactor = 4.20321 Prefactor = 0.740992 Prefactor = 3.39023 Prefactor = 3.53296 Normalizat = 1.02707 Prefactor = 0.956245 number of points = 17691 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J2225.6+2120_weekly_bin777 RA = 336.414, Dec = 21.3418 tmin = 708912001, tmax = 709516801 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='18891791', job_status='RUN', time_executed='2023-07-10 10:33:33.679544', time_epoch_executed='1689010413.68' WHERE source_name='4FGL J2225.6+2120' and cadence='weekly' and bin_id='777' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/18891791 Creating custom pfile directory: /lscratch/kocevski/18891791/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=708912001.0 && nMetStart<709516801.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=708912001.0 && nMetStart<709516801.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/18891791/ft1_4FGL_J2225.6+2120_weekly_bin777.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=708912001.0 && nMetStart<709516801.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/18891791/ft2_4FGL_J2225.6+2120_weekly_bin777.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/18891791/ft1_4FGL_J2225.6+2120_weekly_bin777.fits outfile=/lscratch/kocevski/18891791/ft1_filteredMKT_4FGL_J2225.6+2120_weekly_bin777.fits ra=336.414 dec=21.3418 rad=12.0 tmin=708912001.0 tmax=709516801.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 3.16 user 2.59 sys 0.19 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18891791/ft2_4FGL_J2225.6+2120_weekly_bin777.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/18891791/ft2_4FGL_J2225.6+2120_weekly_bin777.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/18891791/ft1_filteredMKT_4FGL_J2225.6+2120_weekly_bin777.fits evtable="EVENTS" outfile="/lscratch/kocevski/18891791/ft1_filtered_4FGL_J2225.6+2120_weekly_bin777.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.87 user 0.19 sys 0.14 Number of photons that the gtmktime cut: 3356 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/18891791/ft1_filtered_4FGL_J2225.6+2120_weekly_bin777.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18891791/ft2_4FGL_J2225.6+2120_weekly_bin777.fits sctable="SC_DATA" ********** ** 18 **HESSE ********** FCN= 35172.18 FROM HESSE STATUS=OK 373 CALLS 1409 TOTAL EDM= .39E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor 22.580 30.193 .21103E-03 -1.5613 2 norm .0000 .48632 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 3 Prefactor 54.180 15.179 .13527E-03 -1.5561 4 norm .0000 .14377 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 Prefactor 8.0084 17.418 .35438E-03 -1.5651 6 norm .38367E-01 .14324 .23623E-02 -1.5712 WARNING - - ABOVE PARAMETER IS AT LIMIT. 7 Prefactor 3.0817 4.9579 .57786E-03 -1.5673 8 norm 2.4527 1.9380 .65297E-03 -1.5677 9 Prefactor .72164E-09 8.2797 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .22204E-09 6.8872 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 Prefactor 2.9144 .18758 .44596E-02 -1.5367 12 Prefactor 6.2102 3.8869 .40276E-02 -1.5210 13 norm 1.0415 .43799 .12242E-02 -1.5688 14 norm 2.2801 .75459 .67957E-03 -1.5678 15 Prefactor 11.387 11.800 .29712E-03 -1.5640 16 Prefactor 4.2032 4.3998 .49101E-03 -1.5667 17 Prefactor .74099 .91724E-01 .42150E-02 -1.5536 18 Prefactor 3.3902 4.8555 .54925E-03 -1.5671 19 Prefactor 3.5330 6.4173 .53855E-03 -1.5670 20 Normalizat 1.0271 .10896 .82619E-01 -.92129 21 Prefactor .95624 .53576E-01 .45717E-01 -.94203 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 3.949e-07 Minuit parameter uncertainties: 1 30.1931 2 1.65166e-06 3 15.179 4 2.05646e-07 5 17.4178 6 0.14324 7 4.95794 8 1.93805 9 0.000157331 10 7.5832e-05 11 0.187577 12 3.88705 13 0.437988 14 0.754591 15 11.8 16 4.39977 17 0.0917241 18 4.85551 19 6.41732 20 0.108988 21 0.0535785 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 35172.1832915 Extracting fit parameters... 4FGL J2225.6+2120 Spectrum: PowerLaw 273 Prefactor: 2.220e-10 7.583e-05 0.000e+00 1.000e+06 ( 1.000e-12) 274 Index: 2.811e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 275 Scale: 4.626e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 512 Prefactor: 9.562e-01 5.358e-02 0.000e+00 1.000e+01 ( 1.000e+00) 513 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 514 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 511 Normalization: 1.027e+00 1.090e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): -0.00 Ra Dec: 336.414 21.342 Photon Flux Upper Limit: 4.20269305319e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00332914661692 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/18890176/likelihoodResults_708912001_709516801_4FGL_J2225.6+2120_weekly_bin777.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) = 35172.1840999 delta logL = -0.000808440789115 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 35172.1832915 delta logL = -3.67581378669e-08 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .10886E-06 1.0000 .0000 .10000E+07 2 'Index ' 2.2513 1.0000 .0000 10.000 3 'Normalizat' 1.0271 1.0000 .10000E-01 10.000 4 'Prefactor ' .95624 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5150E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 35172.18 FROM MIGRAD STATUS=CONVERGED 53 CALLS 269 TOTAL EDM= .21E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .0000 .54775 .50205E-02** at limit ** 2 Index 3.9905 1.1887 .16004E-04 .0000 3 Normalizat 1.0271 1.2447 .24375E-04 .65259E-04 4 Prefactor .95624 1.2981 -.11037E-04 -.70599E-03 ERR DEF= .500 Final values: Prefactor = 0 Index = 3.99048 Normalizat = 1.02708 Prefactor = 0.956243 ********** ** 18 **HESSE ********** MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 35172.18 FROM HESSE STATUS=FAILED 9 CALLS 278 TOTAL EDM= .21E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .0000 .54775 .50205E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index 1.7283 2.2923 .16004E-04 -.20330 3 Normalizat 1.0271 1.2447 .24375E-04 -.92129 4 Prefactor .95624 1.2981 -.11037E-04 -.94203 ERR DEF= .500 Minuit fit quality: 1 estimated distance: 2.05441e-10 Minuit parameter uncertainties: 1 5.40392e-06 2 1.2007 3 1.28288 4 1.34445 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) = 35172.1832915 delta logL = -1.30967237055e-10 Extracting fit parameters... 4FGL J2225.6+2120 Spectrum: PowerLaw 273 Prefactor: 0.000e+00 5.404e-06 0.000e+00 1.000e+06 ( 1.000e-12) 274 Index: 3.990e+00 1.201e+00 0.000e+00 1.000e+01 (-1.000e+00) 275 Scale: 4.626e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 512 Prefactor: 9.562e-01 1.344e+00 0.000e+00 1.000e+01 ( 1.000e+00) 513 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 514 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 511 Normalization: 1.027e+00 1.283e+00 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): -0.00 Ra Dec: 336.414 21.342 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/18890176/cmap_HighResolution_708912001_709516801_4FGL_J2225.6+2120_weekly_bin777.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-03', job_status='DONE', photon_flux_upper_limit='4.20e-08', time_completed='2023-07-10 10:39:28.065506', job_id='18890176', GAL2='0.96', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1689010768.07', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-1.31e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='777' AND source_name='4FGL J2225.6+2120' AND cadence='weekly'; Database successfully updated. Analysis Complete. Mon Jul 10 10:39:28 PDT 2023 outfile=/lscratch/kocevski/18891791/ltcube_708912001_709516801_4FGL_J2225.6+2120_weekly_bin777.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/18891791/ft2_4FGL_J2225.6+2120_weekly_bin777.fits .....................! real 16.34 user 15.89 sys 0.20 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/18891791/ft1_filtered_4FGL_J2225.6+2120_weekly_bin777.fits evtable="EVENTS" scfile=/lscratch/kocevski/18891791/ft2_4FGL_J2225.6+2120_weekly_bin777.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18891791/ltcube_708912001_709516801_4FGL_J2225.6+2120_weekly_bin777.fits outfile=/lscratch/kocevski/18891791/expmap_708912001_709516801_4FGL_J2225.6+2120_weekly_bin777.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/18891791/ltcube_708912001_709516801_4FGL_J2225.6+2120_weekly_bin777.fits .....................! real 59.51 user 55.26 sys 3.71 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 156 point sources and 0 extended sources Setting source of interest to: 4FGL J2225.6+2120 @ 336.414 21.3418 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/18891791/ft1_filtered_4FGL_J2225.6+2120_weekly_bin777.fits scfile=/lscratch/kocevski/18891791/ft2_4FGL_J2225.6+2120_weekly_bin777.fits outfile=/lscratch/kocevski/18891791/cmap_708912001_709516801_4FGL_J2225.6+2120_weekly_bin777.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=336.414 yref=21.3418 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.58 user 0.21 sys 0.14 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/18891791/ft1_filtered_4FGL_J2225.6+2120_weekly_bin777.fits scfile=/lscratch/kocevski/18891791/ft2_4FGL_J2225.6+2120_weekly_bin777.fits outfile=/lscratch/kocevski/18891791/cmap_HighResolution_708912001_709516801_4FGL_J2225.6+2120_weekly_bin777.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=336.414 yref=21.3418 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.22 sys 0.18 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/18891791/ft1_filtered_4FGL_J2225.6+2120_weekly_bin777.fits evtable="EVENTS" scfile=/lscratch/kocevski/18891791/ft2_4FGL_J2225.6+2120_weekly_bin777.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18891791/Model_4FGL_J2225.6+2120_weekly_bin777.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/18891791/ft1_filtered_4FGL_J2225.6+2120_weekly_bin777.fits.....................! real 101.66 user 99.88 sys 1.10 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/18891791/ft1_filtered_4FGL_J2225.6+2120_weekly_bin777.fits', '/lscratch/kocevski/18891791/ft2_4FGL_J2225.6+2120_weekly_bin777.fits', expMap='/lscratch/kocevski/18891791/expmap_708912001_709516801_4FGL_J2225.6+2120_weekly_bin777.fits', expCube='/lscratch/kocevski/18891791/ltcube_708912001_709516801_4FGL_J2225.6+2120_weekly_bin777.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18891791/Model_4FGL_J2225.6+2120_weekly_bin777.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2225.6+2120' 4FGL J2225.6+2120 Spectrum: PowerLaw 273 Prefactor: 3.284e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-12) 274 Index: 2.811e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 275 Scale: 4.626e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/18891791/ft1_filtered_4FGL_J2225.6+2120_weekly_bin777.fits Spacecraft file(s): /lscratch/kocevski/18891791/ft2_4FGL_J2225.6+2120_weekly_bin777.fits Exposure map: /lscratch/kocevski/18891791/expmap_708912001_709516801_4FGL_J2225.6+2120_weekly_bin777.fits Exposure cube: /lscratch/kocevski/18891791/ltcube_708912001_709516801_4FGL_J2225.6+2120_weekly_bin777.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/18891791/Model_4FGL_J2225.6+2120_weekly_bin777.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) = 35172.5422455 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 35172.183813 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' 22.466 1.0000 .0000 .10000E+07 2 'norm ' .15488E-07 1.0000 .0000 .10000E+07 3 'Prefactor ' 54.655 1.0000 .0000 .10000E+07 4 'norm ' .58453E-07 1.0000 .0000 .10000E+07 5 'Prefactor ' 7.9941 1.0000 .0000 .10000E+07 6 'norm ' .39986E-01 1.0000 .0000 .10000E+07 7 'Prefactor ' 3.0782 1.0000 .0000 .10000E+07 8 'norm ' 2.4520 1.0000 .0000 .10000E+07 9 'Prefactor ' .37481E-06 1.0000 .0000 .10000E+07 10 'Prefactor ' .49511E-05 1.0000 .0000 .10000E+07 11 'Prefactor ' 2.9146 1.0000 .10000E-03 10000. 12 'Prefactor ' 6.2090 1.0000 .10000E-03 10000. 13 'norm ' 1.0419 1.0000 .0000 .10000E+07 14 'norm ' 2.2808 1.0000 .0000 .10000E+07 15 'Prefactor ' 11.350 1.0000 .0000 .10000E+07 16 'Prefactor ' 4.2081 1.0000 .0000 .10000E+07 17 'Prefactor ' .74123 1.0000 .10000E-03 10000. 18 'Prefactor ' 3.3903 1.0000 .0000 .10000E+07 19 'Prefactor ' 3.5203 1.0000 .0000 .10000E+07 20 'Normalizat' 1.0268 1.0000 .10000E-01 10.000 21 'Prefactor ' .95620 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5150E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 35172.18 FROM MIGRAD STATUS=CONVERGED 135 CALLS 1036 TOTAL EDM= .44E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= .5% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor 22.580 29.090 .42615E-07 -.17348E-01 2 norm .0000 .49438 .34403E-07** at limit ** 3 Prefactor 54.180 15.058 .68626E-08 -.15712E-01 4 norm .0000 .14602 -.82790E-08** at limit ** 5 Prefactor 8.0084 3.8781 .34685E-08 .44046E-01 6 norm .38367E-01 .73955 .37589E-07** at limit ** 7 Prefactor 3.0817 4.9349 -.91738E-07 -.13060E-02 8 norm 2.4527 1.9312 .68544E-07 .30886E-02 9 Prefactor .72164E-09 8.2551 .22148E-06** at limit ** 10 Prefactor .22204E-09 6.9471 .10935E-06** at limit ** 11 Prefactor 2.9144 .18736 .87350E-08 -.51574E-03 12 Prefactor 6.2102 3.8905 -.37815E-07 -.18632E-04 13 norm 1.0415 .43330 .76779E-08 .23054E-02 14 norm 2.2801 .75061 -.21236E-07 -.53662E-02 15 Prefactor 11.387 2.6996 .45295E-08 -.78371E-01 16 Prefactor 4.2032 4.3929 .11154E-08 -.16676E-03 17 Prefactor .74099 .90806E-01 -.49646E-07 -.32523E-02 18 Prefactor 3.3902 4.8468 .91114E-08 .57698E-03 19 Prefactor 3.5330 6.4077 .36324E-07 .29639E-03 20 Normalizat 1.0271 .12846 -.29309E-06 -.81303E-04 21 Prefactor .95624 .63568E-01 .32063E-07 -.12459E-03 ERR DEF= .500 Final values: Prefactor = 22.5803 norm = 0 Prefactor = 54.18 norm = 0 Prefactor = 8.00842 norm = 0.0383672 Prefactor = 3.08168 norm = 2.45269 Prefactor = 7.21645e-10 Prefactor = 2.22045e-10 Prefactor = 2.91435 Prefactor = 6.2102 norm = 1.04146 norm = 2.28011 Prefactor = 11.3866 Prefactor = 4.20321 Prefactor = 0.740992 Prefactor = 3.39023 Prefactor = 3.53296 Normalizat = 1.02707 Prefactor = 0.956245 ********** ** 18 **HESSE ********** FCN= 35172.18 FROM HESSE STATUS=OK 373 CALLS 1409 TOTAL EDM= .39E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor 22.580 30.193 .21103E-03 -1.5613 2 norm .0000 .48632 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 3 Prefactor 54.180 15.179 .13527E-03 -1.5561 4 norm .0000 .14377 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 Prefactor 8.0084 17.418 .35438E-03 -1.5651 6 norm .38367E-01 .14324 .23623E-02 -1.5712 WARNING - - ABOVE PARAMETER IS AT LIMIT. 7 Prefactor 3.0817 4.9579 .57786E-03 -1.5673 8 norm 2.4527 1.9380 .65297E-03 -1.5677 9 Prefactor .72164E-09 8.2797 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .22204E-09 6.8872 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 Prefactor 2.9144 .18758 .44596E-02 -1.5367 12 Prefactor 6.2102 3.8869 .40276E-02 -1.5210 13 norm 1.0415 .43799 .12242E-02 -1.5688 14 norm 2.2801 .75459 .67957E-03 -1.5678 15 Prefactor 11.387 11.800 .29712E-03 -1.5640 16 Prefactor 4.2032 4.3998 .49101E-03 -1.5667 17 Prefactor .74099 .91724E-01 .42150E-02 -1.5536 18 Prefactor 3.3902 4.8555 .54925E-03 -1.5671 19 Prefactor 3.5330 6.4173 .53855E-03 -1.5670 20 Normalizat 1.0271 .10896 .82619E-01 -.92129 21 Prefactor .95624 .53576E-01 .45717E-01 -.94203 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 3.949e-07 Minuit parameter uncertainties: 1 30.1931 2 1.65166e-06 3 15.179 4 2.05646e-07 5 17.4178 6 0.14324 7 4.95794 8 1.93805 9 0.000157331 10 7.5832e-05 11 0.187577 12 3.88705 13 0.437988 14 0.754591 15 11.8 16 4.39977 17 0.0917241 18 4.85551 19 6.41732 20 0.108988 21 0.0535785 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 35172.1832915 Extracting fit parameters... 4FGL J2225.6+2120 Spectrum: PowerLaw 273 Prefactor: 2.220e-10 7.583e-05 0.000e+00 1.000e+06 ( 1.000e-12) 274 Index: 2.811e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 275 Scale: 4.626e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 512 Prefactor: 9.562e-01 5.358e-02 0.000e+00 1.000e+01 ( 1.000e+00) 513 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 514 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 511 Normalization: 1.027e+00 1.090e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): -0.00 Ra Dec: 336.414 21.342 Photon Flux Upper Limit: 4.20269305319e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00332914661692 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/18891791/likelihoodResults_708912001_709516801_4FGL_J2225.6+2120_weekly_bin777.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) = 35172.1840999 delta logL = -0.000808440789115 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 35172.1832915 delta logL = -3.67581378669e-08 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .10886E-06 1.0000 .0000 .10000E+07 2 'Index ' 2.2513 1.0000 .0000 10.000 3 'Normalizat' 1.0271 1.0000 .10000E-01 10.000 4 'Prefactor ' .95624 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5150E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 35172.18 FROM MIGRAD STATUS=CONVERGED 53 CALLS 269 TOTAL EDM= .21E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .0000 .54775 .50205E-02** at limit ** 2 Index 3.9905 1.1887 .16004E-04 .0000 3 Normalizat 1.0271 1.2447 .24375E-04 .65259E-04 4 Prefactor .95624 1.2981 -.11037E-04 -.70599E-03 ERR DEF= .500 Final values: Prefactor = 0 Index = 3.99048 Normalizat = 1.02708 Prefactor = 0.956243 ********** ** 18 **HESSE ********** MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 35172.18 FROM HESSE STATUS=FAILED 9 CALLS 278 TOTAL EDM= .21E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .0000 .54775 .50205E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index 1.7283 2.2923 .16004E-04 -.20330 3 Normalizat 1.0271 1.2447 .24375E-04 -.92129 4 Prefactor .95624 1.2981 -.11037E-04 -.94203 ERR DEF= .500 Minuit fit quality: 1 estimated distance: 2.05441e-10 Minuit parameter uncertainties: 1 5.40392e-06 2 1.2007 3 1.28288 4 1.34445 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) = 35172.1832915 delta logL = -1.30967237055e-10 Extracting fit parameters... 4FGL J2225.6+2120 Spectrum: PowerLaw 273 Prefactor: 0.000e+00 5.404e-06 0.000e+00 1.000e+06 ( 1.000e-12) 274 Index: 3.990e+00 1.201e+00 0.000e+00 1.000e+01 (-1.000e+00) 275 Scale: 4.626e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 512 Prefactor: 9.562e-01 1.344e+00 0.000e+00 1.000e+01 ( 1.000e+00) 513 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 514 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 511 Normalization: 1.027e+00 1.283e+00 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): -0.00 Ra Dec: 336.414 21.342 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/18891791/cmap_HighResolution_708912001_709516801_4FGL_J2225.6+2120_weekly_bin777.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-03', job_status='DONE', photon_flux_upper_limit='4.20e-08', time_completed='2023-07-10 10:45:54.401238', job_id='18891791', GAL2='0.96', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1689011154.4', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-1.31e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='777' AND source_name='4FGL J2225.6+2120' AND cadence='weekly'; Database successfully updated. Analysis Complete. Mon Jul 10 10:45:54 PDT 2023