/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_J0427.3+0504_weekly_bin855
RA = 66.8294, Dec = 5.08
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='60725047', job_status='RUN', time_executed='2024-12-24 02:59:26.683369', time_epoch_executed='1735037966.68' WHERE source_name='4FGL J0427.3+0504' and cadence='weekly' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60725047

Creating custom pfile directory:
/lscratch/kocevski/60725047/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/60725047/ft1_4FGL_J0427.3+0504_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/60725047/ft2_4FGL_J0427.3+0504_weekly_bin855.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60725047/ft1_4FGL_J0427.3+0504_weekly_bin855.fits outfile=/lscratch/kocevski/60725047/ft1_filteredMKT_4FGL_J0427.3+0504_weekly_bin855.fits ra=66.8294 dec=5.08 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 2.54
user 2.20
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60725047/ft2_4FGL_J0427.3+0504_weekly_bin855.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60725047/ft2_4FGL_J0427.3+0504_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/60725047/ft1_filteredMKT_4FGL_J0427.3+0504_weekly_bin855.fits evtable="EVENTS" outfile="/lscratch/kocevski/60725047/ft1_filtered_4FGL_J0427.3+0504_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.36
user 0.17
sys 0.14

Number of photons that the gtmktime cut: 1501

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60725047/ft1_filtered_4FGL_J0427.3+0504_weekly_bin855.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60725047/ft2_4FGL_J0427.3+0504_weekly_bin855.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60725047/ltcube_756086401_756691201_4FGL_J0427.3+0504_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/60725047/ft2_4FGL_J0427.3+0504_weekly_bin855.fits
.....................!
real 9.63
user 9.24
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60725047/ft1_filtered_4FGL_J0427.3+0504_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60725047/ft2_4FGL_J0427.3+0504_weekly_bin855.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60725047/ltcube_756086401_756691201_4FGL_J0427.3+0504_weekly_bin855.fits outfile=/lscratch/kocevski/60725047/expmap_756086401_756691201_4FGL_J0427.3+0504_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/60725047/ltcube_756086401_756691201_4FGL_J0427.3+0504_weekly_bin855.fits
.....................!
real 58.94
user 55.28
sys 3.39

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
Added 139 point sources and 0 extended sources

Setting source of interest to:
4FGL J0427.3+0504 @ 66.8294 5.08

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60725047/ft1_filtered_4FGL_J0427.3+0504_weekly_bin855.fits scfile=/lscratch/kocevski/60725047/ft2_4FGL_J0427.3+0504_weekly_bin855.fits outfile=/lscratch/kocevski/60725047/cmap_756086401_756691201_4FGL_J0427.3+0504_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=66.8294 yref=5.08 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.40
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60725047/ft1_filtered_4FGL_J0427.3+0504_weekly_bin855.fits scfile=/lscratch/kocevski/60725047/ft2_4FGL_J0427.3+0504_weekly_bin855.fits outfile=/lscratch/kocevski/60725047/cmap_HighResolution_756086401_756691201_4FGL_J0427.3+0504_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=66.8294 yref=5.08 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.39
user 0.18
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60725047/ft1_filtered_4FGL_J0427.3+0504_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60725047/ft2_4FGL_J0427.3+0504_weekly_bin855.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60725047/Model_4FGL_J0427.3+0504_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
Working on...
/lscratch/kocevski/60725047/ft1_filtered_4FGL_J0427.3+0504_weekly_bin855.fits.....................!
real 75.92
user 75.03
sys 0.56

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60725047/ft1_filtered_4FGL_J0427.3+0504_weekly_bin855.fits', '/lscratch/kocevski/60725047/ft2_4FGL_J0427.3+0504_weekly_bin855.fits', expMap='/lscratch/kocevski/60725047/expmap_756086401_756691201_4FGL_J0427.3+0504_weekly_bin855.fits', expCube='/lscratch/kocevski/60725047/ltcube_756086401_756691201_4FGL_J0427.3+0504_weekly_bin855.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60725047/Model_4FGL_J0427.3+0504_weekly_bin855.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0427.3+0504'

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  8.580e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60725047/ft1_filtered_4FGL_J0427.3+0504_weekly_bin855.fits
Spacecraft file(s): /lscratch/kocevski/60725047/ft2_4FGL_J0427.3+0504_weekly_bin855.fits
Exposure map: /lscratch/kocevski/60725047/expmap_756086401_756691201_4FGL_J0427.3+0504_weekly_bin855.fits
Exposure cube: /lscratch/kocevski/60725047/ltcube_756086401_756691201_4FGL_J0427.3+0504_weekly_bin855.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60725047/Model_4FGL_J0427.3+0504_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) = 16148.3903507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39452E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    16.488       1.0000          .0000       .10000E+07
     3 'norm      '    .30202E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .49032E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .65885E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .56924E-02   1.0000          .0000       .10000E+07
     7 'norm      '    10.597       1.0000          .0000       .10000E+07
     8 'norm      '    3.2587       1.0000          .0000       .10000E+07
     9 'Prefactor '    .78169       1.0000          .0000       .10000E+07
    10 'Prefactor '    34.393       1.0000          .0000       .10000E+07
    11 'Prefactor '    .37329E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .13621E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.3535       1.0000          .0000       .10000E+07
    14 'norm      '    .70911       1.0000          .0000       .10000E+07
    15 'Prefactor '    .14479E-02   1.0000          .0000       .10000E+07
    16 'norm      '    2.9211       1.0000          .0000       .10000E+07
    17 'norm      '    7.8763       1.0000          .0000       .10000E+07
    18 'Prefactor '    .48464E-02   1.0000          .0000       .10000E+07
    19 'norm      '    3.5178       1.0000          .0000       .10000E+07
    20 'Prefactor '    46.574       1.0000          .0000       .10000E+07
    21 'norm      '    .39329       1.0000          .0000       .10000E+07
    22 'norm      '    1.5905       1.0000          .0000       .10000E+07
    23 'Prefactor '    .55194E-05   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.0430       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16148.35     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     2114 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    35.016       -.12427E-07** at limit **
   2  Prefactor     16.662        9.7965       -.16273E-08    .82997E-01
   3  norm          .17875E-07    9.2508        .20835E-06** at limit **
   4  Prefactor     .23581E-06    6.3458        .86499E-07** at limit **
   5  norm           .0000        2.2668        .52618E-08** at limit **
   6  Prefactor     .30781E-06    9.4961        .14368E-06** at limit **
   7  norm          10.702        9.3401       -.11233E-07   -.17981E-02
   8  norm          3.2592        .97740        .49711E-08   -.33405E-03
   9  Prefactor     .78166        .76779       -.22602E-07   -.43699E-02
  10  Prefactor     34.372        1.1140        .44203E-09    .28568E-02
  11  Prefactor     .14050E-06    24.804        .26246E-07** at limit **
  12  Prefactor      .0000        2.8363       -.43027E-07** at limit **
  13  Prefactor     1.3275        15.465       -.12850E-06   -.23966E-02
  14  norm          .71070        1.6231       -.69970E-08   -.51902E-03
  15  Prefactor     .93525E-06    13.309        .78826E-07** at limit **
  16  norm          2.9225        1.5176       -.13797E-07   -.35591E-02
  17  norm          7.8793        2.2152        .87431E-08    .17362E-02
  18  Prefactor     .43304E-06    7.4504        .67471E-07** at limit **
  19  norm          3.5188        1.4030       -.94355E-09   -.10947E-02
  20  Prefactor     46.633        3.0797        .31086E-08   -.18357E-01
  21  norm          .39327        .34381        .55185E-08    .30463E-02
  22  norm          1.5906        1.8368        .43407E-07    .28581E-02
  23  Prefactor     .55511E-10    1.4756        .84976E-07** at limit **
  24  Normalizat    1.0423        .19059       -.15027E-05   -.96677E-04
  25  Prefactor     .87400        .58743E-01    .30448E-06   -.10498E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 16.6624
  norm       = 1.78746e-08
  Prefactor  = 2.35811e-07
  norm       = 0
  Prefactor  = 3.07809e-07
  norm       = 10.7021
  norm       = 3.25917
  Prefactor  = 0.781664
  Prefactor  = 34.3718
  Prefactor  = 1.40499e-07
  Prefactor  = 0
  Prefactor  = 1.32751
  norm       = 0.710699
  Prefactor  = 9.35252e-07
  norm       = 2.92246
  norm       = 7.87925
  Prefactor  = 4.33042e-07
  norm       = 3.51877
  Prefactor  = 46.6331
  norm       = 0.393265
  norm       = 1.59064
  Prefactor  = 5.55112e-11
  Normalizat = 1.04231
  Prefactor  = 0.873997
 **********
 **   18 **HESSE 
 **********

 FCN=   16148.35     FROM HESSE     STATUS=OK           483 CALLS     2597 TOTAL
                     EDM=   .91E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    34.507        .15988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.662        11.954        .24638E-03   -1.5626    
   3  norm          .17875E-07    9.2945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .23581E-06    14.516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        2.2556        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .30781E-06    11.850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.702        9.3266        .30754E-03   -1.5643    
   8  norm          3.2592        .97924        .56077E-03   -1.5672    
   9  Prefactor     .78166        .77206        .54309E-03   -1.5690    
  10  Prefactor     34.372        19.294        .17054E-03   -1.5591    
  11  Prefactor     .14050E-06    25.972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.8282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.3275        15.312        .93956E-03   -1.5685    
  14  norm          .71070        1.8349        .59971E-03   -1.5691    
  15  Prefactor     .93525E-06    19.561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9225        1.5172        .59414E-03   -1.5674    
  17  norm          7.8793        2.2179        .35704E-03   -1.5652    
  18  Prefactor     .43304E-06    16.000        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.5188        1.4045        .53876E-03   -1.5670    
  20  Prefactor     46.633        25.907        .14654E-03   -1.5571    
  21  norm          .39327        .44319        .15414E-02   -1.5695    
  22  norm          1.5906        1.8854        .84107E-03   -1.5683    
  23  Prefactor     .55511E-10    1.4733        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0423        .18038        .97276E-01   -.91626    
  25  Prefactor     .87400        .53848E-01    .34357E-01   -.97056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.09132e-07
Minuit parameter uncertainties:
  1  0.000111379
  2  11.954
  3  0.000814951
  4  0.0037003
  5  2.7241e-06
  6  0.00381991
  7  9.32661
  8  0.979241
  9  0.772062
  10  19.2944
  11  0.00382059
  12  1.67164e-05
  13  9.0171
  14  1.83488
  15  0.00855434
  16  1.51722
  17  2.21786
  18  0.00526451
  19  1.40455
  20  25.907
  21  0.443191
  22  1.88544
  23  1.55712e-05
  24  0.180488
  25  0.0538508
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  3.437e+01  1.929e+01  0.000e+00  1.000e+06 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  8.740e-01  5.385e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.042e+00  1.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.49
Ra Dec: 66.829 5.080
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 6.03e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 1.30e-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) = 16148.0785932
delta logL = 0.270868645628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16148.0696757
delta logL = 0.279786190065

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16148.07     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      274 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.931        193.77        .19285E-03    .11039E-02
   2  Index         3.2826        3.5342        .21532        .15629E-03
   3  Normalizat    1.0232        .72172E-01    .98059E-01    .25228E-03
   4  Prefactor     .87826        .24001E-01    .34282E-01   -.10478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.9307
  Index      = 3.28258
  Normalizat = 1.02315
  Prefactor  = 0.878259
 **********
 **   18 **HESSE 
 **********

 FCN=   16148.07     FROM HESSE     STATUS=OK            33 CALLS      307 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.931        20.056        .77138E-05   -1.5604    
   2  Index         3.2826        .66613        .89766E-02   -.35062    
   3  Normalizat    1.0232        .17843        .43446E-03   -.92259    
   4  Prefactor     .87826        .57257E-01    .15149E-03   -.96905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46571e-09
Minuit parameter uncertainties:
  1  20.0561
  2  0.66839
  3  0.178538
  4  0.0572607
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) = 16148.0696556
delta logL = 0.279806239971

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  2.693e+01  2.006e+01  0.000e+00  1.000e+06 ( 1.000e-12)
201        Index:  3.283e+00  6.684e-01  0.000e+00  1.000e+01 (-1.000e+00)
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  8.783e-01  5.726e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.023e+00  1.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.13
Ra Dec: 66.829 5.080
Photon Index (Free Index): 3.28 +/- 0.67
Photon Flux (Free Index): 1.25e-07 +/- 6.03e-08
Energy Flux (Free Index): 2.22e-05 +/- 1.10e-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/60725047/cmap_HighResolution_756086401_756691201_4FGL_J0427.3+0504_weekly_bin855.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='2.22e-05', photon_flux_error='6.03e-08', dlogl='2.80e-01', energy_flux='2.31e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2024-12-24 03:05:27.675444', photon_index_error2='0.67', photon_index2='3.28', ts='5.49', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='1.04', time_epoch_completed='1735038327.68', return_code='0', job_id='60725047', GAL2='0.88', EG2='1.02', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='6.03e-08', ts2='6.13', photon_index='2.86' WHERE bin_id='855' AND source_name='4FGL J0427.3+0504' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 24 03:05:27 PST 2024

