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


Performing analysis on: 4FGL_J1047.7+7238_weekly_bin780
RA = 161.939, Dec = 72.642
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='19655608', job_status='RUN', time_executed='2023-07-18 00:59:03.502896', time_epoch_executed='1689667143.5' WHERE source_name='4FGL J1047.7+7238' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19655608

Creating custom pfile directory:
/lscratch/kocevski/19655608/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/19655608/ft1_4FGL_J1047.7+7238_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/19655608/ft2_4FGL_J1047.7+7238_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19655608/ft1_4FGL_J1047.7+7238_weekly_bin780.fits outfile=/lscratch/kocevski/19655608/ft1_filteredMKT_4FGL_J1047.7+7238_weekly_bin780.fits ra=161.939 dec=72.642 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.79
user 4.06
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19655608/ft2_4FGL_J1047.7+7238_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19655608/ft2_4FGL_J1047.7+7238_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/19655608/ft1_filteredMKT_4FGL_J1047.7+7238_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19655608/ft1_filtered_4FGL_J1047.7+7238_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 0.79
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 1892

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19655608/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19655608/ft2_4FGL_J1047.7+7238_weekly_bin780.fits sctable="SC_DATA" ou/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

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

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

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

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

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)

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

Done.

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

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.638e+00  2.705e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.206e-01  8.645e-02  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.002e+00  9.717e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.59
Ra Dec: 161.939 72.642
Photon Flux Upper Limit: 5.13965003084e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00392574490433 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19654026/likelihoodResults_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20023.5339129
delta logL = 1.77679405528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 20022.4161355
delta logL = 2.89457153864

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12587E-05   1.0000          .0000       .10000E+07
     2 'Index     '    7.9191       1.0000          .0000       10.000    
     3 'Normalizat'    .93374       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96352       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20025.61     FROM MIGRAD    STATUS=CONVERGED    125 CALLS      584 TOTAL
                     EDM=   .96E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .57632        .46476E-03** at limit **
   2  Index         .84013        2.3343       -.25671E-04     .0000    
   3  Normalizat    1.0057        .54540E-01   -.91956E-11    .14448E-02
   4  Prefactor     .92391        .50046E-01    .57104E-11   -.94195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.840131
  Normalizat = 1.00569
  Prefactor  = 0.923911
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20025.61     FROM HESSE     STATUS=FAILED         5 CALLS      589 TOTAL
                     EDM=   .96E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .57632        .46476E-03   -1949.4    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.4023        5.6499       -.25671E-04   -.72606E+07
   3  Normalizat    1.0057        .54540E-01   -.91956E-11   -6987.8    
   4  Prefactor     .92391        .50046E-01    .57104E-11   -8616.4    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.59848e-15
Minuit parameter uncertainties:
  1  4.88264e-07
  2  2.77407
  3  0.0545429
  4  0.050048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 20025.6108781
delta logL = -0.300171086878

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  4.883e-07  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  8.401e-01  2.774e+00  0.000e+00  1.000e+01 (-1.000e+00)
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.239e-01  5.005e-02  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.006e+00  5.454e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
Ra Dec: 161.939 72.642

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/19654026/cmap_HighResolution_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2023-07-18 01:07:35.058782', job_id='19654026', GAL2='0.92', fit_tolerance='1e-08', EG2='1.01', EG='1.00', time_epoch_completed='1689667655.06', return_code2='101', ts='0.59', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-3.00e-01', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='780' AND source_name='4FGL J1047.7+7238' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:07:35 PDT 2023

tfile=/lscratch/kocevski/19655577/ltcube_710726401_711331201_4FGL_J1047.7+7238_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/19655577/ft2_4FGL_J1047.7+7238_weekly_bin780.fits
.....................!
real 15.84
user 15.10
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19655577/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19655577/ft2_4FGL_J1047.7+7238_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19655577/ltcube_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits outfile=/lscratch/kocevski/19655577/expmap_710726401_711331201_4FGL_J1047.7+7238_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/19655577/ltcube_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits
.....................!
real 59.66
user 55.45
sys 3.56

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 219 point sources and 0 extended sources

Setting source of interest to:
4FGL J1047.7+7238 @ 161.939 72.642

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19655577/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits scfile=/lscratch/kocevski/19655577/ft2_4FGL_J1047.7+7238_weekly_bin780.fits outfile=/lscratch/kocevski/19655577/cmap_710726401_711331201_4FGL_J1047.7+7238_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=161.939 yref=72.642 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.86
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19655577/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits scfile=/lscratch/kocevski/19655577/ft2_4FGL_J1047.7+7238_weekly_bin780.fits outfile=/lscratch/kocevski/19655577/cmap_HighResolution_710726401_711331201_4FGL_J1047.7+7238_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=161.939 yref=72.642 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.02
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19655577/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19655577/ft2_4FGL_J1047.7+7238_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19655577/Model_4FGL_J1047.7+7238_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 EG_v02
adding source GAL_tfile=/lscratch/kocevski/19655608/ltcube_710726401_711331201_4FGL_J1047.7+7238_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/19655608/ft2_4FGL_J1047.7+7238_weekly_bin780.fits
.....................!
real 18.36
user 17.61
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19655608/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19655608/ft2_4FGL_J1047.7+7238_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19655608/ltcube_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits outfile=/lscratch/kocevski/19655608/expmap_710726401_711331201_4FGL_J1047.7+7238_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/19655608/ltcube_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits
.....................!
real 70.54
user 65.59
sys 4.09

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 219 point sources and 0 extended sources

Setting source of interest to:
4FGL J1047.7+7238 @ 161.939 72.642

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19655608/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits scfile=/lscratch/kocevski/19655608/ft2_4FGL_J1047.7+7238_weekly_bin780.fits outfile=/lscratch/kocevski/19655608/cmap_710726401_711331201_4FGL_J1047.7+7238_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=161.939 yref=72.642 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.02
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19655608/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits scfile=/lscratch/kocevski/19655608/ft2_4FGL_J1047.7+7238_weekly_bin780.fits outfile=/lscratch/kocevski/19655608/cmap_HighResolution_710726401_711331201_4FGL_J1047.7+7238_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=161.939 yref=72.642 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.87
user 0.25
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19655608/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19655608/ft2_4FGL_J1047.7+7238_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19655608/Model_4FGL_J1047.7+7238_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 EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/19655577/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits.....................!
real 71.72
user 70.03
sys 0.85

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19655577/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits', '/lscratch/kocevski/19655577/ft2_4FGL_J1047.7+7238_weekly_bin780.fits', expMap='/lscratch/kocevski/19655577/expmap_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits', expCube='/lscratch/kocevski/19655577/ltcube_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19655577/Model_4FGL_J1047.7+7238_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1047.7+7238'

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.026e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19655577/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19655577/ft2_4FGL_J1047.7+7238_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19655577/expmap_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19655577/ltcube_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19655577/Model_4FGL_J1047.7+7238_weekly_bin780.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 20025.3554358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24453E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.2640       1.0000          .0000       .10000E+07
     3 'norm      '    1.7499       1.0000          .0000       .10000E+07
     4 'Prefactor '    9.6278       1.0000          .0000       .10000E+07
     5 'Prefactor '    11.238       1.0000          .0000       .10000E+07
     6 'norm      '    1.6112       1.0000          .0000       .10000E+07
     7 'norm      '    5.6671       1.0000          .0000       .10000E+07
     8 'Prefactor '    18.155       1.0000          .0000       .10000E+07
     9 'Prefactor '    .33036E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.7389       1.0000          .0000       .10000E+07
    11 'norm      '    11.097       1.0000          .0000       .10000E+07
    12 'norm      '    .96550       1.0000          .0000       .10000E+07
    13 'Prefactor '    .49589E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.6406       1.0000          .0000       .10000E+07
    15 'norm      '    1.3482       1.0000          .0000       .10000E+07
    16 'norm      '    1.9291       1.0000          .0000       .10000E+07
    17 'Prefactor '    .36593E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.4947       1.0000          .0000       .10000E+07
    19 'Prefactor '    .63703       1.0000          .0000       .10000E+07
    20 'Prefactor '    19.567       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.4114       1.0000          .0000       .10000E+07
    22 'Prefactor '    .17410E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .18485E-07   1.0000          .0000       .10000E+07
    24 'norm      '    3.9811       1.0000          .0000       .10000E+07
    25 'Prefactor '    .33295E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0015       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92072       1.0000          .0number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1047.7+7238_weekly_bin780
RA = 161.939, Dec = 72.642
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='19656601', job_status='RUN', time_executed='2023-07-18 01:05:59.906006', time_epoch_executed='1689667559.91' WHERE source_name='4FGL J1047.7+7238' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19656601

Creating custom pfile directory:
/lscratch/kocevski/19656601/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/19656601/ft1_4FGL_J1047.7+7238_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/19656601/ft2_4FGL_J1047.7+7238_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19656601/ft1_4FGL_J1047.7+7238_weekly_bin780.fits outfile=/lscratch/kocevski/19656601/ft1_filteredMKT_4FGL_J1047.7+7238_weekly_bin780.fits ra=161.939 dec=72.642 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.35
user 3.66
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19656601/ft2_4FGL_J1047.7+7238_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19656601/ft2_4FGL_J1047.7+7238_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/19656601/ft1_filteredMKT_4FGL_J1047.7+7238_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19656601/ft1_filtered_4FGL_J1047.7+7238_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 0.81
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 1892

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19656601/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19656601/ft2_4FGL_J1047.7+7238_weekly_bin780.fits sctable="SC_DATA" o000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20025.31     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     2419 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.9033       -.65538E-09** at limit **
   2  Prefactor     3.2646        1.9163        .10130E-07   -.65271E-04
   3  norm          1.7605        1.2792        .38774E-08    .13011E-04
   4  Prefactor     9.3752        11.884       -.44680E-07    .24055E-02
   5  Prefactor     11.257        6.4339        .13457E-08   -.38644E-03
   6  norm          1.6109        .44501        .49219E-08   -.11334E-03
   7  norm          5.6630        5.6300       -.21002E-08   -.31266E-04
   8  Prefactor     17.844        12.948       -.87776E-07   -.17382E-02
   9  Prefactor     .53013E-07    8.0721        .10795E-06** at limit **
  10  Prefactor     4.6699        47.591        .44594E-06    .15808E-02
  11  norm          11.093        2.5340       -.23677E-08   -.14700E-03
  12  norm          .96554        2.4386       -.23230E-08    .81873E-03
  13  Prefactor     .66613E-09    28.914       -.73808E-07** at limit **
  14  Prefactor     1.6380        2.6595       -.15385E-07    .39861E-04
  15  norm          1.3483        .46198        .14329E-08    .26093E-03
  16  norm          1.9290        1.3739       -.72336E-08    .47283E-04
  17  Prefactor     .42077E-07    7.6757       -.45615E-07** at limit **
  18  Prefactor     4.4783        8.0591       -.25662E-07   -.11597E-02
  19  Prefactor     .64040        1.5035        .24049E-07   -.84924E-04
  20  Prefactor     19.509        7.3502        .43556E-08    .96519E-03
  21  Prefactor     5.3975        7.9658        .96305E-07   -.28114E-01
  22  Prefactor     .55511E-10    4.0979        .78364E-07** at limit **
  23  norm           .0000        .84555       -.16968E-07** at limit **
  24  norm          3.9867        2.0104        .61178E-08   -.43995E-05
  25  Prefactor     .28311E-08    100.55       -.47625E-06** at limit **
  26  Normalizat    1.0018        .10963       -.30876E-07    .11543E-04
  27  Prefactor     .92058        .97844E-01   -.51578E-06    .10449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.26458
  norm       = 1.7605
  Prefactor  = 9.37522
  Prefactor  = 11.2571
  norm       = 1.61092
  norm       = 5.66305
  Prefactor  = 17.8443
  Prefactor  = 5.30131e-08
  Prefactor  = 4.66989
  norm       = 11.0935
  norm       = 0.965539
  Prefactor  = 6.66134e-10
  Prefactor  = 1.63804
  norm       = 1.34831
  norm       = 1.92903
  Prefactor  = 4.20775e-08
  Prefactor  = 4.47831
  Prefactor  = 0.640399
  Prefactor  = 19.5093
  Prefactor  = 5.39751
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 3.98672
  Prefactor  = 2.83107e-09
  Normalizat = 1.00182
  Prefactor  = 0.920579
number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1047.7+7238_weekly_bin780
RA = 161.939, Dec = 72.642
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='19656613', job_status='RUN', time_executed='2023-07-18 01:06:05.809158', time_epoch_executed='1689667565.81' WHERE source_name='4FGL J1047.7+7238' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19656613

Creating custom pfile directory:
/lscratch/kocevski/19656613/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/19656613/ft1_4FGL_J1047.7+7238_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/19656613/ft2_4FGL_J1047.7+7238_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19656613/ft1_4FGL_J1047.7+7238_weekly_bin780.fits outfile=/lscratch/kocevski/19656613/ft1_filteredMKT_4FGL_J1047.7+7238_weekly_bin780.fits ra=161.939 dec=72.642 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.30
user 3.54
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19656613/ft2_4FGL_J1047.7+7238_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19656613/ft2_4FGL_J1047.7+7238_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/19656613/ft1_filteredMKT_4FGL_J1047.7+7238_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19656613/ft1_filtered_4FGL_J1047.7+7238_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.55
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 1892

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19656613/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19656613/ft2_4FGL_J1047.7+7238_weekly_bin780.fits sctable="SC_DATA" oV02
Working on...
/lscratch/kocevski/19655608/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits.....................!
real 84.77
user 82.90
sys 0.83

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19655608/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits', '/lscratch/kocevski/19655608/ft2_4FGL_J1047.7+7238_weekly_bin780.fits', expMap='/lscratch/kocevski/19655608/expmap_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits', expCube='/lscratch/kocevski/19655608/ltcube_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19655608/Model_4FGL_J1047.7+7238_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1047.7+7238'

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.026e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19655608/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19655608/ft2_4FGL_J1047.7+7238_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19655608/expmap_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19655608/ltcube_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19655608/Model_4FGL_J1047.7+7238_weekly_bin780.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 20025.3554358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24453E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.2640       1.0000          .0000       .10000E+07
     3 'norm      '    1.7499       1.0000          .0000       .10000E+07
     4 'Prefactor '    9.6278       1.0000          .0000       .10000E+07
     5 'Prefactor '    11.238       1.0000          .0000       .10000E+07
     6 'norm      '    1.6112       1.0000          .0000       .10000E+07
     7 'norm      '    5.6671       1.0000          .0000       .10000E+07
     8 'Prefactor '    18.155       1.0000          .0000       .10000E+07
     9 'Prefactor '    .33036E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.7389       1.0000          .0000       .10000E+07
    11 'norm      '    11.097       1.0000          .0000       .10000E+07
    12 'norm      '    .96550       1.0000          .0000       .10000E+07
    13 'Prefactor '    .49589E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.6406       1.0000          .0000       .10000E+07
    15 'norm      '    1.3482       1.0000          .0000       .10000E+07
    16 'norm      '    1.9291       1.0000          .0000       .10000E+07
    17 'Prefactor '    .36593E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.4947       1.0000          .0000       .10000E+07
    19 'Prefactor '    .63703       1.0000          .0000       .10000E+07
    20 'Prefactor '    19.567       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.4114       1.0000          .0000       .10000E+07
    22 'Prefactor '    .17410E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .18485E-07   1.0000          .0000       .10000E+07
    24 'norm      '    3.9811       1.0000          .0000       .10000E+07
    25 'Prefactor '    .33295E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0015       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92072       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20025.31     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     2419 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.9033       -.65538E-09** at limit **
   2  Prefactor     3.2646        1.9163        .10130E-07   -.65271E-04
   3  norm          1.7605        1.2792        .38774E-08    .13011E-04
   4  Prefactor     9.3752        11.884       -.44680E-07    .24055E-02
   5  Prefactor     11.257        6.4339        .13457E-08   -.38644E-03
   6  norm          1.6109        .44501        .49219E-08   -.11334E-03
   7  norm          5.6630        5.6300       -.21002E-08   -.31266E-04
   8  Prefactor     17.844        12.948       -.87776E-07   -.17382E-02
   9  Prefactor     .53013E-07    8.0721        .10795E-06** at limit **
  10  Prefactor     4.6699        47.591        .44594E-06    .15808E-02
  11  norm          11.093        2.5340       -.23677E-08   -.14700E-03
  12  norm          .96554        2.4386       -.23230E-08    .81873E-03
  13  Prefactor     .66613E-09    28.914       -.73808E-07** at limit **
  14  Prefactor     1.6380        2.6595       -.15385E-07    .39861E-04
  15  norm          1.3483        .46198        .14329E-08    .26093E-03
  16  norm          1.9290        1.3739       -.72336E-08    .47283E-04
  17  Prefactor     .42077E-07    7.6757       -.45615E-07** at limit **
  18  Prefactor     4.4783        8.0591       -.25662E-07   -.11597E-02
  19  Prefactor     .64040        1.5035        .24049E-07   -.84924E-04
  20  Prefactor     19.509        7.3502        .43556E-08    .96519E-03
  21  Prefactor     5.3975        7.9658        .96305E-07   -.28114E-01
  22  Prefactor     .55511E-10    4.0979        .78364E-07** at limit **
  23  norm           .0000        .84555       -.16968E-07** at limit **
  24  norm          3.9867        2.0104        .61178E-08   -.43995E-05
  25  Prefactor     .28311E-08    100.55       -.47625E-06** at limit **
  26  Normalizat    1.0018        .10963       -.30876E-07    .11543E-04
  27  Prefactor     .92058        .97844E-01   -.51578E-06    .10449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.26458
  norm       = 1.7605
  Prefactor  = 9.37522
  Prefactor  = 11.2571
  norm       = 1.61092
  norm       = 5.66305
  Prefactor  = 17.8443
  Prefactor  = 5.30131e-08
  Prefactor  = 4.66989
  norm       = 11.0935
  norm       = 0.965539
  Prefactor  = 6.66134e-10
  Prefactor  = 1.63804
  norm       = 1.34831
  norm       = 1.92903
  Prefactor  = 4.20775e-08
  Prefactor  = 4.47831
  Prefactor  = 0.640399
  Prefactor  = 19.5093
  Prefactor  = 5.39751
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 3.98672
  Prefactor  = 2.83107e-09
  Normalizat = 1.00182
  Prefactor  = 0.920579
 **********
 **   18 **HESSE 
 **********

 FCN=   20025.31     FROM HESSE     STATUS=OK           552 CALLS     2971 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.9094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2646        1.9153        .56029E-03   -1.5672    
   3  norm          1.7605        1.3023        .79231E-03   -1.5681    
   4  Prefactor     9.3752        11.996        .32272E-03   -1.5647    
   5  Prefactor     11.257        6.4420        .29860E-03   -1.5641    
   6  norm          1.6109        .44902        .83412E-03   -1.5683    
   7  norm          5.6630        5.6277        .42173E-03   -1.5660    
   8  Prefactor     17.844        14.425        .23479E-03   -1.5623    
   9  Prefactor     .53013E-07    9.0684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.6699        59.557        .52194E-03   -1.5665    
  11  norm          11.093        2.5304        .30050E-03   -1.5641    
  12  norm          .96554        2.4666        .42540E-03   -1.5688    
  13  Prefactor     .66613E-09    28.949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6380        2.7046        .82463E-03   -1.5682    
  15  norm          1.3483        .47055        .94229E-03   -1.5685    
  16  norm          1.9290        1.3979        .74757E-03   -1.5680    
  17  Prefactor     .42077E-07    8.5052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.4783        8.0737        .47467E-03   -1.5666    
  19  Prefactor     .64040        1.5296        .65974E-03   -1.5692    
  20  Prefactor     19.509        7.4260        .22614E-03   -1.5620    
  21  Prefactor     5.3975        16.376        .43174E-03   -1.5661    
  22  Prefactor     .55511E-10    4.1013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        .84346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.9867        2.0147        .50525E-03   -1.5668    
  25  Prefactor     .28311E-08    97.742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0018        .97157E-01    .46185E-01   -.92969    
  27  Prefactor     .92058        .86442E-01    .45268E-01   -.95426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33433e-08
Minuit parameter uncertainties:
  1  9.127e-06
  2  1.91533
  3  1.30226
  4  11.9963
  5  6.44205
  6  0.449024
  7  5.6277
  8  14.4251
  9  0.00138676
  10  33.3546
  11  2.53041
  12  2.46657
  13  0.000273011
  14  2.70464
  15  0.470555
  16  1.39788
  17  0.00119617
  18  8.07377
  19  1.52963
  20  7.42603
  21  16.3756
  22  2.14728e-05
  23  5.95537e-07
  24  2.01474
  25  0.00104736
  26  0.0971745
  27  0.0864547
 **********
 **   18 **HESSE 
 **********

 FCN=   20025.31     FROM HESSE     STATUS=OK           552 CALLS     2971 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.9094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2646        1.9153        .56029E-03   -1.5672    
   3  norm          1.7605        1.3023        .79231E-03   -1.5681    
   4  Prefactor     9.3752        11.996        .32272E-03   -1.5647    
   5  Prefactor     11.257        6.4420        .29860E-03   -1.5641    
   6  norm          1.6109        .44902        .83412E-03   -1.5683    
   7  norm          5.6630        5.6277        .42173E-03   -1.5660    
   8  Prefactor     17.844        14.425        .23479E-03   -1.5623    
   9  Prefactor     .53013E-07    9.0684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.6699        59.557        .52194E-03   -1.5665    
  11  norm          11.093        2.5304        .30050E-03   -1.5641    
  12  norm          .96554        2.4666        .42540E-03   -1.5688    
  13  Prefactor     .66613E-09    28.949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6380        2.7046        .82463E-03   -1.5682    
  15  norm          1.3483        .47055        .94229E-03   -1.5685    
  16  norm          1.9290        1.3979        .74757E-03   -1.5680    
  17  Prefactor     .42077E-07    8.5052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.4783        8.0737        .47467E-03   -1.5666    
  19  Prefactor     .64040        1.5296        .65974E-03   -1.5692    
  20  Prefactor     19.509        7.4260        .22614E-03   -1.5620    
  21  Prefactor     5.3975        16.376        .43174E-03   -1.5661    
  22  Prefactor     .55511E-10    4.1013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        .84346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.9867        2.0147        .50525E-03   -1.5668    
  25  Prefactor     .28311E-08    97.742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0018        .97157E-01    .46185E-01   -.92969    
  27  Prefactor     .92058        .86442E-01    .45268E-01   -.95426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33433e-08
Minuit parameter uncertainties:
  1  9.127e-06
  2  1.91533
  3  1.30226
  4  11.9963
  5  6.44205
  6  0.449024
  7  5.6277
  8  14.4251
  9  0.00138676
  10  33.3546
  11  2.53041
  12  2.46657
  13  0.000273011
  14  2.70464
  15  0.470555
  16  1.39788
  17  0.00119617
  18  8.07377
  19  1.52963
  20  7.42603
  21  16.3756
  22  2.14728e-05
  23  5.95537e-07
  24  2.01474
  25  0.00104736
  26  0.0971745
  27  0.0864547
utfile=/lscratch/kocevski/19656601/ltcube_710726401_711331201_4FGL_J1047.7+7238_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/19656601/ft2_4FGL_J1047.7+7238_weekly_bin780.fits
.....................!
real 16.22
user 15.53
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19656601/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19656601/ft2_4FGL_J1047.7+7238_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19656601/ltcube_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits outfile=/lscratch/kocevski/19656601/expmap_710726401_711331201_4FGL_J1047.7+7238_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/19656601/ltcube_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits
.....................!
real 62.67
user 58.23
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
Added 219 point sources and 0 extended sources

Setting source of interest to:
4FGL J1047.7+7238 @ 161.939 72.642

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19656601/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits scfile=/lscratch/kocevski/19656601/ft2_4FGL_J1047.7+7238_weekly_bin780.fits outfile=/lscratch/kocevski/19656601/cmap_710726401_711331201_4FGL_J1047.7+7238_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=161.939 yref=72.642 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.85
user 0.21
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19656601/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits scfile=/lscratch/kocevski/19656601/ft2_4FGL_J1047.7+7238_weekly_bin780.fits outfile=/lscratch/kocevski/19656601/cmap_HighResolution_710726401_711331201_4FGL_J1047.7+7238_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=161.939 yref=72.642 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.86
user 0.22
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19656601/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19656601/ft2_4FGL_J1047.7+7238_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19656601/Model_4FGL_J1047.7+7238_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 EG_v02
adding source GALutfile=/lscratch/kocevski/19656613/ltcube_710726401_711331201_4FGL_J1047.7+7238_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/19656613/ft2_4FGL_J1047.7+7238_weekly_bin780.fits
.....................!
real 16.22
user 15.37
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19656613/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19656613/ft2_4FGL_J1047.7+7238_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19656613/ltcube_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits outfile=/lscratch/kocevski/19656613/expmap_710726401_711331201_4FGL_J1047.7+7238_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/19656613/ltcube_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits
.....................!
real 60.46
user 55.93
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
Added 219 point sources and 0 extended sources

Setting source of interest to:
4FGL J1047.7+7238 @ 161.939 72.642

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19656613/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits scfile=/lscratch/kocevski/19656613/ft2_4FGL_J1047.7+7238_weekly_bin780.fits outfile=/lscratch/kocevski/19656613/cmap_710726401_711331201_4FGL_J1047.7+7238_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=161.939 yref=72.642 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.90
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19656613/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits scfile=/lscratch/kocevski/19656613/ft2_4FGL_J1047.7+7238_weekly_bin780.fits outfile=/lscratch/kocevski/19656613/cmap_HighResolution_710726401_711331201_4FGL_J1047.7+7238_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=161.939 yref=72.642 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.86
user 0.21
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19656613/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19656613/ft2_4FGL_J1047.7+7238_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19656613/Model_4FGL_J1047.7+7238_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 EG_v02
adding source GALDone.

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

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.638e+00  2.705e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.206e-01  8.645e-02  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.002e+00  9.717e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.59
Ra Dec: 161.939 72.642
Photon Flux Upper Limit: 5.13965003084e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00392574490433 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19655577/likelihoodResults_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20023.5339129
delta logL = 1.77679405528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 20022.4161355
delta logL = 2.89457153864

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12587E-05   1.0000          .0000       .10000E+07
     2 'Index     '    7.9191       1.0000          .0000       10.000    
     3 'Normalizat'    .93374       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96352       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20025.61     FROM MIGRAD    STATUS=CONVERGED    125 CALLS      584 TOTAL
                     EDM=   .96E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .57632        .46476E-03** at limit **
   2  Index         .84013        2.3343       -.25671E-04     .0000    
   3  Normalizat    1.0057        .54540E-01   -.91956E-11    .14448E-02
   4  Prefactor     .92391        .50046E-01    .57104E-11   -.94195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.840131
  Normalizat = 1.00569
  Prefactor  = 0.923911
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20025.61     FROM HESSE     STATUS=FAILED         5 CALLS      589 TOTAL
                     EDM=   .96E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .57632        .46476E-03   -1949.4    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.4023        5.6499       -.25671E-04   -.72606E+07
   3  Normalizat    1.0057        .54540E-01   -.91956E-11   -6987.8    
   4  Prefactor     .92391        .50046E-01    .57104E-11   -8616.4    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.59848e-15
Minuit parameter uncertainties:
  1  4.88264e-07
  2  2.77407
  3  0.0545429
  4  0.050048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 20025.6108781
delta logL = -0.300171086878

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  4.883e-07  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  8.401e-01  2.774e+00  0.000e+00  1.000e+01 (-1.000e+00)
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.239e-01  5.005e-02  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.006e+00  5.454e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
Ra Dec: 161.939 72.642

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/19655577/cmap_HighResolution_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2023-07-18 01:17:47.849799', job_id='19655577', GAL2='0.92', fit_tolerance='1e-08', EG2='1.01', EG='1.00', time_epoch_completed='1689668267.85', return_code2='101', ts='0.59', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-3.00e-01', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='780' AND source_name='4FGL J1047.7+7238' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:17:48 PDT 2023

Done.

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

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.638e+00  2.705e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.206e-01  8.645e-02  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.002e+00  9.717e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.59
Ra Dec: 161.939 72.642
Photon Flux Upper Limit: 5.13965003084e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00392574490433 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19655608/likelihoodResults_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20023.5339129
delta logL = 1.77679405528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 20022.4161355
delta logL = 2.89457153864

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12587E-05   1.0000          .0000       .10000E+07
     2 'Index     '    7.9191       1.0000          .0000       10.000    
     3 'Normalizat'    .93374       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96352       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20025.61     FROM MIGRAD    STATUS=CONVERGED    125 CALLS      584 TOTAL
                     EDM=   .96E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .57632        .46476E-03** at limit **
   2  Index         .84013        2.3343       -.25671E-04     .0000    
   3  Normalizat    1.0057        .54540E-01   -.91956E-11    .14448E-02
   4  Prefactor     .92391        .50046E-01    .57104E-11   -.94195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.840131
  Normalizat = 1.00569
  Prefactor  = 0.923911
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20025.61     FROM HESSE     STATUS=FAILED         5 CALLS      589 TOTAL
                     EDM=   .96E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .57632        .46476E-03   -1949.4    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.4023        5.6499       -.25671E-04   -.72606E+07
   3  Normalizat    1.0057        .54540E-01   -.91956E-11   -6987.8    
   4  Prefactor     .92391        .50046E-01    .57104E-11   -8616.4    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.59848e-15
Minuit parameter uncertainties:
  1  4.88264e-07
  2  2.77407
  3  0.0545429
  4  0.050048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 20025.6108781
delta logL = -0.300171086878

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  4.883e-07  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  8.401e-01  2.774e+00  0.000e+00  1.000e+01 (-1.000e+00)
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.239e-01  5.005e-02  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.006e+00  5.454e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
Ra Dec: 161.939 72.642

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/19655608/cmap_HighResolution_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2023-07-18 01:18:49.539455', job_id='19655608', GAL2='0.92', fit_tolerance='1e-08', EG2='1.01', EG='1.00', time_epoch_completed='1689668329.54', return_code2='101', ts='0.59', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-3.00e-01', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='780' AND source_name='4FGL J1047.7+7238' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:18:50 PDT 2023

_V02
Working on...
/lscratch/kocevski/19656601/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits.....................!
real 75.87
user 74.05
sys 0.82

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19656601/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits', '/lscratch/kocevski/19656601/ft2_4FGL_J1047.7+7238_weekly_bin780.fits', expMap='/lscratch/kocevski/19656601/expmap_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits', expCube='/lscratch/kocevski/19656601/ltcube_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19656601/Model_4FGL_J1047.7+7238_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1047.7+7238'

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.026e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19656601/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19656601/ft2_4FGL_J1047.7+7238_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19656601/expmap_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19656601/ltcube_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19656601/Model_4FGL_J1047.7+7238_weekly_bin780.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 20025.3554358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24453E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.2640       1.0000          .0000       .10000E+07
     3 'norm      '    1.7499       1.0000          .0000       .10000E+07
     4 'Prefactor '    9.6278       1.0000          .0000       .10000E+07
     5 'Prefactor '    11.238       1.0000          .0000       .10000E+07
     6 'norm      '    1.6112       1.0000          .0000       .10000E+07
     7 'norm      '    5.6671       1.0000          .0000       .10000E+07
     8 'Prefactor '    18.155       1.0000          .0000       .10000E+07
     9 'Prefactor '    .33036E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.7389       1.0000          .0000       .10000E+07
    11 'norm      '    11.097       1.0000          .0000       .10000E+07
    12 'norm      '    .96550       1.0000          .0000       .10000E+07
    13 'Prefactor '    .49589E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.6406       1.0000          .0000       .10000E+07
    15 'norm      '    1.3482       1.0000          .0000       .10000E+07
    16 'norm      '    1.9291       1.0000          .0000       .10000E+07
    17 'Prefactor '    .36593E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.4947       1.0000          .0000       .10000E+07
    19 'Prefactor '    .63703       1.0000          .0000       .10000E+07
    20 'Prefactor '    19.567       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.4114       1.0000          .0000       .10000E+07
    22 'Prefactor '    .17410E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .18485E-07   1.0000          .0000       .10000E+07
    24 'norm      '    3.9811       1.0000          .0000       .10000E+07
    25 'Prefactor '    .33295E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0015       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92072       1.0000          ._V02
Working on...
/lscratch/kocevski/19656613/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits.....................!
real 78.09
user 76.19
sys 0.92

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19656613/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits', '/lscratch/kocevski/19656613/ft2_4FGL_J1047.7+7238_weekly_bin780.fits', expMap='/lscratch/kocevski/19656613/expmap_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits', expCube='/lscratch/kocevski/19656613/ltcube_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19656613/Model_4FGL_J1047.7+7238_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1047.7+7238'

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.026e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19656613/ft1_filtered_4FGL_J1047.7+7238_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19656613/ft2_4FGL_J1047.7+7238_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19656613/expmap_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19656613/ltcube_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19656613/Model_4FGL_J1047.7+7238_weekly_bin780.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 20025.3554358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24453E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.2640       1.0000          .0000       .10000E+07
     3 'norm      '    1.7499       1.0000          .0000       .10000E+07
     4 'Prefactor '    9.6278       1.0000          .0000       .10000E+07
     5 'Prefactor '    11.238       1.0000          .0000       .10000E+07
     6 'norm      '    1.6112       1.0000          .0000       .10000E+07
     7 'norm      '    5.6671       1.0000          .0000       .10000E+07
     8 'Prefactor '    18.155       1.0000          .0000       .10000E+07
     9 'Prefactor '    .33036E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.7389       1.0000          .0000       .10000E+07
    11 'norm      '    11.097       1.0000          .0000       .10000E+07
    12 'norm      '    .96550       1.0000          .0000       .10000E+07
    13 'Prefactor '    .49589E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.6406       1.0000          .0000       .10000E+07
    15 'norm      '    1.3482       1.0000          .0000       .10000E+07
    16 'norm      '    1.9291       1.0000          .0000       .10000E+07
    17 'Prefactor '    .36593E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.4947       1.0000          .0000       .10000E+07
    19 'Prefactor '    .63703       1.0000          .0000       .10000E+07
    20 'Prefactor '    19.567       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.4114       1.0000          .0000       .10000E+07
    22 'Prefactor '    .17410E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .18485E-07   1.0000          .0000       .10000E+07
    24 'norm      '    3.9811       1.0000          .0000       .10000E+07
    25 'Prefactor '    .33295E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0015       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92072       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20025.31     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     2419 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.9033       -.65538E-09** at limit **
   2  Prefactor     3.2646        1.9163        .10130E-07   -.65271E-04
   3  norm          1.7605        1.2792        .38774E-08    .13011E-04
   4  Prefactor     9.3752        11.884       -.44680E-07    .24055E-02
   5  Prefactor     11.257        6.4339        .13457E-08   -.38644E-03
   6  norm          1.6109        .44501        .49219E-08   -.11334E-03
   7  norm          5.6630        5.6300       -.21002E-08   -.31266E-04
   8  Prefactor     17.844        12.948       -.87776E-07   -.17382E-02
   9  Prefactor     .53013E-07    8.0721        .10795E-06** at limit **
  10  Prefactor     4.6699        47.591        .44594E-06    .15808E-02
  11  norm          11.093        2.5340       -.23677E-08   -.14700E-03
  12  norm          .96554        2.4386       -.23230E-08    .81873E-03
  13  Prefactor     .66613E-09    28.914       -.73808E-07** at limit **
  14  Prefactor     1.6380        2.6595       -.15385E-07    .39861E-04
  15  norm          1.3483        .46198        .14329E-08    .26093E-03
  16  norm          1.9290        1.3739       -.72336E-08    .47283E-04
  17  Prefactor     .42077E-07    7.6757       -.45615E-07** at limit **
  18  Prefactor     4.4783        8.0591       -.25662E-07   -.11597E-02
  19  Prefactor     .64040        1.5035        .24049E-07   -.84924E-04
  20  Prefactor     19.509        7.3502        .43556E-08    .96519E-03
  21  Prefactor     5.3975        7.9658        .96305E-07   -.28114E-01
  22  Prefactor     .55511E-10    4.0979        .78364E-07** at limit **
  23  norm           .0000        .84555       -.16968E-07** at limit **
  24  norm          3.9867        2.0104        .61178E-08   -.43995E-05
  25  Prefactor     .28311E-08    100.55       -.47625E-06** at limit **
  26  Normalizat    1.0018        .10963       -.30876E-07    .11543E-04
  27  Prefactor     .92058        .97844E-01   -.51578E-06    .10449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.26458
  norm       = 1.7605
  Prefactor  = 9.37522
  Prefactor  = 11.2571
  norm       = 1.61092
  norm       = 5.66305
  Prefactor  = 17.8443
  Prefactor  = 5.30131e-08
  Prefactor  = 4.66989
  norm       = 11.0935
  norm       = 0.965539
  Prefactor  = 6.66134e-10
  Prefactor  = 1.63804
  norm       = 1.34831
  norm       = 1.92903
  Prefactor  = 4.20775e-08
  Prefactor  = 4.47831
  Prefactor  = 0.640399
  Prefactor  = 19.5093
  Prefactor  = 5.39751
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 3.98672
  Prefactor  = 2.83107e-09
  Normalizat = 1.00182
  Prefactor  = 0.920579
0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20025.31     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     2419 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.9033       -.65538E-09** at limit **
   2  Prefactor     3.2646        1.9163        .10130E-07   -.65271E-04
   3  norm          1.7605        1.2792        .38774E-08    .13011E-04
   4  Prefactor     9.3752        11.884       -.44680E-07    .24055E-02
   5  Prefactor     11.257        6.4339        .13457E-08   -.38644E-03
   6  norm          1.6109        .44501        .49219E-08   -.11334E-03
   7  norm          5.6630        5.6300       -.21002E-08   -.31266E-04
   8  Prefactor     17.844        12.948       -.87776E-07   -.17382E-02
   9  Prefactor     .53013E-07    8.0721        .10795E-06** at limit **
  10  Prefactor     4.6699        47.591        .44594E-06    .15808E-02
  11  norm          11.093        2.5340       -.23677E-08   -.14700E-03
  12  norm          .96554        2.4386       -.23230E-08    .81873E-03
  13  Prefactor     .66613E-09    28.914       -.73808E-07** at limit **
  14  Prefactor     1.6380        2.6595       -.15385E-07    .39861E-04
  15  norm          1.3483        .46198        .14329E-08    .26093E-03
  16  norm          1.9290        1.3739       -.72336E-08    .47283E-04
  17  Prefactor     .42077E-07    7.6757       -.45615E-07** at limit **
  18  Prefactor     4.4783        8.0591       -.25662E-07   -.11597E-02
  19  Prefactor     .64040        1.5035        .24049E-07   -.84924E-04
  20  Prefactor     19.509        7.3502        .43556E-08    .96519E-03
  21  Prefactor     5.3975        7.9658        .96305E-07   -.28114E-01
  22  Prefactor     .55511E-10    4.0979        .78364E-07** at limit **
  23  norm           .0000        .84555       -.16968E-07** at limit **
  24  norm          3.9867        2.0104        .61178E-08   -.43995E-05
  25  Prefactor     .28311E-08    100.55       -.47625E-06** at limit **
  26  Normalizat    1.0018        .10963       -.30876E-07    .11543E-04
  27  Prefactor     .92058        .97844E-01   -.51578E-06    .10449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.26458
  norm       = 1.7605
  Prefactor  = 9.37522
  Prefactor  = 11.2571
  norm       = 1.61092
  norm       = 5.66305
  Prefactor  = 17.8443
  Prefactor  = 5.30131e-08
  Prefactor  = 4.66989
  norm       = 11.0935
  norm       = 0.965539
  Prefactor  = 6.66134e-10
  Prefactor  = 1.63804
  norm       = 1.34831
  norm       = 1.92903
  Prefactor  = 4.20775e-08
  Prefactor  = 4.47831
  Prefactor  = 0.640399
  Prefactor  = 19.5093
  Prefactor  = 5.39751
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 3.98672
  Prefactor  = 2.83107e-09
  Normalizat = 1.00182
  Prefactor  = 0.920579
 **********
 **   18 **HESSE 
 **********

 FCN=   20025.31     FROM HESSE     STATUS=OK           552 CALLS     2971 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.9094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2646        1.9153        .56029E-03   -1.5672    
   3  norm          1.7605        1.3023        .79231E-03   -1.5681    
   4  Prefactor     9.3752        11.996        .32272E-03   -1.5647    
   5  Prefactor     11.257        6.4420        .29860E-03   -1.5641    
   6  norm          1.6109        .44902        .83412E-03   -1.5683    
   7  norm          5.6630        5.6277        .42173E-03   -1.5660    
   8  Prefactor     17.844        14.425        .23479E-03   -1.5623    
   9  Prefactor     .53013E-07    9.0684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.6699        59.557        .52194E-03   -1.5665    
  11  norm          11.093        2.5304        .30050E-03   -1.5641    
  12  norm          .96554        2.4666        .42540E-03   -1.5688    
  13  Prefactor     .66613E-09    28.949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6380        2.7046        .82463E-03   -1.5682    
  15  norm          1.3483        .47055        .94229E-03   -1.5685    
  16  norm          1.9290        1.3979        .74757E-03   -1.5680    
  17  Prefactor     .42077E-07    8.5052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.4783        8.0737        .47467E-03   -1.5666    
  19  Prefactor     .64040        1.5296        .65974E-03   -1.5692    
  20  Prefactor     19.509        7.4260        .22614E-03   -1.5620    
  21  Prefactor     5.3975        16.376        .43174E-03   -1.5661    
  22  Prefactor     .55511E-10    4.1013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        .84346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.9867        2.0147        .50525E-03   -1.5668    
  25  Prefactor     .28311E-08    97.742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0018        .97157E-01    .46185E-01   -.92969    
  27  Prefactor     .92058        .86442E-01    .45268E-01   -.95426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33433e-08
Minuit parameter uncertainties:
  1  9.127e-06
  2  1.91533
  3  1.30226
  4  11.9963
  5  6.44205
  6  0.449024
  7  5.6277
  8  14.4251
  9  0.00138676
  10  33.3546
  11  2.53041
  12  2.46657
  13  0.000273011
  14  2.70464
  15  0.470555
  16  1.39788
  17  0.00119617
  18  8.07377
  19  1.52963
  20  7.42603
  21  16.3756
  22  2.14728e-05
  23  5.95537e-07
  24  2.01474
  25  0.00104736
  26  0.0971745
  27  0.0864547
 **********
 **   18 **HESSE 
 **********

 FCN=   20025.31     FROM HESSE     STATUS=OK           552 CALLS     2971 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.9094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2646        1.9153        .56029E-03   -1.5672    
   3  norm          1.7605        1.3023        .79231E-03   -1.5681    
   4  Prefactor     9.3752        11.996        .32272E-03   -1.5647    
   5  Prefactor     11.257        6.4420        .29860E-03   -1.5641    
   6  norm          1.6109        .44902        .83412E-03   -1.5683    
   7  norm          5.6630        5.6277        .42173E-03   -1.5660    
   8  Prefactor     17.844        14.425        .23479E-03   -1.5623    
   9  Prefactor     .53013E-07    9.0684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.6699        59.557        .52194E-03   -1.5665    
  11  norm          11.093        2.5304        .30050E-03   -1.5641    
  12  norm          .96554        2.4666        .42540E-03   -1.5688    
  13  Prefactor     .66613E-09    28.949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6380        2.7046        .82463E-03   -1.5682    
  15  norm          1.3483        .47055        .94229E-03   -1.5685    
  16  norm          1.9290        1.3979        .74757E-03   -1.5680    
  17  Prefactor     .42077E-07    8.5052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.4783        8.0737        .47467E-03   -1.5666    
  19  Prefactor     .64040        1.5296        .65974E-03   -1.5692    
  20  Prefactor     19.509        7.4260        .22614E-03   -1.5620    
  21  Prefactor     5.3975        16.376        .43174E-03   -1.5661    
  22  Prefactor     .55511E-10    4.1013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        .84346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.9867        2.0147        .50525E-03   -1.5668    
  25  Prefactor     .28311E-08    97.742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0018        .97157E-01    .46185E-01   -.92969    
  27  Prefactor     .92058        .86442E-01    .45268E-01   -.95426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33433e-08
Minuit parameter uncertainties:
  1  9.127e-06
  2  1.91533
  3  1.30226
  4  11.9963
  5  6.44205
  6  0.449024
  7  5.6277
  8  14.4251
  9  0.00138676
  10  33.3546
  11  2.53041
  12  2.46657
  13  0.000273011
  14  2.70464
  15  0.470555
  16  1.39788
  17  0.00119617
  18  8.07377
  19  1.52963
  20  7.42603
  21  16.3756
  22  2.14728e-05
  23  5.95537e-07
  24  2.01474
  25  0.00104736
  26  0.0971745
  27  0.0864547
Done.

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

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.638e+00  2.705e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.206e-01  8.645e-02  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.002e+00  9.717e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.59
Ra Dec: 161.939 72.642
Photon Flux Upper Limit: 5.13965003084e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00392574490433 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19656601/likelihoodResults_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20023.5339129
delta logL = 1.77679405528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 20022.4161355
delta logL = 2.89457153864

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12587E-05   1.0000          .0000       .10000E+07
     2 'Index     '    7.9191       1.0000          .0000       10.000    
     3 'Normalizat'    .93374       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96352       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20025.61     FROM MIGRAD    STATUS=CONVERGED    125 CALLS      584 TOTAL
                     EDM=   .96E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .57632        .46476E-03** at limit **
   2  Index         .84013        2.3343       -.25671E-04     .0000    
   3  Normalizat    1.0057        .54540E-01   -.91956E-11    .14448E-02
   4  Prefactor     .92391        .50046E-01    .57104E-11   -.94195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.840131
  Normalizat = 1.00569
  Prefactor  = 0.923911
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20025.61     FROM HESSE     STATUS=FAILED         5 CALLS      589 TOTAL
                     EDM=   .96E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .57632        .46476E-03   -1949.4    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.4023        5.6499       -.25671E-04   -.72606E+07
   3  Normalizat    1.0057        .54540E-01   -.91956E-11   -6987.8    
   4  Prefactor     .92391        .50046E-01    .57104E-11   -8616.4    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.59848e-15
Minuit parameter uncertainties:
  1  4.88264e-07
  2  2.77407
  3  0.0545429
  4  0.050048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 20025.6108781
delta logL = -0.300171086878

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  4.883e-07  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  8.401e-01  2.774e+00  0.000e+00  1.000e+01 (-1.000e+00)
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.239e-01  5.005e-02  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.006e+00  5.454e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
Ra Dec: 161.939 72.642

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/19656601/cmap_HighResolution_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2023-07-18 01:25:42.109779', job_id='19656601', GAL2='0.92', fit_tolerance='1e-08', EG2='1.01', EG='1.00', time_epoch_completed='1689668742.11', return_code2='101', ts='0.59', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-3.00e-01', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='780' AND source_name='4FGL J1047.7+7238' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:25:42 PDT 2023

Done.

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

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.638e+00  2.705e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.206e-01  8.645e-02  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.002e+00  9.717e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.59
Ra Dec: 161.939 72.642
Photon Flux Upper Limit: 5.13965003084e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00392574490433 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19656613/likelihoodResults_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20023.5339129
delta logL = 1.77679405528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 20022.4161355
delta logL = 2.89457153864

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12587E-05   1.0000          .0000       .10000E+07
     2 'Index     '    7.9191       1.0000          .0000       10.000    
     3 'Normalizat'    .93374       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96352       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20025.61     FROM MIGRAD    STATUS=CONVERGED    125 CALLS      584 TOTAL
                     EDM=   .96E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .57632        .46476E-03** at limit **
   2  Index         .84013        2.3343       -.25671E-04     .0000    
   3  Normalizat    1.0057        .54540E-01   -.91956E-11    .14448E-02
   4  Prefactor     .92391        .50046E-01    .57104E-11   -.94195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.840131
  Normalizat = 1.00569
  Prefactor  = 0.923911
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20025.61     FROM HESSE     STATUS=FAILED         5 CALLS      589 TOTAL
                     EDM=   .96E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .57632        .46476E-03   -1949.4    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.4023        5.6499       -.25671E-04   -.72606E+07
   3  Normalizat    1.0057        .54540E-01   -.91956E-11   -6987.8    
   4  Prefactor     .92391        .50046E-01    .57104E-11   -8616.4    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.59848e-15
Minuit parameter uncertainties:
  1  4.88264e-07
  2  2.77407
  3  0.0545429
  4  0.050048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 20025.6108781
delta logL = -0.300171086878

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  4.883e-07  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  8.401e-01  2.774e+00  0.000e+00  1.000e+01 (-1.000e+00)
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.239e-01  5.005e-02  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.006e+00  5.454e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
Ra Dec: 161.939 72.642

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/19656613/cmap_HighResolution_710726401_711331201_4FGL_J1047.7+7238_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2023-07-18 01:25:54.480874', job_id='19656613', GAL2='0.92', fit_tolerance='1e-08', EG2='1.01', EG='1.00', time_epoch_completed='1689668754.48', return_code2='101', ts='0.59', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-3.00e-01', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='780' AND source_name='4FGL J1047.7+7238' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:25:55 PDT 2023

