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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin673
RA = 207.757, Dec = 0.4873
tmin = 413769601, tmax = 414028801
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='15749', job_status='RUN', time_executed='2021-09-08 15:25:24.222918', time_epoch_executed='1631139924.22' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15749

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15749/ft1_4FGL_J1351.0+0029_daily_bin673.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15749/ft2_4FGL_J1351.0+0029_daily_bin673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15749/ft1_4FGL_J1351.0+0029_daily_bin673.fits outfile=/scratch/kocevski/15749/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin673.fits ra=207.757 dec=0.4873 rad=12.0 tmin=413769601.0 tmax=414028801.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 6.21
user 5.95
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15749/ft1_filtered_4FGL_J1351.0+0029_daily_bin673.fits" evtable="EVENTS" scfile=/scratch/kocevski/15749/ft2_4FGL_J1351.0+0029_daily_bin673.fits sctable="SC_DATA" outfile=/scratch/kocevski/15749/ltcube_413769601_414028801_4FGL_J1351.0+0029_daily_bin673.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/15749/ft2_4FGL_J1351.0+0029_daily_bin673.fits
.....................!
real 14.32
user 13.91
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15749/ft1_filtered_4FGL_J1351.0+0029_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/15749/ft2_4FGL_J1351.0+0029_daily_bin673.fits sctable="SC_DATA" expcube=/scratch/kocevski/15749/ltcube_413769601_414028801_4FGL_J1351.0+0029_daily_bin673.fits outfile=/scratch/kocevski/15749/expmap_413769601_414028801_4FGL_J1351.0+0029_daily_bin673.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/15749/ltcube_413769601_414028801_4FGL_J1351.0+0029_daily_bin673.fits
.....................!
real 190.33
user 185.50
sys 4.42

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/15749/ft1_filtered_4FGL_J1351.0+0029_daily_bin673.fits scfile=/scratch/kocevski/15749/ft2_4FGL_J1351.0+0029_daily_bin673.fits outfile=/scratch/kocevski/15749/cmap_413769601_414028801_4FGL_J1351.0+0029_daily_bin673.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9944       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.192       1.0000         .10000E-03   10000.    
     5 'norm      '    3.8064       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10844E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .12980E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15450E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.094       1.0000         .10000E-03   10000.    
    13 'norm      '    3.2523       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.1397       1.0000         .10000E-03   10000.    
    16 'norm      '    13.559       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0480       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0996       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0539       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0851       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=   6871.736     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     1914 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9909        13.058       -.16745E-05   -.10710E-03
   2  norm          .10000E-03    5.2129        .12917E-07** at limit **
   3  Prefactor     .10000E-03    28.133        .54515E-06** at limit **
   4  Prefactor     13.184        15.707       -.12034E-05   -.41882E-04
   5  norm          3.8068        1.7676       -.78435E-07   -.30948E-03
   6  Prefactor     .10000E-03    70.403        .14796E-04** at limit **
   7  norm          .10000E-03    74.864        .18893E-04** at limit **
   8  Prefactor     .10063E-03    3.6667        .45392E-06** at limit **
   9  Prefactor     .10000E-03    10.226        .39770E-07** at limit **
  10  Prefactor     .10000E-03    3.8204       -.46893E-07** at limit **
  11  norm          .10000E-03    4.0432       -.33144E-07** at limit **
  12  Prefactor     25.097        16.905       -.15269E-06   -.12209E-04
  13  norm          3.2522        2.2041       -.13705E-06   -.20751E-03
  14  Prefactor     .10000E-03    10.640       -.77860E-07** at limit **
  15  norm          5.1394        6.1339       -.12194E-05    .33163E-04
  16  norm          13.558        7.5133        .10021E-06    .45572E-05
  17  Prefactor     5.0709        18.539        .12810E-04    .11952E-03
  18  norm          1.9961        72.218       -.57521E-04   -.56709E-04
  19  Prefactor     .10000E-03    59.172       -.25614E-04** at limit **
  20  Normalizat    1.0534        .22002       -.15286E-06    .99642E-04
  21  Prefactor     1.0855        .14820        .14501E-05    .37356E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.99095
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1842
  norm       = 3.80677
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100633
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.097
  norm       = 3.25219
  Prefactor  = 0.0001
  norm       = 5.13944
  norm       = 13.5583
  Prefactor  = 5.07091
  norm       = 1.99606
  Prefactor  = 0.0001
  Normalizat = 1.05337
  Prefactor  = 1.08548
 **********
 **   18 **HESSE 
 **********

 FCN=   6871.736     FROM HESSE     STATUS=OK           327 CALLS     2241 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9909        13.068        .20179E-03   -1.5308    
   2  norm          .10000E-03    5.2139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.184        15.725        .11028E-03   -1.4982    
   5  norm          3.8068        1.7672        .71535E-04   -1.5318    
   6  Prefactor     .10000E-03    70.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    75.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10063E-03    3.7895        .47966E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8632        .15820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.0783        .16275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.097        16.957        .79966E-04   -1.4706    
  13  norm          3.2522        2.1999        .96221E-04   -1.5347    
  14  Prefactor     .10000E-03    10.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1394        6.1316        .17733E-03   -1.5255    
  16  norm          13.558        7.5080        .10878E-03   -1.4971    
  17  Prefactor     5.0709        18.536        .17897E-03   -1.5258    
  18  norm          1.9961        74.312        .28482E-03   -1.5425    
  19  Prefactor     .10000E-03    58.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0534        .26363        .31050E-03   -.91263    
  21  Prefactor     1.0855        .17731        .21070E-03   -.89932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.05559e-10
Minuit parameter uncertainties:
  1  13.0775
  2  4.79877e-07
  3  3.83615e-05
  4  15.7303
  5  1.7672
  6  4.56063e-05
  7  0.000309057
  8  0.00309848
  9  8.53117e-06
  10  8.95178e-06
  11  7.29378e-06
  12  16.9605
  13  2.19992
  14  8.2695e-06
  15  6.13232
  16  7.50857
  17  18.5573
  18  24.3905
  19  0.000110363
  20  0.263955
  21  0.17741
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  8.531e-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.085e+00  1.774e-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.640e-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: 8.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15749/likelihoodResults_413769601_414028801_4FGL_J1351.0+0029_daily_bin673.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) = 6871.73607542
delta logL = -0.00046538144943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6871.73561012
delta logL = -8.44274836709e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4366       1.0000          .0000       10.000    
     3 'Normalizat'    1.0533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0855       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.

 FCN=   6871.736     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.592        .90712E-02** at limit **
   2  Index         2.4364        5.9784        .50000        .11864E-06
   3  Normalizat    1.0534        .21141        .70175E-01    .10851E-03
   4  Prefactor     1.0855        .14615        .38165E-01    .10836E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43642
  Normalizat = 1.05337
  Prefactor  = 1.08548
 **********
 **   18 **HESSE 
 **********

 FCN=   6871.736     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4364        6.1910        .50000       -.53834    
   3  Normalizat    1.0534        .25198        .31050E-03   -.91263    
   4  Prefactor     1.0855        .17450        .21070E-03   -.89932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42442e-11
Minuit parameter uncertainties:
  1  2.01462e-05
  2  5.06556
  3  0.25227
  4  0.174594
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15749': 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) = 6871.73561004
delta logL = 2.8194335755e-11

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  2.015e-05  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.436e+00  5.066e+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.085e+00  1.746e-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.523e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/15749/cmap_HighResolution_413769601_414028801_4FGL_J1351.0+0029_daily_bin673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.51e-03', job_status='DONE', photon_flux_upper_limit='8.40e-08', time_completed='2021-09-08 15:35:14.601905', job_id='15749', GAL2='1.09', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1631140514.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.82e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='673' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:35:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 15749: <4FGL_J1351.0+0029_daily_bin673> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin673 207.757 0.4873 413769601 414028801 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 :                                   588.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            884 sec.

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

