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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin627
RA = 207.757, Dec = 0.4873
tmin = 401846401, tmax = 402105601
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='15677', job_status='RUN', time_executed='2021-09-08 15:25:02.069016', time_epoch_executed='1631139902.07' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15677

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15677/ft1_4FGL_J1351.0+0029_daily_bin627.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15677/ft2_4FGL_J1351.0+0029_daily_bin627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15677/ft1_4FGL_J1351.0+0029_daily_bin627.fits outfile=/scratch/kocevski/15677/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin627.fits ra=207.757 dec=0.4873 rad=12.0 tmin=401846401.0 tmax=402105601.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.60
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15677/ft1_filtered_4FGL_J1351.0+0029_daily_bin627.fits" evtable="EVENTS" scfile=/scratch/kocevski/15677/ft2_4FGL_J1351.0+0029_daily_bin627.fits sctable="SC_DATA" outfile=/scratch/kocevski/15677/ltcube_401846401_402105601_4FGL_J1351.0+0029_daily_bin627.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/15677/ft2_4FGL_J1351.0+0029_daily_bin627.fits
.....................!
real 15.08
user 14.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15677/ft1_filtered_4FGL_J1351.0+0029_daily_bin627.fits evtable="EVENTS" scfile=/scratch/kocevski/15677/ft2_4FGL_J1351.0+0029_daily_bin627.fits sctable="SC_DATA" expcube=/scratch/kocevski/15677/ltcube_401846401_402105601_4FGL_J1351.0+0029_daily_bin627.fits outfile=/scratch/kocevski/15677/expmap_401846401_402105601_4FGL_J1351.0+0029_daily_bin627.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/15677/ltcube_401846401_402105601_4FGL_J1351.0+0029_daily_bin627.fits
.....................!
real 194.91
user 187.17
sys 5.76

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/15677/ft1_filtered_4FGL_J1351.0+0029_daily_bin627.fits scfile=/scratch/kocevski/15677/ft2_4FGL_J1351.0+0029_daily_bin627.fits outfile=/scratch/kocevski/15677/cmap_401846401_402105601_4FGL_J1351.0+0029_daily_bin627.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15677/ft1_filtered_4FGL_J1351.0+0029_daily_bin627.fits scfile=/scratch/kocevski/15677/ft2_4FGL_J1351.0+0029_daily_bin627.fits outfile=/scratch/kocevski/15677/cmap_HighResolution_401846401_402105601_4FGL_J1351.0+0029_daily_bin627.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.851       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9436       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.940       1.0000         .10000E-03   10000.    
     5 'norm      '    4.4446       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.640       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14262       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0618       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4475       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.400       1.0000         .10000E-03   10000.    
    13 'norm      '    3.9125       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.915       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1570       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96875       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=   5774.709     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     1929 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.854        11.126        .16260E-05   -.14949E-04
   2  norm          .10000E-03    6.4129       -.13484E-06** at limit **
   3  Prefactor     5.9068        19.037       -.19456E-04   -.41214E-04
   4  Prefactor     20.943        15.514        .73194E-05   -.54647E-05
   5  norm          4.4459        2.0554        .11545E-06   -.12011E-03
   6  Prefactor     20.441        50.083       -.58988E-05   -.69501E-06
   7  norm          .10000E-03    15.331        .92816E-06** at limit **
   8  Prefactor     .18790        2.2848       -.24232E-06   -.35268E-03
   9  Prefactor     4.0598        16.074        .29525E-05   -.75678E-04
  10  Prefactor     5.4478        4.8354       -.97195E-06   -.24913E-02
  11  norm          .10000E-03    2.8358        .97019E-07** at limit **
  12  Prefactor     10.396        18.164        .85138E-05   -.32577E-04
  13  norm          3.9130        2.4981        .30086E-07   -.12494E-03
  14  Prefactor     10.912        27.681       -.68605E-06   -.39914E-04
  15  norm          .10000E-03    10.504       -.16998E-06** at limit **
  16  norm          .10000E-03    3.1977       -.46414E-07** at limit **
  17  Prefactor     .10000E-03    25.388       -.57110E-05** at limit **
  18  norm          .10000E-03    25.263        .74153E-05** at limit **
  19  Prefactor     .10000E-03    81.740        .83414E-05** at limit **
  20  Normalizat    1.1567        .23413       -.79707E-06    .38004E-04
  21  Prefactor     .96884        .15448       -.46656E-06    .23332E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.8538
  norm       = 0.0001
  Prefactor  = 5.90675
  Prefactor  = 20.9433
  norm       = 4.44588
  Prefactor  = 20.4412
  norm       = 0.0001
  Prefactor  = 0.187897
  Prefactor  = 4.0598
  Prefactor  = 5.4478
  norm       = 0.0001
  Prefactor  = 10.3964
  norm       = 3.91298
  Prefactor  = 10.9122
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15666
  Prefactor  = 0.968843
 **********
 **   18 **HESSE 
 **********

 FCN=   5774.709     FROM HESSE     STATUS=OK           323 CALLS     2252 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.854        11.115        .11637E-03   -1.5019    
   2  norm          .10000E-03    6.4159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9068        19.124        .16471E-03   -1.5222    
   4  Prefactor     20.943        15.439        .87530E-04   -1.4792    
   5  norm          4.4459        2.0570        .70193E-04   -1.5286    
   6  Prefactor     20.441        50.035        .88162E-04   -1.4803    
   7  norm          .10000E-03    15.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .18790        19.665        .21743E-02   -1.5621    
   9  Prefactor     4.0598        16.009        .20006E-03   -1.5305    
  10  Prefactor     5.4478        4.9468        .77938E-03   -1.5241    
  11  norm          .10000E-03    2.8481        .12497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.396        18.015        .12425E-03   -1.5063    
  13  norm          3.9130        2.4977        .92674E-04   -1.5312    
  14  Prefactor     10.912        27.620        .12127E-03   -1.5047    
  15  norm          .10000E-03    10.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.2197        .13270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    25.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    81.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1567        .28158        .29324E-03   -.87953    
  21  Prefactor     .96884        .18614        .21902E-03   -.93775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59388e-09
Minuit parameter uncertainties:
  1  11.1174
  2  5.9144e-07
  3  19.144
  4  15.4417
  5  2.05702
  6  50.1379
  7  4.20205e-06
  8  3.84476
  9  16.0256
  10  4.94714
  11  1.6113e-06
  12  18.024
  13  2.49774
  14  27.6524
  15  5.65899e-06
  16  1.53084e-06
  17  1.84016e-06
  18  3.30498e-06
  19  1.11237e-05
  20  0.281945
  21  0.186264
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  4.060e+00  1.603e+01  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:  9.688e-01  1.863e-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.157e+00  2.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15677/likelihoodResults_401846401_402105601_4FGL_J1351.0+0029_daily_bin627.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) = 5774.68347883
delta logL = 0.0255553272109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5774.26858271
delta logL = 0.440451444852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.6462       1.0000          .0000       10.000    
     3 'Normalizat'    1.0883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0040       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=   5774.748     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      375 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.177       -.73236E-05** at limit **
   2  Index         1.5622        .37519        .39737E-05   -.26895E-04
   3  Normalizat    1.1616        .26780        .14781E-04   -.11636E-03
   4  Prefactor     .96925        .18558       -.12738E-04   -.25657E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 1.56221
  Normalizat = 1.16155
  Prefactor  = 0.969254
 **********
 **   18 **HESSE 
 **********

 FCN=   5774.748     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      412 TOTAL
                     EDM=   .28E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    381.64        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5622        5.7334        .50000       -.75812    
   3  Normalizat    1.1616        .21878E-01    .66167E-01   -.87799    
   4  Prefactor     .96925        .15179E-01    .44413E-01   -.93762    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.83042e-05
Minuit parameter uncertainties:
  1  0.00240974
  2  709.414
  3  0.021878
  4  0.0151791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15677': 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) = 5774.74761568
delta logL = -0.0385815207956

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  2.410e-03  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  1.562e+00  7.094e+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:  9.693e-01  1.518e-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:  1.162e+00  2.188e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/15677/cmap_HighResolution_401846401_402105601_4FGL_J1351.0+0029_daily_bin627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.06e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-08 15:34:17.012944', job_id='15677', GAL2='0.97', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631140457.01', return_code2='102', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-3.86e-02', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='627' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:34:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 15677: <4FGL_J1351.0+0029_daily_bin627> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin627> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 15:20:25 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:21:35 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:35 2021
Terminated at Wed Sep  8 15:34:17 2021
Results reported at Wed Sep  8 15:34:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin627 207.757 0.4873 401846401 402105601 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 :                                   551.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             251.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            832 sec.

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

