/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_J1512.2+0202_weekly_bin802
RA = 228.07, Dec = 2.0403
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='36606819', job_status='RUN', time_executed='2023-12-19 00:55:54.998771', time_epoch_executed='1702976155.0' WHERE source_name='4FGL J1512.2+0202' and cadence='weekly' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36606819

Creating custom pfile directory:
/lscratch/kocevski/36606819/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/36606819/ft1_4FGL_J1512.2+0202_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/36606819/ft2_4FGL_J1512.2+0202_weekly_bin802.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36606819/ft1_4FGL_J1512.2+0202_weekly_bin802.fits outfile=/lscratch/kocevski/36606819/ft1_filteredMKT_4FGL_J1512.2+0202_weekly_bin802.fits ra=228.07 dec=2.0403 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.46
user 4.19
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36606819/ft2_4FGL_J1512.2+0202_weekly_bin802.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36606819/ft2_4FGL_J1512.2+0202_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/36606819/ft1_filteredMKT_4FGL_J1512.2+0202_weekly_bin802.fits evtable="EVENTS" outfile="/lscratch/kocevski/36606819/ft1_filtered_4FGL_J1512.2+0202_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.13

Number of photons that the gtmktime cut: 2094

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36606819/ft1_filtered_4FGL_J1512.2+0202_weekly_bin802.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36606819/ft2_4FGL_J1512.2+0202_weekly_bin802.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36606819/ltcube_724032001_724636801_4FGL_J1512.2+0202_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/36606819/ft2_4FGL_J1512.2+0202_weekly_bin802.fits
.....................!
real 31.57
user 31.10
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36606819/ft1_filtered_4FGL_J1512.2+0202_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36606819/ft2_4FGL_J1512.2+0202_weekly_bin802.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36606819/ltcube_724032001_724636801_4FGL_J1512.2+0202_weekly_bin802.fits outfile=/lscratch/kocevski/36606819/expmap_724032001_724636801_4FGL_J1512.2+0202_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/36606819/ltcube_724032001_724636801_4FGL_J1512.2+0202_weekly_bin802.fits
.....................!
real 65.95
user 62.22
sys 3.47

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

Setting source of interest to:
4FGL J1512.2+0202 @ 228.07 2.0403

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36606819/ft1_filtered_4FGL_J1512.2+0202_weekly_bin802.fits scfile=/lscratch/kocevski/36606819/ft2_4FGL_J1512.2+0202_weekly_bin802.fits outfile=/lscratch/kocevski/36606819/cmap_724032001_724636801_4FGL_J1512.2+0202_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=228.07 yref=2.0403 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/36606819/ft1_filtered_4FGL_J1512.2+0202_weekly_bin802.fits scfile=/lscratch/kocevski/36606819/ft2_4FGL_J1512.2+0202_weekly_bin802.fits outfile=/lscratch/kocevski/36606819/cmap_HighResolution_724032001_724636801_4FGL_J1512.2+0202_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=228.07 yref=2.0403 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.41
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36606819/ft1_filtered_4FGL_J1512.2+0202_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36606819/ft2_4FGL_J1512.2+0202_weekly_bin802.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36606819/Model_4FGL_J1512.2+0202_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/36606819/ft1_filtered_4FGL_J1512.2+0202_weekly_bin802.fits.....................!
real 61.30
user 60.40
sys 0.62

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36606819/ft1_filtered_4FGL_J1512.2+0202_weekly_bin802.fits', '/lscratch/kocevski/36606819/ft2_4FGL_J1512.2+0202_weekly_bin802.fits', expMap='/lscratch/kocevski/36606819/expmap_724032001_724636801_4FGL_J1512.2+0202_weekly_bin802.fits', expCube='/lscratch/kocevski/36606819/ltcube_724032001_724636801_4FGL_J1512.2+0202_weekly_bin802.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36606819/Model_4FGL_J1512.2+0202_weekly_bin802.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1512.2+0202'

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.359e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
232        alpha:  1.968e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
233         beta:  1.575e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36606819/ft1_filtered_4FGL_J1512.2+0202_weekly_bin802.fits
Spacecraft file(s): /lscratch/kocevski/36606819/ft2_4FGL_J1512.2+0202_weekly_bin802.fits
Exposure map: /lscratch/kocevski/36606819/expmap_724032001_724636801_4FGL_J1512.2+0202_weekly_bin802.fits
Exposure cube: /lscratch/kocevski/36606819/ltcube_724032001_724636801_4FGL_J1512.2+0202_weekly_bin802.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36606819/Model_4FGL_J1512.2+0202_weekly_bin802.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) = 22761.6938603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44469E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .53165E-01   1.0000          .0000       .10000E+07
     3 'norm      '    18.502       1.0000          .0000       .10000E+07
     4 'Prefactor '    12.094       1.0000          .0000       .10000E+07
     5 'norm      '    1.1523       1.0000          .0000       .10000E+07
     6 'norm      '    8.6007       1.0000          .0000       .10000E+07
     7 'norm      '    .40812E-06   1.0000          .0000       .10000E+07
     8 'norm      '    6.0121       1.0000          .0000       .10000E+07
     9 'norm      '    2.5626       1.0000          .0000       .10000E+07
    10 'norm      '    .10608       1.0000          .0000       .10000E+07
    11 'Prefactor '    .12688E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .25935E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    18.158       1.0000          .0000       .10000E+07
    14 'Prefactor '    10.166       1.0000          .0000       .10000E+07
    15 'Prefactor '    6.3668       1.0000          .0000       .10000E+07
    16 'norm      '    .97713       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.5362       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .85702       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   22761.63     FROM MIGRAD    STATUS=CONVERGED     84 CALLS     1227 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22310E-06    30.891        .12433E-06** at limit **
   2  Prefactor     .19429E-08    24.172       -.83482E-07** at limit **
   3  norm          18.391        4.5300        .12400E-07   -.21090E-01
   4  Prefactor     12.470        6.7921       -.29641E-07    .34488E-01
   5  norm          1.1519        .16118        .15968E-09    .47953E-02
   6  norm          8.5934        1.9333        .64280E-08    .19242E-02
   7  norm           .0000        .71190        .22835E-07** at limit **
   8  norm          6.0086        2.9376       -.12563E-07   -.32567E-02
   9  norm          2.5725        2.0610       -.37977E-07   -.54119E-02
  10  norm          .10608        .42409E-01    .17652E-08** at limit **
  11  Prefactor     .24425E-08    2.6365       -.55107E-08** at limit **
  12  Prefactor     .16154E-07    4.2270        .15534E-06** at limit **
  13  Prefactor     18.109        3.0360       -.72662E-08    .96493E-01
  14  Prefactor     10.160        2.4850       -.17327E-07    .10878    
  15  Prefactor     6.3736        2.9848        .59221E-07    .67866E-02
  16  norm          .97473        1.4515        .54457E-10   -.16470E-02
  17  Normalizat    1.5361        .16231        .24200E-05   -.95645E-04
  18  Prefactor     .85703        .70698E-01   -.19535E-05   -.78046E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.23099e-07
  Prefactor  = 1.94289e-09
  norm       = 18.3915
  Prefactor  = 12.4704
  norm       = 1.15186
  norm       = 8.59342
  norm       = 0
  norm       = 6.00861
  norm       = 2.57248
  norm       = 0.106083
  Prefactor  = 2.44249e-09
  Prefactor  = 1.61537e-08
  Prefactor  = 18.1092
  Prefactor  = 10.1597
  Prefactor  = 6.37355
  norm       = 0.97473
  Normalizat = 1.53608
  Prefactor  = 0.857028
 **********
 **   18 **HESSE 
 **********

 FCN=   22761.63     FROM HESSE     STATUS=OK           292 CALLS     1519 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22310E-06    71.046        .15768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .19429E-08    23.890        .15417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          18.391        10.604        .23257E-03   -1.5622    
   4  Prefactor     12.470        10.730        .28780E-03   -1.5637    
   5  norm          1.1519        .16109        .48650E-03   -1.5686    
   6  norm          8.5934        1.9306        .34156E-03   -1.5649    
   7  norm           .0000        .71211        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.0086        2.9470        .40927E-03   -1.5659    
   9  norm          2.5725        2.0636        .63744E-03   -1.5676    
  10  norm          .10608        .42609E-01    .42918E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .24425E-08    2.6324        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16154E-07    4.1370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.109        14.818        .23476E-03   -1.5623    
  14  Prefactor     10.160        33.591        .31402E-03   -1.5644    
  15  Prefactor     6.3736        3.0056        .39755E-03   -1.5657    
  16  norm          .97473        1.4694        .42954E-03   -1.5688    
  17  Normalizat    1.5361        .14144        .77797E-01   -.76769    
  18  Prefactor     .85703        .61754E-01    .44455E-01   -.97659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8998e-06
Minuit parameter uncertainties:
  1  0.00796284
  2  0.000429314
  3  10.6037
  4  10.7302
  5  0.161094
  6  1.93063
  7  1.64341e-08
  8  2.94699
  9  2.06356
  10  0.0426095
  11  0.000161134
  12  0.000517211
  13  14.818
  14  33.592
  15  3.00559
  16  1.4694
  17  0.14148
  18  0.061759
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.572e+00  2.064e+00  0.000e+00  1.000e+06 ( 1.000e-12)
232        alpha:  1.968e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
233         beta:  1.575e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  8.570e-01  6.176e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.536e+00  1.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.37
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 1.78e-08 +/- 1.43e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 8.92e-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) = 22761.1354695
delta logL = 0.493203784077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22761.1336248
delta logL = 0.49504846608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5113       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7631       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86221       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   22761.13     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      217 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5112        17.055        .64450E-03    .27673E-01
   2  alpha         2.7630        3.7484        .41443        .14225E-03
   3  Normalizat    1.5041        .49826E-01    .78402E-01   -.30348E-04
   4  Prefactor     .86220        .18190E-01    .44522E-01    .90376E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.51123
  alpha      = 2.76305
  Normalizat = 1.50414
  Prefactor  = 0.862204
 **********
 **   18 **HESSE 
 **********

 FCN=   22761.13     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5112        2.1433        .12934E-04   -1.5676    
   2  alpha         2.7630        .78735        .18900E-01    .10541    
   3  Normalizat    1.5041        .16259        .34698E-03   -.77662    
   4  Prefactor     .86220        .70478E-01    .19644E-03   -.97475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14785e-08
Minuit parameter uncertainties:
  1  2.14329
  2  0.801144
  3  0.162643
  4  0.0704856
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) = 22761.1336248
delta logL = 0.495048473349

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.511e+00  2.143e+00  0.000e+00  1.000e+06 ( 1.000e-12)
232        alpha:  2.763e+00  8.011e-01  0.000e+00  5.000e+00 ( 1.000e+00)
233         beta:  1.575e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  8.622e-01  7.049e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.504e+00  1.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.37
Ra Dec: 228.070 2.040
Photon Index (Free Index): 2.76 +/- 0.80
Photon Flux (Free Index): 5.39e-08 +/- 4.71e-08
Energy Flux (Free Index): 1.44e-05 +/- 8.33e-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/36606819/cmap_HighResolution_724032001_724636801_4FGL_J1512.2+0202_weekly_bin802.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.78e-08', energy_flux2='1.44e-05', photon_flux_error='1.43e-08', dlogl='4.95e-01', energy_flux='1.11e-05', photon_flux2='5.39e-08', job_status='DONE', time_completed='2023-12-19 01:03:17.194875', photon_index_error2='0.80', photon_index2='2.76', ts='4.37', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='8.33e-06', EG='1.54', time_epoch_completed='1702976597.19', return_code='0', job_id='36606819', GAL2='0.86', EG2='1.50', return_code2='0', energy_flux_error='8.92e-06', photon_flux_error2='4.71e-08', ts2='5.37', photon_index='1.97' WHERE bin_id='802' AND source_name='4FGL J1512.2+0202' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 19 01:03:17 PST 2023

