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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin925
RA = 207.757, Dec = 0.4873
tmin = 479088001, tmax = 479347201
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='17226', job_status='RUN', time_executed='2021-09-08 15:26:33.883292', time_epoch_executed='1631139993.88' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='925'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17226

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17226/ft1_4FGL_J1351.0+0029_daily_bin925.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17226/ft2_4FGL_J1351.0+0029_daily_bin925.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17226/ft1_4FGL_J1351.0+0029_daily_bin925.fits outfile=/scratch/kocevski/17226/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin925.fits ra=207.757 dec=0.4873 rad=12.0 tmin=479088001.0 tmax=479347201.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.30
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17226/ft2_4FGL_J1351.0+0029_daily_bin925.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/17226/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin925.fits evtable="EVENTS" outfile="/scratch/kocevski/17226/ft1_filtered_4FGL_J1351.0+0029_daily_bin925.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/17226/ft1_filtered_4FGL_J1351.0+0029_daily_bin925.fits" evtable="EVENTS" scfile=/scratch/kocevski/17226/ft2_4FGL_J1351.0+0029_daily_bin925.fits sctable="SC_DATA" outfile=/scratch/kocevski/17226/ltcube_479088001_479347201_4FGL_J1351.0+0029_daily_bin925.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/17226/ft2_4FGL_J1351.0+0029_daily_bin925.fits
.....................!
real 15.27
user 14.87
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17226/ft1_filtered_4FGL_J1351.0+0029_daily_bin925.fits evtable="EVENTS" scfile=/scratch/kocevski/17226/ft2_4FGL_J1351.0+0029_daily_bin925.fits sctable="SC_DATA" expcube=/scratch/kocevski/17226/ltcube_479088001_479347201_4FGL_J1351.0+0029_daily_bin925.fits outfile=/scratch/kocevski/17226/expmap_479088001_479347201_4FGL_J1351.0+0029_daily_bin925.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/17226/ltcube_479088001_479347201_4FGL_J1351.0+0029_daily_bin925.fits
.....................!
real 193.30
user 187.28
sys 5.61

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/17226/ft1_filtered_4FGL_J1351.0+0029_daily_bin925.fits scfile=/scratch/kocevski/17226/ft2_4FGL_J1351.0+0029_daily_bin925.fits outfile=/scratch/kocevski/17226/cmap_479088001_479347201_4FGL_J1351.0+0029_daily_bin925.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.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.757       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.631       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9300       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.386       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6277       1.0000         .10000E-03   10000.    
    11 'norm      '    4.9581       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3915       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0820       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.660       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.5335       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4085       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .52168       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=   4754.015     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2244 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.759        11.652        .46714E-05   -.21889E-04
   2  norm          .10000E-03    5.2202        .47515E-08** at limit **
   3  Prefactor     38.636        28.146        .57947E-06   -.14959E-04
   4  Prefactor     4.9307        9.5615        .34766E-06   -.10139E-03
   5  norm          .10000E-03    .60346       -.24371E-07** at limit **
   6  Prefactor     .10000E-03    85.342        .28177E-05** at limit **
   7  norm          14.386        16.449       -.12538E-06    .57988E-05
   8  Prefactor     .10000E-03    1.3173       -.89717E-08** at limit **
   9  Prefactor     .10000E-03    9.4550        .79133E-08** at limit **
  10  Prefactor     1.6276        2.4717       -.53943E-07   -.20530E-03
  11  norm          4.9585        8.4028       -.62175E-06   -.18576E-03
  12  Prefactor     .10000E-03    14.544        .60984E-07** at limit **
  13  norm          2.3916        1.9595        .42911E-07   -.78810E-05
  14  Prefactor     6.0845        17.099        .17644E-05   -.43055E-04
  15  norm          .10000E-03    3.8063       -.17283E-08** at limit **
  16  norm          13.660        8.5088       -.10218E-06   -.15046E-04
  17  Prefactor     .10000E-03    8.5062        .70952E-07** at limit **
  18  norm          9.5308        16.824       -.20918E-05   -.20160E-04
  19  Prefactor     .10000E-03    126.42       -.40563E-05** at limit **
  20  Normalizat    1.4081        .20913       -.76735E-06    .20539E-04
  21  Prefactor     .52186        .14061        .57301E-07   -.56768E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.7592
  norm       = 0.0001
  Prefactor  = 38.6361
  Prefactor  = 4.93066
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.3855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.62759
  norm       = 4.95849
  Prefactor  = 0.0001
  norm       = 2.39159
  Prefactor  = 6.08447
  norm       = 0.0001
  norm       = 13.6603
  Prefactor  = 0.0001
  norm       = 9.53082
  Prefactor  = 0.0001
  Normalizat = 1.40811
  Prefactor  = 0.521864
 **********
 **   18 **HESSE 
 **********

 FCN=   4754.015     FROM HESSE     STATUS=OK           317 CALLS     2561 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.759        11.584        .10799E-03   -1.4966    
   2  norm          .10000E-03    5.2215        .15386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     38.636        28.245        .64486E-04   -1.4464    
   4  Prefactor     4.9307        9.5416        .18114E-03   -1.5264    
   5  norm          .10000E-03    .62213        .10452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    85.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.386        16.449        .10560E-03   -1.4949    
   8  Prefactor     .10000E-03    1.3226        .77262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.4740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6276        2.4471        .13026E-03   -1.5453    
  11  norm          4.9585        8.4399        .18062E-03   -1.5263    
  12  Prefactor     .10000E-03    14.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3916        1.9622        .84446E-04   -1.5399    
  14  Prefactor     6.0845        17.058        .16280E-03   -1.5215    
  15  norm          .10000E-03    3.8080        .13138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.660        8.5071        .10837E-03   -1.4969    
  17  Prefactor     .10000E-03    8.5268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.5308        16.850        .12979E-03   -1.5090    
  19  Prefactor     .10000E-03    126.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4081        .24602        .22395E-03   -.80394    
  21  Prefactor     .52186        .16480        .23777E-03   -1.1098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28831e-10
Minuit parameter uncertainties:
  1  11.5863
  2  3.74629e-06
  3  28.2549
  4  9.54453
  5  1.56124e-06
  6  2.03093e-05
  7  16.4541
  8  1.02856e-06
  9  2.79103e-06
  10  2.44724
  11  8.44192
  12  1.62875e-06
  13  1.96222
  14  17.0712
  15  5.34388e-07
  16  8.5079
  17  6.13221e-06
  18  16.858
  19  8.74493e-05
  20  0.24623
  21  0.164947
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  2.791e-06  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:  5.219e-01  1.649e-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.408e+00  2.462e-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: 7.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17226/likelihoodResults_479088001_479347201_4FGL_J1351.0+0029_daily_bin925.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) = 4754.01527361
delta logL = -0.000502148236592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4754.01477147
delta logL = -4.17458068114e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4310       1.0000          .0000       10.000    
     3 'Normalizat'    1.4081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52187       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=   4754.015     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      243 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10028E-03    139.90        .18142E-02** at limit **
   2  Index         2.3984        6.4464        .50000        .46518E-05
   3  Normalizat    1.4081        .20044E-01    .22395E-03    .22814E-04
   4  Prefactor     .52187        .13651E-01    .23777E-03    .13818E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100279
  Index      = 2.3984
  Normalizat = 1.40811
  Prefactor  = 0.521865
 **********
 **   18 **HESSE 
 **********

 FCN=   4754.015     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10028E-03    599.62        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3984        8.0344        .50000       -.54723    
   3  Normalizat    1.4081        .44478E-01    .44790E-04   -.80394    
   4  Prefactor     .52187        .30290E-01    .95109E-05   -1.1098    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.24553e-09
Minuit parameter uncertainties:
  1  0.0261427
  2  1282.15
  3  0.0444789
  4  0.0302909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17226': 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) = 4754.01477143
delta logL = 3.05917637888e-08

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.003e-04  2.614e-02  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.398e+00  1.282e+03  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:  5.219e-01  3.029e-02  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.408e+00  4.448e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/17226/cmap_HighResolution_479088001_479347201_4FGL_J1351.0+0029_daily_bin925.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-03', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2021-09-08 15:35:19.413732', job_id='17226', GAL2='0.52', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1631140519.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='3.06e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='925' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:35:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 17226: <4FGL_J1351.0+0029_daily_bin925> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin925 207.757 0.4873 479088001 479347201 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 :                                   521.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             374.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   537 sec.
    Turnaround time :                            584 sec.

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

