/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

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

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

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

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

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

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


Performing analysis on: 4FGL_J0647.7-6058_daily_bin1815
RA = 101.931, Dec = -60.9781
tmin = 709776001, tmax = 710035201
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='18885681', job_status='RUN', time_executed='2023-07-10 10:08:24.324395', time_epoch_executed='1689008904.32' WHERE source_name='4FGL J0647.7-6058' and cadence='daily' and bin_id='1815'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18885681

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18885681/ft1_4FGL_J0647.7-6058_daily_bin1815.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18885681/ft2_4FGL_J0647.7-6058_daily_bin1815.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18885681/ft1_4FGL_J0647.7-6058_daily_bin1815.fits outfile=/lscratch/kocevski/18885681/ft1_filteredMKT_4FGL_J0647.7-6058_daily_bin1815.fits ra=101.931 dec=-60.9781 rad=12.0 tmin=709776001.0 tmax=710035201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.91
user 2.55
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18885681/ft2_4FGL_J0647.7-6058_daily_bin1815.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18885681/ft2_4FGL_J0647.7-6058_daily_bin1815.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/18885681/ft1_filteredMKT_4FGL_J0647.7-6058_daily_bin1815.fits evtable="EVENTS" outfile="/lscratch/kocevski/18885681/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.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.53
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 1148

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18885681/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18885681/ft2_4FGL_J0647.7-6058_daily_bin1815.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18885681/ltcube_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.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/18885681/ft2_4FGL_J0647.7-6058_daily_bin1815.fits
.....................!
real 7.79
user 7.36
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18885681/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits evtable="EVENTS" scfile=/lscratch/kocevski/18885681/ft2_4FGL_J0647.7-6058_daily_bin1815.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18885681/ltcube_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits outfile=/lscratch/kocevski/18885681/expmap_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.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/18885681/ltcube_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits
.....................!
real 67.19
user 62.68
sys 3.92

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source LMC-Galaxy in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-North.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-FarWest.fits is the correct path to the extended template.
Added 210 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0647.7-6058 @ 101.931 -60.9781

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18885681/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits scfile=/lscratch/kocevski/18885681/ft2_4FGL_J0647.7-6058_daily_bin1815.fits outfile=/lscratch/kocevski/18885681/cmap_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.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=101.931 yref=-60.9781 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.46
user 0.22
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18885681/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits scfile=/lscratch/kocevski/18885681/ft2_4FGL_J0647.7-6058_daily_bin1815.fits outfile=/lscratch/kocevski/18885681/cmap_HighResolution_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.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=101.931 yref=-60.9781 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.65
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18880003/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits evtable="EVENTS" scfile=/lscratch/kocevski/18880003/ft2_4FGL_J0647.7-6058_daily_bin1815.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18880003/Model_4FGL_J0647.7-6058_daily_bin1815.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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/lscratch/kocevski/18880003/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits.....................!
real 2505.24
user 2489.17
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18880003/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits', '/lscratch/kocevski/18880003/ft2_4FGL_J0647.7-6058_daily_bin1815.fits', expMap='/lscratch/kocevski/18880003/expmap_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits', expCube='/lscratch/kocevski/18880003/ltcube_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18880003/Model_4FGL_J0647.7-6058_daily_bin1815.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0647.7-6058'

4FGL J0647.7-6058
   Spectrum: PowerLaw
345    Prefactor:  9.082e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  8.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18880003/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits
Spacecraft file(s): /lscratch/kocevski/18880003/ft2_4FGL_J0647.7-6058_daily_bin1815.fits
Exposure map: /lscratch/kocevski/18880003/expmap_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits
Exposure cube: /lscratch/kocevski/18880003/ltcube_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18880003/Model_4FGL_J0647.7-6058_daily_bin1815.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91114E-02   1.0000          .0000       .10000E+07
     2 'norm      '    5.5479       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.9809       1.0000          .0000       .10000E+07
     4 'norm      '    14.580       1.0000          .0000       .10000E+07
     5 'norm      '    .74877E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .13082E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15340E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .91934E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .21552E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.5781       1.0000          .0000       .10000E+07
    11 'Prefactor '    86.615       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.9740       1.0000          .0000       .10000E+07
    13 'norm      '    .46946E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .47672E-01   1.0000          .0000       .10000E+07
    15 'norm      '    5.6334       1.0000          .0000       .10000E+07
    16 'Prefactor '    17.571       1.0000          .0000       .10000E+07
    17 'Prefactor '    .42968E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .14705       1.0000          .0000       .10000E+07
    19 'Prefactor '    284.98       1.0000          .0000       .10000E+07
    20 'norm      '    .14023E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .46510E-02   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1438       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99782       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11850.52     FROM MIGRAD    STATUS=CONVERGED    223 CALLS     1946 TOTAL
                     EDM=   .52E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        12.253        .34505E-08** at limit **
   2  norm          5.5472        3.7120        .11114E-07   -.32826E-04
   3  Prefactor     2.9807        4.6594        .16340E-07    .85547E-05
   4  norm          14.576        8.0760        .40344E-08   -.94647E-05
   5  norm          .55511E-09    99.438       -.82055E-06** at limit **
   6  Prefactor      .0000        7.2569        .16617E-07** at limit **
   7  Prefactor      .0000        3.3847        .20148E-07** at limit **
   8  Prefactor      .0000        2.6897        .11608E-07** at limit **
   9  Prefactor      .0000        5.6097        .58545E-07** at limit **
  10  Prefactor     5.5813        7.9377        .12286E-07    .12958E-04
  11  Prefactor     85.613        79.628        .33259E-07    .46352E-04
  12  Prefactor     4.9742        10.811        .10163E-06    .64020E-04
  13  norm           .0000        1.7274       -.20695E-07** at limit **
  14  Prefactor      .0000        33.909       -.11297E-06** at limit **
  15  norm          5.6328        3.2331        .11227E-07   -.65454E-04
  16  Prefactor     17.545        9.5279        .82990E-08    .13308E-03
  17  Prefactor     .55511E-10    76.301       -.19164E-06** at limit **
  18  Prefactor      .0000        47.571       -.24356E-06** at limit **
  19  Prefactor     279.09        241.62       -.54598E-07   -.86592E-04
  20  norm           .0000        5.2321       -.38091E-07** at limit **
  21  Prefactor      .0000        11.396        .26293E-07** at limit **
  22  Normalizat    1.1438        .21917       -.69103E-06    .34533E-04
  23  Prefactor     .99805        .88134E-01   -.26683E-06    .77457E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 5.54719
  Prefactor  = 2.98073
  norm       = 14.5764
  norm       = 5.55112e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.58127
  Prefactor  = 85.6125
  Prefactor  = 4.97425
  norm       = 0
  Prefactor  = 0
  norm       = 5.63282
  Prefactor  = 17.5452
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 279.095
  norm       = 0
  Prefactor  = 0
  Normalizat = 1.14383
  Prefactor  = 0.998049
 **********
 **   18 **HESSE 
 **********

 FCN=   11850.52     FROM HESSE     STATUS=OK           422 CALLS     2368 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.5472        3.7092        .42631E-03   -1.5661    
   3  Prefactor     2.9807        4.6444        .58778E-03   -1.5673    
   4  norm          14.576        8.0860        .26205E-03   -1.5632    
   5  norm          .55511E-09    4.5169        .66673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        7.2795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.3849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.6981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        5.5906        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5813        7.9431        .42513E-03   -1.5661    
  11  Prefactor     85.613        79.712        .10746E-03   -1.5523    
  12  Prefactor     4.9742        10.858        .45069E-03   -1.5663    
  13  norm           .0000        1.7178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        33.136        .15634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.6328        3.2350        .42301E-03   -1.5660    
  16  Prefactor     17.545        9.5098        .23866E-03   -1.5624    
  17  Prefactor     .55511E-10    73.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        47.418        .12806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     279.09        243.56        .59245E-04   -1.5374    
  20  norm           .0000        5.2905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        11.286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1438        .19110        .84760E-01   -.88357    
  23  Prefactor     .99805        .76461E-01    .46240E-01   -.92795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82757e-07
Minuit parameter uncertainties:
  1  2.66666e-07
  2  3.70917
  3  4.64439
  4  8.08601
  5  9.91362e-05
  6  1.20395e-06
  7  1.24091e-06
  8  6.71098e-07
  9  4.71589e-06
  10  7.94312
  11  79.7133
  12  10.8577
  13  9.60664e-07
  14  1.94226e-05
  15  3.23504
  16  9.50979
  17  0.000108344
  18  3.66396e-05
  19  243.564
  20  2.73836e-06
  21  1.99002e-06
  22  0.191218
  23  0.0764697
Done.

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

Extracting fit parameters...

4FGL J0647.7-6058
   Spectrum: PowerLaw
345    Prefactor:  0.000e+00  1.942e-05  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  8.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
684    Prefactor:  9.980e-01  7.647e-02  0.000e+00  1.000e+01 ( 1.000e+00)
685        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
686        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  1.144e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 101.931 -60.978
Photon Flux Upper Limit: 7.98863458854e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0061916711464 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18880003/likelihoodResults_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11850.5297265
delta logL = -0.0145966305645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11850.5151373
delta logL = -7.48060301703e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15040E-02   1.0000          .0000       .10000E+07
     2 'Index     '    3.7064       1.0000          .0000       10.000    
     3 'Normalizat'    1.1444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99781       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11850.52     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      255 TOTAL
                     EDM=   .99E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        38.500        .42118E-03** at limit **
   2  Index         2.5645        .90559       -.32052E-04     .0000    
   3  Normalizat    1.1438        1.1289        .94783E-05   -.10800E-04
   4  Prefactor     .99805        1.3371       -.56434E-05    .21070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.56449
  Normalizat = 1.14383
  Prefactor  = 0.998049
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11850.52     FROM HESSE     STATUS=FAILED         9 CALLS      264 TOTAL
                     EDM=   .99E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        38.500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .74269        1.8748       -.32052E-04   -.50877    
   3  Normalizat    1.1438        1.1289        .94783E-05   -.88357    
   4  Prefactor     .99805        1.3371       -.56434E-05   -.92795    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.8508e-13
Minuit parameter uncertainties:
  1  1.02409e-05
  2  0.912209
  3  1.15425
  4  1.38599
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) = 11850.5151299
delta logL = 0.0

Extracting fit parameters...

4FGL J0647.7-6058
   Spectrum: PowerLaw
345    Prefactor:  0.000e+00  1.024e-05  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.564e+00  9.122e-01  0.000e+00  1.000e+01 (-1.000e+00)
347        Scale:  8.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
684    Prefactor:  9.980e-01  1.386e+00  0.000e+00  1.000e+01 ( 1.000e+00)
685        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
686        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  1.144e+00  1.154e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 101.931 -60.978

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/18880003/cmap_HighResolution_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2023-07-10 10:32:32.606639', job_id='18880003', GAL2='1.00', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1689010352.61', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1815' AND source_name='4FGL J0647.7-6058' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 10:32:32 PDT 2023

 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.55
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18881515/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits evtable="EVENTS" scfile=/lscratch/kocevski/18881515/ft2_4FGL_J0647.7-6058_daily_bin1815.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18881515/Model_4FGL_J0647.7-6058_daily_bin1815.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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/lscratch/kocevski/18881515/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits.....................!
real 2434.45
user 2418.43
sys 1.62

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18881515/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits', '/lscratch/kocevski/18881515/ft2_4FGL_J0647.7-6058_daily_bin1815.fits', expMap='/lscratch/kocevski/18881515/expmap_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits', expCube='/lscratch/kocevski/18881515/ltcube_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18881515/Model_4FGL_J0647.7-6058_daily_bin1815.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0647.7-6058'

4FGL J0647.7-6058
   Spectrum: PowerLaw
345    Prefactor:  9.082e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  8.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18881515/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits
Spacecraft file(s): /lscratch/kocevski/18881515/ft2_4FGL_J0647.7-6058_daily_bin1815.fits
Exposure map: /lscratch/kocevski/18881515/expmap_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits
Exposure cube: /lscratch/kocevski/18881515/ltcube_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18881515/Model_4FGL_J0647.7-6058_daily_bin1815.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91114E-02   1.0000          .0000       .10000E+07
     2 'norm      '    5.5479       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.9809       1.0000          .0000       .10000E+07
     4 'norm      '    14.580       1.0000          .0000       .10000E+07
     5 'norm      '    .74877E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .13082E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15340E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .91934E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .21552E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.5781       1.0000          .0000       .10000E+07
    11 'Prefactor '    86.615       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.9740       1.0000          .0000       .10000E+07
    13 'norm      '    .46946E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .47672E-01   1.0000          .0000       .10000E+07
    15 'norm      '    5.6334       1.0000          .0000       .10000E+07
    16 'Prefactor '    17.571       1.0000          .0000       .10000E+07
    17 'Prefactor '    .42968E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .14705       1.0000          .0000       .10000E+07
    19 'Prefactor '    284.98       1.0000          .0000       .10000E+07
    20 'norm      '    .14023E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .46510E-02   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1438       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99782       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11850.52     FROM MIGRAD    STATUS=CONVERGED    223 CALLS     1946 TOTAL
                     EDM=   .52E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        12.253        .34505E-08** at limit **
   2  norm          5.5472        3.7120        .11114E-07   -.32826E-04
   3  Prefactor     2.9807        4.6594        .16340E-07    .85547E-05
   4  norm          14.576        8.0760        .40344E-08   -.94647E-05
   5  norm          .55511E-09    99.438       -.82055E-06** at limit **
   6  Prefactor      .0000        7.2569        .16617E-07** at limit **
   7  Prefactor      .0000        3.3847        .20148E-07** at limit **
   8  Prefactor      .0000        2.6897        .11608E-07** at limit **
   9  Prefactor      .0000        5.6097        .58545E-07** at limit **
  10  Prefactor     5.5813        7.9377        .12286E-07    .12958E-04
  11  Prefactor     85.613        79.628        .33259E-07    .46352E-04
  12  Prefactor     4.9742        10.811        .10163E-06    .64020E-04
  13  norm           .0000        1.7274       -.20695E-07** at limit **
  14  Prefactor      .0000        33.909       -.11297E-06** at limit **
  15  norm          5.6328        3.2331        .11227E-07   -.65454E-04
  16  Prefactor     17.545        9.5279        .82990E-08    .13308E-03
  17  Prefactor     .55511E-10    76.301       -.19164E-06** at limit **
  18  Prefactor      .0000        47.571       -.24356E-06** at limit **
  19  Prefactor     279.09        241.62       -.54598E-07   -.86592E-04
  20  norm           .0000        5.2321       -.38091E-07** at limit **
  21  Prefactor      .0000        11.396        .26293E-07** at limit **
  22  Normalizat    1.1438        .21917       -.69103E-06    .34533E-04
  23  Prefactor     .99805        .88134E-01   -.26683E-06    .77457E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 5.54719
  Prefactor  = 2.98073
  norm       = 14.5764
  norm       = 5.55112e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.58127
  Prefactor  = 85.6125
  Prefactor  = 4.97425
  norm       = 0
  Prefactor  = 0
  norm       = 5.63282
  Prefactor  = 17.5452
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 279.095
  norm       = 0
  Prefactor  = 0
  Normalizat = 1.14383
  Prefactor  = 0.998049
 **********
 **   18 **HESSE 
 **********

 FCN=   11850.52     FROM HESSE     STATUS=OK           422 CALLS     2368 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.5472        3.7092        .42631E-03   -1.5661    
   3  Prefactor     2.9807        4.6444        .58778E-03   -1.5673    
   4  norm          14.576        8.0860        .26205E-03   -1.5632    
   5  norm          .55511E-09    4.5169        .66673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        7.2795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.3849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.6981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        5.5906        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5813        7.9431        .42513E-03   -1.5661    
  11  Prefactor     85.613        79.712        .10746E-03   -1.5523    
  12  Prefactor     4.9742        10.858        .45069E-03   -1.5663    
  13  norm           .0000        1.7178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        33.136        .15634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.6328        3.2350        .42301E-03   -1.5660    
  16  Prefactor     17.545        9.5098        .23866E-03   -1.5624    
  17  Prefactor     .55511E-10    73.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        47.418        .12806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     279.09        243.56        .59245E-04   -1.5374    
  20  norm           .0000        5.2905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        11.286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1438        .19110        .84760E-01   -.88357    
  23  Prefactor     .99805        .76461E-01    .46240E-01   -.92795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82757e-07
Minuit parameter uncertainties:
  1  2.66666e-07
  2  3.70917
  3  4.64439
  4  8.08601
  5  9.91362e-05
  6  1.20395e-06
  7  1.24091e-06
  8  6.71098e-07
  9  4.71589e-06
  10  7.94312
  11  79.7133
  12  10.8577
  13  9.60664e-07
  14  1.94226e-05
  15  3.23504
  16  9.50979
  17  0.000108344
  18  3.66396e-05
  19  243.564
  20  2.73836e-06
  21  1.99002e-06
  22  0.191218
  23  0.0764697
Done.

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

Extracting fit parameters...

4FGL J0647.7-6058
   Spectrum: PowerLaw
345    Prefactor:  0.000e+00  1.942e-05  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  8.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
684    Prefactor:  9.980e-01  7.647e-02  0.000e+00  1.000e+01 ( 1.000e+00)
685        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
686        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  1.144e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 101.931 -60.978
Photon Flux Upper Limit: 7.98863458854e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0061916711464 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18881515/likelihoodResults_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11850.5297265
delta logL = -0.0145966305645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11850.5151373
delta logL = -7.48060301703e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15040E-02   1.0000          .0000       .10000E+07
     2 'Index     '    3.7064       1.0000          .0000       10.000    
     3 'Normalizat'    1.1444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99781       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11850.52     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      255 TOTAL
                     EDM=   .99E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        38.500        .42118E-03** at limit **
   2  Index         2.5645        .90559       -.32052E-04     .0000    
   3  Normalizat    1.1438        1.1289        .94783E-05   -.10800E-04
   4  Prefactor     .99805        1.3371       -.56434E-05    .21070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.56449
  Normalizat = 1.14383
  Prefactor  = 0.998049
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11850.52     FROM HESSE     STATUS=FAILED         9 CALLS      264 TOTAL
                     EDM=   .99E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        38.500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .74269        1.8748       -.32052E-04   -.50877    
   3  Normalizat    1.1438        1.1289        .94783E-05   -.88357    
   4  Prefactor     .99805        1.3371       -.56434E-05   -.92795    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.8508e-13
Minuit parameter uncertainties:
  1  1.02409e-05
  2  0.912209
  3  1.15425
  4  1.38599
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) = 11850.5151299
delta logL = 0.0

Extracting fit parameters...

4FGL J0647.7-6058
   Spectrum: PowerLaw
345    Prefactor:  0.000e+00  1.024e-05  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.564e+00  9.122e-01  0.000e+00  1.000e+01 (-1.000e+00)
347        Scale:  8.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
684    Prefactor:  9.980e-01  1.386e+00  0.000e+00  1.000e+01 ( 1.000e+00)
685        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
686        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  1.144e+00  1.154e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 101.931 -60.978

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/18881515/cmap_HighResolution_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2023-07-10 10:38:10.822255', job_id='18881515', GAL2='1.00', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1689010690.82', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1815' AND source_name='4FGL J0647.7-6058' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 10:38:11 PDT 2023

 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.42
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18883584/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits evtable="EVENTS" scfile=/lscratch/kocevski/18883584/ft2_4FGL_J0647.7-6058_daily_bin1815.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18883584/Model_4FGL_J0647.7-6058_daily_bin1815.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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/lscratch/kocevski/18883584/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits.....................!
real 2376.25
user 2361.78
sys 0.91

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18883584/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits', '/lscratch/kocevski/18883584/ft2_4FGL_J0647.7-6058_daily_bin1815.fits', expMap='/lscratch/kocevski/18883584/expmap_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits', expCube='/lscratch/kocevski/18883584/ltcube_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18883584/Model_4FGL_J0647.7-6058_daily_bin1815.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0647.7-6058'

4FGL J0647.7-6058
   Spectrum: PowerLaw
345    Prefactor:  9.082e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  8.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18883584/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits
Spacecraft file(s): /lscratch/kocevski/18883584/ft2_4FGL_J0647.7-6058_daily_bin1815.fits
Exposure map: /lscratch/kocevski/18883584/expmap_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits
Exposure cube: /lscratch/kocevski/18883584/ltcube_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18883584/Model_4FGL_J0647.7-6058_daily_bin1815.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91114E-02   1.0000          .0000       .10000E+07
     2 'norm      '    5.5479       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.9809       1.0000          .0000       .10000E+07
     4 'norm      '    14.580       1.0000          .0000       .10000E+07
     5 'norm      '    .74877E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .13082E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15340E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .91934E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .21552E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.5781       1.0000          .0000       .10000E+07
    11 'Prefactor '    86.615       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.9740       1.0000          .0000       .10000E+07
    13 'norm      '    .46946E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .47672E-01   1.0000          .0000       .10000E+07
    15 'norm      '    5.6334       1.0000          .0000       .10000E+07
    16 'Prefactor '    17.571       1.0000          .0000       .10000E+07
    17 'Prefactor '    .42968E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .14705       1.0000          .0000       .10000E+07
    19 'Prefactor '    284.98       1.0000          .0000       .10000E+07
    20 'norm      '    .14023E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .46510E-02   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1438       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99782       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11850.52     FROM MIGRAD    STATUS=CONVERGED    223 CALLS     1946 TOTAL
                     EDM=   .52E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        12.253        .34505E-08** at limit **
   2  norm          5.5472        3.7120        .11114E-07   -.32826E-04
   3  Prefactor     2.9807        4.6594        .16340E-07    .85547E-05
   4  norm          14.576        8.0760        .40344E-08   -.94647E-05
   5  norm          .55511E-09    99.438       -.82055E-06** at limit **
   6  Prefactor      .0000        7.2569        .16617E-07** at limit **
   7  Prefactor      .0000        3.3847        .20148E-07** at limit **
   8  Prefactor      .0000        2.6897        .11608E-07** at limit **
   9  Prefactor      .0000        5.6097        .58545E-07** at limit **
  10  Prefactor     5.5813        7.9377        .12286E-07    .12958E-04
  11  Prefactor     85.613        79.628        .33259E-07    .46352E-04
  12  Prefactor     4.9742        10.811        .10163E-06    .64020E-04
  13  norm           .0000        1.7274       -.20695E-07** at limit **
  14  Prefactor      .0000        33.909       -.11297E-06** at limit **
  15  norm          5.6328        3.2331        .11227E-07   -.65454E-04
  16  Prefactor     17.545        9.5279        .82990E-08    .13308E-03
  17  Prefactor     .55511E-10    76.301       -.19164E-06** at limit **
  18  Prefactor      .0000        47.571       -.24356E-06** at limit **
  19  Prefactor     279.09        241.62       -.54598E-07   -.86592E-04
  20  norm           .0000        5.2321       -.38091E-07** at limit **
  21  Prefactor      .0000        11.396        .26293E-07** at limit **
  22  Normalizat    1.1438        .21917       -.69103E-06    .34533E-04
  23  Prefactor     .99805        .88134E-01   -.26683E-06    .77457E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 5.54719
  Prefactor  = 2.98073
  norm       = 14.5764
  norm       = 5.55112e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.58127
  Prefactor  = 85.6125
  Prefactor  = 4.97425
  norm       = 0
  Prefactor  = 0
  norm       = 5.63282
  Prefactor  = 17.5452
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 279.095
  norm       = 0
  Prefactor  = 0
  Normalizat = 1.14383
  Prefactor  = 0.998049
 **********
 **   18 **HESSE 
 **********

 FCN=   11850.52     FROM HESSE     STATUS=OK           422 CALLS     2368 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.5472        3.7092        .42631E-03   -1.5661    
   3  Prefactor     2.9807        4.6444        .58778E-03   -1.5673    
   4  norm          14.576        8.0860        .26205E-03   -1.5632    
   5  norm          .55511E-09    4.5169        .66673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        7.2795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.3849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.6981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        5.5906        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5813        7.9431        .42513E-03   -1.5661    
  11  Prefactor     85.613        79.712        .10746E-03   -1.5523    
  12  Prefactor     4.9742        10.858        .45069E-03   -1.5663    
  13  norm           .0000        1.7178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        33.136        .15634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.6328        3.2350        .42301E-03   -1.5660    
  16  Prefactor     17.545        9.5098        .23866E-03   -1.5624    
  17  Prefactor     .55511E-10    73.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        47.418        .12806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     279.09        243.56        .59245E-04   -1.5374    
  20  norm           .0000        5.2905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        11.286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1438        .19110        .84760E-01   -.88357    
  23  Prefactor     .99805        .76461E-01    .46240E-01   -.92795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82757e-07
Minuit parameter uncertainties:
  1  2.66666e-07
  2  3.70917
  3  4.64439
  4  8.08601
  5  9.91362e-05
  6  1.20395e-06
  7  1.24091e-06
  8  6.71098e-07
  9  4.71589e-06
  10  7.94312
  11  79.7133
  12  10.8577
  13  9.60664e-07
  14  1.94226e-05
  15  3.23504
  16  9.50979
  17  0.000108344
  18  3.66396e-05
  19  243.564
  20  2.73836e-06
  21  1.99002e-06
  22  0.191218
  23  0.0764697
Done.

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

Extracting fit parameters...

4FGL J0647.7-6058
   Spectrum: PowerLaw
345    Prefactor:  0.000e+00  1.942e-05  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  8.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
684    Prefactor:  9.980e-01  7.647e-02  0.000e+00  1.000e+01 ( 1.000e+00)
685        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
686        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  1.144e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 101.931 -60.978
Photon Flux Upper Limit: 7.98863458854e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0061916711464 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18883584/likelihoodResults_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11850.5297265
delta logL = -0.0145966305645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11850.5151373
delta logL = -7.48060301703e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15040E-02   1.0000          .0000       .10000E+07
     2 'Index     '    3.7064       1.0000          .0000       10.000    
     3 'Normalizat'    1.1444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99781       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11850.52     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      255 TOTAL
                     EDM=   .99E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        38.500        .42118E-03** at limit **
   2  Index         2.5645        .90559       -.32052E-04     .0000    
   3  Normalizat    1.1438        1.1289        .94783E-05   -.10800E-04
   4  Prefactor     .99805        1.3371       -.56434E-05    .21070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.56449
  Normalizat = 1.14383
  Prefactor  = 0.998049
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11850.52     FROM HESSE     STATUS=FAILED         9 CALLS      264 TOTAL
                     EDM=   .99E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        38.500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .74269        1.8748       -.32052E-04   -.50877    
   3  Normalizat    1.1438        1.1289        .94783E-05   -.88357    
   4  Prefactor     .99805        1.3371       -.56434E-05   -.92795    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.8508e-13
Minuit parameter uncertainties:
  1  1.02409e-05
  2  0.912209
  3  1.15425
  4  1.38599
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) = 11850.5151299
delta logL = 0.0

Extracting fit parameters...

4FGL J0647.7-6058
   Spectrum: PowerLaw
345    Prefactor:  0.000e+00  1.024e-05  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.564e+00  9.122e-01  0.000e+00  1.000e+01 (-1.000e+00)
347        Scale:  8.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
684    Prefactor:  9.980e-01  1.386e+00  0.000e+00  1.000e+01 ( 1.000e+00)
685        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
686        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  1.144e+00  1.154e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 101.931 -60.978

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/18883584/cmap_HighResolution_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2023-07-10 10:45:30.410792', job_id='18883584', GAL2='1.00', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1689011130.41', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1815' AND source_name='4FGL J0647.7-6058' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 10:45:30 PDT 2023

 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.57
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18884132/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits evtable="EVENTS" scfile=/lscratch/kocevski/18884132/ft2_4FGL_J0647.7-6058_daily_bin1815.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18884132/Model_4FGL_J0647.7-6058_daily_bin1815.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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/lscratch/kocevski/18884132/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits.....................!
real 2378.19
user 2360.22
sys 1.55

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18884132/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits', '/lscratch/kocevski/18884132/ft2_4FGL_J0647.7-6058_daily_bin1815.fits', expMap='/lscratch/kocevski/18884132/expmap_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits', expCube='/lscratch/kocevski/18884132/ltcube_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18884132/Model_4FGL_J0647.7-6058_daily_bin1815.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0647.7-6058'

4FGL J0647.7-6058
   Spectrum: PowerLaw
345    Prefactor:  9.082e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  8.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18884132/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits
Spacecraft file(s): /lscratch/kocevski/18884132/ft2_4FGL_J0647.7-6058_daily_bin1815.fits
Exposure map: /lscratch/kocevski/18884132/expmap_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits
Exposure cube: /lscratch/kocevski/18884132/ltcube_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18884132/Model_4FGL_J0647.7-6058_daily_bin1815.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91114E-02   1.0000          .0000       .10000E+07
     2 'norm      '    5.5479       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.9809       1.0000          .0000       .10000E+07
     4 'norm      '    14.580       1.0000          .0000       .10000E+07
     5 'norm      '    .74877E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .13082E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15340E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .91934E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .21552E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.5781       1.0000          .0000       .10000E+07
    11 'Prefactor '    86.615       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.9740       1.0000          .0000       .10000E+07
    13 'norm      '    .46946E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .47672E-01   1.0000          .0000       .10000E+07
    15 'norm      '    5.6334       1.0000          .0000       .10000E+07
    16 'Prefactor '    17.571       1.0000          .0000       .10000E+07
    17 'Prefactor '    .42968E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .14705       1.0000          .0000       .10000E+07
    19 'Prefactor '    284.98       1.0000          .0000       .10000E+07
    20 'norm      '    .14023E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .46510E-02   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1438       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99782       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11850.52     FROM MIGRAD    STATUS=CONVERGED    223 CALLS     1946 TOTAL
                     EDM=   .52E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        12.253        .34505E-08** at limit **
   2  norm          5.5472        3.7120        .11114E-07   -.32826E-04
   3  Prefactor     2.9807        4.6594        .16340E-07    .85547E-05
   4  norm          14.576        8.0760        .40344E-08   -.94647E-05
   5  norm          .55511E-09    99.438       -.82055E-06** at limit **
   6  Prefactor      .0000        7.2569        .16617E-07** at limit **
   7  Prefactor      .0000        3.3847        .20148E-07** at limit **
   8  Prefactor      .0000        2.6897        .11608E-07** at limit **
   9  Prefactor      .0000        5.6097        .58545E-07** at limit **
  10  Prefactor     5.5813        7.9377        .12286E-07    .12958E-04
  11  Prefactor     85.613        79.628        .33259E-07    .46352E-04
  12  Prefactor     4.9742        10.811        .10163E-06    .64020E-04
  13  norm           .0000        1.7274       -.20695E-07** at limit **
  14  Prefactor      .0000        33.909       -.11297E-06** at limit **
  15  norm          5.6328        3.2331        .11227E-07   -.65454E-04
  16  Prefactor     17.545        9.5279        .82990E-08    .13308E-03
  17  Prefactor     .55511E-10    76.301       -.19164E-06** at limit **
  18  Prefactor      .0000        47.571       -.24356E-06** at limit **
  19  Prefactor     279.09        241.62       -.54598E-07   -.86592E-04
  20  norm           .0000        5.2321       -.38091E-07** at limit **
  21  Prefactor      .0000        11.396        .26293E-07** at limit **
  22  Normalizat    1.1438        .21917       -.69103E-06    .34533E-04
  23  Prefactor     .99805        .88134E-01   -.26683E-06    .77457E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 5.54719
  Prefactor  = 2.98073
  norm       = 14.5764
  norm       = 5.55112e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.58127
  Prefactor  = 85.6125
  Prefactor  = 4.97425
  norm       = 0
  Prefactor  = 0
  norm       = 5.63282
  Prefactor  = 17.5452
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 279.095
  norm       = 0
  Prefactor  = 0
  Normalizat = 1.14383
  Prefactor  = 0.998049
 **********
 **   18 **HESSE 
 **********

 FCN=   11850.52     FROM HESSE     STATUS=OK           422 CALLS     2368 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.5472        3.7092        .42631E-03   -1.5661    
   3  Prefactor     2.9807        4.6444        .58778E-03   -1.5673    
   4  norm          14.576        8.0860        .26205E-03   -1.5632    
   5  norm          .55511E-09    4.5169        .66673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        7.2795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.3849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.6981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        5.5906        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5813        7.9431        .42513E-03   -1.5661    
  11  Prefactor     85.613        79.712        .10746E-03   -1.5523    
  12  Prefactor     4.9742        10.858        .45069E-03   -1.5663    
  13  norm           .0000        1.7178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        33.136        .15634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.6328        3.2350        .42301E-03   -1.5660    
  16  Prefactor     17.545        9.5098        .23866E-03   -1.5624    
  17  Prefactor     .55511E-10    73.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        47.418        .12806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     279.09        243.56        .59245E-04   -1.5374    
  20  norm           .0000        5.2905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        11.286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1438        .19110        .84760E-01   -.88357    
  23  Prefactor     .99805        .76461E-01    .46240E-01   -.92795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82757e-07
Minuit parameter uncertainties:
  1  2.66666e-07
  2  3.70917
  3  4.64439
  4  8.08601
  5  9.91362e-05
  6  1.20395e-06
  7  1.24091e-06
  8  6.71098e-07
  9  4.71589e-06
  10  7.94312
  11  79.7133
  12  10.8577
  13  9.60664e-07
  14  1.94226e-05
  15  3.23504
  16  9.50979
  17  0.000108344
  18  3.66396e-05
  19  243.564
  20  2.73836e-06
  21  1.99002e-06
  22  0.191218
  23  0.0764697
Done.

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

Extracting fit parameters...

4FGL J0647.7-6058
   Spectrum: PowerLaw
345    Prefactor:  0.000e+00  1.942e-05  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  8.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
684    Prefactor:  9.980e-01  7.647e-02  0.000e+00  1.000e+01 ( 1.000e+00)
685        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
686        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  1.144e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 101.931 -60.978
Photon Flux Upper Limit: 7.98863458854e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0061916711464 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18884132/likelihoodResults_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11850.5297265
delta logL = -0.0145966305645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11850.5151373
delta logL = -7.48060301703e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15040E-02   1.0000          .0000       .10000E+07
     2 'Index     '    3.7064       1.0000          .0000       10.000    
     3 'Normalizat'    1.1444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99781       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11850.52     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      255 TOTAL
                     EDM=   .99E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        38.500        .42118E-03** at limit **
   2  Index         2.5645        .90559       -.32052E-04     .0000    
   3  Normalizat    1.1438        1.1289        .94783E-05   -.10800E-04
   4  Prefactor     .99805        1.3371       -.56434E-05    .21070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.56449
  Normalizat = 1.14383
  Prefactor  = 0.998049
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11850.52     FROM HESSE     STATUS=FAILED         9 CALLS      264 TOTAL
                     EDM=   .99E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        38.500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .74269        1.8748       -.32052E-04   -.50877    
   3  Normalizat    1.1438        1.1289        .94783E-05   -.88357    
   4  Prefactor     .99805        1.3371       -.56434E-05   -.92795    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.8508e-13
Minuit parameter uncertainties:
  1  1.02409e-05
  2  0.912209
  3  1.15425
  4  1.38599
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) = 11850.5151299
delta logL = 0.0

Extracting fit parameters...

4FGL J0647.7-6058
   Spectrum: PowerLaw
345    Prefactor:  0.000e+00  1.024e-05  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.564e+00  9.122e-01  0.000e+00  1.000e+01 (-1.000e+00)
347        Scale:  8.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
684    Prefactor:  9.980e-01  1.386e+00  0.000e+00  1.000e+01 ( 1.000e+00)
685        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
686        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  1.144e+00  1.154e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 101.931 -60.978

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/18884132/cmap_HighResolution_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2023-07-10 10:47:53.619595', job_id='18884132', GAL2='1.00', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1689011273.62', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1815' AND source_name='4FGL J0647.7-6058' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 10:47:53 PDT 2023

 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.46
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18885681/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits evtable="EVENTS" scfile=/lscratch/kocevski/18885681/ft2_4FGL_J0647.7-6058_daily_bin1815.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18885681/Model_4FGL_J0647.7-6058_daily_bin1815.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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/lscratch/kocevski/18885681/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits.....................!
real 2522.33
user 2506.80
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18885681/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits', '/lscratch/kocevski/18885681/ft2_4FGL_J0647.7-6058_daily_bin1815.fits', expMap='/lscratch/kocevski/18885681/expmap_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits', expCube='/lscratch/kocevski/18885681/ltcube_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18885681/Model_4FGL_J0647.7-6058_daily_bin1815.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0647.7-6058'

4FGL J0647.7-6058
   Spectrum: PowerLaw
345    Prefactor:  9.082e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  8.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18885681/ft1_filtered_4FGL_J0647.7-6058_daily_bin1815.fits
Spacecraft file(s): /lscratch/kocevski/18885681/ft2_4FGL_J0647.7-6058_daily_bin1815.fits
Exposure map: /lscratch/kocevski/18885681/expmap_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits
Exposure cube: /lscratch/kocevski/18885681/ltcube_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18885681/Model_4FGL_J0647.7-6058_daily_bin1815.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91114E-02   1.0000          .0000       .10000E+07
     2 'norm      '    5.5479       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.9809       1.0000          .0000       .10000E+07
     4 'norm      '    14.580       1.0000          .0000       .10000E+07
     5 'norm      '    .74877E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .13082E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15340E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .91934E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .21552E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.5781       1.0000          .0000       .10000E+07
    11 'Prefactor '    86.615       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.9740       1.0000          .0000       .10000E+07
    13 'norm      '    .46946E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .47672E-01   1.0000          .0000       .10000E+07
    15 'norm      '    5.6334       1.0000          .0000       .10000E+07
    16 'Prefactor '    17.571       1.0000          .0000       .10000E+07
    17 'Prefactor '    .42968E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .14705       1.0000          .0000       .10000E+07
    19 'Prefactor '    284.98       1.0000          .0000       .10000E+07
    20 'norm      '    .14023E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .46510E-02   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1438       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99782       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11850.52     FROM MIGRAD    STATUS=CONVERGED    223 CALLS     1946 TOTAL
                     EDM=   .52E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        12.253        .34505E-08** at limit **
   2  norm          5.5472        3.7120        .11114E-07   -.32826E-04
   3  Prefactor     2.9807        4.6594        .16340E-07    .85547E-05
   4  norm          14.576        8.0760        .40344E-08   -.94647E-05
   5  norm          .55511E-09    99.438       -.82055E-06** at limit **
   6  Prefactor      .0000        7.2569        .16617E-07** at limit **
   7  Prefactor      .0000        3.3847        .20148E-07** at limit **
   8  Prefactor      .0000        2.6897        .11608E-07** at limit **
   9  Prefactor      .0000        5.6097        .58545E-07** at limit **
  10  Prefactor     5.5813        7.9377        .12286E-07    .12958E-04
  11  Prefactor     85.613        79.628        .33259E-07    .46352E-04
  12  Prefactor     4.9742        10.811        .10163E-06    .64020E-04
  13  norm           .0000        1.7274       -.20695E-07** at limit **
  14  Prefactor      .0000        33.909       -.11297E-06** at limit **
  15  norm          5.6328        3.2331        .11227E-07   -.65454E-04
  16  Prefactor     17.545        9.5279        .82990E-08    .13308E-03
  17  Prefactor     .55511E-10    76.301       -.19164E-06** at limit **
  18  Prefactor      .0000        47.571       -.24356E-06** at limit **
  19  Prefactor     279.09        241.62       -.54598E-07   -.86592E-04
  20  norm           .0000        5.2321       -.38091E-07** at limit **
  21  Prefactor      .0000        11.396        .26293E-07** at limit **
  22  Normalizat    1.1438        .21917       -.69103E-06    .34533E-04
  23  Prefactor     .99805        .88134E-01   -.26683E-06    .77457E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 5.54719
  Prefactor  = 2.98073
  norm       = 14.5764
  norm       = 5.55112e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.58127
  Prefactor  = 85.6125
  Prefactor  = 4.97425
  norm       = 0
  Prefactor  = 0
  norm       = 5.63282
  Prefactor  = 17.5452
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 279.095
  norm       = 0
  Prefactor  = 0
  Normalizat = 1.14383
  Prefactor  = 0.998049
 **********
 **   18 **HESSE 
 **********

 FCN=   11850.52     FROM HESSE     STATUS=OK           422 CALLS     2368 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.5472        3.7092        .42631E-03   -1.5661    
   3  Prefactor     2.9807        4.6444        .58778E-03   -1.5673    
   4  norm          14.576        8.0860        .26205E-03   -1.5632    
   5  norm          .55511E-09    4.5169        .66673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        7.2795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.3849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.6981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        5.5906        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5813        7.9431        .42513E-03   -1.5661    
  11  Prefactor     85.613        79.712        .10746E-03   -1.5523    
  12  Prefactor     4.9742        10.858        .45069E-03   -1.5663    
  13  norm           .0000        1.7178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        33.136        .15634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.6328        3.2350        .42301E-03   -1.5660    
  16  Prefactor     17.545        9.5098        .23866E-03   -1.5624    
  17  Prefactor     .55511E-10    73.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        47.418        .12806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     279.09        243.56        .59245E-04   -1.5374    
  20  norm           .0000        5.2905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        11.286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1438        .19110        .84760E-01   -.88357    
  23  Prefactor     .99805        .76461E-01    .46240E-01   -.92795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82757e-07
Minuit parameter uncertainties:
  1  2.66666e-07
  2  3.70917
  3  4.64439
  4  8.08601
  5  9.91362e-05
  6  1.20395e-06
  7  1.24091e-06
  8  6.71098e-07
  9  4.71589e-06
  10  7.94312
  11  79.7133
  12  10.8577
  13  9.60664e-07
  14  1.94226e-05
  15  3.23504
  16  9.50979
  17  0.000108344
  18  3.66396e-05
  19  243.564
  20  2.73836e-06
  21  1.99002e-06
  22  0.191218
  23  0.0764697
Done.

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

Extracting fit parameters...

4FGL J0647.7-6058
   Spectrum: PowerLaw
345    Prefactor:  0.000e+00  1.942e-05  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  8.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
684    Prefactor:  9.980e-01  7.647e-02  0.000e+00  1.000e+01 ( 1.000e+00)
685        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
686        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  1.144e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 101.931 -60.978
Photon Flux Upper Limit: 7.98863458854e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0061916711464 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18885681/likelihoodResults_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11850.5297265
delta logL = -0.0145966305645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11850.5151373
delta logL = -7.48060301703e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15040E-02   1.0000          .0000       .10000E+07
     2 'Index     '    3.7064       1.0000          .0000       10.000    
     3 'Normalizat'    1.1444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99781       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11850.52     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      255 TOTAL
                     EDM=   .99E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        38.500        .42118E-03** at limit **
   2  Index         2.5645        .90559       -.32052E-04     .0000    
   3  Normalizat    1.1438        1.1289        .94783E-05   -.10800E-04
   4  Prefactor     .99805        1.3371       -.56434E-05    .21070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.56449
  Normalizat = 1.14383
  Prefactor  = 0.998049
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11850.52     FROM HESSE     STATUS=FAILED         9 CALLS      264 TOTAL
                     EDM=   .99E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        38.500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .74269        1.8748       -.32052E-04   -.50877    
   3  Normalizat    1.1438        1.1289        .94783E-05   -.88357    
   4  Prefactor     .99805        1.3371       -.56434E-05   -.92795    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.8508e-13
Minuit parameter uncertainties:
  1  1.02409e-05
  2  0.912209
  3  1.15425
  4  1.38599
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) = 11850.5151299
delta logL = 0.0

Extracting fit parameters...

4FGL J0647.7-6058
   Spectrum: PowerLaw
345    Prefactor:  0.000e+00  1.024e-05  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.564e+00  9.122e-01  0.000e+00  1.000e+01 (-1.000e+00)
347        Scale:  8.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
684    Prefactor:  9.980e-01  1.386e+00  0.000e+00  1.000e+01 ( 1.000e+00)
685        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
686        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  1.144e+00  1.154e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 101.931 -60.978

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/18885681/cmap_HighResolution_709776001_710035201_4FGL_J0647.7-6058_daily_bin1815.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2023-07-10 10:57:46.945852', job_id='18885681', GAL2='1.00', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1689011866.95', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1815' AND source_name='4FGL J0647.7-6058' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 10:57:46 PDT 2023

