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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin744
RA = 207.757, Dec = 0.4873
tmin = 432172801, tmax = 432432001
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='15867', job_status='RUN', time_executed='2021-09-08 15:25:21.687150', time_epoch_executed='1631139921.69' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15867/ft1_4FGL_J1351.0+0029_daily_bin744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15867/ft2_4FGL_J1351.0+0029_daily_bin744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15867/ft1_4FGL_J1351.0+0029_daily_bin744.fits outfile=/scratch/kocevski/15867/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin744.fits ra=207.757 dec=0.4873 rad=12.0 tmin=432172801.0 tmax=432432001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.29
user 4.89
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15867/ft1_filtered_4FGL_J1351.0+0029_daily_bin744.fits" evtable="EVENTS" scfile=/scratch/kocevski/15867/ft2_4FGL_J1351.0+0029_daily_bin744.fits sctable="SC_DATA" outfile=/scratch/kocevski/15867/ltcube_432172801_432432001_4FGL_J1351.0+0029_daily_bin744.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/15867/ft2_4FGL_J1351.0+0029_daily_bin744.fits
.....................!
real 17.03
user 16.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15867/ft1_filtered_4FGL_J1351.0+0029_daily_bin744.fits evtable="EVENTS" scfile=/scratch/kocevski/15867/ft2_4FGL_J1351.0+0029_daily_bin744.fits sctable="SC_DATA" expcube=/scratch/kocevski/15867/ltcube_432172801_432432001_4FGL_J1351.0+0029_daily_bin744.fits outfile=/scratch/kocevski/15867/expmap_432172801_432432001_4FGL_J1351.0+0029_daily_bin744.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/15867/ltcube_432172801_432432001_4FGL_J1351.0+0029_daily_bin744.fits
.....................!
real 191.62
user 186.79
sys 4.31

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/15867/ft1_filtered_4FGL_J1351.0+0029_daily_bin744.fits scfile=/scratch/kocevski/15867/ft2_4FGL_J1351.0+0029_daily_bin744.fits outfile=/scratch/kocevski/15867/cmap_432172801_432432001_4FGL_J1351.0+0029_daily_bin744.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15867/ft1_filtered_4FGL_J1351.0+0029_daily_bin744.fits scfile=/scratch/kocevski/15867/ft2_4FGL_J1351.0+0029_daily_bin744.fits outfile=/scratch/kocevski/15867/cmap_HighResolution_432172801_432432001_4FGL_J1351.0+0029_daily_bin744.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7984       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8897       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    22.913       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1527       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.571       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4729       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7042       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.3181       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8696       1.0000         .10000E-03   10000.    
    15 'norm      '    15.481       1.0000         .10000E-03   10000.    
    16 'norm      '    .11864E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.586       1.0000         .10000E-03   10000.    
    18 'norm      '    8.6691       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2097       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0930       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=   7906.905     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2187 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7984        7.3778        .15888E-06    .56501E-05
   2  norm          .10000E-03    7.6986       -.40544E-06** at limit **
   3  Prefactor     .10000E-03    8.9746        .60588E-06** at limit **
   4  Prefactor     .10000E-03    19.376       -.66057E-06** at limit **
   5  norm          1.8899        1.6069        .26634E-07   -.27144E-04
   6  Prefactor     .10000E-03    19.749       -.11873E-05** at limit **
   7  norm          22.910        35.566        .67743E-06   -.12382E-04
   8  Prefactor     1.1524        4.5390        .30289E-06    .81234E-04
   9  Prefactor     16.558        28.384        .33569E-05   -.14649E-04
  10  Prefactor     3.4729        4.3112        .20122E-05    .42415E-03
  11  norm          2.7037        5.6824        .40548E-06    .22404E-04
  12  Prefactor     .10000E-03    9.6526       -.15264E-05** at limit **
  13  norm          6.3186        2.2292       -.13540E-07    .15566E-03
  14  Prefactor     4.8689        26.379        .83999E-06    .13607E-04
  15  norm          15.480        9.8096        .41694E-07   -.52823E-06
  16  norm          .10000E-03    3.8659       -.18149E-05** at limit **
  17  Prefactor     32.590        26.913       -.44777E-06    .19205E-04
  18  norm          8.6672        18.996        .65375E-06   -.52067E-05
  19  Prefactor     .10000E-03    20.995        .22220E-05** at limit **
  20  Normalizat    1.2096        .21871       -.20625E-06    .10733E-03
  21  Prefactor     1.0931        .14595       -.50056E-06    .16852E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.79839
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.88991
  Prefactor  = 0.0001
  norm       = 22.91
  Prefactor  = 1.15244
  Prefactor  = 16.5577
  Prefactor  = 3.47294
  norm       = 2.70374
  Prefactor  = 0.0001
  norm       = 6.31857
  Prefactor  = 4.86892
  norm       = 15.4804
  norm       = 0.000100004
  Prefactor  = 32.5898
  norm       = 8.66722
  Prefactor  = 0.0001
  Normalizat = 1.20955
  Prefactor  = 1.09308
 **********
 **   18 **HESSE 
 **********

 FCN=   7906.905     FROM HESSE     STATUS=OK           323 CALLS     2510 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7984        7.3640        .20711E-03   -1.5318    
   2  norm          .10000E-03    7.7214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.9901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.859        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8899        1.5983        .97921E-04   -1.5433    
   6  Prefactor     .10000E-03    19.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          22.910        35.569        .83680E-04   -1.4750    
   8  Prefactor     1.1524        4.5274        .35345E-03   -1.5493    
   9  Prefactor     16.558        28.582        .98388E-04   -1.4894    
  10  Prefactor     3.4729        4.4311        .10277E-02   -1.5335    
  11  norm          2.7037        5.6736        .24771E-03   -1.5379    
  12  Prefactor     .10000E-03    9.8229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.3186        2.2235        .75871E-04   -1.5205    
  14  Prefactor     4.8689        26.299        .18228E-03   -1.5267    
  15  norm          15.480        9.8141        .10180E-03   -1.4921    
  16  norm          .10000E-03    8.7679        .30250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.590        27.012        .70195E-04   -1.4566    
  18  norm          8.6672        18.986        .13614E-03   -1.5119    
  19  Prefactor     .10000E-03    21.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2096        .25990        .31119E-03   -.86308    
  21  Prefactor     1.0931        .17281        .22308E-03   -.89688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.27873e-10
Minuit parameter uncertainties:
  1  7.36576
  2  1.18787e-05
  3  1.54913e-05
  4  8.97141e-05
  5  1.59829
  6  4.23252e-05
  7  35.6023
  8  4.52872
  9  28.6056
  10  4.43151
  11  5.67472
  12  3.2071e-05
  13  2.2235
  14  22.6468
  15  9.81512
  16  0.00038867
  17  27.0218
  18  18.9993
  19  7.18334e-05
  20  0.260179
  21  0.172901
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.656e+01  2.861e+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:  1.093e+00  1.729e-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.210e+00  2.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.41
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 1.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15867/likelihoodResults_432172801_432432001_4FGL_J1351.0+0029_daily_bin744.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): 0
logL (Free Index) = 7906.7830316
delta logL = 0.122265070512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7906.76615397
delta logL = 0.139142699629

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.626       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8732       1.0000          .0000       10.000    
     3 'Normalizat'    1.1888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1009       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=   7906.766     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      247 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.617        25.911        .11273E-03    .60025E-03
   2  Index         2.8738        .97613        .88209E-02    .25048E-03
   3  Normalizat    1.1888        .25344        .31354E-03   -.21859E-02
   4  Prefactor     1.1009        .17092        .22236E-03   -.27715E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6171
  Index      = 2.87378
  Normalizat = 1.18876
  Prefactor  = 1.10088
 **********
 **   18 **HESSE 
 **********

 FCN=   7906.766     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.617        22.658        .45092E-05   -1.4997    
   2  Index         2.8738        .85353        .35284E-03   -.43923    
   3  Normalizat    1.1888        .25380        .62708E-04   -.86951    
   4  Prefactor     1.1009        .17097        .44473E-04   -.89439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77453e-09
Minuit parameter uncertainties:
  1  22.6734
  2  0.858672
  3  0.254067
  4  0.171055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15867': 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) = 7906.76615371
delta logL = 0.139142964535

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.262e+01  2.267e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.874e+00  8.587e-01  0.000e+00  1.000e+01 (-1.000e+00)
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.101e+00  1.711e-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.189e+00  2.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.41
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/15867/cmap_HighResolution_432172801_432432001_4FGL_J1351.0+0029_daily_bin744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2021-09-08 15:36:11.746673', job_id='15867', GAL2='1.10', fit_tolerance='1e-08', EG2='1.19', EG='1.21', time_epoch_completed='1631140571.75', return_code2='0', ts='0.41', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.39e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='744' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:36:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 15867: <4FGL_J1351.0+0029_daily_bin744> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin744 207.757 0.4873 432172801 432432001 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 :                                   649.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             282.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            931 sec.

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

