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


Performing analysis on: 4FGL_J2234.7+0943_weekly_bin908
RA = 338.691, Dec = 9.732
tmin = 788140801, tmax = 788745601
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='18162079', job_status='RUN', time_executed='2025-12-30 02:58:23.616781', time_epoch_executed='1767092303.62' WHERE source_name='4FGL J2234.7+0943' and cadence='weekly' and bin_id='908'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18162079

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18162079/ft1_4FGL_J2234.7+0943_weekly_bin908.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18162079/ft2_4FGL_J2234.7+0943_weekly_bin908.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18162079/ft1_4FGL_J2234.7+0943_weekly_bin908.fits outfile=/lscratch/kocevski/18162079/ft1_filteredMKT_4FGL_J2234.7+0943_weekly_bin908.fits ra=338.691 dec=9.732 rad=12.0 tmin=788140801.0 tmax=788745601.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 6.16
user 4.95
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18162079/ft2_4FGL_J2234.7+0943_weekly_bin908.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18162079/ft2_4FGL_J2234.7+0943_weekly_bin908.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/18162079/ft1_filteredMKT_4FGL_J2234.7+0943_weekly_bin908.fits evtable="EVENTS" outfile="/lscratch/kocevski/18162079/ft1_filtered_4FGL_J2234.7+0943_weekly_bin908.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.94
user 0.24
sys 0.15

Number of photons that the gtmktime cut: 1556

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18162079/ft1_filtered_4FGL_J2234.7+0943_weekly_bin908.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18162079/ft2_4FGL_J2234.7+0943_weekly_bin908.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18162079/ltcube_788140801_788745601_4FGL_J2234.7+0943_weekly_bin908.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/18162079/ft2_4FGL_J2234.7+0943_weekly_bin908.fits
.....................!
real 21.75
user 20.75
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18162079/ft1_filtered_4FGL_J2234.7+0943_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18162079/ft2_4FGL_J2234.7+0943_weekly_bin908.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18162079/ltcube_788140801_788745601_4FGL_J2234.7+0943_weekly_bin908.fits outfile=/lscratch/kocevski/18162079/expmap_788140801_788745601_4FGL_J2234.7+0943_weekly_bin908.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/18162079/ltcube_788140801_788745601_4FGL_J2234.7+0943_weekly_bin908.fits
.....................!
real 79.02
user 73.51
sys 4.58

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

Setting source of interest to:
4FGL J2234.7+0943 @ 338.691 9.732

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18162079/ft1_filtered_4FGL_J2234.7+0943_weekly_bin908.fits scfile=/lscratch/kocevski/18162079/ft2_4FGL_J2234.7+0943_weekly_bin908.fits outfile=/lscratch/kocevski/18162079/cmap_788140801_788745601_4FGL_J2234.7+0943_weekly_bin908.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=338.691 yref=9.732 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.72
user 0.27
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18162079/ft1_filtered_4FGL_J2234.7+0943_weekly_bin908.fits scfile=/lscratch/kocevski/18162079/ft2_4FGL_J2234.7+0943_weekly_bin908.fits outfile=/lscratch/kocevski/18162079/cmap_HighResolution_788140801_788745601_4FGL_J2234.7+0943_weekly_bin908.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=338.691 yref=9.732 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.70
user 0.25
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18162079/ft1_filtered_4FGL_J2234.7+0943_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18162079/ft2_4FGL_J2234.7+0943_weekly_bin908.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18162079/Model_4FGL_J2234.7+0943_weekly_bin908.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/18162079/ft1_filtered_4FGL_J2234.7+0943_weekly_bin908.fits.....................!
real 70.28
user 67.91
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18162079/ft1_filtered_4FGL_J2234.7+0943_weekly_bin908.fits', '/lscratch/kocevski/18162079/ft2_4FGL_J2234.7+0943_weekly_bin908.fits', expMap='/lscratch/kocevski/18162079/expmap_788140801_788745601_4FGL_J2234.7+0943_weekly_bin908.fits', expCube='/lscratch/kocevski/18162079/ltcube_788140801_788745601_4FGL_J2234.7+0943_weekly_bin908.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18162079/Model_4FGL_J2234.7+0943_weekly_bin908.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2234.7+0943'

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  3.256e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  9.408e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18162079/ft1_filtered_4FGL_J2234.7+0943_weekly_bin908.fits
Spacecraft file(s): /lscratch/kocevski/18162079/ft2_4FGL_J2234.7+0943_weekly_bin908.fits
Exposure map: /lscratch/kocevski/18162079/expmap_788140801_788745601_4FGL_J2234.7+0943_weekly_bin908.fits
Exposure cube: /lscratch/kocevski/18162079/ltcube_788140801_788745601_4FGL_J2234.7+0943_weekly_bin908.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18162079/Model_4FGL_J2234.7+0943_weekly_bin908.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) = 17397.3338432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18597E-04   1.0000          .0000       .10000E+07
     2 'norm      '    12.018       1.0000          .0000       .10000E+07
     3 'norm      '    .39413E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    .57994E-05   1.0000          .0000       .10000E+07
     5 'norm      '    2.3146       1.0000          .0000       .10000E+07
     6 'Prefactor '    .13078E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    3.5325       1.0000          .0000       .10000E+07
     8 'Prefactor '    .68562       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1983       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0333       1.0000          .0000       .10000E+07
    11 'Prefactor '    .18730E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .37737E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.1016       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25269E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    11.687       1.0000          .0000       .10000E+07
    16 'Prefactor '    8.6168       1.0000          .0000       .10000E+07
    17 'Normalizat'    .99621       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .87876       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17397.22     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     1033 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22204E-09    3.7394        .37546E-06** at limit **
   2  norm          11.563        1.5234       -.22660E-09    .57628E-01
   3  norm           .0000        .11740       -.25991E-06** at limit **
   4  Prefactor     .55511E-10    2.8498        .22814E-06** at limit **
   5  norm          2.3113        2.0089       -.47761E-06    .86398E-03
   6  Prefactor     .13878E-08    3.5517       -.27389E-06** at limit **
   7  Prefactor     3.5329        1.1339       -.57859E-07    .74907E-01
   8  Prefactor     .68520        .14717        .87683E-06   -.19782E-02
   9  Prefactor     5.2278        4.4119       -.41639E-05    .28854E-03
  10  norm          1.0331        .74368       -.16279E-06    .48759E-02
  11  Prefactor     .16653E-09    18.971       -.16869E-05** at limit **
  12  Prefactor     .32196E-08    10.160        .35611E-07** at limit **
  13  Prefactor     1.1018        .13807        .27118E-06   -.19984E-02
  14  Prefactor     .53291E-08    17.112        .31209E-07** at limit **
  15  Prefactor     11.588        5.6583        .10540E-06    .16768E-02
  16  Prefactor     8.6157        1.0216       -.57767E-08    .13599E-03
  17  Normalizat    .99681        .15925        .45657E-05   -.18237E-03
  18  Prefactor     .87872        .87091E-01    .33789E-05   -.29539E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22045e-10
  norm       = 11.563
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 2.31126
  Prefactor  = 1.38778e-09
  Prefactor  = 3.53292
  Prefactor  = 0.685196
  Prefactor  = 5.22779
  norm       = 1.0331
  Prefactor  = 1.66533e-10
  Prefactor  = 3.21965e-09
  Prefactor  = 1.10185
  Prefactor  = 5.32907e-09
  Prefactor  = 11.5884
  Prefactor  = 8.61573
  Normalizat = 0.99681
  Prefactor  = 0.878723
 **********
 **   18 **HESSE 
 **********

 FCN=   17397.22     FROM HESSE     STATUS=OK           286 CALLS     1319 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22204E-09    3.6189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.563        16.551        .28871E-03   -1.5640    
   3  norm           .0000        .11712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    2.8598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3113        2.0198        .67404E-03   -1.5678    
   6  Prefactor     .13878E-08    3.5585        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5329        9.6880        .53758E-03   -1.5670    
   8  Prefactor     .68520        .14826        .49924E-02   -1.5542    
   9  Prefactor     5.2278        4.4113        .44078E-02   -1.5251    
  10  norm          1.0331        .74872        .12434E-02   -1.5688    
  11  Prefactor     .16653E-09    18.443        .17122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .32196E-08    10.157        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1018        .13776        .36789E-02   -1.5498    
  14  Prefactor     .53291E-08    17.148        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.588        5.6669        .29279E-03   -1.5640    
  16  Prefactor     8.6157        8.0894        .34124E-03   -1.5649    
  17  Normalizat    .99681        .13712        .75243E-01   -.93137    
  18  Prefactor     .87872        .73773E-01    .44734E-01   -.96889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.463e-07
Minuit parameter uncertainties:
  1  5.31626e-05
  2  16.551
  3  6.63194e-08
  4  1.96642e-05
  5  2.01984
  6  0.000141869
  7  9.68809
  8  0.148259
  9  4.41155
  10  0.748717
  11  0.000108194
  12  0.000360484
  13  0.13776
  14  0.000604522
  15  5.66687
  16  8.08937
  17  0.137169
  18  0.0737816
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  5.228e+00  4.412e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  9.408e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.787e-01  7.378e-02  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  9.968e-01  1.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.60
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 1.34e-08 +/- 1.13e-08
Energy Flux (Fixed Index): 9.91e-06 +/- 8.36e-06

TS (Fixed Index): 2.60
Ra Dec: 338.691 9.732
Photon Flux Upper Limit: 4.00650042197e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.95594005786e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18162079/likelihoodResults_788140801_788745601_4FGL_J2234.7+0943_weekly_bin908.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) = 17397.2073112
delta logL = 0.0153214201819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17397.2065677
delta logL = 0.0160649242862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0600       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.1358       1.0000          .0000       10.000    
     3 'Normalizat'    .99484       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87846       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17397.21     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      259 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0585        4.5870        .89376E-03    .34780E-03
   2  Index1        1.1365        1.0942        .14099E-01    .15638E-03
   3  Normalizat    .99484        .15833        .33322E-03   -.65096E-04
   4  Prefactor     .87846        .87319E-01    .19343E-03   -.96858E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.05847
  Index1     = 1.13651
  Normalizat = 0.994835
  Prefactor  = 0.878464
 **********
 **   18 **HESSE 
 **********

 FCN=   17397.21     FROM HESSE     STATUS=OK            27 CALLS      286 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0585        4.4494        .17875E-03   -1.5258    
   2  Index1        1.1365        1.0623        .28199E-02   -.88308    
   3  Normalizat    .99484        .15832        .13329E-04   -.93204    
   4  Prefactor     .87846        .87402E-01    .77373E-05   -.96898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47121e-12
Minuit parameter uncertainties:
  1  4.44966
  2  1.0832
  3  0.158399
  4  0.0874161
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) = 17397.2065674
delta logL = 0.0160651690167

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  5.058e+00  4.450e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  1.137e+00  1.083e+00  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.785e-01  8.742e-02  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  9.948e-01  1.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 338.691 9.732
Photon Index (Free Index): 1.14 +/- 1.08
Photon Flux (Free Index): 1.73e-08 +/- 2.74e-08
Energy Flux (Free Index): 1.02e-05 +/- 8.35e-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/18162079/cmap_HighResolution_788140801_788745601_4FGL_J2234.7+0943_weekly_bin908.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-05', comment='SUCCESS', photon_flux='1.34e-08', energy_flux2='1.02e-05', photon_flux_error='1.13e-08', dlogl='1.61e-02', energy_flux='9.91e-06', photon_flux2='1.73e-08', job_status='DONE', time_completed='2025-12-30 03:06:50.850439', photon_index_error2='1.08', photon_index2='1.14', ts='2.60', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='4.01e-08', energy_flux_error2='8.35e-06', EG='1.00', time_epoch_completed='1767092810.85', return_code='0', job_id='18162079', GAL2='0.88', EG2='0.99', return_code2='0', energy_flux_error='8.36e-06', photon_flux_error2='2.74e-08', ts2='2.64', photon_index='0.94' WHERE bin_id='908' AND source_name='4FGL J2234.7+0943' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 30 03:06:51 PST 2025

