number of points = 7456 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J0512.8+4041_daily_bin2178 RA = 78.2186, Dec = 40.6945 tmin = 803865601, tmax = 804124801 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='31099630', job_status='RUN', time_executed='2026-07-09 02:18:16.703827', time_epoch_executed='1783588696.7' WHERE source_name='4FGL J0512.8+4041' and cadence='daily' and bin_id='2178' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/31099630 Creating custom pfile directory: /lscratch/kocevski/31099630/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=803865601.0 && nMetStart<804124801.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=803865601.0 && nMetStart<804124801.0' /Data/Flight/Level1/LPA Retrieving 47 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/31099630/ft1_4FGL_J0512.8+4041_daily_bin2178.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=803865601.0 && nMetStart<804124801.0' /Data/Flight/Level1/LPA Retrieving 47 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/31099630/ft2_4FGL_J0512.8+4041_daily_bin2178.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/31099630/ft1_4FGL_J0512.8+4041_daily_bin2178.fits outfile=/lscratch/kocevski/31099630/ft1_filteredMKT_4FGL_J0512.8+4041_daily_bin2178.fits ra=78.2186 dec=40.6945 rad=12.0 tmin=803865601.0 tmax=804124801.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.17 user 1.53 sys 0.16 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31099630/ft2_4FGL_J0512.8+4041_daily_bin2178.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/31099630/ft2_4FGL_J0512.8+4041_daily_bin2178.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/31099630/ft1_filteredMKT_4FGL_J0512.8+4041_daily_bin2178.fits evtable="EVENTS" outfile="/lscratch/kocevski/31099630/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.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.18 user 0.19 sys 0.14 Number of photons that the gtmktime cut: 209 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/31099630/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31099630/ft2_4FGL_J0512.8+4041_daily_bin2178.fits sctable="SC_DATA" out/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) tfile=/lscratch/kocevski/31099605/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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/31099605/ft2_4FGL_J0512.8+4041_daily_bin2178.fits .....................! real 10.47 user 9.35 sys 0.24 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/31099605/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits evtable="EVENTS" scfile=/lscratch/kocevski/31099605/ft2_4FGL_J0512.8+4041_daily_bin2178.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31099605/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits outfile=/lscratch/kocevski/31099605/expmap_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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/31099605/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits .....................! real 79.70 user 74.12 sys 4.57 Generating the xml model: radLim = 0.001 maxRad = 12 normsOnly = True freeVariableSources = True Fixing all sources to their catalog values, except variable sources Creating file and adding sources from 4FGL Extended source HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template. Extended source G150.3+4.5 in ROI with RadialDisk spatial model. Extended source S 147 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/S147.fits is the correct path to the extended template. Added 159 point sources and 3 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 J0512.8+4041 @ 78.2186 40.6945 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/31099605/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits scfile=/lscratch/kocevski/31099605/ft2_4FGL_J0512.8+4041_daily_bin2178.fits outfile=/lscratch/kocevski/31099605/cmap_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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=78.2186 yref=40.6945 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.72 user 0.23 sys 0.13 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/31099605/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits scfile=/lscratch/kocevski/31099605/ft2_4FGL_J0512.8+4041_daily_bin2178.fits outfile=/lscratch/kocevski/31099605/cmap_HighResolution_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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=78.2186 yref=40.6945 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.74 user 0.25 s WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). number of points = 7456 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J0512.8+4041_daily_bin2178 RA = 78.2186, Dec = 40.6945 tmin = 803865601, tmax = 804124801 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='31099636', job_status='RUN', time_executed='2026-07-09 02:18:55.740448', time_epoch_executed='1783588735.74' WHERE source_name='4FGL J0512.8+4041' and cadence='daily' and bin_id='2178' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/31099636 Creating custom pfile directory: /lscratch/kocevski/31099636/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=803865601.0 && nMetStart<804124801.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=803865601.0 && nMetStart<804124801.0' /Data/Flight/Level1/LPA Retrieving 47 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/31099636/ft1_4FGL_J0512.8+4041_daily_bin2178.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=803865601.0 && nMetStart<804124801.0' /Data/Flight/Level1/LPA Retrieving 47 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/31099636/ft2_4FGL_J0512.8+4041_daily_bin2178.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/31099636/ft1_4FGL_J0512.8+4041_daily_bin2178.fits outfile=/lscratch/kocevski/31099636/ft1_filteredMKT_4FGL_J0512.8+4041_daily_bin2178.fits ra=78.2186 dec=40.6945 rad=12.0 tmin=803865601.0 tmax=804124801.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.08 user 1.53 sys 0.16 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31099636/ft2_4FGL_J0512.8+4041_daily_bin2178.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/31099636/ft2_4FGL_J0512.8+4041_daily_bin2178.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/31099636/ft1_filteredMKT_4FGL_J0512.8+4041_daily_bin2178.fits evtable="EVENTS" outfile="/lscratch/kocevski/31099636/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.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.82 user 0.21 sys 0.13 Number of photons that the gtmktime cut: 209 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/31099636/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31099636/ft2_4FGL_J0512.8+4041_daily_bin2178.fits sctable="SC_DATA" ouys 0.13 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/31099605/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits evtable="EVENTS" scfile=/lscratch/kocevski/31099605/ft2_4FGL_J0512.8+4041_daily_bin2178.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31099605/Model_4FGL_J0512.8+4041_daily_bin2178.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 G150.3+4.5 adding source GAL_V02 adding source HB 9 adding source S 147 Working on... /lscratch/kocevski/31099605/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits.....................! real 29.54 user 27.52 sys 1.17 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/31099605/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits', '/lscratch/kocevski/31099605/ft2_4FGL_J0512.8+4041_daily_bin2178.fits', expMap='/lscratch/kocevski/31099605/expmap_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits', expCube='/lscratch/kocevski/31099605/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31099605/Model_4FGL_J0512.8+4041_daily_bin2178.xml', optimizer='MINUIT') Using source of interest name: '4FGL J0512.8+4041' 4FGL J0512.8+4041 Spectrum: PowerLaw 282 Prefactor: 4.408e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-13) 283 Index: 2.337e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 284 Scale: 1.477e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/31099605/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits Spacecraft file(s): /lscratch/kocevski/31099605/ft2_4FGL_J0512.8+4041_daily_bin2178.fits Exposure map: /lscratch/kocevski/31099605/expmap_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits Exposure cube: /lscratch/kocevski/31099605/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/31099605/Model_4FGL_J0512.8+4041_daily_bin2178.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) = 1895.53851307 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 1895.14925772 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .12490E-07 1.0000 .0000 .10000E+07 2 'norm ' .17996E-05 1.0000 .0000 .10000E+07 3 'norm ' .0000 1.0000 .0000 .10000E+07 4 'Prefactor ' .17025E-01 1.0000 .0000 .10000E+07 5 'norm ' 39.612 1.0000 .0000 .10000E+07 6 'Prefactor ' .99994E+06 1.0000 .0000 .10000E+07 7 'norm ' .15332E-03 1.0000 .0000 .10000E+07 8 'norm ' .39546E-03 1.0000 .0000 .10000E+07 9 'norm ' .27547E-04 1.0000 .0000 .10000E+07 10 'Normalizat' .10000E-01 1.0000 .10000E-01 10.000 11 'Prefactor ' .47958 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5560E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 1895.145 FROM MIGRAD STATUS=CONVERGED 90 CALLS 765 TOTAL EDM= .11E-08 STRATEGY=1 ERROR MATRIX UNCERTAINTY= .2% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .16653E-09 5.2491 -.80319E-07** at limit ** 2 norm .55511E-09 6.0686 .11994E-07** at limit ** 3 norm .77716E-09 6.2522 .36530E-06** at limit ** 4 Prefactor .16653E-08 64.287 -.76984E-06** at limit ** 5 norm 46.987 88.273 .10956E-05 .16473E-01 6 Prefactor .99994E+06 4.9332 .57601E-07 -.34348 7 norm .53291E-08 49.026 .58120E-06** at limit ** 8 norm .22204E-09 7.8432 -.13578E-06** at limit ** 9 norm .11102E-09 4.5228 .11233E-06** at limit ** 10 Normalizat .10000E-01 .69284E-01 .58700E-06** at limit ** 11 Prefactor .47927 .59246E-01 -.90048E-06 -.11952E-03 ERR DEF= .500 Final values: Prefactor = 1.66533e-10 norm = 5.55112e-10 norm = 7.77156e-10 Prefactor = 1.66533e-09 norm = 46.9867 Prefactor = 999939 norm = 5.32907e-09 norm = 2.22045e-10 norm = 1.11022e-10 Normalizat = 0.01 Prefactor = 0.47927 ********** ** 18 **HESSE ********** FCN= 1895.145 FROM HESSE STATUS=OK 126 CALLS 891 TOTAL EDM= .53E-02 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .16653E-09 5.2408 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 norm .55511E-09 6.0340 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 3 norm .77716E-09 6.2335 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 Prefactor .16653E-08 64.222 .17241E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 norm 46.987 88.065 .15890E-03 -1.5571 6 Prefactor .99994E+06 11278. .12816E-03 1.5552 7 norm .53291E-08 48.752 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm .22204E-09 7.7542 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 9 norm .11102E-09 4.5153 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Normalizat .10000E-01 .68761E-01 .15988 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 Prefactor .47927 .59298E-01 .26609E-01 -1.1294 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 0.00534309 Minuit parameter uncertainties: 1 5.69923e-05 2 0.000118499 3 0.000139004 4 0.000654365 5 88.0672 6 1655.37 7 0.00101769 8 8.57566e-05 9 4.17518e-05 10 5.82135e-08 11 0.0593061 file=/lscratch/kocevski/31099630/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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/31099630/ft2_4FGL_J0512.8+4041_daily_bin2178.fits .....................! real 9.30 user 8.55 sys 0.26 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/31099630/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits evtable="EVENTS" scfile=/lscratch/kocevski/31099630/ft2_4FGL_J0512.8+4041_daily_bin2178.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31099630/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits outfile=/lscratch/kocevski/31099630/expmap_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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/31099630/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits .....................! real 72.02 user 66.96 sys 4.13 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 HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template. Extended source G150.3+4.5 in ROI with RadialDisk spatial model. Extended source S 147 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/S147.fits is the correct path to the extended template. Added 159 point sources and 3 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 J0512.8+4041 @ 78.2186 40.6945 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/31099630/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits scfile=/lscratch/kocevski/31099630/ft2_4FGL_J0512.8+4041_daily_bin2178.fits outfile=/lscratch/kocevski/31099630/cmap_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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=78.2186 yref=40.6945 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.79 user 0.22 sys 0.13 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/31099630/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits scfile=/lscratch/kocevski/31099630/ft2_4FGL_J0512.8+4041_daily_bin2178.fits outfile=/lscratch/kocevski/31099630/cmap_HighResolution_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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=78.2186 yref=40.6945 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.75 user 0.22 sysDone. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 1895.14540579 Extracting fit parameters... 4FGL J0512.8+4041 Spectrum: PowerLaw 282 Prefactor: 1.665e-09 6.544e-04 0.000e+00 1.000e+06 ( 1.000e-13) 283 Index: 2.337e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 284 Scale: 1.477e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 545 Prefactor: 4.793e-01 5.931e-02 0.000e+00 1.000e+01 ( 1.000e+00) 546 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 547 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 540 Normalization: 1.000e-02 5.821e-08 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): -0.00 Ra Dec: 78.219 40.694 Photon Flux Upper Limit: 1.55549278943e-06 ph cm-2 s-1 Energy Flux Upper Limit: 0.119686202776 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/31099605/likelihoodResults_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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) = 1895.15279296 delta logL = -0.00738717545414 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 1895.14540615 delta logL = -3.60784270015e-07 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .21816E-07 1.0000 .0000 .10000E+07 2 'Index ' 1.9112 1.0000 .0000 10.000 3 'Normalizat' .10000E-01 1.0000 .10000E-01 10.000 4 'Prefactor ' .47927 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5560E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. FCN= 1895.145 FROM MIGRAD STATUS=CONVERGED 71 CALLS 266 TOTAL EDM= .21E-09 STRATEGY= 1 ERR MATRIX NOT POS-DEF EXT PARAMETER APPROXIMATE STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .33140E-07 225.88 .42118E-03** at limit ** 2 Index .82145 7.9967 .26326 -.99323E-09 3 Normalizat .10000E-01 .37499E-03 .15988 ** at limit ** 4 Prefactor .47927 .43708E-02 .26609E-01 -.26743E-04 ERR DEF= .500 Final values: Prefactor = 3.31402e-08 Index = 0.821448 Normalizat = 0.01 Prefactor = 0.47927 ********** ** 18 **HESSE ********** FCN= 1895.145 FROM HESSE STATUS=NOT POSDEF 25 CALLS 291 TOTAL EDM= .36E-09 STRATEGY= 1 ERR MATRIX NOT POS-DEF EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .33140E-07 336.48 .84235E-04 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .82145 5.3743 .10531E-01 -.98943 3 Normalizat .10000E-01 .56392E-03 .35214E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 Prefactor .47927 .53421E-02 .11760E-03 -1.1294 ERR DEF= .500 Minuit fit quality: 2 estimated distance: 3.55391e-10 Minuit parameter uncertainties: 1 0.00667892 2 61093.9 3 3.08069e-07 4 0.00534206 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 1895.14540579 delta logL = -1.81671566679e-10 Extracting fit parameters... 4FGL J0512.8+4041 Spectrum: PowerLaw 282 Prefactor: 3.314e-08 6.679e-03 0.000e+00 1.000e+06 ( 1.000e-13) 283 Index: 8.214e-01 6.109e+04 0.000e+00 1.000e+01 (-1.000e+00) 284 Scale: 1.477e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 545 Prefactor: 4.793e-01 5.342e-03 0.000e+00 1.000e+01 ( 1.000e+00) 546 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 547 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 540 Normalization: 1.000e-02 3.081e-07 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): -0.00 Ra Dec: 78.219 40.694 Creating a high resolution counts map... INFO: Auto-setting vmin to 0.000e+00 [aplpy.core] INFO: Auto-setting vmax to 0.000e+00 [aplpy.core] Saving /lscratch/kocevski/31099605/cmap_HighResolution_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-01', job_status='DONE', photon_flux_upper_limit='1.56e-06', time_completed='2026-07-09 02:21:09.485011', job_id='31099605', GAL2='0.48', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1783588869.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='-1.82e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='2178' AND source_name='4FGL J0512.8+4041' AND cadence='daily'; Database successfully updated. Analysis Complete. Thu Jul 9 02:21:09 PDT 2026 number of points = 7456 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J0512.8+4041_daily_bin2178 RA = 78.2186, Dec = 40.6945 tmin = 803865601, tmax = 804124801 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='31099716', job_status='RUN', time_executed='2026-07-09 02:19:55.856453', time_epoch_executed='1783588795.86' WHERE source_name='4FGL J0512.8+4041' and cadence='daily' and bin_id='2178' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/31099716 Creating custom pfile directory: /lscratch/kocevski/31099716/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=803865601.0 && nMetStart<804124801.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=803865601.0 && nMetStart<804124801.0' /Data/Flight/Level1/LPA Retrieving 47 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/31099716/ft1_4FGL_J0512.8+4041_daily_bin2178.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=803865601.0 && nMetStart<804124801.0' /Data/Flight/Level1/LPA Retrieving 47 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/31099716/ft2_4FGL_J0512.8+4041_daily_bin2178.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/31099716/ft1_4FGL_J0512.8+4041_daily_bin2178.fits outfile=/lscratch/kocevski/31099716/ft1_filteredMKT_4FGL_J0512.8+4041_daily_bin2178.fits ra=78.2186 dec=40.6945 rad=12.0 tmin=803865601.0 tmax=804124801.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.10 user 1.55 sys 0.17 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31099716/ft2_4FGL_J0512.8+4041_daily_bin2178.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/31099716/ft2_4FGL_J0512.8+4041_daily_bin2178.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/31099716/ft1_filteredMKT_4FGL_J0512.8+4041_daily_bin2178.fits evtable="EVENTS" outfile="/lscratch/kocevski/31099716/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.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.08 user 0.21 sys 0.13 Number of photons that the gtmktime cut: 209 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/31099716/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31099716/ft2_4FGL_J0512.8+4041_daily_bin2178.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31099636/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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/31099636/ft2_4FGL_J0512.8+4041_daily_bin2178.fits .....................! real 9.75 user 8.81 sys 0.23 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/31099636/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits evtable="EVENTS" scfile=/lscratch/kocevski/31099636/ft2_4FGL_J0512.8+4041_daily_bin2178.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31099636/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits outfile=/lscratch/kocevski/31099636/expmap_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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/31099636/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits .....................! real 72.38 user 67.37 sys 4.18 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 HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template. Extended source G150.3+4.5 in ROI with RadialDisk spatial model. Extended source S 147 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/S147.fits is the correct path to the extended template. Added 159 point sources and 3 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 J0512.8+4041 @ 78.2186 40.6945 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/31099636/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits scfile=/lscratch/kocevski/31099636/ft2_4FGL_J0512.8+4041_daily_bin2178.fits outfile=/lscratch/kocevski/31099636/cmap_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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=78.2186 yref=40.6945 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.81 user 0.23 sys 0.13 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/31099636/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits scfile=/lscratch/kocevski/31099636/ft2_4FGL_J0512.8+4041_daily_bin2178.fits outfile=/lscratch/kocevski/31099636/cmap_HighResolution_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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=78.2186 yref=40.6945 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.78 user 0.23 sy 0.14 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/31099630/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits evtable="EVENTS" scfile=/lscratch/kocevski/31099630/ft2_4FGL_J0512.8+4041_daily_bin2178.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31099630/Model_4FGL_J0512.8+4041_daily_bin2178.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 G150.3+4.5 adding source GAL_V02 adding source HB 9 adding source S 147 Working on... /lscratch/kocevski/31099630/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits.....................! real 26.43 user 24.42 sys 1.13 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/31099630/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits', '/lscratch/kocevski/31099630/ft2_4FGL_J0512.8+4041_daily_bin2178.fits', expMap='/lscratch/kocevski/31099630/expmap_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits', expCube='/lscratch/kocevski/31099630/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31099630/Model_4FGL_J0512.8+4041_daily_bin2178.xml', optimizer='MINUIT') Using source of interest name: '4FGL J0512.8+4041' 4FGL J0512.8+4041 Spectrum: PowerLaw 282 Prefactor: 4.408e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-13) 283 Index: 2.337e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 284 Scale: 1.477e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/31099630/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits Spacecraft file(s): /lscratch/kocevski/31099630/ft2_4FGL_J0512.8+4041_daily_bin2178.fits Exposure map: /lscratch/kocevski/31099630/expmap_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits Exposure cube: /lscratch/kocevski/31099630/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/31099630/Model_4FGL_J0512.8+4041_daily_bin2178.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) = 1895.53851307 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 1895.14925772 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .12490E-07 1.0000 .0000 .10000E+07 2 'norm ' .17996E-05 1.0000 .0000 .10000E+07 3 'norm ' .0000 1.0000 .0000 .10000E+07 4 'Prefactor ' .17025E-01 1.0000 .0000 .10000E+07 5 'norm ' 39.612 1.0000 .0000 .10000E+07 6 'Prefactor ' .99994E+06 1.0000 .0000 .10000E+07 7 'norm ' .15332E-03 1.0000 .0000 .10000E+07 8 'norm ' .39546E-03 1.0000 .0000 .10000E+07 9 'norm ' .27547E-04 1.0000 .0000 .10000E+07 10 'Normalizat' .10000E-01 1.0000 .10000E-01 10.000 11 'Prefactor ' .47958 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5560E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 1895.145 FROM MIGRAD STATUS=CONVERGED 90 CALLS 765 TOTAL EDM= .11E-08 STRATEGY=1 ERROR MATRIX UNCERTAINTY= .2% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .16653E-09 5.2491 -.80319E-07** at limit ** 2 norm .55511E-09 6.0686 .11994E-07** at limit ** 3 norm .77716E-09 6.2522 .36530E-06** at limit ** 4 Prefactor .16653E-08 64.287 -.76984E-06** at limit ** 5 norm 46.987 88.273 .10956E-05 .16473E-01 6 Prefactor .99994E+06 4.9332 .57601E-07 -.34348 7 norm .53291E-08 49.026 .58120E-06** at limit ** 8 norm .22204E-09 7.8432 -.13578E-06** at limit ** 9 norm .11102E-09 4.5228 .11233E-06** at limit ** 10 Normalizat .10000E-01 .69284E-01 .58700E-06** at limit ** 11 Prefactor .47927 .59246E-01 -.90048E-06 -.11952E-03 ERR DEF= .500 Final values: Prefactor = 1.66533e-10 norm = 5.55112e-10 norm = 7.77156e-10 Prefactor = 1.66533e-09 norm = 46.9867 Prefactor = 999939 norm = 5.32907e-09 norm = 2.22045e-10 norm = 1.11022e-10 Normalizat = 0.01 Prefactor = 0.47927 ********** ** 18 **HESSE ********** FCN= 1895.145 FROM HESSE STATUS=OK 126 CALLS 891 TOTAL EDM= .53E-02 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .16653E-09 5.2408 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 norm .55511E-09 6.0340 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 3 norm .77716E-09 6.2335 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 Prefactor .16653E-08 64.222 .17241E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 norm 46.987 88.065 .15890E-03 -1.5571 6 Prefactor .99994E+06 11278. .12816E-03 1.5552 7 norm .53291E-08 48.752 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm .22204E-09 7.7542 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 9 norm .11102E-09 4.5153 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Normalizat .10000E-01 .68761E-01 .15988 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 Prefactor .47927 .59298E-01 .26609E-01 -1.1294 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 0.00534309 Minuit parameter uncertainties: 1 5.69923e-05 2 0.000118499 3 0.000139004 4 0.000654365 5 88.0672 6 1655.37 7 0.00101769 8 8.57566e-05 9 4.17518e-05 10 5.82135e-08 11 0.0593061 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 1895.14540579 Extracting fit parameters... 4FGL J0512.8+4041 Spectrum: PowerLaw 282 Prefactor: 1.665e-09 6.544e-04 0.000e+00 1.000e+06 ( 1.000e-13) 283 Index: 2.337e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 284 Scale: 1.477e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 545 Prefactor: 4.793e-01 5.931e-02 0.000e+00 1.000e+01 ( 1.000e+00) 546 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 547 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 540 Normalization: 1.000e-02 5.821e-08 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): -0.00 Ra Dec: 78.219 40.694 Photon Flux Upper Limit: 1.55549278943e-06 ph cm-2 s-1 Energy Flux Upper Limit: 0.119686202776 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/31099630/likelihoodResults_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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) = 1895.15279296 delta logL = -0.00738717545414 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 1895.14540615 delta logL = -3.60784270015e-07 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .21816E-07 1.0000 .0000 .10000E+07 2 'Index ' 1.9112 1.0000 .0000 10.000 3 'Normalizat' .10000E-01 1.0000 .10000E-01 10.000 4 'Prefactor ' .47927 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5560E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. FCN= 1895.145 FROM MIGRAD STATUS=CONVERGED 71 CALLS 266 TOTAL EDM= .21E-09 STRATEGY= 1 ERR MATRIX NOT POS-DEF EXT PARAMETER APPROXIMATE STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .33140E-07 225.88 .42118E-03** at limit ** 2 Index .82145 7.9967 .26326 -.99323E-09 3 Normalizat .10000E-01 .37499E-03 .15988 ** at limit ** 4 Prefactor .47927 .43708E-02 .26609E-01 -.26743E-04 ERR DEF= .500 Final values: Prefactor = 3.31402e-08 Index = 0.821448 Normalizat = 0.01 Prefactor = 0.47927 ********** ** 18 **HESSE ********** FCN= 1895.145 FROM HESSE STATUS=NOT POSDEF 25 CALLS 291 TOTAL EDM= .36E-09 STRATEGY= 1 ERR MATRIX NOT POS-DEF EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .33140E-07 336.48 .84235E-04 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .82145 5.3743 .10531E-01 -.98943 3 Normalizat .10000E-01 .56392E-03 .35214E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 Prefactor .47927 .53421E-02 .11760E-03 -1.1294 ERR DEF= .500 Minuit fit quality: 2 estimated distance: 3.55391e-10 Minuit parameter uncertainties: 1 0.00667892 2 61093.9 3 3.08069e-07 4 0.00534206 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 1895.14540579 delta logL = -1.81671566679e-10 Extracting fit parameters... 4FGL J0512.8+4041 Spectrum: PowerLaw 282 Prefactor: 3.314e-08 6.679e-03 0.000e+00 1.000e+06 ( 1.000e-13) 283 Index: 8.214e-01 6.109e+04 0.000e+00 1.000e+01 (-1.000e+00) 284 Scale: 1.477e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 545 Prefactor: 4.793e-01 5.342e-03 0.000e+00 1.000e+01 ( 1.000e+00) 546 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 547 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 540 Normalization: 1.000e-02 3.081e-07 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): -0.00 Ra Dec: 78.219 40.694 Creating a high resolution counts map... INFO: Auto-setting vmin to 0.000e+00 [aplpy.core] INFO: Auto-setting vmax to 0.000e+00 [aplpy.core] Saving /lscratch/kocevski/31099630/cmap_HighResolution_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-01', job_status='DONE', photon_flux_upper_limit='1.56e-06', time_completed='2026-07-09 02:22:12.479659', job_id='31099630', GAL2='0.48', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1783588932.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='-1.82e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='2178' AND source_name='4FGL J0512.8+4041' AND cadence='daily'; Database successfully updated. Analysis Complete. Thu Jul 9 02:22:12 PDT 2026 s 0.13 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/31099636/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits evtable="EVENTS" scfile=/lscratch/kocevski/31099636/ft2_4FGL_J0512.8+4041_daily_bin2178.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31099636/Model_4FGL_J0512.8+4041_daily_bin2178.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 G150.3+4.5 adding source GAL_V02 adding source HB 9 adding source S 147 Working on... /lscratch/kocevski/31099636/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits.....................! real 27.79 user 25.98 sys 1.07 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/31099636/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits', '/lscratch/kocevski/31099636/ft2_4FGL_J0512.8+4041_daily_bin2178.fits', expMap='/lscratch/kocevski/31099636/expmap_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits', expCube='/lscratch/kocevski/31099636/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31099636/Model_4FGL_J0512.8+4041_daily_bin2178.xml', optimizer='MINUIT') Using source of interest name: '4FGL J0512.8+4041' 4FGL J0512.8+4041 Spectrum: PowerLaw 282 Prefactor: 4.408e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-13) 283 Index: 2.337e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 284 Scale: 1.477e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/31099636/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits Spacecraft file(s): /lscratch/kocevski/31099636/ft2_4FGL_J0512.8+4041_daily_bin2178.fits Exposure map: /lscratch/kocevski/31099636/expmap_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits Exposure cube: /lscratch/kocevski/31099636/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/31099636/Model_4FGL_J0512.8+4041_daily_bin2178.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) = 1895.53851307 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 1895.14925772 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .12490E-07 1.0000 .0000 .10000E+07 2 'norm ' .17996E-05 1.0000 .0000 .10000E+07 3 'norm ' .0000 1.0000 .0000 .10000E+07 4 'Prefactor ' .17025E-01 1.0000 .0000 .10000E+07 5 'norm ' 39.612 1.0000 .0000 .10000E+07 6 'Prefactor ' .99994E+06 1.0000 .0000 .10000E+07 7 'norm ' .15332E-03 1.0000 .0000 .10000E+07 8 'norm ' .39546E-03 1.0000 .0000 .10000E+07 9 'norm ' .27547E-04 1.0000 .0000 .10000E+07 10 'Normalizat' .10000E-01 1.0000 .10000E-01 10.000 11 'Prefactor ' .47958 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5560E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 1895.145 FROM MIGRAD STATUS=CONVERGED 90 CALLS 765 TOTAL EDM= .11E-08 STRATEGY=1 ERROR MATRIX UNCERTAINTY= .2% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .16653E-09 5.2491 -.80319E-07** at limit ** 2 norm .55511E-09 6.0686 .11994E-07** at limit ** 3 norm .77716E-09 6.2522 .36530E-06** at limit ** 4 Prefactor .16653E-08 64.287 -.76984E-06** at limit ** 5 norm 46.987 88.273 .10956E-05 .16473E-01 6 Prefactor .99994E+06 4.9332 .57601E-07 -.34348 7 norm .53291E-08 49.026 .58120E-06** at limit ** 8 norm .22204E-09 7.8432 -.13578E-06** at limit ** 9 norm .11102E-09 4.5228 .11233E-06** at limit ** 10 Normalizat .10000E-01 .69284E-01 .58700E-06** at limit ** 11 Prefactor .47927 .59246E-01 -.90048E-06 -.11952E-03 ERR DEF= .500 Final values: Prefactor = 1.66533e-10 norm = 5.55112e-10 norm = 7.77156e-10 Prefactor = 1.66533e-09 norm = 46.9867 Prefactor = 999939 norm = 5.32907e-09 norm = 2.22045e-10 norm = 1.11022e-10 Normalizat = 0.01 Prefactor = 0.47927 tfile=/lscratch/kocevski/31099716/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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/31099716/ft2_4FGL_J0512.8+4041_daily_bin2178.fits .....................! real 9.48 user 8.74 sys 0.24 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/31099716/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits evtable="EVENTS" scfile=/lscratch/kocevski/31099716/ft2_4FGL_J0512.8+4041_daily_bin2178.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31099716/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits outfile=/lscratch/kocevski/31099716/expmap_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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/31099716/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits .....................! real 74.19 user 69.11 sys 4.25 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 HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template. Extended source G150.3+4.5 in ROI with RadialDisk spatial model. Extended source S 147 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/S147.fits is the correct path to the extended template. Added 159 point sources and 3 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 J0512.8+4041 @ 78.2186 40.6945 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/31099716/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits scfile=/lscratch/kocevski/31099716/ft2_4FGL_J0512.8+4041_daily_bin2178.fits outfile=/lscratch/kocevski/31099716/cmap_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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=78.2186 yref=40.6945 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.79 user 0.23 sys 0.12 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/31099716/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits scfile=/lscratch/kocevski/31099716/ft2_4FGL_J0512.8+4041_daily_bin2178.fits outfile=/lscratch/kocevski/31099716/cmap_HighResolution_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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=78.2186 yref=40.6945 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.82 user 0.23 sy ********** ** 18 **HESSE ********** FCN= 1895.145 FROM HESSE STATUS=OK 126 CALLS 891 TOTAL EDM= .53E-02 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .16653E-09 5.2408 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 norm .55511E-09 6.0340 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 3 norm .77716E-09 6.2335 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 Prefactor .16653E-08 64.222 .17241E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 norm 46.987 88.065 .15890E-03 -1.5571 6 Prefactor .99994E+06 11278. .12816E-03 1.5552 7 norm .53291E-08 48.752 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm .22204E-09 7.7542 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 9 norm .11102E-09 4.5153 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Normalizat .10000E-01 .68761E-01 .15988 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 Prefactor .47927 .59298E-01 .26609E-01 -1.1294 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 0.00534309 Minuit parameter uncertainties: 1 5.69923e-05 2 0.000118499 3 0.000139004 4 0.000654365 5 88.0672 6 1655.37 7 0.00101769 8 8.57566e-05 9 4.17518e-05 10 5.82135e-08 11 0.0593061 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 1895.14540579 Extracting fit parameters... 4FGL J0512.8+4041 Spectrum: PowerLaw 282 Prefactor: 1.665e-09 6.544e-04 0.000e+00 1.000e+06 ( 1.000e-13) 283 Index: 2.337e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 284 Scale: 1.477e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 545 Prefactor: 4.793e-01 5.931e-02 0.000e+00 1.000e+01 ( 1.000e+00) 546 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 547 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 540 Normalization: 1.000e-02 5.821e-08 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): -0.00 Ra Dec: 78.219 40.694 Photon Flux Upper Limit: 1.55549278943e-06 ph cm-2 s-1 Energy Flux Upper Limit: 0.119686202776 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/31099636/likelihoodResults_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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) = 1895.15279296 delta logL = -0.00738717545414 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 1895.14540615 delta logL = -3.60784270015e-07 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .21816E-07 1.0000 .0000 .10000E+07 2 'Index ' 1.9112 1.0000 .0000 10.000 3 'Normalizat' .10000E-01 1.0000 .10000E-01 10.000 4 'Prefactor ' .47927 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5560E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. FCN= 1895.145 FROM MIGRAD STATUS=CONVERGED 71 CALLS 266 TOTAL EDM= .21E-09 STRATEGY= 1 ERR MATRIX NOT POS-DEF EXT PARAMETER APPROXIMATE STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .33140E-07 225.88 .42118E-03** at limit ** 2 Index .82145 7.9967 .26326 -.99323E-09 3 Normalizat .10000E-01 .37499E-03 .15988 ** at limit ** 4 Prefactor .47927 .43708E-02 .26609E-01 -.26743E-04 ERR DEF= .500 Final values: Prefactor = 3.31402e-08 Index = 0.821448 Normalizat = 0.01 Prefactor = 0.47927 ********** ** 18 **HESSE ********** FCN= 1895.145 FROM HESSE STATUS=NOT POSDEF 25 CALLS 291 TOTAL EDM= .36E-09 STRATEGY= 1 ERR MATRIX NOT POS-DEF EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .33140E-07 336.48 .84235E-04 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .82145 5.3743 .10531E-01 -.98943 3 Normalizat .10000E-01 .56392E-03 .35214E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 Prefactor .47927 .53421E-02 .11760E-03 -1.1294 ERR DEF= .500 Minuit fit quality: 2 estimated distance: 3.55391e-10 Minuit parameter uncertainties: 1 0.00667892 2 61093.9 3 3.08069e-07 4 0.00534206 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 1895.14540579 delta logL = -1.81671566679e-10 Extracting fit parameters... 4FGL J0512.8+4041 Spectrum: PowerLaw 282 Prefactor: 3.314e-08 6.679e-03 0.000e+00 1.000e+06 ( 1.000e-13) 283 Index: 8.214e-01 6.109e+04 0.000e+00 1.000e+01 (-1.000e+00) 284 Scale: 1.477e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 545 Prefactor: 4.793e-01 5.342e-03 0.000e+00 1.000e+01 ( 1.000e+00) 546 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 547 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 540 Normalization: 1.000e-02 3.081e-07 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): -0.00 Ra Dec: 78.219 40.694 Creating a high resolution counts map... INFO: Auto-setting vmin to 0.000e+00 [aplpy.core] INFO: Auto-setting vmax to 0.000e+00 [aplpy.core] Saving /lscratch/kocevski/31099636/cmap_HighResolution_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-01', job_status='DONE', photon_flux_upper_limit='1.56e-06', time_completed='2026-07-09 02:22:49.337598', job_id='31099636', GAL2='0.48', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1783588969.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='-1.82e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='2178' AND source_name='4FGL J0512.8+4041' AND cadence='daily'; Database successfully updated. Analysis Complete. Thu Jul 9 02:22:49 PDT 2026 s 0.13 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/31099716/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits evtable="EVENTS" scfile=/lscratch/kocevski/31099716/ft2_4FGL_J0512.8+4041_daily_bin2178.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31099716/Model_4FGL_J0512.8+4041_daily_bin2178.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 G150.3+4.5 adding source GAL_V02 adding source HB 9 adding source S 147 Working on... /lscratch/kocevski/31099716/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits.....................! real 28.31 user 26.12 sys 1.14 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/31099716/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits', '/lscratch/kocevski/31099716/ft2_4FGL_J0512.8+4041_daily_bin2178.fits', expMap='/lscratch/kocevski/31099716/expmap_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits', expCube='/lscratch/kocevski/31099716/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31099716/Model_4FGL_J0512.8+4041_daily_bin2178.xml', optimizer='MINUIT') Using source of interest name: '4FGL J0512.8+4041' 4FGL J0512.8+4041 Spectrum: PowerLaw 282 Prefactor: 4.408e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-13) 283 Index: 2.337e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 284 Scale: 1.477e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/31099716/ft1_filtered_4FGL_J0512.8+4041_daily_bin2178.fits Spacecraft file(s): /lscratch/kocevski/31099716/ft2_4FGL_J0512.8+4041_daily_bin2178.fits Exposure map: /lscratch/kocevski/31099716/expmap_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits Exposure cube: /lscratch/kocevski/31099716/ltcube_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/31099716/Model_4FGL_J0512.8+4041_daily_bin2178.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) = 1895.53851307 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 1895.14925772 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .12490E-07 1.0000 .0000 .10000E+07 2 'norm ' .17996E-05 1.0000 .0000 .10000E+07 3 'norm ' .0000 1.0000 .0000 .10000E+07 4 'Prefactor ' .17025E-01 1.0000 .0000 .10000E+07 5 'norm ' 39.612 1.0000 .0000 .10000E+07 6 'Prefactor ' .99994E+06 1.0000 .0000 .10000E+07 7 'norm ' .15332E-03 1.0000 .0000 .10000E+07 8 'norm ' .39546E-03 1.0000 .0000 .10000E+07 9 'norm ' .27547E-04 1.0000 .0000 .10000E+07 10 'Normalizat' .10000E-01 1.0000 .10000E-01 10.000 11 'Prefactor ' .47958 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5560E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 1895.145 FROM MIGRAD STATUS=CONVERGED 90 CALLS 765 TOTAL EDM= .11E-08 STRATEGY=1 ERROR MATRIX UNCERTAINTY= .2% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .16653E-09 5.2491 -.80319E-07** at limit ** 2 norm .55511E-09 6.0686 .11994E-07** at limit ** 3 norm .77716E-09 6.2522 .36530E-06** at limit ** 4 Prefactor .16653E-08 64.287 -.76984E-06** at limit ** 5 norm 46.987 88.273 .10956E-05 .16473E-01 6 Prefactor .99994E+06 4.9332 .57601E-07 -.34348 7 norm .53291E-08 49.026 .58120E-06** at limit ** 8 norm .22204E-09 7.8432 -.13578E-06** at limit ** 9 norm .11102E-09 4.5228 .11233E-06** at limit ** 10 Normalizat .10000E-01 .69284E-01 .58700E-06** at limit ** 11 Prefactor .47927 .59246E-01 -.90048E-06 -.11952E-03 ERR DEF= .500 Final values: Prefactor = 1.66533e-10 norm = 5.55112e-10 norm = 7.77156e-10 Prefactor = 1.66533e-09 norm = 46.9867 Prefactor = 999939 norm = 5.32907e-09 norm = 2.22045e-10 norm = 1.11022e-10 Normalizat = 0.01 Prefactor = 0.47927 ********** ** 18 **HESSE ********** FCN= 1895.145 FROM HESSE STATUS=OK 126 CALLS 891 TOTAL EDM= .53E-02 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .16653E-09 5.2408 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 norm .55511E-09 6.0340 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 3 norm .77716E-09 6.2335 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 Prefactor .16653E-08 64.222 .17241E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 norm 46.987 88.065 .15890E-03 -1.5571 6 Prefactor .99994E+06 11278. .12816E-03 1.5552 7 norm .53291E-08 48.752 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm .22204E-09 7.7542 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 9 norm .11102E-09 4.5153 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Normalizat .10000E-01 .68761E-01 .15988 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 Prefactor .47927 .59298E-01 .26609E-01 -1.1294 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 0.00534309 Minuit parameter uncertainties: 1 5.69923e-05 2 0.000118499 3 0.000139004 4 0.000654365 5 88.0672 6 1655.37 7 0.00101769 8 8.57566e-05 9 4.17518e-05 10 5.82135e-08 11 0.0593061 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 1895.14540579 Extracting fit parameters... 4FGL J0512.8+4041 Spectrum: PowerLaw 282 Prefactor: 1.665e-09 6.544e-04 0.000e+00 1.000e+06 ( 1.000e-13) 283 Index: 2.337e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 284 Scale: 1.477e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 545 Prefactor: 4.793e-01 5.931e-02 0.000e+00 1.000e+01 ( 1.000e+00) 546 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 547 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 540 Normalization: 1.000e-02 5.821e-08 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): -0.00 Ra Dec: 78.219 40.694 Photon Flux Upper Limit: 1.55549278943e-06 ph cm-2 s-1 Energy Flux Upper Limit: 0.119686202776 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/31099716/likelihoodResults_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.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) = 1895.15279296 delta logL = -0.00738717545414 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 1895.14540615 delta logL = -3.60784270015e-07 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .21816E-07 1.0000 .0000 .10000E+07 2 'Index ' 1.9112 1.0000 .0000 10.000 3 'Normalizat' .10000E-01 1.0000 .10000E-01 10.000 4 'Prefactor ' .47927 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5560E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. FCN= 1895.145 FROM MIGRAD STATUS=CONVERGED 71 CALLS 266 TOTAL EDM= .21E-09 STRATEGY= 1 ERR MATRIX NOT POS-DEF EXT PARAMETER APPROXIMATE STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .33140E-07 225.88 .42118E-03** at limit ** 2 Index .82145 7.9967 .26326 -.99323E-09 3 Normalizat .10000E-01 .37499E-03 .15988 ** at limit ** 4 Prefactor .47927 .43708E-02 .26609E-01 -.26743E-04 ERR DEF= .500 Final values: Prefactor = 3.31402e-08 Index = 0.821448 Normalizat = 0.01 Prefactor = 0.47927 ********** ** 18 **HESSE ********** FCN= 1895.145 FROM HESSE STATUS=NOT POSDEF 25 CALLS 291 TOTAL EDM= .36E-09 STRATEGY= 1 ERR MATRIX NOT POS-DEF EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .33140E-07 336.48 .84235E-04 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .82145 5.3743 .10531E-01 -.98943 3 Normalizat .10000E-01 .56392E-03 .35214E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 Prefactor .47927 .53421E-02 .11760E-03 -1.1294 ERR DEF= .500 Minuit fit quality: 2 estimated distance: 3.55391e-10 Minuit parameter uncertainties: 1 0.00667892 2 61093.9 3 3.08069e-07 4 0.00534206 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 1895.14540579 delta logL = -1.81671566679e-10 Extracting fit parameters... 4FGL J0512.8+4041 Spectrum: PowerLaw 282 Prefactor: 3.314e-08 6.679e-03 0.000e+00 1.000e+06 ( 1.000e-13) 283 Index: 8.214e-01 6.109e+04 0.000e+00 1.000e+01 (-1.000e+00) 284 Scale: 1.477e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 545 Prefactor: 4.793e-01 5.342e-03 0.000e+00 1.000e+01 ( 1.000e+00) 546 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 547 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 540 Normalization: 1.000e-02 3.081e-07 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): -0.00 Ra Dec: 78.219 40.694 Creating a high resolution counts map... INFO: Auto-setting vmin to 0.000e+00 [aplpy.core] INFO: Auto-setting vmax to 0.000e+00 [aplpy.core] Saving /lscratch/kocevski/31099716/cmap_HighResolution_803865601_804124801_4FGL_J0512.8+4041_daily_bin2178.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-01', job_status='DONE', photon_flux_upper_limit='1.56e-06', time_completed='2026-07-09 02:23:52.738642', job_id='31099716', GAL2='0.48', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1783589032.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='-1.82e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='2178' AND source_name='4FGL J0512.8+4041' AND cadence='daily'; Database successfully updated. Analysis Complete. Thu Jul 9 02:23:53 PDT 2026