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


Performing analysis on: 4FGL_J0824.4+2440_weekly_bin854
RA = 126.108, Dec = 24.6709
tmin = 755481601, tmax = 756086401
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='60351492', job_status='RUN', time_executed='2024-12-17 00:21:56.314989', time_epoch_executed='1734423716.32' WHERE source_name='4FGL J0824.4+2440' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60351492

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

Retrieving the FT1 file...

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

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

Retrieving 92 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60351492/ft1_4FGL_J0824.4+2440_weekly_bin854.fits


Retrieving the FT1 file...

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

Retrieving 92 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60351492/ft2_4FGL_J0824.4+2440_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60351492/ft1_4FGL_J0824.4+2440_weekly_bin854.fits outfile=/lscratch/kocevski/60351492/ft1_filteredMKT_4FGL_J0824.4+2440_weekly_bin854.fits ra=126.108 dec=24.6709 rad=12.0 tmin=755481601.0 tmax=756086401.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 5.02
user 4.55
sys 0.36

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60351492/ft2_4FGL_J0824.4+2440_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60351492/ft2_4FGL_J0824.4+2440_weekly_bin854.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/60351492/ft1_filteredMKT_4FGL_J0824.4+2440_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60351492/ft1_filtered_4FGL_J0824.4+2440_weekly_bin854.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.55
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 1141

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60351492/ft1_filtered_4FGL_J0824.4+2440_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60351492/ft2_4FGL_J0824.4+2440_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60351492/ltcube_755481601_756086401_4FGL_J0824.4+2440_weekly_bin854.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/60351492/ft2_4FGL_J0824.4+2440_weekly_bin854.fits
.....................!
real 17.29
user 16.36
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60351492/ft1_filtered_4FGL_J0824.4+2440_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60351492/ft2_4FGL_J0824.4+2440_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60351492/ltcube_755481601_756086401_4FGL_J0824.4+2440_weekly_bin854.fits outfile=/lscratch/kocevski/60351492/expmap_755481601_756086401_4FGL_J0824.4+2440_weekly_bin854.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/60351492/ltcube_755481601_756086401_4FGL_J0824.4+2440_weekly_bin854.fits
.....................!
real 72.49
user 67.86
sys 4.11

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

Setting source of interest to:
4FGL J0824.4+2440 @ 126.108 24.6709

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60351492/ft1_filtered_4FGL_J0824.4+2440_weekly_bin854.fits scfile=/lscratch/kocevski/60351492/ft2_4FGL_J0824.4+2440_weekly_bin854.fits outfile=/lscratch/kocevski/60351492/cmap_755481601_756086401_4FGL_J0824.4+2440_weekly_bin854.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=126.108 yref=24.6709 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.45
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60351492/ft1_filtered_4FGL_J0824.4+2440_weekly_bin854.fits scfile=/lscratch/kocevski/60351492/ft2_4FGL_J0824.4+2440_weekly_bin854.fits outfile=/lscratch/kocevski/60351492/cmap_HighResolution_755481601_756086401_4FGL_J0824.4+2440_weekly_bin854.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=126.108 yref=24.6709 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.43
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60351492/ft1_filtered_4FGL_J0824.4+2440_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60351492/ft2_4FGL_J0824.4+2440_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60351492/Model_4FGL_J0824.4+2440_weekly_bin854.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/60351492/ft1_filtered_4FGL_J0824.4+2440_weekly_bin854.fits.....................!
real 47.26
user 46.26
sys 0.64

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60351492/ft1_filtered_4FGL_J0824.4+2440_weekly_bin854.fits', '/lscratch/kocevski/60351492/ft2_4FGL_J0824.4+2440_weekly_bin854.fits', expMap='/lscratch/kocevski/60351492/expmap_755481601_756086401_4FGL_J0824.4+2440_weekly_bin854.fits', expCube='/lscratch/kocevski/60351492/ltcube_755481601_756086401_4FGL_J0824.4+2440_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60351492/Model_4FGL_J0824.4+2440_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0824.4+2440'

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  8.553e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  2.529e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  9.487e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60351492/ft1_filtered_4FGL_J0824.4+2440_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60351492/ft2_4FGL_J0824.4+2440_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60351492/expmap_755481601_756086401_4FGL_J0824.4+2440_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60351492/ltcube_755481601_756086401_4FGL_J0824.4+2440_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60351492/Model_4FGL_J0824.4+2440_weekly_bin854.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) = 13089.7710611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5487       1.0000          .0000       .10000E+07
     2 'Prefactor '    .85861E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .43474E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    40.880       1.0000          .0000       .10000E+07
     5 'norm      '    .38396E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .26611E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .44378E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .31201E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    15.109       1.0000          .0000       .10000E+07
    10 'norm      '    .39313       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.5051       1.0000          .0000       .10000E+07
    12 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    8.2610       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.5474       1.0000          .0000       .10000E+07
    15 'norm      '    35.890       1.0000          .0000       .10000E+07
    16 'Normalizat'    .80419       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1066       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13089.73     FROM MIGRAD    STATUS=CONVERGED    123 CALLS      978 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5473        3.1813       -.26477E-06    .38007E-03
   2  Prefactor     .38314E-06    18.675        .16136E-05** at limit **
   3  Prefactor     .38858E-09    34.226        .20737E-05** at limit **
   4  Prefactor     42.080        17.222        .18164E-06   -.19688    
   5  norm          .22204E-09    3.5756        .82007E-06** at limit **
   6  norm          .29704E-05    23.811        .23479E-05** at limit **
   7  Prefactor     .26756E-07    10.800        .95415E-06** at limit **
   8  Prefactor     .10547E-08    6.2700       -.19761E-06** at limit **
   9  Prefactor     15.115        2.2240       -.84351E-07   -.29101E-01
  10  norm          .39620        .74702        .12032E-07    .25652E-03
  11  Prefactor     1.3822        5.4644        .15872E-06   -.31697E-03
  12  norm           .0000        .14779        .67408E-07** at limit **
  13  Prefactor     8.3044        7.0631       -.25468E-06   -.12550E-02
  14  Prefactor     3.6341        11.738        .10465E-05    .79000E-01
  15  norm          34.761        7.2505        .13633E-06    .24680E-01
  16  Normalizat    .80419        .14898        .60561E-06   -.96050E-04
  17  Prefactor     1.1067        .11649       -.89175E-06    .44143E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.54734
  Prefactor  = 3.83138e-07
  Prefactor  = 3.88578e-10
  Prefactor  = 42.0802
  norm       = 2.22045e-10
  norm       = 2.9704e-06
  Prefactor  = 2.67564e-08
  Prefactor  = 1.05471e-09
  Prefactor  = 15.115
  norm       = 0.396197
  Prefactor  = 1.38218
  norm       = 0
  Prefactor  = 8.30439
  Prefactor  = 3.6341
  norm       = 34.7613
  Normalizat = 0.804187
  Prefactor  = 1.10674
 **********
 **   18 **HESSE 
 **********

 FCN=   13089.73     FROM HESSE     STATUS=OK           263 CALLS     1241 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5473        3.3849        .47177E-03   -1.5665    
   2  Prefactor     .38314E-06    19.009        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .38858E-09    7.5169        .95468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     42.080        28.853        .15642E-03   -1.5578    
   5  norm          .22204E-09    3.5804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .29704E-05    27.660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26756E-07    10.818        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10547E-08    6.2840        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.115        16.828        .25741E-03   -1.5630    
  10  norm          .39620        .87019        .90287E-03   -1.5695    
  11  Prefactor     1.3822        5.7877        .87203E-03   -1.5684    
  12  norm           .0000        .14547        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.3044        7.1152        .34857E-03   -1.5650    
  14  Prefactor     3.6341        13.532        .53641E-03   -1.5670    
  15  norm          34.761        25.743        .16694E-03   -1.5590    
  16  Normalizat    .80419        .13018        .63201E-01   -.99914    
  17  Prefactor     1.1067        .10005        .37341E-01   -.89252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0557e-06
Minuit parameter uncertainties:
  1  3.38495
  2  0.00539766
  3  0.00010522
  4  28.8528
  5  5.37308e-05
  6  0.0181287
  7  0.00107643
  8  0.000163595
  9  16.8279
  10  0.870195
  11  5.65673
  12  1.68955e-07
  13  7.11525
  14  13.5326
  15  25.7436
  16  0.130229
  17  0.100071
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.512e+01  1.683e+01  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  2.529e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  9.487e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  1.107e+00  1.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  8.042e-01  1.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.53
Ra Dec: 126.108 24.671
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 2.93e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 8.24e-06 +/- 9.17e-06

TS (Fixed Index): 1.53
Ra Dec: 126.108 24.671
Photon Flux Upper Limit: 8.89693990672e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00693263197703 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60351492/likelihoodResults_755481601_756086401_4FGL_J0824.4+2440_weekly_bin854.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) = 13087.4692923
delta logL = 2.26157356283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13087.3491447
delta logL = 2.38172118475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10196E-02   1.0000          .0000       .10000E+07
     2 'Index     '    7.9596       1.0000          .0000       10.000    
     3 'Normalizat'    .71246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1680       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13087.35     FROM MIGRAD    STATUS=CONVERGED    241 CALLS      628 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99868E-03    .91743E-03    .42118E-04** at limit **
   2  Index         7.9691        .36231        .13502       -.13393E-03
   3  Normalizat    .71263        .12694        .66726E-01    .18063E-03
   4  Prefactor     1.1679        .10274        .35435E-01    .10388E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000998679
  Index      = 7.9691
  Normalizat = 0.712631
  Prefactor  = 1.16792
 **********
 **   18 **HESSE 
 **********

 FCN=   13087.35     FROM HESSE     STATUS=OK            33 CALLS      661 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99868E-03    .46759E-02    .16984E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.9691        1.9232        .54238E-02   -3.7774    
   3  Normalizat    .71263        .14846        .29524E-03   -1.0340    
   4  Prefactor     1.1679        .12063        .19554E-03   -.87324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19e-10
Minuit parameter uncertainties:
  1  0.0043219
  2  2.00517
  3  0.148539
  4  0.120653
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) = 13087.349141
delta logL = 2.38172486245

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  9.987e-04  4.322e-03  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  7.969e+00  2.005e+00  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  9.487e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  1.168e+00  1.207e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  7.126e-01  1.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.87
Ra Dec: 126.108 24.671
Photon Index (Free Index): 7.97 +/- 2.01
Photon Flux (Free Index): 8.94e-08 +/- 7.49e-07
Energy Flux (Free Index): 1.04e-05 +/- 8.69e-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/60351492/cmap_HighResolution_755481601_756086401_4FGL_J0824.4+2440_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.93e-03', comment='SUCCESS', photon_flux='2.93e-08', energy_flux2='1.04e-05', photon_flux_error='3.26e-08', dlogl='2.38e+00', energy_flux='8.24e-06', photon_flux2='8.94e-08', job_status='DONE', time_completed='2024-12-17 00:28:06.697448', photon_index_error2='2.01', photon_index2='7.97', ts='1.53', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='8.90e-08', energy_flux_error2='8.69e-05', EG='0.80', time_epoch_completed='1734424086.7', return_code='0', job_id='60351492', GAL2='1.17', EG2='0.71', return_code2='0', energy_flux_error='9.17e-06', photon_flux_error2='7.49e-07', ts2='6.87', photon_index='2.53' WHERE bin_id='854' AND source_name='4FGL J0824.4+2440' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 00:28:06 PST 2024

