/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_J0359.6+5057_weekly_bin853
RA = 59.9158, Dec = 50.959
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='59976533', job_status='RUN', time_executed='2024-12-10 00:02:24.574530', time_epoch_executed='1733817744.57' WHERE source_name='4FGL J0359.6+5057' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59976533

Creating custom pfile directory:
/lscratch/kocevski/59976533/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/59976533/ft1_4FGL_J0359.6+5057_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/59976533/ft2_4FGL_J0359.6+5057_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59976533/ft1_4FGL_J0359.6+5057_weekly_bin853.fits outfile=/lscratch/kocevski/59976533/ft1_filteredMKT_4FGL_J0359.6+5057_weekly_bin853.fits ra=59.9158 dec=50.959 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 3.50
user 3.04
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/59976533/ft2_4FGL_J0359.6+5057_weekly_bin853.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59976533/ft2_4FGL_J0359.6+5057_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/59976533/ft1_filteredMKT_4FGL_J0359.6+5057_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59976533/ft1_filtered_4FGL_J0359.6+5057_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.53
user 0.20
sys 0.15

Number of photons that the gtmktime cut: 995

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59976533/ft1_filtered_4FGL_J0359.6+5057_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59976533/ft2_4FGL_J0359.6+5057_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59976533/ltcube_754876801_755481601_4FGL_J0359.6+5057_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/59976533/ft2_4FGL_J0359.6+5057_weekly_bin853.fits
.....................!
real 22.96
user 22.22
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59976533/ft1_filtered_4FGL_J0359.6+5057_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59976533/ft2_4FGL_J0359.6+5057_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59976533/ltcube_754876801_755481601_4FGL_J0359.6+5057_weekly_bin853.fits outfile=/lscratch/kocevski/59976533/expmap_754876801_755481601_4FGL_J0359.6+5057_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/59976533/ltcube_754876801_755481601_4FGL_J0359.6+5057_weekly_bin853.fits
.....................!
real 67.05
user 62.99
sys 3.47

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 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.
Extended source HB 3 in ROI with RadialDisk spatial model.
Added 166 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 J0359.6+5057 @ 59.9158 50.959

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/59976533/ft1_filtered_4FGL_J0359.6+5057_weekly_bin853.fits scfile=/lscratch/kocevski/59976533/ft2_4FGL_J0359.6+5057_weekly_bin853.fits outfile=/lscratch/kocevski/59976533/cmap_754876801_755481601_4FGL_J0359.6+5057_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=59.9158 yref=50.959 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.50
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59976533/ft1_filtered_4FGL_J0359.6+5057_weekly_bin853.fits scfile=/lscratch/kocevski/59976533/ft2_4FGL_J0359.6+5057_weekly_bin853.fits outfile=/lscratch/kocevski/59976533/cmap_HighResolution_754876801_755481601_4FGL_J0359.6+5057_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=59.9158 yref=50.959 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.49
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59976533/ft1_filtered_4FGL_J0359.6+5057_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59976533/ft2_4FGL_J0359.6+5057_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59976533/Model_4FGL_J0359.6+5057_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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/59976533/ft1_filtered_4FGL_J0359.6+5057_weekly_bin853.fits.....................!
real 68.61
user 67.12
sys 0.77

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59976533/ft1_filtered_4FGL_J0359.6+5057_weekly_bin853.fits', '/lscratch/kocevski/59976533/ft2_4FGL_J0359.6+5057_weekly_bin853.fits', expMap='/lscratch/kocevski/59976533/expmap_754876801_755481601_4FGL_J0359.6+5057_weekly_bin853.fits', expCube='/lscratch/kocevski/59976533/ltcube_754876801_755481601_4FGL_J0359.6+5057_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59976533/Model_4FGL_J0359.6+5057_weekly_bin853.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0359.6+5057'

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  8.547e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.635e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/59976533/ft1_filtered_4FGL_J0359.6+5057_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59976533/ft2_4FGL_J0359.6+5057_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59976533/expmap_754876801_755481601_4FGL_J0359.6+5057_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59976533/ltcube_754876801_755481601_4FGL_J0359.6+5057_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59976533/Model_4FGL_J0359.6+5057_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) = 9595.12314069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10550E-04   1.0000          .0000       .10000E+07
     2 'norm      '    8.2373       1.0000          .0000       .10000E+07
     3 'norm      '    6.4636       1.0000          .0000       .10000E+07
     4 'Prefactor '    .87208       1.0000          .0000       .10000E+07
     5 'norm      '    .88954       1.0000          .0000       .10000E+07
     6 'Prefactor '    33.076       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.687       1.0000          .0000       .10000E+07
     8 'Prefactor '    73.185       1.0000          .0000       .10000E+07
     9 'norm      '    35.325       1.0000          .0000       .10000E+07
    10 'Prefactor '    .25325E-05   1.0000          .0000       .10000E+07
    11 'Normalizat'    .28409       1.0000         .10000E-01   10.000    
    12 'Prefactor '    .97955       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9595.122     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      779 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    3.5901       -.32681E-06** at limit **
   2  norm          8.2457        6.7252        .25671E-07   -.24184E-03
   3  norm          6.4694        1.9558        .97614E-08   -.37244E-03
   4  Prefactor     .16227E-04    202.94        .59450E-05** at limit **
   5  norm          .14682E-03    170.41        .23206E-05** at limit **
   6  Prefactor     34.926        38.681       -.80116E-07   -.10034    
   7  Prefactor     10.750        7.8697       -.10291E-06    .43914E-03
   8  Prefactor     73.215        13.204       -.16283E-06    .34431E-01
   9  norm          35.246        19.683        .40359E-07   -.71295E-03
  10  Prefactor      .0000        4.3112       -.12182E-06** at limit **
  11  Normalizat    .28406        .51399       -.10894E-04    .87715E-05
  12  Prefactor     .97945        .57635E-01    .34113E-06    .59958E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 8.24566
  norm       = 6.46941
  Prefactor  = 1.62273e-05
  norm       = 0.00014682
  Prefactor  = 34.9265
  Prefactor  = 10.7501
  Prefactor  = 73.2148
  norm       = 35.2457
  Prefactor  = 0
  Normalizat = 0.284064
  Prefactor  = 0.979448
 **********
 **   18 **HESSE 
 **********

 FCN=   9595.122     FROM HESSE     STATUS=OK           155 CALLS      934 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    3.5765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.2457        7.2743        .34907E-03   -1.5651    
   3  norm          6.4694        2.4841        .39453E-03   -1.5657    
   4  Prefactor     .16227E-04    211.87        .47710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .14682E-03    230.86        .46486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.926        76.505        .17390E-03   -1.5590    
   7  Prefactor     10.750        9.7243        .30623E-03   -1.5642    
   8  Prefactor     73.215        70.430        .11690E-03   -1.5537    
   9  norm          35.246        20.069        .16827E-03   -1.5589    
  10  Prefactor      .0000        4.3189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Normalizat    .28406        5.5538        .36421       -1.2380    
  12  Prefactor     .97945        .19495        .25346E-01   -.93418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51316e-06
Minuit parameter uncertainties:
  1  3.11446e-05
  2  7.27433
  3  2.48409
  4  0.117273
  5  0.368227
  6  76.5069
  7  9.72434
  8  70.4304
  9  20.0689
  10  1.17474e-05
  11  1.79135
  12  0.195085
Done.

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

Extracting fit parameters...

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  3.525e+01  2.007e+01  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.635e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.794e-01  1.951e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  2.841e-01  1.791e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.58
Ra Dec: 59.916 50.959
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 3.16e-07 +/- 1.80e-07
Energy Flux (Fixed Index): 8.44e-05 +/- 4.81e-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) = 9595.00896454
delta logL = 0.113029933755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9595.0050996
delta logL = 0.11689487349

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.943       1.0000          .0000       .10000E+07
     2 'alpha     '    2.9147       1.0000          .0000       5.0000    
     3 'Normalizat'    .25616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98097       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9595.005     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      301 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.947        26.743        .77076E-05   -.54510E-02
   2  alpha         2.9149        .68121        .12237E-01   -.11745E-03
   3  Normalizat    .25600        .52176        .17749E-01    .88460E-04
   4  Prefactor     .98096        .59710E-01    .11194E-03    .19770E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 26.9473
  alpha      = 2.91495
  Normalizat = 0.255996
  Prefactor  = 0.980956
 **********
 **   18 **HESSE 
 **********

 FCN=   9595.005     FROM HESSE     STATUS=OK            27 CALLS      328 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.947        23.873        .15415E-05   -1.5604    
   2  alpha         2.9149        .60899        .48947E-03    .16675    
   3  Normalizat    .25600        .50105        .70998E-03   -1.2557    
   4  Prefactor     .98096        .57320E-01    .22389E-04   -.93367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14028e-09
Minuit parameter uncertainties:
  1  23.8729
  2  0.615361
  3  0.510235
  4  0.0573231
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) = 9595.0050989
delta logL = 0.116895573958

Extracting fit parameters...

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  2.695e+01  2.387e+01  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.915e+00  6.154e-01  0.000e+00  5.000e+00 ( 1.000e+00)
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.810e-01  5.732e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  2.560e-01  5.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.82
Ra Dec: 59.916 50.959
Photon Index (Free Index): 2.91 +/- 0.62
Photon Flux (Free Index): 3.54e-07 +/- 1.99e-07
Energy Flux (Free Index): 7.94e-05 +/- 4.47e-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/59976533/cmap_HighResolution_754876801_755481601_4FGL_J0359.6+5057_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.16e-07', energy_flux2='7.94e-05', photon_flux_error='1.80e-07', dlogl='1.17e-01', energy_flux='8.44e-05', photon_flux2='3.54e-07', job_status='DONE', time_completed='2024-12-10 00:08:16.381471', photon_index_error2='0.62', photon_index2='2.91', ts='4.58', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='4.47e-05', EG='0.28', time_epoch_completed='1733818096.38', return_code='0', job_id='59976533', GAL2='0.98', EG2='0.26', return_code2='0', energy_flux_error='4.81e-05', photon_flux_error2='1.99e-07', ts2='4.82', photon_index='2.64' WHERE bin_id='853' AND source_name='4FGL J0359.6+5057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 00:08:16 PST 2024

