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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin458
RA = 207.757, Dec = 0.4873
tmin = 358041601, tmax = 358300801
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='13688', job_status='RUN', time_executed='2021-09-08 15:18:24.447293', time_epoch_executed='1631139504.45' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='458'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13688

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13688/ft1_4FGL_J1351.0+0029_daily_bin458.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13688/ft2_4FGL_J1351.0+0029_daily_bin458.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13688/ft1_4FGL_J1351.0+0029_daily_bin458.fits outfile=/scratch/kocevski/13688/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin458.fits ra=207.757 dec=0.4873 rad=12.0 tmin=358041601.0 tmax=358300801.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.56
user 3.31
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13688/ft1_filtered_4FGL_J1351.0+0029_daily_bin458.fits evtable="EVENTS" scfile=/scratch/kocevski/13688/ft2_4FGL_J1351.0+0029_daily_bin458.fits sctable="SC_DATA" expcube=/scratch/kocevski/13688/ltcube_358041601_358300801_4FGL_J1351.0+0029_daily_bin458.fits outfile=/scratch/kocevski/13688/expmap_358041601_358300801_4FGL_J1351.0+0029_daily_bin458.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/13688/ltcube_358041601_358300801_4FGL_J1351.0+0029_daily_bin458.fits
.....................!
real 193.37
user 187.70
sys 4.62

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/13688/ft1_filtered_4FGL_J1351.0+0029_daily_bin458.fits scfile=/scratch/kocevski/13688/ft2_4FGL_J1351.0+0029_daily_bin458.fits outfile=/scratch/kocevski/13688/cmap_358041601_358300801_4FGL_J1351.0+0029_daily_bin458.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13688/ft1_filtered_4FGL_J1351.0+0029_daily_bin458.fits scfile=/scratch/kocevski/13688/ft2_4FGL_J1351.0+0029_daily_bin458.fits outfile=/scratch/kocevski/13688/cmap_HighResolution_358041601_358300801_4FGL_J1351.0+0029_daily_bin458.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.773       1.0000         .10000E-03   10000.    
     2 'norm      '    4.3507       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.118       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.669       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8775       1.0000         .10000E-03   10000.    
    11 'norm      '    .75979       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1891       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    23.969       1.0000         .10000E-03   10000.    
    16 'norm      '    14.993       1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.357       1.0000         .10000E-03   10000.    
    18 'norm      '    11.085       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.589       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2901       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .79216       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=   6815.542     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2606 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.776        11.517       -.71444E-06    .21503E-05
   2  norm          4.3503        7.4314        .47875E-06    .94398E-04
   3  Prefactor     10.118        13.594       -.10684E-05    .25387E-04
   4  Prefactor     .10000E-03    5.0897       -.95387E-07** at limit **
   5  norm          .10000E-03    .62060       -.32459E-06** at limit **
   6  Prefactor     .10001E-03    145.83        .46513E-04** at limit **
   7  norm          11.667        19.814       -.73927E-06    .79403E-05
   8  Prefactor     .10000E-03    1.1435       -.44855E-07** at limit **
   9  Prefactor     .10000E-03    31.703       -.90396E-07** at limit **
  10  Prefactor     2.8775        2.7879        .17312E-06   -.21674E-03
  11  norm          .76033        5.6733       -.75500E-05    .34796E-03
  12  Prefactor     .10000E-03    3.6201        .21655E-07** at limit **
  13  norm          2.1891        1.9664       -.82077E-07    .46019E-03
  14  Prefactor     .10000E-03    113.57        .61021E-04** at limit **
  15  norm          23.969        13.922       -.22426E-06    .57564E-04
  16  norm          14.994        7.4106       -.27428E-06    .55836E-04
  17  Prefactor     52.359        28.487       -.25243E-06    .89513E-04
  18  norm          11.085        16.202       -.89187E-08    .37856E-04
  19  Prefactor     13.602        83.013       -.78894E-05   -.56436E-05
  20  Normalizat    1.2901        .19868        .20429E-05    .49485E-03
  21  Prefactor     .79216        .13741        .17146E-05    .67149E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 27.776
  norm       = 4.35025
  Prefactor  = 10.1176
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100011
  norm       = 11.6674
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.87746
  norm       = 0.760327
  Prefactor  = 0.0001
  norm       = 2.18914
  Prefactor  = 0.000100002
  norm       = 23.9689
  norm       = 14.9936
  Prefactor  = 52.3592
  norm       = 11.0851
  Prefactor  = 13.6023
  Normalizat = 1.29006
  Prefactor  = 0.792162
 **********
 **   18 **HESSE 
 **********

 FCN=   6815.542     FROM HESSE     STATUS=OK           321 CALLS     2927 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.776        11.515        .76019E-04   -1.4653    
   2  norm          4.3503        7.4291        .19311E-03   -1.5291    
   3  Prefactor     10.118        13.605        .12597E-03   -1.5072    
   4  Prefactor     .10000E-03    5.1038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.2212        .12573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    150.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.667        19.832        .11727E-03   -1.5025    
   8  Prefactor     .10000E-03    1.1482        .86198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    32.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8775        2.7975        .13227E-03   -1.5369    
  11  norm          .76033        5.9381        .38631E-03   -1.5534    
  12  Prefactor     .10000E-03    3.6269        .15339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1891        1.9575        .10538E-03   -1.5412    
  14  Prefactor     .10000E-03    110.45        .60063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          23.969        13.936        .81818E-04   -1.4728    
  16  norm          14.994        7.4070        .10344E-03   -1.4933    
  17  Prefactor     52.359        28.513        .55429E-04   -1.4260    
  18  norm          11.085        16.200        .12033E-03   -1.5042    
  19  Prefactor     13.602        83.193        .10866E-03   -1.4970    
  20  Normalizat    1.2901        .24030        .26398E-03   -.83864    
  21  Prefactor     .79216        .16681        .22634E-03   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.22337e-10
Minuit parameter uncertainties:
  1  11.516
  2  7.43063
  3  13.6089
  4  2.93339e-05
  5  2.81556e-05
  6  0.00258059
  7  19.8428
  8  1.01492e-05
  9  0.000331647
  10  2.7976
  11  4.24996
  12  1.32419e-05
  13  1.9576
  14  0.000983636
  15  13.9376
  16  7.4075
  17  28.5206
  18  16.2062
  19  67.4185
  20  0.240509
  21  0.166915
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  3.316e-04  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.922e-01  1.669e-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.290e+00  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/13688/likelihoodResults_358041601_358300801_4FGL_J1351.0+0029_daily_bin458.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): 102
logL (Free Index) = 6815.54251573
delta logL = -0.000148671345414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6815.54236764
delta logL = -5.82356733503e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6770       1.0000          .0000       10.000    
     3 'Normalizat'    1.2901       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79216       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=   6815.542     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      292 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10195E-03    .21557        .12798    ** at limit **
   2  Index         2.6082        8.6959        .50000        .11044E-04
   3  Normalizat    1.2901        .77863E-03    .26398E-03   -.12339E-03
   4  Prefactor     .79216        .54013E-03    .22634E-03   -.16128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101951
  Index      = 2.6082
  Normalizat = 1.29006
  Prefactor  = 0.79216
 **********
 **   18 **HESSE 
 **********

 FCN=   6815.542     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      323 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10195E-03    56.828        .46928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6082        6.1236        .50000       -.49879    
   3  Normalizat    1.2901        .71104E-02    .10559E-04   -.83864    
   4  Prefactor     .79216        .49325E-02    .90537E-05   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.49521e-09
Minuit parameter uncertainties:
  1  0.0210805
  2  168.558
  3  0.00711041
  4  0.00493248
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13688': 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): 102
logL (Free Index) = 6815.54236739
delta logL = -3.26556801156e-07

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.020e-04  2.108e-02  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.608e+00  1.686e+02  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.922e-01  4.932e-03  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.290e+00  7.110e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.757 0.487

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/13688/cmap_HighResolution_358041601_358300801_4FGL_J1351.0+0029_daily_bin458.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.08e-03', job_status='DONE', photon_flux_upper_limit='9.14e-08', time_completed='2021-09-08 15:28:56.353902', job_id='13688', GAL2='0.79', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631140136.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='-3.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='458' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:28:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 13688: <4FGL_J1351.0+0029_daily_bin458> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin458 207.757 0.4873 358041601 358300801 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 :                                   627.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            807 sec.

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

