/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). ctable="SC_DATA" srcmdl=/lscratch/kocevski/19662407/Model_4FGL_J2142.8+1958_daily_bin1820.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 Cygnus Loop adding source EG_v02 adding source GAL_V02 Working on... /lscratch/kocevski/19662407/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits.....................! real 44.59 user 42.67 sys 0.91 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/19662407/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits', '/lscratch/kocevski/19662407/ft2_4FGL_J2142.8+1958_daily_bin1820.fits', expMap='/lscratch/kocevski/19662407/expmap_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.fits', expCube='/lscratch/kocevski/19662407/ltcube_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19662407/Model_4FGL_J2142.8+1958_daily_bin1820.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2142.8+1958' 4FGL J2142.8+1958 Spectrum: PowerLaw 276 Prefactor: 4.708e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-15) 277 Index: 1.795e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 278 Scale: 6.137e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/19662407/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits Spacecraft file(s): /lscratch/kocevski/19662407/ft2_4FGL_J2142.8+1958_daily_bin1820.fits Exposure map: /lscratch/kocevski/19662407/expmap_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.fits Exposure cube: /lscratch/kocevski/19662407/ltcube_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/19662407/Model_4FGL_J2142.8+1958_daily_bin1820.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) = 9222.6062762 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 9222.59983896 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' 10.822 1.0000 .0000 .10000E+07 2 'Prefactor ' .39648 1.0000 .0000 .10000E+07 3 'Prefactor ' 37.782 1.0000 .0000 .10000E+07 4 'Prefactor ' .41137E-02 1.0000 .0000 .10000E+07 5 'Prefactor ' .90604E-05 1.0000 .0000 .10000E+07 6 'norm ' 7.2682 1.0000 .0000 .10000E+07 7 'norm ' 6.2793 1.0000 .0000 .10000E+07 8 'Prefactor ' .11690 1.0000 .0000 .10000E+07 9 'Prefactor ' .36745E-03 1.0000 .0000 .10000E+07 10 'norm ' .10568E-05 1.0000 .0000 .10000E+07 11 'Prefactor ' 8.9019 1.0000 .0000 .10000E+07 12 'norm ' 1.4316 1.0000 .0000 .10000E+07 13 'Prefactor ' 73.420 1.0000 .0000 .10000E+07 14 'norm ' 1.5645 1.0000 .0000 .10000E+07 15 'Prefactor ' 11.365 1.0000 .0000 .10000E+07 16 'norm ' .67724E-08 1.0000 .0000 .10000E+07 17 'Prefactor ' 21.081 1.0000 .0000 .10000E+07 18 'norm ' 2.7063 1.0000 .0000 .10000E+07 19 'Prefactor ' 24.923 1.0000 .0000 .10000E+07 20 'Normalizat' .81167 1.0000 .10000E-01 10.000 21 'Prefactor ' .92849 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5500E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 9222.594 FROM MIGRAD STATUS=CONVERGED 138 CALLS 1629 TOTAL EDM= .93E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 1.4% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor 10.630 12.449 -.13648E-05 -.27933E-01 2 Prefactor .96084E-06 35.815 -.49542E-06** at limit ** 3 Prefactor 37.643 13.830 -.57130E-06 .61344E-01 4 Prefactor .19817E-07 9.2981 -.54573E-07** at limit ** 5 Prefactor .0000 2.8573 .89368E-06** at limit ** 6 norm 7.2643 4.1477 .13168E-06 -.11121E-02 7 norm 6.2905 3.6690 .68838E-07 .11435E-02 8 Prefactor .12896 46.373 -.54455E-05** at limit ** 9 Prefactor .38858E-09 51.639 -.34459E-05** at limit ** 10 norm .0000 .71713 -.24169E-06** at limit ** 11 Prefactor 8.9639 7.1959 .11836E-05 -.78021E-03 12 norm 1.4321 1.4123 -.20639E-06 -.96895E-03 13 Prefactor 74.376 27.034 -.11354E-05 .94198E-02 14 norm 1.5638 1.0903 -.59432E-08 -.11326E-03 15 Prefactor 11.223 11.273 -.15001E-05 .29751E-01 16 norm .0000 .70956 .34917E-06** at limit ** 17 Prefactor 21.127 3.6577 .30328E-06 .87341E-01 18 norm 2.7169 4.1905 -.45584E-06 .10513E-02 19 Prefactor 24.980 4.5961 .35152E-06 .12424 20 Normalizat .81009 .24029 .14791E-04 .47805E-04 21 Prefactor .92896 .10095 -.74507E-05 .22291E-03 ERR DEF= .500 Final values: Prefactor = 10.6296 Prefactor = 9.60843e-07 Prefactor = 37.6434 Prefactor = 1.98175e-08 Prefactor = 0 norm = 7.26432 norm = 6.29046 Prefactor = 0.128957 Prefactor = 3.88578e-10 norm = 0 Prefactor = 8.96395 norm = 1.43212 Prefactor = 74.3756 norm = 1.56382 Prefactor = 11.2231 norm = 0 Prefactor = 21.127 norm = 2.71687 Prefactor = 24.9798 Normalizat = 0.810094 Prefactor = 0.928962 ********** ** 18 **HESSE ********** FCN= 9222.594 FROM HESSE STATUS=OK 371 CALLS 2000 TOTAL EDM= .38E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor 10.630 17.871 .30430E-03 -1.5643 2 Prefactor .96084E-06 40.080 .89896E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 3 Prefactor 37.643 19.253 .16271E-03 -1.5585 4 Prefactor .19817E-07 9.4120 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 Prefactor .0000 2.8319 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 6 norm 7.2643 4.1476 .37181E-03 -1.5654 7 norm 6.2905 3.6694 .40035E-03 -1.5658 8 Prefactor .12896 2.0993 .91520E-02 -1.5701 WARNING - - ABOVE PARAMETER IS AT LIMIT. 9 Prefactor .38858E-09 52.212 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 norm .0000 .71430 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 Prefactor 8.9639 7.1987 .33570E-03 -1.5648 12 norm 1.4321 1.4295 .90239E-03 -1.5684 13 Prefactor 74.376 30.084 .11671E-03 -1.5535 14 norm 1.5638 1.0913 .85006E-04 -1.5683 15 Prefactor 11.223 38.046 .29692E-03 -1.5641 16 norm .0000 .68212 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 17 Prefactor 21.127 14.359 .21786E-03 -1.5616 18 norm 2.7169 4.2324 .61892E-03 -1.5675 19 Prefactor 24.980 13.894 .20035E-03 -1.5608 20 Normalizat .81009 .21978 .91164E-01 -.99695 21 Prefactor .92896 .87798E-01 .45367E-01 -.95136 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 3.80835e-07 Minuit parameter uncertainties: 1 17.8716 2 0.0124112 3 19.2534 4 0.000864231 5 2.41751e-06 6 4.14759 7 3.66936 8 1.04061 9 0.00029356 10 7.16114e-06 11 7.19873 12 1.42952 13 30.0836 14 1.09131 15 38.0467 16 3.55152e-06 17 14.3587 18 4.23245 19 13.8936 20 0.22002 21 0.0878114 number of points = 7459 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J2142.8+1958_daily_bin1820 RA = 325.701, Dec = 19.982 tmin = 711072001, tmax = 711331201 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='19663157', job_status='RUN', time_executed='2023-07-18 01:42:44.951751', time_epoch_executed='1689669764.95' WHERE source_name='4FGL J2142.8+1958' and cadence='daily' and bin_id='1820' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/19663157 Creating custom pfile directory: /lscratch/kocevski/19663157/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=711072001.0 && nMetStart<711331201.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=711072001.0 && nMetStart<711331201.0' /Data/Flight/Level1/LPA Retrieving 46 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/19663157/ft1_4FGL_J2142.8+1958_daily_bin1820.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=711072001.0 && nMetStart<711331201.0' /Data/Flight/Level1/LPA Retrieving 46 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/19663157/ft2_4FGL_J2142.8+1958_daily_bin1820.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/19663157/ft1_4FGL_J2142.8+1958_daily_bin1820.fits outfile=/lscratch/kocevski/19663157/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin1820.fits ra=325.701 dec=19.982 rad=12.0 tmin=711072001.0 tmax=711331201.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.61 user 1.70 sys 0.16 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19663157/ft2_4FGL_J2142.8+1958_daily_bin1820.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/19663157/ft2_4FGL_J2142.8+1958_daily_bin1820.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/19663157/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin1820.fits evtable="EVENTS" outfile="/lscratch/kocevski/19663157/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.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 1.03 user 0.17 sys 0.14 Number of photons that the gtmktime cut: 865 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/19663157/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19663157/ft2_4FGL_J2142.8+1958_daily_bin1820.fits sctable="SC_DATA" outfDone. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 9222.59398271 Extracting fit parameters... 4FGL J2142.8+1958 Spectrum: PowerLaw 276 Prefactor: 3.886e-10 2.936e-04 0.000e+00 1.000e+06 ( 1.000e-15) 277 Index: 1.795e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 278 Scale: 6.137e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 547 Prefactor: 9.290e-01 8.781e-02 0.000e+00 1.000e+01 ( 1.000e+00) 548 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 549 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 546 Normalization: 8.101e-01 2.200e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): -0.00 Ra Dec: 325.701 19.982 Photon Flux Upper Limit: 4.29466408041e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00316294662585 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/19662407/likelihoodResults_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.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) = 9222.6031325 delta logL = -0.00914979103436 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 9222.59398444 delta logL = -1.72513864527e-06 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .31249E-05 1.0000 .0000 .10000E+07 2 'Index ' 1.5454 1.0000 .0000 10.000 3 'Normalizat' .81009 1.0000 .10000E-01 10.000 4 'Prefactor ' .92887 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5500E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. FCN= 9222.594 FROM MIGRAD STATUS=CONVERGED 78 CALLS 272 TOTAL EDM= .44E-10 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .77716E-09 20.362 .42118E-03** at limit ** 2 Index .17229 5.5630 .50000 -.36380E-10 3 Normalizat .81009 .20172 .91164E-01 .23667E-04 4 Prefactor .92896 .86396E-01 .45372E-01 -.35330E-04 ERR DEF= .500 Final values: Prefactor = 7.77156e-10 Index = 0.172295 Normalizat = 0.810094 Prefactor = 0.928962 ********** ** 18 **HESSE ********** FCN= 9222.594 FROM HESSE STATUS=OK 29 CALLS 301 TOTAL EDM= .38E-10 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .77716E-09 20.342 .84235E-04 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .17229 5.5622 .51000 -1.3075 3 Normalizat .81009 .23236 .40380E-03 -.99695 4 Prefactor .92896 .99793E-01 .16130E-03 -.95136 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 3.77389e-11 Minuit parameter uncertainties: 1 0.000248094 2 1.30128 3 0.232644 4 0.0998122 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) = 9222.59398271 delta logL = -5.45696821064e-12 Extracting fit parameters... 4FGL J2142.8+1958 Spectrum: PowerLaw 276 Prefactor: 7.772e-10 2.481e-04 0.000e+00 1.000e+06 ( 1.000e-15) 277 Index: 1.723e-01 1.301e+00 0.000e+00 1.000e+01 (-1.000e+00) 278 Scale: 6.137e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 547 Prefactor: 9.290e-01 9.981e-02 0.000e+00 1.000e+01 ( 1.000e+00) 548 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 549 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 546 Normalization: 8.101e-01 2.326e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): -0.00 Ra Dec: 325.701 19.982 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/19662407/cmap_HighResolution_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.16e-03', job_status='DONE', photon_flux_upper_limit='4.29e-08', time_completed='2023-07-18 01:47:51.771131', job_id='19662407', GAL2='0.93', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1689670071.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-5.46e-12', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1820' AND source_name='4FGL J2142.8+1958' AND cadence='daily'; Database successfully updated. Analysis Complete. Tue Jul 18 01:47:52 PDT 2023 ile=/lscratch/kocevski/19663157/ltcube_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.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/19663157/ft2_4FGL_J2142.8+1958_daily_bin1820.fits .....................! real 8.01 user 7.00 sys 0.24 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/19663157/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits evtable="EVENTS" scfile=/lscratch/kocevski/19663157/ft2_4FGL_J2142.8+1958_daily_bin1820.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19663157/ltcube_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.fits outfile=/lscratch/kocevski/19663157/expmap_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.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/19663157/ltcube_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.fits .....................! real 62.99 user 58.32 sys 3.53 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 Extended source Cygnus Loop in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template. Added 163 point sources and 1 extended sources If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True Setting source of interest to: 4FGL J2142.8+1958 @ 325.701 19.982 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/19663157/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits scfile=/lscratch/kocevski/19663157/ft2_4FGL_J2142.8+1958_daily_bin1820.fits outfile=/lscratch/kocevski/19663157/cmap_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.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=325.701 yref=19.982 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.06 user 0.20 sys 0.13 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/19663157/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits scfile=/lscratch/kocevski/19663157/ft2_4FGL_J2142.8+1958_daily_bin1820.fits outfile=/lscratch/kocevski/19663157/cmap_HighResolution_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.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=325.701 yref=19.982 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.99 user 0.20 sys 0.13 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/19663157/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits evtable="EVENTS" scfile=/lscratch/kocevski/19663157/ft2_4FGL_J2142.8+1958_daily_bin1820.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19663157/Model_4FGL_J2142.8+1958_daily_bin1820.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 Cygnus Loop adding source EG_v02 adding source GAL_V02 Working on... /lscratch/kocevski/19663157/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits.....................! real 46.30 user 44.33 sys 0.95 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/19663157/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits', '/lscratch/kocevski/19663157/ft2_4FGL_J2142.8+1958_daily_bin1820.fits', expMap='/lscratch/kocevski/19663157/expmap_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.fits', expCube='/lscratch/kocevski/19663157/ltcube_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19663157/Model_4FGL_J2142.8+1958_daily_bin1820.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2142.8+1958' 4FGL J2142.8+1958 Spectrum: PowerLaw 276 Prefactor: 4.708e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-15) 277 Index: 1.795e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 278 Scale: 6.137e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/19663157/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits Spacecraft file(s): /lscratch/kocevski/19663157/ft2_4FGL_J2142.8+1958_daily_bin1820.fits Exposure map: /lscratch/kocevski/19663157/expmap_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.fits Exposure cube: /lscratch/kocevski/19663157/ltcube_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/19663157/Model_4FGL_J2142.8+1958_daily_bin1820.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) = 9222.6062762 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 9222.59983896 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' 10.822 1.0000 .0000 .10000E+07 2 'Prefactor ' .39648 1.0000 .0000 .10000E+07 3 'Prefactor ' 37.782 1.0000 .0000 .10000E+07 4 'Prefactor ' .41137E-02 1.0000 .0000 .10000E+07 5 'Prefactor ' .90604E-05 1.0000 .0000 .10000E+07 6 'norm ' 7.2682 1.0000 .0000 .10000E+07 7 'norm ' 6.2793 1.0000 .0000 .10000E+07 8 'Prefactor ' .11690 1.0000 .0000 .10000E+07 9 'Prefactor ' .36745E-03 1.0000 .0000 .10000E+07 10 'norm ' .10568E-05 1.0000 .0000 .10000E+07 11 'Prefactor ' 8.9019 1.0000 .0000 .10000E+07 12 'norm ' 1.4316 1.0000 .0000 .10000E+07 13 'Prefactor ' 73.420 1.0000 .0000 .10000E+07 14 'norm ' 1.5645 1.0000 .0000 .10000E+07 15 'Prefactor ' 11.365 1.0000 .0000 .10000E+07 16 'norm ' .67724E-08 1.0000 .0000 .10000E+07 17 'Prefactor ' 21.081 1.0000 .0000 .10000E+07 18 'norm ' 2.7063 1.0000 .0000 .10000E+07 19 'Prefactor ' 24.923 1.0000 .0000 .10000E+07 20 'Normalizat' .81167 1.0000 .10000E-01 10.000 21 'Prefactor ' .92849 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5500E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 9222.594 FROM MIGRAD STATUS=CONVERGED 138 CALLS 1629 TOTAL EDM= .93E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 1.4% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor 10.630 12.449 -.13648E-05 -.27933E-01 2 Prefactor .96084E-06 35.815 -.49542E-06** at limit ** 3 Prefactor 37.643 13.830 -.57130E-06 .61344E-01 4 Prefactor .19817E-07 9.2981 -.54573E-07** at limit ** 5 Prefactor .0000 2.8573 .89368E-06** at limit ** 6 norm 7.2643 4.1477 .13168E-06 -.11121E-02 7 norm 6.2905 3.6690 .68838E-07 .11435E-02 8 Prefactor .12896 46.373 -.54455E-05** at limit ** 9 Prefactor .38858E-09 51.639 -.34459E-05** at limit ** 10 norm .0000 .71713 -.24169E-06** at limit ** 11 Prefactor 8.9639 7.1959 .11836E-05 -.78021E-03 12 norm 1.4321 1.4123 -.20639E-06 -.96895E-03 13 Prefactor 74.376 27.034 -.11354E-05 .94198E-02 14 norm 1.5638 1.0903 -.59432E-08 -.11326E-03 15 Prefactor 11.223 11.273 -.15001E-05 .29751E-01 16 norm .0000 .70956 .34917E-06** at limit ** 17 Prefactor 21.127 3.6577 .30328E-06 .87341E-01 18 norm 2.7169 4.1905 -.45584E-06 .10513E-02 19 Prefactor 24.980 4.5961 .35152E-06 .12424 20 Normalizat .81009 .24029 .14791E-04 .47805E-04 21 Prefactor .92896 .10095 -.74507E-05 .22291E-03 ERR DEF= .500 Final values: Prefactor = 10.6296 Prefactor = 9.60843e-07 Prefactor = 37.6434 Prefactor = 1.98175e-08 Prefactor = 0 norm = 7.26432 norm = 6.29046 Prefactor = 0.128957 Prefactor = 3.88578e-10 norm = 0 Prefactor = 8.96395 norm = 1.43212 Prefactor = 74.3756 norm = 1.56382 Prefactor = 11.2231 norm = 0 Prefactor = 21.127 norm = 2.71687 Prefactor = 24.9798 Normalizat = 0.810094 Prefactor = 0.928962 number of points = 7459 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J2142.8+1958_daily_bin1820 RA = 325.701, Dec = 19.982 tmin = 711072001, tmax = 711331201 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='19663828', job_status='RUN', time_executed='2023-07-18 01:46:25.208755', time_epoch_executed='1689669985.21' WHERE source_name='4FGL J2142.8+1958' and cadence='daily' and bin_id='1820' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/19663828 Creating custom pfile directory: /lscratch/kocevski/19663828/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=711072001.0 && nMetStart<711331201.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=711072001.0 && nMetStart<711331201.0' /Data/Flight/Level1/LPA Retrieving 46 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/19663828/ft1_4FGL_J2142.8+1958_daily_bin1820.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=711072001.0 && nMetStart<711331201.0' /Data/Flight/Level1/LPA Retrieving 46 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/19663828/ft2_4FGL_J2142.8+1958_daily_bin1820.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/19663828/ft1_4FGL_J2142.8+1958_daily_bin1820.fits outfile=/lscratch/kocevski/19663828/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin1820.fits ra=325.701 dec=19.982 rad=12.0 tmin=711072001.0 tmax=711331201.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.42 user 1.58 sys 0.18 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19663828/ft2_4FGL_J2142.8+1958_daily_bin1820.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/19663828/ft2_4FGL_J2142.8+1958_daily_bin1820.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/19663828/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin1820.fits evtable="EVENTS" outfile="/lscratch/kocevski/19663828/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.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.86 user 0.18 sys 0.14 Number of photons that the gtmktime cut: 865 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/19663828/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19663828/ft2_4FGL_J2142.8+1958_daily_bin1820.fits sctable="SC_DATA" outf ********** ** 18 **HESSE ********** FCN= 9222.594 FROM HESSE STATUS=OK 371 CALLS 2000 TOTAL EDM= .38E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor 10.630 17.871 .30430E-03 -1.5643 2 Prefactor .96084E-06 40.080 .89896E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 3 Prefactor 37.643 19.253 .16271E-03 -1.5585 4 Prefactor .19817E-07 9.4120 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 Prefactor .0000 2.8319 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 6 norm 7.2643 4.1476 .37181E-03 -1.5654 7 norm 6.2905 3.6694 .40035E-03 -1.5658 8 Prefactor .12896 2.0993 .91520E-02 -1.5701 WARNING - - ABOVE PARAMETER IS AT LIMIT. 9 Prefactor .38858E-09 52.212 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 norm .0000 .71430 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 Prefactor 8.9639 7.1987 .33570E-03 -1.5648 12 norm 1.4321 1.4295 .90239E-03 -1.5684 13 Prefactor 74.376 30.084 .11671E-03 -1.5535 14 norm 1.5638 1.0913 .85006E-04 -1.5683 15 Prefactor 11.223 38.046 .29692E-03 -1.5641 16 norm .0000 .68212 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 17 Prefactor 21.127 14.359 .21786E-03 -1.5616 18 norm 2.7169 4.2324 .61892E-03 -1.5675 19 Prefactor 24.980 13.894 .20035E-03 -1.5608 20 Normalizat .81009 .21978 .91164E-01 -.99695 21 Prefactor .92896 .87798E-01 .45367E-01 -.95136 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 3.80835e-07 Minuit parameter uncertainties: 1 17.8716 2 0.0124112 3 19.2534 4 0.000864231 5 2.41751e-06 6 4.14759 7 3.66936 8 1.04061 9 0.00029356 10 7.16114e-06 11 7.19873 12 1.42952 13 30.0836 14 1.09131 15 38.0467 16 3.55152e-06 17 14.3587 18 4.23245 19 13.8936 20 0.22002 21 0.0878114 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 9222.59398271 Extracting fit parameters... 4FGL J2142.8+1958 Spectrum: PowerLaw 276 Prefactor: 3.886e-10 2.936e-04 0.000e+00 1.000e+06 ( 1.000e-15) 277 Index: 1.795e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 278 Scale: 6.137e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 547 Prefactor: 9.290e-01 8.781e-02 0.000e+00 1.000e+01 ( 1.000e+00) 548 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 549 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 546 Normalization: 8.101e-01 2.200e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): -0.00 Ra Dec: 325.701 19.982 Photon Flux Upper Limit: 4.29466408041e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00316294662585 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/19663157/likelihoodResults_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.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) = 9222.6031325 delta logL = -0.00914979103436 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 9222.59398444 delta logL = -1.72513864527e-06 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .31249E-05 1.0000 .0000 .10000E+07 2 'Index ' 1.5454 1.0000 .0000 10.000 3 'Normalizat' .81009 1.0000 .10000E-01 10.000 4 'Prefactor ' .92887 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5500E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. FCN= 9222.594 FROM MIGRAD STATUS=CONVERGED 78 CALLS 272 TOTAL EDM= .44E-10 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .77716E-09 20.362 .42118E-03** at limit ** 2 Index .17229 5.5630 .50000 -.36380E-10 3 Normalizat .81009 .20172 .91164E-01 .23667E-04 4 Prefactor .92896 .86396E-01 .45372E-01 -.35330E-04 ERR DEF= .500 Final values: Prefactor = 7.77156e-10 Index = 0.172295 Normalizat = 0.810094 Prefactor = 0.928962 ********** ** 18 **HESSE ********** FCN= 9222.594 FROM HESSE STATUS=OK 29 CALLS 301 TOTAL EDM= .38E-10 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .77716E-09 20.342 .84235E-04 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .17229 5.5622 .51000 -1.3075 3 Normalizat .81009 .23236 .40380E-03 -.99695 4 Prefactor .92896 .99793E-01 .16130E-03 -.95136 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 3.77389e-11 Minuit parameter uncertainties: 1 0.000248094 2 1.30128 3 0.232644 4 0.0998122 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) = 9222.59398271 delta logL = -5.45696821064e-12 Extracting fit parameters... 4FGL J2142.8+1958 Spectrum: PowerLaw 276 Prefactor: 7.772e-10 2.481e-04 0.000e+00 1.000e+06 ( 1.000e-15) 277 Index: 1.723e-01 1.301e+00 0.000e+00 1.000e+01 (-1.000e+00) 278 Scale: 6.137e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 547 Prefactor: 9.290e-01 9.981e-02 0.000e+00 1.000e+01 ( 1.000e+00) 548 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 549 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 546 Normalization: 8.101e-01 2.326e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): -0.00 Ra Dec: 325.701 19.982 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/19663157/cmap_HighResolution_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.16e-03', job_status='DONE', photon_flux_upper_limit='4.29e-08', time_completed='2023-07-18 01:51:54.351825', job_id='19663157', GAL2='0.93', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1689670314.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-5.46e-12', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1820' AND source_name='4FGL J2142.8+1958' AND cadence='daily'; Database successfully updated. Analysis Complete. Tue Jul 18 01:51:55 PDT 2023 ile=/lscratch/kocevski/19663828/ltcube_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.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/19663828/ft2_4FGL_J2142.8+1958_daily_bin1820.fits .....................! real 7.44 user 6.67 sys 0.21 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/19663828/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits evtable="EVENTS" scfile=/lscratch/kocevski/19663828/ft2_4FGL_J2142.8+1958_daily_bin1820.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19663828/ltcube_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.fits outfile=/lscratch/kocevski/19663828/expmap_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.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/19663828/ltcube_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.fits .....................! real 59.93 user 55.46 sys 3.48 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 Extended source Cygnus Loop in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template. Added 163 point sources and 1 extended sources If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True Setting source of interest to: 4FGL J2142.8+1958 @ 325.701 19.982 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/19663828/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits scfile=/lscratch/kocevski/19663828/ft2_4FGL_J2142.8+1958_daily_bin1820.fits outfile=/lscratch/kocevski/19663828/cmap_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.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=325.701 yref=19.982 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.02 user 0.20 sys 0.14 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/19663828/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits scfile=/lscratch/kocevski/19663828/ft2_4FGL_J2142.8+1958_daily_bin1820.fits outfile=/lscratch/kocevski/19663828/cmap_HighResolution_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.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=325.701 yref=19.982 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.99 user 0.21 sys 0.14 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/19663828/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits evtable="EVENTS" scfile=/lscratch/kocevski/19663828/ft2_4FGL_J2142.8+1958_daily_bin1820.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19663828/Model_4FGL_J2142.8+1958_daily_bin1820.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 Cygnus Loop adding source EG_v02 adding source GAL_V02 Working on... /lscratch/kocevski/19663828/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits.....................! real 43.42 user 41.80 sys 0.67 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/19663828/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits', '/lscratch/kocevski/19663828/ft2_4FGL_J2142.8+1958_daily_bin1820.fits', expMap='/lscratch/kocevski/19663828/expmap_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.fits', expCube='/lscratch/kocevski/19663828/ltcube_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19663828/Model_4FGL_J2142.8+1958_daily_bin1820.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2142.8+1958' 4FGL J2142.8+1958 Spectrum: PowerLaw 276 Prefactor: 4.708e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-15) 277 Index: 1.795e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 278 Scale: 6.137e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/19663828/ft1_filtered_4FGL_J2142.8+1958_daily_bin1820.fits Spacecraft file(s): /lscratch/kocevski/19663828/ft2_4FGL_J2142.8+1958_daily_bin1820.fits Exposure map: /lscratch/kocevski/19663828/expmap_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.fits Exposure cube: /lscratch/kocevski/19663828/ltcube_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/19663828/Model_4FGL_J2142.8+1958_daily_bin1820.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) = 9222.6062762 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 9222.59983896 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' 10.822 1.0000 .0000 .10000E+07 2 'Prefactor ' .39648 1.0000 .0000 .10000E+07 3 'Prefactor ' 37.782 1.0000 .0000 .10000E+07 4 'Prefactor ' .41137E-02 1.0000 .0000 .10000E+07 5 'Prefactor ' .90604E-05 1.0000 .0000 .10000E+07 6 'norm ' 7.2682 1.0000 .0000 .10000E+07 7 'norm ' 6.2793 1.0000 .0000 .10000E+07 8 'Prefactor ' .11690 1.0000 .0000 .10000E+07 9 'Prefactor ' .36745E-03 1.0000 .0000 .10000E+07 10 'norm ' .10568E-05 1.0000 .0000 .10000E+07 11 'Prefactor ' 8.9019 1.0000 .0000 .10000E+07 12 'norm ' 1.4316 1.0000 .0000 .10000E+07 13 'Prefactor ' 73.420 1.0000 .0000 .10000E+07 14 'norm ' 1.5645 1.0000 .0000 .10000E+07 15 'Prefactor ' 11.365 1.0000 .0000 .10000E+07 16 'norm ' .67724E-08 1.0000 .0000 .10000E+07 17 'Prefactor ' 21.081 1.0000 .0000 .10000E+07 18 'norm ' 2.7063 1.0000 .0000 .10000E+07 19 'Prefactor ' 24.923 1.0000 .0000 .10000E+07 20 'Normalizat' .81167 1.0000 .10000E-01 10.000 21 'Prefactor ' .92849 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5500E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 9222.594 FROM MIGRAD STATUS=CONVERGED 138 CALLS 1629 TOTAL EDM= .93E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 1.4% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor 10.630 12.449 -.13648E-05 -.27933E-01 2 Prefactor .96084E-06 35.815 -.49542E-06** at limit ** 3 Prefactor 37.643 13.830 -.57130E-06 .61344E-01 4 Prefactor .19817E-07 9.2981 -.54573E-07** at limit ** 5 Prefactor .0000 2.8573 .89368E-06** at limit ** 6 norm 7.2643 4.1477 .13168E-06 -.11121E-02 7 norm 6.2905 3.6690 .68838E-07 .11435E-02 8 Prefactor .12896 46.373 -.54455E-05** at limit ** 9 Prefactor .38858E-09 51.639 -.34459E-05** at limit ** 10 norm .0000 .71713 -.24169E-06** at limit ** 11 Prefactor 8.9639 7.1959 .11836E-05 -.78021E-03 12 norm 1.4321 1.4123 -.20639E-06 -.96895E-03 13 Prefactor 74.376 27.034 -.11354E-05 .94198E-02 14 norm 1.5638 1.0903 -.59432E-08 -.11326E-03 15 Prefactor 11.223 11.273 -.15001E-05 .29751E-01 16 norm .0000 .70956 .34917E-06** at limit ** 17 Prefactor 21.127 3.6577 .30328E-06 .87341E-01 18 norm 2.7169 4.1905 -.45584E-06 .10513E-02 19 Prefactor 24.980 4.5961 .35152E-06 .12424 20 Normalizat .81009 .24029 .14791E-04 .47805E-04 21 Prefactor .92896 .10095 -.74507E-05 .22291E-03 ERR DEF= .500 Final values: Prefactor = 10.6296 Prefactor = 9.60843e-07 Prefactor = 37.6434 Prefactor = 1.98175e-08 Prefactor = 0 norm = 7.26432 norm = 6.29046 Prefactor = 0.128957 Prefactor = 3.88578e-10 norm = 0 Prefactor = 8.96395 norm = 1.43212 Prefactor = 74.3756 norm = 1.56382 Prefactor = 11.2231 norm = 0 Prefactor = 21.127 norm = 2.71687 Prefactor = 24.9798 Normalizat = 0.810094 Prefactor = 0.928962 ********** ** 18 **HESSE ********** FCN= 9222.594 FROM HESSE STATUS=OK 371 CALLS 2000 TOTAL EDM= .38E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor 10.630 17.871 .30430E-03 -1.5643 2 Prefactor .96084E-06 40.080 .89896E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 3 Prefactor 37.643 19.253 .16271E-03 -1.5585 4 Prefactor .19817E-07 9.4120 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 Prefactor .0000 2.8319 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 6 norm 7.2643 4.1476 .37181E-03 -1.5654 7 norm 6.2905 3.6694 .40035E-03 -1.5658 8 Prefactor .12896 2.0993 .91520E-02 -1.5701 WARNING - - ABOVE PARAMETER IS AT LIMIT. 9 Prefactor .38858E-09 52.212 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 norm .0000 .71430 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 Prefactor 8.9639 7.1987 .33570E-03 -1.5648 12 norm 1.4321 1.4295 .90239E-03 -1.5684 13 Prefactor 74.376 30.084 .11671E-03 -1.5535 14 norm 1.5638 1.0913 .85006E-04 -1.5683 15 Prefactor 11.223 38.046 .29692E-03 -1.5641 16 norm .0000 .68212 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 17 Prefactor 21.127 14.359 .21786E-03 -1.5616 18 norm 2.7169 4.2324 .61892E-03 -1.5675 19 Prefactor 24.980 13.894 .20035E-03 -1.5608 20 Normalizat .81009 .21978 .91164E-01 -.99695 21 Prefactor .92896 .87798E-01 .45367E-01 -.95136 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 3.80835e-07 Minuit parameter uncertainties: 1 17.8716 2 0.0124112 3 19.2534 4 0.000864231 5 2.41751e-06 6 4.14759 7 3.66936 8 1.04061 9 0.00029356 10 7.16114e-06 11 7.19873 12 1.42952 13 30.0836 14 1.09131 15 38.0467 16 3.55152e-06 17 14.3587 18 4.23245 19 13.8936 20 0.22002 21 0.0878114 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 9222.59398271 Extracting fit parameters... 4FGL J2142.8+1958 Spectrum: PowerLaw 276 Prefactor: 3.886e-10 2.936e-04 0.000e+00 1.000e+06 ( 1.000e-15) 277 Index: 1.795e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 278 Scale: 6.137e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 547 Prefactor: 9.290e-01 8.781e-02 0.000e+00 1.000e+01 ( 1.000e+00) 548 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 549 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 546 Normalization: 8.101e-01 2.200e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): -0.00 Ra Dec: 325.701 19.982 Photon Flux Upper Limit: 4.29466408041e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00316294662585 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/19663828/likelihoodResults_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.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) = 9222.6031325 delta logL = -0.00914979103436 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 9222.59398444 delta logL = -1.72513864527e-06 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .31249E-05 1.0000 .0000 .10000E+07 2 'Index ' 1.5454 1.0000 .0000 10.000 3 'Normalizat' .81009 1.0000 .10000E-01 10.000 4 'Prefactor ' .92887 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5500E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. FCN= 9222.594 FROM MIGRAD STATUS=CONVERGED 78 CALLS 272 TOTAL EDM= .44E-10 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .77716E-09 20.362 .42118E-03** at limit ** 2 Index .17229 5.5630 .50000 -.36380E-10 3 Normalizat .81009 .20172 .91164E-01 .23667E-04 4 Prefactor .92896 .86396E-01 .45372E-01 -.35330E-04 ERR DEF= .500 Final values: Prefactor = 7.77156e-10 Index = 0.172295 Normalizat = 0.810094 Prefactor = 0.928962 ********** ** 18 **HESSE ********** FCN= 9222.594 FROM HESSE STATUS=OK 29 CALLS 301 TOTAL EDM= .38E-10 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .77716E-09 20.342 .84235E-04 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .17229 5.5622 .51000 -1.3075 3 Normalizat .81009 .23236 .40380E-03 -.99695 4 Prefactor .92896 .99793E-01 .16130E-03 -.95136 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 3.77389e-11 Minuit parameter uncertainties: 1 0.000248094 2 1.30128 3 0.232644 4 0.0998122 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) = 9222.59398271 delta logL = -5.45696821064e-12 Extracting fit parameters... 4FGL J2142.8+1958 Spectrum: PowerLaw 276 Prefactor: 7.772e-10 2.481e-04 0.000e+00 1.000e+06 ( 1.000e-15) 277 Index: 1.723e-01 1.301e+00 0.000e+00 1.000e+01 (-1.000e+00) 278 Scale: 6.137e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 547 Prefactor: 9.290e-01 9.981e-02 0.000e+00 1.000e+01 ( 1.000e+00) 548 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 549 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 546 Normalization: 8.101e-01 2.326e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): -0.00 Ra Dec: 325.701 19.982 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/19663828/cmap_HighResolution_711072001_711331201_4FGL_J2142.8+1958_daily_bin1820.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.16e-03', job_status='DONE', photon_flux_upper_limit='4.29e-08', time_completed='2023-07-18 01:55:21.414777', job_id='19663828', GAL2='0.93', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1689670521.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-5.46e-12', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1820' AND source_name='4FGL J2142.8+1958' AND cadence='daily'; Database successfully updated. Analysis Complete. Tue Jul 18 01:55:22 PDT 2023