/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 8 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 = 7396
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1351.0+0029_daily_bin14
RA = 207.757, Dec = 0.4873
tmin = 242956801, tmax = 243216001
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='10748', job_status='RUN', time_executed='2021-09-08 15:08:39.698992', time_epoch_executed='1631138919.7' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='14'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10748

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10748/ft1_4FGL_J1351.0+0029_daily_bin14.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10748/ft2_4FGL_J1351.0+0029_daily_bin14.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10748/ft1_4FGL_J1351.0+0029_daily_bin14.fits outfile=/scratch/kocevski/10748/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin14.fits ra=207.757 dec=0.4873 rad=12.0 tmin=242956801.0 tmax=243216001.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 1.46
user 1.28
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10748/ft1_filtered_4FGL_J1351.0+0029_daily_bin14.fits" evtable="EVENTS" scfile=/scratch/kocevski/10748/ft2_4FGL_J1351.0+0029_daily_bin14.fits sctable="SC_DATA" outfile=/scratch/kocevski/10748/ltcube_242956801_243216001_4FGL_J1351.0+0029_daily_bin14.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/10748/ft2_4FGL_J1351.0+0029_daily_bin14.fits
.....................!
real 17.78
user 17.35
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10748/ft1_filtered_4FGL_J1351.0+0029_daily_bin14.fits evtable="EVENTS" scfile=/scratch/kocevski/10748/ft2_4FGL_J1351.0+0029_daily_bin14.fits sctable="SC_DATA" expcube=/scratch/kocevski/10748/ltcube_242956801_243216001_4FGL_J1351.0+0029_daily_bin14.fits outfile=/scratch/kocevski/10748/expmap_242956801_243216001_4FGL_J1351.0+0029_daily_bin14.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/10748/ltcube_242956801_243216001_4FGL_J1351.0+0029_daily_bin14.fits
.....................!
real 190.50
user 185.37
sys 4.69

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/10748/ft1_filtered_4FGL_J1351.0+0029_daily_bin14.fits scfile=/scratch/kocevski/10748/ft2_4FGL_J1351.0+0029_daily_bin14.fits outfile=/scratch/kocevski/10748/cmap_242956801_243216001_4FGL_J1351.0+0029_daily_bin14.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10748/ft1_filtered_4FGL_J1351.0+0029_daily_bin14.fits scfile=/scratch/kocevski/10748/ft2_4FGL_J1351.0+0029_daily_bin14.fits outfile=/scratch/kocevski/10748/cmap_HighResolution_242956801_243216001_4FGL_J1351.0+0029_daily_bin14.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.59
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.895       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0630       1.0000         .10000E-03   10000.    
     6 'Prefactor '    68.559       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.453       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4647       1.0000         .10000E-03   10000.    
    11 'norm      '    21.284       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    23.988       1.0000         .10000E-03   10000.    
    16 'norm      '    .35397       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0064       1.0000         .10000E-03   10000.    
    18 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1811       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0375       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=   9797.015     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2210 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.5536       -.25159E-06** at limit **
   2  norm          .10000E-03    3.8041       -.19160E-07** at limit **
   3  Prefactor     .10000E-03    4.1037        .93954E-08** at limit **
   4  Prefactor     17.896        10.953       -.10149E-05   -.14496E-04
   5  norm          2.0630        1.1979       -.13232E-06   -.59285E-03
   6  Prefactor     68.559        48.990        .96547E-07    .39789E-05
   7  norm          .10000E-03    8.0491       -.54108E-06** at limit **
   8  Prefactor     .10000E-03    2.1614       -.58256E-07** at limit **
   9  Prefactor     20.453        19.081       -.10547E-05    .45398E-04
  10  Prefactor     3.4650        2.9167       -.37958E-07    .88311E-04
  11  norm          21.286        8.1386       -.22403E-06    .34118E-04
  12  Prefactor     .10000E-03    11.530       -.31301E-05** at limit **
  13  norm          .10000E-03    .84902       -.53242E-08** at limit **
  14  Prefactor     .10000E-03    11.916        .30669E-05** at limit **
  15  norm          23.990        13.102       -.13998E-05    .16784E-04
  16  norm          .38693        3.2442       -.19477E-05   -.88742E-04
  17  Prefactor     8.9874        21.524       -.11138E-04   -.23131E-04
  18  norm          .10000E-03    7.9474        .80162E-06** at limit **
  19  Prefactor     .10000E-03    69.054        .14029E-05** at limit **
  20  Normalizat    1.1812        .17601        .14341E-05    .11051E-03
  21  Prefactor     1.0374        .12267        .49566E-06    .26525E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8956
  norm       = 2.06297
  Prefactor  = 68.5592
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.4528
  Prefactor  = 3.46495
  norm       = 21.2856
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 23.9901
  norm       = 0.386926
  Prefactor  = 8.98744
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18123
  Prefactor  = 1.0374
 **********
 **   18 **HESSE 
 **********

 FCN=   9797.015     FROM HESSE     STATUS=OK           319 CALLS     2529 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.7130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.8113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.1086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.896        10.973        .94680E-04   -1.4862    
   5  norm          2.0630        1.1968        .78948E-04   -1.5421    
   6  Prefactor     68.559        48.988        .48477E-04   -1.4050    
   7  norm          .10000E-03    8.0561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.2562        .28396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.453        19.110        .88564E-04   -1.4803    
  10  Prefactor     3.4650        2.9196        .15080E-03   -1.5336    
  11  norm          21.286        8.1350        .86819E-04   -1.4785    
  12  Prefactor     .10000E-03    11.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4137        .17561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          23.990        13.132        .81786E-04   -1.4728    
  16  norm          .38693        10.369        .34497E-02   -1.5584    
  17  Prefactor     8.9874        21.675        .13355E-03   -1.5108    
  18  norm          .10000E-03    7.9715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    69.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1812        .20951        .28959E-03   -.87185    
  21  Prefactor     1.0374        .14689        .21852E-03   -.91493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98112e-08
Minuit parameter uncertainties:
  1  1.38114e-05
  2  1.49976e-06
  3  4.55091e-06
  4  10.974
  5  1.19683
  6  49.0172
  7  2.17104e-06
  8  7.0357e-06
  9  19.1152
  10  2.91976
  11  8.13545
  12  2.23728e-05
  13  8.67071e-07
  14  7.14345e-06
  15  13.1333
  16  4.00625
  17  21.6942
  18  3.62767e-05
  19  7.29286e-06
  20  0.209658
  21  0.146951
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  2.045e+01  1.912e+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:  1.037e+00  1.470e-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.181e+00  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.56
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 3.89e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.14e-05

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

Saving results to:
/scratch/kocevski/10748/likelihoodResults_242956801_243216001_4FGL_J1351.0+0029_daily_bin14.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) = 9796.4276953
delta logL = 0.587123544745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9796.42354184
delta logL = 0.591277000132

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2453       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3134       1.0000          .0000       10.000    
     3 'Normalizat'    1.1329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0597       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=   9796.424     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      300 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2415        32.228        .13962E-03   -.42570E-03
   2  Index         3.3136        2.0925        .61582E-02   -.12505E-03
   3  Normalizat    1.1329        .21422        .29486E-03    .33860E-03
   4  Prefactor     1.0597        .15023        .21646E-03    .63316E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.24154
  Index      = 3.31364
  Normalizat = 1.13294
  Prefactor  = 1.05967
 **********
 **   18 **HESSE 
 **********

 FCN=   9796.424     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2415        14.036        .55847E-05   -1.5134    
   2  Index         3.3136        .93471        .24633E-03   -.34402    
   3  Normalizat    1.1329        .20977        .11794E-04   -.88701    
   4  Prefactor     1.0597        .14662        .43293E-04   -.90766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95527e-10
Minuit parameter uncertainties:
  1  14.0411
  2  0.94096
  3  0.209922
  4  0.146677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10748': 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) = 9796.42354178
delta logL = 0.591277059786

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  8.242e+00  1.404e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  3.314e+00  9.410e-01  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.060e+00  1.467e-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.133e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.83
Ra Dec: 207.757 0.487
Photon Index (Free Index): 3.31 +/- 0.94
Photon Flux (Free Index): 7.35e-08 +/- 5.35e-08
Energy Flux (Free Index): 1.29e-05 +/- 9.13e-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/10748/cmap_HighResolution_242956801_243216001_4FGL_J1351.0+0029_daily_bin14.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-03', comment='SUCCESS', photon_flux='3.89e-08', energy_flux2='1.29e-05', photon_flux_error='3.64e-08', dlogl='5.91e-01', energy_flux='1.22e-05', photon_flux2='7.35e-08', job_status='DONE', time_completed='2021-09-08 15:20:59.691769', photon_index_error2='0.94', photon_index2='3.31', ts='1.56', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='9.13e-06', EG='1.18', time_epoch_completed='1631139659.69', return_code='0', job_id='10748', GAL2='1.06', EG2='1.13', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='5.35e-08', ts2='2.83', photon_index='2.44' WHERE bin_id='14' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:20:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 10748: <4FGL_J1351.0+0029_daily_bin14> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin14> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 15:06:08 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:08:22 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:08:22 2021
Terminated at Wed Sep  8 15:21:00 2021
Results reported at Wed Sep  8 15:21:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin14 207.757 0.4873 242956801 243216001 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 :                                   738.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            892 sec.

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

