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


Performing analysis on: 4FGL_J0515.8+1527_weekly_bin855
RA = 78.953, Dec = 15.4614
tmin = 756086401, tmax = 756691201
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='60725526', job_status='RUN', time_executed='2024-12-24 03:05:13.526711', time_epoch_executed='1735038313.53' WHERE source_name='4FGL J0515.8+1527' and cadence='weekly' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60725526

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

Retrieving the FT1 file...

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

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

Retrieving 65 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60725526/ft1_4FGL_J0515.8+1527_weekly_bin855.fits


Retrieving the FT1 file...

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

Retrieving 65 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60725526/ft2_4FGL_J0515.8+1527_weekly_bin855.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60725526/ft1_4FGL_J0515.8+1527_weekly_bin855.fits outfile=/lscratch/kocevski/60725526/ft1_filteredMKT_4FGL_J0515.8+1527_weekly_bin855.fits ra=78.953 dec=15.4614 rad=12.0 tmin=756086401.0 tmax=756691201.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.11
user 2.63
sys 0.29

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60725526/ft2_4FGL_J0515.8+1527_weekly_bin855.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60725526/ft2_4FGL_J0515.8+1527_weekly_bin855.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/60725526/ft1_filteredMKT_4FGL_J0515.8+1527_weekly_bin855.fits evtable="EVENTS" outfile="/lscratch/kocevski/60725526/ft1_filtered_4FGL_J0515.8+1527_weekly_bin855.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.49
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 3248

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60725526/ft1_filtered_4FGL_J0515.8+1527_weekly_bin855.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60725526/ft2_4FGL_J0515.8+1527_weekly_bin855.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60725526/ltcube_756086401_756691201_4FGL_J0515.8+1527_weekly_bin855.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/60725526/ft2_4FGL_J0515.8+1527_weekly_bin855.fits
.....................!
real 11.87
user 11.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60725526/ft1_filtered_4FGL_J0515.8+1527_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60725526/ft2_4FGL_J0515.8+1527_weekly_bin855.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60725526/ltcube_756086401_756691201_4FGL_J0515.8+1527_weekly_bin855.fits outfile=/lscratch/kocevski/60725526/expmap_756086401_756691201_4FGL_J0515.8+1527_weekly_bin855.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/60725526/ltcube_756086401_756691201_4FGL_J0515.8+1527_weekly_bin855.fits
.....................!
real 71.25
user 66.08
sys 4.13

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 S 147 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/S147.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 165 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 J0515.8+1527 @ 78.953 15.4614

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60725526/ft1_filtered_4FGL_J0515.8+1527_weekly_bin855.fits scfile=/lscratch/kocevski/60725526/ft2_4FGL_J0515.8+1527_weekly_bin855.fits outfile=/lscratch/kocevski/60725526/cmap_756086401_756691201_4FGL_J0515.8+1527_weekly_bin855.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=78.953 yref=15.4614 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.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60725526/ft1_filtered_4FGL_J0515.8+1527_weekly_bin855.fits scfile=/lscratch/kocevski/60725526/ft2_4FGL_J0515.8+1527_weekly_bin855.fits outfile=/lscratch/kocevski/60725526/cmap_HighResolution_756086401_756691201_4FGL_J0515.8+1527_weekly_bin855.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=78.953 yref=15.4614 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.54
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60725526/ft1_filtered_4FGL_J0515.8+1527_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60725526/ft2_4FGL_J0515.8+1527_weekly_bin855.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60725526/Model_4FGL_J0515.8+1527_weekly_bin855.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 IC 443
adding source S 147
Working on...
/lscratch/kocevski/60725526/ft1_filtered_4FGL_J0515.8+1527_weekly_bin855.fits.....................!
real 288.36
user 284.53
sys 0.85

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60725526/ft1_filtered_4FGL_J0515.8+1527_weekly_bin855.fits', '/lscratch/kocevski/60725526/ft2_4FGL_J0515.8+1527_weekly_bin855.fits', expMap='/lscratch/kocevski/60725526/expmap_756086401_756691201_4FGL_J0515.8+1527_weekly_bin855.fits', expCube='/lscratch/kocevski/60725526/ltcube_756086401_756691201_4FGL_J0515.8+1527_weekly_bin855.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60725526/Model_4FGL_J0515.8+1527_weekly_bin855.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0515.8+1527'

4FGL J0515.8+1527
   Spectrum: PowerLaw
237    Prefactor:  1.467e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
238        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  3.068e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60725526/ft1_filtered_4FGL_J0515.8+1527_weekly_bin855.fits
Spacecraft file(s): /lscratch/kocevski/60725526/ft2_4FGL_J0515.8+1527_weekly_bin855.fits
Exposure map: /lscratch/kocevski/60725526/expmap_756086401_756691201_4FGL_J0515.8+1527_weekly_bin855.fits
Exposure cube: /lscratch/kocevski/60725526/ltcube_756086401_756691201_4FGL_J0515.8+1527_weekly_bin855.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60725526/Model_4FGL_J0515.8+1527_weekly_bin855.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) = 32599.6970247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93202E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .44319E-02   1.0000          .0000       .10000E+07
     3 'norm      '    7.1264       1.0000          .0000       .10000E+07
     4 'Prefactor '    .15753       1.0000          .0000       .10000E+07
     5 'Prefactor '    54.186       1.0000          .0000       .10000E+07
     6 'Prefactor '    .16853E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .43723       1.0000          .0000       .10000E+07
     8 'norm      '    1.4640       1.0000          .0000       .10000E+07
     9 'Prefactor '    .97589E-07   1.0000          .0000       .10000E+07
    10 'norm      '    .93909E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    6.4499       1.0000          .0000       .10000E+07
    12 'Prefactor '    178.68       1.0000          .0000       .10000E+07
    13 'norm      '    3.6408       1.0000          .0000       .10000E+07
    14 'norm      '    .23743E-01   1.0000          .0000       .10000E+07
    15 'norm      '    1.1852       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.1179       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2590       1.0000          .0000       .10000E+07
    18 'Prefactor '    .57285E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .53940E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    9.4575       1.0000          .0000       .10000E+07
    21 'Normalizat'    .59771       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0396       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   32595.05     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     1180 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        10.514       -.44748E-06** at limit **
   2  Prefactor      .0000        11.823       -.13237E-05** at limit **
   3  norm          7.1284        2.2090       -.58899E-07   -.33306E-02
   4  Prefactor      .0000        20.477        .10747E-05** at limit **
   5  Prefactor     54.757        27.083        .23659E-05    .56305E-03
   6  Prefactor     .55511E-10    1.6161       -.40778E-06** at limit **
   7  norm          .43461        .39686       -.33918E-06    .96304E-02
   8  norm          1.4615        1.8041       -.18141E-06   -.60424E-03
   9  Prefactor      .0000        .84970       -.30606E-06** at limit **
  10  norm           .0000        10.783       -.68214E-06** at limit **
  11  Prefactor     6.4399        4.3972        .63961E-06   -.18901E-02
  12  Prefactor     179.72        60.041        .63778E-06   -.21552E-03
  13  norm          3.6406        1.9333        .26584E-08   -.17986E-02
  14  norm          .55511E-10    40.628       -.25458E-06** at limit **
  15  norm          1.1855        .86055        .50735E-08   -.78602E-02
  16  Prefactor     1.1179        .10296       -.18309E-06   -.28763E-02
  17  Prefactor     3.2590        .85050        .12149E-06   -.40376E-02
  18  Prefactor     .88818E-09    54.279        .48225E-05** at limit **
  19  Prefactor     .11102E-09    25.514        .10490E-05** at limit **
  20  Prefactor     9.4663        4.2146        .28061E-06    .15617E-02
  21  Normalizat    .59637        .26374       -.37270E-04   -.51535E-04
  22  Prefactor     1.0398        .41188E-01    .24488E-05   -.13699E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  norm       = 7.12845
  Prefactor  = 0
  Prefactor  = 54.7568
  Prefactor  = 5.55112e-11
  norm       = 0.434609
  norm       = 1.46153
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.43994
  Prefactor  = 179.72
  norm       = 3.64064
  norm       = 5.55112e-11
  norm       = 1.18552
  Prefactor  = 1.11788
  Prefactor  = 3.25903
  Prefactor  = 8.88178e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 9.46626
  Normalizat = 0.596374
  Prefactor  = 1.03977
 **********
 **   18 **HESSE 
 **********

 FCN=   32595.05     FROM HESSE     STATUS=OK           398 CALLS     1578 TOTAL
                     EDM=   .89E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        10.448        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        11.822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.1284        2.2796        .37553E-03   -1.5655    
   4  Prefactor      .0000        20.405        .12586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     54.757        28.211        .13586E-03   -1.5560    
   6  Prefactor     .55511E-10    1.6219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .43461        .41828        .85294E-03   -1.5695    
   8  norm          1.4615        1.8407        .88852E-03   -1.5684    
   9  Prefactor      .0000        .85190        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        10.334        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.4399        4.4132        .39495E-03   -1.5657    
  12  Prefactor     179.72        60.297        .74817E-04   -1.5440    
  13  norm          3.6406        1.9350        .52920E-03   -1.5670    
  14  norm          .55511E-10    1.2164        .10395E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1855        .88232        .10479E-02   -1.5686    
  16  Prefactor     1.1179        .10059        .30172E-02   -1.5497    
  17  Prefactor     3.2590        .85209        .56074E-03   -1.5672    
  18  Prefactor     .88818E-09    53.754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11102E-09    25.515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.4663        4.2853        .32563E-03   -1.5646    
  21  Normalizat    .59637        .32143        .24652       -1.0814    
  22  Prefactor     1.0398        .46756E-01    .40558E-01   -.91415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.87819e-08
Minuit parameter uncertainties:
  1  7.46875e-06
  2  3.45527e-05
  3  2.27963
  4  1.87469e-05
  5  28.2108
  6  1.3824e-05
  7  0.418284
  8  1.84066
  9  2.53556e-06
  10  8.65513e-06
  11  4.41316
  12  60.2972
  13  1.93499
  14  1.55813e-05
  15  0.882322
  16  0.100588
  17  0.85209
  18  0.00043954
  19  0.000106055
  20  4.2853
  21  0.322444
  22  0.0467581
Done.

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

Extracting fit parameters...

4FGL J0515.8+1527
   Spectrum: PowerLaw
237    Prefactor:  6.440e+00  4.413e+00  0.000e+00  1.000e+06 ( 1.000e-13)
238        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  3.068e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.040e+00  4.676e-02  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  5.964e-01  3.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.39
Ra Dec: 78.953 15.461
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 5.27e-08 +/- 3.61e-08
Energy Flux (Fixed Index): 4.22e-05 +/- 2.89e-05

TS (Fixed Index): 3.39
Ra Dec: 78.953 15.461
Photon Flux Upper Limit: 1.25958336148e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00940044624643 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60725526/likelihoodResults_756086401_756691201_4FGL_J0515.8+1527_weekly_bin855.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) = 32594.9104546
delta logL = 0.140127773484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 32594.8926742
delta logL = 0.157908144924

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9345       1.0000          .0000       .10000E+07
     2 'Index     '    2.1872       1.0000          .0000       10.000    
     3 'Normalizat'    .58084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0403       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+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=   32594.89     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      327 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9345        6.1255        .90505E-04   -.13526E-01
   2  Index         2.1872        .60077        .93915E-02    .11410E-03
   3  Normalizat    .58083        .23581        .11081E-02    .10259E-05
   4  Prefactor     1.0403        .39750E-01    .14283E-03   -.19103E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.93449
  Index      = 2.18718
  Normalizat = 0.580826
  Prefactor  = 1.04033
 **********
 **   18 **HESSE 
 **********

 FCN=   32594.89     FROM HESSE     STATUS=OK            25 CALLS      352 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9345        4.5365        .36202E-05   -1.5664    
   2  Index         2.1872        .44544        .37566E-03   -.59748    
   3  Normalizat    .58083        .23430        .44326E-04   -1.0880    
   4  Prefactor     1.0403        .39647E-01    .28566E-04   -.91397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.27803e-10
Minuit parameter uncertainties:
  1  4.53651
  2  0.446311
  3  0.234701
  4  0.0396481
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) = 32594.8926741
delta logL = 0.157908198576

Extracting fit parameters...

4FGL J0515.8+1527
   Spectrum: PowerLaw
237    Prefactor:  4.934e+00  4.537e+00  0.000e+00  1.000e+06 ( 1.000e-13)
238        Index:  2.187e+00  4.463e-01  0.000e+00  1.000e+01 (-1.000e+00)
239        Scale:  3.068e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.040e+00  3.965e-02  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  5.808e-01  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.71
Ra Dec: 78.953 15.461
Photon Index (Free Index): 2.19 +/- 0.45
Photon Flux (Free Index): 7.43e-08 +/- 5.80e-08
Energy Flux (Free Index): 3.42e-05 +/- 2.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/60725526/cmap_HighResolution_756086401_756691201_4FGL_J0515.8+1527_weekly_bin855.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.40e-03', comment='SUCCESS', photon_flux='5.27e-08', energy_flux2='3.42e-05', photon_flux_error='3.61e-08', dlogl='1.58e-01', energy_flux='4.22e-05', photon_flux2='7.43e-08', job_status='DONE', time_completed='2024-12-24 03:20:13.108062', photon_index_error2='0.45', photon_index2='2.19', ts='3.39', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='2.47e-05', EG='0.60', time_epoch_completed='1735039213.11', return_code='0', job_id='60725526', GAL2='1.04', EG2='0.58', return_code2='0', energy_flux_error='2.89e-05', photon_flux_error2='5.80e-08', ts2='3.71', photon_index='1.94' WHERE bin_id='855' AND source_name='4FGL J0515.8+1527' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 24 03:20:13 PST 2024

