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


Performing analysis on: 4FGL_J1351.3+1115_daily_bin1277
RA = 207.843, Dec = 11.2502
tmin = 570326401, tmax = 570585601
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='25381', job_status='RUN', time_executed='2021-09-08 15:52:12.192893', time_epoch_executed='1631141532.19' WHERE source_name='4FGL J1351.3+1115' and cadence='daily' and bin_id='1277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/25381

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/25381/ft1_4FGL_J1351.3+1115_daily_bin1277.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/25381/ft2_4FGL_J1351.3+1115_daily_bin1277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/25381/ft1_4FGL_J1351.3+1115_daily_bin1277.fits outfile=/scratch/kocevski/25381/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin1277.fits ra=207.843 dec=11.2502 rad=12.0 tmin=570326401.0 tmax=570585601.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.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/25381/ft2_4FGL_J1351.3+1115_daily_bin1277.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/25381/ft2_4FGL_J1351.3+1115_daily_bin1277.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/25381/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin1277.fits evtable="EVENTS" outfile="/scratch/kocevski/25381/ft1_filtered_4FGL_J1351.3+1115_daily_bin1277.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/25381/ft1_filtered_4FGL_J1351.3+1115_daily_bin1277.fits" evtable="EVENTS" scfile=/scratch/kocevski/25381/ft2_4FGL_J1351.3+1115_daily_bin1277.fits sctable="SC_DATA" outfile=/scratch/kocevski/25381/ltcube_570326401_570585601_4FGL_J1351.3+1115_daily_bin1277.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/25381/ft2_4FGL_J1351.3+1115_daily_bin1277.fits
.....................!
real 18.40
user 17.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/25381/ft1_filtered_4FGL_J1351.3+1115_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/25381/ft2_4FGL_J1351.3+1115_daily_bin1277.fits sctable="SC_DATA" expcube=/scratch/kocevski/25381/ltcube_570326401_570585601_4FGL_J1351.3+1115_daily_bin1277.fits outfile=/scratch/kocevski/25381/expmap_570326401_570585601_4FGL_J1351.3+1115_daily_bin1277.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/25381/ltcube_570326401_570585601_4FGL_J1351.3+1115_daily_bin1277.fits
.....................!
real 192.86
user 186.02
sys 4.84

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 150 point sources and 0 extended sources

Setting source of interest to:
4FGL J1351.3+1115 @ 207.843 11.2502

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/25381/ft1_filtered_4FGL_J1351.3+1115_daily_bin1277.fits scfile=/scratch/kocevski/25381/ft2_4FGL_J1351.3+1115_daily_bin1277.fits outfile=/scratch/kocevski/25381/cmap_570326401_570585601_4FGL_J1351.3+1115_daily_bin1277.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.843 yref=11.2502 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/25381/ft1_filtered_4FGL_J1351.3+1115_daily_bin1277.fits scfile=/scratch/kocevski/25381/ft2_4FGL_J1351.3+1115_daily_bin1277.fits outfile=/scratch/kocevski/25381/cmap_HighResolution_570326401_570585601_4FGL_J1351.3+1115_daily_bin1277.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.843 yref=11.2502 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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/25381/ft1_filtered_4FGL_J1351.3+1115_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/25381/ft2_4FGL_J1351.3+1115_daily_bin1277.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/25381/Model_4FGL_J1351.3+1115_daily_bin1277.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/25381/ft1_filtered_4FGL_J1351.3+1115_daily_bin1277.fits.....................!
real 70.04
user 68.42
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/25381/ft1_filtered_4FGL_J1351.3+1115_daily_bin1277.fits', '/scratch/kocevski/25381/ft2_4FGL_J1351.3+1115_daily_bin1277.fits', expMap='/scratch/kocevski/25381/expmap_570326401_570585601_4FGL_J1351.3+1115_daily_bin1277.fits', expCube='/scratch/kocevski/25381/ltcube_570326401_570585601_4FGL_J1351.3+1115_daily_bin1277.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/25381/Model_4FGL_J1351.3+1115_daily_bin1277.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1351.3+1115'

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  1.085e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.884e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  2.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/25381/ft1_filtered_4FGL_J1351.3+1115_daily_bin1277.fits
Spacecraft file(s): /scratch/kocevski/25381/ft2_4FGL_J1351.3+1115_daily_bin1277.fits
Exposure map: /scratch/kocevski/25381/expmap_570326401_570585601_4FGL_J1351.3+1115_daily_bin1277.fits
Exposure cube: /scratch/kocevski/25381/ltcube_570326401_570585601_4FGL_J1351.3+1115_daily_bin1277.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/25381/Model_4FGL_J1351.3+1115_daily_bin1277.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) = 10088.7479944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9144       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.799       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3918       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3884       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25860       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.694       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.821       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1856       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .99403       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10088.67     FROM MIGRAD    STATUS=FAILED       553 CALLS     1609 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9151        5.6522        .10196E-02    .65007E-04
   2  Prefactor     .10000E-03    11.362        .18142E-02** at limit **
   3  Prefactor     17.800        20.703        .94934E-04   -.14754E-04
   4  Prefactor     2.3922        2.8120        .17508E-03    .27663E-04
   5  Prefactor     .10000E-03    9.7769        .18142E-02** at limit **
   6  Prefactor     2.3885        2.2342        .14051E-03   -.49680E-04
   7  Prefactor     .10000E-03    2.9673        .16858E-02** at limit **
   8  Prefactor     .29742        34.020        .40258E-02    .21207E-02
   9  Prefactor     .10000E-03    4.3222        .18142E-02** at limit **
  10  Prefactor     .10000E-03    5.2839        .18142E-02** at limit **
  11  Prefactor     16.699        27.377        .98025E-04   -.81880E-04
  12  Prefactor     .10000E-03    17.050        .18142E-02** at limit **
  13  norm          .10000E-03    8.0541        .18142E-02** at limit **
  14  Prefactor     11.822        5.9826        .11651E-03   -.24218E-03
  15  Prefactor     .10000E-03    1.4978        .11964E-02** at limit **
  16  Normalizat    1.1856        .18717        .25474E-03   -.76435E-03
  17  Prefactor     .99401        .14528        .21684E-03   -.94102E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10088.67     FROM SIMPLEX   STATUS=UNCHANGED    741 CALLS     2350 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9151        5.6522        .87508E-07   -1.5312    
   2  Prefactor     .10000E-03    11.362        .48382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.800        20.703        .58122E-07   -1.4864    
   4  Prefactor     2.3922        2.8120        .53657E-07   -1.5399    
   5  Prefactor     .10000E-03    9.7769        .37395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3885        2.2342        .50694E-07   -1.5399    
   7  Prefactor     .10000E-03    2.9673        .22312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .29742        34.020        .36229E-07   -1.5599    
   9  Prefactor     .10000E-03    4.3222        .13032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.2839        .22919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.699        27.377        .56128E-07   -1.4890    
  12  Prefactor     .10000E-03    17.050        .22800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.0541        .39178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.822        5.9826        .47711E-07   -1.5020    
  15  Prefactor     .10000E-03    1.4978        .10232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1856        .18717        .28156E-07   -.87050    
  17  Prefactor     .99401        .14528        .29647E-07   -.92929    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10088.67     FROM MIGRAD    STATUS=CONVERGED    210 CALLS     2560 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9151        5.6505        .40783E-04    .11753E-04
   2  Prefactor     .10000E-03    11.363        .36285E-03** at limit **
   3  Prefactor     17.800        20.702        .18987E-04     .0000    
   4  Prefactor     2.3922        2.8113        .70030E-05    .14286E-05
   5  Prefactor     .10000E-03    9.7787        .36285E-03** at limit **
   6  Prefactor     2.3885        2.2341        .56202E-05   -.80912E-06
   7  Prefactor     .10000E-03    2.9677        .33717E-03** at limit **
   8  Prefactor     .29742        34.487        .80516E-03   -.34735E-05
   9  Prefactor     .10000E-03    4.3233        .36285E-03** at limit **
  10  Prefactor     .10000E-03    5.2842        .36285E-03** at limit **
  11  Prefactor     16.699        27.362        .39210E-05     .0000    
  12  Prefactor     .10000E-03    17.054        .36285E-03** at limit **
  13  norm          .10000E-03    8.0547        .36285E-03** at limit **
  14  Prefactor     11.822        5.9819        .46605E-05    .19515E-06
  15  Prefactor     .10000E-03    1.4980        .23928E-03** at limit **
  16  Normalizat    1.1856        .18722        .50947E-04   -.26777E-06
  17  Prefactor     .99401        .14539        .43369E-04   -.52428E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.91508
  Prefactor  = 0.0001
  Prefactor  = 17.7998
  Prefactor  = 2.3922
  Prefactor  = 0.0001
  Prefactor  = 2.38851
  Prefactor  = 0.0001
  Prefactor  = 0.297424
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.699
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.8217
  Prefactor  = 0.0001
  Normalizat = 1.18557
  Prefactor  = 0.994012
 **********
 **   18 **HESSE 
 **********

 FCN=   10088.67     FROM HESSE     STATUS=OK           207 CALLS     2767 TOTAL
                     EDM=   .81E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9151        5.6504        .40783E-04   -1.5312    
   2  Prefactor     .10000E-03    11.363        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.800        20.702        .18987E-04   -1.4864    
   4  Prefactor     2.3922        2.8111        .70030E-05   -1.5399    
   5  Prefactor     .10000E-03    9.7788        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3885        2.2335        .11240E-05   -1.5399    
   7  Prefactor     .10000E-03    2.9677        .67434E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .29742        34.418        .32206E-04   -1.5599    
   9  Prefactor     .10000E-03    4.3234        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.2842        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.699        27.362        .39210E-05   -1.4890    
  12  Prefactor     .10000E-03    17.055        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.0547        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.822        5.9819        .46605E-05   -1.5020    
  15  Prefactor     .10000E-03    1.4980        .47856E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1856        .18721        .10189E-04   -.87050    
  17  Prefactor     .99401        .14540        .86738E-05   -.92929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.06636e-13
Minuit parameter uncertainties:
  1  5.65119
  2  8.35276e-07
  3  20.7103
  4  2.81126
  5  1.00245e-06
  6  2.23359
  7  3.1717e-07
  8  6.40172
  9  5.48131e-07
  10  3.7497e-07
  11  27.3823
  12  3.14944e-06
  13  5.34976e-07
  14  5.98218
  15  1.66338e-07
  16  0.187317
  17  0.145454
Done.

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

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  2.389e+00  2.234e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.884e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  2.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  9.940e-01  1.455e-01  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.186e+00  1.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.45
Ra Dec: 207.843 11.250
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 1.29e-08 +/- 1.21e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.13e-05

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) = 10086.9659174
delta logL = 1.70199610011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10086.5948458
delta logL = 2.0730677279

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42896       1.0000         .10000E-03   10000.    
     2 'Index     '    .30060       1.0000          .0000       10.000    
     3 'Normalizat'    1.1883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99823       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10086.59     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      217 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42697        .52586        .10977E-01   -.88005E-03
   2  Index         .29916        .64006        .36797        .73727E-04
   3  Normalizat    1.1882        .14939        .57544E-01    .92958E-05
   4  Prefactor     .99832        .11822        .46245E-01   -.19722E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.426974
  Index      = 0.299159
  Normalizat = 1.18823
  Prefactor  = 0.998319
 **********
 **   18 **HESSE 
 **********

 FCN=   10086.59     FROM HESSE     STATUS=OK            35 CALLS      252 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42697        1.0652        .54920E-03   -1.5577    
   2  Index         .29916        .89621        .26281E-01   -1.2231    
   3  Normalizat    1.1882        .18315        .25448E-03   -.86967    
   4  Prefactor     .99832        .14499        .21642E-03   -.92786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27966e-08
Minuit parameter uncertainties:
  1  1.06524
  2  0.943743
  3  0.183252
  4  0.145047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/25381': 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) = 10086.5948439
delta logL = 2.07306961352

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  4.270e-01  1.065e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.992e-01  9.437e-01  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  2.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  9.983e-01  1.450e-01  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.188e+00  1.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.59
Ra Dec: 207.843 11.250
Photon Index (Free Index): 0.30 +/- 0.94
Photon Flux (Free Index): 2.04e-09 +/- 2.06e-09
Energy Flux (Free Index): 8.48e-05 +/- 9.82e-05

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/25381/cmap_HighResolution_570326401_570585601_4FGL_J1351.3+1115_daily_bin1277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-08', energy_flux2='8.48e-05', photon_flux_error='1.21e-08', dlogl='2.07e+00', energy_flux='1.21e-05', photon_flux2='2.04e-09', job_status='DONE', time_completed='2021-09-08 16:03:31.480588', photon_index_error2='0.94', photon_index2='0.30', ts='11.45', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='9.82e-05', EG='1.19', time_epoch_completed='1631142211.48', return_code='0', job_id='25381', GAL2='1.00', EG2='1.19', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='2.06e-09', ts2='15.59', photon_index='1.88' WHERE bin_id='1277' AND source_name='4FGL J1351.3+1115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 16:03:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 25381: <4FGL_J1351.3+1115_daily_bin1277> in cluster <slac> Done

Job <4FGL_J1351.3+1115_daily_bin1277> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:50:42 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:51:56 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:51:56 2021
Terminated at Wed Sep  8 16:03:32 2021
Results reported at Wed Sep  8 16:03:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_daily_bin1277 207.843 11.2502 570326401 570585601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1351.3+1115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   669.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             381.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            770 sec.

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

