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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin778
RA = 207.757, Dec = 0.4873
tmin = 440985601, tmax = 441244801
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='17006', job_status='RUN', time_executed='2021-09-08 15:27:38.599736', time_epoch_executed='1631140058.6' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17006

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17006/ft1_4FGL_J1351.0+0029_daily_bin778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17006/ft2_4FGL_J1351.0+0029_daily_bin778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17006/ft1_4FGL_J1351.0+0029_daily_bin778.fits outfile=/scratch/kocevski/17006/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin778.fits ra=207.757 dec=0.4873 rad=12.0 tmin=440985601.0 tmax=441244801.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.45
user 3.21
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17006/ft2_4FGL_J1351.0+0029_daily_bin778.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/17006/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin778.fits evtable="EVENTS" outfile="/scratch/kocevski/17006/ft1_filtered_4FGL_J1351.0+0029_daily_bin778.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/17006/ft1_filtered_4FGL_J1351.0+0029_daily_bin778.fits" evtable="EVENTS" scfile=/scratch/kocevski/17006/ft2_4FGL_J1351.0+0029_daily_bin778.fits sctable="SC_DATA" outfile=/scratch/kocevski/17006/ltcube_440985601_441244801_4FGL_J1351.0+0029_daily_bin778.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/17006/ft2_4FGL_J1351.0+0029_daily_bin778.fits
.....................!
real 15.07
user 14.64
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17006/ft1_filtered_4FGL_J1351.0+0029_daily_bin778.fits evtable="EVENTS" scfile=/scratch/kocevski/17006/ft2_4FGL_J1351.0+0029_daily_bin778.fits sctable="SC_DATA" expcube=/scratch/kocevski/17006/ltcube_440985601_441244801_4FGL_J1351.0+0029_daily_bin778.fits outfile=/scratch/kocevski/17006/expmap_440985601_441244801_4FGL_J1351.0+0029_daily_bin778.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/17006/ltcube_440985601_441244801_4FGL_J1351.0+0029_daily_bin778.fits
.....................!
real 196.13
user 190.04
sys 5.59

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/17006/ft1_filtered_4FGL_J1351.0+0029_daily_bin778.fits scfile=/scratch/kocevski/17006/ft2_4FGL_J1351.0+0029_daily_bin778.fits outfile=/scratch/kocevski/17006/cmap_440985601_441244801_4FGL_J1351.0+0029_daily_bin778.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17006/ft1_filtered_4FGL_J1351.0+0029_daily_bin778.fits scfile=/scratch/kocevski/17006/ft2_4FGL_J1351.0+0029_daily_bin778.fits outfile=/scratch/kocevski/17006/cmap_HighResolution_440985601_441244801_4FGL_J1351.0+0029_daily_bin778.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/17006/ft1_filtered_4FGL_J1351.0+0029_daily_bin778.fits evtable="EVENTS" scfile=/scratch/kocevski/17006/ft2_4FGL_J1351.0+0029_daily_bin778.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17006/Model_4FGL_J1351.0+0029_daily_bin778.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/17006/ft1_filtered_4FGL_J1351.0+0029_daily_bin778.fits.....................!
real 55.21
user 53.71
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7177       1.0000         .10000E-03   10000.    
     2 'norm      '    5.9635       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.783       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3033       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.936       1.0000         .10000E-03   10000.    
     7 'norm      '    8.4965       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5060       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.506       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3008       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.034       1.0000         .10000E-03   10000.    
    15 'norm      '    14.411       1.0000         .10000E-03   10000.    
    16 'norm      '    9.5247       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.5998       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .96998       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95807       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=   7339.032     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2148 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7178        6.0309        .11107E-05   -.10535E-02
   2  norm          5.9635        7.3979       -.11179E-06    .71946E-04
   3  Prefactor     20.783        17.489       -.53029E-06   -.57866E-04
   4  Prefactor     .10000E-03    9.2694        .26007E-06** at limit **
   5  norm          2.3034        1.2101        .22762E-07    .50610E-04
   6  Prefactor     26.932        35.162       -.34967E-05   -.14526E-03
   7  norm          8.4958        23.734       -.57080E-06   -.26339E-04
   8  Prefactor     1.5053        3.9172        .37173E-06   -.32377E-03
   9  Prefactor     25.500        22.346       -.33732E-05   -.33417E-03
  10  Prefactor     .10000E-03    1.1540        .36483E-06** at limit **
  11  norm          .10000E-03    4.5333       -.10354E-07** at limit **
  12  Prefactor     .10000E-03    18.421        .38558E-06** at limit **
  13  norm          2.3012        2.2097        .96117E-07   -.72045E-04
  14  Prefactor     16.032        13.386       -.78634E-07   -.23274E-04
  15  norm          14.411        10.565       -.32921E-07   -.23003E-05
  16  norm          9.5244        6.8136        .10661E-06   -.35430E-03
  17  Prefactor     9.5995        14.747       -.19749E-06   -.20661E-04
  18  norm          .10000E-03    6.0429        .20855E-06** at limit **
  19  Prefactor     .10000E-03    24.068        .73712E-06** at limit **
  20  Normalizat    .96997        .18707        .61490E-06   -.53073E-04
  21  Prefactor     .95806        .12864       -.22684E-07    .16774E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.71779
  norm       = 5.96354
  Prefactor  = 20.7827
  Prefactor  = 0.0001
  norm       = 2.30342
  Prefactor  = 26.9317
  norm       = 8.49581
  Prefactor  = 1.50526
  Prefactor  = 25.4995
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.30123
  Prefactor  = 16.0317
  norm       = 14.4115
  norm       = 9.5244
  Prefactor  = 9.59947
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.969974
  Prefactor  = 0.958061
 **********
 **   18 **HESSE 
 **********

 FCN=   7339.032     FROM HESSE     STATUS=OK           319 CALLS     2467 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7178        8.2122        .83990E-03   -1.5230    
   2  norm          5.9635        7.4053        .82216E-03   -1.5220    
   3  Prefactor     20.783        17.506        .87858E-04   -1.4796    
   4  Prefactor     .10000E-03    9.3869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3034        1.2068        .65412E-04   -1.5404    
   6  Prefactor     26.932        35.548        .77189E-04   -1.4670    
   7  norm          8.4958        23.780        .13753E-03   -1.5125    
   8  Prefactor     1.5053        4.0052        .26180E-03   -1.5463    
   9  Prefactor     25.500        23.040        .79318E-04   -1.4698    
  10  Prefactor     .10000E-03    1.1634        .89951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.6243        .17809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.037        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3012        2.1970        .11805E-03   -1.5405    
  14  Prefactor     16.032        13.389        .10002E-03   -1.4907    
  15  norm          14.411        10.575        .10551E-03   -1.4949    
  16  norm          9.5244        6.8881        .64925E-03   -1.5091    
  17  Prefactor     9.5995        14.759        .12934E-03   -1.5088    
  18  norm          .10000E-03    6.0477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .96997        .21881        .28593E-03   -.94043    
  21  Prefactor     .95806        .15110        .20505E-03   -.94141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90492e-09
Minuit parameter uncertainties:
  1  8.21384
  2  7.40648
  3  17.5101
  4  7.12497e-06
  5  1.20685
  6  35.5755
  7  23.8061
  8  4.00596
  9  23.048
  10  7.49684e-06
  11  5.75753e-06
  12  0.000161918
  13  2.19705
  14  13.3913
  15  10.5768
  16  6.88863
  17  14.7647
  18  9.35554e-06
  19  6.8242e-05
  20  0.219012
  21  0.151169
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  2.550e+01  2.305e+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:  9.581e-01  1.512e-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.700e-01  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.66
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 4.85e-08 +/- 4.38e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.37e-05

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

Saving results to:
/scratch/kocevski/17006/likelihoodResults_440985601_441244801_4FGL_J1351.0+0029_daily_bin778.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) = 7338.48749745
delta logL = 0.544436567157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7338.46129657
delta logL = 0.570637451526

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3065       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8844       1.0000          .0000       10.000    
     3 'Normalizat'    .90585       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99347       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7338.461     FROM MIGRAD    STATUS=FAILED        83 CALLS      293 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3057        73.784        .10131E-03   -.40223E-02
   2  Index         3.8846        4.0842        .46490E-02   -.90669E-03
   3  Normalizat    .90583        .20131        .29497E-03   -.74547E-03
   4  Prefactor     .99347        .14317        .20178E-03   -.79460E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7338.461     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      385 TOTAL
                     EDM=   .65E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3057        73.784        .10562E-03   -.40223E-02
   2  Index         3.8846        4.0842        .61398E-03   -.90669E-03
   3  Normalizat    .90583        .20131        .99288E-04   -.74547E-03
   4  Prefactor     .99347        .14317        .45639E-04   -.79460E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7338.461     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      412 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3050        9.2393        .40524E-05   -.43731E-02
   2  Index         3.8847        1.4097        .18596E-03   -.74270E-03
   3  Normalizat    .90583        .21889        .58994E-04   -.71580E-03
   4  Prefactor     .99347        .15257        .40356E-04   -.77183E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.30505
  Index      = 3.88468
  Normalizat = 0.90583
  Prefactor  = 0.993467
 **********
 **   18 **HESSE 
 **********

 FCN=   7338.461     FROM HESSE     STATUS=OK            23 CALLS      435 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3050        8.9992        .81049E-06   -1.5344    
   2  Index         3.8847        1.3738        .37192E-04   -.22496    
   3  Normalizat    .90583        .21892        .11799E-04   -.96256    
   4  Prefactor     .99347        .15258        .80712E-05   -.92948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88262e-09
Minuit parameter uncertainties:
  1  9.00285
  2  1.39268
  3  0.219138
  4  0.152642
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17006': 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) = 7338.46129653
delta logL = 0.570637485747

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.305e+00  9.003e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  3.885e+00  1.393e+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:  9.935e-01  1.526e-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.058e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.96
Ra Dec: 207.757 0.487
Photon Index (Free Index): 3.88 +/- 1.39
Photon Flux (Free Index): 8.81e-08 +/- 6.29e-08
Energy Flux (Free Index): 1.35e-05 +/- 9.79e-06

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/17006/cmap_HighResolution_440985601_441244801_4FGL_J1351.0+0029_daily_bin778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='4.85e-08', energy_flux2='1.35e-05', photon_flux_error='4.38e-08', dlogl='5.71e-01', energy_flux='1.52e-05', photon_flux2='8.81e-08', job_status='DONE', time_completed='2021-09-08 15:38:12.708194', photon_index_error2='1.39', photon_index2='3.88', ts='1.66', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='9.79e-06', EG='0.97', time_epoch_completed='1631140692.71', return_code='0', job_id='17006', GAL2='0.99', EG2='0.91', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='6.29e-08', ts2='2.96', photon_index='2.44' WHERE bin_id='778' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:38:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 17006: <4FGL_J1351.0+0029_daily_bin778> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin778 207.757 0.4873 440985601 441244801 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 :                                   632.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            776 sec.

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

