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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin113
RA = 207.757, Dec = 0.4873
tmin = 268617601, tmax = 268876801
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='11944', job_status='RUN', time_executed='2021-09-08 15:14:38.605208', time_epoch_executed='1631139278.61' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/11944

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/11944/ft1_4FGL_J1351.0+0029_daily_bin113.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/11944/ft2_4FGL_J1351.0+0029_daily_bin113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/11944/ft1_4FGL_J1351.0+0029_daily_bin113.fits outfile=/scratch/kocevski/11944/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin113.fits ra=207.757 dec=0.4873 rad=12.0 tmin=268617601.0 tmax=268876801.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.57
user 1.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/11944/ft1_filtered_4FGL_J1351.0+0029_daily_bin113.fits" evtable="EVENTS" scfile=/scratch/kocevski/11944/ft2_4FGL_J1351.0+0029_daily_bin113.fits sctable="SC_DATA" outfile=/scratch/kocevski/11944/ltcube_268617601_268876801_4FGL_J1351.0+0029_daily_bin113.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/11944/ft2_4FGL_J1351.0+0029_daily_bin113.fits
.....................!
real 18.28
user 17.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/11944/ft1_filtered_4FGL_J1351.0+0029_daily_bin113.fits evtable="EVENTS" scfile=/scratch/kocevski/11944/ft2_4FGL_J1351.0+0029_daily_bin113.fits sctable="SC_DATA" expcube=/scratch/kocevski/11944/ltcube_268617601_268876801_4FGL_J1351.0+0029_daily_bin113.fits outfile=/scratch/kocevski/11944/expmap_268617601_268876801_4FGL_J1351.0+0029_daily_bin113.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/11944/ltcube_268617601_268876801_4FGL_J1351.0+0029_daily_bin113.fits
.....................!
real 191.99
user 186.79
sys 4.63

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/11944/ft1_filtered_4FGL_J1351.0+0029_daily_bin113.fits scfile=/scratch/kocevski/11944/ft2_4FGL_J1351.0+0029_daily_bin113.fits outfile=/scratch/kocevski/11944/cmap_268617601_268876801_4FGL_J1351.0+0029_daily_bin113.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/11944/ft1_filtered_4FGL_J1351.0+0029_daily_bin113.fits scfile=/scratch/kocevski/11944/ft2_4FGL_J1351.0+0029_daily_bin113.fits outfile=/scratch/kocevski/11944/cmap_HighResolution_268617601_268876801_4FGL_J1351.0+0029_daily_bin113.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .43931       1.0000         .10000E-03   10000.    
     2 'norm      '    4.9525       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3730       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .74104E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3338       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.871       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7048       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.421       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6327       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11713E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.4570       1.0000         .10000E-03   10000.    
    16 'norm      '    6.9815       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2084       1.0000         .10000E-03   10000.    
    18 'norm      '    11.952       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0033       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1071       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=   9414.346     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     1910 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51036        15.425        .12139E-04    .62505E-03
   2  norm          4.9503        8.4001       -.13123E-05    .30016E-04
   3  Prefactor     2.3683        28.750        .50534E-05    .11439E-03
   4  Prefactor     .10024E-03    29.618       -.18886E-04** at limit **
   5  norm          2.3338        1.1403       -.30332E-07    .47254E-03
   6  Prefactor     15.877        41.739       -.72484E-05   -.23100E-04
   7  norm          .10000E-03    8.6023       -.22236E-05** at limit **
   8  Prefactor     1.7054        2.9317       -.82404E-06    .37418E-03
   9  Prefactor     16.419        15.366        .20370E-07    .30301E-04
  10  Prefactor     .10000E-03    2.1846        .41057E-06** at limit **
  11  norm          .10000E-03    1.9250       -.81178E-07** at limit **
  12  Prefactor     .10000E-03    8.6093        .16827E-05** at limit **
  13  norm          1.6331        2.0892       -.50629E-06    .36317E-03
  14  Prefactor     .10000E-03    22.585       -.74168E-05** at limit **
  15  norm          8.4576        7.5261        .17269E-06    .39807E-04
  16  norm          6.9819        5.2300       -.19175E-06    .72054E-04
  17  Prefactor     1.2026        73.735       -.26121E-06    .44725E-04
  18  norm          11.952        11.896        .24767E-06    .45916E-04
  19  Prefactor     .10000E-03    27.131        .35133E-06** at limit **
  20  Normalizat    1.0033        .17435        .73257E-06    .69978E-03
  21  Prefactor     1.1070        .12160        .28267E-06    .73298E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.510359
  norm       = 4.95035
  Prefactor  = 2.36826
  Prefactor  = 0.000100241
  norm       = 2.33382
  Prefactor  = 15.8772
  norm       = 0.0001
  Prefactor  = 1.70543
  Prefactor  = 16.4191
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.63306
  Prefactor  = 0.0001
  norm       = 8.45761
  norm       = 6.98194
  Prefactor  = 1.20262
  norm       = 11.9515
  Prefactor  = 0.0001
  Normalizat = 1.00326
  Prefactor  = 1.10703
 **********
 **   18 **HESSE 
 **********

 FCN=   9414.346     FROM HESSE     STATUS=OK           325 CALLS     2235 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51036        25.887        .42330E-02   -1.5565    
   2  norm          4.9503        8.3876        .18072E-03   -1.5263    
   3  Prefactor     2.3683        29.460        .26597E-03   -1.5400    
   4  Prefactor     .10024E-03    52.024        .42010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3338        1.1351        .69407E-04   -1.5402    
   6  Prefactor     15.877        41.855        .10054E-03   -1.4911    
   7  norm          .10000E-03    8.6351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7054        2.9693        .21097E-03   -1.5447    
   9  Prefactor     16.419        15.372        .98837E-04   -1.4897    
  10  Prefactor     .10000E-03    6.8009        .27756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.9433        .13147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.7606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6331        2.1106        .15207E-03   -1.5452    
  14  Prefactor     .10000E-03    23.222        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.4576        7.5316        .13785E-03   -1.5126    
  16  norm          6.9819        5.2211        .15183E-03   -1.5179    
  17  Prefactor     1.2026        79.148        .41187E-03   -1.5489    
  18  norm          11.952        11.870        .11587E-03   -1.5016    
  19  Prefactor     .10000E-03    27.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0033        .20536        .29591E-03   -.92921    
  21  Prefactor     1.1070        .14422        .20442E-03   -.89242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.98536e-09
Minuit parameter uncertainties:
  1  7.27217
  2  8.38962
  3  16.7154
  4  0.00708499
  5  1.13511
  6  41.9321
  7  4.833e-05
  8  2.96955
  9  15.3761
  10  0.000119827
  11  3.36991e-06
  12  2.69992e-05
  13  2.11074
  14  3.91821e-05
  15  7.53247
  16  5.22147
  17  19.5387
  18  11.8724
  19  1.38423e-05
  20  0.205524
  21  0.14427
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.642e+01  1.538e+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.107e+00  1.443e-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.003e+00  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.92
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 2.92e-08
Energy Flux (Fixed Index): 9.77e-06 +/- 9.15e-06

TS (Fixed Index): 1.92
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 9.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/11944/likelihoodResults_268617601_268876801_4FGL_J1351.0+0029_daily_bin113.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) = 9414.28407684
delta logL = 0.0617072791993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9414.28104679
delta logL = 0.0647373285174

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.953       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1598       1.0000          .0000       10.000    
     3 'Normalizat'    1.0134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1027       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=   9414.281     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      293 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.956        18.660        .91998E-04   -.89696E-03
   2  Index         2.1598        .75874        .10810E-01   -.33647E-03
   3  Normalizat    1.0133        .19883        .29460E-03    .40860E-03
   4  Prefactor     1.1028        .14317        .20476E-03    .66963E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.9558
  Index      = 2.15977
  Normalizat = 1.01329
  Prefactor  = 1.10283
 **********
 **   18 **HESSE 
 **********

 FCN=   9414.281     FROM HESSE     STATUS=OK            23 CALLS      316 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.956        18.494        .18400E-04   -1.4837    
   2  Index         2.1598        .75167        .43242E-03   -.60413    
   3  Normalizat    1.0133        .19892        .11784E-04   -.92587    
   4  Prefactor     1.1028        .14327        .40951E-04   -.89376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23592e-09
Minuit parameter uncertainties:
  1  18.4999
  2  0.755915
  3  0.199062
  4  0.143321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/11944': 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) = 9414.2810465
delta logL = 0.0647376218749

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.896e+01  1.850e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.160e+00  7.559e-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.103e+00  1.433e-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.013e+00  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 207.757 0.487
Photon Index (Free Index): 2.16 +/- 0.76
Photon Flux (Free Index): 2.36e-08 +/- 3.19e-08
Energy Flux (Free Index): 1.15e-05 +/- 1.27e-05

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/11944/cmap_HighResolution_268617601_268876801_4FGL_J1351.0+0029_daily_bin113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-03', comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='1.15e-05', photon_flux_error='2.92e-08', dlogl='6.47e-02', energy_flux='9.77e-06', photon_flux2='2.36e-08', job_status='DONE', time_completed='2021-09-08 15:26:02.874777', photon_index_error2='0.76', photon_index2='2.16', ts='1.92', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='9.75e-08', energy_flux_error2='1.27e-05', EG='1.00', time_epoch_completed='1631139962.87', return_code='0', job_id='11944', GAL2='1.10', EG2='1.01', return_code2='0', energy_flux_error='9.15e-06', photon_flux_error2='3.19e-08', ts2='2.05', photon_index='2.44' WHERE bin_id='113' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:26:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 11944: <4FGL_J1351.0+0029_daily_bin113> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin113> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:10:25 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:11:26 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:11:26 2021
Terminated at Wed Sep  8 15:26:03 2021
Results reported at Wed Sep  8 15:26:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin113 207.757 0.4873 268617601 268876801 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 :                                   681.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            938 sec.

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

