/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_J1543.1+4209_weekly_bin855
RA = 235.799, Dec = 42.1549
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='60729539', job_status='RUN', time_executed='2024-12-24 03:51:26.214292', time_epoch_executed='1735041086.21' WHERE source_name='4FGL J1543.1+4209' and cadence='weekly' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60729539

Creating custom pfile directory:
/lscratch/kocevski/60729539/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/60729539/ft1_4FGL_J1543.1+4209_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/60729539/ft2_4FGL_J1543.1+4209_weekly_bin855.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60729539/ft1_4FGL_J1543.1+4209_weekly_bin855.fits outfile=/lscratch/kocevski/60729539/ft1_filteredMKT_4FGL_J1543.1+4209_weekly_bin855.fits ra=235.799 dec=42.1549 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 2.75
user 2.44
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60729539/ft2_4FGL_J1543.1+4209_weekly_bin855.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60729539/ft2_4FGL_J1543.1+4209_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/60729539/ft1_filteredMKT_4FGL_J1543.1+4209_weekly_bin855.fits evtable="EVENTS" outfile="/lscratch/kocevski/60729539/ft1_filtered_4FGL_J1543.1+4209_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.38
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 772

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60729539/ft1_filtered_4FGL_J1543.1+4209_weekly_bin855.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60729539/ft2_4FGL_J1543.1+4209_weekly_bin855.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60729539/ltcube_756086401_756691201_4FGL_J1543.1+4209_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/60729539/ft2_4FGL_J1543.1+4209_weekly_bin855.fits
.....................!
real 10.41
user 9.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60729539/ft1_filtered_4FGL_J1543.1+4209_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60729539/ft2_4FGL_J1543.1+4209_weekly_bin855.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60729539/ltcube_756086401_756691201_4FGL_J1543.1+4209_weekly_bin855.fits outfile=/lscratch/kocevski/60729539/expmap_756086401_756691201_4FGL_J1543.1+4209_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/60729539/ltcube_756086401_756691201_4FGL_J1543.1+4209_weekly_bin855.fits
.....................!
real 60.13
user 56.28
sys 3.43

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

Setting source of interest to:
4FGL J1543.1+4209 @ 235.799 42.1549

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60729539/ft1_filtered_4FGL_J1543.1+4209_weekly_bin855.fits scfile=/lscratch/kocevski/60729539/ft2_4FGL_J1543.1+4209_weekly_bin855.fits outfile=/lscratch/kocevski/60729539/cmap_756086401_756691201_4FGL_J1543.1+4209_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=235.799 yref=42.1549 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.39
user 0.20
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60729539/ft1_filtered_4FGL_J1543.1+4209_weekly_bin855.fits scfile=/lscratch/kocevski/60729539/ft2_4FGL_J1543.1+4209_weekly_bin855.fits outfile=/lscratch/kocevski/60729539/cmap_HighResolution_756086401_756691201_4FGL_J1543.1+4209_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=235.799 yref=42.1549 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.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60729539/ft1_filtered_4FGL_J1543.1+4209_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60729539/ft2_4FGL_J1543.1+4209_weekly_bin855.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60729539/Model_4FGL_J1543.1+4209_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 GAL_V02
Working on...
/lscratch/kocevski/60729539/ft1_filtered_4FGL_J1543.1+4209_weekly_bin855.fits.....................!
real 21.89
user 20.84
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60729539/ft1_filtered_4FGL_J1543.1+4209_weekly_bin855.fits', '/lscratch/kocevski/60729539/ft2_4FGL_J1543.1+4209_weekly_bin855.fits', expMap='/lscratch/kocevski/60729539/expmap_756086401_756691201_4FGL_J1543.1+4209_weekly_bin855.fits', expCube='/lscratch/kocevski/60729539/ltcube_756086401_756691201_4FGL_J1543.1+4209_weekly_bin855.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60729539/Model_4FGL_J1543.1+4209_weekly_bin855.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1543.1+4209'

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  1.013e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
297        Index:  1.981e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  3.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60729539/ft1_filtered_4FGL_J1543.1+4209_weekly_bin855.fits
Spacecraft file(s): /lscratch/kocevski/60729539/ft2_4FGL_J1543.1+4209_weekly_bin855.fits
Exposure map: /lscratch/kocevski/60729539/expmap_756086401_756691201_4FGL_J1543.1+4209_weekly_bin855.fits
Exposure cube: /lscratch/kocevski/60729539/ltcube_756086401_756691201_4FGL_J1543.1+4209_weekly_bin855.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60729539/Model_4FGL_J1543.1+4209_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) = 8379.97470552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.846       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.1175       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.6553       1.0000          .0000       .10000E+07
     4 'norm      '    .84377E-08   1.0000          .0000       .10000E+07
     5 'norm      '    2.6698       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11377E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    29.479       1.0000          .0000       .10000E+07
     8 'Prefactor '    .16389E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .37055E-02   1.0000          .0000       .10000E+07
    10 'norm      '    2.2412       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.1792       1.0000          .0000       .10000E+07
    12 'norm      '    3.8342       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.1286       1.0000          .0000       .10000E+07
    14 'Prefactor '    .36106       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.0216       1.0000          .0000       .10000E+07
    16 'Prefactor '    8.1641       1.0000          .0000       .10000E+07
    17 'Prefactor '    .55904E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .93938E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .15826E-06   1.0000          .0000       .10000E+07
    20 'norm      '    .34709E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .14518E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .68321E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .14639E-05   1.0000          .0000       .10000E+07
    24 'norm      '    .45234E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .70098       1.0000          .0000       .10000E+07
    26 'Prefactor '    3.6349       1.0000          .0000       .10000E+07
    27 'Normalizat'    .93630       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .89899       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8379.949     FROM MIGRAD    STATUS=CONVERGED    188 CALLS     2575 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.843        1.7541       -.19802E-07    .68571E-02
   2  Prefactor     1.1184        2.6634        .12369E-06    .66962E-03
   3  Prefactor     7.7352        5.5986       -.13776E-06   -.14526E-02
   4  norm           .0000        .29953        .18202E-07** at limit **
   5  norm          2.6678        2.4427        .48858E-07    .95560E-03
   6  Prefactor     .41411E-07    8.9071       -.13074E-06** at limit **
   7  Prefactor     29.748        24.732        .15441E-06   -.13314    
   8  Prefactor     .11733E-05    41.963       -.43137E-06** at limit **
   9  Prefactor     .40856E-07    4.9939        .29941E-06** at limit **
  10  norm          2.2426        1.1199       -.93614E-08    .16994E-02
  11  Prefactor     1.1628        13.786        .72918E-06   -.15308E-03
  12  norm          3.8405        7.2569       -.11700E-06    .14267E-02
  13  Prefactor     8.1394        9.3906       -.28988E-06   -.60539E-01
  14  Prefactor     .42458E-04    92.266       -.41447E-06** at limit **
  15  Prefactor     2.0223        2.2507        .64337E-07    .91505E-03
  16  Prefactor     8.1951        4.8718        .15671E-06    .11743E-02
  17  Prefactor     .24808E-06    8.0668        .27844E-06** at limit **
  18  Prefactor     .11102E-09    3.7349       -.88087E-07** at limit **
  19  Prefactor      .0000        .62278        .15129E-06** at limit **
  20  norm          .34694E-01    .55803E-01   -.65296E-10** at limit **
  21  norm           .0000        2.7037        .44785E-07** at limit **
  22  Prefactor     .17597E-07    7.5545        .18931E-06** at limit **
  23  Prefactor      .0000        2.4013        .19082E-06** at limit **
  24  norm          .42638E-06    15.727       -.81050E-07** at limit **
  25  Prefactor     .71054        1.8410       -.24607E-07    .19785E-02
  26  Prefactor     3.6238        2.2285        .88678E-07    .52562E-02
  27  Normalizat    .93593        .16437        .27400E-05    .61079E-04
  28  Prefactor     .89912        .16608       -.31517E-05    .35643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.8427
  Prefactor  = 1.11839
  Prefactor  = 7.73515
  norm       = 0
  norm       = 2.66782
  Prefactor  = 4.14113e-08
  Prefactor  = 29.7484
  Prefactor  = 1.17334e-06
  Prefactor  = 4.08562e-08
  norm       = 2.24262
  Prefactor  = 1.16284
  norm       = 3.84047
  Prefactor  = 8.13939
  Prefactor  = 4.24579e-05
  Prefactor  = 2.02233
  Prefactor  = 8.19506
  Prefactor  = 2.48079e-07
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  norm       = 0.0346944
  norm       = 0
  Prefactor  = 1.7597e-08
  Prefactor  = 0
  norm       = 4.26381e-07
  Prefactor  = 0.710542
  Prefactor  = 3.62379
  Normalizat = 0.935931
  Prefactor  = 0.899121
 **********
 **   18 **HESSE 
 **********

 FCN=   8379.949     FROM HESSE     STATUS=OK           575 CALLS     3150 TOTAL
                     EDM=   .52E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.843        19.115        .21401E-03   -1.5614    
   2  Prefactor     1.1184        3.1016        .52161E-02   -1.5687    
   3  Prefactor     7.7352        5.6084        .36220E-03   -1.5652    
   4  norm           .0000        .29705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6678        2.4628        .62347E-03   -1.5675    
   6  Prefactor     .41411E-07    8.8646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.748        49.571        .18421E-03   -1.5599    
   8  Prefactor     .11733E-05    42.242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .40856E-07    13.632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2426        1.1681        .68625E-03   -1.5678    
  11  Prefactor     1.1628        14.683        .10529E-02   -1.5686    
  12  norm          3.8405        7.2730        .51518E-03   -1.5669    
  13  Prefactor     8.1394        9.5147        .35142E-03   -1.5651    
  14  Prefactor     .42458E-04    116.31        .94144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0223        2.2638        .72754E-03   -1.5680    
  16  Prefactor     8.1951        4.8715        .35064E-03   -1.5651    
  17  Prefactor     .24808E-06    12.256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-09    3.7231        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        .62246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .34694E-01    .70303E-01    .60535E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        2.7060        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .17597E-07    7.5932        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        2.3951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .42638E-06    15.998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .71054        1.9785        .60628E-03   -1.5691    
  26  Prefactor     3.6238        2.3486        .52965E-03   -1.5670    
  27  Normalizat    .93593        .13991        .45364E-01   -.95209    
  28  Prefactor     .89912        .13999        .44992E-01   -.96172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19631e-06
Minuit parameter uncertainties:
  1  19.1147
  2  3.1016
  3  5.60835
  4  4.24779e-07
  5  2.46276
  6  0.00121216
  7  49.5721
  8  0.0140806
  9  0.00149284
  10  1.1681
  11  8.26414
  12  7.27306
  13  9.51472
  14  0.140546
  15  2.26379
  16  4.87151
  17  0.00348731
  18  4.24422e-05
  19  1.65726e-06
  20  0.0703034
  21  1.50003e-05
  22  0.00073121
  23  7.73819e-06
  24  0.00522337
  25  1.9785
  26  2.34862
  27  0.139961
  28  0.140048
Done.

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

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  8.139e+00  9.515e+00  0.000e+00  1.000e+06 ( 1.000e-14)
297        Index:  1.981e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  3.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  8.991e-01  1.400e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  9.359e-01  1.400e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.85
Ra Dec: 235.799 42.155
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 8.28e-09 +/- 9.68e-09
Energy Flux (Fixed Index): 6.00e-06 +/- 7.01e-06

TS (Fixed Index): 1.85
Ra Dec: 235.799 42.155
Photon Flux Upper Limit: 3.92466982996e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00293885425537 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60729539/likelihoodResults_756086401_756691201_4FGL_J1543.1+4209_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) = 8379.94902356
delta logL = 2.60967099166e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8379.94900349
delta logL = 4.61651798105e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0590       1.0000          .0000       .10000E+07
     2 'Index     '    1.9899       1.0000          .0000       10.000    
     3 'Normalizat'    .93580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89914       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+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=   8379.949     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      264 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0571        14.339        .70588E-04    .11368E-02
   2  Index         1.9896        .97010        .10845E-01    .82734E-04
   3  Normalizat    .93583        .16119        .22989E-03   -.85948E-04
   4  Prefactor     .89916        .16525        .23925E-03   -.12973E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.05712
  Index      = 1.98962
  Normalizat = 0.935834
  Prefactor  = 0.89916
 **********
 **   18 **HESSE 
 **********

 FCN=   8379.949     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0571        12.910        .14118E-04   -1.5651    
   2  Index         1.9896        .87555        .43379E-03   -.64610    
   3  Normalizat    .93583        .16124        .91957E-05   -.95212    
   4  Prefactor     .89916        .16539        .95698E-05   -.96170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47604e-10
Minuit parameter uncertainties:
  1  12.9103
  2  0.882728
  3  0.16132
  4  0.165486
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) = 8379.94900301
delta logL = 4.66419023724e-05

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  8.057e+00  1.291e+01  0.000e+00  1.000e+06 ( 1.000e-14)
297        Index:  1.990e+00  8.827e-01  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  3.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  8.992e-01  1.655e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  9.358e-01  1.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 235.799 42.155
Photon Index (Free Index): 1.99 +/- 0.88
Photon Flux (Free Index): 8.37e-09 +/- 1.34e-08
Energy Flux (Free Index): 5.94e-06 +/- 9.55e-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/60729539/cmap_HighResolution_756086401_756691201_4FGL_J1543.1+4209_weekly_bin855.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-03', comment='SUCCESS', photon_flux='8.28e-09', energy_flux2='5.94e-06', photon_flux_error='9.68e-09', dlogl='4.66e-05', energy_flux='6.00e-06', photon_flux2='8.37e-09', job_status='DONE', time_completed='2024-12-24 03:57:09.520586', photon_index_error2='0.88', photon_index2='1.99', ts='1.85', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='3.92e-08', energy_flux_error2='9.55e-06', EG='0.94', time_epoch_completed='1735041429.52', return_code='0', job_id='60729539', GAL2='0.90', EG2='0.94', return_code2='0', energy_flux_error='7.01e-06', photon_flux_error2='1.34e-08', ts2='1.85', photon_index='1.98' WHERE bin_id='855' AND source_name='4FGL J1543.1+4209' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 24 03:57:09 PST 2024

