Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 5848.66335988 Extracting fit parameters... 4FGL J1704.5-0527 Spectrum: PowerLaw 253 Prefactor: 7.289e-07 1.457e-02 0.000e+00 1.000e+06 ( 1.000e-14) 254 Index: 2.017e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 255 Scale: 3.359e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 903 Prefactor: 1.127e+00 7.191e-02 0.000e+00 1.000e+01 ( 1.000e+00) 904 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 905 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 895 Normalization: 1.000e-02 1.530e-06 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): -0.00 Ra Dec: 256.138 -5.462 Photon Flux Upper Limit: 3.05796230044e-07 ph cm-2 s-1 Energy Flux Upper Limit: 0.0229678285795 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/31181677/likelihoodResults_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.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) = 5848.66993302 delta logL = -0.0065731388413 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 5848.66336061 delta logL = -7.31878571969e-07 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .18474E-04 1.0000 .0000 .10000E+07 2 'Index ' .42195 1.0000 .0000 10.000 3 'Normalizat' .10000E-01 1.0000 .10000E-01 10.000 4 'Prefactor ' 1.1272 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .9280E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 5848.663 FROM MIGRAD STATUS=CONVERGED 36 CALLS 219 TOTAL EDM= .34E-11 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 1.3% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .0000 76.214 .56510E-06** at limit ** 2 Index 1.8137 8.0861 -.14565E-04 .0000 3 Normalizat .10000E-01 .46672 -.52744E-04** at limit ** 4 Prefactor 1.1271 .54335E-01 .12212E-05 .65391E-04 ERR DEF= .500 Final values: Prefactor = 0 Index = 1.81365 Normalizat = 0.01 Prefactor = 1.12713 ********** ** 18 **HESSE ********** MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 5848.663 FROM HESSE STATUS=FAILED 11 CALLS 230 TOTAL EDM= .34E-11 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .0000 76.369 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .33809 1.7096 -.14565E-04 -.69095 3 Normalizat .10000E-01 .25505 -.52744E-04 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 Prefactor 1.1271 1.1328 .12212E-05 -.88604 ERR DEF= .500 Minuit fit quality: 1 estimated distance: 3.40878e-12 Minuit parameter uncertainties: 1 3.83064e-06 2 1.48608 3 1.55461e-06 4 1.15856 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Done. MINUIT Return Code (Free Index): 101 logL (Free Index) = 5848.66335988 delta logL = 5.00585883856e-09 Extracting fit parameters... 4FGL J1704.5-0527 Spectrum: PowerLaw 253 Prefactor: 0.000e+00 3.831e-06 0.000e+00 1.000e+06 ( 1.000e-14) 254 Index: 1.814e+00 1.486e+00 0.000e+00 1.000e+01 (-1.000e+00) 255 Scale: 3.359e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 903 Prefactor: 1.127e+00 1.159e+00 0.000e+00 1.000e+01 ( 1.000e+00) 904 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 905 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 895 Normalization: 1.000e-02 1.555e-06 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): -0.00 Ra Dec: 256.138 -5.462 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/31181677/cmap_HighResolution_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-02', job_status='DONE', photon_flux_upper_limit='3.06e-07', time_completed='2026-07-09 23:45:57.266431', job_id='31181677', GAL2='1.13', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1783665957.27', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='5.01e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='934' AND source_name='4FGL J1704.5-0527' AND cadence='weekly'; Database successfully updated. Analysis Complete. Thu Jul 9 23:45:57 PDT 2026 tfile=/lscratch/kocevski/31181761/ltcube_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.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/31181761/ft2_4FGL_J1704.5-0527_weekly_bin934.fits .....................! real 24.31 user 23.40 sys 0.27 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/31181761/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits evtable="EVENTS" scfile=/lscratch/kocevski/31181761/ft2_4FGL_J1704.5-0527_weekly_bin934.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31181761/ltcube_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.fits outfile=/lscratch/kocevski/31181761/expmap_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.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/31181761/ltcube_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.fits .....................! real 77.18 user 71.78 sys 4.39 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 FHES J1723.5-0501 in ROI with RadialGaussian spatial model. Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model. Extended source HESS J1804-216 in ROI with RadialDisk spatial model. Extended source W 30 in ROI with RadialDisk spatial model. Extended source HESS J1808-204 in ROI with RadialDisk spatial model. Extended source HESS J1809-193 in ROI with RadialDisk spatial model. Extended source HESS J1813-178 in ROI with RadialDisk spatial model. Extended source HESS J1825-137 in ROI with RadialGaussian spatial model. Added 252 point sources and 8 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 J1704.5-0527 @ 256.138 -5.462 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/31181761/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits scfile=/lscratch/kocevski/31181761/ft2_4FGL_J1704.5-0527_weekly_bin934.fits outfile=/lscratch/kocevski/31181761/cmap_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.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=256.138 yref=-5.462 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.87 user 0.27 sys 0.14 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/31181761/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits scfile=/lscratch/kocevski/31181761/ft2_4FGL_J1704.5-0527_weekly_bin934.fits outfile=/lscratch/kocevski/31181761/cmap_HighResolution_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.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=256.138 yref=-5.462 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" W/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits PyFITSDeprecationWarning) # noqa Likelihood Analysis Tool Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov) Importing modules... This is make3FGLxml version 01r0. The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher. This is make4FGLDR3xml version 01r09. The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations. WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). /sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead. warnings.warn(message, mplDeprecation, stacklevel=1) WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). number of points = 17538 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J1704.5-0527_weekly_bin934 RA = 256.138, Dec = -5.462 tmin = 803865601, tmax = 804470401 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='31181924', job_status='RUN', time_executed='2026-07-09 23:43:17.190114', time_epoch_executed='1783665797.19' WHERE source_name='4FGL J1704.5-0527' and cadence='weekly' and bin_id='934' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/31181924 Creating custom pfile directory: /lscratch/kocevski/31181924/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=803865601.0 && nMetStart<804470401.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=803865601.0 && nMetStart<804470401.0' /Data/Flight/Level1/LPA Retrieving 109 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/31181924/ft1_4FGL_J1704.5-0527_weekly_bin934.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=803865601.0 && nMetStart<804470401.0' /Data/Flight/Level1/LPA Retrieving 109 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/31181924/ft2_4FGL_J1704.5-0527_weekly_bin934.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/31181924/ft1_4FGL_J1704.5-0527_weekly_bin934.fits outfile=/lscratch/kocevski/31181924/ft1_filteredMKT_4FGL_J1704.5-0527_weekly_bin934.fits ra=256.138 dec=-5.462 rad=12.0 tmin=803865601.0 tmax=804470401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). Done. real 3.98 user 3.33 sys 0.18 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31181924/ft2_4FGL_J1704.5-0527_weekly_bin934.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/31181924/ft2_4FGL_J1704.5-0527_weekly_bin934.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/31181924/ft1_filteredMKT_4FGL_J1704.5-0527_weekly_bin934.fits evtable="EVENTS" outfile="/lscratch/kocevski/31181924/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.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.88 user 0.24 sys 0.13 Number of photons that the gtmktime cut: 491 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/31181924/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31181924/ft2_4FGL_J1704.5-0527_weekly_bin934.fits sctable="SC_DATA" ouARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). This is gtbin version HEAD real 0.83 user 0.28 sys 0.14 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/31181761/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits evtable="EVENTS" scfile=/lscratch/kocevski/31181761/ft2_4FGL_J1704.5-0527_weekly_bin934.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31181761/Model_4FGL_J1704.5-0527_weekly_bin934.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 FHES J1626.9-2431 adding source FHES J1723.5-0501 adding source GAL_V02 adding source HESS J1804-216 adding source HESS J1808-204 adding source HESS J1809-193 adding source HESS J1813-178 adding source HESS J1825-137 adding source W 30 Working on... /lscratch/kocevski/31181761/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits.....................! real 34.17 user 30.82 sys 1.21 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/31181761/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits', '/lscratch/kocevski/31181761/ft2_4FGL_J1704.5-0527_weekly_bin934.fits', expMap='/lscratch/kocevski/31181761/expmap_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.fits', expCube='/lscratch/kocevski/31181761/ltcube_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31181761/Model_4FGL_J1704.5-0527_weekly_bin934.xml', optimizer='MINUIT') Using source of interest name: '4FGL J1704.5-0527' 4FGL J1704.5-0527 Spectrum: PowerLaw 253 Prefactor: 8.164e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-14) 254 Index: 2.017e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 255 Scale: 3.359e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/31181761/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits Spacecraft file(s): /lscratch/kocevski/31181761/ft2_4FGL_J1704.5-0527_weekly_bin934.fits Exposure map: /lscratch/kocevski/31181761/expmap_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.fits Exposure cube: /lscratch/kocevski/31181761/ltcube_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/31181761/Model_4FGL_J1704.5-0527_weekly_bin934.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) = 5848.67342669 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 5848.66336202 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .77111E-06 1.0000 .0000 .10000E+07 2 'Prefactor ' 15.997 1.0000 .0000 .10000E+07 3 'Prefactor ' .10786E-03 1.0000 .0000 .10000E+07 4 'Prefactor ' 67.662 1.0000 .0000 .10000E+07 5 'Prefactor ' 2.1243 1.0000 .0000 .10000E+07 6 'Prefactor ' .80139E-04 1.0000 .0000 .10000E+07 7 'Prefactor ' .38397E-05 1.0000 .0000 .10000E+07 8 'norm ' 13.637 1.0000 .0000 .10000E+07 9 'norm ' .85487E-08 1.0000 .0000 .10000E+07 10 'norm ' .12934E-07 1.0000 .0000 .10000E+07 11 'Normalizat' .10002E-01 1.0000 .10000E-01 10.000 12 'Prefactor ' 1.1272 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .9280E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 5848.663 FROM MIGRAD STATUS=CONVERGED 114 CALLS 906 TOTAL EDM= .35E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 3.1% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .10825E-07 52.959 -.67046E-06** at limit ** 2 Prefactor 15.998 16.516 -.11998E-07 .90067E-03 3 Prefactor .14102E-04 227.03 .53724E-06** at limit ** 4 Prefactor 67.525 17.096 .89955E-08 -.18553 5 Prefactor 2.1223 5.0992 -.11044E-06 -.39998E-03 6 Prefactor .72892E-06 72.631 .44668E-06** at limit ** 7 Prefactor .76820E-05 90.645 .59900E-06** at limit ** 8 norm 13.631 18.291 -.74246E-07 -.10771E-02 9 norm .0000 3.1407 .23152E-06** at limit ** 10 norm .0000 9.4395 -.41522E-07** at limit ** 11 Normalizat .10000E-01 .46835 -.24036E-04** at limit ** 12 Prefactor 1.1271 .58559E-01 .38069E-06 .38921E-04 ERR DEF= .500 Final values: Prefactor = 1.08247e-08 Prefactor = 15.9984 Prefactor = 1.41023e-05 Prefactor = 67.5255 Prefactor = 2.12228 Prefactor = 7.28917e-07 Prefactor = 7.68202e-06 norm = 13.631 norm = 0 norm = 0 Normalizat = 0.01 Prefactor = 1.12713 ********** ** 18 **HESSE ********** FCN= 5848.663 FROM HESSE STATUS=OK 149 CALLS 1055 TOTAL EDM= .33E-05 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .10825E-07 53.004 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Prefactor 15.998 16.507 .25014E-03 -1.5628 3 Prefactor .14102E-04 226.41 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 Prefactor 67.525 79.049 .12158E-03 -1.5544 5 Prefactor 2.1223 5.1639 .70724E-03 -1.5679 6 Prefactor .72892E-06 72.793 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 7 Prefactor .76820E-05 92.912 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm 13.631 18.354 .27098E-03 -1.5634 9 norm .0000 3.1362 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 norm .0000 9.4978 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 Normalizat .10000E-01 .20207 .46259 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 12 Prefactor 1.1271 .71901E-01 .36634E-01 -.88604 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 3.29056e-06 Minuit parameter uncertainties: 1 0.00151531 2 16.5067 3 0.113016 4 79.0499 5 5.16388 6 0.0145685 7 0.0534332 8 18.3543 9 1.73952e-05 10 6.33935e-06 11 1.52952e-06 12 0.071907 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 5848.66335988 Extracting fit parameters... 4FGL J1704.5-0527 Spectrum: PowerLaw 253 Prefactor: 7.289e-07 1.457e-02 0.000e+00 1.000e+06 ( 1.000e-14) 254 Index: 2.017e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 255 Scale: 3.359e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 903 Prefactor: 1.127e+00 7.191e-02 0.000e+00 1.000e+01 ( 1.000e+00) 904 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 905 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 895 Normalization: 1.000e-02 1.530e-06 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): -0.00 Ra Dec: 256.138 -5.462 Photon Flux Upper Limit: 3.05796230044e-07 ph cm-2 s-1 Energy Flux Upper Limit: 0.0229678285795 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/31181761/likelihoodResults_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.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) = 5848.66993302 delta logL = -0.0065731388413 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 5848.66336061 delta logL = -7.31878571969e-07 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .18474E-04 1.0000 .0000 .10000E+07 2 'Index ' .42195 1.0000 .0000 10.000 3 'Normalizat' .10000E-01 1.0000 .10000E-01 10.000 4 'Prefactor ' 1.1272 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .9280E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 5848.663 FROM MIGRAD STATUS=CONVERGED 36 CALLS 219 TOTAL EDM= .34E-11 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 1.3% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .0000 76.214 .56510E-06** at limit ** 2 Index 1.8137 8.0861 -.14565E-04 .0000 3 Normalizat .10000E-01 .46672 -.52744E-04** at limit ** 4 Prefactor 1.1271 .54335E-01 .12212E-05 .65391E-04 ERR DEF= .500 Final values: Prefactor = 0 Index = 1.81365 Normalizat = 0.01 Prefactor = 1.12713 ********** ** 18 **HESSE ********** MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 5848.663 FROM HESSE STATUS=FAILED 11 CALLS 230 TOTAL EDM= .34E-11 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .0000 76.369 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .33809 1.7096 -.14565E-04 -.69095 3 Normalizat .10000E-01 .25505 -.52744E-04 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 Prefactor 1.1271 1.1328 .12212E-05 -.88604 ERR DEF= .500 Minuit fit quality: 1 estimated distance: 3.40878e-12 Minuit parameter uncertainties: 1 3.83064e-06 2 1.48608 3 1.55461e-06 4 1.15856 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Done. MINUIT Return Code (Free Index): 101 logL (Free Index) = 5848.66335988 delta logL = 5.00585883856e-09 Extracting fit parameters... 4FGL J1704.5-0527 Spectrum: PowerLaw 253 Prefactor: 0.000e+00 3.831e-06 0.000e+00 1.000e+06 ( 1.000e-14) 254 Index: 1.814e+00 1.486e+00 0.000e+00 1.000e+01 (-1.000e+00) 255 Scale: 3.359e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 903 Prefactor: 1.127e+00 1.159e+00 0.000e+00 1.000e+01 ( 1.000e+00) 904 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 905 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 895 Normalization: 1.000e-02 1.555e-06 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): -0.00 Ra Dec: 256.138 -5.462 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/31181761/cmap_HighResolution_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-02', job_status='DONE', photon_flux_upper_limit='3.06e-07', time_completed='2026-07-09 23:48:34.564049', job_id='31181761', GAL2='1.13', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1783666114.56', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='5.01e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='934' AND source_name='4FGL J1704.5-0527' AND cadence='weekly'; Database successfully updated. Analysis Complete. Thu Jul 9 23:48:34 PDT 2026 tfile=/lscratch/kocevski/31181924/ltcube_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.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/31181924/ft2_4FGL_J1704.5-0527_weekly_bin934.fits .....................! real 22.07 user 21.37 sys 0.23 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/31181924/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits evtable="EVENTS" scfile=/lscratch/kocevski/31181924/ft2_4FGL_J1704.5-0527_weekly_bin934.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31181924/ltcube_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.fits outfile=/lscratch/kocevski/31181924/expmap_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.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/31181924/ltcube_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.fits .....................! real 79.32 user 74.14 sys 4.50 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 FHES J1723.5-0501 in ROI with RadialGaussian spatial model. Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model. Extended source HESS J1804-216 in ROI with RadialDisk spatial model. Extended source W 30 in ROI with RadialDisk spatial model. Extended source HESS J1808-204 in ROI with RadialDisk spatial model. Extended source HESS J1809-193 in ROI with RadialDisk spatial model. Extended source HESS J1813-178 in ROI with RadialDisk spatial model. Extended source HESS J1825-137 in ROI with RadialGaussian spatial model. Added 252 point sources and 8 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 J1704.5-0527 @ 256.138 -5.462 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/31181924/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits scfile=/lscratch/kocevski/31181924/ft2_4FGL_J1704.5-0527_weekly_bin934.fits outfile=/lscratch/kocevski/31181924/cmap_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.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=256.138 yref=-5.462 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.77 user 0.25 sys 0.12 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/31181924/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits scfile=/lscratch/kocevski/31181924/ft2_4FGL_J1704.5-0527_weekly_bin934.fits outfile=/lscratch/kocevski/31181924/cmap_HighResolution_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.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=256.138 yref=-5.462 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" Wnumber of points = 17538 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J1704.5-0527_weekly_bin934 RA = 256.138, Dec = -5.462 tmin = 803865601, tmax = 804470401 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='31182045', job_status='RUN', time_executed='2026-07-09 23:46:12.737104', time_epoch_executed='1783665972.74' WHERE source_name='4FGL J1704.5-0527' and cadence='weekly' and bin_id='934' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/31182045 Creating custom pfile directory: /lscratch/kocevski/31182045/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=803865601.0 && nMetStart<804470401.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=803865601.0 && nMetStart<804470401.0' /Data/Flight/Level1/LPA Retrieving 109 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/31182045/ft1_4FGL_J1704.5-0527_weekly_bin934.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=803865601.0 && nMetStart<804470401.0' /Data/Flight/Level1/LPA Retrieving 109 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/31182045/ft2_4FGL_J1704.5-0527_weekly_bin934.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/31182045/ft1_4FGL_J1704.5-0527_weekly_bin934.fits outfile=/lscratch/kocevski/31182045/ft1_filteredMKT_4FGL_J1704.5-0527_weekly_bin934.fits ra=256.138 dec=-5.462 rad=12.0 tmin=803865601.0 tmax=804470401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). Done. real 3.68 user 3.09 sys 0.19 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31182045/ft2_4FGL_J1704.5-0527_weekly_bin934.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/31182045/ft2_4FGL_J1704.5-0527_weekly_bin934.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/31182045/ft1_filteredMKT_4FGL_J1704.5-0527_weekly_bin934.fits evtable="EVENTS" outfile="/lscratch/kocevski/31182045/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.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.67 user 0.22 sys 0.14 Number of photons that the gtmktime cut: 491 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/31182045/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31182045/ft2_4FGL_J1704.5-0527_weekly_bin934.fits sctable="SC_DATA" ouARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). This is gtbin version HEAD real 0.82 user 0.25 sys 0.13 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/31181924/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits evtable="EVENTS" scfile=/lscratch/kocevski/31181924/ft2_4FGL_J1704.5-0527_weekly_bin934.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31181924/Model_4FGL_J1704.5-0527_weekly_bin934.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 FHES J1626.9-2431 adding source FHES J1723.5-0501 adding source GAL_V02 adding source HESS J1804-216 adding source HESS J1808-204 adding source HESS J1809-193 adding source HESS J1813-178 adding source HESS J1825-137 adding source W 30 Working on... /lscratch/kocevski/31181924/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits.....................! real 31.83 user 30.12 sys 1.15 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/31181924/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits', '/lscratch/kocevski/31181924/ft2_4FGL_J1704.5-0527_weekly_bin934.fits', expMap='/lscratch/kocevski/31181924/expmap_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.fits', expCube='/lscratch/kocevski/31181924/ltcube_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31181924/Model_4FGL_J1704.5-0527_weekly_bin934.xml', optimizer='MINUIT') Using source of interest name: '4FGL J1704.5-0527' 4FGL J1704.5-0527 Spectrum: PowerLaw 253 Prefactor: 8.164e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-14) 254 Index: 2.017e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 255 Scale: 3.359e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/31181924/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits Spacecraft file(s): /lscratch/kocevski/31181924/ft2_4FGL_J1704.5-0527_weekly_bin934.fits Exposure map: /lscratch/kocevski/31181924/expmap_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.fits Exposure cube: /lscratch/kocevski/31181924/ltcube_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/31181924/Model_4FGL_J1704.5-0527_weekly_bin934.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) = 5848.67342669 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 5848.66336202 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .77111E-06 1.0000 .0000 .10000E+07 2 'Prefactor ' 15.997 1.0000 .0000 .10000E+07 3 'Prefactor ' .10786E-03 1.0000 .0000 .10000E+07 4 'Prefactor ' 67.662 1.0000 .0000 .10000E+07 5 'Prefactor ' 2.1243 1.0000 .0000 .10000E+07 6 'Prefactor ' .80139E-04 1.0000 .0000 .10000E+07 7 'Prefactor ' .38397E-05 1.0000 .0000 .10000E+07 8 'norm ' 13.637 1.0000 .0000 .10000E+07 9 'norm ' .85487E-08 1.0000 .0000 .10000E+07 10 'norm ' .12934E-07 1.0000 .0000 .10000E+07 11 'Normalizat' .10002E-01 1.0000 .10000E-01 10.000 12 'Prefactor ' 1.1272 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .9280E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 5848.663 FROM MIGRAD STATUS=CONVERGED 114 CALLS 906 TOTAL EDM= .35E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 3.1% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .10825E-07 52.959 -.67046E-06** at limit ** 2 Prefactor 15.998 16.516 -.11998E-07 .90067E-03 3 Prefactor .14102E-04 227.03 .53724E-06** at limit ** 4 Prefactor 67.525 17.096 .89955E-08 -.18553 5 Prefactor 2.1223 5.0992 -.11044E-06 -.39998E-03 6 Prefactor .72892E-06 72.631 .44668E-06** at limit ** 7 Prefactor .76820E-05 90.645 .59900E-06** at limit ** 8 norm 13.631 18.291 -.74246E-07 -.10771E-02 9 norm .0000 3.1407 .23152E-06** at limit ** 10 norm .0000 9.4395 -.41522E-07** at limit ** 11 Normalizat .10000E-01 .46835 -.24036E-04** at limit ** 12 Prefactor 1.1271 .58559E-01 .38069E-06 .38921E-04 ERR DEF= .500 Final values: Prefactor = 1.08247e-08 Prefactor = 15.9984 Prefactor = 1.41023e-05 Prefactor = 67.5255 Prefactor = 2.12228 Prefactor = 7.28917e-07 Prefactor = 7.68202e-06 norm = 13.631 norm = 0 norm = 0 Normalizat = 0.01 Prefactor = 1.12713 ********** ** 18 **HESSE ********** FCN= 5848.663 FROM HESSE STATUS=OK 149 CALLS 1055 TOTAL EDM= .33E-05 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .10825E-07 53.004 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Prefactor 15.998 16.507 .25014E-03 -1.5628 3 Prefactor .14102E-04 226.41 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 Prefactor 67.525 79.049 .12158E-03 -1.5544 5 Prefactor 2.1223 5.1639 .70724E-03 -1.5679 6 Prefactor .72892E-06 72.793 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 7 Prefactor .76820E-05 92.912 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm 13.631 18.354 .27098E-03 -1.5634 9 norm .0000 3.1362 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 norm .0000 9.4978 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 Normalizat .10000E-01 .20207 .46259 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 12 Prefactor 1.1271 .71901E-01 .36634E-01 -.88604 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 3.29056e-06 Minuit parameter uncertainties: 1 0.00151531 2 16.5067 3 0.113016 4 79.0499 5 5.16388 6 0.0145685 7 0.0534332 8 18.3543 9 1.73952e-05 10 6.33935e-06 11 1.52952e-06 12 0.071907 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 5848.66335988 Extracting fit parameters... 4FGL J1704.5-0527 Spectrum: PowerLaw 253 Prefactor: 7.289e-07 1.457e-02 0.000e+00 1.000e+06 ( 1.000e-14) 254 Index: 2.017e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 255 Scale: 3.359e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 903 Prefactor: 1.127e+00 7.191e-02 0.000e+00 1.000e+01 ( 1.000e+00) 904 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 905 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 895 Normalization: 1.000e-02 1.530e-06 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): -0.00 Ra Dec: 256.138 -5.462 Photon Flux Upper Limit: 3.05796230044e-07 ph cm-2 s-1 Energy Flux Upper Limit: 0.0229678285795 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/31181924/likelihoodResults_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.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) = 5848.66993302 delta logL = -0.0065731388413 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 5848.66336061 delta logL = -7.31878571969e-07 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .18474E-04 1.0000 .0000 .10000E+07 2 'Index ' .42195 1.0000 .0000 10.000 3 'Normalizat' .10000E-01 1.0000 .10000E-01 10.000 4 'Prefactor ' 1.1272 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .9280E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 5848.663 FROM MIGRAD STATUS=CONVERGED 36 CALLS 219 TOTAL EDM= .34E-11 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 1.3% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .0000 76.214 .56510E-06** at limit ** 2 Index 1.8137 8.0861 -.14565E-04 .0000 3 Normalizat .10000E-01 .46672 -.52744E-04** at limit ** 4 Prefactor 1.1271 .54335E-01 .12212E-05 .65391E-04 ERR DEF= .500 Final values: Prefactor = 0 Index = 1.81365 Normalizat = 0.01 Prefactor = 1.12713 ********** ** 18 **HESSE ********** MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 5848.663 FROM HESSE STATUS=FAILED 11 CALLS 230 TOTAL EDM= .34E-11 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .0000 76.369 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .33809 1.7096 -.14565E-04 -.69095 3 Normalizat .10000E-01 .25505 -.52744E-04 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 Prefactor 1.1271 1.1328 .12212E-05 -.88604 ERR DEF= .500 Minuit fit quality: 1 estimated distance: 3.40878e-12 Minuit parameter uncertainties: 1 3.83064e-06 2 1.48608 3 1.55461e-06 4 1.15856 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Done. MINUIT Return Code (Free Index): 101 logL (Free Index) = 5848.66335988 delta logL = 5.00585883856e-09 Extracting fit parameters... 4FGL J1704.5-0527 Spectrum: PowerLaw 253 Prefactor: 0.000e+00 3.831e-06 0.000e+00 1.000e+06 ( 1.000e-14) 254 Index: 1.814e+00 1.486e+00 0.000e+00 1.000e+01 (-1.000e+00) 255 Scale: 3.359e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 903 Prefactor: 1.127e+00 1.159e+00 0.000e+00 1.000e+01 ( 1.000e+00) 904 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 905 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 895 Normalization: 1.000e-02 1.555e-06 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): -0.00 Ra Dec: 256.138 -5.462 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/31181924/cmap_HighResolution_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-02', job_status='DONE', photon_flux_upper_limit='3.06e-07', time_completed='2026-07-09 23:51:54.702320', job_id='31181924', GAL2='1.13', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1783666314.7', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='5.01e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='934' AND source_name='4FGL J1704.5-0527' AND cadence='weekly'; Database successfully updated. Analysis Complete. Thu Jul 9 23:51:55 PDT 2026 tfile=/lscratch/kocevski/31182045/ltcube_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.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/31182045/ft2_4FGL_J1704.5-0527_weekly_bin934.fits .....................! real 20.30 user 19.65 sys 0.26 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/31182045/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits evtable="EVENTS" scfile=/lscratch/kocevski/31182045/ft2_4FGL_J1704.5-0527_weekly_bin934.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31182045/ltcube_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.fits outfile=/lscratch/kocevski/31182045/expmap_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.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/31182045/ltcube_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.fits .....................! real 73.33 user 68.49 sys 4.22 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 FHES J1723.5-0501 in ROI with RadialGaussian spatial model. Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model. Extended source HESS J1804-216 in ROI with RadialDisk spatial model. Extended source W 30 in ROI with RadialDisk spatial model. Extended source HESS J1808-204 in ROI with RadialDisk spatial model. Extended source HESS J1809-193 in ROI with RadialDisk spatial model. Extended source HESS J1813-178 in ROI with RadialDisk spatial model. Extended source HESS J1825-137 in ROI with RadialGaussian spatial model. Added 252 point sources and 8 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 J1704.5-0527 @ 256.138 -5.462 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/31182045/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits scfile=/lscratch/kocevski/31182045/ft2_4FGL_J1704.5-0527_weekly_bin934.fits outfile=/lscratch/kocevski/31182045/cmap_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.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=256.138 yref=-5.462 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.24 sys 0.13 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/31182045/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits scfile=/lscratch/kocevski/31182045/ft2_4FGL_J1704.5-0527_weekly_bin934.fits outfile=/lscratch/kocevski/31182045/cmap_HighResolution_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.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=256.138 yref=-5.462 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.26 sys 0.12 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/31182045/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits evtable="EVENTS" scfile=/lscratch/kocevski/31182045/ft2_4FGL_J1704.5-0527_weekly_bin934.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31182045/Model_4FGL_J1704.5-0527_weekly_bin934.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 FHES J1626.9-2431 adding source FHES J1723.5-0501 adding source GAL_V02 adding source HESS J1804-216 adding source HESS J1808-204 adding source HESS J1809-193 adding source HESS J1813-178 adding source HESS J1825-137 adding source W 30 Working on... /lscratch/kocevski/31182045/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits.....................! real 29.90 user 28.16 sys 1.11 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/31182045/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits', '/lscratch/kocevski/31182045/ft2_4FGL_J1704.5-0527_weekly_bin934.fits', expMap='/lscratch/kocevski/31182045/expmap_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.fits', expCube='/lscratch/kocevski/31182045/ltcube_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31182045/Model_4FGL_J1704.5-0527_weekly_bin934.xml', optimizer='MINUIT') Using source of interest name: '4FGL J1704.5-0527' 4FGL J1704.5-0527 Spectrum: PowerLaw 253 Prefactor: 8.164e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-14) 254 Index: 2.017e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 255 Scale: 3.359e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/31182045/ft1_filtered_4FGL_J1704.5-0527_weekly_bin934.fits Spacecraft file(s): /lscratch/kocevski/31182045/ft2_4FGL_J1704.5-0527_weekly_bin934.fits Exposure map: /lscratch/kocevski/31182045/expmap_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.fits Exposure cube: /lscratch/kocevski/31182045/ltcube_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/31182045/Model_4FGL_J1704.5-0527_weekly_bin934.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) = 5848.67342669 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 5848.66336202 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .77111E-06 1.0000 .0000 .10000E+07 2 'Prefactor ' 15.997 1.0000 .0000 .10000E+07 3 'Prefactor ' .10786E-03 1.0000 .0000 .10000E+07 4 'Prefactor ' 67.662 1.0000 .0000 .10000E+07 5 'Prefactor ' 2.1243 1.0000 .0000 .10000E+07 6 'Prefactor ' .80139E-04 1.0000 .0000 .10000E+07 7 'Prefactor ' .38397E-05 1.0000 .0000 .10000E+07 8 'norm ' 13.637 1.0000 .0000 .10000E+07 9 'norm ' .85487E-08 1.0000 .0000 .10000E+07 10 'norm ' .12934E-07 1.0000 .0000 .10000E+07 11 'Normalizat' .10002E-01 1.0000 .10000E-01 10.000 12 'Prefactor ' 1.1272 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .9280E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 5848.663 FROM MIGRAD STATUS=CONVERGED 114 CALLS 906 TOTAL EDM= .35E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 3.1% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .10825E-07 52.959 -.67046E-06** at limit ** 2 Prefactor 15.998 16.516 -.11998E-07 .90067E-03 3 Prefactor .14102E-04 227.03 .53724E-06** at limit ** 4 Prefactor 67.525 17.096 .89955E-08 -.18553 5 Prefactor 2.1223 5.0992 -.11044E-06 -.39998E-03 6 Prefactor .72892E-06 72.631 .44668E-06** at limit ** 7 Prefactor .76820E-05 90.645 .59900E-06** at limit ** 8 norm 13.631 18.291 -.74246E-07 -.10771E-02 9 norm .0000 3.1407 .23152E-06** at limit ** 10 norm .0000 9.4395 -.41522E-07** at limit ** 11 Normalizat .10000E-01 .46835 -.24036E-04** at limit ** 12 Prefactor 1.1271 .58559E-01 .38069E-06 .38921E-04 ERR DEF= .500 Final values: Prefactor = 1.08247e-08 Prefactor = 15.9984 Prefactor = 1.41023e-05 Prefactor = 67.5255 Prefactor = 2.12228 Prefactor = 7.28917e-07 Prefactor = 7.68202e-06 norm = 13.631 norm = 0 norm = 0 Normalizat = 0.01 Prefactor = 1.12713 ********** ** 18 **HESSE ********** FCN= 5848.663 FROM HESSE STATUS=OK 149 CALLS 1055 TOTAL EDM= .33E-05 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .10825E-07 53.004 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Prefactor 15.998 16.507 .25014E-03 -1.5628 3 Prefactor .14102E-04 226.41 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 Prefactor 67.525 79.049 .12158E-03 -1.5544 5 Prefactor 2.1223 5.1639 .70724E-03 -1.5679 6 Prefactor .72892E-06 72.793 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 7 Prefactor .76820E-05 92.912 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm 13.631 18.354 .27098E-03 -1.5634 9 norm .0000 3.1362 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 norm .0000 9.4978 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 Normalizat .10000E-01 .20207 .46259 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 12 Prefactor 1.1271 .71901E-01 .36634E-01 -.88604 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 3.29056e-06 Minuit parameter uncertainties: 1 0.00151531 2 16.5067 3 0.113016 4 79.0499 5 5.16388 6 0.0145685 7 0.0534332 8 18.3543 9 1.73952e-05 10 6.33935e-06 11 1.52952e-06 12 0.071907 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 5848.66335988 Extracting fit parameters... 4FGL J1704.5-0527 Spectrum: PowerLaw 253 Prefactor: 7.289e-07 1.457e-02 0.000e+00 1.000e+06 ( 1.000e-14) 254 Index: 2.017e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 255 Scale: 3.359e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 903 Prefactor: 1.127e+00 7.191e-02 0.000e+00 1.000e+01 ( 1.000e+00) 904 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 905 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 895 Normalization: 1.000e-02 1.530e-06 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): -0.00 Ra Dec: 256.138 -5.462 Photon Flux Upper Limit: 3.05796230044e-07 ph cm-2 s-1 Energy Flux Upper Limit: 0.0229678285795 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/31182045/likelihoodResults_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.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) = 5848.66993302 delta logL = -0.0065731388413 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 5848.66336061 delta logL = -7.31878571969e-07 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .18474E-04 1.0000 .0000 .10000E+07 2 'Index ' .42195 1.0000 .0000 10.000 3 'Normalizat' .10000E-01 1.0000 .10000E-01 10.000 4 'Prefactor ' 1.1272 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .9280E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 5848.663 FROM MIGRAD STATUS=CONVERGED 36 CALLS 219 TOTAL EDM= .34E-11 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 1.3% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .0000 76.214 .56510E-06** at limit ** 2 Index 1.8137 8.0861 -.14565E-04 .0000 3 Normalizat .10000E-01 .46672 -.52744E-04** at limit ** 4 Prefactor 1.1271 .54335E-01 .12212E-05 .65391E-04 ERR DEF= .500 Final values: Prefactor = 0 Index = 1.81365 Normalizat = 0.01 Prefactor = 1.12713 ********** ** 18 **HESSE ********** MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 5848.663 FROM HESSE STATUS=FAILED 11 CALLS 230 TOTAL EDM= .34E-11 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .0000 76.369 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .33809 1.7096 -.14565E-04 -.69095 3 Normalizat .10000E-01 .25505 -.52744E-04 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 Prefactor 1.1271 1.1328 .12212E-05 -.88604 ERR DEF= .500 Minuit fit quality: 1 estimated distance: 3.40878e-12 Minuit parameter uncertainties: 1 3.83064e-06 2 1.48608 3 1.55461e-06 4 1.15856 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Done. MINUIT Return Code (Free Index): 101 logL (Free Index) = 5848.66335988 delta logL = 5.00585883856e-09 Extracting fit parameters... 4FGL J1704.5-0527 Spectrum: PowerLaw 253 Prefactor: 0.000e+00 3.831e-06 0.000e+00 1.000e+06 ( 1.000e-14) 254 Index: 1.814e+00 1.486e+00 0.000e+00 1.000e+01 (-1.000e+00) 255 Scale: 3.359e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 903 Prefactor: 1.127e+00 1.159e+00 0.000e+00 1.000e+01 ( 1.000e+00) 904 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 905 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 895 Normalization: 1.000e-02 1.555e-06 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): -0.00 Ra Dec: 256.138 -5.462 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/31182045/cmap_HighResolution_803865601_804470401_4FGL_J1704.5-0527_weekly_bin934.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-02', job_status='DONE', photon_flux_upper_limit='3.06e-07', time_completed='2026-07-09 23:54:13.733953', job_id='31182045', GAL2='1.13', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1783666453.73', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='5.01e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='934' AND source_name='4FGL J1704.5-0527' AND cadence='weekly'; Database successfully updated. Analysis Complete. Thu Jul 9 23:54:14 PDT 2026