number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
/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).

Done.


Performing analysis on: 4FGL_J2250.0+3825_weekly_bin780
RA = 342.514, Dec = 38.4247
tmin = 710726401, tmax = 711331201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='19666166', job_status='RUN', time_executed='2023-07-18 02:01:30.327989', time_epoch_executed='1689670890.33' WHERE source_name='4FGL J2250.0+3825' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19666166

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19666166/ft1_4FGL_J2250.0+3825_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19666166/ft2_4FGL_J2250.0+3825_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19666166/ft1_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19666166/ft1_filteredMKT_4FGL_J2250.0+3825_weekly_bin780.fits ra=342.514 dec=38.4247 rad=12.0 tmin=710726401.0 tmax=711331201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.58
user 3.56
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19666166/ft2_4FGL_J2250.0+3825_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19666166/ft2_4FGL_J2250.0+3825_weekly_bin780.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/19666166/ft1_filteredMKT_4FGL_J2250.0+3825_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19666166/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2977

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19666166/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19666166/ft2_4FGL_J2250.0+3825_weekly_bin780.fits sctable="SC_DATA"/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/19666062/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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/19666062/ft2_4FGL_J2250.0+3825_weekly_bin780.fits
.....................!
real 16.87
user 15.70
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19666062/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19666062/ft2_4FGL_J2250.0+3825_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19666062/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19666062/expmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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/19666062/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits
.....................!
real 62.07
user 57.39
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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 163 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2250.0+3825 @ 342.514 38.4247

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19666062/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits scfile=/lscratch/kocevski/19666062/ft2_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19666062/cmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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=342.514 yref=38.4247 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.94
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19666062/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits scfile=/lscratch/kocevski/19666062/ft2_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19666062/cmap_HighResolution_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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=342.514 yref=38.4247 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.04
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19666062/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19666062/ft2_4FGL_J2250.0+3825_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19 outfile=/lscratch/kocevski/19666166/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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/19666166/ft2_4FGL_J2250.0+3825_weekly_bin780.fits
.....................!
real 16.17
user 15.21
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19666166/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19666166/ft2_4FGL_J2250.0+3825_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19666166/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19666166/expmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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/19666166/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits
.....................!
real 60.47
user 55.62
sys 3.64

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 163 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2250.0+3825 @ 342.514 38.4247

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19666166/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits scfile=/lscratch/kocevski/19666166/ft2_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19666166/cmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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=342.514 yref=38.4247 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.04
user 0.20
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19666166/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits scfile=/lscratch/kocevski/19666166/ft2_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19666166/cmap_HighResolution_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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=342.514 yref=38.4247 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.29
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19666166/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19666166/ft2_4FGL_J2250.0+3825_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2250.0+3825_weekly_bin780
RA = 342.514, Dec = 38.4247
tmin = 710726401, tmax = 711331201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='19667145', job_status='RUN', time_executed='2023-07-18 02:06:46.672695', time_epoch_executed='1689671206.67' WHERE source_name='4FGL J2250.0+3825' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19667145

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19667145/ft1_4FGL_J2250.0+3825_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19667145/ft2_4FGL_J2250.0+3825_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19667145/ft1_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19667145/ft1_filteredMKT_4FGL_J2250.0+3825_weekly_bin780.fits ra=342.514 dec=38.4247 rad=12.0 tmin=710726401.0 tmax=711331201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.58
user 3.63
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19667145/ft2_4FGL_J2250.0+3825_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19667145/ft2_4FGL_J2250.0+3825_weekly_bin780.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/19667145/ft1_filteredMKT_4FGL_J2250.0+3825_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19667145/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2977

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19667145/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19667145/ft2_4FGL_J2250.0+3825_weekly_bin780.fits sctable="SC_DATA"666062/Model_4FGL_J2250.0+3825_weekly_bin780.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/19666062/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits.....................!
real 118.47
user 116.04
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19666062/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits', '/lscratch/kocevski/19666062/ft2_4FGL_J2250.0+3825_weekly_bin780.fits', expMap='/lscratch/kocevski/19666062/expmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits', expCube='/lscratch/kocevski/19666062/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19666062/Model_4FGL_J2250.0+3825_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2250.0+3825'

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  3.066e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
364        Index:  1.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19666062/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19666062/ft2_4FGL_J2250.0+3825_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19666062/expmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19666062/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19666062/Model_4FGL_J2250.0+3825_weekly_bin780.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) = 30331.676662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.259       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21394E-03   1.0000          .0000       .10000E+07
     3 'norm      '    1.7519       1.0000          .0000       .10000E+07
     4 'norm      '    .53518E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.6898       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.7134       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11136E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .19868       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.0056       1.0000          .0000       .10000E+07
    10 'Prefactor '    .25658E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .57798E-06   1.0000          .0000       .10000E+07
    12 'norm      '    3.5137       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.9440       1.0000          .0000       .10000E+07
    14 'norm      '    .44569E-04   1.0000          .0000       .10000E+07
    15 'Normalizat'    1.1710       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .91163       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   30330.90     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      901 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.260        .78634       -.97461E-08   -.29753E-01
   2  Prefactor     .35827E-06    2.4883        .15820E-05** at limit **
   3  norm          1.7509        .66231        .94583E-07   -.14046E-02
   4  norm          .64115E-07    2.9630        .13624E-05** at limit **
   5  Prefactor     4.6895        4.6709       -.30324E-06   -.27269E-02
   6  Prefactor     1.7103        3.1640       -.13414E-07   -.13658E-02
   7  Prefactor     .63616E-07    3.0371       -.82138E-06** at limit **
   8  norm          .19872        .50221       -.75784E-07** at limit **
   9  Prefactor     3.0074        4.9645       -.12575E-05   -.34238E-02
  10  Prefactor     .32196E-07    5.3357        .13113E-05** at limit **
  11  norm          .13323E-07    3.3456        .32871E-06** at limit **
  12  norm          3.5089        3.1195        .44965E-06   -.10840E-02
  13  Prefactor     2.9153        3.6997        .10443E-05    .45750E-01
  14  norm          .10821E-05    11.044       -.30846E-05** at limit **
  15  Normalizat    1.1709        .13873       -.10171E-06   -.78268E-04
  16  Prefactor     .91164        .48553E-01    .73281E-06   -.19291E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2597
  Prefactor  = 3.58269e-07
  norm       = 1.75088
  norm       = 6.41154e-08
  Prefactor  = 4.6895
  Prefactor  = 1.7103
  Prefactor  = 6.36158e-08
  norm       = 0.198724
  Prefactor  = 3.00742
  Prefactor  = 3.21965e-08
  norm       = 1.33227e-08
  norm       = 3.50894
  Prefactor  = 2.91527
  norm       = 1.08213e-06
  Normalizat = 1.17093
  Prefactor  = 0.911645
 **********
 **   18 **HESSE 
 **********

 FCN=   30330.90     FROM HESSE     STATUS=OK           247 CALLS     1148 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.260        .78806        .31258E-03   -1.5644    
   2  Prefactor     .35827E-06    4.5568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7509        .66601        .79176E-03   -1.5681    
   4  norm          .64115E-07    .50176        .62463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6895        4.6696        .46445E-03   -1.5665    
   6  Prefactor     1.7103        3.2768        .80261E-03   -1.5682    
   7  Prefactor     .63616E-07    4.1033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .19872        .50096        .11799E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0074        5.0226        .58521E-03   -1.5673    
  10  Prefactor     .32196E-07    5.5276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .13323E-07    3.4755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5089        3.1217        .53908E-03   -1.5670    
  13  Prefactor     2.9153        8.4547        .59167E-03   -1.5674    
  14  norm          .10821E-05    .48751        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1709        .12553        .90384E-01   -.87506    
  16  Prefactor     .91164        .42702E-01    .45153E-01   -.95735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01087e-06
Minuit parameter uncertainties:
  1  0.78806
  2  0.00255551
  3  0.66601
  4  0.00035872
  5  4.66955
  6  3.27679
  7  0.00102179
  8  0.500961
  9  5.0226
  10  0.000843983
  11  0.000430443
  12  3.12173
  13  8.45472
  14  0.00145263
  15  0.125562
  16  0.0427037
666166/Model_4FGL_J2250.0+3825_weekly_bin780.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/19666166/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits.....................!
real 117.65
user 114.97
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19666166/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits', '/lscratch/kocevski/19666166/ft2_4FGL_J2250.0+3825_weekly_bin780.fits', expMap='/lscratch/kocevski/19666166/expmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits', expCube='/lscratch/kocevski/19666166/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19666166/Model_4FGL_J2250.0+3825_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2250.0+3825'

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  3.066e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
364        Index:  1.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19666166/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19666166/ft2_4FGL_J2250.0+3825_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19666166/expmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19666166/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19666166/Model_4FGL_J2250.0+3825_weekly_bin780.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) = 30331.676662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.259       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21394E-03   1.0000          .0000       .10000E+07
     3 'norm      '    1.7519       1.0000          .0000       .10000E+07
     4 'norm      '    .53518E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.6898       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.7134       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11136E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .19868       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.0056       1.0000          .0000       .10000E+07
    10 'Prefactor '    .25658E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .57798E-06   1.0000          .0000       .10000E+07
    12 'norm      '    3.5137       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.9440       1.0000          .0000       .10000E+07
    14 'norm      '    .44569E-04   1.0000          .0000       .10000E+07
    15 'Normalizat'    1.1710       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .91163       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   30330.90     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      901 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.260        .78634       -.97461E-08   -.29753E-01
   2  Prefactor     .35827E-06    2.4883        .15820E-05** at limit **
   3  norm          1.7509        .66231        .94583E-07   -.14046E-02
   4  norm          .64115E-07    2.9630        .13624E-05** at limit **
   5  Prefactor     4.6895        4.6709       -.30324E-06   -.27269E-02
   6  Prefactor     1.7103        3.1640       -.13414E-07   -.13658E-02
   7  Prefactor     .63616E-07    3.0371       -.82138E-06** at limit **
   8  norm          .19872        .50221       -.75784E-07** at limit **
   9  Prefactor     3.0074        4.9645       -.12575E-05   -.34238E-02
  10  Prefactor     .32196E-07    5.3357        .13113E-05** at limit **
  11  norm          .13323E-07    3.3456        .32871E-06** at limit **
  12  norm          3.5089        3.1195        .44965E-06   -.10840E-02
  13  Prefactor     2.9153        3.6997        .10443E-05    .45750E-01
  14  norm          .10821E-05    11.044       -.30846E-05** at limit **
  15  Normalizat    1.1709        .13873       -.10171E-06   -.78268E-04
  16  Prefactor     .91164        .48553E-01    .73281E-06   -.19291E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2597
  Prefactor  = 3.58269e-07
  norm       = 1.75088
  norm       = 6.41154e-08
  Prefactor  = 4.6895
  Prefactor  = 1.7103
  Prefactor  = 6.36158e-08
  norm       = 0.198724
  Prefactor  = 3.00742
  Prefactor  = 3.21965e-08
  norm       = 1.33227e-08
  norm       = 3.50894
  Prefactor  = 2.91527
  norm       = 1.08213e-06
  Normalizat = 1.17093
  Prefactor  = 0.911645
 outfile=/lscratch/kocevski/19667145/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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/19667145/ft2_4FGL_J2250.0+3825_weekly_bin780.fits
.....................!
real 16.81
user 15.55
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19667145/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19667145/ft2_4FGL_J2250.0+3825_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19667145/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19667145/expmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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/19667145/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits
.....................!
real 61.17
user 56.46
sys 3.65

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 163 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2250.0+3825 @ 342.514 38.4247

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19667145/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits scfile=/lscratch/kocevski/19667145/ft2_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19667145/cmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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=342.514 yref=38.4247 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.29
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19667145/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits scfile=/lscratch/kocevski/19667145/ft2_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19667145/cmap_HighResolution_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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=342.514 yref=38.4247 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.29
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19667145/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19667145/ft2_4FGL_J2250.0+3825_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  4.689e+00  4.670e+00  0.000e+00  1.000e+06 ( 1.000e-14)
364        Index:  1.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  9.116e-01  4.270e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.171e+00  1.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.82
Ra Dec: 342.514 38.425
Photon Index (Fixed Index): 1.73 +/- 0.00
Photon Flux (Fixed Index): 5.69e-09 +/- 5.67e-09
Energy Flux (Fixed Index): 8.39e-06 +/- 8.35e-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) = 30330.8276061
delta logL = 0.068547333507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 30330.8189972
delta logL = 0.0771561636211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3636       1.0000          .0000       .10000E+07
     2 'Index     '    1.4320       1.0000          .0000       10.000    
     3 'Normalizat'    1.1724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91177       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+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=   30330.82     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      251 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3644        5.5280        .17348E-04   -.12470E-01
   2  Index         1.4319        .75679        .18739E-01   -.30207E-03
   3  Normalizat    1.1724        .13504        .40010E-03    .49601E-03
   4  Prefactor     .91178        .48095E-01    .15821E-03    .12452E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.36445
  Index      = 1.43191
  Normalizat = 1.17239
  Prefactor  = 0.911775
 **********
 **   18 **HESSE 
 **********

 FCN=   30330.90     FROM HESSE     STATUS=OK           247 CALLS     1148 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.260        .78806        .31258E-03   -1.5644    
   2  Prefactor     .35827E-06    4.5568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7509        .66601        .79176E-03   -1.5681    
   4  norm          .64115E-07    .50176        .62463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6895        4.6696        .46445E-03   -1.5665    
   6  Prefactor     1.7103        3.2768        .80261E-03   -1.5682    
   7  Prefactor     .63616E-07    4.1033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .19872        .50096        .11799E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0074        5.0226        .58521E-03   -1.5673    
  10  Prefactor     .32196E-07    5.5276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .13323E-07    3.4755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5089        3.1217        .53908E-03   -1.5670    
  13  Prefactor     2.9153        8.4547        .59167E-03   -1.5674    
  14  norm          .10821E-05    .48751        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1709        .12553        .90384E-01   -.87506    
  16  Prefactor     .91164        .42702E-01    .45153E-01   -.95735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01087e-06
Minuit parameter uncertainties:
  1  0.78806
  2  0.00255551
  3  0.66601
  4  0.00035872
  5  4.66955
  6  3.27679
  7  0.00102179
  8  0.500961
  9  5.0226
  10  0.000843983
  11  0.000430443
  12  3.12173
  13  8.45472
  14  0.00145263
  15  0.125562
  16  0.0427037
 **********
 **   18 **HESSE 
 **********

 FCN=   30330.82     FROM HESSE     STATUS=OK            23 CALLS      274 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3644        5.4894        .69391E-06   -1.5662    
   2  Index         1.4319        .75244        .74956E-03   -.79465    
   3  Normalizat    1.1724        .13511        .16004E-04   -.87460    
   4  Prefactor     .91178        .48122E-01    .31642E-04   -.95731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21295e-09
Minuit parameter uncertainties:
  1  5.4894
  2  0.758347
  3  0.135147
  4  0.0481246
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) = 30330.8189972
delta logL = 0.077156190524

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  5.364e+00  5.489e+00  0.000e+00  1.000e+06 ( 1.000e-14)
364        Index:  1.432e+00  7.583e-01  0.000e+00  1.000e+01 (-1.000e+00)
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  9.118e-01  4.812e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.172e+00  1.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.97
Ra Dec: 342.514 38.425
Photon Index (Free Index): 1.43 +/- 0.76
Photon Flux (Free Index): 3.24e-09 +/- 5.60e-09
Energy Flux (Free Index): 1.29e-05 +/- 1.97e-05

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/19666062/cmap_HighResolution_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.69e-09', energy_flux2='1.29e-05', photon_flux_error='5.67e-09', dlogl='7.72e-02', energy_flux='8.39e-06', photon_flux2='3.24e-09', job_status='DONE', time_completed='2023-07-18 02:19:42.003544', photon_index_error2='0.76', photon_index2='1.43', ts='4.82', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='1.17', time_epoch_completed='1689671982.0', return_code='0', job_id='19666062', GAL2='0.91', EG2='1.17', return_code2='0', energy_flux_error='8.35e-06', photon_flux_error2='5.60e-09', ts2='4.97', photon_index='1.73' WHERE bin_id='780' AND source_name='4FGL J2250.0+3825' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:19:42 PDT 2023

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

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  4.689e+00  4.670e+00  0.000e+00  1.000e+06 ( 1.000e-14)
364        Index:  1.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  9.116e-01  4.270e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.171e+00  1.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.82
Ra Dec: 342.514 38.425
Photon Index (Fixed Index): 1.73 +/- 0.00
Photon Flux (Fixed Index): 5.69e-09 +/- 5.67e-09
Energy Flux (Fixed Index): 8.39e-06 +/- 8.35e-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) = 30330.8276061
delta logL = 0.068547333507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 30330.8189972
delta logL = 0.0771561636211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3636       1.0000          .0000       .10000E+07
     2 'Index     '    1.4320       1.0000          .0000       10.000    
     3 'Normalizat'    1.1724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91177       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+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=   30330.82     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      251 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3644        5.5280        .17348E-04   -.12470E-01
   2  Index         1.4319        .75679        .18739E-01   -.30207E-03
   3  Normalizat    1.1724        .13504        .40010E-03    .49601E-03
   4  Prefactor     .91178        .48095E-01    .15821E-03    .12452E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.36445
  Index      = 1.43191
  Normalizat = 1.17239
  Prefactor  = 0.911775
Done.


Performing analysis on: 4FGL_J2250.0+3825_weekly_bin780
RA = 342.514, Dec = 38.4247
tmin = 710726401, tmax = 711331201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='19667417', job_status='RUN', time_executed='2023-07-18 02:08:17.016640', time_epoch_executed='1689671297.02' WHERE source_name='4FGL J2250.0+3825' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19667417

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19667417/ft1_4FGL_J2250.0+3825_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19667417/ft2_4FGL_J2250.0+3825_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19667417/ft1_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19667417/ft1_filteredMKT_4FGL_J2250.0+3825_weekly_bin780.fits ra=342.514 dec=38.4247 rad=12.0 tmin=710726401.0 tmax=711331201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.54
user 3.55
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19667417/ft2_4FGL_J2250.0+3825_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19667417/ft2_4FGL_J2250.0+3825_weekly_bin780.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/19667417/ft1_filteredMKT_4FGL_J2250.0+3825_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19667417/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2977

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19667417/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19667417/ft2_4FGL_J2250.0+3825_weekly_bin780.fits sctable="SC_DATA" **********
 **   18 **HESSE 
 **********

 FCN=   30330.82     FROM HESSE     STATUS=OK            23 CALLS      274 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3644        5.4894        .69391E-06   -1.5662    
   2  Index         1.4319        .75244        .74956E-03   -.79465    
   3  Normalizat    1.1724        .13511        .16004E-04   -.87460    
   4  Prefactor     .91178        .48122E-01    .31642E-04   -.95731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21295e-09
Minuit parameter uncertainties:
  1  5.4894
  2  0.758347
  3  0.135147
  4  0.0481246
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) = 30330.8189972
delta logL = 0.077156190524

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  5.364e+00  5.489e+00  0.000e+00  1.000e+06 ( 1.000e-14)
364        Index:  1.432e+00  7.583e-01  0.000e+00  1.000e+01 (-1.000e+00)
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  9.118e-01  4.812e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.172e+00  1.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.97
Ra Dec: 342.514 38.425
Photon Index (Free Index): 1.43 +/- 0.76
Photon Flux (Free Index): 3.24e-09 +/- 5.60e-09
Energy Flux (Free Index): 1.29e-05 +/- 1.97e-05

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/19666166/cmap_HighResolution_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.69e-09', energy_flux2='1.29e-05', photon_flux_error='5.67e-09', dlogl='7.72e-02', energy_flux='8.39e-06', photon_flux2='3.24e-09', job_status='DONE', time_completed='2023-07-18 02:20:15.782308', photon_index_error2='0.76', photon_index2='1.43', ts='4.82', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='1.17', time_epoch_completed='1689672015.78', return_code='0', job_id='19666166', GAL2='0.91', EG2='1.17', return_code2='0', energy_flux_error='8.35e-06', photon_flux_error2='5.60e-09', ts2='4.97', photon_index='1.73' WHERE bin_id='780' AND source_name='4FGL J2250.0+3825' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:20:16 PDT 2023

 outfile=/lscratch/kocevski/19667417/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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/19667417/ft2_4FGL_J2250.0+3825_weekly_bin780.fits
.....................!
real 16.62
user 15.53
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19667417/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19667417/ft2_4FGL_J2250.0+3825_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19667417/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19667417/expmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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/19667417/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits
.....................!
real 61.64
user 55.88
sys 3.69

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 163 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2250.0+3825 @ 342.514 38.4247

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19667417/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits scfile=/lscratch/kocevski/19667417/ft2_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19667417/cmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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=342.514 yref=38.4247 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.10
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19667417/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits scfile=/lscratch/kocevski/19667417/ft2_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19667417/cmap_HighResolution_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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=342.514 yref=38.4247 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.00
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19667417/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19667417/ft2_4FGL_J2250.0+3825_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19667145/Model_4FGL_J2250.0+3825_weekly_bin780.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/19667145/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits.....................!
real 114.68
user 112.27
sys 0.91

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19667145/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits', '/lscratch/kocevski/19667145/ft2_4FGL_J2250.0+3825_weekly_bin780.fits', expMap='/lscratch/kocevski/19667145/expmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits', expCube='/lscratch/kocevski/19667145/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19667145/Model_4FGL_J2250.0+3825_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2250.0+3825'

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  3.066e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
364        Index:  1.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19667145/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19667145/ft2_4FGL_J2250.0+3825_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19667145/expmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19667145/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19667145/Model_4FGL_J2250.0+3825_weekly_bin780.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) = 30331.676662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.259       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21394E-03   1.0000          .0000       .10000E+07
     3 'norm      '    1.7519       1.0000          .0000       .10000E+07
     4 'norm      '    .53518E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.6898       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.7134       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11136E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .19868       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.0056       1.0000          .0000       .10000E+07
    10 'Prefactor '    .25658E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .57798E-06   1.0000          .0000       .10000E+07
    12 'norm      '    3.5137       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.9440       1.0000          .0000       .10000E+07
    14 'norm      '    .44569E-04   1.0000          .0000       .10000E+07
    15 'Normalizat'    1.1710       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .91163       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   30330.90     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      901 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.260        .78634       -.97461E-08   -.29753E-01
   2  Prefactor     .35827E-06    2.4883        .15820E-05** at limit **
   3  norm          1.7509        .66231        .94583E-07   -.14046E-02
   4  norm          .64115E-07    2.9630        .13624E-05** at limit **
   5  Prefactor     4.6895        4.6709       -.30324E-06   -.27269E-02
   6  Prefactor     1.7103        3.1640       -.13414E-07   -.13658E-02
   7  Prefactor     .63616E-07    3.0371       -.82138E-06** at limit **
   8  norm          .19872        .50221       -.75784E-07** at limit **
   9  Prefactor     3.0074        4.9645       -.12575E-05   -.34238E-02
  10  Prefactor     .32196E-07    5.3357        .13113E-05** at limit **
  11  norm          .13323E-07    3.3456        .32871E-06** at limit **
  12  norm          3.5089        3.1195        .44965E-06   -.10840E-02
  13  Prefactor     2.9153        3.6997        .10443E-05    .45750E-01
  14  norm          .10821E-05    11.044       -.30846E-05** at limit **
  15  Normalizat    1.1709        .13873       -.10171E-06   -.78268E-04
  16  Prefactor     .91164        .48553E-01    .73281E-06   -.19291E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2597
  Prefactor  = 3.58269e-07
  norm       = 1.75088
  norm       = 6.41154e-08
  Prefactor  = 4.6895
  Prefactor  = 1.7103
  Prefactor  = 6.36158e-08
  norm       = 0.198724
  Prefactor  = 3.00742
  Prefactor  = 3.21965e-08
  norm       = 1.33227e-08
  norm       = 3.50894
  Prefactor  = 2.91527
  norm       = 1.08213e-06
  Normalizat = 1.17093
  Prefactor  = 0.911645
 **********
 **   18 **HESSE 
 **********

 FCN=   30330.90     FROM HESSE     STATUS=OK           247 CALLS     1148 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.260        .78806        .31258E-03   -1.5644    
   2  Prefactor     .35827E-06    4.5568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7509        .66601        .79176E-03   -1.5681    
   4  norm          .64115E-07    .50176        .62463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6895        4.6696        .46445E-03   -1.5665    
   6  Prefactor     1.7103        3.2768        .80261E-03   -1.5682    
   7  Prefactor     .63616E-07    4.1033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .19872        .50096        .11799E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0074        5.0226        .58521E-03   -1.5673    
  10  Prefactor     .32196E-07    5.5276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .13323E-07    3.4755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5089        3.1217        .53908E-03   -1.5670    
  13  Prefactor     2.9153        8.4547        .59167E-03   -1.5674    
  14  norm          .10821E-05    .48751        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1709        .12553        .90384E-01   -.87506    
  16  Prefactor     .91164        .42702E-01    .45153E-01   -.95735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01087e-06
Minuit parameter uncertainties:
  1  0.78806
  2  0.00255551
  3  0.66601
  4  0.00035872
  5  4.66955
  6  3.27679
  7  0.00102179
  8  0.500961
  9  5.0226
  10  0.000843983
  11  0.000430443
  12  3.12173
  13  8.45472
  14  0.00145263
  15  0.125562
  16  0.0427037
number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2250.0+3825_weekly_bin780
RA = 342.514, Dec = 38.4247
tmin = 710726401, tmax = 711331201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='19668073', job_status='RUN', time_executed='2023-07-18 02:13:20.425977', time_epoch_executed='1689671600.43' WHERE source_name='4FGL J2250.0+3825' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19668073

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19668073/ft1_4FGL_J2250.0+3825_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19668073/ft2_4FGL_J2250.0+3825_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19668073/ft1_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19668073/ft1_filteredMKT_4FGL_J2250.0+3825_weekly_bin780.fits ra=342.514 dec=38.4247 rad=12.0 tmin=710726401.0 tmax=711331201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.51
user 3.60
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19668073/ft2_4FGL_J2250.0+3825_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19668073/ft2_4FGL_J2250.0+3825_weekly_bin780.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/19668073/ft1_filteredMKT_4FGL_J2250.0+3825_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19668073/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2977

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19668073/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19668073/ft2_4FGL_J2250.0+3825_weekly_bin780.fits sctable="SC_DATA"Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  4.689e+00  4.670e+00  0.000e+00  1.000e+06 ( 1.000e-14)
364        Index:  1.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  9.116e-01  4.270e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.171e+00  1.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.82
Ra Dec: 342.514 38.425
Photon Index (Fixed Index): 1.73 +/- 0.00
Photon Flux (Fixed Index): 5.69e-09 +/- 5.67e-09
Energy Flux (Fixed Index): 8.39e-06 +/- 8.35e-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) = 30330.8276061
delta logL = 0.068547333507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 30330.8189972
delta logL = 0.0771561636211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3636       1.0000          .0000       .10000E+07
     2 'Index     '    1.4320       1.0000          .0000       10.000    
     3 'Normalizat'    1.1724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91177       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+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=   30330.82     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      251 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3644        5.5280        .17348E-04   -.12470E-01
   2  Index         1.4319        .75679        .18739E-01   -.30207E-03
   3  Normalizat    1.1724        .13504        .40010E-03    .49601E-03
   4  Prefactor     .91178        .48095E-01    .15821E-03    .12452E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.36445
  Index      = 1.43191
  Normalizat = 1.17239
  Prefactor  = 0.911775
 **********
 **   18 **HESSE 
 **********

 FCN=   30330.82     FROM HESSE     STATUS=OK            23 CALLS      274 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3644        5.4894        .69391E-06   -1.5662    
   2  Index         1.4319        .75244        .74956E-03   -.79465    
   3  Normalizat    1.1724        .13511        .16004E-04   -.87460    
   4  Prefactor     .91178        .48122E-01    .31642E-04   -.95731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21295e-09
Minuit parameter uncertainties:
  1  5.4894
  2  0.758347
  3  0.135147
  4  0.0481246
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) = 30330.8189972
delta logL = 0.077156190524

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  5.364e+00  5.489e+00  0.000e+00  1.000e+06 ( 1.000e-14)
364        Index:  1.432e+00  7.583e-01  0.000e+00  1.000e+01 (-1.000e+00)
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  9.118e-01  4.812e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.172e+00  1.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.97
Ra Dec: 342.514 38.425
Photon Index (Free Index): 1.43 +/- 0.76
Photon Flux (Free Index): 3.24e-09 +/- 5.60e-09
Energy Flux (Free Index): 1.29e-05 +/- 1.97e-05

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/19667145/cmap_HighResolution_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.69e-09', energy_flux2='1.29e-05', photon_flux_error='5.67e-09', dlogl='7.72e-02', energy_flux='8.39e-06', photon_flux2='3.24e-09', job_status='DONE', time_completed='2023-07-18 02:25:06.727181', photon_index_error2='0.76', photon_index2='1.43', ts='4.82', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='1.17', time_epoch_completed='1689672306.73', return_code='0', job_id='19667145', GAL2='0.91', EG2='1.17', return_code2='0', energy_flux_error='8.35e-06', photon_flux_error2='5.60e-09', ts2='4.97', photon_index='1.73' WHERE bin_id='780' AND source_name='4FGL J2250.0+3825' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:25:07 PDT 2023

667417/Model_4FGL_J2250.0+3825_weekly_bin780.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/19667417/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits.....................!
real 119.43
user 115.91
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19667417/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits', '/lscratch/kocevski/19667417/ft2_4FGL_J2250.0+3825_weekly_bin780.fits', expMap='/lscratch/kocevski/19667417/expmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits', expCube='/lscratch/kocevski/19667417/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19667417/Model_4FGL_J2250.0+3825_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2250.0+3825'

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  3.066e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
364        Index:  1.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19667417/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19667417/ft2_4FGL_J2250.0+3825_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19667417/expmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19667417/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19667417/Model_4FGL_J2250.0+3825_weekly_bin780.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) = 30331.676662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.259       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21394E-03   1.0000          .0000       .10000E+07
     3 'norm      '    1.7519       1.0000          .0000       .10000E+07
     4 'norm      '    .53518E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.6898       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.7134       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11136E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .19868       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.0056       1.0000          .0000       .10000E+07
    10 'Prefactor '    .25658E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .57798E-06   1.0000          .0000       .10000E+07
    12 'norm      '    3.5137       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.9440       1.0000          .0000       .10000E+07
    14 'norm      '    .44569E-04   1.0000          .0000       .10000E+07
    15 'Normalizat'    1.1710       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .91163       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   30330.90     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      901 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.260        .78634       -.97461E-08   -.29753E-01
   2  Prefactor     .35827E-06    2.4883        .15820E-05** at limit **
   3  norm          1.7509        .66231        .94583E-07   -.14046E-02
   4  norm          .64115E-07    2.9630        .13624E-05** at limit **
   5  Prefactor     4.6895        4.6709       -.30324E-06   -.27269E-02
   6  Prefactor     1.7103        3.1640       -.13414E-07   -.13658E-02
   7  Prefactor     .63616E-07    3.0371       -.82138E-06** at limit **
   8  norm          .19872        .50221       -.75784E-07** at limit **
   9  Prefactor     3.0074        4.9645       -.12575E-05   -.34238E-02
  10  Prefactor     .32196E-07    5.3357        .13113E-05** at limit **
  11  norm          .13323E-07    3.3456        .32871E-06** at limit **
  12  norm          3.5089        3.1195        .44965E-06   -.10840E-02
  13  Prefactor     2.9153        3.6997        .10443E-05    .45750E-01
  14  norm          .10821E-05    11.044       -.30846E-05** at limit **
  15  Normalizat    1.1709        .13873       -.10171E-06   -.78268E-04
  16  Prefactor     .91164        .48553E-01    .73281E-06   -.19291E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2597
  Prefactor  = 3.58269e-07
  norm       = 1.75088
  norm       = 6.41154e-08
  Prefactor  = 4.6895
  Prefactor  = 1.7103
  Prefactor  = 6.36158e-08
  norm       = 0.198724
  Prefactor  = 3.00742
  Prefactor  = 3.21965e-08
  norm       = 1.33227e-08
  norm       = 3.50894
  Prefactor  = 2.91527
  norm       = 1.08213e-06
  Normalizat = 1.17093
  Prefactor  = 0.911645
 outfile=/lscratch/kocevski/19668073/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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/19668073/ft2_4FGL_J2250.0+3825_weekly_bin780.fits
.....................!
real 15.97
user 15.11
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19668073/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19668073/ft2_4FGL_J2250.0+3825_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19668073/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19668073/expmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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/19668073/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits
.....................!
real 60.16
user 55.45
sys 3.66

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 163 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2250.0+3825 @ 342.514 38.4247

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19668073/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits scfile=/lscratch/kocevski/19668073/ft2_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19668073/cmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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=342.514 yref=38.4247 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.21
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19668073/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits scfile=/lscratch/kocevski/19668073/ft2_4FGL_J2250.0+3825_weekly_bin780.fits outfile=/lscratch/kocevski/19668073/cmap_HighResolution_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.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=342.514 yref=38.4247 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.93
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19668073/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19668073/ft2_4FGL_J2250.0+3825_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19 **********
 **   18 **HESSE 
 **********

 FCN=   30330.90     FROM HESSE     STATUS=OK           247 CALLS     1148 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.260        .78806        .31258E-03   -1.5644    
   2  Prefactor     .35827E-06    4.5568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7509        .66601        .79176E-03   -1.5681    
   4  norm          .64115E-07    .50176        .62463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6895        4.6696        .46445E-03   -1.5665    
   6  Prefactor     1.7103        3.2768        .80261E-03   -1.5682    
   7  Prefactor     .63616E-07    4.1033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .19872        .50096        .11799E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0074        5.0226        .58521E-03   -1.5673    
  10  Prefactor     .32196E-07    5.5276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .13323E-07    3.4755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5089        3.1217        .53908E-03   -1.5670    
  13  Prefactor     2.9153        8.4547        .59167E-03   -1.5674    
  14  norm          .10821E-05    .48751        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1709        .12553        .90384E-01   -.87506    
  16  Prefactor     .91164        .42702E-01    .45153E-01   -.95735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01087e-06
Minuit parameter uncertainties:
  1  0.78806
  2  0.00255551
  3  0.66601
  4  0.00035872
  5  4.66955
  6  3.27679
  7  0.00102179
  8  0.500961
  9  5.0226
  10  0.000843983
  11  0.000430443
  12  3.12173
  13  8.45472
  14  0.00145263
  15  0.125562
  16  0.0427037
Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  4.689e+00  4.670e+00  0.000e+00  1.000e+06 ( 1.000e-14)
364        Index:  1.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  9.116e-01  4.270e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.171e+00  1.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.82
Ra Dec: 342.514 38.425
Photon Index (Fixed Index): 1.73 +/- 0.00
Photon Flux (Fixed Index): 5.69e-09 +/- 5.67e-09
Energy Flux (Fixed Index): 8.39e-06 +/- 8.35e-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) = 30330.8276061
delta logL = 0.068547333507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 30330.8189972
delta logL = 0.0771561636211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3636       1.0000          .0000       .10000E+07
     2 'Index     '    1.4320       1.0000          .0000       10.000    
     3 'Normalizat'    1.1724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91177       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+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=   30330.82     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      251 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3644        5.5280        .17348E-04   -.12470E-01
   2  Index         1.4319        .75679        .18739E-01   -.30207E-03
   3  Normalizat    1.1724        .13504        .40010E-03    .49601E-03
   4  Prefactor     .91178        .48095E-01    .15821E-03    .12452E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.36445
  Index      = 1.43191
  Normalizat = 1.17239
  Prefactor  = 0.911775
 **********
 **   18 **HESSE 
 **********

 FCN=   30330.82     FROM HESSE     STATUS=OK            23 CALLS      274 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3644        5.4894        .69391E-06   -1.5662    
   2  Index         1.4319        .75244        .74956E-03   -.79465    
   3  Normalizat    1.1724        .13511        .16004E-04   -.87460    
   4  Prefactor     .91178        .48122E-01    .31642E-04   -.95731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21295e-09
Minuit parameter uncertainties:
  1  5.4894
  2  0.758347
  3  0.135147
  4  0.0481246
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) = 30330.8189972
delta logL = 0.077156190524

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  5.364e+00  5.489e+00  0.000e+00  1.000e+06 ( 1.000e-14)
364        Index:  1.432e+00  7.583e-01  0.000e+00  1.000e+01 (-1.000e+00)
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  9.118e-01  4.812e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.172e+00  1.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.97
Ra Dec: 342.514 38.425
Photon Index (Free Index): 1.43 +/- 0.76
Photon Flux (Free Index): 3.24e-09 +/- 5.60e-09
Energy Flux (Free Index): 1.29e-05 +/- 1.97e-05

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/19667417/cmap_HighResolution_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.69e-09', energy_flux2='1.29e-05', photon_flux_error='5.67e-09', dlogl='7.72e-02', energy_flux='8.39e-06', photon_flux2='3.24e-09', job_status='DONE', time_completed='2023-07-18 02:27:41.559773', photon_index_error2='0.76', photon_index2='1.43', ts='4.82', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='1.17', time_epoch_completed='1689672461.56', return_code='0', job_id='19667417', GAL2='0.91', EG2='1.17', return_code2='0', energy_flux_error='8.35e-06', photon_flux_error2='5.60e-09', ts2='4.97', photon_index='1.73' WHERE bin_id='780' AND source_name='4FGL J2250.0+3825' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:27:42 PDT 2023

668073/Model_4FGL_J2250.0+3825_weekly_bin780.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/19668073/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits.....................!
real 114.45
user 111.59
sys 1.43

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19668073/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits', '/lscratch/kocevski/19668073/ft2_4FGL_J2250.0+3825_weekly_bin780.fits', expMap='/lscratch/kocevski/19668073/expmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits', expCube='/lscratch/kocevski/19668073/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19668073/Model_4FGL_J2250.0+3825_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2250.0+3825'

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  3.066e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
364        Index:  1.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19668073/ft1_filtered_4FGL_J2250.0+3825_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19668073/ft2_4FGL_J2250.0+3825_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19668073/expmap_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19668073/ltcube_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19668073/Model_4FGL_J2250.0+3825_weekly_bin780.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) = 30331.676662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.259       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21394E-03   1.0000          .0000       .10000E+07
     3 'norm      '    1.7519       1.0000          .0000       .10000E+07
     4 'norm      '    .53518E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.6898       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.7134       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11136E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .19868       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.0056       1.0000          .0000       .10000E+07
    10 'Prefactor '    .25658E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .57798E-06   1.0000          .0000       .10000E+07
    12 'norm      '    3.5137       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.9440       1.0000          .0000       .10000E+07
    14 'norm      '    .44569E-04   1.0000          .0000       .10000E+07
    15 'Normalizat'    1.1710       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .91163       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   30330.90     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      901 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.260        .78634       -.97461E-08   -.29753E-01
   2  Prefactor     .35827E-06    2.4883        .15820E-05** at limit **
   3  norm          1.7509        .66231        .94583E-07   -.14046E-02
   4  norm          .64115E-07    2.9630        .13624E-05** at limit **
   5  Prefactor     4.6895        4.6709       -.30324E-06   -.27269E-02
   6  Prefactor     1.7103        3.1640       -.13414E-07   -.13658E-02
   7  Prefactor     .63616E-07    3.0371       -.82138E-06** at limit **
   8  norm          .19872        .50221       -.75784E-07** at limit **
   9  Prefactor     3.0074        4.9645       -.12575E-05   -.34238E-02
  10  Prefactor     .32196E-07    5.3357        .13113E-05** at limit **
  11  norm          .13323E-07    3.3456        .32871E-06** at limit **
  12  norm          3.5089        3.1195        .44965E-06   -.10840E-02
  13  Prefactor     2.9153        3.6997        .10443E-05    .45750E-01
  14  norm          .10821E-05    11.044       -.30846E-05** at limit **
  15  Normalizat    1.1709        .13873       -.10171E-06   -.78268E-04
  16  Prefactor     .91164        .48553E-01    .73281E-06   -.19291E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2597
  Prefactor  = 3.58269e-07
  norm       = 1.75088
  norm       = 6.41154e-08
  Prefactor  = 4.6895
  Prefactor  = 1.7103
  Prefactor  = 6.36158e-08
  norm       = 0.198724
  Prefactor  = 3.00742
  Prefactor  = 3.21965e-08
  norm       = 1.33227e-08
  norm       = 3.50894
  Prefactor  = 2.91527
  norm       = 1.08213e-06
  Normalizat = 1.17093
  Prefactor  = 0.911645
 **********
 **   18 **HESSE 
 **********

 FCN=   30330.90     FROM HESSE     STATUS=OK           247 CALLS     1148 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.260        .78806        .31258E-03   -1.5644    
   2  Prefactor     .35827E-06    4.5568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7509        .66601        .79176E-03   -1.5681    
   4  norm          .64115E-07    .50176        .62463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6895        4.6696        .46445E-03   -1.5665    
   6  Prefactor     1.7103        3.2768        .80261E-03   -1.5682    
   7  Prefactor     .63616E-07    4.1033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .19872        .50096        .11799E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0074        5.0226        .58521E-03   -1.5673    
  10  Prefactor     .32196E-07    5.5276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .13323E-07    3.4755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5089        3.1217        .53908E-03   -1.5670    
  13  Prefactor     2.9153        8.4547        .59167E-03   -1.5674    
  14  norm          .10821E-05    .48751        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1709        .12553        .90384E-01   -.87506    
  16  Prefactor     .91164        .42702E-01    .45153E-01   -.95735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01087e-06
Minuit parameter uncertainties:
  1  0.78806
  2  0.00255551
  3  0.66601
  4  0.00035872
  5  4.66955
  6  3.27679
  7  0.00102179
  8  0.500961
  9  5.0226
  10  0.000843983
  11  0.000430443
  12  3.12173
  13  8.45472
  14  0.00145263
  15  0.125562
  16  0.0427037
Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  4.689e+00  4.670e+00  0.000e+00  1.000e+06 ( 1.000e-14)
364        Index:  1.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  9.116e-01  4.270e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.171e+00  1.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.82
Ra Dec: 342.514 38.425
Photon Index (Fixed Index): 1.73 +/- 0.00
Photon Flux (Fixed Index): 5.69e-09 +/- 5.67e-09
Energy Flux (Fixed Index): 8.39e-06 +/- 8.35e-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) = 30330.8276061
delta logL = 0.068547333507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 30330.8189972
delta logL = 0.0771561636211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3636       1.0000          .0000       .10000E+07
     2 'Index     '    1.4320       1.0000          .0000       10.000    
     3 'Normalizat'    1.1724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91177       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+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=   30330.82     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      251 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3644        5.5280        .17348E-04   -.12470E-01
   2  Index         1.4319        .75679        .18739E-01   -.30207E-03
   3  Normalizat    1.1724        .13504        .40010E-03    .49601E-03
   4  Prefactor     .91178        .48095E-01    .15821E-03    .12452E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.36445
  Index      = 1.43191
  Normalizat = 1.17239
  Prefactor  = 0.911775
 **********
 **   18 **HESSE 
 **********

 FCN=   30330.82     FROM HESSE     STATUS=OK            23 CALLS      274 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3644        5.4894        .69391E-06   -1.5662    
   2  Index         1.4319        .75244        .74956E-03   -.79465    
   3  Normalizat    1.1724        .13511        .16004E-04   -.87460    
   4  Prefactor     .91178        .48122E-01    .31642E-04   -.95731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21295e-09
Minuit parameter uncertainties:
  1  5.4894
  2  0.758347
  3  0.135147
  4  0.0481246
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) = 30330.8189972
delta logL = 0.077156190524

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  5.364e+00  5.489e+00  0.000e+00  1.000e+06 ( 1.000e-14)
364        Index:  1.432e+00  7.583e-01  0.000e+00  1.000e+01 (-1.000e+00)
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  9.118e-01  4.812e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.172e+00  1.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.97
Ra Dec: 342.514 38.425
Photon Index (Free Index): 1.43 +/- 0.76
Photon Flux (Free Index): 3.24e-09 +/- 5.60e-09
Energy Flux (Free Index): 1.29e-05 +/- 1.97e-05

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/19668073/cmap_HighResolution_710726401_711331201_4FGL_J2250.0+3825_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.69e-09', energy_flux2='1.29e-05', photon_flux_error='5.67e-09', dlogl='7.72e-02', energy_flux='8.39e-06', photon_flux2='3.24e-09', job_status='DONE', time_completed='2023-07-18 02:31:42.141322', photon_index_error2='0.76', photon_index2='1.43', ts='4.82', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='1.17', time_epoch_completed='1689672702.14', return_code='0', job_id='19668073', GAL2='0.91', EG2='1.17', return_code2='0', energy_flux_error='8.35e-06', photon_flux_error2='5.60e-09', ts2='4.97', photon_index='1.73' WHERE bin_id='780' AND source_name='4FGL J2250.0+3825' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:31:42 PDT 2023

