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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin768
RA = 207.757, Dec = 0.4873
tmin = 438393601, tmax = 438652801
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='16992', job_status='RUN', time_executed='2021-09-08 15:27:40.443313', time_epoch_executed='1631140060.44' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/16992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/16992/ft1_4FGL_J1351.0+0029_daily_bin768.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/16992/ft2_4FGL_J1351.0+0029_daily_bin768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/16992/ft1_4FGL_J1351.0+0029_daily_bin768.fits outfile=/scratch/kocevski/16992/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin768.fits ra=207.757 dec=0.4873 rad=12.0 tmin=438393601.0 tmax=438652801.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.44
user 6.11
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/16992/ft1_filtered_4FGL_J1351.0+0029_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/16992/ft2_4FGL_J1351.0+0029_daily_bin768.fits sctable="SC_DATA" expcube=/scratch/kocevski/16992/ltcube_438393601_438652801_4FGL_J1351.0+0029_daily_bin768.fits outfile=/scratch/kocevski/16992/expmap_438393601_438652801_4FGL_J1351.0+0029_daily_bin768.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/16992/ltcube_438393601_438652801_4FGL_J1351.0+0029_daily_bin768.fits
.....................!
real 191.34
user 185.68
sys 5.11

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/16992/ft1_filtered_4FGL_J1351.0+0029_daily_bin768.fits scfile=/scratch/kocevski/16992/ft2_4FGL_J1351.0+0029_daily_bin768.fits outfile=/scratch/kocevski/16992/cmap_438393601_438652801_4FGL_J1351.0+0029_daily_bin768.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=207.757 yref=0.4873 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/16992/ft1_filtered_4FGL_J1351.0+0029_daily_bin768.fits scfile=/scratch/kocevski/16992/ft2_4FGL_J1351.0+0029_daily_bin768.fits outfile=/scratch/kocevski/16992/cmap_HighResolution_438393601_438652801_4FGL_J1351.0+0029_daily_bin768.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=207.757 yref=0.4873 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2527       1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.128       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .91830       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13290E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5571       1.0000         .10000E-03   10000.    
    11 'norm      '    15.807       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1859       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0973       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    33.850       1.0000         .10000E-03   10000.    
    16 'norm      '    11.531       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1499       1.0000         .10000E-03   10000.    
    18 'norm      '    .56240E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2790       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94837       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11897.56     FROM MIGRAD    STATUS=CONVERGED    100 CALLS     1590 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2412        2.8115       -.86328E-05   -.17365E-02
   2  norm          .10000E-03    3.5497       -.28122E-07** at limit **
   3  Prefactor     10.129        1.2943       -.12684E-05   -.64800E-03
   4  Prefactor     .10000E-03    6.6361       -.14765E-05** at limit **
   5  norm          .91847        1.1429        .36067E-06    .10105E-03
   6  Prefactor     .10178E-03    28.494       -.21470E-04** at limit **
   7  norm          .10000E-03    8.6909        .27624E-05** at limit **
   8  Prefactor     .10285E-03    30.124        .33495E-04** at limit **
   9  Prefactor     .10000E-03    4.1954        .67889E-06** at limit **
  10  Prefactor     2.5577        2.3178        .28119E-07    .14265E-03
  11  norm          15.811        1.6773        .17146E-05    .53910E-02
  12  Prefactor     6.1902        2.6122        .48684E-05    .40636E-02
  13  norm          2.0979        1.3184       -.22908E-06   -.30892E-03
  14  Prefactor     .10000E-03    17.884       -.12052E-05** at limit **
  15  norm          33.857        1.0491        .20524E-06   -.36350E-03
  16  norm          11.535        3.0839        .43595E-05    .10755E-01
  17  Prefactor     5.1264        2.2872        .41677E-05    .96732E-03
  18  norm          .45044        80.863        .80408E-06   -.87266E-04
  19  Prefactor     .10000E-03    12.780       -.82233E-06** at limit **
  20  Normalizat    1.2791        .18118       -.34520E-05   -.17001E-03
  21  Prefactor     .94805        .12860       -.54908E-06   -.16653E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.24122
  norm       = 0.0001
  Prefactor  = 10.1295
  Prefactor  = 0.0001
  norm       = 0.918474
  Prefactor  = 0.000101782
  norm       = 0.000100004
  Prefactor  = 0.000102847
  Prefactor  = 0.0001
  Prefactor  = 2.55773
  norm       = 15.8106
  Prefactor  = 6.19024
  norm       = 2.09788
  Prefactor  = 0.000100004
  norm       = 33.8565
  norm       = 11.5347
  Prefactor  = 5.12642
  norm       = 0.450438
  Prefactor  = 0.000100001
  Normalizat = 1.2791
  Prefactor  = 0.948048
 **********
 **   18 **HESSE 
 **********

 FCN=   11897.56     FROM HESSE     STATUS=OK           375 CALLS     1965 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2412        7.7557        .68438E-02   -1.5409    
   2  norm          .10000E-03    3.5484        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.129        9.5678        .31477E-02   -1.5071    
   4  Prefactor     .10000E-03    6.5449        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .91847        1.1671        .12874E-01   -1.5516    
   6  Prefactor     .10178E-03    39.878        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.6723        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10285E-03    1.0646        .67841E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.1908        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5577        2.3206        .63828E-02   -1.5388    
  11  norm          15.811        5.8386        .25184E-02   -1.4913    
  12  Prefactor     6.1902        6.5995        .40352E-02   -1.5210    
  13  norm          2.0979        1.3282        .71249E-02   -1.5418    
  14  Prefactor     .10000E-03    17.511        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          33.857        11.831        .17219E-02   -1.4544    
  16  norm          11.535        5.7413        .29494E-02   -1.5029    
  17  Prefactor     5.1264        8.3662        .44289E-02   -1.5255    
  18  norm          .45044        7.5281        .11267       -1.5574    
  19  Prefactor     .10000E-03    12.761        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2791        .15350        .61568E-01   -.84192    
  21  Prefactor     .94805        .10760        .45619E-01   -.94482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09997e-07
Minuit parameter uncertainties:
  1  7.75914
  2  1.31353e-05
  3  9.56927
  4  2.45326e-05
  5  1.16714
  6  0.0168727
  7  0.000358373
  8  0.00348179
  9  3.60352e-05
  10  2.32063
  11  5.83884
  12  6.60031
  13  1.3282
  14  0.000541704
  15  11.8319
  16  5.7416
  17  8.36807
  18  3.68305
  19  0.000203263
  20  0.153555
  21  0.107623
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  3.604e-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:  9.480e-01  1.076e-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.279e+00  1.536e-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: 3.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/16992/likelihoodResults_438393601_438652801_4FGL_J1351.0+0029_daily_bin768.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) = 11897.5651545
delta logL = -0.00113378439528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11897.5640207
delta logL = 9.47038643062e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4210       1.0000          .0000       10.000    
     3 'Normalizat'    1.2791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94807       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=   11897.56     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      259 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.604        .18142E-01** at limit **
   2  Index         1.9442        6.2628        .50000        .15143E-07
   3  Normalizat    1.2791        .62809E-02    .27231E-03    .50599E-04
   4  Prefactor     .94805        .44889E-02    .22093E-03    .71734E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94422
  Normalizat = 1.2791
  Prefactor  = 0.948048
 **********
 **   18 **HESSE 
 **********

 FCN=   11897.56     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    190.51        .23817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9442        5.9717        .50000       -.65752    
   3  Normalizat    1.2791        .24486E-01    .10893E-04   -.84192    
   4  Prefactor     .94805        .17500E-01    .88371E-05   -.94482    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.54435e-10
Minuit parameter uncertainties:
  1  0.000159947
  2  923.585
  3  0.0244861
  4  0.0174999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/16992': 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) = 11897.5640188
delta logL = 1.93625965039e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.480e-01  1.750e-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.279e+00  2.449e-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/16992/cmap_HighResolution_438393601_438652801_4FGL_J1351.0+0029_daily_bin768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-03', job_status='DONE', photon_flux_upper_limit='3.74e-08', time_completed='2021-09-08 15:40:36.823273', job_id='16992', GAL2='0.95', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1631140836.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.94e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='768' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:40:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 16992: <4FGL_J1351.0+0029_daily_bin768> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin768> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 15:25:16 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:25:20 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:25:20 2021
Terminated at Wed Sep  8 15:40:37 2021
Results reported at Wed Sep  8 15:40:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin768 207.757 0.4873 438393601 438652801 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 :                                   771.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            921 sec.

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

