/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_J0537.5+0959_weekly_bin855
RA = 84.3775, Dec = 9.986
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='60725550', job_status='RUN', time_executed='2024-12-24 03:05:36.697761', time_epoch_executed='1735038336.7' WHERE source_name='4FGL J0537.5+0959' and cadence='weekly' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60725550

Creating custom pfile directory:
/lscratch/kocevski/60725550/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/60725550/ft1_4FGL_J0537.5+0959_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/60725550/ft2_4FGL_J0537.5+0959_weekly_bin855.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60725550/ft1_4FGL_J0537.5+0959_weekly_bin855.fits outfile=/lscratch/kocevski/60725550/ft1_filteredMKT_4FGL_J0537.5+0959_weekly_bin855.fits ra=84.3775 dec=9.986 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.08
user 2.68
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60725550/ft2_4FGL_J0537.5+0959_weekly_bin855.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60725550/ft2_4FGL_J0537.5+0959_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/60725550/ft1_filteredMKT_4FGL_J0537.5+0959_weekly_bin855.fits evtable="EVENTS" outfile="/lscratch/kocevski/60725550/ft1_filtered_4FGL_J0537.5+0959_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.56
user 0.22
sys 0.15

Number of photons that the gtmktime cut: 3174

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60725550/ft1_filtered_4FGL_J0537.5+0959_weekly_bin855.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60725550/ft2_4FGL_J0537.5+0959_weekly_bin855.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60725550/ltcube_756086401_756691201_4FGL_J0537.5+0959_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/60725550/ft2_4FGL_J0537.5+0959_weekly_bin855.fits
.....................!
real 11.89
user 11.16
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60725550/ft1_filtered_4FGL_J0537.5+0959_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60725550/ft2_4FGL_J0537.5+0959_weekly_bin855.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60725550/ltcube_756086401_756691201_4FGL_J0537.5+0959_weekly_bin855.fits outfile=/lscratch/kocevski/60725550/expmap_756086401_756691201_4FGL_J0537.5+0959_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/60725550/ltcube_756086401_756691201_4FGL_J0537.5+0959_weekly_bin855.fits
.....................!
real 70.96
user 65.84
sys 4.27

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 IC 443 in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
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.
Added 164 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 J0537.5+0959 @ 84.3775 9.986

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60725550/ft1_filtered_4FGL_J0537.5+0959_weekly_bin855.fits scfile=/lscratch/kocevski/60725550/ft2_4FGL_J0537.5+0959_weekly_bin855.fits outfile=/lscratch/kocevski/60725550/cmap_756086401_756691201_4FGL_J0537.5+0959_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=84.3775 yref=9.986 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.85
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60725550/ft1_filtered_4FGL_J0537.5+0959_weekly_bin855.fits scfile=/lscratch/kocevski/60725550/ft2_4FGL_J0537.5+0959_weekly_bin855.fits outfile=/lscratch/kocevski/60725550/cmap_HighResolution_756086401_756691201_4FGL_J0537.5+0959_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=84.3775 yref=9.986 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.62
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60725550/ft1_filtered_4FGL_J0537.5+0959_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60725550/ft2_4FGL_J0537.5+0959_weekly_bin855.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60725550/Model_4FGL_J0537.5+0959_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 Monoceros
adding source Rosette
adding source S 147
Working on...
/lscratch/kocevski/60725550/ft1_filtered_4FGL_J0537.5+0959_weekly_bin855.fits.....................!
real 305.03
user 301.90
sys 0.76

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60725550/ft1_filtered_4FGL_J0537.5+0959_weekly_bin855.fits', '/lscratch/kocevski/60725550/ft2_4FGL_J0537.5+0959_weekly_bin855.fits', expMap='/lscratch/kocevski/60725550/expmap_756086401_756691201_4FGL_J0537.5+0959_weekly_bin855.fits', expCube='/lscratch/kocevski/60725550/ltcube_756086401_756691201_4FGL_J0537.5+0959_weekly_bin855.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60725550/Model_4FGL_J0537.5+0959_weekly_bin855.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0537.5+0959'

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  4.070e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
262        Index:  2.641e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
263        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60725550/ft1_filtered_4FGL_J0537.5+0959_weekly_bin855.fits
Spacecraft file(s): /lscratch/kocevski/60725550/ft2_4FGL_J0537.5+0959_weekly_bin855.fits
Exposure map: /lscratch/kocevski/60725550/expmap_756086401_756691201_4FGL_J0537.5+0959_weekly_bin855.fits
Exposure cube: /lscratch/kocevski/60725550/ltcube_756086401_756691201_4FGL_J0537.5+0959_weekly_bin855.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60725550/Model_4FGL_J0537.5+0959_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) = 31861.9565714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0750       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11742E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    54.664       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14493E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .38755       1.0000          .0000       .10000E+07
     6 'norm      '    1.4286       1.0000          .0000       .10000E+07
     7 'Prefactor '    .47146E-06   1.0000          .0000       .10000E+07
     8 'norm      '    .21732E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    6.2724       1.0000          .0000       .10000E+07
    10 'Prefactor '    173.78       1.0000          .0000       .10000E+07
    11 'norm      '    2.6170       1.0000          .0000       .10000E+07
    12 'Prefactor '    .50327E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .16928E-02   1.0000          .0000       .10000E+07
    14 'norm      '    1.0892       1.0000          .0000       .10000E+07
    15 'Prefactor '    .58791E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .10516E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    9.2257       1.0000          .0000       .10000E+07
    18 'norm      '    .89341E-04   1.0000          .0000       .10000E+07
    19 'norm      '    2.7954       1.0000          .0000       .10000E+07
    20 'Normalizat'    .50954       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0600       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   31861.89     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1719 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0728        2.7979       -.18265E-07   -.15642E-02
   2  Prefactor     .18108E-06    17.810        .32911E-07** at limit **
   3  Prefactor     55.399        8.5775        .30736E-07   -.20558    
   4  Prefactor      .0000        1.5614       -.20356E-07** at limit **
   5  norm          .38414        .34958       -.20857E-08    .10822E-02
   6  norm          1.4241        1.7689        .37567E-08    .54566E-03
   7  Prefactor      .0000        .84389       -.28435E-08** at limit **
   8  norm          .61062E-09    8.5094       -.12954E-06** at limit **
   9  Prefactor     6.2631        4.3561       -.43428E-09   -.31899E-04
  10  Prefactor     174.74        58.510        .48444E-07   -.21150E-01
  11  norm          2.6170        1.6914       -.44632E-08   -.79577E-03
  12  Prefactor     .11102E-09    7.0228       -.17652E-06** at limit **
  13  norm          .72609E-07    18.252       -.30565E-07** at limit **
  14  norm          1.0901        .82509       -.37254E-07   -.84703E-02
  15  Prefactor     .38775E-06    45.857       -.66505E-06** at limit **
  16  Prefactor     .73958E-06    23.112       -.14392E-06** at limit **
  17  Prefactor     9.2102        4.1695        .33041E-08   -.13859E-03
  18  norm          .54956E-08    10.846       -.85431E-07** at limit **
  19  norm          2.7982        3.4156        .15619E-07    .31805E-03
  20  Normalizat    .50756        .22857        .14688E-05    .63453E-05
  21  Prefactor     1.0601        .37228E-01   -.11364E-06   -.76066E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.07275
  Prefactor  = 1.81077e-07
  Prefactor  = 55.3987
  Prefactor  = 0
  norm       = 0.384144
  norm       = 1.42414
  Prefactor  = 0
  norm       = 6.10623e-10
  Prefactor  = 6.26312
  Prefactor  = 174.744
  norm       = 2.61695
  Prefactor  = 1.11022e-10
  norm       = 7.26086e-08
  norm       = 1.09013
  Prefactor  = 3.87745e-07
  Prefactor  = 7.39575e-07
  Prefactor  = 9.21017
  norm       = 5.4956e-09
  norm       = 2.79816
  Normalizat = 0.507564
  Prefactor  = 1.06012
 **********
 **   18 **HESSE 
 **********

 FCN=   31861.89     FROM HESSE     STATUS=OK           373 CALLS     2092 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0728        2.8354        .40711E-03   -1.5659    
   2  Prefactor     .18108E-06    18.145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     55.399        28.597        .13526E-03   -1.5559    
   4  Prefactor      .0000        1.5626        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .38414        .48359        .22006E-02   -1.5696    
   6  norm          1.4241        1.8213        .90373E-03   -1.5684    
   7  Prefactor      .0000        .84190        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .61062E-09    8.2241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.2631        4.3710        .40057E-03   -1.5658    
  10  Prefactor     174.74        59.372        .75866E-04   -1.5444    
  11  norm          2.6170        1.6890        .63023E-03   -1.5676    
  12  Prefactor     .11102E-09    6.9180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .72609E-07    1.5794        .75675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0901        .85830        .11468E-02   -1.5687    
  15  Prefactor     .38775E-06    46.376        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .73958E-06    24.320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.2102        4.2480        .32972E-03   -1.5647    
  18  norm          .54956E-08    10.856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.7982        3.4334        .60826E-03   -1.5675    
  20  Normalizat    .50756        .30818        .25249       -1.1207    
  21  Prefactor     1.0601        .45938E-01    .30055E-01   -.90752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.18074e-07
Minuit parameter uncertainties:
  1  2.83543
  2  0.00362511
  3  28.5966
  4  2.01625e-07
  5  0.483594
  6  1.82133
  7  3.41722e-07
  8  0.000144714
  9  4.37098
  10  59.3727
  11  1.68904
  12  5.30987e-05
  13  0.000677183
  14  0.858295
  15  0.00848143
  16  0.00848201
  17  4.24795
  18  0.000488515
  19  3.43339
  20  0.309226
  21  0.0459393
Done.

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

Extracting fit parameters...

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  7.396e-07  8.482e-03  0.000e+00  1.000e+06 ( 1.000e-13)
262        Index:  2.641e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
263        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.060e+00  4.594e-02  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  5.076e-01  3.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 84.377 9.986
Photon Flux Upper Limit: 1.07628876787e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0084439894893 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60725550/likelihoodResults_756086401_756691201_4FGL_J0537.5+0959_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): 102
logL (Free Index) = 31861.9148775
delta logL = -0.0205484110083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 31861.6374718
delta logL = 0.256857289245

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   31861.64     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      254 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85924E-01    .52525        .14277E-02** at limit **
   2  Index         5.3852        1.3904        .20196        .37926E-03
   3  Normalizat    .45729        .26065E-01    .26547        .28064E-03
   4  Prefactor     1.0639        .44035E-02    .30004E-01   -.99273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0859245
  Index      = 5.38522
  Normalizat = 0.457285
  Prefactor  = 1.06394
 **********
 **   18 **HESSE 
 **********

 FCN=   31861.64     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      289 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .85924E-01    7.8034        .61245E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.3852        7.6730        .11943E-01    .77121E-01
   3  Normalizat    .45729        .14148        .11713E-02   -1.1444    
   4  Prefactor     1.0639        .23420E-01    .13260E-03   -.90627    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.87432e-07
Minuit parameter uncertainties:
  1  1.63769
  2  8.84016
  3  0.141595
  4  0.02342
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) = 31861.6374635
delta logL = 0.256865614869

Extracting fit parameters...

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  8.592e-02  1.638e+00  0.000e+00  1.000e+06 ( 1.000e-13)
262        Index:  5.385e+00  8.840e+00  0.000e+00  1.000e+01 (-1.000e+00)
263        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.064e+00  2.342e-02  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  4.573e-01  1.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 84.377 9.986

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/60725550/cmap_HighResolution_756086401_756691201_4FGL_J0537.5+0959_weekly_bin855.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.44e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2024-12-24 03:21:27.304876', job_id='60725550', GAL2='1.06', fit_tolerance='1e-08', EG2='0.46', EG='0.51', time_epoch_completed='1735039287.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.57e-01', ts2='0.58', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='855' AND source_name='4FGL J0537.5+0959' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 24 03:21:27 PST 2024

