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


Performing analysis on: 4FGL_J0315.9-1033_daily_bin1608
RA = 48.9922, Dec = -10.5522
tmin = 656121601, tmax = 656380801
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='171111', job_status='RUN', time_executed='2021-12-07 13:54:41.863609', time_epoch_executed='1638914081.86' WHERE source_name='4FGL J0315.9-1033' and cadence='daily' and bin_id='1608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171111

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171111/ft1_4FGL_J0315.9-1033_daily_bin1608.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171111/ft2_4FGL_J0315.9-1033_daily_bin1608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171111/ft1_4FGL_J0315.9-1033_daily_bin1608.fits outfile=/scratch/kocevski/171111/ft1_filteredMKT_4FGL_J0315.9-1033_daily_bin1608.fits ra=48.9922 dec=-10.5522 rad=12.0 tmin=656121601.0 tmax=656380801.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 2.93
user 2.68
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171111/ft2_4FGL_J0315.9-1033_daily_bin1608.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/171111/ft1_filteredMKT_4FGL_J0315.9-1033_daily_bin1608.fits evtable="EVENTS" outfile="/scratch/kocevski/171111/ft1_filtered_4FGL_J0315.9-1033_daily_bin1608.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.44
user 0.28
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171111/ft1_filtered_4FGL_J0315.9-1033_daily_bin1608.fits" evtable="EVENTS" scfile=/scratch/kocevski/171111/ft2_4FGL_J0315.9-1033_daily_bin1608.fits sctable="SC_DATA" outfile=/scratch/kocevski/171111/ltcube_656121601_656380801_4FGL_J0315.9-1033_daily_bin1608.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/171111/ft2_4FGL_J0315.9-1033_daily_bin1608.fits
.....................!
real 11.64
user 11.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171111/ft1_filtered_4FGL_J0315.9-1033_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/171111/ft2_4FGL_J0315.9-1033_daily_bin1608.fits sctable="SC_DATA" expcube=/scratch/kocevski/171111/ltcube_656121601_656380801_4FGL_J0315.9-1033_daily_bin1608.fits outfile=/scratch/kocevski/171111/expmap_656121601_656380801_4FGL_J0315.9-1033_daily_bin1608.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/171111/ltcube_656121601_656380801_4FGL_J0315.9-1033_daily_bin1608.fits
.....................!
real 154.25
user 148.65
sys 4.86

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/171111/ft1_filtered_4FGL_J0315.9-1033_daily_bin1608.fits scfile=/scratch/kocevski/171111/ft2_4FGL_J0315.9-1033_daily_bin1608.fits outfile=/scratch/kocevski/171111/cmap_656121601_656380801_4FGL_J0315.9-1033_daily_bin1608.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.45
user 0.30
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171111/ft1_filtered_4FGL_J0315.9-1033_daily_bin1608.fits scfile=/scratch/kocevski/171111/ft2_4FGL_J0315.9-1033_daily_bin1608.fits outfile=/scratch/kocevski/171111/cmap_HighResolution_656121601_656380801_4FGL_J0315.9-1033_daily_bin1608.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.46
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/171111/ft1_filtered_4FGL_J0315.9-1033_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/171111/ft2_4FGL_J0315.9-1033_daily_bin1608.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/171111/Model_4FGL_J0315.9-1033_daily_bin1608.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/171111/ft1_filtered_4FGL_J0315.9-1033_daily_bin1608.fits.....................!
real 58.17
user 56.75
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/171111/ft1_filtered_4FGL_J0315.9-1033_daily_bin1608.fits', '/scratch/kocevski/171111/ft2_4FGL_J0315.9-1033_daily_bin1608.fits', expMap='/scratch/kocevski/171111/expmap_656121601_656380801_4FGL_J0315.9-1033_daily_bin1608.fits', expCube='/scratch/kocevski/171111/ltcube_656121601_656380801_4FGL_J0315.9-1033_daily_bin1608.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/171111/Model_4FGL_J0315.9-1033_daily_bin1608.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/171111/ft1_filtered_4FGL_J0315.9-1033_daily_bin1608.fits
Spacecraft file(s): /scratch/kocevski/171111/ft2_4FGL_J0315.9-1033_daily_bin1608.fits
Exposure map: /scratch/kocevski/171111/expmap_656121601_656380801_4FGL_J0315.9-1033_daily_bin1608.fits
Exposure cube: /scratch/kocevski/171111/ltcube_656121601_656380801_4FGL_J0315.9-1033_daily_bin1608.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/171111/Model_4FGL_J0315.9-1033_daily_bin1608.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) = 6129.16449391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.050       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .30925E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.224       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12908E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24798       1.0000         .10000E-03   10000.    
     8 'Prefactor '    163.56       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5018       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .33538       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7214       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2991       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .80394       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0994       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.

 FCN=   6129.116     FROM MIGRAD    STATUS=CONVERGED    327 CALLS     1642 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.054        12.223       -.24292E-05   -.23556E-03
   2  Prefactor     .10000E-03    63.065        .94307E-04** at limit **
   3  Prefactor     .10000E-03    12.046        .92245E-06** at limit **
   4  Prefactor     .10000E-03    132.52       -.47343E-04** at limit **
   5  Prefactor     12.226        11.915       -.13571E-05   -.31413E-04
   6  Prefactor     .10000E-03    18.350       -.31225E-05** at limit **
   7  Prefactor     .24887        1.9757       -.14211E-05   -.29183E-03
   8  Prefactor     163.56        143.33       -.59566E-06    .15286E-04
   9  Prefactor     1.5017        2.9070       -.35906E-06   -.43068E-03
  10  Prefactor     .10000E-03    5.6778        .67654E-07** at limit **
  11  Prefactor     .10000E-03    3.0488       -.61237E-07** at limit **
  12  Prefactor     .10000E-03    79.054       -.12061E-03** at limit **
  13  norm          .33543        1.0195       -.70279E-06   -.20414E-02
  14  Prefactor     4.7192        40.589        .19556E-04    .17354E-03
  15  Prefactor     6.2832        29.748       -.15662E-04   -.23731E-04
  16  Normalizat    .80381        .17022        .13425E-05    .36115E-03
  17  Prefactor     1.0994        .12909        .33045E-06    .68922E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2264
  Prefactor  = 0.0001
  Prefactor  = 0.248873
  Prefactor  = 163.561
  Prefactor  = 1.50168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.335431
  Prefactor  = 4.71918
  Prefactor  = 6.28315
  Normalizat = 0.803812
  Prefactor  = 1.09939
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.116     FROM HESSE     STATUS=OK           223 CALLS     1865 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.054        12.265        .10686E-03   -1.4958    
   2  Prefactor     .10000E-03    62.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.441        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    133.51        .21377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.226        11.915        .11457E-03   -1.5008    
   6  Prefactor     .10000E-03    18.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .24887        4.0584        .21266E-02   -1.5608    
   8  Prefactor     163.56        143.33        .31536E-04   -1.3143    
   9  Prefactor     1.5017        2.8703        .18001E-03   -1.5463    
  10  Prefactor     .10000E-03    5.6952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.0585        .13349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    79.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .33543        1.0068        .13169E-03   -1.5592    
  14  Prefactor     4.7192        38.373        .18519E-03   -1.5273    
  15  Prefactor     6.2832        28.257        .15993E-03   -1.5207    
  16  Normalizat    .80381        .19428        .27808E-03   -.99927    
  17  Prefactor     1.0994        .14792        .18616E-03   -.89486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45974e-08
Minuit parameter uncertainties:
  1  12.2672
  2  0.00015703
  3  1.91629e-05
  4  0.000355407
  5  11.9172
  6  7.22822e-05
  7  2.00975
  8  143.638
  9  2.87055
  10  3.49864e-07
  11  2.15687e-06
  12  0.000648981
  13  1.00688
  14  26.9371
  15  26.6699
  16  0.194446
  17  0.147977
Done.

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

Extracting fit parameters...

4FGL J0315.9-1033
   Spectrum: PowerLaw
289    Prefactor:  2.489e-01  2.010e+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

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.099e+00  1.480e-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:  8.038e-01  1.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/171111/likelihoodResults_656121601_656380801_4FGL_J0315.9-1033_daily_bin1608.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): 0
logL (Free Index) = 6129.10859025
delta logL = 0.0071716548382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6129.10585069
delta logL = 0.00991120878098

Fit tolerance = 1e-08

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

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

 FCN=   6129.106     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      261 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41771        3.3775        .27528E-03   -.33088E-03
   2  Index         2.1467        1.9800        .18890E-01   -.47447E-04
   3  Normalizat    .80439        .18715        .27798E-03   -.19610E-03
   4  Prefactor     1.0987        .14552        .18621E-03   -.25887E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.417708
  Index      = 2.14675
  Normalizat = 0.804394
  Prefactor  = 1.09868
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.106     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41771        3.2643        .11011E-04   -1.5579    
   2  Index         2.1467        1.9512        .75560E-03   -.60730    
   3  Normalizat    .80439        .18726        .11119E-04   -.99906    
   4  Prefactor     1.0987        .14561        .37242E-04   -.89509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02731e-10
Minuit parameter uncertainties:
  1  2.33528
  2  2.03327
  3  0.187411
  4  0.145659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171111': 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) = 6129.10584205
delta logL = 0.00991985462952

Extracting fit parameters...

4FGL J0315.9-1033
   Spectrum: PowerLaw
289    Prefactor:  4.177e-01  2.335e+00  1.000e-04  1.000e+04 ( 1.000e-12)
290        Index:  2.147e+00  2.033e+00  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:  1.099e+00  1.457e-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:  8.044e-01  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/171111/cmap_HighResolution_656121601_656380801_4FGL_J0315.9-1033_daily_bin1608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-03', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-12-07 14:02:11.531116', job_id='171111', GAL2='1.10', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1638914531.53', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='9.92e-03', ts2='0.04', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1608' AND source_name='4FGL J0315.9-1033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 14:02:11 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 171111: <4FGL_J0315.9-1033_daily_bin1608> in cluster <slac> Done

Job <4FGL_J0315.9-1033_daily_bin1608> 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) <bullet0026>, 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:02:12 2021
Results reported at Tue Dec  7 14:02:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0315.9-1033_daily_bin1608 48.9922 -10.5522 656121601 656380801 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 :                                   448.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   578 sec.
    Turnaround time :                            704 sec.

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

