/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
/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).


Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)
/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).


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

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


Performing analysis on: 4FGL_J0332.1-1123_daily_bin1801
RA = 53.0335, Dec = -11.3949
tmin = 706147201, tmax = 706406401
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='17768007', job_status='RUN', time_executed='2023-05-22 00:06:20.678375', time_epoch_executed='1684739180.68' WHERE source_name='4FGL J0332.1-1123' and cadence='daily' and bin_id='1801'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17768007

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17768007/ft1_4FGL_J0332.1-1123_daily_bin1801.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17768007/ft2_4FGL_J0332.1-1123_daily_bin1801.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17768007/ft1_4FGL_J0332.1-1123_daily_bin1801.fits outfile=/lscratch/kocevski/17768007/ft1_filteredMKT_4FGL_J0332.1-1123_daily_bin1801.fits ra=53.0335 dec=-11.3949 rad=12.0 tmin=706147201.0 tmax=706406401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.26
user 1.92
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17768007/ft2_4FGL_J0332.1-1123_daily_bin1801.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17768007/ft2_4FGL_J0332.1-1123_daily_bin1801.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/17768007/ft1_filteredMKT_4FGL_J0332.1-1123_daily_bin1801.fits evtable="EVENTS" outfile="/lscratch/kocevski/17768007/ft1_filtered_4FGL_J0332.1-1123_daily_bin1801.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 558

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17768007/ft1_filtered_4FGL_J0332.1-1123_daily_bin1801.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17768007/ft2_4FGL_J0332.1-1123_daily_bin1801.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17768007/ltcube_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.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/17768007/ft2_4FGL_J0332.1-1123_daily_bin1801.fits
.....................!
real 12.07
user 11.63
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17768007/ft1_filtered_4FGL_J0332.1-1123_daily_bin1801.fits evtable="EVENTS" scfile=/lscratch/kocevski/17768007/ft2_4FGL_J0332.1-1123_daily_bin1801.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17768007/ltcube_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.fits outfile=/lscratch/kocevski/17768007/expmap_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.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/17768007/ltcube_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.fits
.....................!
real 65.26
user 61.29
sys 3.54

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

Setting source of interest to:
4FGL J0332.1-1123 @ 53.0335 -11.3949

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17768007/ft1_filtered_4FGL_J0332.1-1123_daily_bin1801.fits scfile=/lscratch/kocevski/17768007/ft2_4FGL_J0332.1-1123_daily_bin1801.fits outfile=/lscratch/kocevski/17768007/cmap_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.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=53.0335 yref=-11.3949 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.39
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17768007/ft1_filtered_4FGL_J0332.1-1123_daily_bin1801.fits scfile=/lscratch/kocevski/17768007/ft2_4FGL_J0332.1-1123_daily_bin1801.fits outfile=/lscratch/kocevski/17768007/cmap_HighResolution_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.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=53.0335 yref=-11.3949 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.35
user 0.21
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17768007/ft1_filtered_4FGL_J0332.1-1123_daily_bin1801.fits evtable="EVENTS" scfile=/lscratch/kocevski/17768007/ft2_4FGL_J0332.1-1123_daily_bin1801.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17768007/Model_4FGL_J0332.1-1123_daily_bin1801.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding souDone.


Performing analysis on: 4FGL_J0332.1-1123_daily_bin1801
RA = 53.0335, Dec = -11.3949
tmin = 706147201, tmax = 706406401
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='17768008', job_status='RUN', time_executed='2023-05-22 00:06:20.785034', time_epoch_executed='1684739180.79' WHERE source_name='4FGL J0332.1-1123' and cadence='daily' and bin_id='1801'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17768008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17768008/ft1_4FGL_J0332.1-1123_daily_bin1801.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17768008/ft2_4FGL_J0332.1-1123_daily_bin1801.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17768008/ft1_4FGL_J0332.1-1123_daily_bin1801.fits outfile=/lscratch/kocevski/17768008/ft1_filteredMKT_4FGL_J0332.1-1123_daily_bin1801.fits ra=53.0335 dec=-11.3949 rad=12.0 tmin=706147201.0 tmax=706406401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.15
user 1.91
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17768008/ft2_4FGL_J0332.1-1123_daily_bin1801.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17768008/ft2_4FGL_J0332.1-1123_daily_bin1801.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/17768008/ft1_filteredMKT_4FGL_J0332.1-1123_daily_bin1801.fits evtable="EVENTS" outfile="/lscratch/kocevski/17768008/ft1_filtered_4FGL_J0332.1-1123_daily_bin1801.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 558

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17768008/ft1_filtered_4FGL_J0332.1-1123_daily_bin1801.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17768008/ft2_4FGL_J0332.1-1123_daily_bin1801.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17768008/ltcube_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.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/17768008/ft2_4FGL_J0332.1-1123_daily_bin1801.fits
.....................!
real 14.18
user 13.55
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17768008/ft1_filtered_4FGL_J0332.1-1123_daily_bin1801.fits evtable="EVENTS" scfile=/lscratch/kocevski/17768008/ft2_4FGL_J0332.1-1123_daily_bin1801.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17768008/ltcube_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.fits outfile=/lscratch/kocevski/17768008/expmap_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.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/17768008/ltcube_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.fits
.....................!
real 64.77
user 60.74
sys 3.59

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

Setting source of interest to:
4FGL J0332.1-1123 @ 53.0335 -11.3949

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17768008/ft1_filtered_4FGL_J0332.1-1123_daily_bin1801.fits scfile=/lscratch/kocevski/17768008/ft2_4FGL_J0332.1-1123_daily_bin1801.fits outfile=/lscratch/kocevski/17768008/cmap_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.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=53.0335 yref=-11.3949 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.66
user 0.22
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17768008/ft1_filtered_4FGL_J0332.1-1123_daily_bin1801.fits scfile=/lscratch/kocevski/17768008/ft2_4FGL_J0332.1-1123_daily_bin1801.fits outfile=/lscratch/kocevski/17768008/cmap_HighResolution_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.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=53.0335 yref=-11.3949 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.49
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17768008/ft1_filtered_4FGL_J0332.1-1123_daily_bin1801.fits evtable="EVENTS" scfile=/lscratch/kocevski/17768008/ft2_4FGL_J0332.1-1123_daily_bin1801.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17768008/Model_4FGL_J0332.1-1123_daily_bin1801.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17768007/ft1_filtered_4FGL_J0332.1-1123_daily_bin1801.fits.....................!
real 31.13
user 29.83
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17768007/ft1_filtered_4FGL_J0332.1-1123_daily_bin1801.fits', '/lscratch/kocevski/17768007/ft2_4FGL_J0332.1-1123_daily_bin1801.fits', expMap='/lscratch/kocevski/17768007/expmap_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.fits', expCube='/lscratch/kocevski/17768007/ltcube_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17768007/Model_4FGL_J0332.1-1123_daily_bin1801.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0332.1-1123'

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  1.293e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17768007/ft1_filtered_4FGL_J0332.1-1123_daily_bin1801.fits
Spacecraft file(s): /lscratch/kocevski/17768007/ft2_4FGL_J0332.1-1123_daily_bin1801.fits
Exposure map: /lscratch/kocevski/17768007/expmap_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.fits
Exposure cube: /lscratch/kocevski/17768007/ltcube_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17768007/Model_4FGL_J0332.1-1123_daily_bin1801.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) = 6146.17861234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0333       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.0190       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.9460       1.0000          .0000       .10000E+07
     4 'Prefactor '    .17843E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.0916       1.0000          .0000       .10000E+07
     6 'Prefactor '    .60793E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .52327E-04   1.0000          .0000       .10000E+07
     8 'norm      '    8.6214       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.0084       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11542E-04   1.0000          .0000       .10000E+07
    11 'norm      '    3.7595       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.3547       1.0000          .0000       .10000E+07
    13 'Prefactor '    .15409E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.2986       1.0000          .0000       .10000E+07
    15 'norm      '    .50635E-04   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.1730       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .73180       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6145.092     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1004 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0316        7.2903        .78218E-07   -.69474E-03
   2  Prefactor     7.0389        7.8676        .10140E-06    .64636E-03
   3  Prefactor     2.9566        3.9707       -.19567E-06   -.28751E-02
   4  Prefactor     .10547E-08    83.785        .38420E-05** at limit **
   5  Prefactor     4.0913        3.6317       -.20296E-06   -.55386E-02
   6  Prefactor     .30870E-06    615.13       -.16523E-04** at limit **
   7  Prefactor     .16653E-09    15.221        .41010E-06** at limit **
   8  norm          8.6261        2.1419        .44848E-07    .45686E-02
   9  Prefactor     1.0085        1.8179        .52221E-07   -.23751E-03
  10  Prefactor     .12212E-08    11.180        .41497E-06** at limit **
  11  norm          3.7580        1.4946       -.19553E-07   -.55988E-02
  12  Prefactor     3.3600        20.446        .10500E-05   -.14581E-02
  13  Prefactor      .0000        .95211        .38399E-06** at limit **
  14  Prefactor     1.3060        4.2455       -.15631E-06    .56248E-03
  15  norm          .55511E-10    17.756       -.69346E-06** at limit **
  16  Normalizat    1.1729        .20172       -.15851E-04   -.46567E-03
  17  Prefactor     .73169        .13779        .73234E-05   -.26477E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.03158
  Prefactor  = 7.03888
  Prefactor  = 2.95656
  Prefactor  = 1.05471e-09
  Prefactor  = 4.09132
  Prefactor  = 3.08698e-07
  Prefactor  = 1.66533e-10
  norm       = 8.62606
  Prefactor  = 1.00849
  Prefactor  = 1.22125e-09
  norm       = 3.75798
  Prefactor  = 3.35998
  Prefactor  = 0
  Prefactor  = 1.30602
  norm       = 5.55112e-11
  Normalizat = 1.17291
  Prefactor  = 0.731685
rce GAL_V02
Working on...
/lscratch/kocevski/17768008/ft1_filtered_4FGL_J0332.1-1123_daily_bin1801.fits.....................!
real 33.34
user 29.54
sys 3.53

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17768008/ft1_filtered_4FGL_J0332.1-1123_daily_bin1801.fits', '/lscratch/kocevski/17768008/ft2_4FGL_J0332.1-1123_daily_bin1801.fits', expMap='/lscratch/kocevski/17768008/expmap_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.fits', expCube='/lscratch/kocevski/17768008/ltcube_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17768008/Model_4FGL_J0332.1-1123_daily_bin1801.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0332.1-1123'

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  1.293e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17768008/ft1_filtered_4FGL_J0332.1-1123_daily_bin1801.fits
Spacecraft file(s): /lscratch/kocevski/17768008/ft2_4FGL_J0332.1-1123_daily_bin1801.fits
Exposure map: /lscratch/kocevski/17768008/expmap_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.fits
Exposure cube: /lscratch/kocevski/17768008/ltcube_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17768008/Model_4FGL_J0332.1-1123_daily_bin1801.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) = 6146.17861234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0333       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.0190       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.9460       1.0000          .0000       .10000E+07
     4 'Prefactor '    .17843E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.0916       1.0000          .0000       .10000E+07
     6 'Prefactor '    .60793E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .52327E-04   1.0000          .0000       .10000E+07
     8 'norm      '    8.6214       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.0084       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11542E-04   1.0000          .0000       .10000E+07
    11 'norm      '    3.7595       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.3547       1.0000          .0000       .10000E+07
    13 'Prefactor '    .15409E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.2986       1.0000          .0000       .10000E+07
    15 'norm      '    .50635E-04   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.1730       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .73180       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6145.092     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1004 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0316        7.2903        .78218E-07   -.69474E-03
   2  Prefactor     7.0389        7.8676        .10140E-06    .64636E-03
   3  Prefactor     2.9566        3.9707       -.19567E-06   -.28751E-02
   4  Prefactor     .10547E-08    83.785        .38420E-05** at limit **
   5  Prefactor     4.0913        3.6317       -.20296E-06   -.55386E-02
   6  Prefactor     .30870E-06    615.13       -.16523E-04** at limit **
   7  Prefactor     .16653E-09    15.221        .41010E-06** at limit **
   8  norm          8.6261        2.1419        .44848E-07    .45686E-02
   9  Prefactor     1.0085        1.8179        .52221E-07   -.23751E-03
  10  Prefactor     .12212E-08    11.180        .41497E-06** at limit **
  11  norm          3.7580        1.4946       -.19553E-07   -.55988E-02
  12  Prefactor     3.3600        20.446        .10500E-05   -.14581E-02
  13  Prefactor      .0000        .95211        .38399E-06** at limit **
  14  Prefactor     1.3060        4.2455       -.15631E-06    .56248E-03
  15  norm          .55511E-10    17.756       -.69346E-06** at limit **
  16  Normalizat    1.1729        .20172       -.15851E-04   -.46567E-03
  17  Prefactor     .73169        .13779        .73234E-05   -.26477E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.03158
  Prefactor  = 7.03888
  Prefactor  = 2.95656
  Prefactor  = 1.05471e-09
  Prefactor  = 4.09132
  Prefactor  = 3.08698e-07
  Prefactor  = 1.66533e-10
  norm       = 8.62606
  Prefactor  = 1.00849
  Prefactor  = 1.22125e-09
  norm       = 3.75798
  Prefactor  = 3.35998
  Prefactor  = 0
  Prefactor  = 1.30602
  norm       = 5.55112e-11
  Normalizat = 1.17291
  Prefactor  = 0.731685
 **********
 **   18 **HESSE 
 **********

 FCN=   6145.092     FROM HESSE     STATUS=OK           267 CALLS     1271 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0316        7.2885        .50186E-03   -1.5668    
   2  Prefactor     7.0389        7.8722        .37842E-03   -1.5655    
   3  Prefactor     2.9566        3.9940        .59147E-03   -1.5674    
   4  Prefactor     .10547E-08    84.317        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.0913        3.6722        .49816E-03   -1.5668    
   6  Prefactor     .30870E-06    18.877        .69957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .16653E-09    15.210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.6261        2.1438        .34115E-03   -1.5649    
   9  Prefactor     1.0085        1.8312        .44060E-03   -1.5688    
  10  Prefactor     .12212E-08    11.226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.7580        1.4970        .52045E-03   -1.5669    
  12  Prefactor     3.3600        20.606        .55229E-03   -1.5671    
  13  Prefactor      .0000        .95420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3060        4.3017        .96968E-03   -1.5685    
  15  norm          .55511E-10    17.775        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1729        .17767        .55970E-01   -.87444    
  17  Prefactor     .73169        .12034        .42823E-01   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14949e-07
Minuit parameter uncertainties:
  1  7.28855
  2  7.87225
  3  3.99403
  4  0.000598902
  5  3.6722
  6  0.00482806
  7  9.90608e-05
  8  2.1438
  9  1.83119
  10  0.000236075
  11  1.49697
  12  16.6418
  13  1.01328e-05
  14  4.30169
  15  5.31989e-05
  16  0.177756
  17  0.120387
 **********
 **   18 **HESSE 
 **********

 FCN=   6145.092     FROM HESSE     STATUS=OK           267 CALLS     1271 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0316        7.2885        .50186E-03   -1.5668    
   2  Prefactor     7.0389        7.8722        .37842E-03   -1.5655    
   3  Prefactor     2.9566        3.9940        .59147E-03   -1.5674    
   4  Prefactor     .10547E-08    84.317        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.0913        3.6722        .49816E-03   -1.5668    
   6  Prefactor     .30870E-06    18.877        .69957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .16653E-09    15.210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.6261        2.1438        .34115E-03   -1.5649    
   9  Prefactor     1.0085        1.8312        .44060E-03   -1.5688    
  10  Prefactor     .12212E-08    11.226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.7580        1.4970        .52045E-03   -1.5669    
  12  Prefactor     3.3600        20.606        .55229E-03   -1.5671    
  13  Prefactor      .0000        .95420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3060        4.3017        .96968E-03   -1.5685    
  15  norm          .55511E-10    17.775        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1729        .17767        .55970E-01   -.87444    
  17  Prefactor     .73169        .12034        .42823E-01   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14949e-07
Minuit parameter uncertainties:
  1  7.28855
  2  7.87225
  3  3.99403
  4  0.000598902
  5  3.6722
  6  0.00482806
  7  9.90608e-05
  8  2.1438
  9  1.83119
  10  0.000236075
  11  1.49697
  12  16.6418
  13  1.01328e-05
  14  4.30169
  15  5.31989e-05
  16  0.177756
  17  0.120387
Done.

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

Extracting fit parameters...

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  1.665e-10  9.906e-05  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  7.317e-01  1.204e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.173e+00  1.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 53.033 -11.395
Photon Flux Upper Limit: 8.52128909068e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00658008830504 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17768007/likelihoodResults_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6145.12544679
delta logL = -0.0336675840481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6145.04543019
delta logL = 0.0463490195589

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75924E-01   1.0000          .0000       .10000E+07
     2 'Index     '    4.3365       1.0000          .0000       10.000    
     3 'Normalizat'    1.1564       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73788       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6145.045     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      249 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74319E-01    1.7339        .14627E-02** at limit **
   2  Index         4.3446        2.2171        .20326       -.20026E-05
   3  Normalizat    1.1562        .17491E-01    .56322E-01   -.16199E-03
   4  Prefactor     .73800        .12345E-01    .42903E-01   -.11748E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0743187
  Index      = 4.34458
  Normalizat = 1.15621
  Prefactor  = 0.737997
 **********
 **   18 **HESSE 
 **********

 FCN=   6145.045     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      282 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74319E-01    38.174        .54137E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.3446        7.1167        .95328E-02   -.13146    
   3  Normalizat    1.1562        .11590        .24906E-03   -.87967    
   4  Prefactor     .73800        .80093E-01    .21405E-03   -1.0206    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.51559e-10
Minuit parameter uncertainties:
  1  3.36875
  2  18.8738
  3  0.115923
  4  0.0801053
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6145.04542733
delta logL = 0.0463518714323

Extracting fit parameters...

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  7.432e-02  3.369e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  4.345e+00  1.887e+01  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  7.380e-01  8.011e-02  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.156e+00  1.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 53.033 -11.395

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/17768007/cmap_HighResolution_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-03', job_status='DONE', photon_flux_upper_limit='8.52e-08', time_completed='2023-05-22 00:10:35.977516', job_id='17768007', GAL2='0.74', fit_tolerance='1e-08', EG2='1.16', EG='1.17', time_epoch_completed='1684739435.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='4.64e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1801' AND source_name='4FGL J0332.1-1123' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon May 22 00:10:36 PDT 2023

Done.

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

Extracting fit parameters...

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  1.665e-10  9.906e-05  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  7.317e-01  1.204e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.173e+00  1.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 53.033 -11.395
Photon Flux Upper Limit: 8.52128909068e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00658008830504 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17768008/likelihoodResults_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6145.12544679
delta logL = -0.0336675840481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6145.04543019
delta logL = 0.0463490195589

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75924E-01   1.0000          .0000       .10000E+07
     2 'Index     '    4.3365       1.0000          .0000       10.000    
     3 'Normalizat'    1.1564       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73788       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6145.045     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      249 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74319E-01    1.7339        .14627E-02** at limit **
   2  Index         4.3446        2.2171        .20326       -.20026E-05
   3  Normalizat    1.1562        .17491E-01    .56322E-01   -.16199E-03
   4  Prefactor     .73800        .12345E-01    .42903E-01   -.11748E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0743187
  Index      = 4.34458
  Normalizat = 1.15621
  Prefactor  = 0.737997
 **********
 **   18 **HESSE 
 **********

 FCN=   6145.045     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      282 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74319E-01    38.174        .54137E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.3446        7.1167        .95328E-02   -.13146    
   3  Normalizat    1.1562        .11590        .24906E-03   -.87967    
   4  Prefactor     .73800        .80093E-01    .21405E-03   -1.0206    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.51559e-10
Minuit parameter uncertainties:
  1  3.36875
  2  18.8738
  3  0.115923
  4  0.0801053
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6145.04542733
delta logL = 0.0463518714323

Extracting fit parameters...

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  7.432e-02  3.369e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  4.345e+00  1.887e+01  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  7.380e-01  8.011e-02  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.156e+00  1.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 53.033 -11.395

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/17768008/cmap_HighResolution_706147201_706406401_4FGL_J0332.1-1123_daily_bin1801.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-03', job_status='DONE', photon_flux_upper_limit='8.52e-08', time_completed='2023-05-22 00:10:41.700782', job_id='17768008', GAL2='0.74', fit_tolerance='1e-08', EG2='1.16', EG='1.17', time_epoch_completed='1684739441.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='4.64e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1801' AND source_name='4FGL J0332.1-1123' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon May 22 00:10:41 PDT 2023

