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


Performing analysis on: 4FGL_J1549.3+6310_weekly_bin853
RA = 237.332, Dec = 63.178
tmin = 754876801, tmax = 755481601
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='59978161', job_status='RUN', time_executed='2024-12-10 00:51:38.131651', time_epoch_executed='1733820698.13' WHERE source_name='4FGL J1549.3+6310' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59978161

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59978161/ft1_4FGL_J1549.3+6310_weekly_bin853.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59978161/ft2_4FGL_J1549.3+6310_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59978161/ft1_4FGL_J1549.3+6310_weekly_bin853.fits outfile=/lscratch/kocevski/59978161/ft1_filteredMKT_4FGL_J1549.3+6310_weekly_bin853.fits ra=237.332 dec=63.178 rad=12.0 tmin=754876801.0 tmax=755481601.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.01
user 3.39
sys 0.28

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/59978161/ft2_4FGL_J1549.3+6310_weekly_bin853.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59978161/ft2_4FGL_J1549.3+6310_weekly_bin853.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/59978161/ft1_filteredMKT_4FGL_J1549.3+6310_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59978161/ft1_filtered_4FGL_J1549.3+6310_weekly_bin853.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.67
user 0.29
sys 0.14

Number of photons that the gtmktime cut: 2506

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59978161/ft1_filtered_4FGL_J1549.3+6310_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59978161/ft2_4FGL_J1549.3+6310_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59978161/ltcube_754876801_755481601_4FGL_J1549.3+6310_weekly_bin853.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/59978161/ft2_4FGL_J1549.3+6310_weekly_bin853.fits
.....................!
real 23.25
user 21.39
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59978161/ft1_filtered_4FGL_J1549.3+6310_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978161/ft2_4FGL_J1549.3+6310_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59978161/ltcube_754876801_755481601_4FGL_J1549.3+6310_weekly_bin853.fits outfile=/lscratch/kocevski/59978161/expmap_754876801_755481601_4FGL_J1549.3+6310_weekly_bin853.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/59978161/ltcube_754876801_755481601_4FGL_J1549.3+6310_weekly_bin853.fits
.....................!
real 72.73
user 67.88
sys 4.19

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

Setting source of interest to:
4FGL J1549.3+6310 @ 237.332 63.178

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/59978161/ft1_filtered_4FGL_J1549.3+6310_weekly_bin853.fits scfile=/lscratch/kocevski/59978161/ft2_4FGL_J1549.3+6310_weekly_bin853.fits outfile=/lscratch/kocevski/59978161/cmap_754876801_755481601_4FGL_J1549.3+6310_weekly_bin853.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=237.332 yref=63.178 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.47
user 0.26
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59978161/ft1_filtered_4FGL_J1549.3+6310_weekly_bin853.fits scfile=/lscratch/kocevski/59978161/ft2_4FGL_J1549.3+6310_weekly_bin853.fits outfile=/lscratch/kocevski/59978161/cmap_HighResolution_754876801_755481601_4FGL_J1549.3+6310_weekly_bin853.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=237.332 yref=63.178 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.58
user 0.25
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59978161/ft1_filtered_4FGL_J1549.3+6310_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978161/ft2_4FGL_J1549.3+6310_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59978161/Model_4FGL_J1549.3+6310_weekly_bin853.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/59978161/ft1_filtered_4FGL_J1549.3+6310_weekly_bin853.fits.....................!
real 80.76
user 78.88
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59978161/ft1_filtered_4FGL_J1549.3+6310_weekly_bin853.fits', '/lscratch/kocevski/59978161/ft2_4FGL_J1549.3+6310_weekly_bin853.fits', expMap='/lscratch/kocevski/59978161/expmap_754876801_755481601_4FGL_J1549.3+6310_weekly_bin853.fits', expCube='/lscratch/kocevski/59978161/ltcube_754876801_755481601_4FGL_J1549.3+6310_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59978161/Model_4FGL_J1549.3+6310_weekly_bin853.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1549.3+6310'

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  7.296e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
345        Index:  2.442e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  1.323e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/59978161/ft1_filtered_4FGL_J1549.3+6310_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59978161/ft2_4FGL_J1549.3+6310_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59978161/expmap_754876801_755481601_4FGL_J1549.3+6310_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59978161/ltcube_754876801_755481601_4FGL_J1549.3+6310_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59978161/Model_4FGL_J1549.3+6310_weekly_bin853.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) = 26870.6609421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15797E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .33902E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .50668E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    12.166       1.0000          .0000       .10000E+07
     5 'Prefactor '    .96214E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .15443E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    18.759       1.0000          .0000       .10000E+07
     8 'norm      '    2.0671       1.0000          .0000       .10000E+07
     9 'Prefactor '    32.100       1.0000          .0000       .10000E+07
    10 'Prefactor '    .35752E-04   1.0000          .0000       .10000E+07
    11 'norm      '    38.458       1.0000          .0000       .10000E+07
    12 'Prefactor '    25.049       1.0000          .0000       .10000E+07
    13 'Prefactor '    .28001E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    6.2298       1.0000          .0000       .10000E+07
    15 'Prefactor '    .60185       1.0000          .0000       .10000E+07
    16 'norm      '    12.202       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.9963       1.0000          .0000       .10000E+07
    18 'norm      '    .65355       1.0000          .0000       .10000E+07
    19 'Prefactor '    1.8782       1.0000          .0000       .10000E+07
    20 'Prefactor '    21.815       1.0000          .0000       .10000E+07
    21 'Prefactor '    1.8871       1.0000          .0000       .10000E+07
    22 'Prefactor '    .24823E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0321       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97038       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26870.62     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     1549 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86597E-08    7.0208       -.38371E-07** at limit **
   2  Prefactor     .41300E-07    12.274       -.76792E-07** at limit **
   3  Prefactor      .0000        1.6590        .13555E-06** at limit **
   4  Prefactor     12.125        3.2557       -.31990E-07   -.23448E-02
   5  Prefactor     .11824E-07    4.8816       -.22401E-07** at limit **
   6  Prefactor      .0000        .73042       -.73115E-07** at limit **
   7  Prefactor     18.780        9.2819       -.59792E-07   -.97302E-01
   8  norm          2.0722        1.1712        .61537E-08    .82932E-03
   9  Prefactor     31.026        19.756       -.24481E-06   -.18708    
  10  Prefactor      .0000        2.2359       -.85596E-07** at limit **
  11  norm          38.505        5.2291        .24540E-07    .33474E-02
  12  Prefactor     25.035        1.4032        .85686E-08   -.53490E-02
  13  Prefactor     .38858E-09    17.605       -.28990E-06** at limit **
  14  Prefactor     6.2183        3.1803        .10284E-07    .81336E-03
  15  Prefactor     .11532E-03    111.08       -.17619E-05** at limit **
  16  norm          12.191        3.6234       -.85317E-08    .42060E-03
  17  Prefactor     2.9862        6.8118       -.34155E-07   -.16271E-03
  18  norm          .65720        .37740        .35539E-07    .14587E-01
  19  Prefactor     1.8694        2.9222        .45812E-07    .16228E-02
  20  Prefactor     21.810        8.3061       -.59043E-07   -.98721E-02
  21  Prefactor     1.8870        2.1477       -.37971E-07   -.61161E-03
  22  Prefactor     .22204E-09    3.8520        .67069E-07** at limit **
  23  Normalizat    1.0322        .97502E-01    .29568E-06    .42810E-03
  24  Prefactor     .97078        .96551E-01    .13985E-05    .47373E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.65974e-09
  Prefactor  = 4.13003e-08
  Prefactor  = 0
  Prefactor  = 12.125
  Prefactor  = 1.18239e-08
  Prefactor  = 0
  Prefactor  = 18.7798
  norm       = 2.07217
  Prefactor  = 31.0257
  Prefactor  = 0
  norm       = 38.5049
  Prefactor  = 25.0352
  Prefactor  = 3.88578e-10
  Prefactor  = 6.21828
  Prefactor  = 0.000115324
  norm       = 12.1908
  Prefactor  = 2.98619
  norm       = 0.657204
  Prefactor  = 1.86936
  Prefactor  = 21.8096
  Prefactor  = 1.887
  Prefactor  = 2.22045e-10
  Normalizat = 1.03219
  Prefactor  = 0.970784
 **********
 **   18 **HESSE 
 **********

 FCN=   26870.62     FROM HESSE     STATUS=OK           455 CALLS     2004 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86597E-08    7.3244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .41300E-07    12.357        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.6621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.125        12.265        .28695E-03   -1.5638    
   5  Prefactor     .11824E-07    7.1636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        .73041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.780        11.123        .23097E-03   -1.5621    
   8  norm          2.0722        1.1885        .71831E-03   -1.5679    
   9  Prefactor     31.026        31.635        .17652E-03   -1.5597    
  10  Prefactor      .0000        2.2278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          38.505        5.3356        .16127E-03   -1.5584    
  12  Prefactor     25.035        15.061        .19985E-03   -1.5608    
  13  Prefactor     .38858E-09    17.611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2183        3.1870        .40195E-03   -1.5658    
  15  Prefactor     .11532E-03    6.6542        .12550E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.191        3.6296        .28652E-03   -1.5638    
  17  Prefactor     2.9862        6.8664        .58618E-03   -1.5673    
  18  norm          .65720        .39604        .64562E-03   -1.5692    
  19  Prefactor     1.8694        2.9680        .75941E-03   -1.5681    
  20  Prefactor     21.810        8.4017        .21416E-03   -1.5615    
  21  Prefactor     1.8870        2.1654        .75728E-03   -1.5680    
  22  Prefactor     .22204E-09    6.5122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0322        .84390E-01    .41960E-01   -.91960    
  24  Prefactor     .97078        .83070E-01    .45896E-01   -.93710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38347e-06
Minuit parameter uncertainties:
  1  0.000504369
  2  0.0014287
  3  1.33612e-05
  4  12.2654
  5  0.000582183
  6  2.22493e-06
  7  11.1233
  8  1.18852
  9  31.635
  10  1.46111e-06
  11  5.33564
  12  15.0614
  13  0.0001702
  14  3.18702
  15  0.0554037
  16  3.62957
  17  6.86646
  18  0.396043
  19  2.96802
  20  8.40172
  21  2.16538
  22  7.32403e-05
  23  0.0844011
  24  0.0830811
Done.

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

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  3.103e+01  3.163e+01  0.000e+00  1.000e+06 ( 1.000e-14)
345        Index:  2.442e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  1.323e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  9.708e-01  8.308e-02  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.032e+00  8.440e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 237.332 63.178
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 1.18e-08 +/- 1.20e-08
Energy Flux (Fixed Index): 3.67e-06 +/- 3.74e-06

TS (Fixed Index): 1.46
Ra Dec: 237.332 63.178
Photon Flux Upper Limit: 3.79661086731e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00294183983148 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/59978161/likelihoodResults_754876801_755481601_4FGL_J1549.3+6310_weekly_bin853.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) = 26870.6125388
delta logL = 0.00544546767924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26870.6101044
delta logL = 0.00787985298302

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   26870.61     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      230 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.475        495.44        .18717E-03   -.18808E-02
   2  Index         2.5330        2.3876        .23439        .85691E-04
   3  Normalizat    1.0307        .21422E-01    .42112E-01    .26856E-03
   4  Prefactor     .97167        .19516E-01    .45909E-01   -.48269E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.4754
  Index      = 2.533
  Normalizat = 1.03071
  Prefactor  = 0.971671
 **********
 **   18 **HESSE 
 **********

 FCN=   26870.61     FROM HESSE     STATUS=OK            31 CALLS      261 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.475        39.905        .74867E-05   -1.5601    
   2  Index         2.5330        .80963        .10814E-01   -.51600    
   3  Normalizat    1.0307        .96569E-01    .24142E-03   -.92009    
   4  Prefactor     .97167        .95592E-01    .24678E-03   -.93680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.44249e-10
Minuit parameter uncertainties:
  1  39.9053
  2  0.814386
  3  0.0965855
  4  0.0956085
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) = 26870.6100277
delta logL = 0.00795660175572

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  2.848e+01  3.991e+01  0.000e+00  1.000e+06 ( 1.000e-14)
345        Index:  2.533e+00  8.144e-01  0.000e+00  1.000e+01 (-1.000e+00)
346        Scale:  1.323e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  9.717e-01  9.561e-02  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.031e+00  9.659e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 237.332 63.178
Photon Index (Free Index): 2.53 +/- 0.81
Photon Flux (Free Index): 1.29e-08 +/- 1.47e-08
Energy Flux (Free Index): 3.61e-06 +/- 3.70e-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/59978161/cmap_HighResolution_754876801_755481601_4FGL_J1549.3+6310_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-03', comment='SUCCESS', photon_flux='1.18e-08', energy_flux2='3.61e-06', photon_flux_error='1.20e-08', dlogl='7.96e-03', energy_flux='3.67e-06', photon_flux2='1.29e-08', job_status='DONE', time_completed='2024-12-10 01:05:36.778579', photon_index_error2='0.81', photon_index2='2.53', ts='1.46', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='3.80e-08', energy_flux_error2='3.70e-06', EG='1.03', time_epoch_completed='1733821536.78', return_code='0', job_id='59978161', GAL2='0.97', EG2='1.03', return_code2='0', energy_flux_error='3.74e-06', photon_flux_error2='1.47e-08', ts2='1.48', photon_index='2.44' WHERE bin_id='853' AND source_name='4FGL J1549.3+6310' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 01:05:36 PST 2024

