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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin587
RA = 207.757, Dec = 0.4873
tmin = 391478401, tmax = 391737601
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='15616', job_status='RUN', time_executed='2021-09-08 15:23:27.928640', time_epoch_executed='1631139807.93' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='587'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15616

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15616/ft1_4FGL_J1351.0+0029_daily_bin587.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15616/ft2_4FGL_J1351.0+0029_daily_bin587.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15616/ft1_4FGL_J1351.0+0029_daily_bin587.fits outfile=/scratch/kocevski/15616/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin587.fits ra=207.757 dec=0.4873 rad=12.0 tmin=391478401.0 tmax=391737601.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.47
user 4.12
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/15616/ft2_4FGL_J1351.0+0029_daily_bin587.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/15616/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin587.fits evtable="EVENTS" outfile="/scratch/kocevski/15616/ft1_filtered_4FGL_J1351.0+0029_daily_bin587.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/15616/ft1_filtered_4FGL_J1351.0+0029_daily_bin587.fits" evtable="EVENTS" scfile=/scratch/kocevski/15616/ft2_4FGL_J1351.0+0029_daily_bin587.fits sctable="SC_DATA" outfile=/scratch/kocevski/15616/ltcube_391478401_391737601_4FGL_J1351.0+0029_daily_bin587.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/15616/ft2_4FGL_J1351.0+0029_daily_bin587.fits
.....................!
real 14.28
user 13.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15616/ft1_filtered_4FGL_J1351.0+0029_daily_bin587.fits evtable="EVENTS" scfile=/scratch/kocevski/15616/ft2_4FGL_J1351.0+0029_daily_bin587.fits sctable="SC_DATA" expcube=/scratch/kocevski/15616/ltcube_391478401_391737601_4FGL_J1351.0+0029_daily_bin587.fits outfile=/scratch/kocevski/15616/expmap_391478401_391737601_4FGL_J1351.0+0029_daily_bin587.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/15616/ltcube_391478401_391737601_4FGL_J1351.0+0029_daily_bin587.fits
.....................!
real 196.02
user 187.76
sys 5.71

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/15616/ft1_filtered_4FGL_J1351.0+0029_daily_bin587.fits scfile=/scratch/kocevski/15616/ft2_4FGL_J1351.0+0029_daily_bin587.fits outfile=/scratch/kocevski/15616/cmap_391478401_391737601_4FGL_J1351.0+0029_daily_bin587.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 1.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15616/ft1_filtered_4FGL_J1351.0+0029_daily_bin587.fits scfile=/scratch/kocevski/15616/ft2_4FGL_J1351.0+0029_daily_bin587.fits outfile=/scratch/kocevski/15616/cmap_HighResolution_391478401_391737601_4FGL_J1351.0+0029_daily_bin587.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1860       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4513       1.0000         .10000E-03   10000.    
     5 'norm      '    5.0818       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    15.831       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9291       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4915       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.5012       1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.783       1.0000         .10000E-03   10000.    
    18 'norm      '    28.799       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .33838       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.6047       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=   5992.493     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2209 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1845        17.504        .76272E-06   -.55817E-05
   2  norm          .10000E-03    11.134        .23956E-07** at limit **
   3  Prefactor     .10000E-03    6.9546       -.23982E-07** at limit **
   4  Prefactor     2.4513        6.6583        .69414E-06   -.89237E-05
   5  norm          5.0816        2.2465        .59352E-06   -.26769E-03
   6  Prefactor     .10000E-03    85.141       -.14306E-05** at limit **
   7  norm          15.829        27.960       -.28010E-07   -.49490E-05
   8  Prefactor     3.9291        3.6284        .17366E-06    .10361E-03
   9  Prefactor     .10000E-03    5.2995        .47735E-09** at limit **
  10  Prefactor     .10000E-03    2.4216        .31824E-07** at limit **
  11  norm          .10000E-03    11.953       -.31589E-07** at limit **
  12  Prefactor     .10000E-03    2.4168        .16060E-08** at limit **
  13  norm          1.4913        2.4807        .34107E-06   -.15309E-05
  14  Prefactor     .10000E-03    11.979       -.17028E-07** at limit **
  15  norm          .10000E-03    3.4554        .31687E-08** at limit **
  16  norm          9.5015        8.6136        .22834E-07   -.63424E-05
  17  Prefactor     46.782        36.573        .31321E-06   -.12923E-05
  18  norm          28.799        32.142        .11639E-06   -.21167E-06
  19  Prefactor     .10000E-03    76.361        .11010E-05** at limit **
  20  Normalizat    .33848        .28313       -.15064E-05   -.36707E-04
  21  Prefactor     1.6046        .20648       -.10530E-06    .21677E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.18449
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.45133
  norm       = 5.08156
  Prefactor  = 0.000100003
  norm       = 15.8291
  Prefactor  = 3.92905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.49132
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.50147
  Prefactor  = 46.7824
  norm       = 28.7989
  Prefactor  = 0.000100003
  Normalizat = 0.338476
  Prefactor  = 1.60465
 **********
 **   18 **HESSE 
 **********

 FCN=   5992.493     FROM HESSE     STATUS=OK           317 CALLS     2526 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1845        17.377        .27839E-03   -1.5412    
   2  norm          .10000E-03    11.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.9638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4513        6.6362        .26126E-03   -1.5395    
   5  norm          5.0816        2.2457        .35913E-03   -1.5257    
   6  Prefactor     .10000E-03    86.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.829        27.983        .10066E-03   -1.4912    
   8  Prefactor     3.9291        3.6110        .13493E-03   -1.5312    
   9  Prefactor     .10000E-03    5.3017        .17404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.4356        .11763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    12.293        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.4179        .11753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4913        2.4582        .15041E-03   -1.5464    
  14  Prefactor     .10000E-03    12.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.4560        .14054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.5015        8.6048        .13001E-03   -1.5091    
  17  Prefactor     46.782        36.238        .58622E-04   -1.4339    
  18  norm          28.799        32.153        .74656E-04   -1.4634    
  19  Prefactor     .10000E-03    77.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .33848        .27337        .50373E-03   -1.2061    
  21  Prefactor     1.6046        .20264        .18527E-03   -.74650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23743e-10
Minuit parameter uncertainties:
  1  12.3271
  2  6.47001e-06
  3  2.76931e-06
  4  6.63816
  5  2.24572
  6  0.00105772
  7  28.0062
  8  3.61124
  9  8.22122e-07
  10  2.22682e-06
  11  1.41872e-06
  12  2.13665e-07
  13  2.45834
  14  1.77588e-06
  15  5.50512e-07
  16  8.60589
  17  36.2553
  18  32.1723
  19  0.000899198
  20  0.274456
  21  0.202746
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.605e+00  2.027e-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:  3.385e-01  2.745e-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: 5.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15616/likelihoodResults_391478401_391737601_4FGL_J1351.0+0029_daily_bin587.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) = 5992.49403647
delta logL = -0.000876166986927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5992.49316026
delta logL = 4.52373569715e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4110       1.0000          .0000       10.000    
     3 'Normalizat'    .33842       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6047       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=   5992.493     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      248 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10351E-03    6.0113        .17905E-01** at limit **
   2  Index         2.3135        7.0262        .50000        .35115E-04
   3  Normalizat    .33848        .52957E-02    .50373E-03    .15929E-03
   4  Prefactor     1.6046        .40207E-02    .18527E-03    .10751E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103515
  Index      = 2.31353
  Normalizat = 0.338482
  Prefactor  = 1.60464
 **********
 **   18 **HESSE 
 **********

 FCN=   5992.493     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10351E-03    58.890        .18549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3135        7.7951        .50000       -.56722    
   3  Normalizat    .33848        .16727E-01    .20149E-04   -1.2061    
   4  Prefactor     1.6046        .12700E-01    .74107E-05   -.74650    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.16226e-08
Minuit parameter uncertainties:
  1  0.0288028
  2  286.451
  3  0.016727
  4  0.0127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15616': 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) = 5992.49315946
delta logL = 8.44907845021e-07

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.035e-04  2.880e-02  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.314e+00  2.865e+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:  1.605e+00  1.270e-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:  3.385e-01  1.673e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/15616/cmap_HighResolution_391478401_391737601_4FGL_J1351.0+0029_daily_bin587.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-03', job_status='DONE', photon_flux_upper_limit='5.48e-08', time_completed='2021-09-08 15:33:04.934296', job_id='15616', GAL2='1.60', fit_tolerance='1e-08', EG2='0.34', EG='0.34', time_epoch_completed='1631140384.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.60', dlogl='8.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='587' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:33:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 15616: <4FGL_J1351.0+0029_daily_bin587> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin587 207.757 0.4873 391478401 391737601 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 :                                   569.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            765 sec.

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

