/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_J2000.0+4214_weekly_bin854
RA = 300.003, Dec = 42.2371
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='60352787', job_status='RUN', time_executed='2024-12-17 01:06:44.097116', time_epoch_executed='1734426404.1' WHERE source_name='4FGL J2000.0+4214' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60352787

Creating custom pfile directory:
/lscratch/kocevski/60352787/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/60352787/ft1_4FGL_J2000.0+4214_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/60352787/ft2_4FGL_J2000.0+4214_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60352787/ft1_4FGL_J2000.0+4214_weekly_bin854.fits outfile=/lscratch/kocevski/60352787/ft1_filteredMKT_4FGL_J2000.0+4214_weekly_bin854.fits ra=300.003 dec=42.2371 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 5.18
user 4.78
sys 0.33

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60352787/ft2_4FGL_J2000.0+4214_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60352787/ft2_4FGL_J2000.0+4214_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/60352787/ft1_filteredMKT_4FGL_J2000.0+4214_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60352787/ft1_filtered_4FGL_J2000.0+4214_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.41
user 0.22
sys 0.15

Number of photons that the gtmktime cut: 9839

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60352787/ft1_filtered_4FGL_J2000.0+4214_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60352787/ft2_4FGL_J2000.0+4214_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60352787/ltcube_755481601_756086401_4FGL_J2000.0+4214_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/60352787/ft2_4FGL_J2000.0+4214_weekly_bin854.fits
.....................!
real 16.31
user 15.84
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60352787/ft1_filtered_4FGL_J2000.0+4214_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352787/ft2_4FGL_J2000.0+4214_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60352787/ltcube_755481601_756086401_4FGL_J2000.0+4214_weekly_bin854.fits outfile=/lscratch/kocevski/60352787/expmap_755481601_756086401_4FGL_J2000.0+4214_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/60352787/ltcube_755481601_756086401_4FGL_J2000.0+4214_weekly_bin854.fits
.....................!
real 71.10
user 66.92
sys 3.72

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
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source Cygnus Loop in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 204 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2000.0+4214 @ 300.003 42.2371

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60352787/ft1_filtered_4FGL_J2000.0+4214_weekly_bin854.fits scfile=/lscratch/kocevski/60352787/ft2_4FGL_J2000.0+4214_weekly_bin854.fits outfile=/lscratch/kocevski/60352787/cmap_755481601_756086401_4FGL_J2000.0+4214_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=300.003 yref=42.2371 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.44
user 0.24
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60352787/ft1_filtered_4FGL_J2000.0+4214_weekly_bin854.fits scfile=/lscratch/kocevski/60352787/ft2_4FGL_J2000.0+4214_weekly_bin854.fits outfile=/lscratch/kocevski/60352787/cmap_HighResolution_755481601_756086401_4FGL_J2000.0+4214_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=300.003 yref=42.2371 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/60352787/ft1_filtered_4FGL_J2000.0+4214_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352787/ft2_4FGL_J2000.0+4214_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60352787/Model_4FGL_J2000.0+4214_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 Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source FHES J2129.9+5833
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/lscratch/kocevski/60352787/ft1_filtered_4FGL_J2000.0+4214_weekly_bin854.fits.....................!
real 711.62
user 707.18
sys 0.84

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60352787/ft1_filtered_4FGL_J2000.0+4214_weekly_bin854.fits', '/lscratch/kocevski/60352787/ft2_4FGL_J2000.0+4214_weekly_bin854.fits', expMap='/lscratch/kocevski/60352787/expmap_755481601_756086401_4FGL_J2000.0+4214_weekly_bin854.fits', expCube='/lscratch/kocevski/60352787/ltcube_755481601_756086401_4FGL_J2000.0+4214_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60352787/Model_4FGL_J2000.0+4214_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2000.0+4214'

4FGL J2000.0+4214
   Spectrum: PowerLaw
353    Prefactor:  1.968e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
354        Index:  2.478e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
355        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60352787/ft1_filtered_4FGL_J2000.0+4214_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60352787/ft2_4FGL_J2000.0+4214_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60352787/expmap_755481601_756086401_4FGL_J2000.0+4214_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60352787/ltcube_755481601_756086401_4FGL_J2000.0+4214_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60352787/Model_4FGL_J2000.0+4214_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) = 84827.3913343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0739       1.0000          .0000       .10000E+07
     2 'norm      '    3.0084       1.0000          .0000       .10000E+07
     3 'Prefactor '    14.825       1.0000          .0000       .10000E+07
     4 'norm      '    5.6477       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.113       1.0000          .0000       .10000E+07
     6 'norm      '    16.868       1.0000          .0000       .10000E+07
     7 'Prefactor '    .10890E-05   1.0000          .0000       .10000E+07
     8 'norm      '    .41578E-07   1.0000          .0000       .10000E+07
     9 'norm      '    .25788E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.8219       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3526       1.0000          .0000       .10000E+07
    12 'norm      '    .21102E-04   1.0000          .0000       .10000E+07
    13 'norm      '    10.555       1.0000          .0000       .10000E+07
    14 'norm      '    4.0081       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.1782       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0160       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   84827.25     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      900 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0695        4.8231        .10408E-06   -.68400E-03
   2  norm          2.9998        6.3460       -.44036E-07    .20921E-01
   3  Prefactor     14.518        8.4087        .31517E-07    .41754E-01
   4  norm          5.5942        3.9575        .74317E-07   -.44395E-03
   5  Prefactor     10.000        4.9973       -.12730E-06    .60497E-01
   6  norm          16.989        8.2012        .22038E-06    .42695E-01
   7  Prefactor     .96034E-08    5.4142        .26394E-06** at limit **
   8  norm           .0000        .21534       -.35540E-07** at limit **
   9  norm          .10791E-06    10.283        .36447E-06** at limit **
  10  Prefactor     1.8221        .15468        .32766E-07    .12319E-02
  11  norm          1.3553        1.7343       -.17431E-09    .16935E-03
  12  norm           .0000        1.2899        .13980E-08** at limit **
  13  norm          10.545        3.7237        .14040E-07    .17800E-02
  14  norm          4.0282        3.2739        .46200E-08    .16176E-03
  15  Normalizat    1.1791        .16146       -.10741E-05   -.70433E-05
  16  Prefactor     1.0160        .18310E-01    .17124E-06    .14641E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.06955
  norm       = 2.99982
  Prefactor  = 14.5181
  norm       = 5.59424
  Prefactor  = 10.0002
  norm       = 16.989
  Prefactor  = 9.60343e-09
  norm       = 0
  norm       = 1.07914e-07
  Prefactor  = 1.82206
  norm       = 1.35526
  norm       = 0
  norm       = 10.5451
  norm       = 4.02821
  Normalizat = 1.17911
  Prefactor  = 1.01599
 **********
 **   18 **HESSE 
 **********

 FCN=   84827.25     FROM HESSE     STATUS=OK           249 CALLS     1149 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0695        4.8394        .71697E-03   -1.5679    
   2  norm          2.9998        6.7992        .58492E-03   -1.5673    
   3  Prefactor     14.518        15.694        .25987E-03   -1.5632    
   4  norm          5.5942        3.9711        .42246E-03   -1.5661    
   5  Prefactor     10.000        9.1731        .31484E-03   -1.5645    
   6  norm          16.989        8.6799        .24359E-03   -1.5626    
   7  Prefactor     .96034E-08    5.7274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .21468        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10791E-06    .98768        .72045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8221        .15574        .71175E-02   -1.5438    
  11  norm          1.3553        1.7455        .94001E-03   -1.5685    
  12  norm           .0000        1.2901        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.545        3.7281        .30816E-03   -1.5643    
  14  norm          4.0282        3.2783        .50349E-03   -1.5668    
  15  Normalizat    1.1791        .16817        .24841       -.87251    
  16  Prefactor     1.0160        .18436E-01    .28703E-01   -.92198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01414e-06
Minuit parameter uncertainties:
  1  4.8394
  2  6.79917
  3  15.6943
  4  3.97106
  5  9.17308
  6  8.67992
  7  0.000468691
  8  5.56285e-07
  9  0.000652882
  10  0.155741
  11  1.74552
  12  1.12265e-05
  13  3.72814
  14  3.27834
  15  0.168251
  16  0.0184365
Done.

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

Extracting fit parameters...

4FGL J2000.0+4214
   Spectrum: PowerLaw
353    Prefactor:  1.000e+01  9.173e+00  0.000e+00  1.000e+06 ( 1.000e-13)
354        Index:  2.478e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
355        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
746    Prefactor:  1.016e+00  1.844e-02  0.000e+00  1.000e+01 ( 1.000e+00)
747        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
748        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
742   Normalization:  1.179e+00  1.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.49
Ra Dec: 300.003 42.237
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 4.55e-08 +/- 4.17e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.24e-05

TS (Fixed Index): 1.49
Ra Dec: 300.003 42.237
Photon Flux Upper Limit: 1.27582830816e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.009908957413 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60352787/likelihoodResults_755481601_756086401_4FGL_J2000.0+4214_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) = 84827.0271975
delta logL = 0.222610477256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 84827.0055195
delta logL = 0.244288466987

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   84827.01     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      344 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2415        16.511        .16064E-04    .68508E-02
   2  Index         2.9287        1.3188        .10521E-01    .53021E-03
   3  Normalizat    1.1646        .16191        .11192E-02    .56329E-03
   4  Prefactor     1.0161        .17260E-01    .12682E-03   -.21657E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.24145
  Index      = 2.9287
  Normalizat = 1.1646
  Prefactor  = 1.01608
 **********
 **   18 **HESSE 
 **********

 FCN=   84827.01     FROM HESSE     STATUS=OK            25 CALLS      369 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2415        8.4481        .64255E-06   -1.5658    
   2  Index         2.9287        .68180        .42083E-03   -.42713    
   3  Normalizat    1.1646        .16087        .44770E-04   -.87704    
   4  Prefactor     1.0161        .17230E-01    .50729E-05   -.92195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60886e-09
Minuit parameter uncertainties:
  1  8.44811
  2  0.684381
  3  0.160933
  4  0.0172297
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) = 84827.0055195
delta logL = 0.24428847096

Extracting fit parameters...

4FGL J2000.0+4214
   Spectrum: PowerLaw
353    Prefactor:  6.241e+00  8.448e+00  0.000e+00  1.000e+06 ( 1.000e-13)
354        Index:  2.929e+00  6.844e-01  0.000e+00  1.000e+01 (-1.000e+00)
355        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
746    Prefactor:  1.016e+00  1.723e-02  0.000e+00  1.000e+01 ( 1.000e+00)
747        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
748        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
742   Normalization:  1.165e+00  1.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 300.003 42.237
Photon Index (Free Index): 2.93 +/- 0.68
Photon Flux (Free Index): 7.13e-08 +/- 5.92e-08
Energy Flux (Free Index): 1.48e-05 +/- 1.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/60352787/cmap_HighResolution_755481601_756086401_4FGL_J2000.0+4214_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.91e-03', comment='SUCCESS', photon_flux='4.55e-08', energy_flux2='1.48e-05', photon_flux_error='4.17e-08', dlogl='2.44e-01', energy_flux='1.36e-05', photon_flux2='7.13e-08', job_status='DONE', time_completed='2024-12-17 01:40:41.046790', photon_index_error2='0.68', photon_index2='2.93', ts='1.49', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.13e-05', EG='1.18', time_epoch_completed='1734428441.05', return_code='0', job_id='60352787', GAL2='1.02', EG2='1.16', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='5.92e-08', ts2='2.01', photon_index='2.48' WHERE bin_id='854' AND source_name='4FGL J2000.0+4214' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 01:40:41 PST 2024

