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


Performing analysis on: 4FGL_J1351.0+0029_weekly_bin788
RA = 207.757, Dec = 0.4873
tmin = 715564801, tmax = 716169601
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='27646000', job_status='RUN', time_executed='2023-09-12 00:56:01.316761', time_epoch_executed='1694505361.32' WHERE source_name='4FGL J1351.0+0029' and cadence='weekly' and bin_id='788'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/27646000

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/27646000/ft1_4FGL_J1351.0+0029_weekly_bin788.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/27646000/ft2_4FGL_J1351.0+0029_weekly_bin788.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/27646000/ft1_4FGL_J1351.0+0029_weekly_bin788.fits outfile=/lscratch/kocevski/27646000/ft1_filteredMKT_4FGL_J1351.0+0029_weekly_bin788.fits ra=207.757 dec=0.4873 rad=12.0 tmin=715564801.0 tmax=716169601.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.33
user 4.00
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/27646000/ft2_4FGL_J1351.0+0029_weekly_bin788.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/27646000/ft2_4FGL_J1351.0+0029_weekly_bin788.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/27646000/ft1_filteredMKT_4FGL_J1351.0+0029_weekly_bin788.fits evtable="EVENTS" outfile="/lscratch/kocevski/27646000/ft1_filtered_4FGL_J1351.0+0029_weekly_bin788.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.22
sys 0.14

Number of photons that the gtmktime cut: 1266

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/27646000/ft1_filtered_4FGL_J1351.0+0029_weekly_bin788.fits" evtable="EVENTS" scfile=/lscratch/kocevski/27646000/ft2_4FGL_J1351.0+0029_weekly_bin788.fits sctable="SC_DATA" outfile=/lscratch/kocevski/27646000/ltcube_715564801_716169601_4FGL_J1351.0+0029_weekly_bin788.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/27646000/ft2_4FGL_J1351.0+0029_weekly_bin788.fits
.....................!
real 18.77
user 18.28
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27646000/ft1_filtered_4FGL_J1351.0+0029_weekly_bin788.fits evtable="EVENTS" scfile=/lscratch/kocevski/27646000/ft2_4FGL_J1351.0+0029_weekly_bin788.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27646000/ltcube_715564801_716169601_4FGL_J1351.0+0029_weekly_bin788.fits outfile=/lscratch/kocevski/27646000/expmap_715564801_716169601_4FGL_J1351.0+0029_weekly_bin788.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/27646000/ltcube_715564801_716169601_4FGL_J1351.0+0029_weekly_bin788.fits
.....................!
real 62.35
user 58.48
sys 3.48

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

Setting source of interest to:
4FGL J1351.0+0029 @ 207.757 0.4873

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/27646000/ft1_filtered_4FGL_J1351.0+0029_weekly_bin788.fits scfile=/lscratch/kocevski/27646000/ft2_4FGL_J1351.0+0029_weekly_bin788.fits outfile=/lscratch/kocevski/27646000/cmap_715564801_716169601_4FGL_J1351.0+0029_weekly_bin788.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=207.757 yref=0.4873 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27646000/ft1_filtered_4FGL_J1351.0+0029_weekly_bin788.fits scfile=/lscratch/kocevski/27646000/ft2_4FGL_J1351.0+0029_weekly_bin788.fits outfile=/lscratch/kocevski/27646000/cmap_HighResolution_715564801_716169601_4FGL_J1351.0+0029_weekly_bin788.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=207.757 yref=0.4873 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.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27646000/ft1_filtered_4FGL_J1351.0+0029_weekly_bin788.fits evtable="EVENTS" scfile=/lscratch/kocevski/27646000/ft2_4FGL_J1351.0+0029_weekly_bin788.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27646000/Model_4FGL_J1351.0+0029_weekly_bin788.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/27646000/ft1_filtered_4FGL_J1351.0+0029_weekly_bin788.fits.....................!
real 34.43
user 33.50
sys 0.68

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27646000/ft1_filtered_4FGL_J1351.0+0029_weekly_bin788.fits', '/lscratch/kocevski/27646000/ft2_4FGL_J1351.0+0029_weekly_bin788.fits', expMap='/lscratch/kocevski/27646000/expmap_715564801_716169601_4FGL_J1351.0+0029_weekly_bin788.fits', expCube='/lscratch/kocevski/27646000/ltcube_715564801_716169601_4FGL_J1351.0+0029_weekly_bin788.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27646000/Model_4FGL_J1351.0+0029_weekly_bin788.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1351.0+0029'

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.616e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
253        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/27646000/ft1_filtered_4FGL_J1351.0+0029_weekly_bin788.fits
Spacecraft file(s): /lscratch/kocevski/27646000/ft2_4FGL_J1351.0+0029_weekly_bin788.fits
Exposure map: /lscratch/kocevski/27646000/expmap_715564801_716169601_4FGL_J1351.0+0029_weekly_bin788.fits
Exposure cube: /lscratch/kocevski/27646000/ltcube_715564801_716169601_4FGL_J1351.0+0029_weekly_bin788.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27646000/Model_4FGL_J1351.0+0029_weekly_bin788.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) = 14045.9620426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14126E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .31175E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    8.9814       1.0000          .0000       .10000E+07
     4 'Prefactor '    .66997E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .99715       1.0000          .0000       .10000E+07
     6 'Prefactor '    29.072       1.0000          .0000       .10000E+07
     7 'norm      '    15.999       1.0000          .0000       .10000E+07
     8 'Prefactor '    .89342       1.0000          .0000       .10000E+07
     9 'Prefactor '    .38025E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.2378       1.0000          .0000       .10000E+07
    11 'norm      '    .20477E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .34274E-03   1.0000          .0000       .10000E+07
    13 'norm      '    20.847       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.6667       1.0000          .0000       .10000E+07
    15 'norm      '    9.9975       1.0000          .0000       .10000E+07
    16 'norm      '    14.774       1.0000          .0000       .10000E+07
    17 'norm      '    .23301E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    23.114       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.3122       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88033       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14045.93     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     1493 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21638E-06    2.5953        .67909E-07** at limit **
   2  norm          .14988E-08    2.6020       -.20603E-07** at limit **
   3  Prefactor     8.9603        2.0840        .86924E-08    .17793E-01
   4  Prefactor     .61062E-09    2.9913        .14909E-06** at limit **
   5  norm          .99614        .95176        .28096E-07    .10856E-02
   6  Prefactor     29.174        2.8253        .44699E-07    .42779E-01
   7  norm          16.121        13.180       -.45634E-08    .35482E-01
   8  Prefactor     .85766        2.1569       -.15572E-06   -.96456E-03
   9  Prefactor      .0000        2.9496       -.25470E-07** at limit **
  10  Prefactor     1.2370        1.6070       -.12487E-07   -.27823E-03
  11  norm           .0000        1.8017       -.19204E-07** at limit **
  12  Prefactor     .38858E-09    3.6553        .35706E-07** at limit **
  13  norm          20.845        3.1622        .75582E-08   -.14420E-02
  14  Prefactor     2.6834        1.0574        .66074E-08   -.43014E-02
  15  norm          9.9998        6.5136       -.77901E-07    .12512E-02
  16  norm          14.795        7.4325        .41839E-07    .24230E-01
  17  norm          .15182E-06    3.0078        .52025E-07** at limit **
  18  Prefactor     24.647        45.352        .98260E-06   -.24347E-02
  19  Normalizat    1.3125        .17544       -.17199E-05   -.12295E-04
  20  Prefactor     .88011        .12176        .11106E-05    .20651E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.16382e-07
  norm       = 1.4988e-09
  Prefactor  = 8.96029
  Prefactor  = 6.10623e-10
  norm       = 0.996144
  Prefactor  = 29.1744
  norm       = 16.1209
  Prefactor  = 0.857659
  Prefactor  = 0
  Prefactor  = 1.23697
  norm       = 0
  Prefactor  = 3.88578e-10
  norm       = 20.8452
  Prefactor  = 2.68344
  norm       = 9.99982
  norm       = 14.7948
  norm       = 1.51823e-07
  Prefactor  = 24.6467
  Normalizat = 1.31254
  Prefactor  = 0.880108
 **********
 **   18 **HESSE 
 **********

 FCN=   14045.93     FROM HESSE     STATUS=OK           335 CALLS     1828 TOTAL
                     EDM=   .94E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21638E-06    4.8475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .14988E-08    5.5265        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.9603        11.668        .33420E-03   -1.5648    
   4  Prefactor     .61062E-09    2.9941        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .99614        .95628        .43665E-03   -1.5688    
   6  Prefactor     29.174        34.999        .18549E-03   -1.5600    
   7  norm          16.121        14.601        .25013E-03   -1.5628    
   8  Prefactor     .85766        2.1634        .46216E-03   -1.5689    
   9  Prefactor      .0000        5.4864        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2370        1.6428        .10083E-02   -1.5686    
  11  norm           .0000        1.7994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .38858E-09    3.6448        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          20.845        3.1649        .21908E-03   -1.5617    
  14  Prefactor     2.6834        8.0875        .62385E-03   -1.5675    
  15  norm          9.9998        6.5094        .31667E-03   -1.5645    
  16  norm          14.795        7.5138        .26031E-03   -1.5631    
  17  norm          .15182E-06    4.5466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.647        45.401        .20805E-03   -1.5609    
  19  Normalizat    1.3125        .14642        .62922E-01   -.83193    
  20  Prefactor     .88011        .10093        .44754E-01   -.96840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.44987e-07
Minuit parameter uncertainties:
  1  0.00204823
  2  0.000181718
  3  11.6677
  4  8.41155e-05
  5  0.956276
  6  34.9992
  7  14.6011
  8  2.16345
  9  2.63271e-06
  10  1.64281
  11  1.21918e-05
  12  7.56017e-05
  13  3.16492
  14  8.0875
  15  6.50937
  16  7.5138
  17  0.0016616
  18  45.4011
  19  0.146468
  20  0.100952
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  0.000e+00  2.633e-06  0.000e+00  1.000e+06 ( 1.000e-13)
253        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  8.801e-01  1.010e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.313e+00  1.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 4.39860937869e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00340721930836 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27646000/likelihoodResults_715564801_716169601_4FGL_J1351.0+0029_weekly_bin788.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) = 14045.927855
delta logL = -0.00142572816185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14045.9264296
delta logL = -3.20771505358e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61567E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.0172       1.0000          .0000       10.000    
     3 'Normalizat'    1.3126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88007       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14045.93     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      227 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.0770        .91608E-06** at limit **
   2  Index         2.9646        3.1319       -.81742E-04     .0000    
   3  Normalizat    1.3125        .17248       -.86313E-06    .16494E-04
   4  Prefactor     .88011        .12086        .48722E-05   -.13630E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.96463
  Normalizat = 1.31254
  Prefactor  = 0.880108
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14045.93     FROM HESSE     STATUS=FAILED        11 CALLS      238 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.0675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .99415        2.1510       -.81742E-04   -.41925    
   3  Normalizat    1.3125        1.0768       -.86313E-06   -.83193    
   4  Prefactor     .88011        1.2259        .48722E-05   -.96840    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.12891e-12
Minuit parameter uncertainties:
  1  2.75526e-06
  2  1.93798
  3  1.09604
  4  1.26783
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) = 14045.9264292
delta logL = 0.0

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  0.000e+00  2.755e-06  0.000e+00  1.000e+06 ( 1.000e-13)
253        Index:  2.965e+00  1.938e+00  0.000e+00  1.000e+01 (-1.000e+00)
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  8.801e-01  1.268e+00  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.313e+00  1.096e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 207.757 0.487

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/27646000/cmap_HighResolution_715564801_716169601_4FGL_J1351.0+0029_weekly_bin788.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-03', job_status='DONE', photon_flux_upper_limit='4.40e-08', time_completed='2023-09-12 01:02:34.814145', job_id='27646000', GAL2='0.88', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1694505754.81', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='788' AND source_name='4FGL J1351.0+0029' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 12 01:02:34 PDT 2023

