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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin731
RA = 207.757, Dec = 0.4873
tmin = 428803201, tmax = 429062401
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='15846', job_status='RUN', time_executed='2021-09-08 15:22:05.750342', time_epoch_executed='1631139725.75' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15846

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15846/ft1_4FGL_J1351.0+0029_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15846/ft2_4FGL_J1351.0+0029_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15846/ft1_4FGL_J1351.0+0029_daily_bin731.fits outfile=/scratch/kocevski/15846/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin731.fits ra=207.757 dec=0.4873 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.62
user 6.33
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/15846/ft2_4FGL_J1351.0+0029_daily_bin731.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/15846/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/15846/ft1_filtered_4FGL_J1351.0+0029_daily_bin731.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.52
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15846/ft1_filtered_4FGL_J1351.0+0029_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/15846/ft2_4FGL_J1351.0+0029_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/15846/ltcube_428803201_429062401_4FGL_J1351.0+0029_daily_bin731.fits outfile=/scratch/kocevski/15846/expmap_428803201_429062401_4FGL_J1351.0+0029_daily_bin731.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/15846/ltcube_428803201_429062401_4FGL_J1351.0+0029_daily_bin731.fits
.....................!
real 191.82
user 186.54
sys 4.79

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/15846/ft1_filtered_4FGL_J1351.0+0029_daily_bin731.fits scfile=/scratch/kocevski/15846/ft2_4FGL_J1351.0+0029_daily_bin731.fits outfile=/scratch/kocevski/15846/cmap_428803201_429062401_4FGL_J1351.0+0029_daily_bin731.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15846/ft1_filtered_4FGL_J1351.0+0029_daily_bin731.fits scfile=/scratch/kocevski/15846/ft2_4FGL_J1351.0+0029_daily_bin731.fits outfile=/scratch/kocevski/15846/cmap_HighResolution_428803201_429062401_4FGL_J1351.0+0029_daily_bin731.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4584       1.0000         .10000E-03   10000.    
     2 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6830       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5783       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0504       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0779       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .54221       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2120       1.0000         .10000E-03   10000.    
    11 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.8603       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.526       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1325       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .55479E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0304       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1596       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9513.381     FROM MIGRAD    STATUS=FAILED       779 CALLS     2217 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4659        15.016        .21747E-03   -.30321E-05
   2  norm          .10000E-03    7.5007        .18142E-02** at limit **
   3  Prefactor     6.6835        12.212        .15522E-03    .26367E-05
   4  Prefactor     .10000E-03    5.1712        .18142E-02** at limit **
   5  norm          2.5784        1.3177        .76464E-04    .20518E-04
   6  Prefactor     .10000E-03    17.827        .18142E-02** at limit **
   7  norm          1.0508        37.824        .24152E-02   -.12132E-03
   8  Prefactor     2.0772        2.5501        .16687E-03   -.20847E-04
   9  Prefactor     .56091        163.76        .67359E-02    .99255E-03
  10  Prefactor     1.2117        1.7842        .15771E-03    .10755E-04
  11  norm          .10000E-03    1.8217        .12771E-02** at limit **
  12  Prefactor     .10000E-03    4.0113        .18142E-02** at limit **
  13  norm          5.8603        2.2287        .84883E-04   -.35894E-04
  14  Prefactor     .10000E-03    4.8279        .18142E-02** at limit **
  15  norm          13.524        9.2372        .10891E-03   -.11273E-04
  16  norm          1.1300        7.2691        .21929E-02   -.53724E-03
  17  Prefactor     .10000E-03    7.9752        .18142E-02** at limit **
  18  norm          .10000E-03    26.438        .51132E-02** at limit **
  19  Prefactor     .10000E-03    20.627        .18142E-02** at limit **
  20  Normalizat    1.0304        .21592        .30355E-03   -.18022E-03
  21  Prefactor     1.1597        .14847        .20501E-03    .52127E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9513.381     FROM SIMPLEX   STATUS=UNCHANGED   1039 CALLS     3256 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4659        15.016        .13535E-05   -1.5336    
   2  norm          .10000E-03    7.5007        .30708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.6835        12.212        .29814E-06   -1.5191    
   4  Prefactor     .10000E-03    5.1712        .22345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5784        1.3177        .30205E-06   -1.5387    
   6  Prefactor     .10000E-03    17.827        .54672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0508        37.824        .36058E-06   -1.5503    
   8  Prefactor     2.0772        2.5501        .30270E-06   -1.5420    
   9  Prefactor     .56091        163.76        .41394E-06   -1.5558    
  10  Prefactor     1.2117        1.7842        .30426E-06   -1.5488    
  11  norm          .10000E-03    1.8217        .12942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.0113        .13196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.8603        2.2287        .29794E-06   -1.5224    
  14  Prefactor     .10000E-03    4.8279        .24238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.524        9.2372        .29373E-06   -1.4972    
  16  norm          1.1300        7.2691        .30469E-06   -1.5495    
  17  Prefactor     .10000E-03    7.9752        .22516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    26.438        .59879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.627        .29441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0304        .21592        .18435E-06   -.92020    
  21  Prefactor     1.1597        .14847        .17437E-06   -.87579    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9513.381     FROM MIGRAD    STATUS=CONVERGED    306 CALLS     3562 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4659        14.998        .86986E-05   -.52278E-06
   2  norm          .10000E-03    7.5012        .36285E-03** at limit **
   3  Prefactor     6.6835        12.211        .62088E-05   -.14648E-06
   4  Prefactor     .10000E-03    5.1721        .36285E-03** at limit **
   5  norm          2.5784        1.3174        .30586E-05   -.29736E-05
   6  Prefactor     .10000E-03    17.827        .36285E-03** at limit **
   7  norm          1.0510        37.850        .96606E-04    .56487E-06
   8  Prefactor     2.0772        2.5498        .66749E-05   -.68128E-06
   9  Prefactor     .56094        165.02        .13472E-02    .38424E-04
  10  Prefactor     1.2117        1.7842        .31541E-04    .28835E-06
  11  norm          .10000E-03    1.8222        .25543E-03** at limit **
  12  Prefactor     .10000E-03    4.0118        .36285E-03** at limit **
  13  norm          5.8603        2.2255        .33953E-05   -.30805E-04
  14  Prefactor     .10000E-03    4.8282        .36285E-03** at limit **
  15  norm          13.524        9.2371        .43565E-05   -.10438E-05
  16  norm          1.1302        7.2395        .87717E-04    .10368E-05
  17  Prefactor     .10000E-03    7.9762        .36285E-03** at limit **
  18  norm          .10000E-03    26.791        .10226E-02** at limit **
  19  Prefactor     .10000E-03    20.628        .36285E-03** at limit **
  20  Normalizat    1.0304        .21424        .12142E-04   -.74904E-05
  21  Prefactor     1.1597        .14841        .82005E-05   -.10536E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.46587
  norm       = 0.0001
  Prefactor  = 6.68346
  Prefactor  = 0.0001
  norm       = 2.57839
  Prefactor  = 0.0001
  norm       = 1.05097
  Prefactor  = 2.07724
  Prefactor  = 0.560941
  Prefactor  = 1.21169
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.86028
  Prefactor  = 0.0001
  norm       = 13.524
  norm       = 1.13023
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03037
  Prefactor  = 1.15973
 **********
 **   18 **HESSE 
 **********

 FCN=   9513.381     FROM HESSE     STATUS=OK           297 CALLS     3859 TOTAL
                     EDM=   .34E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4659        14.978        .17397E-05   -1.5336    
   2  norm          .10000E-03    7.5012        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.6835        12.211        .62088E-05   -1.5191    
   4  Prefactor     .10000E-03    5.1722        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5784        1.3173        .61171E-06   -1.5387    
   6  Prefactor     .10000E-03    17.827        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0510        37.849        .19321E-04   -1.5503    
   8  Prefactor     2.0772        2.5505        .13350E-05   -1.5420    
   9  Prefactor     .56094        164.10        .26944E-03   -1.5558    
  10  Prefactor     1.2117        1.7841        .63083E-05   -1.5488    
  11  norm          .10000E-03    1.8222        .51086E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.0118        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.8603        2.2261        .67906E-06   -1.5224    
  14  Prefactor     .10000E-03    4.8282        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.524        9.2361        .87130E-06   -1.4972    
  16  norm          1.1302        7.2422        .35087E-05   -1.5495    
  17  Prefactor     .10000E-03    7.9763        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    26.806        .20453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.628        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0304        .21458        .24284E-05   -.92020    
  21  Prefactor     1.1597        .14897        .16401E-05   -.87580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41092e-13
Minuit parameter uncertainties:
  1  14.416
  2  8.04657e-08
  3  12.2156
  4  1.405e-07
  5  1.31731
  6  9.89955e-08
  7  12.622
  8  2.55063
  9  19.24
  10  1.78422
  11  3.7243e-08
  12  2.28343e-07
  13  2.2261
  14  7.43674e-08
  15  9.23706
  16  5.72275
  17  1.50559e-07
  18  1.25391e-05
  19  1.03101e-07
  20  0.214755
  21  0.149025
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  5.609e-01  1.924e+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:  1.160e+00  1.490e-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.030e+00  2.148e-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: 8.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15846/likelihoodResults_428803201_429062401_4FGL_J1351.0+0029_daily_bin731.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) = 9512.6209251
delta logL = 0.760540466208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9512.61291073
delta logL = 0.768554839327

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82429       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3737       1.0000          .0000       10.000    
     3 'Normalizat'    .95000       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1938       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=   9512.613     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      239 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83409        10.916        .12530E-01    .10207E-02
   2  Index         4.3687        2.6277        .11605        .18211E-03
   3  Normalizat    .94990        .39326E-01    .71163E-01    .42489E-04
   4  Prefactor     1.1937        .28098E-01    .34779E-01    .58249E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.834088
  Index      = 4.36872
  Normalizat = 0.949895
  Prefactor  = 1.19369
 **********
 **   18 **HESSE 
 **********

 FCN=   9512.613     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      270 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83409        30.388        .75466E-04   -1.5525    
   2  Index         4.3687        7.0984        .63750E-02   -.12659    
   3  Normalizat    .94990        .17082        .31486E-03   -.94728    
   4  Prefactor     1.1937        .12026        .20245E-03   -.86526    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3287e-06
Minuit parameter uncertainties:
  1  10.0739
  2  5.8591
  3  0.170915
  4  0.120285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15846': 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) = 9512.61290328
delta logL = 0.768562289622

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  8.341e-01  1.007e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  4.369e+00  5.859e+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:  1.194e+00  1.203e-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:  9.499e-01  1.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 207.757 0.487
Photon Index (Free Index): 4.37 +/- 5.86
Photon Flux (Free Index): 5.81e-08 +/- 5.25e-08
Energy Flux (Free Index): 8.25e-06 +/- 1.10e-05

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/15846/cmap_HighResolution_428803201_429062401_4FGL_J1351.0+0029_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.49e-03', comment='SUCCESS', energy_flux2='8.25e-06', dlogl='7.69e-01', photon_flux2='5.81e-08', job_status='DONE', time_completed='2021-09-08 15:36:30.530898', photon_index_error2='5.86', photon_index2='4.37', ts='0.00', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='8.38e-08', energy_flux_error2='1.10e-05', EG='1.03', time_epoch_completed='1631140590.53', return_code='0', job_id='15846', GAL2='1.19', EG2='0.95', return_code2='102', photon_flux_error2='5.25e-08', ts2='1.67', photon_index='2.44' WHERE bin_id='731' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:36:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 15846: <4FGL_J1351.0+0029_daily_bin731> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin731> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 15:20:39 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:21:56 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:21:56 2021
Terminated at Wed Sep  8 15:36:31 2021
Results reported at Wed Sep  8 15:36:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin731 207.757 0.4873 428803201 429062401 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 :                                   852.11 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            952 sec.

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

