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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin365
RA = 207.757, Dec = 0.4873
tmin = 333936001, tmax = 334195201
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='13499', job_status='RUN', time_executed='2021-09-08 15:17:35.104924', time_epoch_executed='1631139455.1' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13499/ft1_4FGL_J1351.0+0029_daily_bin365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13499/ft2_4FGL_J1351.0+0029_daily_bin365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13499/ft1_4FGL_J1351.0+0029_daily_bin365.fits outfile=/scratch/kocevski/13499/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin365.fits ra=207.757 dec=0.4873 rad=12.0 tmin=333936001.0 tmax=334195201.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.60
user 3.40
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13499/ft2_4FGL_J1351.0+0029_daily_bin365.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/13499/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin365.fits evtable="EVENTS" outfile="/scratch/kocevski/13499/ft1_filtered_4FGL_J1351.0+0029_daily_bin365.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.52
user 0.37
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13499/ft1_filtered_4FGL_J1351.0+0029_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/13499/ft2_4FGL_J1351.0+0029_daily_bin365.fits sctable="SC_DATA" expcube=/scratch/kocevski/13499/ltcube_333936001_334195201_4FGL_J1351.0+0029_daily_bin365.fits outfile=/scratch/kocevski/13499/expmap_333936001_334195201_4FGL_J1351.0+0029_daily_bin365.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/13499/ltcube_333936001_334195201_4FGL_J1351.0+0029_daily_bin365.fits
.....................!
real 192.50
user 187.22
sys 4.75

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13499/ft1_filtered_4FGL_J1351.0+0029_daily_bin365.fits scfile=/scratch/kocevski/13499/ft2_4FGL_J1351.0+0029_daily_bin365.fits outfile=/scratch/kocevski/13499/cmap_HighResolution_333936001_334195201_4FGL_J1351.0+0029_daily_bin365.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/13499/ft1_filtered_4FGL_J1351.0+0029_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/13499/ft2_4FGL_J1351.0+0029_daily_bin365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/13499/Model_4FGL_J1351.0+0029_daily_bin365.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/13499/ft1_filtered_4FGL_J1351.0+0029_daily_bin365.fits.....................!
real 59.07
user 57.57
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3009       1.0000         .10000E-03   10000.    
     2 'norm      '    18.879       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.086       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12250E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    30.197       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8932       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.697       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22701E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7924       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8860       1.0000         .10000E-03   10000.    
    13 'norm      '    .73755       1.0000         .10000E-03   10000.    
    14 'Prefactor '    48.491       1.0000         .10000E-03   10000.    
    15 'norm      '    6.2016       1.0000         .10000E-03   10000.    
    16 'norm      '    5.0409       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.490       1.0000         .10000E-03   10000.    
    18 'norm      '    23.670       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2672       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87485       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7855.147     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     1923 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3024        6.9486        .44728E-06    .38317E-03
   2  norm          18.879        1.3044        .22607E-08   -.19465E-03
   3  Prefactor     .10000E-03    4.9265       -.48879E-06** at limit **
   4  Prefactor     22.088        1.6602       -.23838E-07    .66350E-03
   5  norm          .10000E-03    .57575        .22139E-06** at limit **
   6  Prefactor     .10856E-03    697.53        .57163E-05** at limit **
   7  norm          30.201        2.8276       -.75672E-07    .26659E-02
   8  Prefactor     2.8930        4.5495        .14188E-06    .10825E-03
   9  Prefactor     14.697        2.2421       -.94865E-07   -.49607E-03
  10  Prefactor     .45254E-01    50.780        .56813E-05    .15521E-04
  11  norm          2.7926        2.9772       -.31733E-06   -.16944E-03
  12  Prefactor     8.8895        10.476       -.22929E-06   -.52507E-02
  13  norm          .73885        1.9129        .46144E-06    .20411E-03
  14  Prefactor     48.503        7.2650       -.14602E-06    .65871E-02
  15  norm          6.2022        6.1378        .87732E-07    .18287E-02
  16  norm          5.0407        5.7304        .28475E-06    .68648E-04
  17  Prefactor     21.509        8.0277       -.26969E-06    .66496E-02
  18  norm          23.670        3.7618       -.65507E-07    .16659E-02
  19  Prefactor     .10000E-03    35.324        .37144E-05** at limit **
  20  Normalizat    1.2669        .22285        .12526E-06    .11293E-03
  21  Prefactor     .87496        .15246        .26953E-06    .14546E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.30241
  norm       = 18.8794
  Prefactor  = 0.0001
  Prefactor  = 22.0879
  norm       = 0.0001
  Prefactor  = 0.000108564
  norm       = 30.201
  Prefactor  = 2.89299
  Prefactor  = 14.6967
  Prefactor  = 0.0452542
  norm       = 2.79256
  Prefactor  = 8.88945
  norm       = 0.738848
  Prefactor  = 48.5028
  norm       = 6.20218
  norm       = 5.04068
  Prefactor  = 21.5092
  norm       = 23.6703
  Prefactor  = 0.0001
  Normalizat = 1.26689
  Prefactor  = 0.874959
 **********
 **   18 **HESSE 
 **********

 FCN=   7855.147     FROM HESSE     STATUS=OK           379 CALLS     2302 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3024        6.9698        .37111E-02   -1.5167    
   2  norm          18.879        12.322        .23045E-02   -1.4839    
   3  Prefactor     .10000E-03    4.9230        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.088        13.158        .21307E-02   -1.4768    
   5  norm          .10000E-03    .38167        .28723E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10856E-03    697.02        .90842E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          30.201        22.633        .18228E-02   -1.4608    
   8  Prefactor     2.8930        4.5628        .59728E-02   -1.5368    
   9  Prefactor     14.697        24.895        .26119E-02   -1.4941    
  10  Prefactor     .45254E-01    2.8957        .50670E-01   -1.5665    
  11  norm          2.7926        2.9788        .60870E-02   -1.5374    
  12  Prefactor     8.8895        13.048        .33615E-02   -1.5112    
  13  norm          .73885        1.9233        .12205E-01   -1.5536    
  14  Prefactor     48.503        23.651        .14396E-02   -1.4314    
  15  norm          6.2022        6.1623        .40301E-02   -1.5210    
  16  norm          5.0407        5.7574        .44774E-02   -1.5259    
  17  Prefactor     21.509        27.156        .21601E-02   -1.4780    
  18  norm          23.670        20.628        .20583E-02   -1.4735    
  19  Prefactor     .10000E-03    35.286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2669        .19361        .62054E-01   -.84560    
  21  Prefactor     .87496        .12930        .44684E-01   -.97022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82778e-07
Minuit parameter uncertainties:
  1  6.97056
  2  12.3241
  3  2.04146e-05
  4  13.1594
  5  2.5174e-06
  6  0.156376
  7  22.6396
  8  4.56332
  9  24.9121
  10  0.723236
  11  2.97895
  12  13.0519
  13  1.92341
  14  23.6552
  15  6.1629
  16  5.75799
  17  27.1712
  18  20.6338
  19  1.04046e-05
  20  0.193721
  21  0.129341
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.470e+01  2.491e+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:  8.750e-01  1.293e-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.267e+00  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/13499/likelihoodResults_333936001_334195201_4FGL_J1351.0+0029_daily_bin365.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) = 7851.93639793
delta logL = 3.21109627668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7851.56716801
delta logL = 3.58032619973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.0432       1.0000          .0000       10.000    
     3 'Normalizat'    1.1184       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95022       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.

 FCN=   7854.263     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      617 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4186        1.6601        .90712E-02    .80209E-03
   2  Index         .52533        .41077        .30828       -.26585E-04
   3  Normalizat    1.2916        .18172        .61509E-01   -.10285E-03
   4  Prefactor     .86863        .12761        .45642E-01   -.28272E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.41857
  Index      = 0.525334
  Normalizat = 1.29162
  Prefactor  = 0.868625
 **********
 **   18 **HESSE 
 **********

 FCN=   7854.263     FROM HESSE     STATUS=OK            31 CALLS      648 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4186        3.1632        .12014E-03   -1.5946    
   2  Index         .52533        .66069        .15959E-01   -1.1083    
   3  Normalizat    1.2916        .21521        .27203E-03   -.83817    
   4  Prefactor     .86863        .15121        .22660E-03   -.97246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74416e-10
Minuit parameter uncertainties:
  1  3.16354
  2  0.670748
  3  0.215358
  4  0.15128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13499': 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) = 7854.26275489
delta logL = 0.884739318886

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.419e+00  3.164e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  5.253e-01  6.707e-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:  8.686e-01  1.513e-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.292e+00  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.20
Ra Dec: 207.757 0.487
Photon Index (Free Index): 0.53 +/- 0.67
Photon Flux (Free Index): 2.56e-09 +/- 1.01e-08
Energy Flux (Free Index): 8.57e-05 +/- 4.01e-04

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/13499/cmap_HighResolution_333936001_334195201_4FGL_J1351.0+0029_daily_bin365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.68e-03', comment='SUCCESS', energy_flux2='8.57e-05', dlogl='8.85e-01', photon_flux2='2.56e-09', job_status='DONE', time_completed='2021-09-08 15:28:42.674867', photon_index_error2='0.67', photon_index2='0.53', ts='0.44', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='4.01e-04', EG='1.27', time_epoch_completed='1631140122.67', return_code='0', job_id='13499', GAL2='0.87', EG2='1.29', return_code2='0', photon_flux_error2='1.01e-08', ts2='2.20', photon_index='2.44' WHERE bin_id='365' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:28:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 13499: <4FGL_J1351.0+0029_daily_bin365> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin365> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:15:17 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:15:19 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:15:19 2021
Terminated at Wed Sep  8 15:28:43 2021
Results reported at Wed Sep  8 15:28:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin365 207.757 0.4873 333936001 334195201 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 :                                   664.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            806 sec.

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

