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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin511
RA = 207.757, Dec = 0.4873
tmin = 371779201, tmax = 372038401
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='13770', job_status='RUN', time_executed='2021-09-08 15:17:52.332933', time_epoch_executed='1631139472.33' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13770

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13770/ft1_4FGL_J1351.0+0029_daily_bin511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13770/ft2_4FGL_J1351.0+0029_daily_bin511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13770/ft1_4FGL_J1351.0+0029_daily_bin511.fits outfile=/scratch/kocevski/13770/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin511.fits ra=207.757 dec=0.4873 rad=12.0 tmin=371779201.0 tmax=372038401.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 3.44
user 3.18
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13770/ft2_4FGL_J1351.0+0029_daily_bin511.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/13770/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin511.fits evtable="EVENTS" outfile="/scratch/kocevski/13770/ft1_filtered_4FGL_J1351.0+0029_daily_bin511.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.53
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13770/ft1_filtered_4FGL_J1351.0+0029_daily_bin511.fits" evtable="EVENTS" scfile=/scratch/kocevski/13770/ft2_4FGL_J1351.0+0029_daily_bin511.fits sctable="SC_DATA" outfile=/scratch/kocevski/13770/ltcube_371779201_372038401_4FGL_J1351.0+0029_daily_bin511.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/13770/ft2_4FGL_J1351.0+0029_daily_bin511.fits
.....................!
real 16.23
user 15.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13770/ft1_filtered_4FGL_J1351.0+0029_daily_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/13770/ft2_4FGL_J1351.0+0029_daily_bin511.fits sctable="SC_DATA" expcube=/scratch/kocevski/13770/ltcube_371779201_372038401_4FGL_J1351.0+0029_daily_bin511.fits outfile=/scratch/kocevski/13770/expmap_371779201_372038401_4FGL_J1351.0+0029_daily_bin511.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/13770/ltcube_371779201_372038401_4FGL_J1351.0+0029_daily_bin511.fits
.....................!
real 192.27
user 186.94
sys 4.54

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/13770/ft1_filtered_4FGL_J1351.0+0029_daily_bin511.fits scfile=/scratch/kocevski/13770/ft2_4FGL_J1351.0+0029_daily_bin511.fits outfile=/scratch/kocevski/13770/cmap_371779201_372038401_4FGL_J1351.0+0029_daily_bin511.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13770/ft1_filtered_4FGL_J1351.0+0029_daily_bin511.fits scfile=/scratch/kocevski/13770/ft2_4FGL_J1351.0+0029_daily_bin511.fits outfile=/scratch/kocevski/13770/cmap_HighResolution_371779201_372038401_4FGL_J1351.0+0029_daily_bin511.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.57
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/13770/ft1_filtered_4FGL_J1351.0+0029_daily_bin511.fits', '/scratch/kocevski/13770/ft2_4FGL_J1351.0+0029_daily_bin511.fits', expMap='/scratch/kocevski/13770/expmap_371779201_372038401_4FGL_J1351.0+0029_daily_bin511.fits', expCube='/scratch/kocevski/13770/ltcube_371779201_372038401_4FGL_J1351.0+0029_daily_bin511.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/13770/Model_4FGL_J1351.0+0029_daily_bin511.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/13770/ft1_filtered_4FGL_J1351.0+0029_daily_bin511.fits
Spacecraft file(s): /scratch/kocevski/13770/ft2_4FGL_J1351.0+0029_daily_bin511.fits
Exposure map: /scratch/kocevski/13770/expmap_371779201_372038401_4FGL_J1351.0+0029_daily_bin511.fits
Exposure cube: /scratch/kocevski/13770/ltcube_371779201_372038401_4FGL_J1351.0+0029_daily_bin511.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/13770/Model_4FGL_J1351.0+0029_daily_bin511.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) = 8375.47860973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    56.232       1.0000         .10000E-03   10000.    
     2 'norm      '    62.909       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7212       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5033       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0376       1.0000         .10000E-03   10000.    
     6 'Prefactor '    70.785       1.0000         .10000E-03   10000.    
     7 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3703       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.3751       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5615       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6066       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.916       1.0000         .10000E-03   10000.    
    16 'norm      '    11.797       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.031       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.7783       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .78124       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.5142       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=   8375.463     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2235 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          56.235        16.434        .28866E-06    .56331E-05
   2  norm          62.913        28.078        .68833E-06    .32524E-05
   3  Prefactor     3.7201        14.345        .12508E-06   -.27852E-05
   4  Prefactor     2.5013        19.717        .21343E-05   -.50152E-05
   5  norm          1.0376        1.4523        .65557E-07   -.66646E-04
   6  Prefactor     70.691        58.885        .21023E-05   -.99162E-06
   7  norm          .10000E-03    9.2853        .78842E-07** at limit **
   8  Prefactor     3.3696        4.6353        .17389E-06   -.24667E-04
   9  Prefactor     .10000E-03    7.7643        .81028E-07** at limit **
  10  Prefactor     .10000E-03    3.2890       -.12218E-06** at limit **
  11  norm          4.3748        6.7808        .21648E-05   -.79945E-05
  12  Prefactor     2.5624        8.3932       -.15325E-07   -.94700E-06
  13  norm          1.6066        1.9999        .81451E-07    .21856E-04
  14  Prefactor     .10000E-03    6.4812        .81710E-07** at limit **
  15  norm          15.917        10.749       -.33149E-06   -.31216E-05
  16  norm          11.798        7.1578        .16260E-07   -.53830E-05
  17  Prefactor     .10000E-03    12.191        .18606E-07** at limit **
  18  norm          12.037        14.940        .26164E-06   -.57523E-06
  19  Prefactor     8.8503        71.476        .33471E-05   -.90277E-07
  20  Normalizat    .78147        .22730       -.83045E-06   -.21181E-04
  21  Prefactor     1.5141        .15809       -.17377E-06   -.58065E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 56.2347
  norm       = 62.9127
  Prefactor  = 3.72007
  Prefactor  = 2.50129
  norm       = 1.03762
  Prefactor  = 70.6909
  norm       = 0.0001
  Prefactor  = 3.36955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.37484
  Prefactor  = 2.56243
  norm       = 1.60662
  Prefactor  = 0.0001
  norm       = 15.9168
  norm       = 11.7976
  Prefactor  = 0.0001
  norm       = 12.0372
  Prefactor  = 8.85031
  Normalizat = 0.781468
  Prefactor  = 1.51408
 **********
 **   18 **HESSE 
 **********

 FCN=   8375.463     FROM HESSE     STATUS=OK           325 CALLS     2560 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          56.235        16.431        .53494E-04   -1.4207    
   2  norm          62.913        28.079        .50593E-04   -1.4120    
   3  Prefactor     3.7201        14.326        .20933E-03   -1.5322    
   4  Prefactor     2.5013        19.710        .25828E-03   -1.5392    
   5  norm          1.0376        1.4116        .12174E-03   -1.5504    
   6  Prefactor     70.691        58.857        .23857E-03   -1.4024    
   7  norm          .10000E-03    9.2895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3696        4.6253        .21694E-03   -1.5341    
   9  Prefactor     .10000E-03    7.7839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3464        .16208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.3748        6.7805        .96278E-03   -1.5290    
  12  Prefactor     2.5624        8.3782        .25507E-03   -1.5388    
  13  norm          1.6066        1.9778        .13784E-03   -1.5454    
  14  Prefactor     .10000E-03    6.4922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.917        10.754        .10039E-03   -1.4910    
  16  norm          11.798        7.1486        .11663E-03   -1.5021    
  17  Prefactor     .10000E-03    12.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.037        14.939        .11549E-03   -1.5014    
  19  Prefactor     8.8503        71.668        .13529E-03   -1.5113    
  20  Normalizat    .78147        .26393        .39107E-03   -1.0076    
  21  Prefactor     1.5141        .18695        .21251E-03   -.77146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.15649e-11
Minuit parameter uncertainties:
  1  16.4328
  2  28.0849
  3  14.3391
  4  14.0491
  5  1.4116
  6  58.9053
  7  1.06032e-06
  8  4.62583
  9  5.71994e-06
  10  4.30067e-06
  11  6.7817
  12  8.38205
  13  1.97784
  14  3.4633e-06
  15  10.7554
  16  7.14907
  17  1.93058e-06
  18  14.9438
  19  50.4525
  20  0.264363
  21  0.187035
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  5.720e-06  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:  1.514e+00  1.870e-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:  7.815e-01  2.644e-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: 6.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13770/likelihoodResults_371779201_372038401_4FGL_J1351.0+0029_daily_bin511.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) = 8375.4631506
delta logL = -0.00061105659006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8375.46253969
delta logL = -1.42494172906e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4127       1.0000          .0000       10.000    
     3 'Normalizat'    .78146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5141       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=   8375.463     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      250 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10183E-03    72.716        .18142E-02** at limit **
   2  Index         2.3467        6.0123        .50000        .21633E-04
   3  Normalizat    .78147        .15390E-01    .39107E-03   -.88956E-05
   4  Prefactor     1.5141        .11269E-01    .21251E-03   -.19687E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101834
  Index      = 2.34667
  Normalizat = 0.781469
  Prefactor  = 1.51408
 **********
 **   18 **HESSE 
 **********

 FCN=   8375.463     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10183E-03    305.41        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3467        5.2917        .50000       -.55939    
   3  Normalizat    .78147        .32672E-01    .15643E-04   -1.0076    
   4  Prefactor     1.5141        .23925E-01    .85002E-05   -.77146    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.96397e-08
Minuit parameter uncertainties:
  1  0.0475754
  2  559.792
  3  0.0326731
  4  0.0239251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13770': 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) = 8375.46253913
delta logL = 4.08452251577e-07

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.018e-04  4.758e-02  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.347e+00  5.598e+02  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:  1.514e+00  2.393e-02  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:  7.815e-01  3.267e-02  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/13770/cmap_HighResolution_371779201_372038401_4FGL_J1351.0+0029_daily_bin511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.08e-08', time_completed='2021-09-08 15:29:13.943000', job_id='13770', GAL2='1.51', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1631140153.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.51', dlogl='4.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='511' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:29:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 13770: <4FGL_J1351.0+0029_daily_bin511> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin511> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:15:34 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:15:41 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:15:41 2021
Terminated at Wed Sep  8 15:29:14 2021
Results reported at Wed Sep  8 15:29:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin511 207.757 0.4873 371779201 372038401 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 :                                   674.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             275.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            820 sec.

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

