aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 101 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 = 17352
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1351.0+0029_weekly_bin714
RA = 207.757, Dec = 0.4873
tmin = 670809601, tmax = 671414401
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='428028', job_status='RUN', time_executed='2022-04-12 01:27:25.331326', time_epoch_executed='1649752045.33' WHERE source_name='4FGL J1351.0+0029' and cadence='weekly' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428028

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428028/ft1_4FGL_J1351.0+0029_weekly_bin714.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428028/ft2_4FGL_J1351.0+0029_weekly_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428028/ft1_4FGL_J1351.0+0029_weekly_bin714.fits outfile=/scratch/kocevski/428028/ft1_filteredMKT_4FGL_J1351.0+0029_weekly_bin714.fits ra=207.757 dec=0.4873 rad=12.0 tmin=670809601.0 tmax=671414401.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 11.63
user 11.23
sys 0.33

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

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

Number of photons that the gtmktime cut: 1113

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428028/ft1_filtered_4FGL_J1351.0+0029_weekly_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/428028/ft2_4FGL_J1351.0+0029_weekly_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/428028/ltcube_670809601_671414401_4FGL_J1351.0+0029_weekly_bin714.fits outfile=/scratch/kocevski/428028/expmap_670809601_671414401_4FGL_J1351.0+0029_weekly_bin714.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/428028/ltcube_670809601_671414401_4FGL_J1351.0+0029_weekly_bin714.fits
.....................!
real 191.15
user 185.45
sys 5.31

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/428028/ft1_filtered_4FGL_J1351.0+0029_weekly_bin714.fits scfile=/scratch/kocevski/428028/ft2_4FGL_J1351.0+0029_weekly_bin714.fits outfile=/scratch/kocevski/428028/cmap_670809601_671414401_4FGL_J1351.0+0029_weekly_bin714.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428028/ft1_filtered_4FGL_J1351.0+0029_weekly_bin714.fits scfile=/scratch/kocevski/428028/ft2_4FGL_J1351.0+0029_weekly_bin714.fits outfile=/scratch/kocevski/428028/cmap_HighResolution_670809601_671414401_4FGL_J1351.0+0029_weekly_bin714.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.58
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16273E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2683       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.078       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8600       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1012       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1506       1.0000         .10000E-03   10000.    
    11 'norm      '    7.8466       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6592       1.0000         .10000E-03   10000.    
    13 'norm      '    7.3774       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    20.820       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2650       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92312       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=   12149.92     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     1855 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1520        .19850E-07** at limit **
   2  norm          .10000E-03    2.5183        .10680E-06** at limit **
   3  Prefactor     .10000E-03    10.272       -.54447E-05** at limit **
   4  Prefactor     .10001E-03    3.0180       -.44781E-06** at limit **
   5  norm          2.2682        1.1126       -.18805E-07    .31473E-03
   6  Prefactor     25.069        26.240       -.11013E-04   -.22975E-03
   7  norm          .10000E-03    7.4190        .19613E-05** at limit **
   8  Prefactor     3.8595        2.2599        .13083E-07    .19892E-03
   9  Prefactor     1.0725        8.5603       -.37529E-05    .85934E-03
  10  Prefactor     4.1502        2.6826       -.18589E-06   -.39997E-04
  11  norm          7.8467        5.2366       -.52185E-07    .84901E-05
  12  Prefactor     1.6571        1.1958        .21589E-06   -.13559E-02
  13  norm          7.3767        2.5996       -.83878E-07    .98998E-04
  14  Prefactor     .10000E-03    2.9051       -.26362E-06** at limit **
  15  norm          20.821        9.4684       -.10592E-06    .11829E-04
  16  norm          .10000E-03    4.7818       -.47299E-06** at limit **
  17  Prefactor     .10000E-03    13.806        .35324E-05** at limit **
  18  norm          .10000E-03    3.1486        .22758E-06** at limit **
  19  Prefactor     .10000E-03    14.331        .38094E-05** at limit **
  20  Normalizat    1.2651        .14967        .74167E-06    .55985E-03
  21  Prefactor     .92299        .10505        .20831E-06    .62463E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 2.26819
  Prefactor  = 25.0694
  norm       = 0.0001
  Prefactor  = 3.85954
  Prefactor  = 1.07254
  Prefactor  = 4.15019
  norm       = 7.8467
  Prefactor  = 1.65714
  norm       = 7.37675
  Prefactor  = 0.0001
  norm       = 20.8205
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26514
  Prefactor  = 0.92299
 **********
 **   18 **HESSE 
 **********

 FCN=   12149.92     FROM HESSE     STATUS=OK           315 CALLS     2170 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.5188        .17083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.581        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    16.466        .36900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.2682        1.1085        .77892E-04   -1.5407    
   6  Prefactor     25.069        26.370        .79992E-04   -1.4706    
   7  norm          .10000E-03    7.4277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8595        2.2604        .12209E-03   -1.5315    
   9  Prefactor     1.0725        39.278        .57474E-02   -1.5501    
  10  Prefactor     4.1502        2.6831        .14095E-03   -1.5300    
  11  norm          7.8467        5.2372        .14315E-03   -1.5148    
  12  Prefactor     1.6571        4.8753        .16378E-02   -1.5451    
  13  norm          7.3767        2.5981        .10094E-03   -1.5165    
  14  Prefactor     .10000E-03    2.9087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          20.821        9.4737        .87780E-04   -1.4795    
  16  norm          .10000E-03    4.8697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.1497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2651        .17805        .27058E-03   -.84613    
  21  Prefactor     .92299        .12598        .22231E-03   -.95342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77374e-08
Minuit parameter uncertainties:
  1  1.92298e-06
  2  6.96313e-07
  3  6.08881e-05
  4  0.000715542
  5  1.10851
  6  26.382
  7  3.24877e-05
  8  2.26044
  9  12.9897
  10  2.68318
  11  5.23752
  12  4.87647
  13  2.59813
  14  3.04116e-06
  15  9.47442
  16  7.80394e-06
  17  5.07236e-05
  18  1.4529e-06
  19  8.40071e-05
  20  0.178138
  21  0.126023
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.073e+00  1.299e+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:  9.230e-01  1.260e-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.265e+00  1.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/428028/likelihoodResults_670809601_671414401_4FGL_J1351.0+0029_weekly_bin714.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) = 12149.79948
delta logL = 0.12168057129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12149.3789881
delta logL = 0.542172495028

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29561E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.9512       1.0000          .0000       10.000    
     3 'Normalizat'    1.2133       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94825       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=   12149.38     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      293 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29205E-03    .47574E-02    .40097E-03** at limit **
   2  Index         7.9568        2.1964        .19002        .38933E-04
   3  Normalizat    1.2135        .24977E-01    .62280E-01   -.16542E-03
   4  Prefactor     .94816        .17933E-01    .45617E-01   -.98789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000292053
  Index      = 7.9568
  Normalizat = 1.21349
  Prefactor  = 0.948164
 **********
 **   18 **HESSE 
 **********

 FCN=   12149.38     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      326 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29205E-03    .24731E-01    .23182E-05   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.9568        8.6594        .96814E-02    .63274    
   3  Normalizat    1.2135        .13169        .27547E-03   -.86187    
   4  Prefactor     .94816        .93000E-01    .21968E-03   -.94478    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.72298e-09
Minuit parameter uncertainties:
  1  0.00435871
  2  6.82542
  3  0.131725
  4  0.0930158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428028': 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) = 12149.3789871
delta logL = 0.542173502021

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  2.921e-04  4.359e-03  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  7.957e+00  6.825e+00  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:  9.482e-01  9.302e-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.213e+00  1.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 207.757 0.487
Photon Index (Free Index): 7.96 +/- 6.83
Photon Flux (Free Index): 3.87e-08 +/- 3.87e-08
Energy Flux (Free Index): 4.50e-06 +/- 4.68e-06

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/428028/cmap_HighResolution_670809601_671414401_4FGL_J1351.0+0029_weekly_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', comment='SUCCESS', energy_flux2='4.50e-06', dlogl='5.42e-01', photon_flux2='3.87e-08', job_status='DONE', time_completed='2022-04-12 01:41:32.304197', photon_index_error2='6.83', photon_index2='7.96', ts='0.01', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='6.28e-08', energy_flux_error2='4.68e-06', EG='1.27', time_epoch_completed='1649752892.3', return_code='0', job_id='428028', GAL2='0.95', EG2='1.21', return_code2='102', photon_flux_error2='3.87e-08', ts2='1.16', photon_index='2.44' WHERE bin_id='714' AND source_name='4FGL J1351.0+0029' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 12 01:41:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 428028: <4FGL_J1351.0+0029_weekly_bin714> in cluster <slac> Done

Job <4FGL_J1351.0+0029_weekly_bin714> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Apr 12 01:25:35 2022
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 12 01:25:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 12 01:25:36 2022
Terminated at Tue Apr 12 01:41:33 2022
Results reported at Tue Apr 12 01:41:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_weekly_bin714 207.757 0.4873 670809601 671414401 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 :                                   848.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            958 sec.

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

