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


Performing analysis on: 4FGL_J2327.5+0939_weekly_bin801
RA = 351.896, Dec = 9.6543
tmin = 723427201, tmax = 724032001
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='35834556', job_status='RUN', time_executed='2023-12-12 02:41:05.108184', time_epoch_executed='1702377665.11' WHERE source_name='4FGL J2327.5+0939' and cadence='weekly' and bin_id='801'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/35834556

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/35834556/ft1_4FGL_J2327.5+0939_weekly_bin801.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/35834556/ft2_4FGL_J2327.5+0939_weekly_bin801.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/35834556/ft1_4FGL_J2327.5+0939_weekly_bin801.fits outfile=/lscratch/kocevski/35834556/ft1_filteredMKT_4FGL_J2327.5+0939_weekly_bin801.fits ra=351.896 dec=9.6543 rad=12.0 tmin=723427201.0 tmax=724032001.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.73
user 4.46
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/35834556/ft2_4FGL_J2327.5+0939_weekly_bin801.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/35834556/ft2_4FGL_J2327.5+0939_weekly_bin801.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/35834556/ft1_filteredMKT_4FGL_J2327.5+0939_weekly_bin801.fits evtable="EVENTS" outfile="/lscratch/kocevski/35834556/ft1_filtered_4FGL_J2327.5+0939_weekly_bin801.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.43
user 0.23
sys 0.12

Number of photons that the gtmktime cut: 1609

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/35834556/ft1_filtered_4FGL_J2327.5+0939_weekly_bin801.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35834556/ft2_4FGL_J2327.5+0939_weekly_bin801.fits sctable="SC_DATA" outfile=/lscratch/kocevski/35834556/ltcube_723427201_724032001_4FGL_J2327.5+0939_weekly_bin801.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/35834556/ft2_4FGL_J2327.5+0939_weekly_bin801.fits
.....................!
real 20.01
user 19.59
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/35834556/ft1_filtered_4FGL_J2327.5+0939_weekly_bin801.fits evtable="EVENTS" scfile=/lscratch/kocevski/35834556/ft2_4FGL_J2327.5+0939_weekly_bin801.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35834556/ltcube_723427201_724032001_4FGL_J2327.5+0939_weekly_bin801.fits outfile=/lscratch/kocevski/35834556/expmap_723427201_724032001_4FGL_J2327.5+0939_weekly_bin801.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/35834556/ltcube_723427201_724032001_4FGL_J2327.5+0939_weekly_bin801.fits
.....................!
real 72.80
user 68.29
sys 4.15

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

Setting source of interest to:
4FGL J2327.5+0939 @ 351.896 9.6543

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/35834556/ft1_filtered_4FGL_J2327.5+0939_weekly_bin801.fits scfile=/lscratch/kocevski/35834556/ft2_4FGL_J2327.5+0939_weekly_bin801.fits outfile=/lscratch/kocevski/35834556/cmap_723427201_724032001_4FGL_J2327.5+0939_weekly_bin801.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.896 yref=9.6543 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.26
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/35834556/ft1_filtered_4FGL_J2327.5+0939_weekly_bin801.fits scfile=/lscratch/kocevski/35834556/ft2_4FGL_J2327.5+0939_weekly_bin801.fits outfile=/lscratch/kocevski/35834556/cmap_HighResolution_723427201_724032001_4FGL_J2327.5+0939_weekly_bin801.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.896 yref=9.6543 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.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/35834556/ft1_filtered_4FGL_J2327.5+0939_weekly_bin801.fits evtable="EVENTS" scfile=/lscratch/kocevski/35834556/ft2_4FGL_J2327.5+0939_weekly_bin801.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35834556/Model_4FGL_J2327.5+0939_weekly_bin801.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/35834556/ft1_filtered_4FGL_J2327.5+0939_weekly_bin801.fits.....................!
real 68.57
user 67.52
sys 0.64

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/35834556/ft1_filtered_4FGL_J2327.5+0939_weekly_bin801.fits', '/lscratch/kocevski/35834556/ft2_4FGL_J2327.5+0939_weekly_bin801.fits', expMap='/lscratch/kocevski/35834556/expmap_723427201_724032001_4FGL_J2327.5+0939_weekly_bin801.fits', expCube='/lscratch/kocevski/35834556/ltcube_723427201_724032001_4FGL_J2327.5+0939_weekly_bin801.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35834556/Model_4FGL_J2327.5+0939_weekly_bin801.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2327.5+0939'

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  8.298e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
410        alpha:  2.682e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
411         beta:  1.276e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
412           Eb:  5.819e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/35834556/ft1_filtered_4FGL_J2327.5+0939_weekly_bin801.fits
Spacecraft file(s): /lscratch/kocevski/35834556/ft2_4FGL_J2327.5+0939_weekly_bin801.fits
Exposure map: /lscratch/kocevski/35834556/expmap_723427201_724032001_4FGL_J2327.5+0939_weekly_bin801.fits
Exposure cube: /lscratch/kocevski/35834556/ltcube_723427201_724032001_4FGL_J2327.5+0939_weekly_bin801.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/35834556/Model_4FGL_J2327.5+0939_weekly_bin801.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) = 17053.0154156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7691       1.0000          .0000       .10000E+07
     2 'Prefactor '    .80773       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1557       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.3418       1.0000          .0000       .10000E+07
     5 'Prefactor '    .17310E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .71999       1.0000          .0000       .10000E+07
     7 'Prefactor '    3.2891       1.0000          .0000       .10000E+07
     8 'Prefactor '    16.655       1.0000          .0000       .10000E+07
     9 'Prefactor '    .57576E-03   1.0000          .0000       .10000E+07
    10 'norm      '    8.2523       1.0000          .0000       .10000E+07
    11 'Prefactor '    .26649E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .93842E-05   1.0000          .0000       .10000E+07
    13 'norm      '    6.4602       1.0000          .0000       .10000E+07
    14 'norm      '    16.116       1.0000          .0000       .10000E+07
    15 'Prefactor '    .44176       1.0000          .0000       .10000E+07
    16 'Prefactor '    19.752       1.0000          .0000       .10000E+07
    17 'Prefactor '    .18408E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.2614       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89656       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17052.85     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1120 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8178        1.0341        .73444E-08    .27730E-03
   2  Prefactor     .80763        .10787        .24218E-07   -.10342E-03
   3  Prefactor     .35908        33.374        .11505E-05    .22544E-01
   4  Prefactor     3.3202        4.0869       -.26473E-06    .38198E-03
   5  Prefactor     .27756E-09    7.9182       -.45908E-06** at limit **
   6  Prefactor     .72386        2.9242       -.17544E-06   -.32316E-03
   7  Prefactor     3.2940        5.3340        .27303E-07   -.58193E-03
   8  Prefactor     16.970        1.7770        .15751E-07    .22091E-01
   9  Prefactor     .31641E-08    11.898        .23307E-06** at limit **
  10  norm          8.2490        4.5952       -.67618E-07    .95796E-03
  11  Prefactor     .62172E-08    3.6065       -.64269E-07** at limit **
  12  Prefactor     .72164E-09    5.5356        .13072E-06** at limit **
  13  norm          6.4475        6.4734       -.30395E-07    .87995E-03
  14  norm          16.066        1.1988        .22112E-08   -.21384E-01
  15  Prefactor     .89119E-05    96.206        .20528E-05** at limit **
  16  Prefactor     19.918        1.1371        .17501E-07    .12389E-03
  17  Prefactor     .72164E-08    3.5449       -.27409E-07** at limit **
  18  Normalizat    1.2617        .15161       -.10814E-05    .11015E-04
  19  Prefactor     .89664        .94338E-01    .27056E-05   -.21122E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.81781
  Prefactor  = 0.807625
  Prefactor  = 0.359078
  Prefactor  = 3.32017
  Prefactor  = 2.77556e-10
  Prefactor  = 0.723857
  Prefactor  = 3.29404
  Prefactor  = 16.97
  Prefactor  = 3.16414e-09
  norm       = 8.24904
  Prefactor  = 6.21725e-09
  Prefactor  = 7.21645e-10
  norm       = 6.44749
  norm       = 16.0662
  Prefactor  = 8.91187e-06
  Prefactor  = 19.9177
  Prefactor  = 7.21645e-09
  Normalizat = 1.26173
  Prefactor  = 0.896639
 **********
 **   18 **HESSE 
 **********

 FCN=   17052.85     FROM HESSE     STATUS=OK           318 CALLS     1438 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8178        14.386        .61135E-03   -1.5674    
   2  Prefactor     .80763        .10894        .34046E-02   -1.5528    
   3  Prefactor     .35908        11.215        .13364E-01   -1.5696    
   4  Prefactor     3.3202        4.1040        .55340E-03   -1.5672    
   5  Prefactor     .27756E-09    7.9825        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .72386        3.4574        .59101E-03   -1.5691    
   7  Prefactor     3.2940        5.3590        .55804E-03   -1.5672    
   8  Prefactor     16.970        13.344        .24515E-03   -1.5626    
   9  Prefactor     .31641E-08    11.902        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.2490        4.6148        .34875E-03   -1.5651    
  11  Prefactor     .62172E-08    6.9010        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .72164E-09    5.5515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4475        6.4835        .39463E-03   -1.5657    
  14  norm          16.066        12.643        .24922E-03   -1.5628    
  15  Prefactor     .89119E-05    105.25        .84800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.918        14.443        .22508E-03   -1.5619    
  17  Prefactor     .72164E-08    7.0427        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2617        .13254        .65677E-01   -.84716    
  19  Prefactor     .89664        .80650E-01    .44961E-01   -.96259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49849e-06
Minuit parameter uncertainties:
  1  12.7339
  2  0.10894
  3  4.01355
  4  4.10399
  5  9.00268e-05
  6  3.16395
  7  5.35902
  8  13.3445
  9  0.000388815
  10  4.6148
  11  0.000414342
  12  0.000125909
  13  6.48348
  14  12.643
  15  0.0612541
  16  14.443
  17  0.000451563
  18  0.13258
  19  0.0806606
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  8.249e+00  4.615e+00  0.000e+00  1.000e+06 ( 1.000e-12)
410        alpha:  2.682e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
411         beta:  1.276e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
412           Eb:  5.819e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.966e-01  8.066e-02  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.262e+00  1.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.48
Ra Dec: 351.896 9.654
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 4.47e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 6.22e-06

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) = 17052.3076922
delta logL = 0.543581493679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17052.3043345
delta logL = 0.546939181626

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17052.30     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      215 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7184        6.0580        .33955E-03    .23848E-02
   2  alpha         1.9547        .57715        .42461       -.78156E-04
   3  Normalizat    1.2898        .12858        .65073E-01    .22224E-04
   4  Prefactor     .88634        .80272E-01    .44833E-01    .13919E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.71838
  alpha      = 1.95473
  Normalizat = 1.28977
  Prefactor  = 0.886342
 **********
 **   18 **HESSE 
 **********

 FCN=   17052.30     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7184        5.7707        .13582E-04   -1.5649    
   2  alpha         1.9547        .67513        .26135E-01   -.21988    
   3  Normalizat    1.2898        .15061        .28785E-03   -.83872    
   4  Prefactor     .88634        .93927E-01    .21268E-03   -.96620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62651e-11
Minuit parameter uncertainties:
  1  5.7707
  2  0.684056
  3  0.15066
  4  0.0939444
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) = 17052.3043281
delta logL = 0.546945542919

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  8.718e+00  5.771e+00  0.000e+00  1.000e+06 ( 1.000e-12)
410        alpha:  1.955e+00  6.841e-01  0.000e+00  5.000e+00 ( 1.000e+00)
411         beta:  1.276e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
412           Eb:  5.819e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.863e-01  9.394e-02  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.290e+00  1.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.56
Ra Dec: 351.896 9.654
Photon Index (Free Index): 1.95 +/- 0.68
Photon Flux (Free Index): 2.38e-08 +/- 2.31e-08
Energy Flux (Free Index): 1.22e-05 +/- 7.91e-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/35834556/cmap_HighResolution_723427201_724032001_4FGL_J2327.5+0939_weekly_bin801.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.47e-08', energy_flux2='1.22e-05', photon_flux_error='2.50e-08', dlogl='5.47e-01', energy_flux='1.11e-05', photon_flux2='2.38e-08', job_status='DONE', time_completed='2023-12-12 02:48:02.346546', photon_index_error2='0.68', photon_index2='1.95', ts='6.48', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='7.91e-06', EG='1.26', time_epoch_completed='1702378082.35', return_code='0', job_id='35834556', GAL2='0.89', EG2='1.29', return_code2='0', energy_flux_error='6.22e-06', photon_flux_error2='2.31e-08', ts2='7.56', photon_index='2.68' WHERE bin_id='801' AND source_name='4FGL J2327.5+0939' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 12 02:48:02 PST 2023

