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


Performing analysis on: 4FGL_J2349.4+0534_weekly_bin854
RA = 357.356, Dec = 5.579
tmin = 755481601, tmax = 756086401
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='60353284', job_status='RUN', time_executed='2024-12-17 01:21:23.271891', time_epoch_executed='1734427283.27' WHERE source_name='4FGL J2349.4+0534' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60353284

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

Retrieving the FT1 file...

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

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

Retrieving 92 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60353284/ft1_4FGL_J2349.4+0534_weekly_bin854.fits


Retrieving the FT1 file...

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

Retrieving 92 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60353284/ft2_4FGL_J2349.4+0534_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60353284/ft1_4FGL_J2349.4+0534_weekly_bin854.fits outfile=/lscratch/kocevski/60353284/ft1_filteredMKT_4FGL_J2349.4+0534_weekly_bin854.fits ra=357.356 dec=5.579 rad=12.0 tmin=755481601.0 tmax=756086401.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.90
user 4.43
sys 0.32

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60353284/ft2_4FGL_J2349.4+0534_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60353284/ft2_4FGL_J2349.4+0534_weekly_bin854.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/60353284/ft1_filteredMKT_4FGL_J2349.4+0534_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60353284/ft1_filtered_4FGL_J2349.4+0534_weekly_bin854.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.22
sys 0.14

Number of photons that the gtmktime cut: 1082

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60353284/ft1_filtered_4FGL_J2349.4+0534_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60353284/ft2_4FGL_J2349.4+0534_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60353284/ltcube_755481601_756086401_4FGL_J2349.4+0534_weekly_bin854.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/60353284/ft2_4FGL_J2349.4+0534_weekly_bin854.fits
.....................!
real 15.75
user 15.14
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60353284/ft1_filtered_4FGL_J2349.4+0534_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60353284/ft2_4FGL_J2349.4+0534_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60353284/ltcube_755481601_756086401_4FGL_J2349.4+0534_weekly_bin854.fits outfile=/lscratch/kocevski/60353284/expmap_755481601_756086401_4FGL_J2349.4+0534_weekly_bin854.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/60353284/ltcube_755481601_756086401_4FGL_J2349.4+0534_weekly_bin854.fits
.....................!
real 67.06
user 63.01
sys 3.57

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

Setting source of interest to:
4FGL J2349.4+0534 @ 357.356 5.579

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60353284/ft1_filtered_4FGL_J2349.4+0534_weekly_bin854.fits scfile=/lscratch/kocevski/60353284/ft2_4FGL_J2349.4+0534_weekly_bin854.fits outfile=/lscratch/kocevski/60353284/cmap_755481601_756086401_4FGL_J2349.4+0534_weekly_bin854.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=357.356 yref=5.579 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.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60353284/ft1_filtered_4FGL_J2349.4+0534_weekly_bin854.fits scfile=/lscratch/kocevski/60353284/ft2_4FGL_J2349.4+0534_weekly_bin854.fits outfile=/lscratch/kocevski/60353284/cmap_HighResolution_755481601_756086401_4FGL_J2349.4+0534_weekly_bin854.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=357.356 yref=5.579 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.56
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60353284/ft1_filtered_4FGL_J2349.4+0534_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60353284/ft2_4FGL_J2349.4+0534_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60353284/Model_4FGL_J2349.4+0534_weekly_bin854.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/60353284/ft1_filtered_4FGL_J2349.4+0534_weekly_bin854.fits.....................!
real 42.68
user 41.59
sys 0.72

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60353284/ft1_filtered_4FGL_J2349.4+0534_weekly_bin854.fits', '/lscratch/kocevski/60353284/ft2_4FGL_J2349.4+0534_weekly_bin854.fits', expMap='/lscratch/kocevski/60353284/expmap_755481601_756086401_4FGL_J2349.4+0534_weekly_bin854.fits', expCube='/lscratch/kocevski/60353284/ltcube_755481601_756086401_4FGL_J2349.4+0534_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60353284/Model_4FGL_J2349.4+0534_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2349.4+0534'

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.639e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
499        Index:  2.467e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60353284/ft1_filtered_4FGL_J2349.4+0534_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60353284/ft2_4FGL_J2349.4+0534_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60353284/expmap_755481601_756086401_4FGL_J2349.4+0534_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60353284/ltcube_755481601_756086401_4FGL_J2349.4+0534_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60353284/Model_4FGL_J2349.4+0534_weekly_bin854.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) = 11759.8941431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31986E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .48515E-05   1.0000          .0000       .10000E+07
     3 'norm      '    1.5872       1.0000          .0000       .10000E+07
     4 'Prefactor '    .24256E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    32.372       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.4000       1.0000          .0000       .10000E+07
     7 'norm      '    1.0052       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10086E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .13051E-04   1.0000          .0000       .10000E+07
    10 'norm      '    2.4191       1.0000          .0000       .10000E+07
    11 'Prefactor '    .76258E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .20008E-04   1.0000          .0000       .10000E+07
    13 'norm      '    10.736       1.0000          .0000       .10000E+07
    14 'norm      '    60.771       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.0892       1.0000          .0000       .10000E+07
    16 'Prefactor '    .59484E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    14.619       1.0000          .0000       .10000E+07
    18 'Normalizat'    .95237       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0643       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11759.76     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     1119 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    2.5815        .55443E-07** at limit **
   2  norm          .55511E-10    1.5650        .52231E-07** at limit **
   3  norm          1.5923        2.3469        .59091E-08   -.37091E-05
   4  Prefactor     .27756E-09    4.7286        .89589E-07** at limit **
   5  Prefactor     32.363        1.0364        .54820E-09   -.33487E-01
   6  Prefactor     5.4904        1.0290        .13180E-08   -.17114E-01
   7  norm          1.0060        .67452        .13760E-07    .79607E-02
   8  Prefactor     .11102E-09    1.7791        .82660E-07** at limit **
   9  Prefactor     .27756E-09    9.4607       -.10184E-06** at limit **
  10  norm          2.4262        3.3668        .69424E-07    .36781E-02
  11  Prefactor     .55511E-10    1.8429        .49141E-07** at limit **
  12  Prefactor     .61062E-09    4.2202       -.11199E-06** at limit **
  13  norm          10.745        1.3537       -.16044E-07    .97641E-01
  14  norm          61.129        2.2364        .26320E-08    .60984E-01
  15  Prefactor     1.0311        4.3114        .57456E-07    .49671E-03
  16  Prefactor     .71609E-08    37.194       -.14902E-06** at limit **
  17  Prefactor     14.863        1.1017       -.52438E-09   -.18695E-01
  18  Normalizat    .95197        .16490        .10630E-06   -.13820E-03
  19  Prefactor     1.0642        .11693       -.58933E-06   -.28789E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  norm       = 1.59233
  Prefactor  = 2.77556e-10
  Prefactor  = 32.363
  Prefactor  = 5.49041
  norm       = 1.00599
  Prefactor  = 1.11022e-10
  Prefactor  = 2.77556e-10
  norm       = 2.42616
  Prefactor  = 5.55112e-11
  Prefactor  = 6.10623e-10
  norm       = 10.745
  norm       = 61.1293
  Prefactor  = 1.03108
  Prefactor  = 7.16094e-09
  Prefactor  = 14.8627
  Normalizat = 0.95197
  Prefactor  = 1.0642
 **********
 **   18 **HESSE 
 **********

 FCN=   11759.76     FROM HESSE     STATUS=OK           306 CALLS     1425 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    2.5845        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .55511E-10    1.5409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5923        2.3725        .84217E-03   -1.5683    
   4  Prefactor     .27756E-09    4.7568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.363        23.413        .17578E-03   -1.5594    
   6  Prefactor     5.4904        14.781        .43221E-03   -1.5661    
   7  norm          1.0060        .68107        .43947E-03   -1.5688    
   8  Prefactor     .11102E-09    1.7823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    9.5023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4262        3.3881        .65782E-03   -1.5677    
  11  Prefactor     .55511E-10    1.8466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .61062E-09    4.2561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.745        7.3950        .30553E-03   -1.5642    
  14  norm          61.129        30.479        .12829E-03   -1.5552    
  15  Prefactor     1.0311        7.4616        .11467E-02   -1.5688    
  16  Prefactor     .71609E-08    37.218        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.863        11.031        .26170E-03   -1.5631    
  18  Normalizat    .95197        .14458        .66498E-01   -.94657    
  19  Prefactor     1.0642        .10136        .39134E-01   -.90619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13533e-07
Minuit parameter uncertainties:
  1  2.13905e-05
  2  1.63152e-05
  3  2.37245
  4  7.34398e-05
  5  23.4129
  6  14.7808
  7  0.681073
  8  2.80567e-05
  9  9.76134e-05
  10  3.38809
  11  2.34382e-05
  12  0.000100923
  13  7.39497
  14  30.4787
  15  5.54746
  16  0.00103394
  17  11.031
  18  0.144638
  19  0.10138
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.486e+01  1.103e+01  0.000e+00  1.000e+06 ( 1.000e-13)
499        Index:  2.467e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.064e+00  1.014e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  9.520e-01  1.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.72
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 2.97e-08 +/- 2.20e-08
Energy Flux (Fixed Index): 8.95e-06 +/- 6.64e-06

TS (Fixed Index): 3.72
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 8.06227761104e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00625727526925 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60353284/likelihoodResults_755481601_756086401_4FGL_J2349.4+0534_weekly_bin854.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) = 11759.0698661
delta logL = 0.691234282454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11758.9324471
delta logL = 0.828653298971

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.292       1.0000          .0000       .10000E+07
     2 'Index     '    1.7803       1.0000          .0000       10.000    
     3 'Normalizat'    .96999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0557       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11758.93     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      218 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.307        579.19        .21186E-03    .11065E-03
   2  Index         1.7804        5.5819        .27230       -.42019E-04
   3  Normalizat    .96999        .17893        .65936E-01    .13423E-03
   4  Prefactor     1.0557        .89188E-01    .39585E-01    .15874E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.3067
  Index      = 1.78039
  Normalizat = 0.969987
  Prefactor  = 1.05574
 **********
 **   18 **HESSE 
 **********

 FCN=   11758.93     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.307        15.546        .84743E-05   -1.5614    
   2  Index         1.7804        .45567        .98041E-02   -.69961    
   3  Normalizat    .96999        .16130        .29164E-03   -.94043    
   4  Prefactor     1.0557        .11634        .20130E-03   -.90894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20598e-11
Minuit parameter uncertainties:
  1  15.5458
  2  0.456753
  3  0.161384
  4  0.116373
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) = 11758.9324466
delta logL = 0.828653784507

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.231e+01  1.555e+01  0.000e+00  1.000e+06 ( 1.000e-13)
499        Index:  1.780e+00  4.568e-01  0.000e+00  1.000e+01 (-1.000e+00)
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.056e+00  1.164e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  9.700e-01  1.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.39
Ra Dec: 357.356 5.579
Photon Index (Free Index): 1.78 +/- 0.46
Photon Flux (Free Index): 1.72e-08 +/- 1.50e-08
Energy Flux (Free Index): 2.18e-05 +/- 2.40e-05

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/60353284/cmap_HighResolution_755481601_756086401_4FGL_J2349.4+0534_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-03', comment='SUCCESS', photon_flux='2.97e-08', energy_flux2='2.18e-05', photon_flux_error='2.20e-08', dlogl='8.29e-01', energy_flux='8.95e-06', photon_flux2='1.72e-08', job_status='DONE', time_completed='2024-12-17 01:26:46.965330', photon_index_error2='0.46', photon_index2='1.78', ts='3.72', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='8.06e-08', energy_flux_error2='2.40e-05', EG='0.95', time_epoch_completed='1734427606.97', return_code='0', job_id='60353284', GAL2='1.06', EG2='0.97', return_code2='0', energy_flux_error='6.64e-06', photon_flux_error2='1.50e-08', ts2='5.39', photon_index='2.47' WHERE bin_id='854' AND source_name='4FGL J2349.4+0534' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 01:26:46 PST 2024

