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


Performing analysis on: 4FGL_J2234.7+0943_weekly_bin853
RA = 338.691, Dec = 9.732
tmin = 754876801, tmax = 755481601
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='59979380', job_status='RUN', time_executed='2024-12-10 01:26:19.001168', time_epoch_executed='1733822779.0' WHERE source_name='4FGL J2234.7+0943' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59979380

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59979380/ft1_4FGL_J2234.7+0943_weekly_bin853.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59979380/ft2_4FGL_J2234.7+0943_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59979380/ft1_4FGL_J2234.7+0943_weekly_bin853.fits outfile=/lscratch/kocevski/59979380/ft1_filteredMKT_4FGL_J2234.7+0943_weekly_bin853.fits ra=338.691 dec=9.732 rad=12.0 tmin=754876801.0 tmax=755481601.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.63
user 3.22
sys 0.32

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

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

Number of photons that the gtmktime cut: 2784

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59979380/ft1_filtered_4FGL_J2234.7+0943_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59979380/ft2_4FGL_J2234.7+0943_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59979380/ltcube_754876801_755481601_4FGL_J2234.7+0943_weekly_bin853.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/59979380/ft2_4FGL_J2234.7+0943_weekly_bin853.fits
.....................!
real 35.49
user 34.73
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59979380/ft1_filtered_4FGL_J2234.7+0943_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59979380/ft2_4FGL_J2234.7+0943_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59979380/ltcube_754876801_755481601_4FGL_J2234.7+0943_weekly_bin853.fits outfile=/lscratch/kocevski/59979380/expmap_754876801_755481601_4FGL_J2234.7+0943_weekly_bin853.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/59979380/ltcube_754876801_755481601_4FGL_J2234.7+0943_weekly_bin853.fits
.....................!
real 70.49
user 66.26
sys 3.69

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/59979380/ft1_filtered_4FGL_J2234.7+0943_weekly_bin853.fits scfile=/lscratch/kocevski/59979380/ft2_4FGL_J2234.7+0943_weekly_bin853.fits outfile=/lscratch/kocevski/59979380/cmap_754876801_755481601_4FGL_J2234.7+0943_weekly_bin853.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.48
user 0.27
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59979380/ft1_filtered_4FGL_J2234.7+0943_weekly_bin853.fits scfile=/lscratch/kocevski/59979380/ft2_4FGL_J2234.7+0943_weekly_bin853.fits outfile=/lscratch/kocevski/59979380/cmap_HighResolution_754876801_755481601_4FGL_J2234.7+0943_weekly_bin853.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.55
user 0.27
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59979380/ft1_filtered_4FGL_J2234.7+0943_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59979380/ft2_4FGL_J2234.7+0943_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59979380/Model_4FGL_J2234.7+0943_weekly_bin853.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/59979380/ft1_filtered_4FGL_J2234.7+0943_weekly_bin853.fits.....................!
real 103.58
user 101.57
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59979380/ft1_filtered_4FGL_J2234.7+0943_weekly_bin853.fits', '/lscratch/kocevski/59979380/ft2_4FGL_J2234.7+0943_weekly_bin853.fits', expMap='/lscratch/kocevski/59979380/expmap_754876801_755481601_4FGL_J2234.7+0943_weekly_bin853.fits', expCube='/lscratch/kocevski/59979380/ltcube_754876801_755481601_4FGL_J2234.7+0943_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59979380/Model_4FGL_J2234.7+0943_weekly_bin853.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/59979380/ft1_filtered_4FGL_J2234.7+0943_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59979380/ft2_4FGL_J2234.7+0943_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59979380/expmap_754876801_755481601_4FGL_J2234.7+0943_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59979380/ltcube_754876801_755481601_4FGL_J2234.7+0943_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59979380/Model_4FGL_J2234.7+0943_weekly_bin853.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) = 28208.2326367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51781E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .25141E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .21094E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    13.646       1.0000          .0000       .10000E+07
     5 'norm      '    .22693       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10032E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .40759E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    4.3921       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7972       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1684       1.0000          .0000       .10000E+07
    11 'Prefactor '    .74533E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.7475       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.0251       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.329       1.0000          .0000       .10000E+07
    15 'Prefactor '    .25918E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    19.532       1.0000          .0000       .10000E+07
    17 'Normalizat'    .91945       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .97545       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=   28208.21     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1440 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33307E-07    40.552       -.40581E-07** at limit **
   2  norm          .27756E-09    10.615       -.75289E-07** at limit **
   3  norm           .0000        .10707       -.35666E-08** at limit **
   4  Prefactor     13.660        8.8374        .12431E-05    .71056E-02
   5  norm          .22459        3.1218        .76321E-07** at limit **
   6  Prefactor     .94369E-09    19.847       -.49550E-06** at limit **
   7  Prefactor     .11102E-09    5.2383       -.10444E-06** at limit **
   8  Prefactor     4.3924        .22038        .29816E-07    .29996E-02
   9  Prefactor     8.7824        4.2972        .16076E-06   -.34146E-03
  10  norm          1.1680        .62530        .80248E-08    .77704E-02
  11  Prefactor     .99920E-09    3.8376       -.18810E-06** at limit **
  12  Prefactor     1.7776        8.8947        .12918E-07    .12522E-02
  13  Prefactor     1.0251        .10727        .78727E-07    .26974E-01
  14  Prefactor     31.346        2.8653       -.31844E-07    .63883E-03
  15  Prefactor     .17764E-08    1.6386       -.32492E-07** at limit **
  16  Prefactor     19.506        2.5661        .25183E-06   -.44419E-01
  17  Normalizat    .91936        .13989       -.19781E-05    .23317E-03
  18  Prefactor     .97547        .77437E-01   -.85913E-06   -.43718E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.33067e-08
  norm       = 2.77556e-10
  norm       = 0
  Prefactor  = 13.6602
  norm       = 0.224593
  Prefactor  = 9.4369e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 4.39237
  Prefactor  = 8.78242
  norm       = 1.16805
  Prefactor  = 9.99201e-10
  Prefactor  = 1.77757
  Prefactor  = 1.0251
  Prefactor  = 31.346
  Prefactor  = 1.77636e-09
  Prefactor  = 19.506
  Normalizat = 0.919356
  Prefactor  = 0.975468
 **********
 **   18 **HESSE 
 **********

 FCN=   28208.21     FROM HESSE     STATUS=OK           294 CALLS     1734 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33307E-07    .39334        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .27756E-09    10.887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        .10598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.660        8.9099        .27089E-03   -1.5634    
   5  norm          .22459        .72682        .68875E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .94369E-09    19.411        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11102E-09    5.2468        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.3924        .21987        .37691E-02   -1.5289    
   9  Prefactor     8.7824        4.3490        .33785E-02   -1.5115    
  10  norm          1.1680        .62766        .10622E-02   -1.5686    
  11  Prefactor     .99920E-09    3.8882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7776        8.9027        .79297E-03   -1.5681    
  13  Prefactor     1.0251        .10806        .38483E-02   -1.5505    
  14  Prefactor     31.346        19.781        .17869E-03   -1.5596    
  15  Prefactor     .17764E-08    1.6550        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.506        14.978        .22634E-03   -1.5620    
  17  Normalizat    .91936        .12268        .85865E-01   -.95783    
  18  Prefactor     .97547        .66301E-01    .45959E-01   -.93552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83565e-08
Minuit parameter uncertainties:
  1  0.000228917
  2  0.00010987
  3  8.32605e-07
  4  8.90991
  5  0.726818
  6  0.00026966
  7  4.84636e-05
  8  0.219866
  9  4.34915
  10  0.627655
  11  0.00012397
  12  7.95622
  13  0.108061
  14  19.7815
  15  0.00010912
  16  14.9782
  17  0.122713
  18  0.0663061
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  8.782e+00  4.349e+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:  9.755e-01  6.631e-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.194e-01  1.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.86
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 2.26e-08 +/- 1.12e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 8.24e-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) = 28208.1959836
delta logL = 0.0128593568188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 28208.1924171
delta logL = 0.0164258284167

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1789       1.0000         .10000E-03   10000.    
     2 'Index1    '    .83133       1.0000          .0000       10.000    
     3 'Normalizat'    .92029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97538       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=   28208.19     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      270 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1778        5.0782        .13229E-03    .23204E-03
   2  Index1        .83155        .62171        .26950E-01    .65250E-04
   3  Normalizat    .92032        .13665        .38006E-03   -.11965E-04
   4  Prefactor     .97536        .77665E-01    .20864E-03   -.76285E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.17784
  Index1     = 0.831545
  Normalizat = 0.920324
  Prefactor  = 0.975361
 **********
 **   18 **HESSE 
 **********

 FCN=   28208.19     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1778        4.8815        .52914E-05   -1.5102    
   2  Index1        .83155        .59977        .10780E-02   -.98576    
   3  Normalizat    .92032        .13672        .15202E-04   -.95750    
   4  Prefactor     .97536        .77731E-01    .83456E-05   -.93555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82372e-11
Minuit parameter uncertainties:
  1  4.88168
  2  0.604589
  3  0.136775
  4  0.0777396
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) = 28208.192417
delta logL = 0.0164259342091

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  9.178e+00  4.882e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  8.315e-01  6.046e-01  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:  9.754e-01  7.774e-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.203e-01  1.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.93
Ra Dec: 338.691 9.732
Photon Index (Free Index): 0.83 +/- 0.60
Photon Flux (Free Index): 2.04e-08 +/- 1.54e-08
Energy Flux (Free Index): 1.72e-05 +/- 9.00e-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/59979380/cmap_HighResolution_754876801_755481601_4FGL_J2234.7+0943_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.26e-08', energy_flux2='1.72e-05', photon_flux_error='1.12e-08', dlogl='1.64e-02', energy_flux='1.66e-05', photon_flux2='2.04e-08', job_status='DONE', time_completed='2024-12-10 01:36:52.375453', photon_index_error2='0.60', photon_index2='0.83', ts='7.86', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='9.00e-06', EG='0.92', time_epoch_completed='1733823412.38', return_code='0', job_id='59979380', GAL2='0.98', EG2='0.92', return_code2='0', energy_flux_error='8.24e-06', photon_flux_error2='1.54e-08', ts2='7.93', photon_index='0.94' WHERE bin_id='853' AND source_name='4FGL J2234.7+0943' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 01:36:52 PST 2024

