/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

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


Performing analysis on: 4FGL_J1432.2+5051_weekly_bin802
RA = 218.068, Dec = 50.8596
tmin = 724032001, tmax = 724636801
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='36606772', job_status='RUN', time_executed='2023-12-19 00:55:53.963224', time_epoch_executed='1702976153.96' WHERE source_name='4FGL J1432.2+5051' and cadence='weekly' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36606772

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36606772/ft1_4FGL_J1432.2+5051_weekly_bin802.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36606772/ft2_4FGL_J1432.2+5051_weekly_bin802.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36606772/ft1_4FGL_J1432.2+5051_weekly_bin802.fits outfile=/lscratch/kocevski/36606772/ft1_filteredMKT_4FGL_J1432.2+5051_weekly_bin802.fits ra=218.068 dec=50.8596 rad=12.0 tmin=724032001.0 tmax=724636801.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.60
user 4.30
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36606772/ft2_4FGL_J1432.2+5051_weekly_bin802.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36606772/ft2_4FGL_J1432.2+5051_weekly_bin802.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/36606772/ft1_filteredMKT_4FGL_J1432.2+5051_weekly_bin802.fits evtable="EVENTS" outfile="/lscratch/kocevski/36606772/ft1_filtered_4FGL_J1432.2+5051_weekly_bin802.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.38
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 1393

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36606772/ft1_filtered_4FGL_J1432.2+5051_weekly_bin802.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36606772/ft2_4FGL_J1432.2+5051_weekly_bin802.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36606772/ltcube_724032001_724636801_4FGL_J1432.2+5051_weekly_bin802.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/36606772/ft2_4FGL_J1432.2+5051_weekly_bin802.fits
.....................!
real 18.92
user 18.59
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36606772/ft1_filtered_4FGL_J1432.2+5051_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36606772/ft2_4FGL_J1432.2+5051_weekly_bin802.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36606772/ltcube_724032001_724636801_4FGL_J1432.2+5051_weekly_bin802.fits outfile=/lscratch/kocevski/36606772/expmap_724032001_724636801_4FGL_J1432.2+5051_weekly_bin802.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/36606772/ltcube_724032001_724636801_4FGL_J1432.2+5051_weekly_bin802.fits
.....................!
real 71.78
user 67.56
sys 3.93

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

Setting source of interest to:
4FGL J1432.2+5051 @ 218.068 50.8596

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36606772/ft1_filtered_4FGL_J1432.2+5051_weekly_bin802.fits scfile=/lscratch/kocevski/36606772/ft2_4FGL_J1432.2+5051_weekly_bin802.fits outfile=/lscratch/kocevski/36606772/cmap_724032001_724636801_4FGL_J1432.2+5051_weekly_bin802.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=218.068 yref=50.8596 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.40
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36606772/ft1_filtered_4FGL_J1432.2+5051_weekly_bin802.fits scfile=/lscratch/kocevski/36606772/ft2_4FGL_J1432.2+5051_weekly_bin802.fits outfile=/lscratch/kocevski/36606772/cmap_HighResolution_724032001_724636801_4FGL_J1432.2+5051_weekly_bin802.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=218.068 yref=50.8596 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.62
user 0.25
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36606772/ft1_filtered_4FGL_J1432.2+5051_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36606772/ft2_4FGL_J1432.2+5051_weekly_bin802.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36606772/Model_4FGL_J1432.2+5051_weekly_bin802.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/36606772/ft1_filtered_4FGL_J1432.2+5051_weekly_bin802.fits.....................!
real 44.53
user 43.17
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36606772/ft1_filtered_4FGL_J1432.2+5051_weekly_bin802.fits', '/lscratch/kocevski/36606772/ft2_4FGL_J1432.2+5051_weekly_bin802.fits', expMap='/lscratch/kocevski/36606772/expmap_724032001_724636801_4FGL_J1432.2+5051_weekly_bin802.fits', expCube='/lscratch/kocevski/36606772/ltcube_724032001_724636801_4FGL_J1432.2+5051_weekly_bin802.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36606772/Model_4FGL_J1432.2+5051_weekly_bin802.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1432.2+5051'

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  5.285e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
320        Index:  2.240e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  1.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36606772/ft1_filtered_4FGL_J1432.2+5051_weekly_bin802.fits
Spacecraft file(s): /lscratch/kocevski/36606772/ft2_4FGL_J1432.2+5051_weekly_bin802.fits
Exposure map: /lscratch/kocevski/36606772/expmap_724032001_724636801_4FGL_J1432.2+5051_weekly_bin802.fits
Exposure cube: /lscratch/kocevski/36606772/ltcube_724032001_724636801_4FGL_J1432.2+5051_weekly_bin802.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36606772/Model_4FGL_J1432.2+5051_weekly_bin802.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 15148.6221873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26031E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    31.011       1.0000          .0000       .10000E+07
     3 'norm      '    2.6487       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.7428       1.0000          .0000       .10000E+07
     5 'norm      '    .60860       1.0000          .0000       .10000E+07
     6 'norm      '    1.7771       1.0000          .0000       .10000E+07
     7 'Prefactor '    .27735E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .73200E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .70549E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    13.564       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.1247       1.0000          .0000       .10000E+07
    12 'Prefactor '    14.587       1.0000          .0000       .10000E+07
    13 'Prefactor '    19.210       1.0000          .0000       .10000E+07
    14 'Prefactor '    .49172E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    13.333       1.0000          .0000       .10000E+07
    16 'norm      '    3.2590       1.0000          .0000       .10000E+07
    17 'Prefactor '    .44807E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .60881E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    5.8068       1.0000          .0000       .10000E+07
    20 'norm      '    .30609       1.0000          .0000       .10000E+07
    21 'Prefactor '    .23793E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    32.286       1.0000          .0000       .10000E+07
    23 'Prefactor '    .95530E-02   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1434       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .61240       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15148.57     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     1689 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    5.3555       -.94309E-07** at limit **
   2  Prefactor     30.635        10.292       -.40048E-06    .52729E-01
   3  norm          2.6523        1.8457       -.82372E-07    .44744E-02
   4  Prefactor     8.7691        2.6995       -.26229E-06    .12883E-01
   5  norm          .60912        .47112       -.55996E-08   -.24453E-02
   6  norm          1.7776        1.9225       -.28256E-07   -.12884E-02
   7  Prefactor     .31086E-08    7.4129        .19136E-06** at limit **
   8  Prefactor     .23537E-07    6.9068       -.20289E-05** at limit **
   9  Prefactor      .0000        1.0237       -.71707E-07** at limit **
  10  Prefactor     13.608        8.5740        .94244E-06    .54108E-01
  11  Prefactor     3.1140        1.4898        .93461E-07   -.31626E-02
  12  Prefactor     14.820        7.3020       -.78237E-06    .25680E-01
  13  Prefactor     19.270        4.7506        .23999E-06   -.37679E-01
  14  Prefactor     .59952E-08    6.0075        .65119E-06** at limit **
  15  Prefactor     13.318        8.3604       -.22580E-06   -.11268E-02
  16  norm          3.2580        1.0335        .40661E-07   -.83267E-02
  17  Prefactor      .0000        1.2309        .37677E-07** at limit **
  18  Prefactor     .88318E-07    8.7985        .83022E-06** at limit **
  19  Prefactor     5.8116        4.0718        .16140E-07    .16117E-02
  20  norm          .28703        2.2126        .95797E-07    .95995E-02
  21  Prefactor     .22204E-09    2.6035        .12949E-06** at limit **
  22  Prefactor     32.454        17.387       -.65178E-06    .56304E-02
  23  Prefactor     .60916E-05    1865.6        .11974E-04** at limit **
  24  Normalizat    1.1434        .11252       -.69045E-06   -.66563E-03
  25  Prefactor     .61243        .12440       -.15933E-05   -.56484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 30.6347
  norm       = 2.65228
  Prefactor  = 8.76914
  norm       = 0.609124
  norm       = 1.77759
  Prefactor  = 3.10862e-09
  Prefactor  = 2.35367e-08
  Prefactor  = 0
  Prefactor  = 13.6081
  Prefactor  = 3.11401
  Prefactor  = 14.8196
  Prefactor  = 19.27
  Prefactor  = 5.9952e-09
  Prefactor  = 13.3175
  norm       = 3.25797
  Prefactor  = 0
  Prefactor  = 8.83182e-08
  Prefactor  = 5.81155
  norm       = 0.28703
  Prefactor  = 2.22045e-10
  Prefactor  = 32.454
  Prefactor  = 6.09163e-06
  Normalizat = 1.14343
  Prefactor  = 0.612431
 **********
 **   18 **HESSE 
 **********

 FCN=   15148.57     FROM HESSE     STATUS=OK           503 CALLS     2192 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    5.4355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.635        16.533        .17960E-03   -1.5597    
   3  norm          2.6523        1.8447        .62614E-03   -1.5675    
   4  Prefactor     8.7691        19.096        .33876E-03   -1.5649    
   5  norm          .60912        .46909        .68461E-03   -1.5692    
   6  norm          1.7776        1.9511        .78492E-03   -1.5681    
   7  Prefactor     .31086E-08    7.7345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .23537E-07    12.037        .14714E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.0217        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.608        11.588        .27171E-03   -1.5634    
  11  Prefactor     3.1140        1.5876        .57330E-03   -1.5673    
  12  Prefactor     14.820        15.132        .26199E-03   -1.5631    
  13  Prefactor     19.270        20.394        .22824E-03   -1.5620    
  14  Prefactor     .59952E-08    6.0994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.318        8.6183        .27406E-03   -1.5635    
  16  norm          3.2580        1.0521        .56074E-04   -1.5672    
  17  Prefactor      .0000        1.2380        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .88318E-07    1.7152        .55264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.8116        4.1020        .41654E-03   -1.5660    
  20  norm          .28703        1.0538        .38481E-02   -1.5719    
  21  Prefactor     .22204E-09    2.6520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     32.454        18.922        .17602E-03   -1.5594    
  23  Prefactor     .60916E-05    5.0958        .67509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1434        .10119        .36456E-01   -.88369    
  25  Prefactor     .61243        .10835        .67120E-01   -1.0707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14139e-07
Minuit parameter uncertainties:
  1  3.87614e-05
  2  16.533
  3  1.84469
  4  19.0965
  5  0.469088
  6  1.95114
  7  0.000309248
  8  0.00106514
  9  7.55755e-06
  10  11.5877
  11  1.58763
  12  15.1323
  13  20.394
  14  0.000382591
  15  8.61828
  16  1.05213
  17  1.91526e-06
  18  0.00077842
  19  4.10197
  20  1.05381
  21  5.0535e-05
  22  18.9219
  23  0.011143
  24  0.101203
  25  0.108389
Done.

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

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  1.927e+01  2.039e+01  0.000e+00  1.000e+06 ( 1.000e-14)
320        Index:  2.240e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  1.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  6.124e-01  1.084e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.143e+00  1.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.62
Ra Dec: 218.068 50.860
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 9.56e-09 +/- 1.01e-08
Energy Flux (Fixed Index): 3.99e-06 +/- 4.23e-06

TS (Fixed Index): 2.62
Ra Dec: 218.068 50.860
Photon Flux Upper Limit: 3.73056340489e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00285073222145 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36606772/likelihoodResults_724032001_724636801_4FGL_J1432.2+5051_weekly_bin802.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) = 15147.7229549
delta logL = 0.843800999419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15147.6688769
delta logL = 0.897878959162

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15147.67     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      223 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.562        17.644        .32996E-06   -.30341E-02
   2  Index         1.0833        .69735        .27798E-04    .34179E-04
   3  Normalizat    1.1511        .94063E-01   -.25921E-06   -.31957E-03
   4  Prefactor     .60908        .10765        .29383E-06   -.13079E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5621
  Index      = 1.0833
  Normalizat = 1.15107
  Prefactor  = 0.609077
 **********
 **   18 **HESSE 
 **********

 FCN=   15147.67     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.562        16.781        .11297E-04   -1.5637    
   2  Index         1.0833        .65867        .19166E-01   -.90002    
   3  Normalizat    1.1511        .10827        .19595E-03   -.88129    
   4  Prefactor     .60908        .12361        .29784E-03   -1.0721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18884e-08
Minuit parameter uncertainties:
  1  16.7808
  2  0.663708
  3  0.108295
  4  0.123666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15147.6688749
delta logL = 0.897880970979

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  1.256e+01  1.678e+01  0.000e+00  1.000e+06 ( 1.000e-14)
320        Index:  1.083e+00  6.637e-01  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  1.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  6.091e-01  1.237e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.151e+00  1.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.42
Ra Dec: 218.068 50.860
Photon Index (Free Index): 1.08 +/- 0.66
Photon Flux (Free Index): 1.47e-09 +/- 1.82e-09
Energy Flux (Free Index): 1.72e-05 +/- 2.64e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/36606772/cmap_HighResolution_724032001_724636801_4FGL_J1432.2+5051_weekly_bin802.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-03', comment='SUCCESS', photon_flux='9.56e-09', energy_flux2='1.72e-05', photon_flux_error='1.01e-08', dlogl='8.98e-01', energy_flux='3.99e-06', photon_flux2='1.47e-09', job_status='DONE', time_completed='2023-12-19 01:04:33.405233', photon_index_error2='0.66', photon_index2='1.08', ts='2.62', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', photon_flux_upper_limit='3.73e-08', energy_flux_error2='2.64e-05', EG='1.14', time_epoch_completed='1702976673.41', return_code='0', job_id='36606772', GAL2='0.61', EG2='1.15', return_code2='0', energy_flux_error='4.23e-06', photon_flux_error2='1.82e-09', ts2='4.42', photon_index='2.24' WHERE bin_id='802' AND source_name='4FGL J1432.2+5051' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 19 01:04:33 PST 2023

