 **********
 **   18 **HESSE 
 **********

 FCN=   14793.58     FROM HESSE     STATUS=OK           583 CALLS     3183 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.943        14.541        .17428E-03   -1.5593    
   2  Prefactor     .55511E-10    2.7206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6484        1.6980        .82213E-03   -1.5682    
   4  norm          2.6213        .98495        .62968E-03   -1.5676    
   5  norm           .0000        .77057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.6442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11657E-07    23.890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .64171E-07    5.8926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2212        6.7275        .10338E-02   -1.5686    
  10  norm          .94467        .78425        .42733E-03   -1.5689    
  11  Prefactor     2.6753        6.1070        .62264E-03   -1.5675    
  12  norm          .33307E-08    13.453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12440E-06    5.8402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.460        33.749        .19807E-03   -1.5607    
  15  Prefactor     .18020        .67942        .57486E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.0934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .99920E-09    52.345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.9597        4.1357        .74007E-03   -1.5680    
  19  Prefactor      .0000        .40794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .36179E-01    .52790E-01    .58442E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        2.2012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .12101E-07    5.5944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        .57562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.2290        15.067        .37246E-03   -1.5654    
  25  Prefactor      .0000        .39162        .23293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     13.167        1.4702        .27579E-03   -1.5635    
  27  Normalizat    .89313        .10276        .44814E-01   -.96702    
  28  Prefactor     .85863        .10164        .44475E-01   -.97602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63836e-06
Minuit parameter uncertainties:
  1  14.5407
  2  2.07105e-05
  3  1.69797
  4  0.984952
  5  8.55073e-07
  6  1.05601e-05
  7  0.00105591
  8  0.00123012
  9  5.73247
  10  0.78425
  11  6.10706
  12  0.000422685
  13  0.00170463
  14  33.7492
  15  0.67942
  16  6.62967e-06
  17  0.0004512
  18  4.13571
  19  2.90552e-06
  20  0.0527901
  21  8.28369e-06
  22  0.000520073
  23  3.7694e-06
  24  15.0672
  25  1.90296e-07
  26  1.47024
  27  0.102778
  28  0.101666
Done.

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

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  1.244e-07  1.705e-03  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.586e-01  1.017e-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:  8.931e-01  1.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/19660813/likelihoodResults_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.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) = 14793.6671796
delta logL = -0.0843751785251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14793.5828044
delta logL = -5.45696821064e-11

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19873E-07   1.0000          .0000       .10000E+07
     2 'Index     '    2.0578       1.0000          .0000       10.000    
     3 'Normalizat'    .89312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85865       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14793.58     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      187 TOTAL
                     EDM=   .29E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.6911        .42118E-03** at limit **
   2  Index         1.8067        .96927       -.70314E-05     .0000    
   3  Normalizat    .89313        1.2288        .55933E-06   -.82634E-05
   4  Prefactor     .85863        1.2054       -.45649E-06   -.45614E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.80673
  Normalizat = 0.893134
  Prefactor  = 0.858631
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14793.58     FROM HESSE     STATUS=FAILED         9 CALLS      196 TOTAL
                     EDM=   .29E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.6911        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .33484        1.5749       -.70314E-05   -.69275    
   3  Normalizat    .89313        1.2288        .55933E-06   -.96702    
   4  Prefactor     .85863        1.2054       -.45649E-06   -.97602    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.8849e-14
Minuit parameter uncertainties:
  1  2.55759e-07
  2  0.979826
  3  1.27089
  4  1.24604
/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
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

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).

Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 14793.5828044
delta logL = 1.06683728518e-08

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  0.000e+00  2.558e-07  0.000e+00  1.000e+06 ( 1.000e-14)
297        Index:  1.807e+00  9.798e-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.586e-01  1.246e+00  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:  8.931e-01  1.271e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 235.799 42.155

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/19660813/cmap_HighResolution_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e-03', job_status='DONE', photon_flux_upper_limit='2.04e-08', time_completed='2023-07-18 01:48:25.073226', job_id='19660813', GAL2='0.86', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1689670105.07', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.07e-08', ts2='0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='780' AND source_name='4FGL J1543.1+4209' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:48:26 PDT 2023

/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).

Done.

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

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  1.244e-07  1.705e-03  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.586e-01  1.017e-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:  8.931e-01  1.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/19661272/likelihoodResults_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.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) = 14793.6671796
delta logL = -0.0843751785251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14793.5828044
delta logL = -5.45696821064e-11

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19873E-07   1.0000          .0000       .10000E+07
     2 'Index     '    2.0578       1.0000          .0000       10.000    
     3 'Normalizat'    .89312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85865       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14793.58     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      187 TOTAL
                     EDM=   .29E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.6911        .42118E-03** at limit **
   2  Index         1.8067        .96927       -.70314E-05     .0000    
   3  Normalizat    .89313        1.2288        .55933E-06   -.82634E-05
   4  Prefactor     .85863        1.2054       -.45649E-06   -.45614E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.80673
  Normalizat = 0.893134
  Prefactor  = 0.858631
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14793.58     FROM HESSE     STATUS=FAILED         9 CALLS      196 TOTAL
                     EDM=   .29E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.6911        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .33484        1.5749       -.70314E-05   -.69275    
   3  Normalizat    .89313        1.2288        .55933E-06   -.96702    
   4  Prefactor     .85863        1.2054       -.45649E-06   -.97602    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.8849e-14
Minuit parameter uncertainties:
  1  2.55759e-07
  2  0.979826
  3  1.27089
  4  1.24604
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) = 14793.5828044
delta logL = 1.06683728518e-08

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  0.000e+00  2.558e-07  0.000e+00  1.000e+06 ( 1.000e-14)
297        Index:  1.807e+00  9.798e-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.586e-01  1.246e+00  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:  8.931e-01  1.271e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 235.799 42.155

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/19661272/cmap_HighResolution_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e-03', job_status='DONE', photon_flux_upper_limit='2.04e-08', time_completed='2023-07-18 01:49:37.599912', job_id='19661272', GAL2='0.86', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1689670177.6', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.07e-08', ts2='0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='780' AND source_name='4FGL J1543.1+4209' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:49:38 PDT 2023

number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1543.1+4209_weekly_bin780
RA = 235.799, Dec = 42.1549
tmin = 710726401, tmax = 711331201
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='19662619', job_status='RUN', time_executed='2023-07-18 01:40:27.603038', time_epoch_executed='1689669627.6' WHERE source_name='4FGL J1543.1+4209' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19662619

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19662619/ft1_4FGL_J1543.1+4209_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19662619/ft2_4FGL_J1543.1+4209_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19662619/ft1_4FGL_J1543.1+4209_weekly_bin780.fits outfile=/lscratch/kocevski/19662619/ft1_filteredMKT_4FGL_J1543.1+4209_weekly_bin780.fits ra=235.799 dec=42.1549 rad=12.0 tmin=710726401.0 tmax=711331201.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.42
user 3.52
sys 0.22

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

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

Number of photons that the gtmktime cut: 1383

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19662619/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19662619/ft2_4FGL_J1543.1+4209_weekly_bin780.fits sctable="SC_DATA" Done.


Performing analysis on: 4FGL_J1543.1+4209_weekly_bin780
RA = 235.799, Dec = 42.1549
tmin = 710726401, tmax = 711331201
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='19662629', job_status='RUN', time_executed='2023-07-18 01:40:31.817734', time_epoch_executed='1689669631.82' WHERE source_name='4FGL J1543.1+4209' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19662629

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19662629/ft1_4FGL_J1543.1+4209_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19662629/ft2_4FGL_J1543.1+4209_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19662629/ft1_4FGL_J1543.1+4209_weekly_bin780.fits outfile=/lscratch/kocevski/19662629/ft1_filteredMKT_4FGL_J1543.1+4209_weekly_bin780.fits ra=235.799 dec=42.1549 rad=12.0 tmin=710726401.0 tmax=711331201.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.47
user 3.45
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19662629/ft2_4FGL_J1543.1+4209_weekly_bin780.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/19662629/ft1_filteredMKT_4FGL_J1543.1+4209_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19662629/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.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 1.18
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 1383

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19662629/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19662629/ft2_4FGL_J1543.1+4209_weekly_bin780.fits sctable="SC_DATA"outfile=/lscratch/kocevski/19662619/ltcube_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.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/19662619/ft2_4FGL_J1543.1+4209_weekly_bin780.fits
.....................!
real 15.77
user 14.74
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19662619/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19662619/ft2_4FGL_J1543.1+4209_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19662619/ltcube_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.fits outfile=/lscratch/kocevski/19662619/expmap_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.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/19662619/ltcube_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.fits
.....................!
real 59.90
user 55.55
sys 3.35

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/19662619/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits scfile=/lscratch/kocevski/19662619/ft2_4FGL_J1543.1+4209_weekly_bin780.fits outfile=/lscratch/kocevski/19662619/cmap_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.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.97
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19662619/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits scfile=/lscratch/kocevski/19662619/ft2_4FGL_J1543.1+4209_weekly_bin780.fits outfile=/lscratch/kocevski/19662619/cmap_HighResolution_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.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.93
user 0.20
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19662619/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19662619/ft2_4FGL_J1543.1+4209_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19662619/Model_4FGL_J1543.1+4209_weekly_bin780.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 outfile=/lscratch/kocevski/19662629/ltcube_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.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/19662629/ft2_4FGL_J1543.1+4209_weekly_bin780.fits
.....................!
real 15.44
user 14.49
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19662629/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19662629/ft2_4FGL_J1543.1+4209_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19662629/ltcube_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.fits outfile=/lscratch/kocevski/19662629/expmap_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.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/19662629/ltcube_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.fits
.....................!
real 60.38
user 55.75
sys 3.64

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/19662629/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits scfile=/lscratch/kocevski/19662629/ft2_4FGL_J1543.1+4209_weekly_bin780.fits outfile=/lscratch/kocevski/19662629/cmap_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.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.94
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19662629/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits scfile=/lscratch/kocevski/19662629/ft2_4FGL_J1543.1+4209_weekly_bin780.fits outfile=/lscratch/kocevski/19662629/cmap_HighResolution_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.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 1.15
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19662629/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19662629/ft2_4FGL_J1543.1+4209_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19662629/Model_4FGL_J1543.1+4209_weekly_bin780.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 sourc GAL_V02
Working on...
/lscratch/kocevski/19662619/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits.....................!
real 34.63
user 32.67
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19662619/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits', '/lscratch/kocevski/19662619/ft2_4FGL_J1543.1+4209_weekly_bin780.fits', expMap='/lscratch/kocevski/19662619/expmap_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.fits', expCube='/lscratch/kocevski/19662619/ltcube_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19662619/Model_4FGL_J1543.1+4209_weekly_bin780.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/19662619/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19662619/ft2_4FGL_J1543.1+4209_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19662619/expmap_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19662619/ltcube_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19662619/Model_4FGL_J1543.1+4209_weekly_bin780.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) = 14793.585109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.931       1.0000          .0000       .10000E+07
     2 'Prefactor '    .35237E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6485       1.0000          .0000       .10000E+07
     4 'norm      '    2.6212       1.0000          .0000       .10000E+07
     5 'norm      '    .52724E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .42892E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .13595E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .25577E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.2029       1.0000          .0000       .10000E+07
    10 'norm      '    .94446       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.6764       1.0000          .0000       .10000E+07
    12 'norm      '    .58471E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .69117E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    25.500       1.0000          .0000       .10000E+07
    15 'Prefactor '    .18163       1.0000          .0000       .10000E+07
    16 'Prefactor '    .62140E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10977E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.9627       1.0000          .0000       .10000E+07
    19 'Prefactor '    .29249E-06   1.0000          .0000       .10000E+07
    20 'norm      '    .36174E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .38189E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .13164E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .23598E-06   1.0000          .0000       .10000E+07
    24 'norm      '    7.2431       1.0000          .0000       .10000E+07
    25 'Prefactor '    .57696E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    13.167       1.0000          .0000       .10000E+07
    27 'Normalizat'    .89314       1.0000         .e GAL_V02
Working on...
/lscratch/kocevski/19662629/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits.....................!
real 34.19
user 32.37
sys 0.91

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19662629/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits', '/lscratch/kocevski/19662629/ft2_4FGL_J1543.1+4209_weekly_bin780.fits', expMap='/lscratch/kocevski/19662629/expmap_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.fits', expCube='/lscratch/kocevski/19662629/ltcube_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19662629/Model_4FGL_J1543.1+4209_weekly_bin780.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/19662629/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19662629/ft2_4FGL_J1543.1+4209_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19662629/expmap_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19662629/ltcube_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19662629/Model_4FGL_J1543.1+4209_weekly_bin780.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) = 14793.585109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.931       1.0000          .0000       .10000E+07
     2 'Prefactor '    .35237E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6485       1.0000          .0000       .10000E+07
     4 'norm      '    2.6212       1.0000          .0000       .10000E+07
     5 'norm      '    .52724E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .42892E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .13595E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .25577E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.2029       1.0000          .0000       .10000E+07
    10 'norm      '    .94446       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.6764       1.0000          .0000       .10000E+07
    12 'norm      '    .58471E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .69117E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    25.500       1.0000          .0000       .10000E+07
    15 'Prefactor '    .18163       1.0000          .0000       .10000E+07
    16 'Prefactor '    .62140E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10977E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.9627       1.0000          .0000       .10000E+07
    19 'Prefactor '    .29249E-06   1.0000          .0000       .10000E+07
    20 'norm      '    .36174E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .38189E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .13164E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .23598E-06   1.0000          .0000       .10000E+07
    24 'norm      '    7.2431       1.0000          .0000       .10000E+07
    25 'Prefactor '    .57696E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    13.167       1.0000          .0000       .10000E+07
    27 'Normalizat'    .89314       1.0000         10000E-01   10.000    
    28 'Prefactor '    .85862       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=   14793.58     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     2600 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.943        1.5274       -.76516E-08    .16151    
   2  Prefactor     .55511E-10    2.7294       -.37703E-07** at limit **
   3  Prefactor     1.6484        1.7033        .68231E-08    .48583E-03
   4  norm          2.6213        .97198        .59298E-08    .73938E-03
   5  norm           .0000        .77143       -.48644E-08** at limit **
   6  Prefactor      .0000        1.6446       -.26791E-07** at limit **
   7  Prefactor     .11657E-07    23.851       -.33098E-06** at limit **
   8  Prefactor     .64171E-07    3.7563       -.14571E-07** at limit **
   9  Prefactor     1.2212        6.8051       -.27749E-07   -.37509E-03
  10  norm          .94467        .76353       -.48075E-08   -.51478E-02
  11  Prefactor     2.6753        5.9573        .32574E-08    .31969E-03
  12  norm          .33307E-08    13.658        .68230E-08** at limit **
  13  Prefactor     .12440E-06    2.3527       -.30626E-07** at limit **
  14  Prefactor     25.460        1.2511        .24208E-08   -.28865E-01
  15  Prefactor     .18020        4.0513        .64323E-07** at limit **
  16  Prefactor      .0000        1.0795        .28572E-07** at limit **
  17  Prefactor     .99920E-09    53.706       -.71117E-06** at limit **
  18  Prefactor     1.9597        3.9924       -.15000E-07   -.56457E-03
  19  Prefactor      .0000        .40785       -.18226E-07** at limit **
  20  norm          .36179E-01    .41467E-01   -.21020E-09** at limit **
  21  norm           .0000        2.1979       -.53918E-08** at limit **
  22  Prefactor     .12101E-07    5.3914       -.33973E-07** at limit **
  23  Prefactor      .0000        .57780        .19265E-07** at limit **
  24  norm          7.2290        1.0145       -.20909E-08    .97875E-02
  25  Prefactor      .0000        1.0062       -.72636E-08** at limit **
  26  Prefactor     13.167        1.3232       -.60782E-08   -.15660E-01
  27  Normalizat    .89313        .12108       -.92001E-06   -.42588E-03
  28  Prefactor     .85863        .12057        .37077E-06   -.30080E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.9431
  Prefactor  = 5.55112e-11
  Prefactor  = 1.64839
  norm       = 2.62126
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.16573e-08
  Prefactor  = 6.41709e-08
  Prefactor  = 1.22116
  norm       = 0.944666
  Prefactor  = 2.67527
  norm       = 3.33067e-09
  Prefactor  = 1.244e-07
  Prefactor  = 25.4603
  Prefactor  = 0.180198
  Prefactor  = 0
  Prefactor  = 9.99201e-10
  Prefactor  = 1.95975
  Prefactor  = 0
  norm       = 0.0361787
  norm       = 0
  Prefactor  = 1.21014e-08
  Prefactor  = 0
  norm       = 7.22904
  Prefactor  = 0
  Prefactor  = 13.1669
  Normalizat = 0.893133
  Prefactor  = 0.858631
.10000E-01   10.000    
    28 'Prefactor '    .85862       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=   14793.58     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     2600 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.943        1.5274       -.76516E-08    .16151    
   2  Prefactor     .55511E-10    2.7294       -.37703E-07** at limit **
   3  Prefactor     1.6484        1.7033        .68231E-08    .48583E-03
   4  norm          2.6213        .97198        .59298E-08    .73938E-03
   5  norm           .0000        .77143       -.48644E-08** at limit **
   6  Prefactor      .0000        1.6446       -.26791E-07** at limit **
   7  Prefactor     .11657E-07    23.851       -.33098E-06** at limit **
   8  Prefactor     .64171E-07    3.7563       -.14571E-07** at limit **
   9  Prefactor     1.2212        6.8051       -.27749E-07   -.37509E-03
  10  norm          .94467        .76353       -.48075E-08   -.51478E-02
  11  Prefactor     2.6753        5.9573        .32574E-08    .31969E-03
  12  norm          .33307E-08    13.658        .68230E-08** at limit **
  13  Prefactor     .12440E-06    2.3527       -.30626E-07** at limit **
  14  Prefactor     25.460        1.2511        .24208E-08   -.28865E-01
  15  Prefactor     .18020        4.0513        .64323E-07** at limit **
  16  Prefactor      .0000        1.0795        .28572E-07** at limit **
  17  Prefactor     .99920E-09    53.706       -.71117E-06** at limit **
  18  Prefactor     1.9597        3.9924       -.15000E-07   -.56457E-03
  19  Prefactor      .0000        .40785       -.18226E-07** at limit **
  20  norm          .36179E-01    .41467E-01   -.21020E-09** at limit **
  21  norm           .0000        2.1979       -.53918E-08** at limit **
  22  Prefactor     .12101E-07    5.3914       -.33973E-07** at limit **
  23  Prefactor      .0000        .57780        .19265E-07** at limit **
  24  norm          7.2290        1.0145       -.20909E-08    .97875E-02
  25  Prefactor      .0000        1.0062       -.72636E-08** at limit **
  26  Prefactor     13.167        1.3232       -.60782E-08   -.15660E-01
  27  Normalizat    .89313        .12108       -.92001E-06   -.42588E-03
  28  Prefactor     .85863        .12057        .37077E-06   -.30080E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.9431
  Prefactor  = 5.55112e-11
  Prefactor  = 1.64839
  norm       = 2.62126
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.16573e-08
  Prefactor  = 6.41709e-08
  Prefactor  = 1.22116
  norm       = 0.944666
  Prefactor  = 2.67527
  norm       = 3.33067e-09
  Prefactor  = 1.244e-07
  Prefactor  = 25.4603
  Prefactor  = 0.180198
  Prefactor  = 0
  Prefactor  = 9.99201e-10
  Prefactor  = 1.95975
  Prefactor  = 0
  norm       = 0.0361787
  norm       = 0
  Prefactor  = 1.21014e-08
  Prefactor  = 0
  norm       = 7.22904
  Prefactor  = 0
  Prefactor  = 13.1669
  Normalizat = 0.893133
  Prefactor  = 0.858631
 **********
 **   18 **HESSE 
 **********

 FCN=   14793.58     FROM HESSE     STATUS=OK           583 CALLS     3183 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.943        14.541        .17428E-03   -1.5593    
   2  Prefactor     .55511E-10    2.7206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6484        1.6980        .82213E-03   -1.5682    
   4  norm          2.6213        .98495        .62968E-03   -1.5676    
   5  norm           .0000        .77057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.6442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11657E-07    23.890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .64171E-07    5.8926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2212        6.7275        .10338E-02   -1.5686    
  10  norm          .94467        .78425        .42733E-03   -1.5689    
  11  Prefactor     2.6753        6.1070        .62264E-03   -1.5675    
  12  norm          .33307E-08    13.453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12440E-06    5.8402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.460        33.749        .19807E-03   -1.5607    
  15  Prefactor     .18020        .67942        .57486E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.0934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .99920E-09    52.345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.9597        4.1357        .74007E-03   -1.5680    
  19  Prefactor      .0000        .40794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .36179E-01    .52790E-01    .58442E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        2.2012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .12101E-07    5.5944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        .57562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.2290        15.067        .37246E-03   -1.5654    
  25  Prefactor      .0000        .39162        .23293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     13.167        1.4702        .27579E-03   -1.5635    
  27  Normalizat    .89313        .10276        .44814E-01   -.96702    
  28  Prefactor     .85863        .10164        .44475E-01   -.97602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63836e-06
Minuit parameter uncertainties:
  1  14.5407
  2  2.07105e-05
  3  1.69797
  4  0.984952
  5  8.55073e-07
  6  1.05601e-05
  7  0.00105591
  8  0.00123012
  9  5.73247
  10  0.78425
  11  6.10706
  12  0.000422685
  13  0.00170463
  14  33.7492
  15  0.67942
  16  6.62967e-06
  17  0.0004512
  18  4.13571
  19  2.90552e-06
  20  0.0527901
  21  8.28369e-06
  22  0.000520073
  23  3.7694e-06
  24  15.0672
  25  1.90296e-07
  26  1.47024
  27  0.102778
  28  0.101666
 **********
 **   18 **HESSE 
 **********

 FCN=   14793.58     FROM HESSE     STATUS=OK           583 CALLS     3183 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.943        14.541        .17428E-03   -1.5593    
   2  Prefactor     .55511E-10    2.7206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6484        1.6980        .82213E-03   -1.5682    
   4  norm          2.6213        .98495        .62968E-03   -1.5676    
   5  norm           .0000        .77057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.6442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11657E-07    23.890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .64171E-07    5.8926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2212        6.7275        .10338E-02   -1.5686    
  10  norm          .94467        .78425        .42733E-03   -1.5689    
  11  Prefactor     2.6753        6.1070        .62264E-03   -1.5675    
  12  norm          .33307E-08    13.453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12440E-06    5.8402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.460        33.749        .19807E-03   -1.5607    
  15  Prefactor     .18020        .67942        .57486E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.0934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .99920E-09    52.345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.9597        4.1357        .74007E-03   -1.5680    
  19  Prefactor      .0000        .40794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .36179E-01    .52790E-01    .58442E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        2.2012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .12101E-07    5.5944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        .57562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.2290        15.067        .37246E-03   -1.5654    
  25  Prefactor      .0000        .39162        .23293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     13.167        1.4702        .27579E-03   -1.5635    
  27  Normalizat    .89313        .10276        .44814E-01   -.96702    
  28  Prefactor     .85863        .10164        .44475E-01   -.97602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63836e-06
Minuit parameter uncertainties:
  1  14.5407
  2  2.07105e-05
  3  1.69797
  4  0.984952
  5  8.55073e-07
  6  1.05601e-05
  7  0.00105591
  8  0.00123012
  9  5.73247
  10  0.78425
  11  6.10706
  12  0.000422685
  13  0.00170463
  14  33.7492
  15  0.67942
  16  6.62967e-06
  17  0.0004512
  18  4.13571
  19  2.90552e-06
  20  0.0527901
  21  8.28369e-06
  22  0.000520073
  23  3.7694e-06
  24  15.0672
  25  1.90296e-07
  26  1.47024
  27  0.102778
  28  0.101666
number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1543.1+4209_weekly_bin780
RA = 235.799, Dec = 42.1549
tmin = 710726401, tmax = 711331201
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='19664124', job_status='RUN', time_executed='2023-07-18 01:48:33.893443', time_epoch_executed='1689670113.89' WHERE source_name='4FGL J1543.1+4209' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19664124

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19664124/ft1_4FGL_J1543.1+4209_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19664124/ft2_4FGL_J1543.1+4209_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19664124/ft1_4FGL_J1543.1+4209_weekly_bin780.fits outfile=/lscratch/kocevski/19664124/ft1_filteredMKT_4FGL_J1543.1+4209_weekly_bin780.fits ra=235.799 dec=42.1549 rad=12.0 tmin=710726401.0 tmax=711331201.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.65
user 3.67
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19664124/ft2_4FGL_J1543.1+4209_weekly_bin780.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/19664124/ft1_filteredMKT_4FGL_J1543.1+4209_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19664124/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.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 1.06
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 1383

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19664124/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19664124/ft2_4FGL_J1543.1+4209_weekly_bin780.fits sctable="SC_DATA"Done.

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

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  1.244e-07  1.705e-03  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.586e-01  1.017e-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:  8.931e-01  1.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/19662619/likelihoodResults_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.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) = 14793.6671796
delta logL = -0.0843751785251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14793.5828044
delta logL = -5.45696821064e-11

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19873E-07   1.0000          .0000       .10000E+07
     2 'Index     '    2.0578       1.0000          .0000       10.000    
     3 'Normalizat'    .89312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85865       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14793.58     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      187 TOTAL
                     EDM=   .29E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.6911        .42118E-03** at limit **
   2  Index         1.8067        .96927       -.70314E-05     .0000    
   3  Normalizat    .89313        1.2288        .55933E-06   -.82634E-05
   4  Prefactor     .85863        1.2054       -.45649E-06   -.45614E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.80673
  Normalizat = 0.893134
  Prefactor  = 0.858631
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14793.58     FROM HESSE     STATUS=FAILED         9 CALLS      196 TOTAL
                     EDM=   .29E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.6911        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .33484        1.5749       -.70314E-05   -.69275    
   3  Normalizat    .89313        1.2288        .55933E-06   -.96702    
   4  Prefactor     .85863        1.2054       -.45649E-06   -.97602    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.8849e-14
Minuit parameter uncertainties:
  1  2.55759e-07
  2  0.979826
  3  1.27089
  4  1.24604
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) = 14793.5828044
delta logL = 1.06683728518e-08

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  0.000e+00  2.558e-07  0.000e+00  1.000e+06 ( 1.000e-14)
297        Index:  1.807e+00  9.798e-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.586e-01  1.246e+00  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:  8.931e-01  1.271e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 235.799 42.155

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/19662619/cmap_HighResolution_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e-03', job_status='DONE', photon_flux_upper_limit='2.04e-08', time_completed='2023-07-18 01:59:00.516110', job_id='19662619', GAL2='0.86', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1689670740.52', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.07e-08', ts2='0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='780' AND source_name='4FGL J1543.1+4209' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:59:01 PDT 2023

Done.

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

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  1.244e-07  1.705e-03  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.586e-01  1.017e-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:  8.931e-01  1.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/19662629/likelihoodResults_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.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) = 14793.6671796
delta logL = -0.0843751785251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14793.5828044
delta logL = -5.45696821064e-11

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19873E-07   1.0000          .0000       .10000E+07
     2 'Index     '    2.0578       1.0000          .0000       10.000    
     3 'Normalizat'    .89312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85865       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14793.58     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      187 TOTAL
                     EDM=   .29E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.6911        .42118E-03** at limit **
   2  Index         1.8067        .96927       -.70314E-05     .0000    
   3  Normalizat    .89313        1.2288        .55933E-06   -.82634E-05
   4  Prefactor     .85863        1.2054       -.45649E-06   -.45614E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.80673
  Normalizat = 0.893134
  Prefactor  = 0.858631
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14793.58     FROM HESSE     STATUS=FAILED         9 CALLS      196 TOTAL
                     EDM=   .29E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.6911        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .33484        1.5749       -.70314E-05   -.69275    
   3  Normalizat    .89313        1.2288        .55933E-06   -.96702    
   4  Prefactor     .85863        1.2054       -.45649E-06   -.97602    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.8849e-14
Minuit parameter uncertainties:
  1  2.55759e-07
  2  0.979826
  3  1.27089
  4  1.24604
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) = 14793.5828044
delta logL = 1.06683728518e-08

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  0.000e+00  2.558e-07  0.000e+00  1.000e+06 ( 1.000e-14)
297        Index:  1.807e+00  9.798e-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.586e-01  1.246e+00  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:  8.931e-01  1.271e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 235.799 42.155

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/19662629/cmap_HighResolution_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e-03', job_status='DONE', photon_flux_upper_limit='2.04e-08', time_completed='2023-07-18 01:59:07.643821', job_id='19662629', GAL2='0.86', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1689670747.64', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.07e-08', ts2='0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='780' AND source_name='4FGL J1543.1+4209' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:59:08 PDT 2023

 outfile=/lscratch/kocevski/19664124/ltcube_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.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/19664124/ft2_4FGL_J1543.1+4209_weekly_bin780.fits
.....................!
real 16.52
user 15.53
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19664124/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19664124/ft2_4FGL_J1543.1+4209_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19664124/ltcube_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.fits outfile=/lscratch/kocevski/19664124/expmap_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.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/19664124/ltcube_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.fits
.....................!
real 63.92
user 59.23
sys 3.63

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/19664124/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits scfile=/lscratch/kocevski/19664124/ft2_4FGL_J1543.1+4209_weekly_bin780.fits outfile=/lscratch/kocevski/19664124/cmap_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.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 1.16
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19664124/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits scfile=/lscratch/kocevski/19664124/ft2_4FGL_J1543.1+4209_weekly_bin780.fits outfile=/lscratch/kocevski/19664124/cmap_HighResolution_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.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 1.02
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19664124/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19664124/ft2_4FGL_J1543.1+4209_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19664124/Model_4FGL_J1543.1+4209_weekly_bin780.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/19664124/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits.....................!
real 36.78
user 34.64
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19664124/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits', '/lscratch/kocevski/19664124/ft2_4FGL_J1543.1+4209_weekly_bin780.fits', expMap='/lscratch/kocevski/19664124/expmap_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.fits', expCube='/lscratch/kocevski/19664124/ltcube_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19664124/Model_4FGL_J1543.1+4209_weekly_bin780.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/19664124/ft1_filtered_4FGL_J1543.1+4209_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19664124/ft2_4FGL_J1543.1+4209_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19664124/expmap_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19664124/ltcube_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19664124/Model_4FGL_J1543.1+4209_weekly_bin780.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) = 14793.585109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.931       1.0000          .0000       .10000E+07
     2 'Prefactor '    .35237E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6485       1.0000          .0000       .10000E+07
     4 'norm      '    2.6212       1.0000          .0000       .10000E+07
     5 'norm      '    .52724E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .42892E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .13595E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .25577E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.2029       1.0000          .0000       .10000E+07
    10 'norm      '    .94446       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.6764       1.0000          .0000       .10000E+07
    12 'norm      '    .58471E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .69117E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    25.500       1.0000          .0000       .10000E+07
    15 'Prefactor '    .18163       1.0000          .0000       .10000E+07
    16 'Prefactor '    .62140E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10977E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.9627       1.0000          .0000       .10000E+07
    19 'Prefactor '    .29249E-06   1.0000          .0000       .10000E+07
    20 'norm      '    .36174E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .38189E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .13164E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .23598E-06   1.0000          .0000       .10000E+07
    24 'norm      '    7.2431       1.0000          .0000       .10000E+07
    25 'Prefactor '    .57696E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    13.167       1.0000          .0000       .10000E+07
    27 'Normalizat'    .89314       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .85862       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=   14793.58     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     2600 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.943        1.5274       -.76516E-08    .16151    
   2  Prefactor     .55511E-10    2.7294       -.37703E-07** at limit **
   3  Prefactor     1.6484        1.7033        .68231E-08    .48583E-03
   4  norm          2.6213        .97198        .59298E-08    .73938E-03
   5  norm           .0000        .77143       -.48644E-08** at limit **
   6  Prefactor      .0000        1.6446       -.26791E-07** at limit **
   7  Prefactor     .11657E-07    23.851       -.33098E-06** at limit **
   8  Prefactor     .64171E-07    3.7563       -.14571E-07** at limit **
   9  Prefactor     1.2212        6.8051       -.27749E-07   -.37509E-03
  10  norm          .94467        .76353       -.48075E-08   -.51478E-02
  11  Prefactor     2.6753        5.9573        .32574E-08    .31969E-03
  12  norm          .33307E-08    13.658        .68230E-08** at limit **
  13  Prefactor     .12440E-06    2.3527       -.30626E-07** at limit **
  14  Prefactor     25.460        1.2511        .24208E-08   -.28865E-01
  15  Prefactor     .18020        4.0513        .64323E-07** at limit **
  16  Prefactor      .0000        1.0795        .28572E-07** at limit **
  17  Prefactor     .99920E-09    53.706       -.71117E-06** at limit **
  18  Prefactor     1.9597        3.9924       -.15000E-07   -.56457E-03
  19  Prefactor      .0000        .40785       -.18226E-07** at limit **
  20  norm          .36179E-01    .41467E-01   -.21020E-09** at limit **
  21  norm           .0000        2.1979       -.53918E-08** at limit **
  22  Prefactor     .12101E-07    5.3914       -.33973E-07** at limit **
  23  Prefactor      .0000        .57780        .19265E-07** at limit **
  24  norm          7.2290        1.0145       -.20909E-08    .97875E-02
  25  Prefactor      .0000        1.0062       -.72636E-08** at limit **
  26  Prefactor     13.167        1.3232       -.60782E-08   -.15660E-01
  27  Normalizat    .89313        .12108       -.92001E-06   -.42588E-03
  28  Prefactor     .85863        .12057        .37077E-06   -.30080E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.9431
  Prefactor  = 5.55112e-11
  Prefactor  = 1.64839
  norm       = 2.62126
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.16573e-08
  Prefactor  = 6.41709e-08
  Prefactor  = 1.22116
  norm       = 0.944666
  Prefactor  = 2.67527
  norm       = 3.33067e-09
  Prefactor  = 1.244e-07
  Prefactor  = 25.4603
  Prefactor  = 0.180198
  Prefactor  = 0
  Prefactor  = 9.99201e-10
  Prefactor  = 1.95975
  Prefactor  = 0
  norm       = 0.0361787
  norm       = 0
  Prefactor  = 1.21014e-08
  Prefactor  = 0
  norm       = 7.22904
  Prefactor  = 0
  Prefactor  = 13.1669
  Normalizat = 0.893133
  Prefactor  = 0.858631
 **********
 **   18 **HESSE 
 **********

 FCN=   14793.58     FROM HESSE     STATUS=OK           583 CALLS     3183 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.943        14.541        .17428E-03   -1.5593    
   2  Prefactor     .55511E-10    2.7206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6484        1.6980        .82213E-03   -1.5682    
   4  norm          2.6213        .98495        .62968E-03   -1.5676    
   5  norm           .0000        .77057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.6442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11657E-07    23.890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .64171E-07    5.8926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2212        6.7275        .10338E-02   -1.5686    
  10  norm          .94467        .78425        .42733E-03   -1.5689    
  11  Prefactor     2.6753        6.1070        .62264E-03   -1.5675    
  12  norm          .33307E-08    13.453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12440E-06    5.8402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.460        33.749        .19807E-03   -1.5607    
  15  Prefactor     .18020        .67942        .57486E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.0934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .99920E-09    52.345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.9597        4.1357        .74007E-03   -1.5680    
  19  Prefactor      .0000        .40794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .36179E-01    .52790E-01    .58442E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        2.2012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .12101E-07    5.5944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        .57562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.2290        15.067        .37246E-03   -1.5654    
  25  Prefactor      .0000        .39162        .23293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     13.167        1.4702        .27579E-03   -1.5635    
  27  Normalizat    .89313        .10276        .44814E-01   -.96702    
  28  Prefactor     .85863        .10164        .44475E-01   -.97602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63836e-06
Minuit parameter uncertainties:
  1  14.5407
  2  2.07105e-05
  3  1.69797
  4  0.984952
  5  8.55073e-07
  6  1.05601e-05
  7  0.00105591
  8  0.00123012
  9  5.73247
  10  0.78425
  11  6.10706
  12  0.000422685
  13  0.00170463
  14  33.7492
  15  0.67942
  16  6.62967e-06
  17  0.0004512
  18  4.13571
  19  2.90552e-06
  20  0.0527901
  21  8.28369e-06
  22  0.000520073
  23  3.7694e-06
  24  15.0672
  25  1.90296e-07
  26  1.47024
  27  0.102778
  28  0.101666
Done.

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

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  1.244e-07  1.705e-03  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.586e-01  1.017e-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:  8.931e-01  1.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/19664124/likelihoodResults_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.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) = 14793.6671796
delta logL = -0.0843751785251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14793.5828044
delta logL = -5.45696821064e-11

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19873E-07   1.0000          .0000       .10000E+07
     2 'Index     '    2.0578       1.0000          .0000       10.000    
     3 'Normalizat'    .89312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85865       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14793.58     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      187 TOTAL
                     EDM=   .29E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.6911        .42118E-03** at limit **
   2  Index         1.8067        .96927       -.70314E-05     .0000    
   3  Normalizat    .89313        1.2288        .55933E-06   -.82634E-05
   4  Prefactor     .85863        1.2054       -.45649E-06   -.45614E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.80673
  Normalizat = 0.893134
  Prefactor  = 0.858631
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14793.58     FROM HESSE     STATUS=FAILED         9 CALLS      196 TOTAL
                     EDM=   .29E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.6911        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .33484        1.5749       -.70314E-05   -.69275    
   3  Normalizat    .89313        1.2288        .55933E-06   -.96702    
   4  Prefactor     .85863        1.2054       -.45649E-06   -.97602    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.8849e-14
Minuit parameter uncertainties:
  1  2.55759e-07
  2  0.979826
  3  1.27089
  4  1.24604
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) = 14793.5828044
delta logL = 1.06683728518e-08

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  0.000e+00  2.558e-07  0.000e+00  1.000e+06 ( 1.000e-14)
297        Index:  1.807e+00  9.798e-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.586e-01  1.246e+00  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:  8.931e-01  1.271e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 235.799 42.155

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/19664124/cmap_HighResolution_710726401_711331201_4FGL_J1543.1+4209_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e-03', job_status='DONE', photon_flux_upper_limit='2.04e-08', time_completed='2023-07-18 02:06:49.657397', job_id='19664124', GAL2='0.86', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1689671209.66', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.07e-08', ts2='0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='780' AND source_name='4FGL J1543.1+4209' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:06:50 PDT 2023

