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


Performing analysis on: 4FGL_J2234.7+0943_weekly_bin771
RA = 338.691, Dec = 9.732
tmin = 705283201, tmax = 705888001
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='17491516', job_status='RUN', time_executed='2023-05-16 03:06:15.753365', time_epoch_executed='1684231575.75' WHERE source_name='4FGL J2234.7+0943' and cadence='weekly' and bin_id='771'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17491516

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17491516/ft1_4FGL_J2234.7+0943_weekly_bin771.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17491516/ft2_4FGL_J2234.7+0943_weekly_bin771.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17491516/ft1_4FGL_J2234.7+0943_weekly_bin771.fits outfile=/lscratch/kocevski/17491516/ft1_filteredMKT_4FGL_J2234.7+0943_weekly_bin771.fits ra=338.691 dec=9.732 rad=12.0 tmin=705283201.0 tmax=705888001.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.54
user 3.42
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17491516/ft2_4FGL_J2234.7+0943_weekly_bin771.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/17491516/ft1_filteredMKT_4FGL_J2234.7+0943_weekly_bin771.fits evtable="EVENTS" outfile="/lscratch/kocevski/17491516/ft1_filtered_4FGL_J2234.7+0943_weekly_bin771.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.46
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 1945

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17491516/ft1_filtered_4FGL_J2234.7+0943_weekly_bin771.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17491516/ft2_4FGL_J2234.7+0943_weekly_bin771.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17491516/ltcube_705283201_705888001_4FGL_J2234.7+0943_weekly_bin771.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/17491516/ft2_4FGL_J2234.7+0943_weekly_bin771.fits
.....................!
real 26.86
user 26.18
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17491516/ft1_filtered_4FGL_J2234.7+0943_weekly_bin771.fits evtable="EVENTS" scfile=/lscratch/kocevski/17491516/ft2_4FGL_J2234.7+0943_weekly_bin771.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17491516/ltcube_705283201_705888001_4FGL_J2234.7+0943_weekly_bin771.fits outfile=/lscratch/kocevski/17491516/expmap_705283201_705888001_4FGL_J2234.7+0943_weekly_bin771.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/17491516/ltcube_705283201_705888001_4FGL_J2234.7+0943_weekly_bin771.fits
.....................!
real 66.98
user 63.03
sys 3.48

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/17491516/ft1_filtered_4FGL_J2234.7+0943_weekly_bin771.fits scfile=/lscratch/kocevski/17491516/ft2_4FGL_J2234.7+0943_weekly_bin771.fits outfile=/lscratch/kocevski/17491516/cmap_705283201_705888001_4FGL_J2234.7+0943_weekly_bin771.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.40
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17491516/ft1_filtered_4FGL_J2234.7+0943_weekly_bin771.fits scfile=/lscratch/kocevski/17491516/ft2_4FGL_J2234.7+0943_weekly_bin771.fits outfile=/lscratch/kocevski/17491516/cmap_HighResolution_705283201_705888001_4FGL_J2234.7+0943_weekly_bin771.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.42
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17491516/ft1_filtered_4FGL_J2234.7+0943_weekly_bin771.fits evtable="EVENTS" scfile=/lscratch/kocevski/17491516/ft2_4FGL_J2234.7+0943_weekly_bin771.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17491516/Model_4FGL_J2234.7+0943_weekly_bin771.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/17491516/ft1_filtered_4FGL_J2234.7+0943_weekly_bin771.fits.....................!
real 70.67
user 69.31
sys 0.76

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2236       1.0000          .0000       .10000E+07
     2 'norm      '    10.711       1.0000          .0000       .10000E+07
     3 'norm      '    .34972E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    .25830E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .82578E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.0149       1.0000          .0000       .10000E+07
     7 'Prefactor '    8.1535       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.5426       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6039       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9972       1.0000          .0000       .10000E+07
    11 'Prefactor '    .60063E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    5.0453       1.0000          .0000       .10000E+07
    13 'Prefactor '    .50595       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.584       1.0000          .0000       .10000E+07
    15 'Prefactor '    .14989E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .52191E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.0635       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .84719       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=   20444.41     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     1070 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2197        1.3688        .40723E-07   -.18214E-01
   2  norm          10.892        2.0163       -.15041E-06    .20054E-01
   3  norm           .0000        .17177       -.21296E-07** at limit **
   4  Prefactor     .10880E-07    14.030        .27577E-06** at limit **
   5  norm          .55511E-10    1.2527        .21248E-07** at limit **
   6  Prefactor     6.9398        7.5177        .11235E-05    .48402E-02
   7  Prefactor     8.1675        6.0404        .60934E-07   -.33457E-02
   8  Prefactor     2.5431        .20555       -.11859E-06   -.13804E-03
   9  Prefactor     5.6141        4.0299       -.73402E-07    .15113E-03
  10  norm          1.9985        .94637        .50603E-07   -.67780E-02
  11  Prefactor     .11102E-09    6.4475       -.25819E-07** at limit **
  12  Prefactor     4.9959        7.1037       -.11720E-05   -.14871E-02
  13  Prefactor     .50603        .95747E-01   -.13368E-07    .61884E-02
  14  Prefactor     11.700        1.4335        .12756E-06   -.26290E-01
  15  Prefactor     .16653E-09    1.1527       -.67791E-07** at limit **
  16  Prefactor     .23870E-08    7.8560        .47255E-06** at limit **
  17  Normalizat    1.0633        .15440        .19749E-05   -.42765E-03
  18  Prefactor     .84722        .84684E-01   -.90655E-06   -.50987E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.21967
  norm       = 10.8915
  norm       = 0
  Prefactor  = 1.08802e-08
  norm       = 5.55112e-11
  Prefactor  = 6.93978
  Prefactor  = 8.16751
  Prefactor  = 2.54307
  Prefactor  = 5.61407
  norm       = 1.99846
  Prefactor  = 1.11022e-10
  Prefactor  = 4.99585
  Prefactor  = 0.506032
  Prefactor  = 11.6996
  Prefactor  = 1.66533e-10
  Prefactor  = 2.38698e-09
  Normalizat = 1.06334
  Prefactor  = 0.847219
 **********
 **   18 **HESSE 
 **********

 FCN=   20444.41     FROM HESSE     STATUS=OK           286 CALLS     1356 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2197        1.3998        .68928E-03   -1.5678    
   2  norm          10.892        11.980        .30589E-03   -1.5642    
   3  norm           .0000        .16703        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10880E-07    13.901        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .55511E-10    1.2418        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.9398        7.5442        .37853E-03   -1.5655    
   7  Prefactor     8.1675        6.0424        .35087E-03   -1.5651    
   8  Prefactor     2.5431        .20519        .38469E-02   -1.5389    
   9  Prefactor     5.6141        4.0284        .42426E-02   -1.5234    
  10  norm          1.9985        .94734        .73265E-03   -1.5680    
  11  Prefactor     .11102E-09    6.5015        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9959        7.1319        .44743E-03   -1.5663    
  13  Prefactor     .50603        .96749E-01    .41831E-02   -1.5566    
  14  Prefactor     11.700        21.211        .29409E-03   -1.5640    
  15  Prefactor     .16653E-09    1.1520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .23870E-08    7.8786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0633        .13114        .73877E-01   -.90938    
  18  Prefactor     .84722        .70833E-01    .44328E-01   -.98011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89104e-08
Minuit parameter uncertainties:
  1  1.39982
  2  11.9796
  3  3.12861e-06
  4  0.000778133
  5  1.49583e-05
  6  7.54418
  7  6.04238
  8  0.205192
  9  4.02858
  10  0.947344
  11  5.69788e-05
  12  7.13191
  13  0.0967488
  14  21.2116
  15  2.71918e-05
  16  0.000275346
  17  0.131177
  18  0.0708408
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  5.614e+00  4.029e+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.472e-01  7.084e-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:  1.063e+00  1.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.50
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 1.44e-08 +/- 1.03e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 7.64e-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) = 20443.1299263
delta logL = 1.28280881402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20443.1299032
delta logL = 1.28283184239

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6524       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9348       1.0000          .0000       10.000    
     3 'Normalizat'    1.0398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85032       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20443.13     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      286 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6479        3.5380        .13153E-03    .82980E-05
   2  Index1        1.9356        .63364        .83928E-02    .59428E-04
   3  Normalizat    1.0397        .15318        .32964E-03    .31729E-05
   4  Prefactor     .85034        .84704E-01    .20068E-03    .47588E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.64791
  Index1     = 1.93562
  Normalizat = 1.03974
  Prefactor  = 0.850335
 **********
 **   18 **HESSE 
 **********

 FCN=   20443.13     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6479        2.9649        .52610E-05   -1.5326    
   2  Index1        1.9356        .53130        .33571E-03   -.65969    
   3  Normalizat    1.0397        .15249        .13186E-04   -.91711    
   4  Prefactor     .85034        .84571E-01    .80270E-05   -.97899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15278e-14
Minuit parameter uncertainties:
  1  2.96503
  2  0.532915
  3  0.15255
  4  0.0845836
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) = 20443.129902
delta logL = 1.28283309965

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  3.648e+00  2.965e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  1.936e+00  5.329e-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:  8.503e-01  8.458e-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:  1.040e+00  1.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.06
Ra Dec: 338.691 9.732
Photon Index (Free Index): 1.94 +/- 0.53
Photon Flux (Free Index): 5.46e-08 +/- 3.69e-08
Energy Flux (Free Index): 1.53e-05 +/- 7.77e-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/17491516/cmap_HighResolution_705283201_705888001_4FGL_J2234.7+0943_weekly_bin771.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.44e-08', energy_flux2='1.53e-05', photon_flux_error='1.03e-08', dlogl='1.28e+00', energy_flux='1.06e-05', photon_flux2='5.46e-08', job_status='DONE', time_completed='2023-05-16 03:13:06.533861', photon_index_error2='0.53', photon_index2='1.94', ts='4.50', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='7.77e-06', EG='1.06', time_epoch_completed='1684231986.53', return_code='0', job_id='17491516', GAL2='0.85', EG2='1.04', return_code2='0', energy_flux_error='7.64e-06', photon_flux_error2='3.69e-08', ts2='7.06', photon_index='0.94' WHERE bin_id='771' AND source_name='4FGL J2234.7+0943' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 16 03:13:06 PDT 2023

