/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 130 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_J0315.9-1033_daily_bin1606
RA = 48.9922, Dec = -10.5522
tmin = 655603201, tmax = 655862401
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='171108', job_status='RUN', time_executed='2021-12-07 13:54:47.793610', time_epoch_executed='1638914087.79' WHERE source_name='4FGL J0315.9-1033' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171108

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171108/ft1_4FGL_J0315.9-1033_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171108/ft2_4FGL_J0315.9-1033_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171108/ft1_4FGL_J0315.9-1033_daily_bin1606.fits outfile=/scratch/kocevski/171108/ft1_filteredMKT_4FGL_J0315.9-1033_daily_bin1606.fits ra=48.9922 dec=-10.5522 rad=12.0 tmin=655603201.0 tmax=655862401.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.27
user 4.02
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/171108/ft2_4FGL_J0315.9-1033_daily_bin1606.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171108/ft2_4FGL_J0315.9-1033_daily_bin1606.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/171108/ft1_filteredMKT_4FGL_J0315.9-1033_daily_bin1606.fits evtable="EVENTS" outfile="/scratch/kocevski/171108/ft1_filtered_4FGL_J0315.9-1033_daily_bin1606.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.49
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171108/ft1_filtered_4FGL_J0315.9-1033_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/171108/ft2_4FGL_J0315.9-1033_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/171108/ltcube_655603201_655862401_4FGL_J0315.9-1033_daily_bin1606.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/171108/ft2_4FGL_J0315.9-1033_daily_bin1606.fits
.....................!
real 12.59
user 11.96
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171108/ft1_filtered_4FGL_J0315.9-1033_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/171108/ft2_4FGL_J0315.9-1033_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/171108/ltcube_655603201_655862401_4FGL_J0315.9-1033_daily_bin1606.fits outfile=/scratch/kocevski/171108/expmap_655603201_655862401_4FGL_J0315.9-1033_daily_bin1606.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/171108/ltcube_655603201_655862401_4FGL_J0315.9-1033_daily_bin1606.fits
.....................!
real 191.58
user 186.51
sys 4.72

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

Setting source of interest to:
4FGL J0315.9-1033 @ 48.9922 -10.5522

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/171108/ft1_filtered_4FGL_J0315.9-1033_daily_bin1606.fits scfile=/scratch/kocevski/171108/ft2_4FGL_J0315.9-1033_daily_bin1606.fits outfile=/scratch/kocevski/171108/cmap_655603201_655862401_4FGL_J0315.9-1033_daily_bin1606.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=48.9922 yref=-10.5522 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171108/ft1_filtered_4FGL_J0315.9-1033_daily_bin1606.fits scfile=/scratch/kocevski/171108/ft2_4FGL_J0315.9-1033_daily_bin1606.fits outfile=/scratch/kocevski/171108/cmap_HighResolution_655603201_655862401_4FGL_J0315.9-1033_daily_bin1606.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=48.9922 yref=-10.5522 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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/171108/ft1_filtered_4FGL_J0315.9-1033_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/171108/ft2_4FGL_J0315.9-1033_daily_bin1606.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/171108/Model_4FGL_J0315.9-1033_daily_bin1606.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/171108/ft1_filtered_4FGL_J0315.9-1033_daily_bin1606.fits.....................!
real 70.07
user 68.72
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/171108/ft1_filtered_4FGL_J0315.9-1033_daily_bin1606.fits', '/scratch/kocevski/171108/ft2_4FGL_J0315.9-1033_daily_bin1606.fits', expMap='/scratch/kocevski/171108/expmap_655603201_655862401_4FGL_J0315.9-1033_daily_bin1606.fits', expCube='/scratch/kocevski/171108/ltcube_655603201_655862401_4FGL_J0315.9-1033_daily_bin1606.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/171108/Model_4FGL_J0315.9-1033_daily_bin1606.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0315.9-1033'

4FGL J0315.9-1033
   Spectrum: PowerLaw
289    Prefactor:  2.107e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
290        Index:  2.475e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
291        Scale:  6.885e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/171108/ft1_filtered_4FGL_J0315.9-1033_daily_bin1606.fits
Spacecraft file(s): /scratch/kocevski/171108/ft2_4FGL_J0315.9-1033_daily_bin1606.fits
Exposure map: /scratch/kocevski/171108/expmap_655603201_655862401_4FGL_J0315.9-1033_daily_bin1606.fits
Exposure cube: /scratch/kocevski/171108/ltcube_655603201_655862401_4FGL_J0315.9-1033_daily_bin1606.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/171108/Model_4FGL_J0315.9-1033_daily_bin1606.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) = 5502.01147245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9443       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.713       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.705       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5680       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    53.868       1.0000         .10000E-03   10000.    
    13 'norm      '    .45115       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.134       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1796       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .89794       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5502.009     FROM MIGRAD    STATUS=CONVERGED    324 CALLS     1568 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9417        43.052        .74423E-02    .18457E-03
   2  Prefactor     .10000E-03    34.122        .90712E-02** at limit **
   3  Prefactor     13.711        10.470        .27041E-02    .43705E-03
   4  Prefactor     .10000E-03    54.981        .90712E-02** at limit **
   5  Prefactor     .10000E-03    7.9738        .90712E-02** at limit **
   6  Prefactor     13.704        16.471        .27048E-02    .39366E-04
   7  Prefactor     .10000E-03    1.7200        .90712E-02** at limit **
   8  Prefactor     .10000E-03    55.046        .90712E-02** at limit **
   9  Prefactor     1.5679        2.1015        .84892E-02    .43210E-04
  10  Prefactor     .10000E-03    8.1085        .90712E-02** at limit **
  11  Prefactor     .10000E-03    9.9269        .90712E-02** at limit **
  12  Prefactor     53.869        39.192        .13662E-02   -.60224E-03
  13  norm          .45177        1.1561        .28221E-01    .13265E-02
  14  Prefactor     .10000E-03    11.662        .90712E-02** at limit **
  15  Prefactor     12.124        22.142        .28750E-02    .16539E-02
  16  Normalizat    1.1798        .19678        .59422E-01    .34205E-04
  17  Prefactor     .89779        .13734        .44979E-01    .37414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.94169
  Prefactor  = 0.0001
  Prefactor  = 13.7114
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.7039
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.56793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.8687
  norm       = 0.451768
  Prefactor  = 0.0001
  Prefactor  = 12.1242
  Normalizat = 1.17981
  Prefactor  = 0.897787
 **********
 **   18 **HESSE 
 **********

 FCN=   5502.009     FROM HESSE     STATUS=OK           219 CALLS     1787 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9417        43.308        .29769E-03   -1.5429    
   2  Prefactor     .10000E-03    34.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.711        10.490        .10816E-03   -1.4967    
   4  Prefactor     .10000E-03    55.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.9968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.704        16.465        .10819E-03   -1.4967    
   7  Prefactor     .10000E-03    1.7325        .94990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    55.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5679        2.0841        .12133E-03   -1.5458    
  10  Prefactor     .10000E-03    8.1377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     53.869        39.183        .54649E-04   -1.4239    
  13  norm          .45177        1.1455        .12124E-03   -1.5574    
  14  Prefactor     .10000E-03    11.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.124        22.150        .11500E-03   -1.5011    
  16  Normalizat    1.1798        .22738        .26280E-03   -.87229    
  17  Prefactor     .89779        .15876        .21223E-03   -.96218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26563e-08
Minuit parameter uncertainties:
  1  18.3548
  2  0.000100678
  3  10.4916
  4  0.00046681
  5  2.17383e-05
  6  16.4702
  7  3.15431e-06
  8  0.000333504
  9  2.0842
  10  3.0823e-05
  11  1.20212e-05
  12  39.2018
  13  1.14557
  14  2.06914e-05
  15  22.1648
  16  0.227568
  17  0.158838
Done.

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

Extracting fit parameters...

4FGL J0315.9-1033
   Spectrum: PowerLaw
289    Prefactor:  1.000e-04  3.154e-06  1.000e-04  1.000e+04 ( 1.000e-12)
290        Index:  2.475e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
291        Scale:  6.885e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  8.978e-01  1.588e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  1.180e+00  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 48.992 -10.552
Photon Flux Upper Limit: 6.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/171108/likelihoodResults_655603201_655862401_4FGL_J0315.9-1033_daily_bin1606.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) = 5502.01181228
delta logL = -0.00272666877572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5502.00908649
delta logL = -8.68905772222e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10593E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4486       1.0000          .0000       10.000    
     3 'Normalizat'    1.1799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89776       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+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=   5502.009     FROM MIGRAD    STATUS=FAILED       101 CALLS      249 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.594        .97897E-02** at limit **
   2  Index         1.8931        8.5991        .50000       -.49222E-05
   3  Normalizat    1.1798        .12917E-01    .26280E-03   -.13358E-03
   4  Prefactor     .89779        .92873E-02    .21223E-03   -.15720E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5502.009     FROM SIMPLEX   STATUS=UNCHANGED    174 CALLS      423 TOTAL
                     EDM=   .95E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.594        .26678E-03** at limit **
   2  Index         1.8931        8.5991        .80067E-05   -.49222E-05
   3  Normalizat    1.1798        .12917E-01    .81831E-07   -.13358E-03
   4  Prefactor     .89779        .92873E-02    .49507E-07   -.15720E-03
                               ERR DEF=  .500    

 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=   5502.009     FROM MIGRAD    STATUS=FAILED        76 CALLS      499 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    442.01        .23189E-03** at limit **
   2  Index         1.8931        7.8016        .50000       -.49222E-05
   3  Normalizat    1.1798        .94037E-01    .10512E-04   -.13389E-03
   4  Prefactor     .89779        .67615E-01    .84892E-05   -.15749E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.89314
  Normalizat = 1.17981
  Prefactor  = 0.897787
 **********
 **   18 **HESSE 
 **********

 FCN=   5502.009     FROM HESSE     STATUS=OK            27 CALLS      526 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0503        .46377E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8931        6.9131        .50000       -.67049    
   3  Normalizat    1.1798        .21899        .21024E-05   -.87229    
   4  Prefactor     .89779        .15747        .16978E-05   -.96218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.12665e-09
Minuit parameter uncertainties:
  1  1.6332e-05
  2  70.6524
  3  0.219162
  4  0.157553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171108': 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): 1
logL (Free Index) = 5502.00907596
delta logL = 9.66054722085e-06

Extracting fit parameters...

4FGL J0315.9-1033
   Spectrum: PowerLaw
289    Prefactor:  1.000e-04  1.633e-05  1.000e-04  1.000e+04 ( 1.000e-12)
290        Index:  1.893e+00  7.065e+01  0.000e+00  1.000e+01 (-1.000e+00)
291        Scale:  6.885e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  8.978e-01  1.576e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  1.180e+00  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 48.992 -10.552

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/171108/cmap_HighResolution_655603201_655862401_4FGL_J0315.9-1033_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.97e-03', job_status='DONE', photon_flux_upper_limit='6.40e-08', time_completed='2021-12-07 14:03:48.504518', job_id='171108', GAL2='0.90', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1638914628.5', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='9.66e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1606' AND source_name='4FGL J0315.9-1033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 14:03:48 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 171108: <4FGL_J0315.9-1033_daily_bin1606> in cluster <slac> Done

Job <4FGL_J0315.9-1033_daily_bin1606> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 13:50:28 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 13:52:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 13:52:33 2021
Terminated at Tue Dec  7 14:03:49 2021
Results reported at Tue Dec  7 14:03:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0315.9-1033_daily_bin1606 48.9922 -10.5522 655603201 655862401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0315.9-1033 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   540.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            801 sec.

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

