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


Performing analysis on: 4FGL_J2149.7+1917_weekly_bin825
RA = 327.444, Dec = 19.2859
tmin = 737942401, tmax = 738547201
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='49209608', job_status='RUN', time_executed='2024-05-28 02:20:56.932069', time_epoch_executed='1716888056.93' WHERE source_name='4FGL J2149.7+1917' and cadence='weekly' and bin_id='825'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/49209608

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/49209608/ft1_4FGL_J2149.7+1917_weekly_bin825.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/49209608/ft2_4FGL_J2149.7+1917_weekly_bin825.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/49209608/ft1_4FGL_J2149.7+1917_weekly_bin825.fits outfile=/lscratch/kocevski/49209608/ft1_filteredMKT_4FGL_J2149.7+1917_weekly_bin825.fits ra=327.444 dec=19.2859 rad=12.0 tmin=737942401.0 tmax=738547201.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.06
user 3.75
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/49209608/ft2_4FGL_J2149.7+1917_weekly_bin825.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/49209608/ft2_4FGL_J2149.7+1917_weekly_bin825.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/49209608/ft1_filteredMKT_4FGL_J2149.7+1917_weekly_bin825.fits evtable="EVENTS" outfile="/lscratch/kocevski/49209608/ft1_filtered_4FGL_J2149.7+1917_weekly_bin825.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.39
user 0.20
sys 0.16

Number of photons that the gtmktime cut: 1892

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/49209608/ft1_filtered_4FGL_J2149.7+1917_weekly_bin825.fits" evtable="EVENTS" scfile=/lscratch/kocevski/49209608/ft2_4FGL_J2149.7+1917_weekly_bin825.fits sctable="SC_DATA" outfile=/lscratch/kocevski/49209608/ltcube_737942401_738547201_4FGL_J2149.7+1917_weekly_bin825.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/49209608/ft2_4FGL_J2149.7+1917_weekly_bin825.fits
.....................!
real 16.99
user 16.47
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/49209608/ft1_filtered_4FGL_J2149.7+1917_weekly_bin825.fits evtable="EVENTS" scfile=/lscratch/kocevski/49209608/ft2_4FGL_J2149.7+1917_weekly_bin825.fits sctable="SC_DATA" expcube=/lscratch/kocevski/49209608/ltcube_737942401_738547201_4FGL_J2149.7+1917_weekly_bin825.fits outfile=/lscratch/kocevski/49209608/expmap_737942401_738547201_4FGL_J2149.7+1917_weekly_bin825.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/49209608/ltcube_737942401_738547201_4FGL_J2149.7+1917_weekly_bin825.fits
.....................!
real 60.91
user 57.10
sys 3.41

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 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.
Added 161 point sources and 1 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 J2149.7+1917 @ 327.444 19.2859

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/49209608/ft1_filtered_4FGL_J2149.7+1917_weekly_bin825.fits scfile=/lscratch/kocevski/49209608/ft2_4FGL_J2149.7+1917_weekly_bin825.fits outfile=/lscratch/kocevski/49209608/cmap_737942401_738547201_4FGL_J2149.7+1917_weekly_bin825.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=327.444 yref=19.2859 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.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/49209608/ft1_filtered_4FGL_J2149.7+1917_weekly_bin825.fits scfile=/lscratch/kocevski/49209608/ft2_4FGL_J2149.7+1917_weekly_bin825.fits outfile=/lscratch/kocevski/49209608/cmap_HighResolution_737942401_738547201_4FGL_J2149.7+1917_weekly_bin825.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=327.444 yref=19.2859 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.24
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/49209608/ft1_filtered_4FGL_J2149.7+1917_weekly_bin825.fits evtable="EVENTS" scfile=/lscratch/kocevski/49209608/ft2_4FGL_J2149.7+1917_weekly_bin825.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/49209608/Model_4FGL_J2149.7+1917_weekly_bin825.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 Loop
adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/49209608/ft1_filtered_4FGL_J2149.7+1917_weekly_bin825.fits.....................!
real 89.67
user 88.44
sys 0.62

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/49209608/ft1_filtered_4FGL_J2149.7+1917_weekly_bin825.fits', '/lscratch/kocevski/49209608/ft2_4FGL_J2149.7+1917_weekly_bin825.fits', expMap='/lscratch/kocevski/49209608/expmap_737942401_738547201_4FGL_J2149.7+1917_weekly_bin825.fits', expCube='/lscratch/kocevski/49209608/ltcube_737942401_738547201_4FGL_J2149.7+1917_weekly_bin825.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/49209608/Model_4FGL_J2149.7+1917_weekly_bin825.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2149.7+1917'

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  7.294e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.521e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/49209608/ft1_filtered_4FGL_J2149.7+1917_weekly_bin825.fits
Spacecraft file(s): /lscratch/kocevski/49209608/ft2_4FGL_J2149.7+1917_weekly_bin825.fits
Exposure map: /lscratch/kocevski/49209608/expmap_737942401_738547201_4FGL_J2149.7+1917_weekly_bin825.fits
Exposure cube: /lscratch/kocevski/49209608/ltcube_737942401_738547201_4FGL_J2149.7+1917_weekly_bin825.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/49209608/Model_4FGL_J2149.7+1917_weekly_bin825.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) = 20202.6583867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9561       1.0000          .0000       .10000E+07
     2 'Prefactor '    102.26       1.0000          .0000       .10000E+07
     3 'Prefactor '    8.9098       1.0000          .0000       .10000E+07
     4 'Prefactor '    .29878       1.0000          .0000       .10000E+07
     5 'norm      '    1.4015       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.3020       1.0000          .0000       .10000E+07
     7 'Prefactor '    .29481E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .44570       1.0000          .0000       .10000E+07
     9 'norm      '    4.0207       1.0000          .0000       .10000E+07
    10 'Prefactor '    24.329       1.0000          .0000       .10000E+07
    11 'Prefactor '    .51607E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .43854E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    .60619E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .18013E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .16743E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.6952       1.0000          .0000       .10000E+07
    17 'Normalizat'    .64255       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0046       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20202.66     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1361 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9828        7.3183        .29869E-06    .15884E-01
   2  Prefactor     102.39        4.1205        .25983E-07   -.53238    
   3  Prefactor     8.8598        9.1780        .70779E-07    .12595E-01
   4  Prefactor     .27317E-06    57.315       -.10393E-05** at limit **
   5  norm          1.4082        2.0906        .99793E-07    .51043E-02
   6  Prefactor     1.3018        2.6944       -.59494E-08   -.11630E-03
   7  Prefactor     .76383E-06    7.2968        .26831E-07** at limit **
   8  norm          .44595        1.1389       -.59724E-07   -.30821E-02
   9  norm          4.0188        1.5193        .20785E-08   -.13237E-02
  10  Prefactor     24.256        1.2330       -.11523E-07    .14681E-01
  11  Prefactor     .65575E-06    18.319       -.70857E-07** at limit **
  12  norm           .0000        .12158       -.21990E-07** at limit **
  13  Prefactor     .93758E-07    9.9318        .65705E-07** at limit **
  14  norm          .55511E-10    .61330       -.93262E-07** at limit **
  15  Prefactor     .55511E-10    1.7069       -.99832E-07** at limit **
  16  Prefactor     3.6400        5.9004        .12304E-06    .17826E-02
  17  Normalizat    .64320        .15458       -.30331E-05    .89199E-04
  18  Prefactor     1.0045        .69287E-01    .12998E-05    .55606E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.98283
  Prefactor  = 102.393
  Prefactor  = 8.85982
  Prefactor  = 2.7317e-07
  norm       = 1.40815
  Prefactor  = 1.3018
  Prefactor  = 7.63833e-07
  norm       = 0.445953
  norm       = 4.0188
  Prefactor  = 24.2559
  Prefactor  = 6.55753e-07
  norm       = 0
  Prefactor  = 9.37583e-08
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 3.64001
  Normalizat = 0.643198
  Prefactor  = 1.0045
 **********
 **   18 **HESSE 
 **********

 FCN=   20202.66     FROM HESSE     STATUS=OK           288 CALLS     1649 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9828        7.3484        .50690E-03   -1.5668    
   2  Prefactor     102.39        48.622        .98894E-04   -1.5506    
   3  Prefactor     8.8598        9.2082        .33555E-03   -1.5648    
   4  Prefactor     .27317E-06    7.2988        .13472E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4082        2.1383        .91603E-03   -1.5684    
   6  Prefactor     1.3018        2.7121        .96771E-03   -1.5685    
   7  Prefactor     .76383E-06    15.451        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .44595        1.1969        .84372E-03   -1.5695    
   9  norm          4.0188        1.5256        .50267E-03   -1.5668    
  10  Prefactor     24.256        16.026        .20278E-03   -1.5609    
  11  Prefactor     .65575E-06    18.723        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .12042        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .93758E-07    18.198        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    .61152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    1.7052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6400        5.8993        .52514E-03   -1.5670    
  17  Normalizat    .64320        .13758        .92708E-01   -1.0618    
  18  Prefactor     1.0045        .60151E-01    .44281E-01   -.92580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62959e-06
Minuit parameter uncertainties:
  1  7.34843
  2  48.6225
  3  9.20826
  4  0.00282409
  5  2.13834
  6  2.71214
  7  0.00687087
  8  1.19694
  9  1.52559
  10  16.0256
  11  0.00700793
  12  1.04748e-06
  13  0.00261252
  14  8.98572e-06
  15  1.49344e-05
  16  5.89935
  17  0.137655
  18  0.0601547
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  2.426e+01  1.603e+01  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.521e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.005e+00  6.015e-02  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  6.432e-01  1.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.00
Ra Dec: 327.444 19.286
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 4.05e-08 +/- 2.67e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 7.59e-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) = 20202.6534341
delta logL = 0.00426627386696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20202.6515754
delta logL = 0.00612491678112

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.242       1.0000          .0000       .10000E+07
     2 'Index     '    2.5863       1.0000          .0000       10.000    
     3 'Normalizat'    .63996       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0053       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+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=   20202.65     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      243 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.245        18.734        .82991E-05    .28219E-02
   2  Index         2.5860        .63313        .83474E-02    .11876E-03
   3  Normalizat    .63997        .15199        .41171E-03    .85810E-03
   4  Prefactor     1.0053        .68871E-01    .15361E-03    .23652E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.2449
  Index      = 2.58599
  Normalizat = 0.639975
  Prefactor  = 1.00531
 **********
 **   18 **HESSE 
 **********

 FCN=   20202.65     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.245        17.537        .33197E-06   -1.5612    
   2  Index         2.5860        .59172        .33390E-03   -.50385    
   3  Normalizat    .63997        .15173        .16469E-04   -1.0631    
   4  Prefactor     1.0053        .68821E-01    .30722E-04   -.92553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21387e-10
Minuit parameter uncertainties:
  1  17.537
  2  0.59354
  3  0.15183
  4  0.0688266
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) = 20202.6515752
delta logL = 0.00612509721395

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  2.324e+01  1.754e+01  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.586e+00  5.935e-01  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.005e+00  6.883e-02  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  6.400e-01  1.518e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.04
Ra Dec: 327.444 19.286
Photon Index (Free Index): 2.59 +/- 0.59
Photon Flux (Free Index): 4.29e-08 +/- 3.39e-08
Energy Flux (Free Index): 1.14e-05 +/- 7.08e-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/49209608/cmap_HighResolution_737942401_738547201_4FGL_J2149.7+1917_weekly_bin825.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.05e-08', energy_flux2='1.14e-05', photon_flux_error='2.67e-08', dlogl='6.13e-03', energy_flux='1.15e-05', photon_flux2='4.29e-08', job_status='DONE', time_completed='2024-05-28 02:28:35.427636', photon_index_error2='0.59', photon_index2='2.59', ts='4.00', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='7.08e-06', EG='0.64', time_epoch_completed='1716888515.43', return_code='0', job_id='49209608', GAL2='1.01', EG2='0.64', return_code2='0', energy_flux_error='7.59e-06', photon_flux_error2='3.39e-08', ts2='4.04', photon_index='2.52' WHERE bin_id='825' AND source_name='4FGL J2149.7+1917' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 28 02:28:35 PDT 2024

