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


Performing analysis on: 4FGL_J2149.6+0323_weekly_bin823
RA = 327.424, Dec = 3.3959
tmin = 736732801, tmax = 737337601
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='47871733', job_status='RUN', time_executed='2024-05-14 01:21:01.809536', time_epoch_executed='1715674861.81' WHERE source_name='4FGL J2149.6+0323' and cadence='weekly' and bin_id='823'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/47871733

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/47871733/ft1_4FGL_J2149.6+0323_weekly_bin823.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/47871733/ft2_4FGL_J2149.6+0323_weekly_bin823.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/47871733/ft1_4FGL_J2149.6+0323_weekly_bin823.fits outfile=/lscratch/kocevski/47871733/ft1_filteredMKT_4FGL_J2149.6+0323_weekly_bin823.fits ra=327.424 dec=3.3959 rad=12.0 tmin=736732801.0 tmax=737337601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.20
user 2.88
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/47871733/ft2_4FGL_J2149.6+0323_weekly_bin823.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/47871733/ft2_4FGL_J2149.6+0323_weekly_bin823.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/47871733/ft1_filteredMKT_4FGL_J2149.6+0323_weekly_bin823.fits evtable="EVENTS" outfile="/lscratch/kocevski/47871733/ft1_filtered_4FGL_J2149.6+0323_weekly_bin823.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: 2167

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/47871733/ft1_filtered_4FGL_J2149.6+0323_weekly_bin823.fits" evtable="EVENTS" scfile=/lscratch/kocevski/47871733/ft2_4FGL_J2149.6+0323_weekly_bin823.fits sctable="SC_DATA" outfile=/lscratch/kocevski/47871733/ltcube_736732801_737337601_4FGL_J2149.6+0323_weekly_bin823.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/47871733/ft2_4FGL_J2149.6+0323_weekly_bin823.fits
.....................!
real 22.76
user 22.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/47871733/ft1_filtered_4FGL_J2149.6+0323_weekly_bin823.fits evtable="EVENTS" scfile=/lscratch/kocevski/47871733/ft2_4FGL_J2149.6+0323_weekly_bin823.fits sctable="SC_DATA" expcube=/lscratch/kocevski/47871733/ltcube_736732801_737337601_4FGL_J2149.6+0323_weekly_bin823.fits outfile=/lscratch/kocevski/47871733/expmap_736732801_737337601_4FGL_J2149.6+0323_weekly_bin823.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/47871733/ltcube_736732801_737337601_4FGL_J2149.6+0323_weekly_bin823.fits
.....................!
real 66.53
user 62.25
sys 3.81

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

Setting source of interest to:
4FGL J2149.6+0323 @ 327.424 3.3959

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/47871733/ft1_filtered_4FGL_J2149.6+0323_weekly_bin823.fits scfile=/lscratch/kocevski/47871733/ft2_4FGL_J2149.6+0323_weekly_bin823.fits outfile=/lscratch/kocevski/47871733/cmap_736732801_737337601_4FGL_J2149.6+0323_weekly_bin823.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.424 yref=3.3959 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.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/47871733/ft1_filtered_4FGL_J2149.6+0323_weekly_bin823.fits scfile=/lscratch/kocevski/47871733/ft2_4FGL_J2149.6+0323_weekly_bin823.fits outfile=/lscratch/kocevski/47871733/cmap_HighResolution_736732801_737337601_4FGL_J2149.6+0323_weekly_bin823.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.424 yref=3.3959 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/47871733/ft1_filtered_4FGL_J2149.6+0323_weekly_bin823.fits evtable="EVENTS" scfile=/lscratch/kocevski/47871733/ft2_4FGL_J2149.6+0323_weekly_bin823.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/47871733/Model_4FGL_J2149.6+0323_weekly_bin823.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/47871733/ft1_filtered_4FGL_J2149.6+0323_weekly_bin823.fits.....................!
real 78.43
user 76.58
sys 0.70

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/47871733/ft1_filtered_4FGL_J2149.6+0323_weekly_bin823.fits', '/lscratch/kocevski/47871733/ft2_4FGL_J2149.6+0323_weekly_bin823.fits', expMap='/lscratch/kocevski/47871733/expmap_736732801_737337601_4FGL_J2149.6+0323_weekly_bin823.fits', expCube='/lscratch/kocevski/47871733/ltcube_736732801_737337601_4FGL_J2149.6+0323_weekly_bin823.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/47871733/Model_4FGL_J2149.6+0323_weekly_bin823.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2149.6+0323'

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.704e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  2.157e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/47871733/ft1_filtered_4FGL_J2149.6+0323_weekly_bin823.fits
Spacecraft file(s): /lscratch/kocevski/47871733/ft2_4FGL_J2149.6+0323_weekly_bin823.fits
Exposure map: /lscratch/kocevski/47871733/expmap_736732801_737337601_4FGL_J2149.6+0323_weekly_bin823.fits
Exposure cube: /lscratch/kocevski/47871733/ltcube_736732801_737337601_4FGL_J2149.6+0323_weekly_bin823.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/47871733/Model_4FGL_J2149.6+0323_weekly_bin823.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) = 23308.6969911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27668E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    13.288       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.062       1.0000          .0000       .10000E+07
     4 'Prefactor '    9.3286       1.0000          .0000       .10000E+07
     5 'Prefactor '    41.871       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.6155       1.0000          .0000       .10000E+07
     7 'Prefactor '    .39720       1.0000          .0000       .10000E+07
     8 'Prefactor '    79.542       1.0000          .0000       .10000E+07
     9 'Prefactor '    11.857       1.0000          .0000       .10000E+07
    10 'norm      '    1.8019       1.0000          .0000       .10000E+07
    11 'norm      '    3.5199       1.0000          .0000       .10000E+07
    12 'Prefactor '    .49795E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .31591E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .49758E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .49779E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .20899E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.0786       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .86187       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23308.54     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     1081 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10558E-06    102.78       -.22928E-05** at limit **
   2  Prefactor     13.284        7.8302        .47424E-07    .14495E-01
   3  Prefactor     10.007        3.7379       -.30941E-07   -.29167E-01
   4  Prefactor     9.3255        2.0106        .50866E-08    .43491E-01
   5  Prefactor     41.894        2.7864       -.69692E-08    .30266E-01
   6  Prefactor     1.6155        2.5857        .63083E-07   -.74809E-03
   7  Prefactor     .39689        .95684       -.72566E-07    .28482E-03
   8  Prefactor     79.493        1.7600       -.76060E-08   -.14057    
   9  Prefactor     11.980        20.571        .25196E-07   -.10902E-01
  10  norm          1.8013        .94577        .55777E-07   -.20419E-02
  11  norm          3.5058        2.5012       -.15377E-07   -.21462E-01
  12  Prefactor      .0000        1.0799       -.10056E-06** at limit **
  13  Prefactor     .55511E-10    2.5088        .84940E-07** at limit **
  14  Prefactor     .11102E-09    5.9853       -.16776E-06** at limit **
  15  Prefactor     .55511E-10    2.1728        .82301E-07** at limit **
  16  Prefactor     .38858E-09    3.8802       -.38387E-07** at limit **
  17  Normalizat    1.0787        .13767       -.34538E-05    .43417E-04
  18  Prefactor     .86182        .70717E-01    .14774E-05    .58700E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05582e-07
  Prefactor  = 13.2839
  Prefactor  = 10.0066
  Prefactor  = 9.32547
  Prefactor  = 41.8942
  Prefactor  = 1.61555
  Prefactor  = 0.396892
  Prefactor  = 79.4927
  Prefactor  = 11.9799
  norm       = 1.80134
  norm       = 3.50576
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 3.88578e-10
  Normalizat = 1.0787
  Prefactor  = 0.861823
 **********
 **   18 **HESSE 
 **********

 FCN=   23308.54     FROM HESSE     STATUS=OK           292 CALLS     1373 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10558E-06    6.0359        .86492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.284        8.2836        .27453E-03   -1.5635    
   3  Prefactor     10.007        24.930        .31565E-03   -1.5645    
   4  Prefactor     9.3255        8.1695        .32788E-03   -1.5647    
   5  Prefactor     41.894        23.417        .15455E-03   -1.5579    
   6  Prefactor     1.6155        2.6080        .83272E-03   -1.5683    
   7  Prefactor     .39689        1.0600        .89812E-03   -1.5695    
   8  Prefactor     79.493        21.346        .11213E-03   -1.5530    
   9  Prefactor     11.980        21.226        .29067E-03   -1.5639    
  10  norm          1.8013        .96278        .77841E-03   -1.5681    
  11  norm          3.5058        8.7017        .53859E-03   -1.5671    
  12  Prefactor      .0000        1.0777        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    2.5216        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .11102E-09    6.0139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    2.1801        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .38858E-09    3.8948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0787        .11966        .70908E-01   -.90439    
  18  Prefactor     .86182        .59218E-01    .44517E-01   -.97488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19524e-07
Minuit parameter uncertainties:
  1  0.00159675
  2  8.28362
  3  24.9301
  4  8.16948
  5  23.4172
  6  2.60795
  7  1.05997
  8  21.3458
  9  21.2266
  10  0.962782
  11  8.7017
  12  4.34243e-06
  13  2.68798e-05
  14  4.55502e-05
  15  1.9383e-05
  16  7.81115e-05
  17  0.119692
  18  0.0592226
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  0.000e+00  4.342e-06  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  2.157e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.618e-01  5.922e-02  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.079e+00  1.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 327.424 3.396
Photon Flux Upper Limit: 2.23795846537e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00169954115703 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/47871733/likelihoodResults_736732801_737337601_4FGL_J2149.6+0323_weekly_bin823.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): 102
logL (Free Index) = 23308.5438249
delta logL = -0.000587292732234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23308.5432387
delta logL = -1.09352913569e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   23308.54     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      233 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.2105        .42118E-03** at limit **
   2  Index         1.8404        1.2541        .27337E-05     .0000    
   3  Normalizat    1.0787        1.1724       -.34409E-05    .67365E-04
   4  Prefactor     .86182        1.2084        .10350E-05    .14407E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.84038
  Normalizat = 1.0787
  Prefactor  = 0.861823
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   23308.54     FROM HESSE     STATUS=FAILED         9 CALLS      242 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.2105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .35070        1.6597        .27337E-05   -.68403    
   3  Normalizat    1.0787        1.1724       -.34409E-05   -.90439    
   4  Prefactor     .86182        1.2084        .10350E-05   -.97488    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.26123e-12
Minuit parameter uncertainties:
  1  5.43811e-06
  2  1.27712
  3  1.20261
  4  1.2493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 23308.5432376
delta logL = 0.0

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  0.000e+00  5.438e-06  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  1.840e+00  1.277e+00  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.618e-01  1.249e+00  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.079e+00  1.203e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 327.424 3.396

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/47871733/cmap_HighResolution_736732801_737337601_4FGL_J2149.6+0323_weekly_bin823.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.70e-03', job_status='DONE', photon_flux_upper_limit='2.24e-08', time_completed='2024-05-14 01:30:45.910940', job_id='47871733', GAL2='0.86', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1715675445.91', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='823' AND source_name='4FGL J2149.6+0323' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 14 01:30:45 PDT 2024

