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


Performing analysis on: 4FGL_J1949.5+0906_weekly_bin855
RA = 297.39, Dec = 9.1054
tmin = 756086401, tmax = 756691201
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='60730446', job_status='RUN', time_executed='2024-12-24 04:01:48.319953', time_epoch_executed='1735041708.32' WHERE source_name='4FGL J1949.5+0906' and cadence='weekly' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60730446

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

Retrieving the FT1 file...

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

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

Retrieving 65 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60730446/ft1_4FGL_J1949.5+0906_weekly_bin855.fits


Retrieving the FT1 file...

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

Retrieving 65 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60730446/ft2_4FGL_J1949.5+0906_weekly_bin855.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60730446/ft1_4FGL_J1949.5+0906_weekly_bin855.fits outfile=/lscratch/kocevski/60730446/ft1_filteredMKT_4FGL_J1949.5+0906_weekly_bin855.fits ra=297.39 dec=9.1054 rad=12.0 tmin=756086401.0 tmax=756691201.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.70
sys 0.28

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60730446/ft2_4FGL_J1949.5+0906_weekly_bin855.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60730446/ft2_4FGL_J1949.5+0906_weekly_bin855.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/60730446/ft1_filteredMKT_4FGL_J1949.5+0906_weekly_bin855.fits evtable="EVENTS" outfile="/lscratch/kocevski/60730446/ft1_filtered_4FGL_J1949.5+0906_weekly_bin855.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.52
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 5181

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60730446/ft1_filtered_4FGL_J1949.5+0906_weekly_bin855.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60730446/ft2_4FGL_J1949.5+0906_weekly_bin855.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60730446/ltcube_756086401_756691201_4FGL_J1949.5+0906_weekly_bin855.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/60730446/ft2_4FGL_J1949.5+0906_weekly_bin855.fits
.....................!
real 11.72
user 11.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60730446/ft1_filtered_4FGL_J1949.5+0906_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60730446/ft2_4FGL_J1949.5+0906_weekly_bin855.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60730446/ltcube_756086401_756691201_4FGL_J1949.5+0906_weekly_bin855.fits outfile=/lscratch/kocevski/60730446/expmap_756086401_756691201_4FGL_J1949.5+0906_weekly_bin855.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/60730446/ltcube_756086401_756691201_4FGL_J1949.5+0906_weekly_bin855.fits
.....................!
real 68.01
user 63.60
sys 3.86

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 W 51C in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W51C.fits is the correct path to the extended template.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Added 277 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 J1949.5+0906 @ 297.39 9.1054

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60730446/ft1_filtered_4FGL_J1949.5+0906_weekly_bin855.fits scfile=/lscratch/kocevski/60730446/ft2_4FGL_J1949.5+0906_weekly_bin855.fits outfile=/lscratch/kocevski/60730446/cmap_756086401_756691201_4FGL_J1949.5+0906_weekly_bin855.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=297.39 yref=9.1054 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.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60730446/ft1_filtered_4FGL_J1949.5+0906_weekly_bin855.fits scfile=/lscratch/kocevski/60730446/ft2_4FGL_J1949.5+0906_weekly_bin855.fits outfile=/lscratch/kocevski/60730446/cmap_HighResolution_756086401_756691201_4FGL_J1949.5+0906_weekly_bin855.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=297.39 yref=9.1054 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.45
user 0.24
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60730446/ft1_filtered_4FGL_J1949.5+0906_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60730446/ft2_4FGL_J1949.5+0906_weekly_bin855.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60730446/Model_4FGL_J1949.5+0906_weekly_bin855.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 G42.8+0.6
adding source GAL_V02
adding source HESS J1857+026
adding source Kes 79
adding source W 44
adding source W 51C
Working on...
/lscratch/kocevski/60730446/ft1_filtered_4FGL_J1949.5+0906_weekly_bin855.fits.....................!
real 518.35
user 514.02
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60730446/ft1_filtered_4FGL_J1949.5+0906_weekly_bin855.fits', '/lscratch/kocevski/60730446/ft2_4FGL_J1949.5+0906_weekly_bin855.fits', expMap='/lscratch/kocevski/60730446/expmap_756086401_756691201_4FGL_J1949.5+0906_weekly_bin855.fits', expCube='/lscratch/kocevski/60730446/ltcube_756086401_756691201_4FGL_J1949.5+0906_weekly_bin855.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60730446/Model_4FGL_J1949.5+0906_weekly_bin855.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1949.5+0906'

4FGL J1949.5+0906
   Spectrum: PowerLaw
631    Prefactor:  4.878e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
632        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
633        Scale:  3.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60730446/ft1_filtered_4FGL_J1949.5+0906_weekly_bin855.fits
Spacecraft file(s): /lscratch/kocevski/60730446/ft2_4FGL_J1949.5+0906_weekly_bin855.fits
Exposure map: /lscratch/kocevski/60730446/expmap_756086401_756691201_4FGL_J1949.5+0906_weekly_bin855.fits
Exposure cube: /lscratch/kocevski/60730446/ltcube_756086401_756691201_4FGL_J1949.5+0906_weekly_bin855.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60730446/Model_4FGL_J1949.5+0906_weekly_bin855.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) = 45533.5605713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42717E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .36587E-05   1.0000          .0000       .10000E+07
     3 'norm      '    2.4879       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .51736E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .90469E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    20.377       1.0000          .0000       .10000E+07
     8 'norm      '    .14155E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .25274E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    18.807       1.0000          .0000       .10000E+07
    11 'Prefactor '    9.0298       1.0000          .0000       .10000E+07
    12 'Prefactor '    .33327E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .17930E-07   1.0000          .0000       .10000E+07
    14 'Normalizat'    .66243       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0565       1.0000          .0000       10.000    
    16 'norm      '    8.5512       1.0000          .0000       .10000E+07
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1013E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   45533.45     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     1084 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16243E-06    13.625        .24096E-06** at limit **
   2  norm          .63727E-07    44.566        .22819E-06** at limit **
   3  norm          2.4890        3.7541        .11931E-07    .70193E-03
   4  Prefactor     .10000E-03    1.4746        .48851E-07** at limit **
   5  Prefactor      .0000        .66828       -.99536E-08** at limit **
   6  Prefactor     .14988E-08    8.4643        .23874E-07** at limit **
   7  Prefactor     19.703        3.6398        .21905E-07    .44358E-01
   8  norm           .0000        .84671       -.14584E-07** at limit **
   9  Prefactor     .10303E-06    23.000        .41734E-06** at limit **
  10  Prefactor     18.667        4.1947       -.88109E-08    .21071    
  11  Prefactor     9.0797        7.7366        .13341E-06    .72670E-02
  12  Prefactor     .19829E-06    11.996        .17997E-06** at limit **
  13  norm           .0000        .31380       -.96364E-08** at limit **
  14  Normalizat    .66320        .22013       -.94762E-06    .12085E-03
  15  Prefactor     1.0565        .23275E-01    .47956E-06    .25084E-02
  16  norm          8.5502        1.8147        .37268E-07    .20393E-01
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.62426e-07
  norm       = 6.37268e-08
  norm       = 2.48902
  Prefactor  = 0.0001
  Prefactor  = 0
  Prefactor  = 1.4988e-09
  Prefactor  = 19.7028
  norm       = 0
  Prefactor  = 1.03029e-07
  Prefactor  = 18.6674
  Prefactor  = 9.07968
  Prefactor  = 1.98286e-07
  norm       = 0
  Normalizat = 0.663204
  Prefactor  = 1.05654
  norm       = 8.55018
 **********
 **   18 **HESSE 
 **********

 FCN=   45533.45     FROM HESSE     STATUS=OK           233 CALLS     1317 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16243E-06    14.583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .63727E-07    44.586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4890        3.7573        .64780E-03   -1.5676    
   4  Prefactor     .10000E-03    1.4374        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        .66861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .14988E-08    8.4603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.703        18.666        .22160E-03   -1.5619    
   8  norm           .0000        .84836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10303E-06    23.181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.667        14.697        .23067E-03   -1.5622    
  11  Prefactor     9.0797        7.8045        .33330E-03   -1.5648    
  12  Prefactor     .19829E-06    12.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .30913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .66320        .24983        .31597       -1.0536    
  15  Prefactor     1.0565        .25261E-01    .26584E-01   -.90868    
  16  norm          8.5502        1.8128        .34256E-03   -1.5649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78632e-07
Minuit parameter uncertainties:
  1  0.00307822
  2  0.00337162
  3  3.7573
  4  8.87953e-07
  5  7.48334e-07
  6  0.000223843
  7  18.6664
  8  4.40739e-07
  9  0.00309095
  10  14.6966
  11  7.80453
  12  0.00314519
  13  8.14203e-07
  14  0.250261
  15  0.0252612
  16  1.81283
Done.

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

Extracting fit parameters...

4FGL J1949.5+0906
   Spectrum: PowerLaw
631    Prefactor:  1.970e+01  1.867e+01  0.000e+00  1.000e+06 ( 1.000e-14)
632        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
633        Scale:  3.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
995    Prefactor:  1.057e+00  2.526e-02  0.000e+00  1.000e+01 ( 1.000e+00)
996        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
997        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
991   Normalization:  6.632e-01  2.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.64
Ra Dec: 297.390 9.105
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 2.51e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.62e-05

TS (Fixed Index): 2.64
Ra Dec: 297.390 9.105
Photon Flux Upper Limit: 8.69958152535e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00652775385687 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60730446/likelihoodResults_756086401_756691201_4FGL_J1949.5+0906_weekly_bin855.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) = 45533.4255297
delta logL = 0.0252279751221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 45533.4105124
delta logL = 0.040245303695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.955       1.0000          .0000       .10000E+07
     2 'Index     '    1.8235       1.0000          .0000       10.000    
     3 'Normalizat'    .66748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0565       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1013E+06   .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=   45533.41     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      253 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.976        27.374        .81745E-05    .48954E-02
   2  Index         1.8228        .66178        .12617E-01    .42161E-03
   3  Normalizat    .66788        .21657        .14068E-02    .97463E-03
   4  Prefactor     1.0565        .22615E-01    .11749E-03    .97645E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.9758
  Index      = 1.82281
  Normalizat = 0.667881
  Prefactor  = 1.05646
 **********
 **   18 **HESSE 
 **********

 FCN=   45533.41     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.976        26.137        .16349E-05   -1.5610    
   2  Index         1.8228        .63269        .50467E-03   -.68857    
   3  Normalizat    .66788        .21636        .56274E-04   -1.0517    
   4  Prefactor     1.0565        .22605E-01    .23498E-04   -.90870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09044e-09
Minuit parameter uncertainties:
  1  26.1376
  2  0.635559
  3  0.216635
  4  0.0226054
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) = 45533.4105102
delta logL = 0.0402475563023

Extracting fit parameters...

4FGL J1949.5+0906
   Spectrum: PowerLaw
631    Prefactor:  2.398e+01  2.614e+01  0.000e+00  1.000e+06 ( 1.000e-14)
632        Index:  1.823e+00  6.356e-01  0.000e+00  1.000e+01 (-1.000e+00)
633        Scale:  3.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
995    Prefactor:  1.056e+00  2.261e-02  0.000e+00  1.000e+01 ( 1.000e+00)
996        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
997        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
991   Normalization:  6.679e-01  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 297.390 9.105
Photon Index (Free Index): 1.82 +/- 0.64
Photon Flux (Free Index): 1.94e-08 +/- 2.67e-08
Energy Flux (Free Index): 2.17e-05 +/- 2.83e-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/60730446/cmap_HighResolution_756086401_756691201_4FGL_J1949.5+0906_weekly_bin855.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.53e-03', comment='SUCCESS', photon_flux='2.51e-08', energy_flux2='2.17e-05', photon_flux_error='2.38e-08', dlogl='4.02e-02', energy_flux='1.71e-05', photon_flux2='1.94e-08', job_status='DONE', time_completed='2024-12-24 04:28:54.533442', photon_index_error2='0.64', photon_index2='1.82', ts='2.64', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='8.70e-08', energy_flux_error2='2.83e-05', EG='0.66', time_epoch_completed='1735043334.53', return_code='0', job_id='60730446', GAL2='1.06', EG2='0.67', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='2.67e-08', ts2='2.71', photon_index='2.01' WHERE bin_id='855' AND source_name='4FGL J1949.5+0906' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 24 04:28:54 PST 2024

