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


Performing analysis on: 4FGL_J1432.2+5051_weekly_bin801
RA = 218.068, Dec = 50.8596
tmin = 723427201, tmax = 724032001
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='35830274', job_status='RUN', time_executed='2023-12-12 01:55:56.253308', time_epoch_executed='1702374956.25' WHERE source_name='4FGL J1432.2+5051' and cadence='weekly' and bin_id='801'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/35830274

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/35830274/ft1_4FGL_J1432.2+5051_weekly_bin801.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/35830274/ft2_4FGL_J1432.2+5051_weekly_bin801.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/35830274/ft1_4FGL_J1432.2+5051_weekly_bin801.fits outfile=/lscratch/kocevski/35830274/ft1_filteredMKT_4FGL_J1432.2+5051_weekly_bin801.fits ra=218.068 dec=50.8596 rad=12.0 tmin=723427201.0 tmax=724032001.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.72
user 4.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/35830274/ft2_4FGL_J1432.2+5051_weekly_bin801.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/35830274/ft1_filteredMKT_4FGL_J1432.2+5051_weekly_bin801.fits evtable="EVENTS" outfile="/lscratch/kocevski/35830274/ft1_filtered_4FGL_J1432.2+5051_weekly_bin801.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.40
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 1812

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/35830274/ft1_filtered_4FGL_J1432.2+5051_weekly_bin801.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35830274/ft2_4FGL_J1432.2+5051_weekly_bin801.fits sctable="SC_DATA" outfile=/lscratch/kocevski/35830274/ltcube_723427201_724032001_4FGL_J1432.2+5051_weekly_bin801.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/35830274/ft2_4FGL_J1432.2+5051_weekly_bin801.fits
.....................!
real 18.82
user 18.44
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/35830274/ft1_filtered_4FGL_J1432.2+5051_weekly_bin801.fits evtable="EVENTS" scfile=/lscratch/kocevski/35830274/ft2_4FGL_J1432.2+5051_weekly_bin801.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35830274/ltcube_723427201_724032001_4FGL_J1432.2+5051_weekly_bin801.fits outfile=/lscratch/kocevski/35830274/expmap_723427201_724032001_4FGL_J1432.2+5051_weekly_bin801.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/35830274/ltcube_723427201_724032001_4FGL_J1432.2+5051_weekly_bin801.fits
.....................!
real 67.60
user 63.33
sys 3.85

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/35830274/ft1_filtered_4FGL_J1432.2+5051_weekly_bin801.fits scfile=/lscratch/kocevski/35830274/ft2_4FGL_J1432.2+5051_weekly_bin801.fits outfile=/lscratch/kocevski/35830274/cmap_723427201_724032001_4FGL_J1432.2+5051_weekly_bin801.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.39
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/35830274/ft1_filtered_4FGL_J1432.2+5051_weekly_bin801.fits scfile=/lscratch/kocevski/35830274/ft2_4FGL_J1432.2+5051_weekly_bin801.fits outfile=/lscratch/kocevski/35830274/cmap_HighResolution_723427201_724032001_4FGL_J1432.2+5051_weekly_bin801.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.40
user 0.21
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/35830274/ft1_filtered_4FGL_J1432.2+5051_weekly_bin801.fits', '/lscratch/kocevski/35830274/ft2_4FGL_J1432.2+5051_weekly_bin801.fits', expMap='/lscratch/kocevski/35830274/expmap_723427201_724032001_4FGL_J1432.2+5051_weekly_bin801.fits', expCube='/lscratch/kocevski/35830274/ltcube_723427201_724032001_4FGL_J1432.2+5051_weekly_bin801.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35830274/Model_4FGL_J1432.2+5051_weekly_bin801.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/35830274/ft1_filtered_4FGL_J1432.2+5051_weekly_bin801.fits
Spacecraft file(s): /lscratch/kocevski/35830274/ft2_4FGL_J1432.2+5051_weekly_bin801.fits
Exposure map: /lscratch/kocevski/35830274/expmap_723427201_724032001_4FGL_J1432.2+5051_weekly_bin801.fits
Exposure cube: /lscratch/kocevski/35830274/ltcube_723427201_724032001_4FGL_J1432.2+5051_weekly_bin801.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/35830274/Model_4FGL_J1432.2+5051_weekly_bin801.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) = 19721.2040637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46390       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21441E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .65952E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .30084E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .46316       1.0000          .0000       .10000E+07
     6 'norm      '    2.3775       1.0000          .0000       .10000E+07
     7 'Prefactor '    22.545       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15704E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7834       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.8255       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16411E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.7877       1.0000          .0000       .10000E+07
    13 'Prefactor '    66.786       1.0000          .0000       .10000E+07
    14 'Prefactor '    19.117       1.0000          .0000       .10000E+07
    15 'Prefactor '    11.519       1.0000          .0000       .10000E+07
    16 'norm      '    2.0192       1.0000          .0000       .10000E+07
    17 'Prefactor '    .20933E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.0498       1.0000          .0000       .10000E+07
    19 'Prefactor '    6.7627       1.0000          .0000       .10000E+07
    20 'norm      '    2.2713       1.0000          .0000       .10000E+07
    21 'Prefactor '    .55804E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .13074E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .17045E-02   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.0592       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95948       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=   19721.13     FROM MIGRAD    STATUS=CONVERGED    193 CALLS     2184 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93633E-01    372.48       -.13647E-04** at limit **
   2  Prefactor      .0000        4.4142        .87866E-08** at limit **
   3  norm          .65447E-01    3.8684        .87985E-06** at limit **
   4  Prefactor     .31403E-06    12.215       -.10618E-06** at limit **
   5  norm          .46339        .56782        .19789E-07    .70193E-02
   6  norm          2.3772        1.8349       -.58099E-07   -.15201E-02
   7  Prefactor     23.064        8.9774        .38797E-06    .19375    
   8  Prefactor     .28866E-07    10.590       -.10164E-07** at limit **
   9  Prefactor     1.7844        2.0861       -.61235E-07    .39084E-03
  10  Prefactor     7.8025        3.5534       -.31153E-08   -.72781E-02
  11  Prefactor      .0000        .74570        .18846E-07** at limit **
  12  Prefactor     6.6459        10.373       -.20680E-06    .10458E-02
  13  Prefactor     66.568        17.128       -.74769E-06    .23710E-01
  14  Prefactor     18.903        1.6882       -.37266E-08    .21417E-01
  15  Prefactor     11.550        9.7801        .11366E-06    .34212E-01
  16  norm          2.0191        .81695       -.26944E-07   -.58452E-02
  17  Prefactor      .0000        1.1857        .60987E-07** at limit **
  18  Prefactor     1.0495        1.6886       -.20539E-07   -.35916E-02
  19  Prefactor     6.7515        3.6471        .16597E-07    .38933E-02
  20  norm          2.2710        1.4024       -.94232E-07   -.16663E-01
  21  Prefactor     .22204E-09    1.9573       -.24106E-06** at limit **
  22  Prefactor     .95557E-06    16.385        .33852E-06** at limit **
  23  Prefactor      .0000        3.3199        .11185E-06** at limit **
  24  Normalizat    1.0596        .10673        .13408E-05    .36708E-04
  25  Prefactor     .95938        .12315       -.54078E-06   -.39408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0936327
  Prefactor  = 0
  norm       = 0.0654473
  Prefactor  = 3.14027e-07
  norm       = 0.463391
  norm       = 2.37718
  Prefactor  = 23.064
  Prefactor  = 2.88658e-08
  Prefactor  = 1.78438
  Prefactor  = 7.80246
  Prefactor  = 0
  Prefactor  = 6.64587
  Prefactor  = 66.568
  Prefactor  = 18.9033
  Prefactor  = 11.5498
  norm       = 2.0191
  Prefactor  = 0
  Prefactor  = 1.04953
  Prefactor  = 6.75153
  norm       = 2.27098
  Prefactor  = 2.22045e-10
  Prefactor  = 9.55569e-07
  Prefactor  = 0
  Normalizat = 1.05961
  Prefactor  = 0.959383
 **********
 **   18 **HESSE 
 **********

 FCN=   19721.13     FROM HESSE     STATUS=OK           491 CALLS     2675 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93633E-01    8.4715        .12637E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.4340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .65447E-01    .72063        .38061E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .31403E-06    12.661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .46339        .57023        .82506E-04   -1.5694    
   6  norm          2.3772        1.8446        .66412E-03   -1.5677    
   7  Prefactor     23.064        22.347        .21066E-03   -1.5612    
   8  Prefactor     .28866E-07    10.668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7844        2.1406        .78326E-03   -1.5681    
  10  Prefactor     7.8025        11.572        .35821E-03   -1.5652    
  11  Prefactor      .0000        .74228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6459        11.126        .38488E-03   -1.5656    
  13  Prefactor     66.568        41.152        .12237E-03   -1.5545    
  14  Prefactor     18.903        18.086        .22879E-03   -1.5621    
  15  Prefactor     11.550        11.048        .29492E-03   -1.5640    
  16  norm          2.0191        .81859        .72803E-03   -1.5680    
  17  Prefactor      .0000        1.1990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0495        1.9918        .52805E-02   -1.5687    
  19  Prefactor     6.7515        3.6646        .38560E-03   -1.5656    
  20  norm          2.2710        1.4127        .68116E-03   -1.5678    
  21  Prefactor     .22204E-09    1.9758        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .95557E-06    17.468        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        3.3235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0596        .94206E-01    .39977E-01   -.91059    
  25  Prefactor     .95938        .10582        .45759E-01   -.94096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.21899e-07
Minuit parameter uncertainties:
  1  1.78125
  2  1.44807e-05
  3  0.434342
  4  0.00398812
  5  0.57023
  6  1.8446
  7  22.3466
  8  0.00110962
  9  2.14065
  10  11.5722
  11  2.43259e-06
  12  11.1256
  13  41.1517
  14  18.0865
  15  11.0485
  16  0.818589
  17  7.36131e-06
  18  1.99179
  19  3.6646
  20  1.41268
  21  4.13173e-05
  22  0.00817107
  23  2.02033e-06
  24  0.0942205
  25  0.105842
Done.

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

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  6.657e+01  4.115e+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:  9.594e-01  1.058e-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.060e+00  9.422e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.98
Ra Dec: 218.068 50.860
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 3.30e-08 +/- 2.04e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 8.53e-06

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) = 19720.086465
delta logL = 1.04709786299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19720.0778986
delta logL = 1.05566429738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.503       1.0000          .0000       .10000E+07
     2 'Index     '    2.8727       1.0000          .0000       10.000    
     3 'Normalizat'    1.0291       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98148       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   19720.08     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      299 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.506        55.988        .74936E-05    .35986E-02
   2  Index         2.8729        .90850        .48245E-02    .35229E-03
   3  Normalizat    1.0291        .11001        .22007E-03    .15725E-03
   4  Prefactor     .98155        .12704        .26418E-03    .28454E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.5062
  Index      = 2.87294
  Normalizat = 1.02906
  Prefactor  = 0.981549
 **********
 **   18 **HESSE 
 **********

 FCN=   19720.08     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.506        30.273        .29974E-06   -1.5601    
   2  Index         2.8729        .49280        .19298E-03   -.43942    
   3  Normalizat    1.0291        .10707        .88028E-05   -.92063    
   4  Prefactor     .98155        .12411        .10567E-04   -.93347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29236e-10
Minuit parameter uncertainties:
  1  30.2732
  2  0.493775
  3  0.107091
  4  0.124141
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) = 19720.0778967
delta logL = 1.05566620682

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  2.851e+01  3.027e+01  0.000e+00  1.000e+06 ( 1.000e-14)
320        Index:  2.873e+00  4.938e-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:  9.815e-01  1.241e-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.029e+00  1.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.18
Ra Dec: 218.068 50.860
Photon Index (Free Index): 2.87 +/- 0.49
Photon Flux (Free Index): 5.75e-08 +/- 2.70e-08
Energy Flux (Free Index): 1.23e-05 +/- 5.50e-06

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

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.30e-08', energy_flux2='1.23e-05', photon_flux_error='2.04e-08', dlogl='1.06e+00', energy_flux='1.38e-05', photon_flux2='5.75e-08', job_status='DONE', time_completed='2023-12-12 02:06:32.985762', photon_index_error2='0.49', photon_index2='2.87', ts='4.98', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='5.50e-06', EG='1.06', time_epoch_completed='1702375592.99', return_code='0', job_id='35830274', GAL2='0.98', EG2='1.03', return_code2='0', energy_flux_error='8.53e-06', photon_flux_error2='2.70e-08', ts2='7.18', photon_index='2.24' WHERE bin_id='801' AND source_name='4FGL J1432.2+5051' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 12 02:06:33 PST 2023

