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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin539
RA = 207.757, Dec = 0.4873
tmin = 379036801, tmax = 379296001
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='13811', job_status='RUN', time_executed='2021-09-08 15:18:39.244905', time_epoch_executed='1631139519.24' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13811/ft1_4FGL_J1351.0+0029_daily_bin539.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13811/ft2_4FGL_J1351.0+0029_daily_bin539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13811/ft1_4FGL_J1351.0+0029_daily_bin539.fits outfile=/scratch/kocevski/13811/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin539.fits ra=207.757 dec=0.4873 rad=12.0 tmin=379036801.0 tmax=379296001.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.48
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13811/ft2_4FGL_J1351.0+0029_daily_bin539.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/13811/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin539.fits evtable="EVENTS" outfile="/scratch/kocevski/13811/ft1_filtered_4FGL_J1351.0+0029_daily_bin539.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/13811/ft1_filtered_4FGL_J1351.0+0029_daily_bin539.fits" evtable="EVENTS" scfile=/scratch/kocevski/13811/ft2_4FGL_J1351.0+0029_daily_bin539.fits sctable="SC_DATA" outfile=/scratch/kocevski/13811/ltcube_379036801_379296001_4FGL_J1351.0+0029_daily_bin539.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/13811/ft2_4FGL_J1351.0+0029_daily_bin539.fits
.....................!
real 15.17
user 14.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13811/ft1_filtered_4FGL_J1351.0+0029_daily_bin539.fits evtable="EVENTS" scfile=/scratch/kocevski/13811/ft2_4FGL_J1351.0+0029_daily_bin539.fits sctable="SC_DATA" expcube=/scratch/kocevski/13811/ltcube_379036801_379296001_4FGL_J1351.0+0029_daily_bin539.fits outfile=/scratch/kocevski/13811/expmap_379036801_379296001_4FGL_J1351.0+0029_daily_bin539.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/13811/ltcube_379036801_379296001_4FGL_J1351.0+0029_daily_bin539.fits
.....................!
real 191.50
user 185.71
sys 5.33

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/13811/ft1_filtered_4FGL_J1351.0+0029_daily_bin539.fits scfile=/scratch/kocevski/13811/ft2_4FGL_J1351.0+0029_daily_bin539.fits outfile=/scratch/kocevski/13811/cmap_379036801_379296001_4FGL_J1351.0+0029_daily_bin539.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.59
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13811/ft1_filtered_4FGL_J1351.0+0029_daily_bin539.fits scfile=/scratch/kocevski/13811/ft2_4FGL_J1351.0+0029_daily_bin539.fits outfile=/scratch/kocevski/13811/cmap_HighResolution_379036801_379296001_4FGL_J1351.0+0029_daily_bin539.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.61
user 0.43
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    38.554       1.0000         .10000E-03   10000.    
     2 'norm      '    11.503       1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.464       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3167       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2260       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18559E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10491E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .34609       1.0000         .10000E-03   10000.    
    11 'norm      '    2.4129       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1368       1.0000         .10000E-03   10000.    
    13 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11944E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.882       1.0000         .10000E-03   10000.    
    16 'norm      '    7.5382       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12521E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    26.745       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17990E-01   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0530       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0910       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=   7122.478     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     1945 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          38.545        15.738       -.38345E-07   -.20184E-03
   2  norm          11.502        13.216        .14616E-06    .52506E-04
   3  Prefactor     45.428        25.307        .82261E-06    .29819E-03
   4  Prefactor     2.3128        7.5716        .92706E-06   -.64035E-04
   5  norm          2.2259        1.4925        .11878E-06   -.36343E-04
   6  Prefactor     .10000E-03    27.825        .91646E-06** at limit **
   7  norm          .10000E-03    98.349        .45317E-07** at limit **
   8  Prefactor     .10000E-03    1.7342       -.26706E-07** at limit **
   9  Prefactor     .10000E-03    4.5942        .29152E-07** at limit **
  10  Prefactor     .34482        5.0002        .42087E-05   -.21555E-03
  11  norm          2.4097        6.5633        .10056E-05   -.25540E-04
  12  Prefactor     1.1308        23.815        .52100E-05    .23605E-05
  13  norm          .10000E-03    .95757       -.37225E-07** at limit **
  14  Prefactor     .10000E-03    43.017       -.45182E-08** at limit **
  15  norm          13.865        11.465        .59426E-08   -.60127E-04
  16  norm          7.5396        7.0955        .86309E-07   -.74473E-04
  17  Prefactor     .10000E-03    27.207       -.11799E-05** at limit **
  18  norm          26.742        20.203       -.93827E-07   -.34952E-05
  19  Prefactor     .10001E-03    698.06       -.55676E-05** at limit **
  20  Normalizat    1.0532        .21124       -.23487E-05   -.66638E-04
  21  Prefactor     1.0910        .14726        .42818E-06   -.26223E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 38.5446
  norm       = 11.5015
  Prefactor  = 45.4285
  Prefactor  = 2.31281
  norm       = 2.22585
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.344824
  norm       = 2.40967
  Prefactor  = 1.13082
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.8652
  norm       = 7.53958
  Prefactor  = 0.000100001
  norm       = 26.7416
  Prefactor  = 0.000100006
  Normalizat = 1.05316
  Prefactor  = 1.09104
 **********
 **   18 **HESSE 
 **********

 FCN=   7122.478     FROM HESSE     STATUS=OK           313 CALLS     2258 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          38.545        15.746        .64551E-04   -1.4465    
   2  norm          11.502        13.221        .11812E-03   -1.5030    
   3  Prefactor     45.428        25.489        .59463E-04   -1.4359    
   4  Prefactor     2.3128        7.5603        .26952E-03   -1.5404    
   5  norm          2.2259        1.4875        .80452E-04   -1.5410    
   6  Prefactor     .10000E-03    27.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    101.24        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.7550        .10847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.5957        .17666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .34482        5.0737        .36133E-03   -1.5591    
  11  norm          2.4097        6.5701        .26353E-03   -1.5397    
  12  Prefactor     1.1308        24.503        .43684E-03   -1.5495    
  13  norm          .10000E-03    .97466        .80581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    43.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.865        11.480        .10750E-03   -1.4963    
  16  norm          7.5396        7.1015        .14607E-03   -1.5159    
  17  Prefactor     .10000E-03    27.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          26.742        20.200        .77463E-04   -1.4673    
  19  Prefactor     .10001E-03    725.83        .36451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0532        .24738        .30558E-03   -.91270    
  21  Prefactor     1.0910        .17414        .21361E-03   -.89754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79939e-10
Minuit parameter uncertainties:
  1  15.748
  2  13.2245
  3  25.495
  4  7.56346
  5  1.48754
  6  0.000476064
  7  3.60029e-05
  8  1.90467e-06
  9  2.37795e-06
  10  2.64528
  11  6.57202
  12  10.5322
  13  2.05395e-06
  14  5.79567e-05
  15  11.4819
  16  7.10233
  17  0.000380951
  18  20.2051
  19  0.00414686
  20  0.24765
  21  0.174227
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  2.378e-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.091e+00  1.742e-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.053e+00  2.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/13811/likelihoodResults_379036801_379296001_4FGL_J1351.0+0029_daily_bin539.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) = 7122.47873841
delta logL = -0.00102553832585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7122.47771276
delta logL = 1.18641764857e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4168       1.0000          .0000       10.000    
     3 'Normalizat'    1.0531       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0911       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=   7122.478     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      258 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.090        .17961E-01** at limit **
   2  Index         1.7565        9.0759        .50000       -.73027E-06
   3  Normalizat    1.0532        .94699E-02    .30558E-03   -.76266E-04
   4  Prefactor     1.0910        .67643E-02    .21361E-03   -.98704E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.75647
  Normalizat = 1.05315
  Prefactor  = 1.09104
 **********
 **   18 **HESSE 
 **********

 FCN=   7122.478     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      285 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    194.66        .20751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7565        8.7491        .50000       -.70588    
   3  Normalizat    1.0532        .29046E-01    .12223E-04   -.91270    
   4  Prefactor     1.0910        .20748E-01    .42722E-04   -.89753    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.52831e-08
Minuit parameter uncertainties:
  1  6.05268e-06
  2  826.039
  3  0.0290462
  4  0.0207478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13811': 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) = 7122.47770988
delta logL = 2.99287967209e-06

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  6.053e-06  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  1.756e+00  8.260e+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.091e+00  2.075e-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.053e+00  2.905e-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/13811/cmap_HighResolution_379036801_379296001_4FGL_J1351.0+0029_daily_bin539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.74e-03', job_status='DONE', photon_flux_upper_limit='4.82e-08', time_completed='2021-09-08 15:28:35.900787', job_id='13811', GAL2='1.09', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1631140115.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.99e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='539' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:28:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 13811: <4FGL_J1351.0+0029_daily_bin539> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin539> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:15:37 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:15:44 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:44 2021
Terminated at Wed Sep  8 15:28:36 2021
Results reported at Wed Sep  8 15:28:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin539 207.757 0.4873 379036801 379296001 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 :                                   592.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            779 sec.

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

