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


Performing analysis on: 4FGL_J2323.8+4210_weekly_bin858
RA = 350.975, Dec = 42.1826
tmin = 757900801, tmax = 758505601
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='61728595', job_status='RUN', time_executed='2025-01-14 03:51:13.997440', time_epoch_executed='1736855474.0' WHERE source_name='4FGL J2323.8+4210' and cadence='weekly' and bin_id='858'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/61728595

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/61728595/ft1_4FGL_J2323.8+4210_weekly_bin858.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/61728595/ft2_4FGL_J2323.8+4210_weekly_bin858.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/61728595/ft1_4FGL_J2323.8+4210_weekly_bin858.fits outfile=/lscratch/kocevski/61728595/ft1_filteredMKT_4FGL_J2323.8+4210_weekly_bin858.fits ra=350.975 dec=42.1826 rad=12.0 tmin=757900801.0 tmax=758505601.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.44
user 3.04
sys 0.30

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/61728595/ft2_4FGL_J2323.8+4210_weekly_bin858.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/61728595/ft2_4FGL_J2323.8+4210_weekly_bin858.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/61728595/ft1_filteredMKT_4FGL_J2323.8+4210_weekly_bin858.fits evtable="EVENTS" outfile="/lscratch/kocevski/61728595/ft1_filtered_4FGL_J2323.8+4210_weekly_bin858.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.53
user 0.29
sys 0.16

Number of photons that the gtmktime cut: 4161

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/61728595/ft1_filtered_4FGL_J2323.8+4210_weekly_bin858.fits" evtable="EVENTS" scfile=/lscratch/kocevski/61728595/ft2_4FGL_J2323.8+4210_weekly_bin858.fits sctable="SC_DATA" outfile=/lscratch/kocevski/61728595/ltcube_757900801_758505601_4FGL_J2323.8+4210_weekly_bin858.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/61728595/ft2_4FGL_J2323.8+4210_weekly_bin858.fits
.....................!
real 27.13
user 26.47
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/61728595/ft1_filtered_4FGL_J2323.8+4210_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61728595/ft2_4FGL_J2323.8+4210_weekly_bin858.fits sctable="SC_DATA" expcube=/lscratch/kocevski/61728595/ltcube_757900801_758505601_4FGL_J2323.8+4210_weekly_bin858.fits outfile=/lscratch/kocevski/61728595/expmap_757900801_758505601_4FGL_J2323.8+4210_weekly_bin858.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/61728595/ltcube_757900801_758505601_4FGL_J2323.8+4210_weekly_bin858.fits
.....................!
real 59.76
user 55.81
sys 3.50

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 FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 164 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2323.8+4210 @ 350.975 42.1826

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/61728595/ft1_filtered_4FGL_J2323.8+4210_weekly_bin858.fits scfile=/lscratch/kocevski/61728595/ft2_4FGL_J2323.8+4210_weekly_bin858.fits outfile=/lscratch/kocevski/61728595/cmap_757900801_758505601_4FGL_J2323.8+4210_weekly_bin858.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=350.975 yref=42.1826 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.41
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/61728595/ft1_filtered_4FGL_J2323.8+4210_weekly_bin858.fits scfile=/lscratch/kocevski/61728595/ft2_4FGL_J2323.8+4210_weekly_bin858.fits outfile=/lscratch/kocevski/61728595/cmap_HighResolution_757900801_758505601_4FGL_J2323.8+4210_weekly_bin858.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=350.975 yref=42.1826 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.23
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/61728595/ft1_filtered_4FGL_J2323.8+4210_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61728595/ft2_4FGL_J2323.8+4210_weekly_bin858.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/61728595/Model_4FGL_J2323.8+4210_weekly_bin858.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/61728595/ft1_filtered_4FGL_J2323.8+4210_weekly_bin858.fits.....................!
real 163.71
user 161.78
sys 0.74

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/61728595/ft1_filtered_4FGL_J2323.8+4210_weekly_bin858.fits', '/lscratch/kocevski/61728595/ft2_4FGL_J2323.8+4210_weekly_bin858.fits', expMap='/lscratch/kocevski/61728595/expmap_757900801_758505601_4FGL_J2323.8+4210_weekly_bin858.fits', expCube='/lscratch/kocevski/61728595/ltcube_757900801_758505601_4FGL_J2323.8+4210_weekly_bin858.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/61728595/Model_4FGL_J2323.8+4210_weekly_bin858.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.8+4210'

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  5.154e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
459        alpha:  1.778e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
460         beta:  6.822e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
461           Eb:  1.948e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/61728595/ft1_filtered_4FGL_J2323.8+4210_weekly_bin858.fits
Spacecraft file(s): /lscratch/kocevski/61728595/ft2_4FGL_J2323.8+4210_weekly_bin858.fits
Exposure map: /lscratch/kocevski/61728595/expmap_757900801_758505601_4FGL_J2323.8+4210_weekly_bin858.fits
Exposure cube: /lscratch/kocevski/61728595/ltcube_757900801_758505601_4FGL_J2323.8+4210_weekly_bin858.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/61728595/Model_4FGL_J2323.8+4210_weekly_bin858.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) = 43674.3174515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3404       1.0000          .0000       .10000E+07
     2 'norm      '    4.3195       1.0000          .0000       .10000E+07
     3 'Prefactor '    .87469E-06   1.0000          .0000       .10000E+07
     4 'norm      '    .90837       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.4859       1.0000          .0000       .10000E+07
     6 'Prefactor '    .16238E-03   1.0000          .0000       .10000E+07
     7 'norm      '    1.0298       1.0000          .0000       .10000E+07
     8 'Prefactor '    .14161E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    8.0870       1.0000          .0000       .10000E+07
    10 'Prefactor '    .66270E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .72164E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .15278E-02   1.0000          .0000       .10000E+07
    13 'norm      '     .0000       1.0000          .0000       .10000E+07
    14 'norm      '    3.8194       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11124E-02   1.0000          .0000       .10000E+07
    16 'norm      '    1.5047       1.0000          .0000       .10000E+07
    17 'norm      '    .11546E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    10.280       1.0000          .0000       .10000E+07
    19 'Prefactor '    21.331       1.0000          .0000       .10000E+07
    20 'Prefactor '    .25335E-06   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0197       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98658       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   43674.26     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1431 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3297        1.3089       -.24936E-06   -.19242E-01
   2  norm          4.3439        6.4563       -.10782E-05   -.34775E-04
   3  Prefactor      .0000        1.3463        .53002E-06** at limit **
   4  norm          .90563        .62233        .17155E-08   -.46627E-02
   5  Prefactor     1.4872        1.5380       -.58009E-07   -.67231E-03
   6  Prefactor     .22204E-09    17.000       -.10505E-04** at limit **
   7  norm          1.0292        1.0462        .38229E-07    .37114E-03
   8  Prefactor      .0000        3.8342       -.77720E-07** at limit **
   9  Prefactor     8.0986        3.2818       -.28516E-06    .46825E-02
  10  Prefactor      .0000        6.4034       -.79357E-06** at limit **
  11  norm           .0000        .16241        .31068E-07** at limit **
  12  Prefactor     .55511E-10    16.881        .11165E-04** at limit **
  13  norm           .0000        .50473       -.10620E-06** at limit **
  14  norm          3.8329        3.1697       -.10504E-06   -.18637E-02
  15  Prefactor      .0000        3.2780       -.60519E-06** at limit **
  16  norm          1.5049        .83333        .48852E-07    .40827E-03
  17  norm           .0000        1.3767        .10838E-06** at limit **
  18  Prefactor     10.735        1.7855        .47332E-07   -.13382E-02
  19  Prefactor     21.220        1.1766       -.29344E-07    .85992E-03
  20  Prefactor     .55511E-10    1.9423        .38395E-06** at limit **
  21  Normalizat    1.0194        .11217       -.14744E-04    .10497E-03
  22  Prefactor     .98660        .39481E-01    .32039E-05    .59039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.32968
  norm       = 4.34392
  Prefactor  = 0
  norm       = 0.905631
  Prefactor  = 1.48717
  Prefactor  = 2.22045e-10
  norm       = 1.02923
  Prefactor  = 0
  Prefactor  = 8.09858
  Prefactor  = 0
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 3.8329
  Prefactor  = 0
  norm       = 1.5049
  norm       = 0
  Prefactor  = 10.7351
  Prefactor  = 21.2201
  Prefactor  = 5.55112e-11
  Normalizat = 1.01944
  Prefactor  = 0.986596
 **********
 **   18 **HESSE 
 **********

 FCN=   43674.26     FROM HESSE     STATUS=OK           392 CALLS     1823 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3297        9.3266        .43465E-03   -1.5662    
   2  norm          4.3439        6.6723        .48445E-03   -1.5666    
   3  Prefactor      .0000        1.3428        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .90563        .62290        .45183E-03   -1.5689    
   5  Prefactor     1.4872        1.5571        .87963E-03   -1.5684    
   6  Prefactor     .22204E-09    16.898        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0292        1.0856        .12522E-02   -1.5688    
   8  Prefactor      .0000        3.8490        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.0986        3.3067        .35232E-03   -1.5651    
  10  Prefactor      .0000        6.3844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .16026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55511E-10    16.520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .50367        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.8329        3.1723        .51621E-03   -1.5669    
  15  Prefactor      .0000        3.2821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5049        .83411        .87221E-03   -1.5683    
  17  norm           .0000        1.3617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.735        19.462        .31226E-03   -1.5642    
  19  Prefactor     21.220        17.046        .21658E-03   -1.5616    
  20  Prefactor     .55511E-10    1.9369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0194        .10205        .91911E-01   -.92382    
  22  Prefactor     .98660        .35310E-01    .33289E-01   -.93178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16026e-07
Minuit parameter uncertainties:
  1  9.32663
  2  6.67231
  3  6.46433e-06
  4  0.622903
  5  1.55715
  6  0.000119856
  7  1.08557
  8  8.79417e-06
  9  3.30666
  10  1.8331e-05
  11  3.50273e-07
  12  5.85409e-05
  13  7.80131e-07
  14  3.17226
  15  5.60897e-06
  16  0.834107
  17  8.7577e-06
  18  19.4619
  19  17.0463
  20  2.25658e-05
  21  0.102069
  22  0.0353104
Done.

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

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  3.833e+00  3.172e+00  0.000e+00  1.000e+06 ( 1.000e-13)
459        alpha:  1.778e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
460         beta:  6.822e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
461           Eb:  1.948e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  9.866e-01  3.531e-02  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.019e+00  1.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.07
Ra Dec: 350.975 42.183
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 7.28e-09 +/- 6.03e-09
Energy Flux (Fixed Index): 8.97e-06 +/- 7.42e-06

TS (Fixed Index): 3.07
Ra Dec: 350.975 42.183
Photon Flux Upper Limit: 2.25254569729e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.77460434815e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/61728595/likelihoodResults_757900801_758505601_4FGL_J2323.8+4210_weekly_bin858.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) = 43674.2273528
delta logL = 0.0341402860504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 43674.2271741
delta logL = 0.0343189397099

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8378       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9835       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98664       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   43674.23     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      231 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8384        59.513        .51492E-03    .60910E-02
   2  alpha         1.9839        3.4136        .42320        .47165E-04
   3  Normalizat    1.0172        .48724E-01    .92000E-01    .12699E-03
   4  Prefactor     .98664        .12577E-01    .33288E-01   -.59854E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.83835
  alpha      = 1.98387
  Normalizat = 1.01718
  Prefactor  = 0.986637
 **********
 **   18 **HESSE 
 **********

 FCN=   43674.23     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8384        3.1806        .20597E-04   -1.5669    
   2  alpha         1.9839        .80629        .35018E-01   -.20795    
   3  Normalizat    1.0172        .11007        .40747E-03   -.92457    
   4  Prefactor     .98664        .39255E-01    .14709E-03   -.93176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97005e-09
Minuit parameter uncertainties:
  1  3.18061
  2  0.821651
  3  0.110095
  4  0.0392561
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) = 43674.227174
delta logL = 0.0343190581334

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  3.838e+00  3.181e+00  0.000e+00  1.000e+06 ( 1.000e-13)
459        alpha:  1.984e+00  8.217e-01  0.000e+00  5.000e+00 ( 1.000e+00)
460         beta:  6.822e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
461           Eb:  1.948e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  9.866e-01  3.926e-02  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.017e+00  1.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.14
Ra Dec: 350.975 42.183
Photon Index (Free Index): 1.98 +/- 0.82
Photon Flux (Free Index): 1.03e-08 +/- 1.52e-08
Energy Flux (Free Index): 7.86e-06 +/- 7.40e-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/61728595/cmap_HighResolution_757900801_758505601_4FGL_J2323.8+4210_weekly_bin858.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-05', comment='SUCCESS', photon_flux='7.28e-09', energy_flux2='7.86e-06', photon_flux_error='6.03e-09', dlogl='3.43e-02', energy_flux='8.97e-06', photon_flux2='1.03e-08', job_status='DONE', time_completed='2025-01-14 04:06:01.175600', photon_index_error2='0.82', photon_index2='1.98', ts='3.07', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='2.25e-08', energy_flux_error2='7.40e-06', EG='1.02', time_epoch_completed='1736856361.18', return_code='0', job_id='61728595', GAL2='0.99', EG2='1.02', return_code2='0', energy_flux_error='7.42e-06', photon_flux_error2='1.52e-08', ts2='3.14', photon_index='1.78' WHERE bin_id='858' AND source_name='4FGL J2323.8+4210' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 14 04:06:01 PST 2025

