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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin997
RA = 207.757, Dec = 0.4873
tmin = 497750401, tmax = 498009601
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='17343', job_status='RUN', time_executed='2021-09-08 15:29:27.485383', time_epoch_executed='1631140167.49' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='997'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17343

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17343/ft1_4FGL_J1351.0+0029_daily_bin997.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17343/ft2_4FGL_J1351.0+0029_daily_bin997.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17343/ft1_4FGL_J1351.0+0029_daily_bin997.fits outfile=/scratch/kocevski/17343/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin997.fits ra=207.757 dec=0.4873 rad=12.0 tmin=497750401.0 tmax=498009601.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.85
user 4.49
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17343/ft1_filtered_4FGL_J1351.0+0029_daily_bin997.fits" evtable="EVENTS" scfile=/scratch/kocevski/17343/ft2_4FGL_J1351.0+0029_daily_bin997.fits sctable="SC_DATA" outfile=/scratch/kocevski/17343/ltcube_497750401_498009601_4FGL_J1351.0+0029_daily_bin997.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/17343/ft2_4FGL_J1351.0+0029_daily_bin997.fits
.....................!
real 15.66
user 15.21
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17343/ft1_filtered_4FGL_J1351.0+0029_daily_bin997.fits evtable="EVENTS" scfile=/scratch/kocevski/17343/ft2_4FGL_J1351.0+0029_daily_bin997.fits sctable="SC_DATA" expcube=/scratch/kocevski/17343/ltcube_497750401_498009601_4FGL_J1351.0+0029_daily_bin997.fits outfile=/scratch/kocevski/17343/expmap_497750401_498009601_4FGL_J1351.0+0029_daily_bin997.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/17343/ltcube_497750401_498009601_4FGL_J1351.0+0029_daily_bin997.fits
.....................!
real 191.74
user 186.16
sys 5.12

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/17343/ft1_filtered_4FGL_J1351.0+0029_daily_bin997.fits scfile=/scratch/kocevski/17343/ft2_4FGL_J1351.0+0029_daily_bin997.fits outfile=/scratch/kocevski/17343/cmap_497750401_498009601_4FGL_J1351.0+0029_daily_bin997.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17343/ft1_filtered_4FGL_J1351.0+0029_daily_bin997.fits scfile=/scratch/kocevski/17343/ft2_4FGL_J1351.0+0029_daily_bin997.fits outfile=/scratch/kocevski/17343/cmap_HighResolution_497750401_498009601_4FGL_J1351.0+0029_daily_bin997.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.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.410       1.0000         .10000E-03   10000.    
     2 'norm      '    18.660       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.203       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0799       1.0000         .10000E-03   10000.    
     6 'Prefactor '    139.04       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .66924E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.220       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26250E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    3.3914       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3503       1.0000         .10000E-03   10000.    
    15 'norm      '    7.6578       1.0000         .10000E-03   10000.    
    16 'norm      '    10.244       1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.535       1.0000         .10000E-03   10000.    
    18 'norm      '    27.270       1.0000         .10000E-03   10000.    
    19 'Prefactor '    203.66       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1422       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0690       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=   5757.332     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2238 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.410        17.826        .18315E-06   -.29333E-04
   2  norm          18.661        15.835        .28294E-08    .51073E-05
   3  Prefactor     20.202        22.488       -.18470E-06   -.16864E-05
   4  Prefactor     .10000E-03    3.2447        .68650E-07** at limit **
   5  norm          1.0797        1.6578       -.29188E-06   -.90995E-03
   6  Prefactor     139.02        87.391       -.99110E-05    .18491E-03
   7  norm          .10000E-03    13.653       -.17025E-07** at limit **
   8  Prefactor     .10000E-03    2.5010        .84896E-07** at limit **
   9  Prefactor     .10000E-03    29.119       -.53793E-07** at limit **
  10  Prefactor     10.219        5.3965        .17694E-06    .18939E-04
  11  norm          .10000E-03    2.3451        .55751E-08** at limit **
  12  Prefactor     .10004E-03    11.283       -.11233E-05** at limit **
  13  norm          3.3914        3.2694       -.18583E-06   -.35126E-03
  14  Prefactor     8.3635        23.618        .69450E-05   -.81083E-04
  15  norm          7.6584        6.9100        .12814E-05    .17718E-02
  16  norm          10.244        9.5184        .87500E-08   -.19683E-04
  17  Prefactor     51.533        34.292       -.11870E-05    .51743E-04
  18  norm          27.270        24.851       -.67416E-07    .76758E-05
  19  Prefactor     203.65        134.02       -.52726E-05    .57322E-04
  20  Normalizat    1.1424        .25663        .54197E-06    .67039E-04
  21  Prefactor     1.0689        .17363        .46998E-06    .85962E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.4104
  norm       = 18.6606
  Prefactor  = 20.2016
  Prefactor  = 0.0001
  norm       = 1.0797
  Prefactor  = 139.023
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2193
  norm       = 0.0001
  Prefactor  = 0.000100036
  norm       = 3.3914
  Prefactor  = 8.3635
  norm       = 7.65836
  norm       = 10.2441
  Prefactor  = 51.5335
  norm       = 27.2698
  Prefactor  = 203.655
  Normalizat = 1.14235
  Prefactor  = 1.06893
 **********
 **   18 **HESSE 
 **********

 FCN=   5757.332     FROM HESSE     STATUS=OK           323 CALLS     2561 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.410        17.791        .98869E-04   -1.4898    
   2  norm          18.661        15.835        .92718E-04   -1.4844    
   3  Prefactor     20.202        22.504        .89110E-04   -1.4809    
   4  Prefactor     .10000E-03    3.2500        .13348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0797        1.6402        .11518E-03   -1.5500    
   6  Prefactor     139.02        84.337        .17081E-03   -1.3344    
   7  norm          .10000E-03    13.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.472        .22606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.219        5.3945        .12404E-03   -1.5069    
  11  norm          .10000E-03    2.3483        .11348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10004E-03    85.928        .47865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.3914        3.2631        .12739E-03   -1.5340    
  14  Prefactor     8.3635        22.998        .13873E-03   -1.5129    
  15  norm          7.6584        7.6085        .72456E-03   -1.5154    
  16  norm          10.244        9.5088        .12519E-03   -1.5068    
  17  Prefactor     51.533        34.350        .55867E-04   -1.4271    
  18  norm          27.270        24.848        .76716E-04   -1.4663    
  19  Prefactor     203.65        133.29        .28319E-04   -1.2844    
  20  Normalizat    1.1424        .30123        .31060E-03   -.88403    
  21  Prefactor     1.0689        .20778        .22599E-03   -.90466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27708e-09
Minuit parameter uncertainties:
  1  17.7965
  2  15.8382
  3  22.5131
  4  6.51175e-07
  5  1.64029
  6  84.4101
  7  1.00361e-06
  8  2.73678e-05
  9  3.96303e-05
  10  5.39476
  11  6.21184e-07
  12  0.00353085
  13  3.26326
  14  23.0219
  15  7.60946
  16  9.51018
  17  34.3632
  18  24.8576
  19  133.491
  20  0.301683
  21  0.207934
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  3.963e-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:  1.069e+00  2.079e-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.142e+00  3.017e-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.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17343/likelihoodResults_497750401_498009601_4FGL_J1351.0+0029_daily_bin997.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) = 5757.33235894
delta logL = -0.000162805175023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5757.33219642
delta logL = -2.87288457912e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3591       1.0000          .0000       10.000    
     3 'Normalizat'    1.1424       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0689       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=   5757.332     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      275 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6633.4        .18142E-02** at limit **
   2  Index         2.4006        6.9873        .50000       -.15495E-04
   3  Normalizat    1.1424        .86705E-01    .31060E-03   -.35504E-04
   4  Prefactor     1.0689        .61630E-01    .22599E-03   -.86780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.40056
  Normalizat = 1.14235
  Prefactor  = 1.06893
 **********
 **   18 **HESSE 
 **********

 FCN=   5757.332     FROM HESSE     STATUS=OK            29 CALLS      304 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    37.783        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4006        6.1672        .50000       -.54672    
   3  Normalizat    1.1424        .28826        .12424E-04   -.88403    
   4  Prefactor     1.0689        .20508        .90394E-05   -.90466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21527e-10
Minuit parameter uncertainties:
  1  0.000994914
  2  5.06923
  3  0.288662
  4  0.20523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17343': 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): 0
logL (Free Index) = 5757.33219627
delta logL = -1.34922629513e-07

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  9.949e-04  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.401e+00  5.069e+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:  1.069e+00  2.052e-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.142e+00  2.887e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/17343/cmap_HighResolution_497750401_498009601_4FGL_J1351.0+0029_daily_bin997.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.07e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-08 15:39:08.460922', job_id='17343', GAL2='1.07', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1631140748.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='-1.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='997' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:39:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 17343: <4FGL_J1351.0+0029_daily_bin997> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin997> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 15:25:46 2021
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:26:51 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:26:51 2021
Terminated at Wed Sep  8 15:39:09 2021
Results reported at Wed Sep  8 15:39:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin997 207.757 0.4873 497750401 498009601 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 :                                   576.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            803 sec.

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

