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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin785
RA = 207.757, Dec = 0.4873
tmin = 442800001, tmax = 443059201
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='17016', job_status='RUN', time_executed='2021-09-08 15:28:42.784133', time_epoch_executed='1631140122.78' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='785'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17016

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17016/ft1_4FGL_J1351.0+0029_daily_bin785.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17016/ft2_4FGL_J1351.0+0029_daily_bin785.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17016/ft1_4FGL_J1351.0+0029_daily_bin785.fits outfile=/scratch/kocevski/17016/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin785.fits ra=207.757 dec=0.4873 rad=12.0 tmin=442800001.0 tmax=443059201.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.52
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17016/ft2_4FGL_J1351.0+0029_daily_bin785.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/17016/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin785.fits evtable="EVENTS" outfile="/scratch/kocevski/17016/ft1_filtered_4FGL_J1351.0+0029_daily_bin785.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.35
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17016/ft1_filtered_4FGL_J1351.0+0029_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/17016/ft2_4FGL_J1351.0+0029_daily_bin785.fits sctable="SC_DATA" expcube=/scratch/kocevski/17016/ltcube_442800001_443059201_4FGL_J1351.0+0029_daily_bin785.fits outfile=/scratch/kocevski/17016/expmap_442800001_443059201_4FGL_J1351.0+0029_daily_bin785.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/17016/ltcube_442800001_443059201_4FGL_J1351.0+0029_daily_bin785.fits
.....................!
real 192.92
user 186.74
sys 5.18

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/17016/ft1_filtered_4FGL_J1351.0+0029_daily_bin785.fits scfile=/scratch/kocevski/17016/ft2_4FGL_J1351.0+0029_daily_bin785.fits outfile=/scratch/kocevski/17016/cmap_442800001_443059201_4FGL_J1351.0+0029_daily_bin785.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17016/ft1_filtered_4FGL_J1351.0+0029_daily_bin785.fits scfile=/scratch/kocevski/17016/ft2_4FGL_J1351.0+0029_daily_bin785.fits outfile=/scratch/kocevski/17016/cmap_HighResolution_442800001_443059201_4FGL_J1351.0+0029_daily_bin785.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.61
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1047       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7291       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11312E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.1478       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12194E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.385       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    19.879       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .13135E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.698       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   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'    1.5748       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78626       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=   6499.985     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     1870 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1037        11.716        .58087E-05   -.65475E-03
   2  norm          .10000E-03    14.335        .33495E-05** at limit **
   3  Prefactor     5.7157        17.672        .30525E-05    .20247E-03
   4  Prefactor     .10000E-03    23.538       -.42552E-05** at limit **
   5  norm          4.1476        1.9723       -.39805E-07   -.19874E-03
   6  Prefactor     .10000E-03    120.37       -.26217E-05** at limit **
   7  norm          .10000E-03    8.9965        .10820E-05** at limit **
   8  Prefactor     .10000E-03    1.2969        .19927E-07** at limit **
   9  Prefactor     20.384        17.505        .22743E-06    .38582E-04
  10  Prefactor     .10000E-03    1.1403        .98638E-08** at limit **
  11  norm          19.884        10.470        .14260E-06    .45535E-04
  12  Prefactor     .10000E-03    10.380       -.17557E-05** at limit **
  13  norm          .10001E-03    1.4774       -.26704E-07** at limit **
  14  Prefactor     .10000E-03    7.2596       -.24846E-06** at limit **
  15  norm          .10000E-03    16.338       -.25315E-05** at limit **
  16  norm          15.714        9.7327        .30981E-06    .19192E-03
  17  Prefactor     .10000E-03    6.3728        .77828E-07** at limit **
  18  norm          .10000E-03    5.0993       -.32603E-08** at limit **
  19  Prefactor     .10001E-03    25.792        .53402E-05** at limit **
  20  Normalizat    1.5747        .21885       -.73305E-06    .11015E-03
  21  Prefactor     .78650        .14997       -.31765E-06    .63082E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.10369
  norm       = 0.000100004
  Prefactor  = 5.71567
  Prefactor  = 0.000100003
  norm       = 4.14761
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.3837
  Prefactor  = 0.0001
  norm       = 19.8843
  Prefactor  = 0.000100001
  norm       = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 15.7142
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100009
  Normalizat = 1.57472
  Prefactor  = 0.786503
 **********
 **   18 **HESSE 
 **********

 FCN=   6499.985     FROM HESSE     STATUS=OK           309 CALLS     2179 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1037        13.318        .99490E-03   -1.5303    
   2  norm          .10000E-03    14.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.7157        18.070        .16781E-03   -1.5230    
   4  Prefactor     .10000E-03    24.854        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.1476        1.9727        .74096E-04   -1.5301    
   6  Prefactor     .10000E-03    121.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.0472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.3042        .89638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.384        17.533        .88712E-04   -1.4805    
  10  Prefactor     .10000E-03    1.1423        .84078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          19.884        10.449        .89832E-04   -1.4816    
  12  Prefactor     .10000E-03    10.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    25.618        .18289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.2733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    16.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.714        9.5586        .10109E-03   -1.4915    
  17  Prefactor     .10000E-03    6.3780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.0998        .17781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    27.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5747        .26223        .26063E-03   -.75700    
  21  Prefactor     .78650        .17925        .24455E-03   -1.0023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44423e-09
Minuit parameter uncertainties:
  1  13.3277
  2  0.000456121
  3  18.0877
  4  0.000565544
  5  1.97275
  6  0.000932823
  7  0.00011569
  8  2.02659e-06
  9  17.5373
  10  7.72509e-07
  11  10.45
  12  0.000186585
  13  0.000889621
  14  2.06294e-05
  15  0.000320811
  16  9.5595
  17  8.68928e-06
  18  1.99547e-07
  19  0.000990618
  20  0.262458
  21  0.179386
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  2.038e+01  1.754e+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.865e-01  1.794e-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.575e+00  2.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.60
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 3.88e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/17016/likelihoodResults_442800001_443059201_4FGL_J1351.0+0029_daily_bin785.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) = 6499.97774023
delta logL = 0.00757390640774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6499.97093118
delta logL = 0.0143829606477

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.863       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6225       1.0000          .0000       10.000    
     3 'Normalizat'    1.5635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79170       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=   6499.971     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      241 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.855        25.843        .94763E-04   -.34782E-03
   2  Index         2.6233        1.2824        .92585E-02   -.13451E-03
   3  Normalizat    1.5636        .27058        .26138E-03   -.92807E-03
   4  Prefactor     .79165        .18282        .24385E-03   -.14376E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.8549
  Index      = 2.62329
  Normalizat = 1.56359
  Prefactor  = 0.791647
 **********
 **   18 **HESSE 
 **********

 FCN=   6499.971     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.855        22.525        .18953E-04   -1.4863    
   2  Index         2.6233        1.1191        .37034E-03   -.49535    
   3  Normalizat    1.5636        .26798        .52276E-04   -.76007    
   4  Prefactor     .79165        .18193        .48770E-04   -1.0004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99575e-09
Minuit parameter uncertainties:
  1  22.5352
  2  1.13149
  3  0.268229
  4  0.182069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17016': 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) = 6499.97093083
delta logL = 0.0143833078446

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.785e+01  2.254e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.623e+00  1.131e+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:  7.916e-01  1.821e-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.564e+00  2.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 207.757 0.487
Photon Index (Free Index): 2.62 +/- 1.13
Photon Flux (Free Index): 4.62e-08 +/- 5.87e-08
Energy Flux (Free Index): 1.19e-05 +/- 9.90e-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/17016/cmap_HighResolution_442800001_443059201_4FGL_J1351.0+0029_daily_bin785.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.29e-03', comment='SUCCESS', photon_flux='3.88e-08', energy_flux2='1.19e-05', photon_flux_error='3.34e-08', dlogl='1.44e-02', energy_flux='1.21e-05', photon_flux2='4.62e-08', job_status='DONE', time_completed='2021-09-08 15:38:20.047662', photon_index_error2='1.13', photon_index2='2.62', ts='2.60', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='9.90e-06', EG='1.57', time_epoch_completed='1631140700.05', return_code='0', job_id='17016', GAL2='0.79', EG2='1.56', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='5.87e-08', ts2='2.63', photon_index='2.44' WHERE bin_id='785' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:38:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 17016: <4FGL_J1351.0+0029_daily_bin785> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin785 207.757 0.4873 442800001 443059201 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 :                                   574.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            782 sec.

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

