/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_J2324.6+3115_weekly_bin854
RA = 351.17, Dec = 31.2573
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='60353252', job_status='RUN', time_executed='2024-12-17 01:21:18.976737', time_epoch_executed='1734427278.98' WHERE source_name='4FGL J2324.6+3115' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60353252

Creating custom pfile directory:
/lscratch/kocevski/60353252/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/60353252/ft1_4FGL_J2324.6+3115_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/60353252/ft2_4FGL_J2324.6+3115_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60353252/ft1_4FGL_J2324.6+3115_weekly_bin854.fits outfile=/lscratch/kocevski/60353252/ft1_filteredMKT_4FGL_J2324.6+3115_weekly_bin854.fits ra=351.17 dec=31.2573 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 4.63
user 4.13
sys 0.31

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60353252/ft2_4FGL_J2324.6+3115_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60353252/ft2_4FGL_J2324.6+3115_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/60353252/ft1_filteredMKT_4FGL_J2324.6+3115_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60353252/ft1_filtered_4FGL_J2324.6+3115_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.50
user 0.20
sys 0.16

Number of photons that the gtmktime cut: 1668

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60353252/ft1_filtered_4FGL_J2324.6+3115_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60353252/ft2_4FGL_J2324.6+3115_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60353252/ltcube_755481601_756086401_4FGL_J2324.6+3115_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/60353252/ft2_4FGL_J2324.6+3115_weekly_bin854.fits
.....................!
real 14.64
user 14.09
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60353252/ft1_filtered_4FGL_J2324.6+3115_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60353252/ft2_4FGL_J2324.6+3115_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60353252/ltcube_755481601_756086401_4FGL_J2324.6+3115_weekly_bin854.fits outfile=/lscratch/kocevski/60353252/expmap_755481601_756086401_4FGL_J2324.6+3115_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/60353252/ltcube_755481601_756086401_4FGL_J2324.6+3115_weekly_bin854.fits
.....................!
real 61.28
user 57.37
sys 3.51

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

Setting source of interest to:
4FGL J2324.6+3115 @ 351.17 31.2573

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60353252/ft1_filtered_4FGL_J2324.6+3115_weekly_bin854.fits scfile=/lscratch/kocevski/60353252/ft2_4FGL_J2324.6+3115_weekly_bin854.fits outfile=/lscratch/kocevski/60353252/cmap_755481601_756086401_4FGL_J2324.6+3115_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=351.17 yref=31.2573 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.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60353252/ft1_filtered_4FGL_J2324.6+3115_weekly_bin854.fits scfile=/lscratch/kocevski/60353252/ft2_4FGL_J2324.6+3115_weekly_bin854.fits outfile=/lscratch/kocevski/60353252/cmap_HighResolution_755481601_756086401_4FGL_J2324.6+3115_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=351.17 yref=31.2573 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.44
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60353252/ft1_filtered_4FGL_J2324.6+3115_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60353252/ft2_4FGL_J2324.6+3115_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60353252/Model_4FGL_J2324.6+3115_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/60353252/ft1_filtered_4FGL_J2324.6+3115_weekly_bin854.fits.....................!
real 59.06
user 57.81
sys 0.85

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60353252/ft1_filtered_4FGL_J2324.6+3115_weekly_bin854.fits', '/lscratch/kocevski/60353252/ft2_4FGL_J2324.6+3115_weekly_bin854.fits', expMap='/lscratch/kocevski/60353252/expmap_755481601_756086401_4FGL_J2324.6+3115_weekly_bin854.fits', expCube='/lscratch/kocevski/60353252/ltcube_755481601_756086401_4FGL_J2324.6+3115_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60353252/Model_4FGL_J2324.6+3115_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.6+3115'

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.967e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60353252/ft1_filtered_4FGL_J2324.6+3115_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60353252/ft2_4FGL_J2324.6+3115_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60353252/expmap_755481601_756086401_4FGL_J2324.6+3115_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60353252/ltcube_755481601_756086401_4FGL_J2324.6+3115_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60353252/Model_4FGL_J2324.6+3115_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) = 17646.0538728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.655       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11338E-04   1.0000          .0000       .10000E+07
     3 'norm      '    3.7467       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.1276       1.0000          .0000       .10000E+07
     5 'Prefactor '    .59842E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .64282E-05   1.0000          .0000       .10000E+07
     7 'norm      '    .40618E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .65986E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .72791E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    41.566       1.0000          .0000       .10000E+07
    11 'norm      '    .28474E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .36241E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    17.020       1.0000          .0000       .10000E+07
    14 'norm      '    1.8013       1.0000          .0000       .10000E+07
    15 'Prefactor '    .14435E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    7.6396       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.2083       1.0000          .0000       .10000E+07
    18 'Normalizat'    .73839       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1134       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17646.00     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     1382 TOTAL
                     EDM=   .78E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.556        2.2842        .29005E-07    .79231E-02
   2  Prefactor      .0000        3.4648       -.15981E-06** at limit **
   3  norm          3.7467        .91461        .38093E-08   -.42846E-03
   4  Prefactor     4.1258        7.5246        .14932E-06   -.17580E-04
   5  Prefactor      .0000        .97489       -.26025E-07** at limit **
   6  Prefactor     .16653E-09    4.5376        .12274E-06** at limit **
   7  norm           .0000        .34126       -.27610E-07** at limit **
   8  Prefactor      .0000        9.4491        .14131E-06** at limit **
   9  Prefactor      .0000        3.3267        .13764E-06** at limit **
  10  Prefactor     41.179        21.452       -.11676E-06    .16470E-02
  11  norm           .0000        2.1753        .19770E-07** at limit **
  12  norm           .0000        4.3032        .10639E-07** at limit **
  13  Prefactor     17.104        4.8412        .29699E-08    .10540E-01
  14  norm          1.8004        1.3163        .30369E-07   -.25785E-03
  15  Prefactor     .38858E-09    4.8849        .94435E-07** at limit **
  16  Prefactor     8.7757        49.339       -.65186E-06    .19898E-03
  17  Prefactor     3.1789        6.1301        .22502E-06   -.74273E-03
  18  Normalizat    .73813        .15276       -.78603E-07    .11418E-04
  19  Prefactor     1.1135        .79949E-01   -.34272E-06    .18179E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.556
  Prefactor  = 0
  norm       = 3.74668
  Prefactor  = 4.12582
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 41.1794
  norm       = 0
  norm       = 0
  Prefactor  = 17.1043
  norm       = 1.80036
  Prefactor  = 3.88578e-10
  Prefactor  = 8.77569
  Prefactor  = 3.17888
  Normalizat = 0.73813
  Prefactor  = 1.1135
 **********
 **   18 **HESSE 
 **********

 FCN=   17646.00     FROM HESSE     STATUS=OK           304 CALLS     1686 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.556        11.640        .29319E-03   -1.5640    
   2  Prefactor      .0000        3.4435        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.7467        .91648        .52137E-03   -1.5669    
   4  Prefactor     4.1258        7.5251        .49592E-03   -1.5667    
   5  Prefactor      .0000        .97432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16653E-09    4.7125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .33660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        9.4372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        3.3201        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     41.179        21.477        .15512E-03   -1.5580    
  11  norm           .0000        2.1721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        4.2861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.104        11.132        .24250E-03   -1.5625    
  14  norm          1.8004        1.3125        .77857E-03   -1.5681    
  15  Prefactor     .38858E-09    5.4504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.7757        54.040        .36258E-03   -1.5649    
  17  Prefactor     3.1789        6.8123        .56538E-03   -1.5672    
  18  Normalizat    .73813        .13793        .85330E-01   -1.0241    
  19  Prefactor     1.1135        .70412E-01    .37097E-01   -.89036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72563e-07
Minuit parameter uncertainties:
  1  11.6396
  2  8.67619e-06
  3  0.916482
  4  7.52512
  5  5.05843e-07
  6  5.8783e-05
  7  2.12537e-07
  8  5.62099e-06
  9  1.9836e-06
  10  21.4774
  11  3.05433e-07
  12  3.22982e-06
  13  11.1324
  14  1.31247
  15  9.22735e-05
  16  43.5548
  17  6.81234
  18  0.137993
  19  0.0704176
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.710e+01  1.113e+01  0.000e+00  1.000e+06 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.114e+00  7.042e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  7.381e-01  1.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.13
Ra Dec: 351.170 31.257
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 5.50e-08 +/- 3.58e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 7.64e-06

TS (Fixed Index): 3.13
Ra Dec: 351.170 31.257
Photon Flux Upper Limit: 1.20098987739e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00954653696974 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60353252/likelihoodResults_755481601_756086401_4FGL_J2324.6+3115_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): 0
logL (Free Index) = 17645.8266345
delta logL = 0.168445742755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17645.8242553
delta logL = 0.170824944282

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17645.82     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      295 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.716        15.753        .11227E-04    .32648E-02
   2  Index         3.3275        1.0942        .11204E-01    .71876E-04
   3  Normalizat    .72222        .15672        .38173E-03    .53489E-03
   4  Prefactor     1.1200        .80715E-01    .16319E-03    .11866E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.7157
  Index      = 3.32748
  Normalizat = 0.72222
  Prefactor  = 1.12004
 **********
 **   18 **HESSE 
 **********

 FCN=   17645.82     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.716        12.787        .44907E-06   -1.5637    
   2  Index         3.3275        .88969        .44817E-03   -.34108    
   3  Normalizat    .72222        .15660        .15269E-04   -1.0302    
   4  Prefactor     1.1200        .80484E-01    .32638E-04   -.88829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65358e-10
Minuit parameter uncertainties:
  1  12.7872
  2  0.895063
  3  0.156701
  4  0.0804925
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) = 17645.8242551
delta logL = 0.170825169025

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.272e+01  1.279e+01  0.000e+00  1.000e+06 ( 1.000e-12)
451        Index:  3.327e+00  8.951e-01  0.000e+00  1.000e+01 (-1.000e+00)
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.120e+00  8.049e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  7.222e-01  1.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.54
Ra Dec: 351.170 31.257
Photon Index (Free Index): 3.33 +/- 0.90
Photon Flux (Free Index): 6.28e-08 +/- 3.86e-08
Energy Flux (Free Index): 1.10e-05 +/- 7.04e-06

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/60353252/cmap_HighResolution_755481601_756086401_4FGL_J2324.6+3115_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.55e-03', comment='SUCCESS', photon_flux='5.50e-08', energy_flux2='1.10e-05', photon_flux_error='3.58e-08', dlogl='1.71e-01', energy_flux='1.17e-05', photon_flux2='6.28e-08', job_status='DONE', time_completed='2024-12-17 01:28:13.575333', photon_index_error2='0.90', photon_index2='3.33', ts='3.13', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='7.04e-06', EG='0.74', time_epoch_completed='1734427693.58', return_code='0', job_id='60353252', GAL2='1.12', EG2='0.72', return_code2='0', energy_flux_error='7.64e-06', photon_flux_error2='3.86e-08', ts2='3.54', photon_index='2.88' WHERE bin_id='854' AND source_name='4FGL J2324.6+3115' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 01:28:13 PST 2024

