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


Performing analysis on: 4FGL_J1351.3+1115_daily_bin1600
RA = 207.843, Dec = 11.2502
tmin = 654048001, tmax = 654307201
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='260687', job_status='RUN', time_executed='2021-09-26 00:27:53.130683', time_epoch_executed='1632641273.13' WHERE source_name='4FGL J1351.3+1115' and cadence='daily' and bin_id='1600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260687

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260687/ft1_4FGL_J1351.3+1115_daily_bin1600.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260687/ft2_4FGL_J1351.3+1115_daily_bin1600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260687/ft1_4FGL_J1351.3+1115_daily_bin1600.fits outfile=/scratch/kocevski/260687/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin1600.fits ra=207.843 dec=11.2502 rad=12.0 tmin=654048001.0 tmax=654307201.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.68
user 3.46
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/260687/ft2_4FGL_J1351.3+1115_daily_bin1600.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/260687/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin1600.fits evtable="EVENTS" outfile="/scratch/kocevski/260687/ft1_filtered_4FGL_J1351.3+1115_daily_bin1600.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260687/ft1_filtered_4FGL_J1351.3+1115_daily_bin1600.fits" evtable="EVENTS" scfile=/scratch/kocevski/260687/ft2_4FGL_J1351.3+1115_daily_bin1600.fits sctable="SC_DATA" outfile=/scratch/kocevski/260687/ltcube_654048001_654307201_4FGL_J1351.3+1115_daily_bin1600.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/260687/ft2_4FGL_J1351.3+1115_daily_bin1600.fits
.....................!
real 13.91
user 13.49
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260687/ft1_filtered_4FGL_J1351.3+1115_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/260687/ft2_4FGL_J1351.3+1115_daily_bin1600.fits sctable="SC_DATA" expcube=/scratch/kocevski/260687/ltcube_654048001_654307201_4FGL_J1351.3+1115_daily_bin1600.fits outfile=/scratch/kocevski/260687/expmap_654048001_654307201_4FGL_J1351.3+1115_daily_bin1600.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/260687/ltcube_654048001_654307201_4FGL_J1351.3+1115_daily_bin1600.fits
.....................!
real 192.94
user 187.03
sys 5.27

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/260687/ft1_filtered_4FGL_J1351.3+1115_daily_bin1600.fits scfile=/scratch/kocevski/260687/ft2_4FGL_J1351.3+1115_daily_bin1600.fits outfile=/scratch/kocevski/260687/cmap_654048001_654307201_4FGL_J1351.3+1115_daily_bin1600.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260687/ft1_filtered_4FGL_J1351.3+1115_daily_bin1600.fits scfile=/scratch/kocevski/260687/ft2_4FGL_J1351.3+1115_daily_bin1600.fits outfile=/scratch/kocevski/260687/cmap_HighResolution_654048001_654307201_4FGL_J1351.3+1115_daily_bin1600.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/260687/ft1_filtered_4FGL_J1351.3+1115_daily_bin1600.fits', '/scratch/kocevski/260687/ft2_4FGL_J1351.3+1115_daily_bin1600.fits', expMap='/scratch/kocevski/260687/expmap_654048001_654307201_4FGL_J1351.3+1115_daily_bin1600.fits', expCube='/scratch/kocevski/260687/ltcube_654048001_654307201_4FGL_J1351.3+1115_daily_bin1600.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/260687/Model_4FGL_J1351.3+1115_daily_bin1600.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/260687/ft1_filtered_4FGL_J1351.3+1115_daily_bin1600.fits
Spacecraft file(s): /scratch/kocevski/260687/ft2_4FGL_J1351.3+1115_daily_bin1600.fits
Exposure map: /scratch/kocevski/260687/expmap_654048001_654307201_4FGL_J1351.3+1115_daily_bin1600.fits
Exposure cube: /scratch/kocevski/260687/ltcube_654048001_654307201_4FGL_J1351.3+1115_daily_bin1600.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/260687/Model_4FGL_J1351.3+1115_daily_bin1600.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) = 6290.5060958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0059       1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.590       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1557       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.266       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8893       1.0000         .10000E-03   10000.    
    11 'Prefactor '    71.832       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1013       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0319       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=   6290.496     FROM MIGRAD    STATUS=CONVERGED    325 CALLS     1576 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.439       -.34758E-04** at limit **
   2  Prefactor     5.0053        60.163       -.11123E-04    .64187E-05
   3  Prefactor     56.575        42.512       -.12642E-04    .60528E-04
   4  Prefactor     .10000E-03    .99314        .73963E-08** at limit **
   5  Prefactor     .10000E-03    25.307        .37423E-04** at limit **
   6  Prefactor     .10000E-03    2.3435       -.19975E-07** at limit **
   7  Prefactor     5.1583        11.751       -.19058E-05   -.65383E-04
   8  Prefactor     13.260        12.534        .11067E-05    .60986E-05
   9  Prefactor     .10000E-03    5.1878        .13820E-06** at limit **
  10  Prefactor     1.8198        96.285       -.51387E-04   -.59878E-04
  11  Prefactor     71.812        35.242       -.11950E-04    .30045E-04
  12  Prefactor     .10000E-03    9.1266       -.27237E-05** at limit **
  13  norm          .10000E-03    9.8463        .34067E-05** at limit **
  14  Prefactor     .10000E-03    2.2841        .45278E-07** at limit **
  15  Prefactor     .10000E-03    5.3925        .21741E-06** at limit **
  16  Normalizat    1.1015        .20661        .40861E-05    .42057E-03
  17  Prefactor     1.0318        .15396        .19337E-05    .66950E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 5.00526
  Prefactor  = 56.5751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.1583
  Prefactor  = 13.2603
  Prefactor  = 0.0001
  Prefactor  = 1.81982
  Prefactor  = 71.812
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10145
  Prefactor  = 1.03182
 **********
 **   18 **HESSE 
 **********

 FCN=   6290.496     FROM HESSE     STATUS=OK           213 CALLS     1789 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.0053        60.207        .17973E-03   -1.5260    
   3  Prefactor     56.575        42.490        .26663E-03   -1.4202    
   4  Prefactor     .10000E-03    .99627        .77179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4067        .23709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1583        11.746        .17705E-03   -1.5254    
   8  Prefactor     13.260        12.564        .10997E-03   -1.4980    
   9  Prefactor     .10000E-03    5.1984        .17634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8198        98.803        .30275E-03   -1.5438    
  11  Prefactor     71.812        35.300        .47367E-04   -1.4011    
  12  Prefactor     .10000E-03    9.1426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.8562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2875        .11705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4702        .17979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1015        .25253        .27509E-03   -.89705    
  17  Prefactor     1.0318        .18843        .21457E-03   -.91676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.06799e-10
Minuit parameter uncertainties:
  1  0.00035967
  2  34.7622
  3  42.5124
  4  1.29611e-06
  5  0.000142384
  6  2.31768e-06
  7  11.7512
  8  12.5669
  9  6.71484e-05
  10  26.8643
  11  35.3099
  12  1.20491e-05
  13  4.41785e-06
  14  1.0028e-05
  15  8.90899e-07
  16  0.252806
  17  0.18855
Done.

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

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  2.318e-06  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.032e+00  1.886e-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.101e+00  2.528e-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: 4.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/260687/likelihoodResults_654048001_654307201_4FGL_J1351.3+1115_daily_bin1600.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) = 6290.49845492
delta logL = -0.00197735875099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6290.49647989
delta logL = -2.32705497183e-06

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6290.496     FROM MIGRAD    STATUS=FAILED        92 CALLS      245 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10069E-03    79.151        .24615E-03** at limit **
   2  Index         1.8078        5.8425        .50000        .76081E-04
   3  Normalizat    1.1015        .28024E-01    .27509E-03   -.15622E-04
   4  Prefactor     1.0318        .21353E-01    .21457E-03   -.50652E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6290.496     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      381 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10069E-03    79.151        .25791E-03** at limit **
   2  Index         1.8078        5.8425        .10438E-03    .76081E-04
   3  Normalizat    1.1015        .28024E-01    .11782E-05   -.15622E-04
   4  Prefactor     1.0318        .21353E-01    .86865E-06   -.50652E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6290.496     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      427 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    74.388        .49230E-03** at limit **
   2  Index         1.5812        6.8887        .50000        .57373E-06
   3  Normalizat    1.1015        .25464E-01    .11004E-04    .87077E-03
   4  Prefactor     1.0318        .19403E-01    .85828E-05    .11349E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.58122
  Normalizat = 1.10145
  Prefactor  = 1.03182
 **********
 **   18 **HESSE 
 **********

 FCN=   6290.496     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      456 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    306.72        .98460E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5812        5.7623        .50000       -.75290    
   3  Normalizat    1.1015        .58477E-01    .22007E-05   -.89705    
   4  Prefactor     1.0318        .44551E-01    .17166E-05   -.91676    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.24415e-10
Minuit parameter uncertainties:
  1  0.00036482
  2  392.151
  3  0.0584804
  4  0.0445525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260687': 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) = 6290.49647367
delta logL = 3.88934495277e-06

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  3.648e-04  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.581e+00  3.922e+02  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.032e+00  4.455e-02  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.101e+00  5.848e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/260687/cmap_HighResolution_654048001_654307201_4FGL_J1351.3+1115_daily_bin1600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-03', job_status='DONE', photon_flux_upper_limit='4.36e-08', time_completed='2021-09-26 00:36:19.164549', job_id='260687', GAL2='1.03', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632641779.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.89e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1600' AND source_name='4FGL J1351.3+1115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 00:36:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 260687: <4FGL_J1351.3+1115_daily_bin1600> in cluster <slac> Done

Job <4FGL_J1351.3+1115_daily_bin1600> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 00:25:24 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 00:26:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 00:26:00 2021
Terminated at Sun Sep 26 00:36:19 2021
Results reported at Sun Sep 26 00:36:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_daily_bin1600 207.843 11.2502 654048001 654307201 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 :                                   508.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            655 sec.

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

