/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 113 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 = 7388
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1351.0+0029_daily_bin169
RA = 207.757, Dec = 0.4873
tmin = 283132801, tmax = 283392001
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='12033', job_status='RUN', time_executed='2021-09-08 15:13:44.289620', time_epoch_executed='1631139224.29' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12033

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12033/ft1_4FGL_J1351.0+0029_daily_bin169.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12033/ft2_4FGL_J1351.0+0029_daily_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12033/ft1_4FGL_J1351.0+0029_daily_bin169.fits outfile=/scratch/kocevski/12033/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin169.fits ra=207.757 dec=0.4873 rad=12.0 tmin=283132801.0 tmax=283392001.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.81
user 3.59
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12033/ft1_filtered_4FGL_J1351.0+0029_daily_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/12033/ft2_4FGL_J1351.0+0029_daily_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/12033/ltcube_283132801_283392001_4FGL_J1351.0+0029_daily_bin169.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/12033/ft2_4FGL_J1351.0+0029_daily_bin169.fits
.....................!
real 13.53
user 13.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12033/ft1_filtered_4FGL_J1351.0+0029_daily_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/12033/ft2_4FGL_J1351.0+0029_daily_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/12033/ltcube_283132801_283392001_4FGL_J1351.0+0029_daily_bin169.fits outfile=/scratch/kocevski/12033/expmap_283132801_283392001_4FGL_J1351.0+0029_daily_bin169.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/12033/ltcube_283132801_283392001_4FGL_J1351.0+0029_daily_bin169.fits
.....................!
real 191.56
user 186.49
sys 4.56

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/12033/ft1_filtered_4FGL_J1351.0+0029_daily_bin169.fits scfile=/scratch/kocevski/12033/ft2_4FGL_J1351.0+0029_daily_bin169.fits outfile=/scratch/kocevski/12033/cmap_283132801_283392001_4FGL_J1351.0+0029_daily_bin169.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12033/ft1_filtered_4FGL_J1351.0+0029_daily_bin169.fits scfile=/scratch/kocevski/12033/ft2_4FGL_J1351.0+0029_daily_bin169.fits outfile=/scratch/kocevski/12033/cmap_HighResolution_283132801_283392001_4FGL_J1351.0+0029_daily_bin169.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.082       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.5396       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    21.790       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3172       1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.628       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2815       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8707       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.061       1.0000         .10000E-03   10000.    
    16 'norm      '    8.1846       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0624       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1050       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=   8066.843     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2153 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3029        .54125E-08** at limit **
   2  norm          .10000E-03    11.884       -.17265E-05** at limit **
   3  Prefactor     26.082        18.519        .73671E-07    .10757E-04
   4  Prefactor     .10000E-03    4.4306       -.24817E-06** at limit **
   5  norm          4.5396        1.5594        .68407E-08   -.55386E-04
   6  Prefactor     .10000E-03    38.017       -.14636E-05** at limit **
   7  norm          21.789        32.261       -.61772E-07   -.11007E-04
   8  Prefactor     3.3173        3.1216       -.56992E-06   -.82330E-03
   9  Prefactor     49.630        21.770        .41513E-06    .14787E-03
  10  Prefactor     4.2814        4.2861        .92697E-07   -.80155E-04
  11  norm          .10000E-03    1.5469        .76138E-08** at limit **
  12  Prefactor     .10000E-03    3.3648        .39843E-07** at limit **
  13  norm          3.8709        2.4542       -.15049E-06   -.18263E-03
  14  Prefactor     .10000E-03    4.6809        .26561E-06** at limit **
  15  norm          13.061        10.232        .14543E-07    .65578E-05
  16  norm          8.1847        8.0017        .18410E-05   -.60450E-03
  17  Prefactor     .10000E-03    8.8698        .81139E-07** at limit **
  18  norm          .10000E-03    12.774        .18327E-05** at limit **
  19  Prefactor     .10000E-03    37.475        .11489E-05** at limit **
  20  Normalizat    1.0624        .20124        .74822E-07   -.12273E-04
  21  Prefactor     1.1050        .14116       -.25892E-06    .21257E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 26.0823
  Prefactor  = 0.0001
  norm       = 4.53961
  Prefactor  = 0.000100001
  norm       = 21.7891
  Prefactor  = 3.31733
  Prefactor  = 49.6304
  Prefactor  = 4.28141
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.87088
  Prefactor  = 0.0001
  norm       = 13.0612
  norm       = 8.18471
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.06237
  Prefactor  = 1.10499
 **********
 **   18 **HESSE 
 **********

 FCN=   8066.843     FROM HESSE     STATUS=OK           315 CALLS     2468 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3047        .13311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.082        18.573        .78440E-04   -1.4686    
   4  Prefactor     .10000E-03    4.4473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.5396        1.5598        .62827E-04   -1.5282    
   6  Prefactor     .10000E-03    38.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          21.789        32.331        .85807E-04   -1.4774    
   8  Prefactor     3.3173        3.2667        .15512E-03   -1.5344    
   9  Prefactor     49.630        21.851        .56925E-04   -1.4298    
  10  Prefactor     4.2814        4.2834        .18062E-03   -1.5294    
  11  norm          .10000E-03    1.5521        .10909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.3716        .16088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.8709        2.4500        .10482E-03   -1.5314    
  14  Prefactor     .10000E-03    4.6925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.061        10.238        .11083E-03   -1.4985    
  16  norm          8.1847        8.5569        .70069E-03   -1.5136    
  17  Prefactor     .10000E-03    8.8808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    13.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0624        .23820        .31041E-03   -.90969    
  21  Prefactor     1.1050        .16729        .21667E-03   -.89307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75474e-10
Minuit parameter uncertainties:
  1  1.971e-07
  2  0.000222538
  3  18.5771
  4  1.85493e-05
  5  1.55981
  6  0.000334486
  7  32.3565
  8  3.26692
  9  21.8543
  10  4.28373
  11  1.59615e-07
  12  8.58193e-07
  13  2.45011
  14  2.09606e-05
  15  10.2395
  16  8.55814
  17  7.24016e-06
  18  0.000247269
  19  0.000262989
  20  0.23844
  21  0.167368
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  4.963e+01  2.185e+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.105e+00  1.674e-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.062e+00  2.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.85
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 9.45e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 2.95e-05 +/- 1.30e-05

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) = 8066.47359091
delta logL = 0.369472516326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8066.47294649
delta logL = 0.370116934201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    66.103       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1518       1.0000          .0000       10.000    
     3 'Normalizat'    1.0785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0965       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=   8066.473     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      309 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     66.004        33.078        .49363E-04    .94426E-05
   2  Index         2.1505        .32057        .53867E-02    .35893E-03
   3  Normalizat    1.0789        .23150        .30829E-03    .81497E-05
   4  Prefactor     1.0964        .16496        .21736E-03   -.54919E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 66.0043
  Index      = 2.15051
  Normalizat = 1.07889
  Prefactor  = 1.09639
 **********
 **   18 **HESSE 
 **********

 FCN=   8066.473     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     66.004        32.667        .98726E-05   -1.4081    
   2  Index         2.1505        .31655        .10773E-02   -.60638    
   3  Normalizat    1.0789        .23173        .12332E-04   -.90433    
   4  Prefactor     1.0964        .16512        .86943E-05   -.89582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19575e-12
Minuit parameter uncertainties:
  1  32.6761
  2  0.316866
  3  0.231949
  4  0.165201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12033': 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) = 8066.47292108
delta logL = 0.370142350966

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  6.600e+01  3.268e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.151e+00  3.169e-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.096e+00  1.652e-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.079e+00  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.57
Ra Dec: 207.757 0.487
Photon Index (Free Index): 2.15 +/- 0.32
Photon Flux (Free Index): 8.11e-08 +/- 4.00e-08
Energy Flux (Free Index): 4.01e-05 +/- 2.40e-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/12033/cmap_HighResolution_283132801_283392001_4FGL_J1351.0+0029_daily_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.45e-08', energy_flux2='4.01e-05', photon_flux_error='4.16e-08', dlogl='3.70e-01', energy_flux='2.95e-05', photon_flux2='8.11e-08', job_status='DONE', time_completed='2021-09-08 15:23:41.669655', photon_index_error2='0.32', photon_index2='2.15', ts='10.85', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.40e-05', EG='1.06', time_epoch_completed='1631139821.67', return_code='0', job_id='12033', GAL2='1.10', EG2='1.08', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='4.00e-08', ts2='11.57', photon_index='2.44' WHERE bin_id='169' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:23:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 12033: <4FGL_J1351.0+0029_daily_bin169> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin169 207.757 0.4873 283132801 283392001 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 :                                   593.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            791 sec.

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

