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


Performing analysis on: 4FGL_J0217.4+7352_weekly_bin853
RA = 34.3533, Dec = 73.8804
tmin = 754876801, tmax = 755481601
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='59976409', job_status='RUN', time_executed='2024-12-10 00:02:11.466706', time_epoch_executed='1733817731.47' WHERE source_name='4FGL J0217.4+7352' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59976409

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59976409/ft1_4FGL_J0217.4+7352_weekly_bin853.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59976409/ft2_4FGL_J0217.4+7352_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59976409/ft1_4FGL_J0217.4+7352_weekly_bin853.fits outfile=/lscratch/kocevski/59976409/ft1_filteredMKT_4FGL_J0217.4+7352_weekly_bin853.fits ra=34.3533 dec=73.8804 rad=12.0 tmin=754876801.0 tmax=755481601.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.37
user 3.27
sys 0.34

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/59976409/ft2_4FGL_J0217.4+7352_weekly_bin853.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59976409/ft2_4FGL_J0217.4+7352_weekly_bin853.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/59976409/ft1_filteredMKT_4FGL_J0217.4+7352_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59976409/ft1_filtered_4FGL_J0217.4+7352_weekly_bin853.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.85
user 0.25
sys 0.17

Number of photons that the gtmktime cut: 4355

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59976409/ft1_filtered_4FGL_J0217.4+7352_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59976409/ft2_4FGL_J0217.4+7352_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59976409/ltcube_754876801_755481601_4FGL_J0217.4+7352_weekly_bin853.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/59976409/ft2_4FGL_J0217.4+7352_weekly_bin853.fits
.....................!
real 49.18
user 47.52
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59976409/ft1_filtered_4FGL_J0217.4+7352_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59976409/ft2_4FGL_J0217.4+7352_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59976409/ltcube_754876801_755481601_4FGL_J0217.4+7352_weekly_bin853.fits outfile=/lscratch/kocevski/59976409/expmap_754876801_755481601_4FGL_J0217.4+7352_weekly_bin853.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/59976409/ltcube_754876801_755481601_4FGL_J0217.4+7352_weekly_bin853.fits
.....................!
real 74.61
user 68.46
sys 4.33

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 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 193 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0217.4+7352 @ 34.3533 73.8804

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/59976409/ft1_filtered_4FGL_J0217.4+7352_weekly_bin853.fits scfile=/lscratch/kocevski/59976409/ft2_4FGL_J0217.4+7352_weekly_bin853.fits outfile=/lscratch/kocevski/59976409/cmap_754876801_755481601_4FGL_J0217.4+7352_weekly_bin853.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=34.3533 yref=73.8804 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.63
user 0.27
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59976409/ft1_filtered_4FGL_J0217.4+7352_weekly_bin853.fits scfile=/lscratch/kocevski/59976409/ft2_4FGL_J0217.4+7352_weekly_bin853.fits outfile=/lscratch/kocevski/59976409/cmap_HighResolution_754876801_755481601_4FGL_J0217.4+7352_weekly_bin853.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=34.3533 yref=73.8804 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.84
user 0.27
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59976409/ft1_filtered_4FGL_J0217.4+7352_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59976409/ft2_4FGL_J0217.4+7352_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59976409/Model_4FGL_J0217.4+7352_weekly_bin853.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 HB 3
adding source W 3
Working on...
/lscratch/kocevski/59976409/ft1_filtered_4FGL_J0217.4+7352_weekly_bin853.fits.....................!
real 240.02
user 236.50
sys 0.88

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59976409/ft1_filtered_4FGL_J0217.4+7352_weekly_bin853.fits', '/lscratch/kocevski/59976409/ft2_4FGL_J0217.4+7352_weekly_bin853.fits', expMap='/lscratch/kocevski/59976409/expmap_754876801_755481601_4FGL_J0217.4+7352_weekly_bin853.fits', expCube='/lscratch/kocevski/59976409/ltcube_754876801_755481601_4FGL_J0217.4+7352_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59976409/Model_4FGL_J0217.4+7352_weekly_bin853.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0217.4+7352'

4FGL J0217.4+7352
   Spectrum: PowerLaw
214    Prefactor:  1.785e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
215        Index:  2.940e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
216        Scale:  3.641e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/59976409/ft1_filtered_4FGL_J0217.4+7352_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59976409/ft2_4FGL_J0217.4+7352_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59976409/expmap_754876801_755481601_4FGL_J0217.4+7352_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59976409/ltcube_754876801_755481601_4FGL_J0217.4+7352_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59976409/Model_4FGL_J0217.4+7352_weekly_bin853.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) = 43155.1458741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1826       1.0000          .0000       .10000E+07
     2 'Prefactor '    .31808E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    .35760E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .64828       1.0000         .10000E-03   10000.    
     5 'norm      '    2.8707       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.1897       1.0000          .0000       .10000E+07
     7 'Prefactor '    .70779E-02   1.0000          .0000       .10000E+07
     8 'norm      '    1.2739       1.0000          .0000       .10000E+07
     9 'norm      '    .51426E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    36.388       1.0000          .0000       .10000E+07
    11 'Prefactor '    .93259E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.3817       1.0000          .0000       .10000E+07
    13 'Prefactor '    .29721E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .38047E-06   1.0000          .0000       .10000E+07
    15 'Normalizat'    1.3352       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .94300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   43155.14     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1363 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1822        1.6861       -.45251E-07   -.31736E-02
   2  Prefactor      .0000        6.1227        .11772E-06** at limit **
   3  Prefactor     .48583E-06    410.75        .40177E-05** at limit **
   4  Prefactor     .64806        .75854        .24557E-07   -.69000E-04
   5  norm          2.8792        6.6844        .12164E-06   -.83671E-03
   6  Prefactor     5.1918        2.4798        .16946E-07   -.66993E-02
   7  Prefactor     .41500E-06    185.29        .23003E-05** at limit **
   8  norm          1.2726        10.257       -.19880E-07   -.31415E-03
   9  norm          .55511E-10    5.8418       -.79436E-07** at limit **
  10  Prefactor     36.430        2.8838       -.57253E-07    .12377    
  11  Prefactor      .0000        3.3318       -.40006E-07** at limit **
  12  Prefactor     4.3806        4.5884       -.30129E-07   -.11502E-02
  13  Prefactor     .55511E-10    6.3628       -.28908E-07** at limit **
  14  Prefactor      .0000        3.2927       -.23018E-07** at limit **
  15  Normalizat    1.3353        .16974       -.10455E-05   -.11774E-03
  16  Prefactor     .94299        .28233E-01    .10011E-06   -.76727E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.18219
  Prefactor  = 0
  Prefactor  = 4.85834e-07
  Prefactor  = 0.648058
  norm       = 2.87924
  Prefactor  = 5.19176
  Prefactor  = 4.15001e-07
  norm       = 1.27261
  norm       = 5.55112e-11
  Prefactor  = 36.4299
  Prefactor  = 0
  Prefactor  = 4.38061
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Normalizat = 1.33528
  Prefactor  = 0.942994
 **********
 **   18 **HESSE 
 **********

 FCN=   43155.14     FROM HESSE     STATUS=OK           245 CALLS     1608 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1822        1.6992        .10500E-02   -1.5686    
   2  Prefactor      .0000        6.1723        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .48583E-06    417.25        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .64806        .75878        .44694E-01   -1.5547    
   5  norm          2.8792        6.6131        .59967E-03   -1.5674    
   6  Prefactor     5.1918        2.4375        .44103E-03   -1.5662    
   7  Prefactor     .41500E-06    3.6465        .87115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2726        9.6216        .98457E-03   -1.5685    
   9  norm          .55511E-10    5.8892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     36.430        44.816        .16580E-03   -1.5587    
  11  Prefactor      .0000        3.3230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3806        4.5970        .48091E-03   -1.5666    
  13  Prefactor     .55511E-10    6.4298        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        3.3528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.3353        .16813        .14803       -.82519    
  16  Prefactor     .94299        .27128E-01    .29387E-01   -.94655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76553e-06
Minuit parameter uncertainties:
  1  1.69922
  2  2.05776e-05
  3  0.0284773
  4  0.758794
  5  6.61316
  6  2.4375
  7  0.00246028
  8  6.99846
  9  3.05029e-05
  10  44.8162
  11  9.35791e-06
  12  4.59704
  13  2.85378e-05
  14  1.43974e-05
  15  0.168203
  16  0.0271288
Done.

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

Extracting fit parameters...

4FGL J0217.4+7352
   Spectrum: PowerLaw
214    Prefactor:  5.192e+00  2.437e+00  0.000e+00  1.000e+06 ( 1.000e-11)
215        Index:  2.940e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
216        Scale:  3.641e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  9.430e-01  2.713e-02  0.000e+00  1.000e+01 ( 1.000e+00)
641        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
642        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
639   Normalization:  1.335e+00  1.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.91
Ra Dec: 34.353 73.880
Photon Index (Fixed Index): 2.94 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 5.61e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 1.16e-05

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) = 43155.1373956
delta logL = 0.00531839893665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 43155.1363062
delta logL = 0.00640782630217

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   43155.14     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      298 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3017        2.7244        .87258E-04    .17960E-01
   2  Index         2.8818        .52367        .15162E-01    .19418E-04
   3  Normalizat    1.3380        .16571        .65725E-03    .37362E-05
   4  Prefactor     .94274        .27885E-01    .12988E-03   -.56020E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.30172
  Index      = 2.88182
  Normalizat = 1.33801
  Prefactor  = 0.942743
 **********
 **   18 **HESSE 
 **********

 FCN=   43155.14     FROM HESSE     STATUS=OK            27 CALLS      325 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3017        2.6217        .17452E-04   -1.5662    
   2  Index         2.8818        .50398        .60647E-03   -.43745    
   3  Normalizat    1.3380        .16580        .26290E-04   -.82439    
   4  Prefactor     .94274        .27873E-01    .51952E-05   -.94663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60447e-12
Minuit parameter uncertainties:
  1  2.62167
  2  0.505027
  3  0.165862
  4  0.0278736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 43155.1363061
delta logL = 0.00640794810897

Extracting fit parameters...

4FGL J0217.4+7352
   Spectrum: PowerLaw
214    Prefactor:  5.302e+00  2.622e+00  0.000e+00  1.000e+06 ( 1.000e-11)
215        Index:  2.882e+00  5.050e-01  0.000e+00  1.000e+01 (-1.000e+00)
216        Scale:  3.641e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  9.427e-01  2.787e-02  0.000e+00  1.000e+01 ( 1.000e+00)
641        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
642        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
639   Normalization:  1.338e+00  1.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.91
Ra Dec: 34.353 73.880
Photon Index (Free Index): 2.88 +/- 0.51
Photon Flux (Free Index): 1.17e-07 +/- 6.04e-08
Energy Flux (Free Index): 2.49e-05 +/- 1.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/59976409/cmap_HighResolution_754876801_755481601_4FGL_J0217.4+7352_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='2.49e-05', photon_flux_error='5.61e-08', dlogl='6.41e-03', energy_flux='2.46e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2024-12-10 00:20:42.018748', photon_index_error2='0.51', photon_index2='2.88', ts='5.91', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='1.34', time_epoch_completed='1733818842.02', return_code='0', job_id='59976409', GAL2='0.94', EG2='1.34', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='6.04e-08', ts2='5.91', photon_index='2.94' WHERE bin_id='853' AND source_name='4FGL J0217.4+7352' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 00:20:42 PST 2024

