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


Performing analysis on: 4FGL_J1351.3+1115_daily_bin1046
RA = 207.843, Dec = 11.2502
tmin = 510451201, tmax = 510710401
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='25042', job_status='RUN', time_executed='2021-09-08 15:52:22.979043', time_epoch_executed='1631141542.98' WHERE source_name='4FGL J1351.3+1115' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/25042

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/25042/ft1_4FGL_J1351.3+1115_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/25042/ft2_4FGL_J1351.3+1115_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/25042/ft1_4FGL_J1351.3+1115_daily_bin1046.fits outfile=/scratch/kocevski/25042/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin1046.fits ra=207.843 dec=11.2502 rad=12.0 tmin=510451201.0 tmax=510710401.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 4.00
user 3.74
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/25042/ft2_4FGL_J1351.3+1115_daily_bin1046.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/25042/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin1046.fits evtable="EVENTS" outfile="/scratch/kocevski/25042/ft1_filtered_4FGL_J1351.3+1115_daily_bin1046.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/25042/ft1_filtered_4FGL_J1351.3+1115_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/25042/ft2_4FGL_J1351.3+1115_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/25042/ltcube_510451201_510710401_4FGL_J1351.3+1115_daily_bin1046.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/25042/ft2_4FGL_J1351.3+1115_daily_bin1046.fits
.....................!
real 16.48
user 16.10
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/25042/ft1_filtered_4FGL_J1351.3+1115_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/25042/ft2_4FGL_J1351.3+1115_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/25042/ltcube_510451201_510710401_4FGL_J1351.3+1115_daily_bin1046.fits outfile=/scratch/kocevski/25042/expmap_510451201_510710401_4FGL_J1351.3+1115_daily_bin1046.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/25042/ltcube_510451201_510710401_4FGL_J1351.3+1115_daily_bin1046.fits
.....................!
real 191.11
user 186.50
sys 4.13

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/25042/ft1_filtered_4FGL_J1351.3+1115_daily_bin1046.fits scfile=/scratch/kocevski/25042/ft2_4FGL_J1351.3+1115_daily_bin1046.fits outfile=/scratch/kocevski/25042/cmap_510451201_510710401_4FGL_J1351.3+1115_daily_bin1046.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/25042/ft1_filtered_4FGL_J1351.3+1115_daily_bin1046.fits scfile=/scratch/kocevski/25042/ft2_4FGL_J1351.3+1115_daily_bin1046.fits outfile=/scratch/kocevski/25042/cmap_HighResolution_510451201_510710401_4FGL_J1351.3+1115_daily_bin1046.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.716       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .39507E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.682       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .92853       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.714       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10755E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    23.516       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.701       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .78869       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1183       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=   5724.603     FROM MIGRAD    STATUS=CONVERGED    331 CALLS     1390 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.715        14.164        .21801E-06    .95402E-04
   2  Prefactor     .10000E-03    6.7351        .13240E-05** at limit **
   3  Prefactor     .10000E-03    76.272       -.82195E-04** at limit **
   4  Prefactor     .10000E-03    2.7814        .32641E-09** at limit **
   5  Prefactor     .10000E-03    8.3593       -.18100E-05** at limit **
   6  Prefactor     .11183E-03    3.2938       -.13420E-05** at limit **
   7  Prefactor     21.684        15.508       -.35893E-06    .21333E-03
   8  Prefactor     .92227        7.1632       -.15800E-06   -.21473E-03
   9  Prefactor     .10000E-03    6.4009       -.84783E-06** at limit **
  10  Prefactor     23.711        22.466       -.12304E-05    .16362E-04
  11  Prefactor     .10000E-03    63.107        .72797E-04** at limit **
  12  Prefactor     .10000E-03    16.167       -.45080E-05** at limit **
  13  norm          23.507        22.263       -.35644E-05    .19862E-04
  14  Prefactor     .10000E-03    11.527        .32561E-05** at limit **
  15  Prefactor     15.699        8.1653       -.88079E-06   -.20918E-02
  16  Normalizat    .78888        .20410        .43313E-06    .33806E-04
  17  Prefactor     1.1181        .15594        .28110E-06    .98619E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.7148
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00011183
  Prefactor  = 21.6843
  Prefactor  = 0.922265
  Prefactor  = 0.0001
  Prefactor  = 23.7108
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 23.5067
  Prefactor  = 0.0001
  Prefactor  = 15.6995
  Normalizat = 0.788879
  Prefactor  = 1.11814
 **********
 **   18 **HESSE 
 **********

 FCN=   5724.603     FROM HESSE     STATUS=OK           229 CALLS     1619 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.715        14.183        .74763E-04   -1.4636    
   2  Prefactor     .10000E-03    6.7358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    76.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8236        .12311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.3848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11183E-03    8.8553        .42917E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.684        15.519        .86020E-04   -1.4776    
   8  Prefactor     .92227        45.350        .36636E-02   -1.5516    
   9  Prefactor     .10000E-03    6.4259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.711        22.481        .82257E-04   -1.4734    
  11  Prefactor     .10000E-03    63.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          23.507        22.263        .82601E-04   -1.4738    
  14  Prefactor     .10000E-03    11.922        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.699        8.2167        .50539E-03   -1.4915    
  16  Normalizat    .78888        .24375        .28939E-03   -1.0048    
  17  Prefactor     1.1181        .18631        .19747E-03   -.88889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86199e-09
Minuit parameter uncertainties:
  1  14.1849
  2  1.21611e-09
  3  0.00044007
  4  2.44338e-06
  5  1.63605e-06
  6  0.0204735
  7  15.5221
  8  12.9442
  9  5.68265e-06
  10  22.4894
  11  0.000559747
  12  4.76836e-05
  13  22.2708
  14  5.73371e-05
  15  8.21728
  16  0.244088
  17  0.186415
Done.

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

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  1.118e-04  2.047e-02  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.118e+00  1.864e-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:  7.889e-01  2.441e-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: 8.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/25042/likelihoodResults_510451201_510710401_4FGL_J1351.3+1115_daily_bin1046.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) = 5724.60254436
delta logL = -3.36246121151e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5724.30037503
delta logL = 0.302135709929

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93058       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7075       1.0000          .0000       10.000    
     3 'Normalizat'    .75990       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1203       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   5724.300     FROM MIGRAD    STATUS=FAILED        96 CALLS      363 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93097        4.8762        .25836E-03    .32338E-03
   2  Index         2.7073        1.5911        .48378E-02    .43110E-03
   3  Normalizat    .75978        .23423        .29431E-03   -.35152E-05
   4  Prefactor     1.1203        .18667        .19720E-03   -.40931E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5724.300     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      444 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93097        4.8762        .10469E-03   -1.5515    
   2  Index         2.7073        1.5911        .85224E-03   -.47635    
   3  Normalizat    .75978        .23423        .35701E-03   -1.0158    
   4  Prefactor     1.1203        .18667        .19832E-03   -.88819    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5724.300     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      473 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93097        2.5782        .51672E-04    .12409E-04
   2  Index         2.7073        .97577        .96757E-03    .16915E-04
   3  Normalizat    .75978        .23359        .11772E-04   -.36697E-05
   4  Prefactor     1.1203        .18549        .78881E-05   -.40355E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.93097
  Index      = 2.7073
  Normalizat = 0.759779
  Prefactor  = 1.12035
 **********
 **   18 **HESSE 
 **********

 FCN=   5724.300     FROM HESSE     STATUS=OK            25 CALLS      498 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93097        2.4414        .10334E-04   -1.5515    
   2  Index         2.7073        .92449        .19351E-03   -.47635    
   3  Normalizat    .75978        .23371        .23545E-05   -1.0158    
   4  Prefactor     1.1203        .18552        .15776E-05   -.88819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83894e-13
Minuit parameter uncertainties:
  1  2.44162
  2  0.931297
  3  0.234017
  4  0.185631
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/25042': 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): 0
logL (Free Index) = 5724.30037487
delta logL = 0.302135873646

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  9.310e-01  2.442e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.707e+00  9.313e-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.120e+00  1.856e-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:  7.598e-01  2.340e-01  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/25042/cmap_HighResolution_510451201_510710401_4FGL_J1351.3+1115_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-03', job_status='DONE', photon_flux_upper_limit='8.00e-08', time_completed='2021-09-08 16:00:54.551350', job_id='25042', GAL2='1.12', fit_tolerance='1e-08', EG2='0.76', EG='0.79', time_epoch_completed='1631142054.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.02e-01', ts2='0.61', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1046' AND source_name='4FGL J1351.3+1115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 16:00:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 25042: <4FGL_J1351.3+1115_daily_bin1046> in cluster <slac> Done

Job <4FGL_J1351.3+1115_daily_bin1046> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:50:16 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:50:22 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:50:22 2021
Terminated at Wed Sep  8 16:00:55 2021
Results reported at Wed Sep  8 16:00:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_daily_bin1046 207.843 11.2502 510451201 510710401 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 :                                   494.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            639 sec.

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

