number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1339.9-0138_weekly_bin938
RA = 204.976, Dec = -1.6378
tmin = 806284801, tmax = 806889601
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='33444678', job_status='RUN', time_executed='2026-07-28 11:13:15.360015', time_epoch_executed='1785262395.36' WHERE source_name='4FGL J1339.9-0138' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33444678

Creating custom pfile directory:
/lscratch/kocevski/33444678/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=806284801.0 && nMetStart<806889601.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=806284801.0 && nMetStart<806889601.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33444678/ft1_4FGL_J1339.9-0138_weekly_bin938.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=806284801.0 && nMetStart<806889601.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33444678/ft2_4FGL_J1339.9-0138_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33444678/ft1_4FGL_J1339.9-0138_weekly_bin938.fits outfile=/lscratch/kocevski/33444678/ft1_filteredMKT_4FGL_J1339.9-0138_weekly_bin938.fits ra=204.976 dec=-1.6378 rad=12.0 tmin=806284801.0 tmax=806889601.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 5.71
user 5.00
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33444678/ft2_4FGL_J1339.9-0138_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33444678/ft2_4FGL_J1339.9-0138_weekly_bin938.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/33444678/ft1_filteredMKT_4FGL_J1339.9-0138_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33444678/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.87
user 0.23
sys 0.14

Number of photons that the gtmktime cut: 1233

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33444678/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33444678/ft2_4FGL_J1339.9-0138_weekly_bin938.fits sctable="SC_DATA"number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1339.9-0138_weekly_bin938
RA = 204.976, Dec = -1.6378
tmin = 806284801, tmax = 806889601
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='33444666', job_status='RUN', time_executed='2026-07-28 11:13:16.409339', time_epoch_executed='1785262396.41' WHERE source_name='4FGL J1339.9-0138' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33444666

Creating custom pfile directory:
/lscratch/kocevski/33444666/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=806284801.0 && nMetStart<806889601.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=806284801.0 && nMetStart<806889601.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33444666/ft1_4FGL_J1339.9-0138_weekly_bin938.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=806284801.0 && nMetStart<806889601.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33444666/ft2_4FGL_J1339.9-0138_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33444666/ft1_4FGL_J1339.9-0138_weekly_bin938.fits outfile=/lscratch/kocevski/33444666/ft1_filteredMKT_4FGL_J1339.9-0138_weekly_bin938.fits ra=204.976 dec=-1.6378 rad=12.0 tmin=806284801.0 tmax=806889601.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 5.87
user 5.06
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33444666/ft2_4FGL_J1339.9-0138_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33444666/ft2_4FGL_J1339.9-0138_weekly_bin938.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/33444666/ft1_filteredMKT_4FGL_J1339.9-0138_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33444666/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.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.84
user 0.22
sys 0.15

Number of photons that the gtmktime cut: 1233

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33444666/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33444666/ft2_4FGL_J1339.9-0138_weekly_bin938.fits sctable="SC_DATA"/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).

 outfile=/lscratch/kocevski/33444610/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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/33444610/ft2_4FGL_J1339.9-0138_weekly_bin938.fits
.....................!
real 17.54
user 16.78
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33444610/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33444610/ft2_4FGL_J1339.9-0138_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33444610/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits outfile=/lscratch/kocevski/33444610/expmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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/33444610/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits
.....................!
real 64.13
user 59.55
sys 3.70

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J1339.9-0138 @ 204.976 -1.6378

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33444610/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits scfile=/lscratch/kocevski/33444610/ft2_4FGL_J1339.9-0138_weekly_bin938.fits outfile=/lscratch/kocevski/33444610/cmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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=204.976 yref=-1.6378 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.69
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33444610/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits scfile=/lscratch/kocevski/33444610/ft2_4FGL_J1339.9-0138_weekly_bin938.fits outfile=/lscratch/kocevski/33444610/cmap_HighResolution_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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=204.976 yref=-1.6378 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
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33444610/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33444610/ft2_4FGL_J1339.9-0138_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33444610/Model_4FGL_J1339.9-0138_weekly_bin938.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 sourc outfile=/lscratch/kocevski/33444639/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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/33444639/ft2_4FGL_J1339.9-0138_weekly_bin938.fits
.....................!
real 16.04
user 15.31
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33444639/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33444639/ft2_4FGL_J1339.9-0138_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33444639/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits outfile=/lscratch/kocevski/33444639/expmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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/33444639/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits
.....................!
real 59.80
user 55.34
sys 3.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
Added 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J1339.9-0138 @ 204.976 -1.6378

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33444639/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits scfile=/lscratch/kocevski/33444639/ft2_4FGL_J1339.9-0138_weekly_bin938.fits outfile=/lscratch/kocevski/33444639/cmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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=204.976 yref=-1.6378 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.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33444639/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits scfile=/lscratch/kocevski/33444639/ft2_4FGL_J1339.9-0138_weekly_bin938.fits outfile=/lscratch/kocevski/33444639/cmap_HighResolution_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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=204.976 yref=-1.6378 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.86
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33444639/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33444639/ft2_4FGL_J1339.9-0138_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33444639/Model_4FGL_J1339.9-0138_weekly_bin938.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/33444610/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits.....................!
real 36.51
user 34.54
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33444610/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits', '/lscratch/kocevski/33444610/ft2_4FGL_J1339.9-0138_weekly_bin938.fits', expMap='/lscratch/kocevski/33444610/expmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits', expCube='/lscratch/kocevski/33444610/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33444610/Model_4FGL_J1339.9-0138_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1339.9-0138'

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  2.717e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.118e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33444610/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33444610/ft2_4FGL_J1339.9-0138_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33444610/expmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33444610/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33444610/Model_4FGL_J1339.9-0138_weekly_bin938.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) = 13495.0799393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 13494.2386363

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10385       1.0000          .0000       .10000E+07
     2 'Prefactor '    .13225E-02   1.0000          .0000       .10000E+07
     3 'norm      '    5.7347       1.0000          .0000       .10000E+07
     4 'norm      '    .56649E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.5559       1.0000          .0000       .10000E+07
     6 'Prefactor '    .32252E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.4481       1.0000          .0000       .10000E+07
     8 'Prefactor '    .75802E-02   1.0000          .0000       .10000E+07
     9 'norm      '    1.8896       1.0000          .0000       .10000E+07
    10 'norm      '    .49899E-02   1.0000          .0000       .10000E+07
    11 'norm      '    16.285       1.0000          .0000       .10000E+07
    12 'norm      '    23.694       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.6553       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.6761       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.6104       1.0000          .0000       .10000E+07
    16 'norm      '    .10988E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .46369E-04   1.0000          .0000       .10000E+07
    18 'norm      '    2.6459       1.0000          .0000       .10000E+07
    19 'Prefactor '    9.7148       1.0000          .0000       .10000E+07
    20 'norm      '    2.2920       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.7724       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .63800       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13494.24     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     1386 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10391        .98151E-01    .18393E-07** at limit **
   2  Prefactor     .10958E-06    36.260       -.40075E-06** at limit **
   3  norm          5.6903        5.9357        .14045E-06    .27298E-03
   4  norm           .0000        4.0655       -.69717E-07** at limit **
   5  Prefactor     6.6774        7.8432        .15125E-06    .18085E-01
   6  Prefactor     .10991E-07    4.0389       -.14352E-07** at limit **
   7  Prefactor     4.4688        7.1803       -.81664E-07    .31938E-03
   8  Prefactor     .94880E-06    20.050       -.62379E-07** at limit **
   9  norm          1.8908        1.0897        .27422E-07    .10451E-02
  10  norm          .74712E-06    16.775        .15455E-05** at limit **
  11  norm          16.342        6.8475       -.18435E-07    .44481E-02
  12  norm          23.188        13.463        .35308E-06    .10391    
  13  Prefactor     1.6574        2.1935        .37693E-08    .77910E-03
  14  Prefactor     2.6766        4.3264        .16422E-06    .42480E-02
  15  Prefactor     5.6159        9.2039        .23411E-07    .27270E-01
  16  norm          .58806E-05    27.633        .40141E-06** at limit **
  17  Prefactor     .11657E-08    2.5044        .15686E-06** at limit **
  18  norm          2.6460        1.7632        .16195E-07    .19306E-02
  19  Prefactor     9.8422        9.0996       -.17948E-06   -.47751E-01
  20  norm          2.3198        5.1656       -.91514E-07   -.31624E-03
  21  Normalizat    1.7718        .18246        .21208E-05    .26333E-04
  22  Prefactor     .63826        .12215       -.18713E-05    .29476E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.103911
  Prefactor  = 1.09579e-07
  norm       = 5.69031
  norm       = 0
  Prefactor  = 6.6774
  Prefactor  = 1.09912e-08
  Prefactor  = 4.46879
  Prefactor  = 9.48797e-07
  norm       = 1.89081
  norm       = 7.47125e-07
  norm       = 16.3424
  norm       = 23.188
  Prefactor  = 1.65741
  Prefactor  = 2.67657
  Prefactor  = 5.61586
  norm       = 5.88057e-06
  Prefactor  = 1.16573e-09
  norm       = 2.64604
  Prefactor  = 9.8422
  norm       = 2.31975
  Normalizat = 1.77177
  Prefactor  = 0.638256
 outfile=/lscratch/kocevski/33444678/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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/33444678/ft2_4FGL_J1339.9-0138_weekly_bin938.fits
.....................!
real 18.69
user 17.87
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33444678/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33444678/ft2_4FGL_J1339.9-0138_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33444678/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits outfile=/lscratch/kocevski/33444678/expmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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/33444678/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits
.....................!
real 70.28
user 65.39
sys 4.03

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J1339.9-0138 @ 204.976 -1.6378

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33444678/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits scfile=/lscratch/kocevski/33444678/ft2_4FGL_J1339.9-0138_weekly_bin938.fits outfile=/lscratch/kocevski/33444678/cmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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=204.976 yref=-1.6378 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.71
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33444678/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits scfile=/lscratch/kocevski/33444678/ft2_4FGL_J1339.9-0138_weekly_bin938.fits outfile=/lscratch/kocevski/33444678/cmap_HighResolution_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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=204.976 yref=-1.6378 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.91
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33444678/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33444678/ft2_4FGL_J1339.9-0138_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33444678/Model_4FGL_J1339.9-0138_weekly_bin938.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 sourc outfile=/lscratch/kocevski/33444666/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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/33444666/ft2_4FGL_J1339.9-0138_weekly_bin938.fits
.....................!
real 19.26
user 18.37
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33444666/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33444666/ft2_4FGL_J1339.9-0138_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33444666/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits outfile=/lscratch/kocevski/33444666/expmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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/33444666/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits
.....................!
real 70.79
user 65.71
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
Added 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J1339.9-0138 @ 204.976 -1.6378

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33444666/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits scfile=/lscratch/kocevski/33444666/ft2_4FGL_J1339.9-0138_weekly_bin938.fits outfile=/lscratch/kocevski/33444666/cmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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=204.976 yref=-1.6378 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33444666/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits scfile=/lscratch/kocevski/33444666/ft2_4FGL_J1339.9-0138_weekly_bin938.fits outfile=/lscratch/kocevski/33444666/cmap_HighResolution_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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=204.976 yref=-1.6378 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.98
user 0.25
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33444666/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33444666/ft2_4FGL_J1339.9-0138_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33444666/Model_4FGL_J1339.9-0138_weekly_bin938.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 sourc **********
 **   18 **HESSE 
 **********

 FCN=   13494.24     FROM HESSE     STATUS=OK           408 CALLS     1794 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10391        .11329        .77632E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10958E-06    36.500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.6903        5.9557        .41919E-03   -1.5660    
   4  norm           .0000        4.0662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6774        11.844        .39171E-03   -1.5656    
   6  Prefactor     .10991E-07    4.0505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4688        7.1995        .47721E-03   -1.5666    
   8  Prefactor     .94880E-06    22.444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8908        1.0900        .75669E-04   -1.5680    
  10  norm          .74712E-06    1.8476        .52616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.342        7.6030        .24792E-03   -1.5627    
  12  norm          23.188        16.342        .20549E-03   -1.5612    
  13  Prefactor     1.6574        2.2048        .81999E-03   -1.5682    
  14  Prefactor     2.6766        4.8818        .62267E-03   -1.5675    
  15  Prefactor     5.6159        11.142        .42389E-03   -1.5661    
  16  norm          .58806E-05    4.9006        .61536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11657E-08    2.5094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6460        1.7749        .62649E-03   -1.5675    
  19  Prefactor     9.8422        10.201        .32127E-03   -1.5645    
  20  norm          2.3198        5.1816        .67772E-03   -1.5678    
  21  Normalizat    1.7718        .15294        .56372E-01   -.70403    
  22  Prefactor     .63826        .10325        .60268E-01   -1.0600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47551e-07
Minuit parameter uncertainties:
  1  0.11329
  2  0.00400034
  3  5.95569
  4  1.2131e-06
  5  11.8438
  6  0.000422523
  7  7.19954
  8  0.00922942
  9  1.08998
  10  0.00234975
  11  7.60297
  12  16.3422
  13  2.20477
  14  4.88185
  15  11.142
  16  0.0107365
  17  0.00010888
  18  1.77487
  19  10.2009
  20  5.18158
  21  0.152983
  22  0.103282
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 13494.2374865

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  2.319e+01  1.634e+01  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.118e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  6.383e-01  1.033e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.772e+00  1.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.40
Ra Dec: 204.976 -1.638
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 9.68e-09 +/- 6.83e-09
Energy Flux (Fixed Index): 7.89e-06 +/- 5.56e-06

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) = 13494.0593278
delta logL = 0.178158699468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13494.0296818
delta logL = 0.207804676804

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.160       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7254       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63793       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13494.03     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      259 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.159        16.515        .91414E-05   -.19898E-04
   2  alpha         2.7256        .96738        .31568E-01    .24591E-03
   3  Normalizat    1.7688        .17558        .24938E-03    .13992E-03
   4  Prefactor     .63792        .12036        .26661E-03    .26523E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.1588
  alpha      = 2.72562
  Normalizat = 1.76879
  Prefactor  = 0.637924
e GAL_V02
Working on...
/lscratch/kocevski/33444639/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits.....................!
real 33.08
user 31.23
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33444639/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits', '/lscratch/kocevski/33444639/ft2_4FGL_J1339.9-0138_weekly_bin938.fits', expMap='/lscratch/kocevski/33444639/expmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits', expCube='/lscratch/kocevski/33444639/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33444639/Model_4FGL_J1339.9-0138_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1339.9-0138'

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  2.717e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.118e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33444639/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33444639/ft2_4FGL_J1339.9-0138_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33444639/expmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33444639/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33444639/Model_4FGL_J1339.9-0138_weekly_bin938.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) = 13495.0799393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 13494.2386363

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10385       1.0000          .0000       .10000E+07
     2 'Prefactor '    .13225E-02   1.0000          .0000       .10000E+07
     3 'norm      '    5.7347       1.0000          .0000       .10000E+07
     4 'norm      '    .56649E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.5559       1.0000          .0000       .10000E+07
     6 'Prefactor '    .32252E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.4481       1.0000          .0000       .10000E+07
     8 'Prefactor '    .75802E-02   1.0000          .0000       .10000E+07
     9 'norm      '    1.8896       1.0000          .0000       .10000E+07
    10 'norm      '    .49899E-02   1.0000          .0000       .10000E+07
    11 'norm      '    16.285       1.0000          .0000       .10000E+07
    12 'norm      '    23.694       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.6553       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.6761       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.6104       1.0000          .0000       .10000E+07
    16 'norm      '    .10988E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .46369E-04   1.0000          .0000       .10000E+07
    18 'norm      '    2.6459       1.0000          .0000       .10000E+07
    19 'Prefactor '    9.7148       1.0000          .0000       .10000E+07
    20 'norm      '    2.2920       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.7724       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .63800       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13494.24     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     1386 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10391        .98151E-01    .18393E-07** at limit **
   2  Prefactor     .10958E-06    36.260       -.40075E-06** at limit **
   3  norm          5.6903        5.9357        .14045E-06    .27298E-03
   4  norm           .0000        4.0655       -.69717E-07** at limit **
   5  Prefactor     6.6774        7.8432        .15125E-06    .18085E-01
   6  Prefactor     .10991E-07    4.0389       -.14352E-07** at limit **
   7  Prefactor     4.4688        7.1803       -.81664E-07    .31938E-03
   8  Prefactor     .94880E-06    20.050       -.62379E-07** at limit **
   9  norm          1.8908        1.0897        .27422E-07    .10451E-02
  10  norm          .74712E-06    16.775        .15455E-05** at limit **
  11  norm          16.342        6.8475       -.18435E-07    .44481E-02
  12  norm          23.188        13.463        .35308E-06    .10391    
  13  Prefactor     1.6574        2.1935        .37693E-08    .77910E-03
  14  Prefactor     2.6766        4.3264        .16422E-06    .42480E-02
  15  Prefactor     5.6159        9.2039        .23411E-07    .27270E-01
  16  norm          .58806E-05    27.633        .40141E-06** at limit **
  17  Prefactor     .11657E-08    2.5044        .15686E-06** at limit **
  18  norm          2.6460        1.7632        .16195E-07    .19306E-02
  19  Prefactor     9.8422        9.0996       -.17948E-06   -.47751E-01
  20  norm          2.3198        5.1656       -.91514E-07   -.31624E-03
  21  Normalizat    1.7718        .18246        .21208E-05    .26333E-04
  22  Prefactor     .63826        .12215       -.18713E-05    .29476E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.103911
  Prefactor  = 1.09579e-07
  norm       = 5.69031
  norm       = 0
  Prefactor  = 6.6774
  Prefactor  = 1.09912e-08
  Prefactor  = 4.46879
  Prefactor  = 9.48797e-07
  norm       = 1.89081
  norm       = 7.47125e-07
  norm       = 16.3424
  norm       = 23.188
  Prefactor  = 1.65741
  Prefactor  = 2.67657
  Prefactor  = 5.61586
  norm       = 5.88057e-06
  Prefactor  = 1.16573e-09
  norm       = 2.64604
  Prefactor  = 9.8422
  norm       = 2.31975
  Normalizat = 1.77177
  Prefactor  = 0.638256
 **********
 **   18 **HESSE 
 **********

 FCN=   13494.03     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.159        15.848        .36566E-06   -1.5620    
   2  alpha         2.7256        .93049        .63135E-02    .90370E-01
   3  Normalizat    1.7688        .17566        .49877E-04   -.70481    
   4  Prefactor     .63792        .12045        .10664E-04   -1.0601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05438e-11
Minuit parameter uncertainties:
  1  15.8485
  2  0.953631
  3  0.175725
  4  0.1205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13494.0296818
delta logL = 0.207804709067

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  1.916e+01  1.585e+01  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.726e+00  9.536e-01  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  6.379e-01  1.205e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.769e+00  1.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.82
Ra Dec: 204.976 -1.638
Photon Index (Free Index): 2.73 +/- 0.95
Photon Flux (Free Index): 1.44e-08 +/- 1.29e-08
Energy Flux (Free Index): 7.81e-06 +/- 5.22e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33444610/cmap_HighResolution_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.68e-09', energy_flux2='7.81e-06', photon_flux_error='6.83e-09', dlogl='2.08e-01', energy_flux='7.89e-06', photon_flux2='1.44e-08', job_status='DONE', time_completed='2026-07-28 11:19:55.597131', photon_index_error2='0.95', photon_index2='2.73', ts='5.40', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='5.22e-06', EG='1.77', time_epoch_completed='1785262795.6', return_code='0', job_id='33444610', GAL2='0.64', EG2='1.77', return_code2='0', energy_flux_error='5.56e-06', photon_flux_error2='1.29e-08', ts2='5.82', photon_index='2.12' WHERE bin_id='938' AND source_name='4FGL J1339.9-0138' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 11:19:55 PDT 2026

 **********
 **   18 **HESSE 
 **********

 FCN=   13494.24     FROM HESSE     STATUS=OK           408 CALLS     1794 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10391        .11329        .77632E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10958E-06    36.500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.6903        5.9557        .41919E-03   -1.5660    
   4  norm           .0000        4.0662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6774        11.844        .39171E-03   -1.5656    
   6  Prefactor     .10991E-07    4.0505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4688        7.1995        .47721E-03   -1.5666    
   8  Prefactor     .94880E-06    22.444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8908        1.0900        .75669E-04   -1.5680    
  10  norm          .74712E-06    1.8476        .52616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.342        7.6030        .24792E-03   -1.5627    
  12  norm          23.188        16.342        .20549E-03   -1.5612    
  13  Prefactor     1.6574        2.2048        .81999E-03   -1.5682    
  14  Prefactor     2.6766        4.8818        .62267E-03   -1.5675    
  15  Prefactor     5.6159        11.142        .42389E-03   -1.5661    
  16  norm          .58806E-05    4.9006        .61536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11657E-08    2.5094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6460        1.7749        .62649E-03   -1.5675    
  19  Prefactor     9.8422        10.201        .32127E-03   -1.5645    
  20  norm          2.3198        5.1816        .67772E-03   -1.5678    
  21  Normalizat    1.7718        .15294        .56372E-01   -.70403    
  22  Prefactor     .63826        .10325        .60268E-01   -1.0600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47551e-07
Minuit parameter uncertainties:
  1  0.11329
  2  0.00400034
  3  5.95569
  4  1.2131e-06
  5  11.8438
  6  0.000422523
  7  7.19954
  8  0.00922942
  9  1.08998
  10  0.00234975
  11  7.60297
  12  16.3422
  13  2.20477
  14  4.88185
  15  11.142
  16  0.0107365
  17  0.00010888
  18  1.77487
  19  10.2009
  20  5.18158
  21  0.152983
  22  0.103282
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 13494.2374865

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  2.319e+01  1.634e+01  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.118e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  6.383e-01  1.033e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.772e+00  1.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.40
Ra Dec: 204.976 -1.638
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 9.68e-09 +/- 6.83e-09
Energy Flux (Fixed Index): 7.89e-06 +/- 5.56e-06

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) = 13494.0593278
delta logL = 0.178158699468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13494.0296818
delta logL = 0.207804676804

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.160       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7254       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63793       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13494.03     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      259 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.159        16.515        .91414E-05   -.19898E-04
   2  alpha         2.7256        .96738        .31568E-01    .24591E-03
   3  Normalizat    1.7688        .17558        .24938E-03    .13992E-03
   4  Prefactor     .63792        .12036        .26661E-03    .26523E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.1588
  alpha      = 2.72562
  Normalizat = 1.76879
  Prefactor  = 0.637924
 **********
 **   18 **HESSE 
 **********

 FCN=   13494.03     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.159        15.848        .36566E-06   -1.5620    
   2  alpha         2.7256        .93049        .63135E-02    .90370E-01
   3  Normalizat    1.7688        .17566        .49877E-04   -.70481    
   4  Prefactor     .63792        .12045        .10664E-04   -1.0601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05438e-11
Minuit parameter uncertainties:
  1  15.8485
  2  0.953631
  3  0.175725
  4  0.1205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13494.0296818
delta logL = 0.207804709067

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  1.916e+01  1.585e+01  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.726e+00  9.536e-01  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  6.379e-01  1.205e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.769e+00  1.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.82
Ra Dec: 204.976 -1.638
Photon Index (Free Index): 2.73 +/- 0.95
Photon Flux (Free Index): 1.44e-08 +/- 1.29e-08
Energy Flux (Free Index): 7.81e-06 +/- 5.22e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33444639/cmap_HighResolution_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.68e-09', energy_flux2='7.81e-06', photon_flux_error='6.83e-09', dlogl='2.08e-01', energy_flux='7.89e-06', photon_flux2='1.44e-08', job_status='DONE', time_completed='2026-07-28 11:20:28.609367', photon_index_error2='0.95', photon_index2='2.73', ts='5.40', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='5.22e-06', EG='1.77', time_epoch_completed='1785262828.61', return_code='0', job_id='33444639', GAL2='0.64', EG2='1.77', return_code2='0', energy_flux_error='5.56e-06', photon_flux_error2='1.29e-08', ts2='5.82', photon_index='2.12' WHERE bin_id='938' AND source_name='4FGL J1339.9-0138' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 11:20:28 PDT 2026

number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1339.9-0138_weekly_bin938
RA = 204.976, Dec = -1.6378
tmin = 806284801, tmax = 806889601
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='33445054', job_status='RUN', time_executed='2026-07-28 11:17:30.867330', time_epoch_executed='1785262650.87' WHERE source_name='4FGL J1339.9-0138' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33445054

Creating custom pfile directory:
/lscratch/kocevski/33445054/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=806284801.0 && nMetStart<806889601.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=806284801.0 && nMetStart<806889601.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33445054/ft1_4FGL_J1339.9-0138_weekly_bin938.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=806284801.0 && nMetStart<806889601.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33445054/ft2_4FGL_J1339.9-0138_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33445054/ft1_4FGL_J1339.9-0138_weekly_bin938.fits outfile=/lscratch/kocevski/33445054/ft1_filteredMKT_4FGL_J1339.9-0138_weekly_bin938.fits ra=204.976 dec=-1.6378 rad=12.0 tmin=806284801.0 tmax=806889601.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 5.77
user 5.08
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33445054/ft2_4FGL_J1339.9-0138_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33445054/ft2_4FGL_J1339.9-0138_weekly_bin938.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/33445054/ft1_filteredMKT_4FGL_J1339.9-0138_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33445054/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.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.91
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 1233

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33445054/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33445054/ft2_4FGL_J1339.9-0138_weekly_bin938.fits sctable="SC_DATA"e GAL_V02
Working on...
/lscratch/kocevski/33444678/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits.....................!
real 38.91
user 37.10
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33444678/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits', '/lscratch/kocevski/33444678/ft2_4FGL_J1339.9-0138_weekly_bin938.fits', expMap='/lscratch/kocevski/33444678/expmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits', expCube='/lscratch/kocevski/33444678/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33444678/Model_4FGL_J1339.9-0138_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1339.9-0138'

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  2.717e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.118e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33444678/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33444678/ft2_4FGL_J1339.9-0138_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33444678/expmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33444678/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33444678/Model_4FGL_J1339.9-0138_weekly_bin938.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) = 13495.0799393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 13494.2386363

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10385       1.0000          .0000       .10000E+07
     2 'Prefactor '    .13225E-02   1.0000          .0000       .10000E+07
     3 'norm      '    5.7347       1.0000          .0000       .10000E+07
     4 'norm      '    .56649E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.5559       1.0000          .0000       .10000E+07
     6 'Prefactor '    .32252E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.4481       1.0000          .0000       .10000E+07
     8 'Prefactor '    .75802E-02   1.0000          .0000       .10000E+07
     9 'norm      '    1.8896       1.0000          .0000       .10000E+07
    10 'norm      '    .49899E-02   1.0000          .0000       .10000E+07
    11 'norm      '    16.285       1.0000          .0000       .10000E+07
    12 'norm      '    23.694       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.6553       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.6761       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.6104       1.0000          .0000       .10000E+07
    16 'norm      '    .10988E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .46369E-04   1.0000          .0000       .10000E+07
    18 'norm      '    2.6459       1.0000          .0000       .10000E+07
    19 'Prefactor '    9.7148       1.0000          .0000       .10000E+07
    20 'norm      '    2.2920       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.7724       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .63800       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13494.24     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     1386 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10391        .98151E-01    .18393E-07** at limit **
   2  Prefactor     .10958E-06    36.260       -.40075E-06** at limit **
   3  norm          5.6903        5.9357        .14045E-06    .27298E-03
   4  norm           .0000        4.0655       -.69717E-07** at limit **
   5  Prefactor     6.6774        7.8432        .15125E-06    .18085E-01
   6  Prefactor     .10991E-07    4.0389       -.14352E-07** at limit **
   7  Prefactor     4.4688        7.1803       -.81664E-07    .31938E-03
   8  Prefactor     .94880E-06    20.050       -.62379E-07** at limit **
   9  norm          1.8908        1.0897        .27422E-07    .10451E-02
  10  norm          .74712E-06    16.775        .15455E-05** at limit **
  11  norm          16.342        6.8475       -.18435E-07    .44481E-02
  12  norm          23.188        13.463        .35308E-06    .10391    
  13  Prefactor     1.6574        2.1935        .37693E-08    .77910E-03
  14  Prefactor     2.6766        4.3264        .16422E-06    .42480E-02
  15  Prefactor     5.6159        9.2039        .23411E-07    .27270E-01
  16  norm          .58806E-05    27.633        .40141E-06** at limit **
  17  Prefactor     .11657E-08    2.5044        .15686E-06** at limit **
  18  norm          2.6460        1.7632        .16195E-07    .19306E-02
  19  Prefactor     9.8422        9.0996       -.17948E-06   -.47751E-01
  20  norm          2.3198        5.1656       -.91514E-07   -.31624E-03
  21  Normalizat    1.7718        .18246        .21208E-05    .26333E-04
  22  Prefactor     .63826        .12215       -.18713E-05    .29476E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.103911
  Prefactor  = 1.09579e-07
  norm       = 5.69031
  norm       = 0
  Prefactor  = 6.6774
  Prefactor  = 1.09912e-08
  Prefactor  = 4.46879
  Prefactor  = 9.48797e-07
  norm       = 1.89081
  norm       = 7.47125e-07
  norm       = 16.3424
  norm       = 23.188
  Prefactor  = 1.65741
  Prefactor  = 2.67657
  Prefactor  = 5.61586
  norm       = 5.88057e-06
  Prefactor  = 1.16573e-09
  norm       = 2.64604
  Prefactor  = 9.8422
  norm       = 2.31975
  Normalizat = 1.77177
  Prefactor  = 0.638256
e GAL_V02
Working on...
/lscratch/kocevski/33444666/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits.....................!
real 39.79
user 37.67
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33444666/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits', '/lscratch/kocevski/33444666/ft2_4FGL_J1339.9-0138_weekly_bin938.fits', expMap='/lscratch/kocevski/33444666/expmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits', expCube='/lscratch/kocevski/33444666/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33444666/Model_4FGL_J1339.9-0138_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1339.9-0138'

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  2.717e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.118e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33444666/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33444666/ft2_4FGL_J1339.9-0138_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33444666/expmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33444666/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33444666/Model_4FGL_J1339.9-0138_weekly_bin938.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) = 13495.0799393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 13494.2386363

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10385       1.0000          .0000       .10000E+07
     2 'Prefactor '    .13225E-02   1.0000          .0000       .10000E+07
     3 'norm      '    5.7347       1.0000          .0000       .10000E+07
     4 'norm      '    .56649E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.5559       1.0000          .0000       .10000E+07
     6 'Prefactor '    .32252E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.4481       1.0000          .0000       .10000E+07
     8 'Prefactor '    .75802E-02   1.0000          .0000       .10000E+07
     9 'norm      '    1.8896       1.0000          .0000       .10000E+07
    10 'norm      '    .49899E-02   1.0000          .0000       .10000E+07
    11 'norm      '    16.285       1.0000          .0000       .10000E+07
    12 'norm      '    23.694       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.6553       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.6761       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.6104       1.0000          .0000       .10000E+07
    16 'norm      '    .10988E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .46369E-04   1.0000          .0000       .10000E+07
    18 'norm      '    2.6459       1.0000          .0000       .10000E+07
    19 'Prefactor '    9.7148       1.0000          .0000       .10000E+07
    20 'norm      '    2.2920       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.7724       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .63800       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13494.24     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     1386 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10391        .98151E-01    .18393E-07** at limit **
   2  Prefactor     .10958E-06    36.260       -.40075E-06** at limit **
   3  norm          5.6903        5.9357        .14045E-06    .27298E-03
   4  norm           .0000        4.0655       -.69717E-07** at limit **
   5  Prefactor     6.6774        7.8432        .15125E-06    .18085E-01
   6  Prefactor     .10991E-07    4.0389       -.14352E-07** at limit **
   7  Prefactor     4.4688        7.1803       -.81664E-07    .31938E-03
   8  Prefactor     .94880E-06    20.050       -.62379E-07** at limit **
   9  norm          1.8908        1.0897        .27422E-07    .10451E-02
  10  norm          .74712E-06    16.775        .15455E-05** at limit **
  11  norm          16.342        6.8475       -.18435E-07    .44481E-02
  12  norm          23.188        13.463        .35308E-06    .10391    
  13  Prefactor     1.6574        2.1935        .37693E-08    .77910E-03
  14  Prefactor     2.6766        4.3264        .16422E-06    .42480E-02
  15  Prefactor     5.6159        9.2039        .23411E-07    .27270E-01
  16  norm          .58806E-05    27.633        .40141E-06** at limit **
  17  Prefactor     .11657E-08    2.5044        .15686E-06** at limit **
  18  norm          2.6460        1.7632        .16195E-07    .19306E-02
  19  Prefactor     9.8422        9.0996       -.17948E-06   -.47751E-01
  20  norm          2.3198        5.1656       -.91514E-07   -.31624E-03
  21  Normalizat    1.7718        .18246        .21208E-05    .26333E-04
  22  Prefactor     .63826        .12215       -.18713E-05    .29476E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.103911
  Prefactor  = 1.09579e-07
  norm       = 5.69031
  norm       = 0
  Prefactor  = 6.6774
  Prefactor  = 1.09912e-08
  Prefactor  = 4.46879
  Prefactor  = 9.48797e-07
  norm       = 1.89081
  norm       = 7.47125e-07
  norm       = 16.3424
  norm       = 23.188
  Prefactor  = 1.65741
  Prefactor  = 2.67657
  Prefactor  = 5.61586
  norm       = 5.88057e-06
  Prefactor  = 1.16573e-09
  norm       = 2.64604
  Prefactor  = 9.8422
  norm       = 2.31975
  Normalizat = 1.77177
  Prefactor  = 0.638256
 **********
 **   18 **HESSE 
 **********

 FCN=   13494.24     FROM HESSE     STATUS=OK           408 CALLS     1794 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10391        .11329        .77632E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10958E-06    36.500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.6903        5.9557        .41919E-03   -1.5660    
   4  norm           .0000        4.0662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6774        11.844        .39171E-03   -1.5656    
   6  Prefactor     .10991E-07    4.0505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4688        7.1995        .47721E-03   -1.5666    
   8  Prefactor     .94880E-06    22.444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8908        1.0900        .75669E-04   -1.5680    
  10  norm          .74712E-06    1.8476        .52616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.342        7.6030        .24792E-03   -1.5627    
  12  norm          23.188        16.342        .20549E-03   -1.5612    
  13  Prefactor     1.6574        2.2048        .81999E-03   -1.5682    
  14  Prefactor     2.6766        4.8818        .62267E-03   -1.5675    
  15  Prefactor     5.6159        11.142        .42389E-03   -1.5661    
  16  norm          .58806E-05    4.9006        .61536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11657E-08    2.5094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6460        1.7749        .62649E-03   -1.5675    
  19  Prefactor     9.8422        10.201        .32127E-03   -1.5645    
  20  norm          2.3198        5.1816        .67772E-03   -1.5678    
  21  Normalizat    1.7718        .15294        .56372E-01   -.70403    
  22  Prefactor     .63826        .10325        .60268E-01   -1.0600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47551e-07
Minuit parameter uncertainties:
  1  0.11329
  2  0.00400034
  3  5.95569
  4  1.2131e-06
  5  11.8438
  6  0.000422523
  7  7.19954
  8  0.00922942
  9  1.08998
  10  0.00234975
  11  7.60297
  12  16.3422
  13  2.20477
  14  4.88185
  15  11.142
  16  0.0107365
  17  0.00010888
  18  1.77487
  19  10.2009
  20  5.18158
  21  0.152983
  22  0.103282
 **********
 **   18 **HESSE 
 **********

 FCN=   13494.24     FROM HESSE     STATUS=OK           408 CALLS     1794 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10391        .11329        .77632E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10958E-06    36.500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.6903        5.9557        .41919E-03   -1.5660    
   4  norm           .0000        4.0662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6774        11.844        .39171E-03   -1.5656    
   6  Prefactor     .10991E-07    4.0505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4688        7.1995        .47721E-03   -1.5666    
   8  Prefactor     .94880E-06    22.444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8908        1.0900        .75669E-04   -1.5680    
  10  norm          .74712E-06    1.8476        .52616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.342        7.6030        .24792E-03   -1.5627    
  12  norm          23.188        16.342        .20549E-03   -1.5612    
  13  Prefactor     1.6574        2.2048        .81999E-03   -1.5682    
  14  Prefactor     2.6766        4.8818        .62267E-03   -1.5675    
  15  Prefactor     5.6159        11.142        .42389E-03   -1.5661    
  16  norm          .58806E-05    4.9006        .61536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11657E-08    2.5094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6460        1.7749        .62649E-03   -1.5675    
  19  Prefactor     9.8422        10.201        .32127E-03   -1.5645    
  20  norm          2.3198        5.1816        .67772E-03   -1.5678    
  21  Normalizat    1.7718        .15294        .56372E-01   -.70403    
  22  Prefactor     .63826        .10325        .60268E-01   -1.0600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47551e-07
Minuit parameter uncertainties:
  1  0.11329
  2  0.00400034
  3  5.95569
  4  1.2131e-06
  5  11.8438
  6  0.000422523
  7  7.19954
  8  0.00922942
  9  1.08998
  10  0.00234975
  11  7.60297
  12  16.3422
  13  2.20477
  14  4.88185
  15  11.142
  16  0.0107365
  17  0.00010888
  18  1.77487
  19  10.2009
  20  5.18158
  21  0.152983
  22  0.103282
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 13494.2374865

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  2.319e+01  1.634e+01  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.118e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  6.383e-01  1.033e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.772e+00  1.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.40
Ra Dec: 204.976 -1.638
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 9.68e-09 +/- 6.83e-09
Energy Flux (Fixed Index): 7.89e-06 +/- 5.56e-06

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) = 13494.0593278
delta logL = 0.178158699468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13494.0296818
delta logL = 0.207804676804

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.160       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7254       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63793       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13494.03     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      259 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.159        16.515        .91414E-05   -.19898E-04
   2  alpha         2.7256        .96738        .31568E-01    .24591E-03
   3  Normalizat    1.7688        .17558        .24938E-03    .13992E-03
   4  Prefactor     .63792        .12036        .26661E-03    .26523E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.1588
  alpha      = 2.72562
  Normalizat = 1.76879
  Prefactor  = 0.637924
 **********
 **   18 **HESSE 
 **********

 FCN=   13494.03     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.159        15.848        .36566E-06   -1.5620    
   2  alpha         2.7256        .93049        .63135E-02    .90370E-01
   3  Normalizat    1.7688        .17566        .49877E-04   -.70481    
   4  Prefactor     .63792        .12045        .10664E-04   -1.0601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05438e-11
Minuit parameter uncertainties:
  1  15.8485
  2  0.953631
  3  0.175725
  4  0.1205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13494.0296818
delta logL = 0.207804709067

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  1.916e+01  1.585e+01  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.726e+00  9.536e-01  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  6.379e-01  1.205e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.769e+00  1.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.82
Ra Dec: 204.976 -1.638
Photon Index (Free Index): 2.73 +/- 0.95
Photon Flux (Free Index): 1.44e-08 +/- 1.29e-08
Energy Flux (Free Index): 7.81e-06 +/- 5.22e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33444678/cmap_HighResolution_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.68e-09', energy_flux2='7.81e-06', photon_flux_error='6.83e-09', dlogl='2.08e-01', energy_flux='7.89e-06', photon_flux2='1.44e-08', job_status='DONE', time_completed='2026-07-28 11:22:02.473656', photon_index_error2='0.95', photon_index2='2.73', ts='5.40', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='5.22e-06', EG='1.77', time_epoch_completed='1785262922.47', return_code='0', job_id='33444678', GAL2='0.64', EG2='1.77', return_code2='0', energy_flux_error='5.56e-06', photon_flux_error2='1.29e-08', ts2='5.82', photon_index='2.12' WHERE bin_id='938' AND source_name='4FGL J1339.9-0138' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 11:22:02 PDT 2026

Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 13494.2374865

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  2.319e+01  1.634e+01  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.118e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  6.383e-01  1.033e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.772e+00  1.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.40
Ra Dec: 204.976 -1.638
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 9.68e-09 +/- 6.83e-09
Energy Flux (Fixed Index): 7.89e-06 +/- 5.56e-06

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) = 13494.0593278
delta logL = 0.178158699468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13494.0296818
delta logL = 0.207804676804

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.160       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7254       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63793       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13494.03     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      259 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.159        16.515        .91414E-05   -.19898E-04
   2  alpha         2.7256        .96738        .31568E-01    .24591E-03
   3  Normalizat    1.7688        .17558        .24938E-03    .13992E-03
   4  Prefactor     .63792        .12036        .26661E-03    .26523E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.1588
  alpha      = 2.72562
  Normalizat = 1.76879
  Prefactor  = 0.637924
 **********
 **   18 **HESSE 
 **********

 FCN=   13494.03     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.159        15.848        .36566E-06   -1.5620    
   2  alpha         2.7256        .93049        .63135E-02    .90370E-01
   3  Normalizat    1.7688        .17566        .49877E-04   -.70481    
   4  Prefactor     .63792        .12045        .10664E-04   -1.0601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05438e-11
Minuit parameter uncertainties:
  1  15.8485
  2  0.953631
  3  0.175725
  4  0.1205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13494.0296818
delta logL = 0.207804709067

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  1.916e+01  1.585e+01  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.726e+00  9.536e-01  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  6.379e-01  1.205e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.769e+00  1.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.82
Ra Dec: 204.976 -1.638
Photon Index (Free Index): 2.73 +/- 0.95
Photon Flux (Free Index): 1.44e-08 +/- 1.29e-08
Energy Flux (Free Index): 7.81e-06 +/- 5.22e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33444666/cmap_HighResolution_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.68e-09', energy_flux2='7.81e-06', photon_flux_error='6.83e-09', dlogl='2.08e-01', energy_flux='7.89e-06', photon_flux2='1.44e-08', job_status='DONE', time_completed='2026-07-28 11:22:09.172927', photon_index_error2='0.95', photon_index2='2.73', ts='5.40', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='5.22e-06', EG='1.77', time_epoch_completed='1785262929.17', return_code='0', job_id='33444666', GAL2='0.64', EG2='1.77', return_code2='0', energy_flux_error='5.56e-06', photon_flux_error2='1.29e-08', ts2='5.82', photon_index='2.12' WHERE bin_id='938' AND source_name='4FGL J1339.9-0138' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 11:22:09 PDT 2026

 outfile=/lscratch/kocevski/33445054/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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/33445054/ft2_4FGL_J1339.9-0138_weekly_bin938.fits
.....................!
real 18.82
user 17.93
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33445054/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33445054/ft2_4FGL_J1339.9-0138_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33445054/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits outfile=/lscratch/kocevski/33445054/expmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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/33445054/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits
.....................!
real 71.57
user 66.48
sys 4.21

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J1339.9-0138 @ 204.976 -1.6378

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33445054/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits scfile=/lscratch/kocevski/33445054/ft2_4FGL_J1339.9-0138_weekly_bin938.fits outfile=/lscratch/kocevski/33445054/cmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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=204.976 yref=-1.6378 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
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33445054/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits scfile=/lscratch/kocevski/33445054/ft2_4FGL_J1339.9-0138_weekly_bin938.fits outfile=/lscratch/kocevski/33445054/cmap_HighResolution_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.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=204.976 yref=-1.6378 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.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33445054/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33445054/ft2_4FGL_J1339.9-0138_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33445054/Model_4FGL_J1339.9-0138_weekly_bin938.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/33445054/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits.....................!
real 39.15
user 37.16
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33445054/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits', '/lscratch/kocevski/33445054/ft2_4FGL_J1339.9-0138_weekly_bin938.fits', expMap='/lscratch/kocevski/33445054/expmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits', expCube='/lscratch/kocevski/33445054/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33445054/Model_4FGL_J1339.9-0138_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1339.9-0138'

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  2.717e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.118e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33445054/ft1_filtered_4FGL_J1339.9-0138_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33445054/ft2_4FGL_J1339.9-0138_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33445054/expmap_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33445054/ltcube_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33445054/Model_4FGL_J1339.9-0138_weekly_bin938.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) = 13495.0799393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 13494.2386363

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10385       1.0000          .0000       .10000E+07
     2 'Prefactor '    .13225E-02   1.0000          .0000       .10000E+07
     3 'norm      '    5.7347       1.0000          .0000       .10000E+07
     4 'norm      '    .56649E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.5559       1.0000          .0000       .10000E+07
     6 'Prefactor '    .32252E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.4481       1.0000          .0000       .10000E+07
     8 'Prefactor '    .75802E-02   1.0000          .0000       .10000E+07
     9 'norm      '    1.8896       1.0000          .0000       .10000E+07
    10 'norm      '    .49899E-02   1.0000          .0000       .10000E+07
    11 'norm      '    16.285       1.0000          .0000       .10000E+07
    12 'norm      '    23.694       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.6553       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.6761       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.6104       1.0000          .0000       .10000E+07
    16 'norm      '    .10988E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .46369E-04   1.0000          .0000       .10000E+07
    18 'norm      '    2.6459       1.0000          .0000       .10000E+07
    19 'Prefactor '    9.7148       1.0000          .0000       .10000E+07
    20 'norm      '    2.2920       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.7724       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .63800       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13494.24     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     1386 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10391        .98151E-01    .18393E-07** at limit **
   2  Prefactor     .10958E-06    36.260       -.40075E-06** at limit **
   3  norm          5.6903        5.9357        .14045E-06    .27298E-03
   4  norm           .0000        4.0655       -.69717E-07** at limit **
   5  Prefactor     6.6774        7.8432        .15125E-06    .18085E-01
   6  Prefactor     .10991E-07    4.0389       -.14352E-07** at limit **
   7  Prefactor     4.4688        7.1803       -.81664E-07    .31938E-03
   8  Prefactor     .94880E-06    20.050       -.62379E-07** at limit **
   9  norm          1.8908        1.0897        .27422E-07    .10451E-02
  10  norm          .74712E-06    16.775        .15455E-05** at limit **
  11  norm          16.342        6.8475       -.18435E-07    .44481E-02
  12  norm          23.188        13.463        .35308E-06    .10391    
  13  Prefactor     1.6574        2.1935        .37693E-08    .77910E-03
  14  Prefactor     2.6766        4.3264        .16422E-06    .42480E-02
  15  Prefactor     5.6159        9.2039        .23411E-07    .27270E-01
  16  norm          .58806E-05    27.633        .40141E-06** at limit **
  17  Prefactor     .11657E-08    2.5044        .15686E-06** at limit **
  18  norm          2.6460        1.7632        .16195E-07    .19306E-02
  19  Prefactor     9.8422        9.0996       -.17948E-06   -.47751E-01
  20  norm          2.3198        5.1656       -.91514E-07   -.31624E-03
  21  Normalizat    1.7718        .18246        .21208E-05    .26333E-04
  22  Prefactor     .63826        .12215       -.18713E-05    .29476E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.103911
  Prefactor  = 1.09579e-07
  norm       = 5.69031
  norm       = 0
  Prefactor  = 6.6774
  Prefactor  = 1.09912e-08
  Prefactor  = 4.46879
  Prefactor  = 9.48797e-07
  norm       = 1.89081
  norm       = 7.47125e-07
  norm       = 16.3424
  norm       = 23.188
  Prefactor  = 1.65741
  Prefactor  = 2.67657
  Prefactor  = 5.61586
  norm       = 5.88057e-06
  Prefactor  = 1.16573e-09
  norm       = 2.64604
  Prefactor  = 9.8422
  norm       = 2.31975
  Normalizat = 1.77177
  Prefactor  = 0.638256
 **********
 **   18 **HESSE 
 **********

 FCN=   13494.24     FROM HESSE     STATUS=OK           408 CALLS     1794 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10391        .11329        .77632E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10958E-06    36.500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.6903        5.9557        .41919E-03   -1.5660    
   4  norm           .0000        4.0662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6774        11.844        .39171E-03   -1.5656    
   6  Prefactor     .10991E-07    4.0505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4688        7.1995        .47721E-03   -1.5666    
   8  Prefactor     .94880E-06    22.444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8908        1.0900        .75669E-04   -1.5680    
  10  norm          .74712E-06    1.8476        .52616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.342        7.6030        .24792E-03   -1.5627    
  12  norm          23.188        16.342        .20549E-03   -1.5612    
  13  Prefactor     1.6574        2.2048        .81999E-03   -1.5682    
  14  Prefactor     2.6766        4.8818        .62267E-03   -1.5675    
  15  Prefactor     5.6159        11.142        .42389E-03   -1.5661    
  16  norm          .58806E-05    4.9006        .61536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11657E-08    2.5094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6460        1.7749        .62649E-03   -1.5675    
  19  Prefactor     9.8422        10.201        .32127E-03   -1.5645    
  20  norm          2.3198        5.1816        .67772E-03   -1.5678    
  21  Normalizat    1.7718        .15294        .56372E-01   -.70403    
  22  Prefactor     .63826        .10325        .60268E-01   -1.0600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47551e-07
Minuit parameter uncertainties:
  1  0.11329
  2  0.00400034
  3  5.95569
  4  1.2131e-06
  5  11.8438
  6  0.000422523
  7  7.19954
  8  0.00922942
  9  1.08998
  10  0.00234975
  11  7.60297
  12  16.3422
  13  2.20477
  14  4.88185
  15  11.142
  16  0.0107365
  17  0.00010888
  18  1.77487
  19  10.2009
  20  5.18158
  21  0.152983
  22  0.103282
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 13494.2374865

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  2.319e+01  1.634e+01  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.118e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  6.383e-01  1.033e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.772e+00  1.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.40
Ra Dec: 204.976 -1.638
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 9.68e-09 +/- 6.83e-09
Energy Flux (Fixed Index): 7.89e-06 +/- 5.56e-06

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) = 13494.0593278
delta logL = 0.178158699468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13494.0296818
delta logL = 0.207804676804

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.160       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7254       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63793       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13494.03     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      259 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.159        16.515        .91414E-05   -.19898E-04
   2  alpha         2.7256        .96738        .31568E-01    .24591E-03
   3  Normalizat    1.7688        .17558        .24938E-03    .13992E-03
   4  Prefactor     .63792        .12036        .26661E-03    .26523E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.1588
  alpha      = 2.72562
  Normalizat = 1.76879
  Prefactor  = 0.637924
 **********
 **   18 **HESSE 
 **********

 FCN=   13494.03     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.159        15.848        .36566E-06   -1.5620    
   2  alpha         2.7256        .93049        .63135E-02    .90370E-01
   3  Normalizat    1.7688        .17566        .49877E-04   -.70481    
   4  Prefactor     .63792        .12045        .10664E-04   -1.0601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05438e-11
Minuit parameter uncertainties:
  1  15.8485
  2  0.953631
  3  0.175725
  4  0.1205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13494.0296818
delta logL = 0.207804709067

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  1.916e+01  1.585e+01  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.726e+00  9.536e-01  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  6.379e-01  1.205e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.769e+00  1.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.82
Ra Dec: 204.976 -1.638
Photon Index (Free Index): 2.73 +/- 0.95
Photon Flux (Free Index): 1.44e-08 +/- 1.29e-08
Energy Flux (Free Index): 7.81e-06 +/- 5.22e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33445054/cmap_HighResolution_806284801_806889601_4FGL_J1339.9-0138_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.68e-09', energy_flux2='7.81e-06', photon_flux_error='6.83e-09', dlogl='2.08e-01', energy_flux='7.89e-06', photon_flux2='1.44e-08', job_status='DONE', time_completed='2026-07-28 11:25:44.973617', photon_index_error2='0.95', photon_index2='2.73', ts='5.40', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='5.22e-06', EG='1.77', time_epoch_completed='1785263144.97', return_code='0', job_id='33445054', GAL2='0.64', EG2='1.77', return_code2='0', energy_flux_error='5.56e-06', photon_flux_error2='1.29e-08', ts2='5.82', photon_index='2.12' WHERE bin_id='938' AND source_name='4FGL J1339.9-0138' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 11:25:45 PDT 2026

