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


Performing analysis on: 4FGL_J1351.3+1115_weekly_bin688
RA = 207.843, Dec = 11.2502
tmin = 655084801, tmax = 655689601
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='629090', job_status='RUN', time_executed='2021-12-08 17:27:28.940555', time_epoch_executed='1639013248.94' WHERE source_name='4FGL J1351.3+1115' and cadence='weekly' and bin_id='688'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/629090

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/629090/ft1_4FGL_J1351.3+1115_weekly_bin688.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/629090/ft2_4FGL_J1351.3+1115_weekly_bin688.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/629090/ft1_4FGL_J1351.3+1115_weekly_bin688.fits outfile=/scratch/kocevski/629090/ft1_filteredMKT_4FGL_J1351.3+1115_weekly_bin688.fits ra=207.843 dec=11.2502 rad=12.0 tmin=655084801.0 tmax=655689601.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 5.81
user 5.56
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/629090/ft2_4FGL_J1351.3+1115_weekly_bin688.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/629090/ft2_4FGL_J1351.3+1115_weekly_bin688.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/629090/ft1_filteredMKT_4FGL_J1351.3+1115_weekly_bin688.fits evtable="EVENTS" outfile="/scratch/kocevski/629090/ft1_filtered_4FGL_J1351.3+1115_weekly_bin688.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.38
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/629090/ft1_filtered_4FGL_J1351.3+1115_weekly_bin688.fits" evtable="EVENTS" scfile=/scratch/kocevski/629090/ft2_4FGL_J1351.3+1115_weekly_bin688.fits sctable="SC_DATA" outfile=/scratch/kocevski/629090/ltcube_655084801_655689601_4FGL_J1351.3+1115_weekly_bin688.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/629090/ft2_4FGL_J1351.3+1115_weekly_bin688.fits
.....................!
real 33.71
user 33.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/629090/ft1_filtered_4FGL_J1351.3+1115_weekly_bin688.fits evtable="EVENTS" scfile=/scratch/kocevski/629090/ft2_4FGL_J1351.3+1115_weekly_bin688.fits sctable="SC_DATA" expcube=/scratch/kocevski/629090/ltcube_655084801_655689601_4FGL_J1351.3+1115_weekly_bin688.fits outfile=/scratch/kocevski/629090/expmap_655084801_655689601_4FGL_J1351.3+1115_weekly_bin688.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/629090/ltcube_655084801_655689601_4FGL_J1351.3+1115_weekly_bin688.fits
.....................!
real 191.66
user 186.23
sys 4.96

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 150 point sources and 0 extended sources

Setting source of interest to:
4FGL J1351.3+1115 @ 207.843 11.2502

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/629090/ft1_filtered_4FGL_J1351.3+1115_weekly_bin688.fits scfile=/scratch/kocevski/629090/ft2_4FGL_J1351.3+1115_weekly_bin688.fits outfile=/scratch/kocevski/629090/cmap_655084801_655689601_4FGL_J1351.3+1115_weekly_bin688.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.843 yref=11.2502 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.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/629090/ft1_filtered_4FGL_J1351.3+1115_weekly_bin688.fits scfile=/scratch/kocevski/629090/ft2_4FGL_J1351.3+1115_weekly_bin688.fits outfile=/scratch/kocevski/629090/cmap_HighResolution_655084801_655689601_4FGL_J1351.3+1115_weekly_bin688.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.843 yref=11.2502 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.59
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/629090/ft1_filtered_4FGL_J1351.3+1115_weekly_bin688.fits evtable="EVENTS" scfile=/scratch/kocevski/629090/ft2_4FGL_J1351.3+1115_weekly_bin688.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/629090/Model_4FGL_J1351.3+1115_weekly_bin688.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/629090/ft1_filtered_4FGL_J1351.3+1115_weekly_bin688.fits.....................!
real 100.04
user 98.58
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/629090/ft1_filtered_4FGL_J1351.3+1115_weekly_bin688.fits', '/scratch/kocevski/629090/ft2_4FGL_J1351.3+1115_weekly_bin688.fits', expMap='/scratch/kocevski/629090/expmap_655084801_655689601_4FGL_J1351.3+1115_weekly_bin688.fits', expCube='/scratch/kocevski/629090/ltcube_655084801_655689601_4FGL_J1351.3+1115_weekly_bin688.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/629090/Model_4FGL_J1351.3+1115_weekly_bin688.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1351.3+1115'

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  1.085e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.884e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  2.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/629090/ft1_filtered_4FGL_J1351.3+1115_weekly_bin688.fits
Spacecraft file(s): /scratch/kocevski/629090/ft2_4FGL_J1351.3+1115_weekly_bin688.fits
Exposure map: /scratch/kocevski/629090/expmap_655084801_655689601_4FGL_J1351.3+1115_weekly_bin688.fits
Exposure cube: /scratch/kocevski/629090/ltcube_655084801_655689601_4FGL_J1351.3+1115_weekly_bin688.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/629090/Model_4FGL_J1351.3+1115_weekly_bin688.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) = 14678.9074788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3082       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5297       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10942E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15127E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1836       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.135       1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.960       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1495       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3097       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0192       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14678.87     FROM MIGRAD    STATUS=CONVERGED    333 CALLS     1408 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3090        9.1808        .34505E-06   -.36016E-03
   2  Prefactor     .10000E-03    12.083       -.93158E-05** at limit **
   3  Prefactor     8.5280        30.829       -.36388E-05   -.39665E-05
   4  Prefactor     .10000E-03    1.6747        .32068E-06** at limit **
   5  Prefactor     .10000E-03    15.982        .15041E-04** at limit **
   6  Prefactor     .10000E-03    1.6330       -.10180E-06** at limit **
   7  Prefactor     1.1823        3.4810        .14196E-06   -.10672E-02
   8  Prefactor     .10000E-03    8.9454        .12075E-04** at limit **
   9  Prefactor     .10000E-03    7.2746       -.49901E-05** at limit **
  10  Prefactor     13.134        14.136        .18089E-09    .39532E-04
  11  Prefactor     39.960        21.262       -.57020E-07   -.30508E-04
  12  Prefactor     .10000E-03    11.877       -.88345E-05** at limit **
  13  norm          .10000E-03    33.022       -.61592E-05** at limit **
  14  Prefactor     3.1486        3.5931        .79648E-07   -.10830E-02
  15  Prefactor     .10000E-03    1.6316       -.45946E-07** at limit **
  16  Normalizat    1.3097        .13764       -.28916E-06   -.37914E-03
  17  Prefactor     1.0191        .10353        .11642E-06   -.37073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.30895
  Prefactor  = 0.0001
  Prefactor  = 8.52799
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.18234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1342
  Prefactor  = 39.9602
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.14861
  Prefactor  = 0.0001
  Normalizat = 1.3097
  Prefactor  = 1.01914
 **********
 **   18 **HESSE 
 **********

 FCN=   14678.87     FROM HESSE     STATUS=OK           223 CALLS     1631 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3090        10.164        .13504E-02   -1.5404    
   2  Prefactor     .10000E-03    12.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.5280        30.791        .13726E-03   -1.5124    
   4  Prefactor     .10000E-03    6.1221        .30158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.348        .29820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1823        12.582        .20987E-02   -1.5490    
   8  Prefactor     .10000E-03    9.0780        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.3112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.134        14.140        .11052E-03   -1.4983    
  11  Prefactor     39.960        21.256        .63409E-04   -1.4443    
  12  Prefactor     .10000E-03    11.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    33.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1486        3.7541        .11420E-02   -1.5353    
  15  Prefactor     .10000E-03    1.6595        .15100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.3097        .16614        .27126E-03   -.83277    
  17  Prefactor     1.0191        .12489        .22711E-03   -.92094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72188e-09
Minuit parameter uncertainties:
  1  9.69112
  2  1.42205e-06
  3  30.8482
  4  0.000168418
  5  5.30462e-06
  6  0.000313161
  7  7.71568
  8  9.86136e-05
  9  5.52709e-07
  10  14.1436
  11  21.26
  12  1.06056e-05
  13  0.000104339
  14  3.7544
  15  8.16313e-09
  16  0.166205
  17  0.124925
Done.

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

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  3.132e-04  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.884e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  2.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  1.019e+00  1.249e-01  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.310e+00  1.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 207.843 11.250
Photon Flux Upper Limit: 3.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/629090/likelihoodResults_655084801_655689601_4FGL_J1351.3+1115_weekly_bin688.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) = 14678.8688081
delta logL = -0.000452469197626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14678.8683559
delta logL = -2.57998181041e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8948       1.0000          .0000       10.000    
     3 'Normalizat'    1.3097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0192       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14678.87     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      235 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .31778E-01    .48303E-01** at limit **
   2  Index         1.9012        5.7537        .50000       -.28841E-05
   3  Normalizat    1.3097        .48900E-03    .61332E-01    .24926E-03
   4  Prefactor     1.0191        .36854E-03    .42221E-01    .40431E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.9012
  Normalizat = 1.3097
  Prefactor  = 1.01914
 **********
 **   18 **HESSE 
 **********

 FCN=   14678.87     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      270 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     .10000E-03    10.527        .29704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9012        7.6904        .50000       -.66844    
   3  Normalizat    1.3097        .34665E-02    .27126E-03   -.83277    
   4  Prefactor     1.0191        .26139E-02    .22711E-03   -.92094    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.47978e-09
Minuit parameter uncertainties:
  1  0.000254677
  2  36.2193
  3  0.00346649
  4  0.00261393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/629090': 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) = 14678.8683556
delta logL = 2.59951775661e-08

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  2.547e-04  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.901e+00  3.622e+01  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  2.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  1.019e+00  2.614e-03  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.310e+00  3.466e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.843 11.250

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/629090/cmap_HighResolution_655084801_655689601_4FGL_J1351.3+1115_weekly_bin688.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-03', job_status='DONE', photon_flux_upper_limit='3.62e-08', time_completed='2021-12-08 17:40:14.489707', job_id='629090', GAL2='1.02', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1639014014.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.60e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='688' AND source_name='4FGL J1351.3+1115' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Dec  8 17:40:14 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 629090: <4FGL_J1351.3+1115_weekly_bin688> in cluster <slac> Done

Job <4FGL_J1351.3+1115_weekly_bin688> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Dec  8 17:25:35 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 17:27:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 17:27:19 2021
Terminated at Wed Dec  8 17:40:15 2021
Results reported at Wed Dec  8 17:40:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_weekly_bin688 207.843 11.2502 655084801 655689601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1351.3+1115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   766.05 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             333.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            880 sec.

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

