/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 151 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7503
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1351.0+0029_daily_bin747
RA = 207.757, Dec = 0.4873
tmin = 432950401, tmax = 433209601
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='15871', job_status='RUN', time_executed='2021-09-08 15:24:39.211260', time_epoch_executed='1631139879.21' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15871

Creating custom pfile directory:
/scratch/kocevski/15871/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=432950401.0 && nMetStart<433209601.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=432950401.0 && nMetStart<433209601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15871/ft1_4FGL_J1351.0+0029_daily_bin747.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=432950401.0 && nMetStart<433209601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15871/ft2_4FGL_J1351.0+0029_daily_bin747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15871/ft1_4FGL_J1351.0+0029_daily_bin747.fits outfile=/scratch/kocevski/15871/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin747.fits ra=207.757 dec=0.4873 rad=12.0 tmin=432950401.0 tmax=433209601.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 5.85
user 5.52
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/15871/ft2_4FGL_J1351.0+0029_daily_bin747.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/15871/ft2_4FGL_J1351.0+0029_daily_bin747.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/15871/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin747.fits evtable="EVENTS" outfile="/scratch/kocevski/15871/ft1_filtered_4FGL_J1351.0+0029_daily_bin747.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15871/ft1_filtered_4FGL_J1351.0+0029_daily_bin747.fits" evtable="EVENTS" scfile=/scratch/kocevski/15871/ft2_4FGL_J1351.0+0029_daily_bin747.fits sctable="SC_DATA" outfile=/scratch/kocevski/15871/ltcube_432950401_433209601_4FGL_J1351.0+0029_daily_bin747.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 /scratch/kocevski/15871/ft2_4FGL_J1351.0+0029_daily_bin747.fits
.....................!
real 16.48
user 15.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15871/ft1_filtered_4FGL_J1351.0+0029_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/15871/ft2_4FGL_J1351.0+0029_daily_bin747.fits sctable="SC_DATA" expcube=/scratch/kocevski/15871/ltcube_432950401_433209601_4FGL_J1351.0+0029_daily_bin747.fits outfile=/scratch/kocevski/15871/expmap_432950401_433209601_4FGL_J1351.0+0029_daily_bin747.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 /scratch/kocevski/15871/ltcube_432950401_433209601_4FGL_J1351.0+0029_daily_bin747.fits
.....................!
real 192.25
user 186.54
sys 4.14

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=/scratch/kocevski/15871/ft1_filtered_4FGL_J1351.0+0029_daily_bin747.fits scfile=/scratch/kocevski/15871/ft2_4FGL_J1351.0+0029_daily_bin747.fits outfile=/scratch/kocevski/15871/cmap_432950401_433209601_4FGL_J1351.0+0029_daily_bin747.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15871/ft1_filtered_4FGL_J1351.0+0029_daily_bin747.fits scfile=/scratch/kocevski/15871/ft2_4FGL_J1351.0+0029_daily_bin747.fits outfile=/scratch/kocevski/15871/cmap_HighResolution_432950401_433209601_4FGL_J1351.0+0029_daily_bin747.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/15871/ft1_filtered_4FGL_J1351.0+0029_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/15871/ft2_4FGL_J1351.0+0029_daily_bin747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/15871/Model_4FGL_J1351.0+0029_daily_bin747.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...
/scratch/kocevski/15871/ft1_filtered_4FGL_J1351.0+0029_daily_bin747.fits.....................!
real 56.58
user 55.01
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/15871/ft1_filtered_4FGL_J1351.0+0029_daily_bin747.fits', '/scratch/kocevski/15871/ft2_4FGL_J1351.0+0029_daily_bin747.fits', expMap='/scratch/kocevski/15871/expmap_432950401_433209601_4FGL_J1351.0+0029_daily_bin747.fits', expCube='/scratch/kocevski/15871/ltcube_432950401_433209601_4FGL_J1351.0+0029_daily_bin747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/15871/Model_4FGL_J1351.0+0029_daily_bin747.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  1.000e-04  1.000e+04 ( 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): /scratch/kocevski/15871/ft1_filtered_4FGL_J1351.0+0029_daily_bin747.fits
Spacecraft file(s): /scratch/kocevski/15871/ft2_4FGL_J1351.0+0029_daily_bin747.fits
Exposure map: /scratch/kocevski/15871/expmap_432950401_433209601_4FGL_J1351.0+0029_daily_bin747.fits
Exposure cube: /scratch/kocevski/15871/ltcube_432950401_433209601_4FGL_J1351.0+0029_daily_bin747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/15871/Model_4FGL_J1351.0+0029_daily_bin747.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) = 7335.56103791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.595       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6084       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4757       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.128       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11094E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5160       1.0000         .10000E-03   10000.    
    11 'norm      '    4.8713       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.478       1.0000         .10000E-03   10000.    
    13 'norm      '    4.6154       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.671       1.0000         .10000E-03   10000.    
    15 'norm      '    8.9733       1.0000         .10000E-03   10000.    
    16 'norm      '    12.939       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.5688       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.6052       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .66480       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7335.559     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2216 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.596        11.059       -.58348E-06   -.26633E-04
   2  norm          .10000E-03    3.6472       -.94778E-09** at limit **
   3  Prefactor     .10000E-03    11.211       -.14490E-06** at limit **
   4  Prefactor     8.6085        8.5028        .22600E-07    .24075E-03
   5  norm          1.4757        1.4155       -.28770E-06   -.86707E-03
   6  Prefactor     13.126        38.820       -.44307E-05   -.29558E-05
   7  norm          .10000E-03    8.4254       -.26674E-06** at limit **
   8  Prefactor     .10000E-03    .98604       -.20368E-07** at limit **
   9  Prefactor     .10000E-03    35.059        .28963E-06** at limit **
  10  Prefactor     2.5159        2.8882       -.11853E-06   -.13388E-03
  11  norm          4.8711        4.5414       -.23697E-06   -.11388E-03
  12  Prefactor     13.475        16.063       -.16540E-05   -.21256E-04
  13  norm          4.6155        2.7196       -.19401E-06   -.29829E-03
  14  Prefactor     13.673        15.556        .12548E-05    .12992E-04
  15  norm          8.9729        8.5107       -.67701E-07    .21081E-04
  16  norm          12.939        7.5485       -.51376E-06   -.87694E-03
  17  Prefactor     .10000E-03    8.3879        .28583E-06** at limit **
  18  norm          .10000E-03    5.0414        .18752E-07** at limit **
  19  Prefactor     8.5419        81.780       -.81568E-04    .22563E-05
  20  Normalizat    1.6050        .20660        .16781E-05    .40436E-05
  21  Prefactor     .66495        .13565        .12301E-05    .86039E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.596
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.60853
  norm       = 1.47572
  Prefactor  = 13.1265
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.51595
  norm       = 4.87108
  Prefactor  = 13.4749
  norm       = 4.61546
  Prefactor  = 13.6733
  norm       = 8.97291
  norm       = 12.9392
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.54189
  Normalizat = 1.60498
  Prefactor  = 0.664951
 **********
 **   18 **HESSE 
 **********

 FCN=   7335.559     FROM HESSE     STATUS=OK           323 CALLS     2539 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.596        11.066        .11765E-03   -1.5027    
   2  norm          .10000E-03    3.6474        .15975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.6085        8.5064        .68312E-03   -1.5121    
   5  norm          1.4757        1.4029        .94963E-04   -1.5465    
   6  Prefactor     13.126        38.824        .11055E-03   -1.4983    
   7  norm          .10000E-03    8.4271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .98846        .83047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    35.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5159        2.8800        .15200E-03   -1.5391    
  11  norm          4.8711        4.5390        .17120E-03   -1.5267    
  12  Prefactor     13.475        16.102        .10910E-03   -1.4974    
  13  norm          4.6155        2.7160        .10118E-03   -1.5278    
  14  Prefactor     13.673        15.544        .10833E-03   -1.4968    
  15  norm          8.9729        8.5153        .13380E-03   -1.5109    
  16  norm          12.939        7.5644        .55677E-03   -1.4988    
  17  Prefactor     .10000E-03    8.4074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.0441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.5419        81.814        .13694E-03   -1.5123    
  20  Normalizat    1.6050        .24867        .25309E-03   -.74870    
  21  Prefactor     .66495        .16221        .24951E-03   -1.0492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36403e-10
Minuit parameter uncertainties:
  1  11.0677
  2  2.0519e-07
  3  1.93733e-05
  4  8.50756
  5  1.40293
  6  38.899
  7  2.98155e-06
  8  2.02386e-06
  9  4.91864e-05
  10  2.88017
  11  4.53929
  12  16.107
  13  2.71608
  14  15.5486
  15  8.51641
  16  7.56494
  17  1.68218e-06
  18  5.07729e-06
  19  52.9663
  20  0.248865
  21  0.162325
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  4.919e-05  1.000e-04  1.000e+04 ( 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:  6.650e-01  1.623e-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.605e+00  2.489e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15871/likelihoodResults_432950401_433209601_4FGL_J1351.0+0029_daily_bin747.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): 102
logL (Free Index) = 7335.55928378
delta logL = -0.000134776790219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7335.55914961
delta logL = -6.05294189882e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10888E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3679       1.0000          .0000       10.000    
     3 'Normalizat'    1.6050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66496       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+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=   7335.559     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      279 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    6397.9        .18142E-02** at limit **
   2  Index         2.4488        6.9525        .50000       -.29367E-04
   3  Normalizat    1.6050        .50463E-01    .25309E-03    .22864E-04
   4  Prefactor     .66495        .33862E-01    .24951E-03    .48298E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100027
  Index      = 2.44881
  Normalizat = 1.60498
  Prefactor  = 0.66495
 **********
 **   18 **HESSE 
 **********

 FCN=   7335.559     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    8342.7        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4488        7.6234        .50000       -.53546    
   3  Normalizat    1.6050        .22019        .50618E-04   -.74870    
   4  Prefactor     .66495        .14776        .99803E-05   -1.0492    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.36106e-09
Minuit parameter uncertainties:
  1  0.0317186
  2  67.6928
  3  0.220323
  4  0.147847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15871': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7335.55914892
delta logL = 8.03647708381e-08

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  3.172e-02  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.449e+00  6.769e+01  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:  6.649e-01  1.478e-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.605e+00  2.203e-01  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 /scratch/kocevski/15871/cmap_HighResolution_432950401_433209601_4FGL_J1351.0+0029_daily_bin747.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/15871

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.93e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-08 15:35:25.550291', job_id='15871', GAL2='0.66', fit_tolerance='1e-08', EG2='1.60', EG='1.60', time_epoch_completed='1631140525.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='8.04e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='747' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:35:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 15871: <4FGL_J1351.0+0029_daily_bin747> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin747> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 15:20:42 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:21:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 15:21:59 2021
Terminated at Wed Sep  8 15:35:26 2021
Results reported at Wed Sep  8 15:35:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin747 207.757 0.4873 432950401 433209601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1351.0+0029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   642.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            884 sec.

The output (if any) is above this job summary.

