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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin599
RA = 207.757, Dec = 0.4873
tmin = 394588801, tmax = 394848001
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='15634', job_status='RUN', time_executed='2021-09-08 15:23:44.897897', time_epoch_executed='1631139824.9' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15634/ft1_4FGL_J1351.0+0029_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15634/ft2_4FGL_J1351.0+0029_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15634/ft1_4FGL_J1351.0+0029_daily_bin599.fits outfile=/scratch/kocevski/15634/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin599.fits ra=207.757 dec=0.4873 rad=12.0 tmin=394588801.0 tmax=394848001.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 4.60
user 4.30
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15634/ft1_filtered_4FGL_J1351.0+0029_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/15634/ft2_4FGL_J1351.0+0029_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/15634/ltcube_394588801_394848001_4FGL_J1351.0+0029_daily_bin599.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/15634/ft2_4FGL_J1351.0+0029_daily_bin599.fits
.....................!
real 13.86
user 13.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15634/ft1_filtered_4FGL_J1351.0+0029_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/15634/ft2_4FGL_J1351.0+0029_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/15634/ltcube_394588801_394848001_4FGL_J1351.0+0029_daily_bin599.fits outfile=/scratch/kocevski/15634/expmap_394588801_394848001_4FGL_J1351.0+0029_daily_bin599.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/15634/ltcube_394588801_394848001_4FGL_J1351.0+0029_daily_bin599.fits
.....................!
real 193.77
user 187.43
sys 4.74

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/15634/ft1_filtered_4FGL_J1351.0+0029_daily_bin599.fits scfile=/scratch/kocevski/15634/ft2_4FGL_J1351.0+0029_daily_bin599.fits outfile=/scratch/kocevski/15634/cmap_394588801_394848001_4FGL_J1351.0+0029_daily_bin599.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/15634/ft1_filtered_4FGL_J1351.0+0029_daily_bin599.fits scfile=/scratch/kocevski/15634/ft2_4FGL_J1351.0+0029_daily_bin599.fits outfile=/scratch/kocevski/15634/cmap_HighResolution_394588801_394848001_4FGL_J1351.0+0029_daily_bin599.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0720       1.0000         .10000E-03   10000.    
     2 'norm      '    6.4846       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.741       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .96596       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.352       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9700       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.884       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23426E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7156       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .54285E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5875       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.613       1.0000         .10000E-03   10000.    
    15 'norm      '    16.020       1.0000         .10000E-03   10000.    
    16 'norm      '    28.496       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.366       1.0000         .10000E-03   10000.    
    18 'norm      '    12.605       1.0000         .10000E-03   10000.    
    19 'Prefactor '    75.617       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0466       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .75360       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=   6409.668     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2287 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0720        5.8792       -.14114E-05    .10856E-03
   2  norm          6.4845        7.9133       -.51943E-06    .36722E-04
   3  Prefactor     20.742        14.601        .74182E-06   -.48244E-04
   4  Prefactor     .10000E-03    2.5849       -.24657E-08** at limit **
   5  norm          .96598        1.2742       -.12434E-06   -.10409E-02
   6  Prefactor     .10000E-03    113.98       -.64617E-05** at limit **
   7  norm          10.352        19.521        .76818E-07   -.16833E-04
   8  Prefactor     5.9705        4.5275        .81590E-06   -.39555E-03
   9  Prefactor     10.861        21.003        .67170E-05   -.11855E-04
  10  Prefactor     .10000E-03    3.4703        .71791E-07** at limit **
  11  norm          2.7157        4.3441       -.30407E-05   -.14770E-03
  12  Prefactor     .10000E-03    7.1661       -.18235E-05** at limit **
  13  norm          1.5876        2.4495       -.51345E-06   -.85862E-03
  14  Prefactor     30.601        20.214        .28669E-05    .49400E-07
  15  norm          16.020        13.851        .14558E-06   -.16901E-04
  16  norm          28.496        10.620        .18605E-05   -.26193E-03
  17  Prefactor     15.366        17.824       -.18981E-06    .17053E-04
  18  norm          12.605        14.447        .16454E-06    .39220E-05
  19  Prefactor     75.608        76.224       -.96258E-05    .88531E-04
  20  Normalizat    1.0465        .19833       -.16495E-05    .31176E-03
  21  Prefactor     .75365        .13201        .67542E-06    .13696E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.07197
  norm       = 6.48455
  Prefactor  = 20.7415
  Prefactor  = 0.0001
  norm       = 0.96598
  Prefactor  = 0.000100001
  norm       = 10.3522
  Prefactor  = 5.97052
  Prefactor  = 10.861
  Prefactor  = 0.0001
  norm       = 2.71566
  Prefactor  = 0.000100002
  norm       = 1.58759
  Prefactor  = 30.6007
  norm       = 16.0199
  norm       = 28.4961
  Prefactor  = 15.3655
  norm       = 12.6049
  Prefactor  = 75.6078
  Normalizat = 1.04649
  Prefactor  = 0.753646
 **********
 **   18 **HESSE 
 **********

 FCN=   6409.668     FROM HESSE     STATUS=OK           327 CALLS     2614 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0720        5.8770        .16294E-03   -1.5215    
   2  norm          6.4845        7.9114        .15760E-03   -1.5199    
   3  Prefactor     20.742        14.596        .87948E-04   -1.4797    
   4  Prefactor     .10000E-03    2.5871        .12571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .96598        1.2602        .96819E-04   -1.5511    
   6  Prefactor     .10000E-03    114.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.352        19.536        .12453E-03   -1.5064    
   8  Prefactor     5.9705        4.5080        .13883E-03   -1.5219    
   9  Prefactor     10.861        20.728        .12144E-03   -1.5049    
  10  Prefactor     .10000E-03    9.7352        .28837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7157        4.4024        .20776E-03   -1.5378    
  12  Prefactor     .10000E-03    50.967        .40104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5876        2.4405        .14349E-03   -1.5456    
  14  Prefactor     30.601        20.074        .72415E-04   -1.4601    
  15  norm          16.020        13.890        .10007E-03   -1.4907    
  16  norm          28.496        10.574        .75051E-04   -1.4640    
  17  Prefactor     15.366        17.827        .10218E-03   -1.4924    
  18  norm          12.605        14.446        .11283E-03   -1.4998    
  19  Prefactor     75.608        76.086        .46175E-04   -1.3967    
  20  Normalizat    1.0465        .23619        .26486E-03   -.91489    
  21  Prefactor     .75365        .15858        .21466E-03   -1.0146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23529e-09
Minuit parameter uncertainties:
  1  5.87755
  2  7.91272
  3  14.5985
  4  9.67477e-08
  5  1.26021
  6  0.000533172
  7  19.5483
  8  4.5083
  9  20.7416
  10  4.44062e-05
  11  4.40294
  12  0.000554026
  13  2.44067
  14  20.0786
  15  13.893
  16  10.575
  17  17.8334
  18  14.45
  19  76.1838
  20  0.236428
  21  0.158672
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.086e+01  2.074e+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:  7.536e-01  1.587e-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.046e+00  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.32
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15634/likelihoodResults_394588801_394848001_4FGL_J1351.0+0029_daily_bin599.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) = 6408.5449497
delta logL = 1.12301438675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6408.46061911
delta logL = 1.20734497799

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26934       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1462       1.0000          .0000       10.000    
     3 'Normalizat'    .94242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80482       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=   6408.461     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      286 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26751        2.5476        .60744E-02   -.33007E-02
   2  Index         5.1503        2.3419        .11313       -.93814E-04
   3  Normalizat    .94277        .46643E-01    .45441E-01   -.74422E-04
   4  Prefactor     .80467        .32711E-01    .43780E-01   -.45651E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.267512
  Index      = 5.1503
  Normalizat = 0.942767
  Prefactor  = 0.804666
 **********
 **   18 **HESSE 
 **********

 FCN=   6408.461     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      321 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26751        6.0181        .27573E-03   -1.5605    
   2  Index         5.1503        3.9756        .42112E-02    .30065E-01
   3  Normalizat    .94277        .17406        .27707E-03   -.94973    
   4  Prefactor     .80467        .12006        .20835E-03   -.99557    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.47659e-10
Minuit parameter uncertainties:
  1  2.53746
  2  4.59695
  3  0.174168
  4  0.120104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15634': 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) = 6408.46061176
delta logL = 1.20735232316

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  2.675e-01  2.537e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  5.150e+00  4.597e+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:  8.047e-01  1.201e-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:  9.428e-01  1.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.97
Ra Dec: 207.757 0.487
Photon Index (Free Index): 5.15 +/- 4.60
Photon Flux (Free Index): 9.17e-08 +/- 6.03e-08
Energy Flux (Free Index): 1.20e-05 +/- 8.91e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/15634/cmap_HighResolution_394588801_394848001_4FGL_J1351.0+0029_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.35e-03', comment='SUCCESS', energy_flux2='1.20e-05', dlogl='1.21e+00', photon_flux2='9.17e-08', job_status='DONE', time_completed='2021-09-08 15:33:48.646055', photon_index_error2='4.60', photon_index2='5.15', ts='0.32', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='8.91e-06', EG='1.05', time_epoch_completed='1631140428.65', return_code='0', job_id='15634', GAL2='0.80', EG2='0.94', return_code2='102', photon_flux_error2='6.03e-08', ts2='2.97', photon_index='2.44' WHERE bin_id='599' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:33:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 15634: <4FGL_J1351.0+0029_daily_bin599> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin599 207.757 0.4873 394588801 394848001 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 :                                   600.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            807 sec.

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

