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

 FCN=   74360.97     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .54E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .15391        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .61705        8.6124        .50000       -1.0687    
   3  Normalizat    1.3162        .30125E-02    .90817E-03   -.83085    
   4  Prefactor     .96998        .34385E-03    .11688E-03   -.93737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.43197e-13
Minuit parameter uncertainties:
  1  7.01593e-06
  2  35293
  3  0.00301247
  4  0.000343847
 **********
 **   18 **HESSE 
 **********

 FCN=   74360.97     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .54E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .15391        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .61705        8.6124        .50000       -1.0687    
   3  Normalizat    1.3162        .30125E-02    .90817E-03   -.83085    
   4  Prefactor     .96998        .34385E-03    .11688E-03   -.93737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.43197e-13
Minuit parameter uncertainties:
  1  7.01593e-06
  2  35293
  3  0.00301247
  4  0.000343847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 74360.973709
delta logL = -1.16415321827e-10

Extracting fit parameters...

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  5.551e-11  7.016e-06  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  6.170e-01  3.529e+04  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.700e-01  3.438e-04  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.316e+00  3.012e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 56.753 48.738

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/19647758/cmap_HighResolution_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-03', job_status='DONE', photon_flux_upper_limit='5.07e-08', time_completed='2023-07-18 00:35:19.288650', job_id='19647758', GAL2='0.97', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1689665719.29', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-1.16e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='780' AND source_name='4FGL J0347.0+4844' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 00:35:19 PDT 2023

/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
 **********
 **   18 **HESSE 
 **********

 FCN=   74360.97     FROM HESSE     STATUS=OK           218 CALLS     1082 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16653E-09    6.5877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        .72701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.5845        1.7497        .53347E-03   -1.5670    
   4  Prefactor     6.4221        5.3883        .39643E-03   -1.5657    
   5  norm          3.5108        .45744        .53924E-03   -1.5670    
   6  Prefactor     .16653E-09    20.178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-10    4.5429        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .38858E-09    29.764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6774        7.5844        .42442E-03   -1.5660    
  10  Prefactor     .91069        2.2400        .44922E-03   -1.5689    
  11  Prefactor     .51625E-08    6.5573        .16517E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    8.7731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        1.7274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.3162        .18132        .20366       -.83085    
  15  Prefactor     .96998        .19547E-01    .26445E-01   -.93737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.616e-07
Minuit parameter uncertainties:
  1  6.30349e-05
  2  4.44733e-06
  3  1.7497
  4  5.38826
  5  0.457438
  6  0.000120929
  7  2.94516e-05
  8  0.0002167
  9  7.58442
  10  2.23998
  11  0.000367164
  12  3.5235e-05
  13  4.2214e-06
  14  0.181407
  15  0.0195475

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

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
/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)
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 74360.973709
delta logL = -1.16415321827e-10

Extracting fit parameters...

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  5.551e-11  7.016e-06  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  6.170e-01  3.529e+04  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.700e-01  3.438e-04  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.316e+00  3.012e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 56.753 48.738

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/19647759/cmap_HighResolution_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-03', job_status='DONE', photon_flux_upper_limit='5.07e-08', time_completed='2023-07-18 00:35:21.963001', job_id='19647759', GAL2='0.97', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1689665721.96', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-1.16e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='780' AND source_name='4FGL J0347.0+4844' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 00:35:22 PDT 2023


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

 outfile=/lscratch/kocevski/19650864/ltcube_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/19650864/ft2_4FGL_J0347.0+4844_weekly_bin780.fits
.....................!
real 15.70
user 15.12
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19650864/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19650864/ft2_4FGL_J0347.0+4844_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19650864/ltcube_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits outfile=/lscratch/kocevski/19650864/expmap_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/19650864/ltcube_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits
.....................!
real 59.77
user 55.42
sys 3.73

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 G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Added 172 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 J0347.0+4844 @ 56.7527 48.7376

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19650864/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits scfile=/lscratch/kocevski/19650864/ft2_4FGL_J0347.0+4844_weekly_bin780.fits outfile=/lscratch/kocevski/19650864/cmap_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=56.7527 yref=48.7376 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.67
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19650864/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits scfile=/lscratch/kocevski/19650864/ft2_4FGL_J0347.0+4844_weekly_bin780.fits outfile=/lscratch/kocevski/19650864/cmap_HighResolution_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=56.7527 yref=48.7376 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 libraryDone.

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

Extracting fit parameters...

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  5.551e-11  2.945e-05  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  2.577e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.700e-01  1.955e-02  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.316e+00  1.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 56.753 48.738
Photon Flux Upper Limit: 5.07291499326e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00396445181419 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19649073/likelihoodResults_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 74360.9766749
delta logL = -0.00296585443721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 74360.9737091
delta logL = -3.17522790283e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21472E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.8553       1.0000          .0000       10.000    
     3 'Normalizat'    1.3162       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96998       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   74360.97     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      260 TOTAL
                     EDM=   .95E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .30810E-01    .42118E-03** at limit **
   2  Index         .61705        9.1033        .50000       -.50932E-09
   3  Normalizat    1.3162        .13599E-02    .20366       -.47798E-04
   4  Prefactor     .96998        .15380E-03    .26445E-01   -.24396E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 0.617046
  Normalizat = 1.31617
  Prefactor  = 0.969979
 **********
 **   18 **HESSE 
 **********

 FCN=   74360.97     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .54E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .15391        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .61705        8.6124        .50000       -1.0687    
   3  Normalizat    1.3162        .30125E-02    .90817E-03   -.83085    
   4  Prefactor     .96998        .34385E-03    .11688E-03   -.93737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.43197e-13
Minuit parameter uncertainties:
  1  7.01593e-06
  2  35293
  3  0.00301247
  4  0.000343847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 74360.973709
delta logL = -1.16415321827e-10

Extracting fit parameters...

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  5.551e-11  7.016e-06  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  6.170e-01  3.529e+04  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.700e-01  3.438e-04  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.316e+00  3.012e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 56.753 48.738

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/19649073/cmap_HighResolution_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-03', job_status='DONE', photon_flux_upper_limit='5.07e-08', time_completed='2023-07-18 00:39:07.216251', job_id='19649073', GAL2='0.97', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1689665947.22', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-1.16e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='780' AND source_name='4FGL J0347.0+4844' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 00:39:07 PDT 2023

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


Performing analysis on: 4FGL_J0347.0+4844_weekly_bin780
RA = 56.7527, Dec = 48.7376
tmin = 710726401, tmax = 711331201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

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

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='19651549', job_status='RUN', time_executed='2023-07-18 00:35:25.412527', time_epoch_executed='1689665725.41' WHERE source_name='4FGL J0347.0+4844' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19651549

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19651549/ft1_4FGL_J0347.0+4844_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19651549/ft2_4FGL_J0347.0+4844_weekly_bin780.fits


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

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

Done.
real 4.24
user 3.68
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19651549/ft2_4FGL_J0347.0+4844_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19651549/ft2_4FGL_J0347.0+4844_weekly_bin780.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/19651549/ft1_filteredMKT_4FGL_J0347.0+4844_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19651549/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 7763

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19651549/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19651549/ft2_4FGL_J0347.0+4844_weekly_bin780.fits sctable="SC_DATA" (v3.41).

This is gtbin version HEAD
real 0.65
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19649999/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19649999/ft2_4FGL_J0347.0+4844_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19649999/Model_4FGL_J0347.0+4844_weekly_bin780.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/19649999/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits.....................!
real 445.34
user 441.70
sys 0.78

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19649999/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits', '/lscratch/kocevski/19649999/ft2_4FGL_J0347.0+4844_weekly_bin780.fits', expMap='/lscratch/kocevski/19649999/expmap_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits', expCube='/lscratch/kocevski/19649999/ltcube_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19649999/Model_4FGL_J0347.0+4844_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0347.0+4844'

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  4.692e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  2.577e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19649999/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19649999/ft2_4FGL_J0347.0+4844_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19649999/expmap_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19649999/ltcube_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19649999/Model_4FGL_J0347.0+4844_weekly_bin780.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86368E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .15210E-07   1.0000          .0000       .10000E+07
     3 'norm      '    3.5850       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.4025       1.0000          .0000       .10000E+07
     5 'norm      '    3.5117       1.0000          .0000       .10000E+07
     6 'Prefactor '    .97670E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .72387E-07   1.0000          .0000       .10000E+07
     8 'norm      '    .46261E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    5.5966       1.0000          .0000       .10000E+07
    10 'Prefactor '    .91217       1.0000          .0000       .10000E+07
    11 'Prefactor '    .64222       1.0000          .0000       .10000E+07
    12 'norm      '    .66355E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .10872E-04   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.3159       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .96994       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05 outfile=/lscratch/kocevski/19651549/ltcube_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/19651549/ft2_4FGL_J0347.0+4844_weekly_bin780.fits
.....................!
real 16.44
user 15.88
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19651549/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19651549/ft2_4FGL_J0347.0+4844_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19651549/ltcube_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits outfile=/lscratch/kocevski/19651549/expmap_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/19651549/ltcube_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits
.....................!
real 61.85
user 57.84
sys 3.45

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 G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Added 172 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 J0347.0+4844 @ 56.7527 48.7376

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19651549/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits scfile=/lscratch/kocevski/19651549/ft2_4FGL_J0347.0+4844_weekly_bin780.fits outfile=/lscratch/kocevski/19651549/cmap_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=56.7527 yref=48.7376 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.71
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19651549/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits scfile=/lscratch/kocevski/19651549/ft2_4FGL_J0347.0+4844_weekly_bin780.fits outfile=/lscratch/kocevski/19651549/cmap_HighResolution_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=56.7527 yref=48.7376 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   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   74360.97     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      864 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16653E-09    6.5886        .10731E-06** at limit **
   2  Prefactor      .0000        .73112        .60516E-07** at limit **
   3  norm          3.5845        1.7458       -.13447E-07    .16296E-03
   4  Prefactor     6.4221        5.3739        .39366E-07    .44116E-03
   5  norm          3.5108        .45609        .16359E-07    .10240E-01
   6  Prefactor     .16653E-09    20.104        .65119E-06** at limit **
   7  Prefactor     .55511E-10    4.5235        .12662E-06** at limit **
   8  norm          .38858E-09    29.516       -.74747E-06** at limit **
   9  Prefactor     5.6774        7.5779       -.10529E-07   -.17049E-03
  10  Prefactor     .91069        2.2242       -.92427E-07   -.19130E-02
  11  Prefactor     .51625E-08    252.98       -.72412E-05** at limit **
  12  norm          .55511E-10    8.8473        .23736E-06** at limit **
  13  Prefactor      .0000        1.7218       -.15590E-06** at limit **
  14  Normalizat    1.3162        .18145       -.34959E-05   -.52523E-04
  15  Prefactor     .96998        .19859E-01   -.46415E-06   -.18948E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66533e-10
  Prefactor  = 0
  norm       = 3.58449
  Prefactor  = 6.42212
  norm       = 3.51077
  Prefactor  = 1.66533e-10
  Prefactor  = 5.55112e-11
  norm       = 3.88578e-10
  Prefactor  = 5.67737
  Prefactor  = 0.910686
  Prefactor  = 5.16254e-09
  norm       = 5.55112e-11
  Prefactor  = 0
  Normalizat = 1.31617
  Prefactor  = 0.969979
 **********
 **   18 **HESSE 
 **********

 FCN=   74360.97     FROM HESSE     STATUS=OK           218 CALLS     1082 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16653E-09    6.5877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        .72701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.5845        1.7497        .53347E-03   -1.5670    
   4  Prefactor     6.4221        5.3883        .39643E-03   -1.5657    
   5  norm          3.5108        .45744        .53924E-03   -1.5670    
   6  Prefactor     .16653E-09    20.178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-10    4.5429        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .38858E-09    29.764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6774        7.5844        .42442E-03   -1.5660    
  10  Prefactor     .91069        2.2400        .44922E-03   -1.5689    
  11  Prefactor     .51625E-08    6.5573        .16517E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    8.7731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        1.7274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.3162        .18132        .20366       -.83085    
  15  Prefactor     .96998        .19547E-01    .26445E-01   -.93737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.616e-07
Minuit parameter uncertainties:
  1  6.30349e-05
  2  4.44733e-06
  3  1.7497
  4  5.38826
  5  0.457438
  6  0.000120929
  7  2.94516e-05
  8  0.0002167
  9  7.58442
  10  2.23998
  11  0.000367164
  12  3.5235e-05
  13  4.2214e-06
  14  0.181407
  15  0.0195475
Done.

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

Extracting fit parameters...

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  5.551e-11  2.945e-05  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  2.577e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.700e-01  1.955e-02  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.316e+00  1.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 56.753 48.738
Photon Flux Upper Limit: 5.07291499326e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00396445181419 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19649999/likelihoodResults_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 74360.9766749
delta logL = -0.00296585443721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 74360.9737091
delta logL = -3.17522790283e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21472E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.8553       1.0000          .0000       10.000    
     3 'Normalizat'    1.3162       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96998       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   74360.97     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      260 TOTAL
                     EDM=   .95E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .30810E-01    .42118E-03** at limit **
   2  Index         .61705        9.1033        .50000       -.50932E-09
   3  Normalizat    1.3162        .13599E-02    .20366       -.47798E-04
   4  Prefactor     .96998        .15380E-03    .26445E-01   -.24396E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 0.617046
  Normalizat = 1.31617
  Prefactor  = 0.969979
 **********
 **   18 **HESSE 
 **********

 FCN=   74360.97     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .54E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .15391        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .61705        8.6124        .50000       -1.0687    
   3  Normalizat    1.3162        .30125E-02    .90817E-03   -.83085    
   4  Prefactor     .96998        .34385E-03    .11688E-03   -.93737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.43197e-13
Minuit parameter uncertainties:
  1  7.01593e-06
  2  35293
  3  0.00301247
  4  0.000343847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 74360.973709
delta logL = -1.16415321827e-10

Extracting fit parameters...

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  5.551e-11  7.016e-06  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  6.170e-01  3.529e+04  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.700e-01  3.438e-04  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.316e+00  3.012e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 56.753 48.738

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/19649999/cmap_HighResolution_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-03', job_status='DONE', photon_flux_upper_limit='5.07e-08', time_completed='2023-07-18 00:46:50.807062', job_id='19649999', GAL2='0.97', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1689666410.81', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-1.16e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='780' AND source_name='4FGL J0347.0+4844' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 00:46:51 PDT 2023

 (v3.41).

This is gtbin version HEAD
real 0.63
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19650864/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19650864/ft2_4FGL_J0347.0+4844_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19650864/Model_4FGL_J0347.0+4844_weekly_bin780.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/19650864/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits.....................!
real 456.73
user 452.40
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19650864/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits', '/lscratch/kocevski/19650864/ft2_4FGL_J0347.0+4844_weekly_bin780.fits', expMap='/lscratch/kocevski/19650864/expmap_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits', expCube='/lscratch/kocevski/19650864/ltcube_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19650864/Model_4FGL_J0347.0+4844_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0347.0+4844'

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  4.692e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  2.577e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19650864/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19650864/ft2_4FGL_J0347.0+4844_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19650864/expmap_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19650864/ltcube_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19650864/Model_4FGL_J0347.0+4844_weekly_bin780.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86368E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .15210E-07   1.0000          .0000       .10000E+07
     3 'norm      '    3.5850       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.4025       1.0000          .0000       .10000E+07
     5 'norm      '    3.5117       1.0000          .0000       .10000E+07
     6 'Prefactor '    .97670E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .72387E-07   1.0000          .0000       .10000E+07
     8 'norm      '    .46261E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    5.5966       1.0000          .0000       .10000E+07
    10 'Prefactor '    .91217       1.0000          .0000       .10000E+07
    11 'Prefactor '    .64222       1.0000          .0000       .10000E+07
    12 'norm      '    .66355E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .10872E-04   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.3159       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .96994       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   74360.97     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      864 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16653E-09    6.5886        .10731E-06** at limit **
   2  Prefactor      .0000        .73112        .60516E-07** at limit **
   3  norm          3.5845        1.7458       -.13447E-07    .16296E-03
   4  Prefactor     6.4221        5.3739        .39366E-07    .44116E-03
   5  norm          3.5108        .45609        .16359E-07    .10240E-01
   6  Prefactor     .16653E-09    20.104        .65119E-06** at limit **
   7  Prefactor     .55511E-10    4.5235        .12662E-06** at limit **
   8  norm          .38858E-09    29.516       -.74747E-06** at limit **
   9  Prefactor     5.6774        7.5779       -.10529E-07   -.17049E-03
  10  Prefactor     .91069        2.2242       -.92427E-07   -.19130E-02
  11  Prefactor     .51625E-08    252.98       -.72412E-05** at limit **
  12  norm          .55511E-10    8.8473        .23736E-06** at limit **
  13  Prefactor      .0000        1.7218       -.15590E-06** at limit **
  14  Normalizat    1.3162        .18145       -.34959E-05   -.52523E-04
  15  Prefactor     .96998        .19859E-01   -.46415E-06   -.18948E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66533e-10
  Prefactor  = 0
  norm       = 3.58449
  Prefactor  = 6.42212
  norm       = 3.51077
  Prefactor  = 1.66533e-10
  Prefactor  = 5.55112e-11
  norm       = 3.88578e-10
  Prefactor  = 5.67737
  Prefactor  = 0.910686
  Prefactor  = 5.16254e-09
  norm       = 5.55112e-11
  Prefactor  = 0
  Normalizat = 1.31617
  Prefactor  = 0.969979
 **********
 **   18 **HESSE 
 **********

 FCN=   74360.97     FROM HESSE     STATUS=OK           218 CALLS     1082 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16653E-09    6.5877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        .72701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.5845        1.7497        .53347E-03   -1.5670    
   4  Prefactor     6.4221        5.3883        .39643E-03   -1.5657    
   5  norm          3.5108        .45744        .53924E-03   -1.5670    
   6  Prefactor     .16653E-09    20.178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-10    4.5429        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .38858E-09    29.764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6774        7.5844        .42442E-03   -1.5660    
  10  Prefactor     .91069        2.2400        .44922E-03   -1.5689    
  11  Prefactor     .51625E-08    6.5573        .16517E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    8.7731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        1.7274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.3162        .18132        .20366       -.83085    
  15  Prefactor     .96998        .19547E-01    .26445E-01   -.93737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.616e-07
Minuit parameter uncertainties:
  1  6.30349e-05
  2  4.44733e-06
  3  1.7497
  4  5.38826
  5  0.457438
  6  0.000120929
  7  2.94516e-05
  8  0.0002167
  9  7.58442
  10  2.23998
  11  0.000367164
  12  3.5235e-05
  13  4.2214e-06
  14  0.181407
  15  0.0195475
 (v3.41).

This is gtbin version HEAD
real 0.62
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19651549/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19651549/ft2_4FGL_J0347.0+4844_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19651549/Model_4FGL_J0347.0+4844_weekly_bin780.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/19651549/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits.....................!
real 421.39
user 417.24
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19651549/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits', '/lscratch/kocevski/19651549/ft2_4FGL_J0347.0+4844_weekly_bin780.fits', expMap='/lscratch/kocevski/19651549/expmap_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits', expCube='/lscratch/kocevski/19651549/ltcube_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19651549/Model_4FGL_J0347.0+4844_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0347.0+4844'

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  4.692e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  2.577e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19651549/ft1_filtered_4FGL_J0347.0+4844_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19651549/ft2_4FGL_J0347.0+4844_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19651549/expmap_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19651549/ltcube_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19651549/Model_4FGL_J0347.0+4844_weekly_bin780.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86368E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .15210E-07   1.0000          .0000       .10000E+07
     3 'norm      '    3.5850       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.4025       1.0000          .0000       .10000E+07
     5 'norm      '    3.5117       1.0000          .0000       .10000E+07
     6 'Prefactor '    .97670E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .72387E-07   1.0000          .0000       .10000E+07
     8 'norm      '    .46261E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    5.5966       1.0000          .0000       .10000E+07
    10 'Prefactor '    .91217       1.0000          .0000       .10000E+07
    11 'Prefactor '    .64222       1.0000          .0000       .10000E+07
    12 'norm      '    .66355E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .10872E-04   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.3159       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .96994       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   74360.97     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      864 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16653E-09    6.5886        .10731E-06** at limit **
   2  Prefactor      .0000        .73112        .60516E-07** at limit **
   3  norm          3.5845        1.7458       -.13447E-07    .16296E-03
   4  Prefactor     6.4221        5.3739        .39366E-07    .44116E-03
   5  norm          3.5108        .45609        .16359E-07    .10240E-01
   6  Prefactor     .16653E-09    20.104        .65119E-06** at limit **
   7  Prefactor     .55511E-10    4.5235        .12662E-06** at limit **
   8  norm          .38858E-09    29.516       -.74747E-06** at limit **
   9  Prefactor     5.6774        7.5779       -.10529E-07   -.17049E-03
  10  Prefactor     .91069        2.2242       -.92427E-07   -.19130E-02
  11  Prefactor     .51625E-08    252.98       -.72412E-05** at limit **
  12  norm          .55511E-10    8.8473        .23736E-06** at limit **
  13  Prefactor      .0000        1.7218       -.15590E-06** at limit **
  14  Normalizat    1.3162        .18145       -.34959E-05   -.52523E-04
  15  Prefactor     .96998        .19859E-01   -.46415E-06   -.18948E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66533e-10
  Prefactor  = 0
  norm       = 3.58449
  Prefactor  = 6.42212
  norm       = 3.51077
  Prefactor  = 1.66533e-10
  Prefactor  = 5.55112e-11
  norm       = 3.88578e-10
  Prefactor  = 5.67737
  Prefactor  = 0.910686
  Prefactor  = 5.16254e-09
  norm       = 5.55112e-11
  Prefactor  = 0
  Normalizat = 1.31617
  Prefactor  = 0.969979
 **********
 **   18 **HESSE 
 **********

 FCN=   74360.97     FROM HESSE     STATUS=OK           218 CALLS     1082 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16653E-09    6.5877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        .72701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.5845        1.7497        .53347E-03   -1.5670    
   4  Prefactor     6.4221        5.3883        .39643E-03   -1.5657    
   5  norm          3.5108        .45744        .53924E-03   -1.5670    
   6  Prefactor     .16653E-09    20.178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-10    4.5429        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .38858E-09    29.764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6774        7.5844        .42442E-03   -1.5660    
  10  Prefactor     .91069        2.2400        .44922E-03   -1.5689    
  11  Prefactor     .51625E-08    6.5573        .16517E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    8.7731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        1.7274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.3162        .18132        .20366       -.83085    
  15  Prefactor     .96998        .19547E-01    .26445E-01   -.93737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.616e-07
Minuit parameter uncertainties:
  1  6.30349e-05
  2  4.44733e-06
  3  1.7497
  4  5.38826
  5  0.457438
  6  0.000120929
  7  2.94516e-05
  8  0.0002167
  9  7.58442
  10  2.23998
  11  0.000367164
  12  3.5235e-05
  13  4.2214e-06
  14  0.181407
  15  0.0195475
Done.

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

Extracting fit parameters...

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  5.551e-11  2.945e-05  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  2.577e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.700e-01  1.955e-02  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.316e+00  1.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 56.753 48.738
Photon Flux Upper Limit: 5.07291499326e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00396445181419 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19650864/likelihoodResults_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 74360.9766749
delta logL = -0.00296585443721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 74360.9737091
delta logL = -3.17522790283e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21472E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.8553       1.0000          .0000       10.000    
     3 'Normalizat'    1.3162       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96998       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   74360.97     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      260 TOTAL
                     EDM=   .95E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .30810E-01    .42118E-03** at limit **
   2  Index         .61705        9.1033        .50000       -.50932E-09
   3  Normalizat    1.3162        .13599E-02    .20366       -.47798E-04
   4  Prefactor     .96998        .15380E-03    .26445E-01   -.24396E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 0.617046
  Normalizat = 1.31617
  Prefactor  = 0.969979
 **********
 **   18 **HESSE 
 **********

 FCN=   74360.97     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .54E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .15391        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .61705        8.6124        .50000       -1.0687    
   3  Normalizat    1.3162        .30125E-02    .90817E-03   -.83085    
   4  Prefactor     .96998        .34385E-03    .11688E-03   -.93737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.43197e-13
Minuit parameter uncertainties:
  1  7.01593e-06
  2  35293
  3  0.00301247
  4  0.000343847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 74360.973709
delta logL = -1.16415321827e-10

Extracting fit parameters...

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  5.551e-11  7.016e-06  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  6.170e-01  3.529e+04  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.700e-01  3.438e-04  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.316e+00  3.012e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 56.753 48.738

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/19650864/cmap_HighResolution_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-03', job_status='DONE', photon_flux_upper_limit='5.07e-08', time_completed='2023-07-18 00:56:05.675188', job_id='19650864', GAL2='0.97', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1689666965.68', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-1.16e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='780' AND source_name='4FGL J0347.0+4844' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 00:56:06 PDT 2023

Done.

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

Extracting fit parameters...

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  5.551e-11  2.945e-05  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  2.577e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.700e-01  1.955e-02  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.316e+00  1.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 56.753 48.738
Photon Flux Upper Limit: 5.07291499326e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00396445181419 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19651549/likelihoodResults_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 74360.9766749
delta logL = -0.00296585443721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 74360.9737091
delta logL = -3.17522790283e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21472E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.8553       1.0000          .0000       10.000    
     3 'Normalizat'    1.3162       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96998       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   74360.97     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      260 TOTAL
                     EDM=   .95E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .30810E-01    .42118E-03** at limit **
   2  Index         .61705        9.1033        .50000       -.50932E-09
   3  Normalizat    1.3162        .13599E-02    .20366       -.47798E-04
   4  Prefactor     .96998        .15380E-03    .26445E-01   -.24396E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 0.617046
  Normalizat = 1.31617
  Prefactor  = 0.969979
 **********
 **   18 **HESSE 
 **********

 FCN=   74360.97     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .54E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .15391        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .61705        8.6124        .50000       -1.0687    
   3  Normalizat    1.3162        .30125E-02    .90817E-03   -.83085    
   4  Prefactor     .96998        .34385E-03    .11688E-03   -.93737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.43197e-13
Minuit parameter uncertainties:
  1  7.01593e-06
  2  35293
  3  0.00301247
  4  0.000343847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 74360.973709
delta logL = -1.16415321827e-10

Extracting fit parameters...

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  5.551e-11  7.016e-06  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  6.170e-01  3.529e+04  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.700e-01  3.438e-04  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.316e+00  3.012e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 56.753 48.738

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/19651549/cmap_HighResolution_710726401_711331201_4FGL_J0347.0+4844_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-03', job_status='DONE', photon_flux_upper_limit='5.07e-08', time_completed='2023-07-18 00:59:04.355513', job_id='19651549', GAL2='0.97', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1689667144.36', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-1.16e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='780' AND source_name='4FGL J0347.0+4844' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 00:59:04 PDT 2023

