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


Performing analysis on: 4FGL_J0314.3-5103_daily_bin1597
RA = 48.5929, Dec = -51.055
tmin = 653270401, tmax = 653529601
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='536072', job_status='RUN', time_executed='2021-09-17 00:22:50.340716', time_epoch_executed='1631863370.34' WHERE source_name='4FGL J0314.3-5103' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/536072

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/536072/ft1_4FGL_J0314.3-5103_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/536072/ft2_4FGL_J0314.3-5103_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/536072/ft1_4FGL_J0314.3-5103_daily_bin1597.fits outfile=/scratch/kocevski/536072/ft1_filteredMKT_4FGL_J0314.3-5103_daily_bin1597.fits ra=48.5929 dec=-51.055 rad=12.0 tmin=653270401.0 tmax=653529601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.30
user 3.08
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/536072/ft2_4FGL_J0314.3-5103_daily_bin1597.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/536072/ft2_4FGL_J0314.3-5103_daily_bin1597.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/536072/ft1_filteredMKT_4FGL_J0314.3-5103_daily_bin1597.fits evtable="EVENTS" outfile="/scratch/kocevski/536072/ft1_filtered_4FGL_J0314.3-5103_daily_bin1597.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/536072/ft1_filtered_4FGL_J0314.3-5103_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/536072/ft2_4FGL_J0314.3-5103_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/536072/ltcube_653270401_653529601_4FGL_J0314.3-5103_daily_bin1597.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/536072/ft2_4FGL_J0314.3-5103_daily_bin1597.fits
.....................!
real 12.35
user 11.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/536072/ft1_filtered_4FGL_J0314.3-5103_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/536072/ft2_4FGL_J0314.3-5103_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/536072/ltcube_653270401_653529601_4FGL_J0314.3-5103_daily_bin1597.fits outfile=/scratch/kocevski/536072/expmap_653270401_653529601_4FGL_J0314.3-5103_daily_bin1597.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/536072/ltcube_653270401_653529601_4FGL_J0314.3-5103_daily_bin1597.fits
.....................!
real 190.81
user 185.67
sys 4.81

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 191 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0314.3-5103 @ 48.5929 -51.055

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/536072/ft1_filtered_4FGL_J0314.3-5103_daily_bin1597.fits scfile=/scratch/kocevski/536072/ft2_4FGL_J0314.3-5103_daily_bin1597.fits outfile=/scratch/kocevski/536072/cmap_653270401_653529601_4FGL_J0314.3-5103_daily_bin1597.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.5929 yref=-51.055 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.53
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/536072/ft1_filtered_4FGL_J0314.3-5103_daily_bin1597.fits scfile=/scratch/kocevski/536072/ft2_4FGL_J0314.3-5103_daily_bin1597.fits outfile=/scratch/kocevski/536072/cmap_HighResolution_653270401_653529601_4FGL_J0314.3-5103_daily_bin1597.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.5929 yref=-51.055 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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/536072/ft1_filtered_4FGL_J0314.3-5103_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/536072/ft2_4FGL_J0314.3-5103_daily_bin1597.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/536072/Model_4FGL_J0314.3-5103_daily_bin1597.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/536072/ft1_filtered_4FGL_J0314.3-5103_daily_bin1597.fits.....................!
real 107.23
user 105.76
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/536072/ft1_filtered_4FGL_J0314.3-5103_daily_bin1597.fits', '/scratch/kocevski/536072/ft2_4FGL_J0314.3-5103_daily_bin1597.fits', expMap='/scratch/kocevski/536072/expmap_653270401_653529601_4FGL_J0314.3-5103_daily_bin1597.fits', expCube='/scratch/kocevski/536072/ltcube_653270401_653529601_4FGL_J0314.3-5103_daily_bin1597.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/536072/Model_4FGL_J0314.3-5103_daily_bin1597.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0314.3-5103'

4FGL J0314.3-5103
   Spectrum: PowerLaw
286    Prefactor:  2.048e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.043e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/536072/ft1_filtered_4FGL_J0314.3-5103_daily_bin1597.fits
Spacecraft file(s): /scratch/kocevski/536072/ft2_4FGL_J0314.3-5103_daily_bin1597.fits
Exposure map: /scratch/kocevski/536072/expmap_653270401_653529601_4FGL_J0314.3-5103_daily_bin1597.fits
Exposure cube: /scratch/kocevski/536072/ltcube_653270401_653529601_4FGL_J0314.3-5103_daily_bin1597.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/536072/Model_4FGL_J0314.3-5103_daily_bin1597.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) = 5063.60066362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9419       1.0000         .10000E-03   10000.    
     2 'norm      '    4.0666       1.0000         .10000E-03   10000.    
     3 'Prefactor '    134.96       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.518       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10586       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .64541       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5698       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0134       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.6526       1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.334       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14050E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.224       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.927       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .40615E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.4060       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.951       1.0000         .10000E-03   10000.    
    25 'norm      '    4.4456       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0155       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2155       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5063.509     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3329 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9422        4.9001       -.16167E-06    .19233E-04
   2  norm          4.0667        2.2318       -.51050E-07    .10304E-03
   3  Prefactor     134.91        91.108       -.51529E-05   -.37939E-04
   4  Prefactor     16.518        22.552       -.31529E-06    .80682E-05
   5  Prefactor     .10000E-03    33.654        .95637E-06** at limit **
   6  norm          .91801E-01    1.3108       -.25400E-06    .29628E-03
   7  Prefactor     .10000E-03    11.199       -.52389E-06** at limit **
   8  Prefactor     .10000E-03    1.5547       -.40949E-07** at limit **
   9  Prefactor     .10000E-03    8.3865        .66076E-07** at limit **
  10  norm          .64580        .98655       -.59542E-07   -.20424E-03
  11  Prefactor     .10000E-03    25.250       -.15031E-05** at limit **
  12  Prefactor     1.5723        5.6693        .42211E-06   -.45990E-04
  13  Prefactor     .10000E-03    12.063        .45908E-06** at limit **
  14  Prefactor     4.9922        18.904        .54162E-05    .24976E-03
  15  norm          .10000E-03    14.229        .30893E-06** at limit **
  16  norm          4.6520        1.6721       -.92167E-07    .27954E-03
  17  Prefactor     36.294        35.451        .97343E-06    .28759E-03
  18  Prefactor     .10020E-03    10.458       -.48603E-05** at limit **
  19  Prefactor     34.232        43.297        .11356E-05    .43727E-04
  20  Prefactor     11.922        21.556        .11125E-07    .62661E-04
  21  Prefactor     .10000E-03    6.6610       -.35274E-06** at limit **
  22  norm          7.4059        1.9156       -.48404E-07    .90726E-04
  23  Prefactor     .10000E-03    32.781        .89809E-06** at limit **
  24  Prefactor     19.947        26.795       -.13396E-05    .13860E-04
  25  norm          4.4456        4.6852        .89613E-08    .12111E-04
  26  Normalizat    1.0157        .22906        .18658E-05    .39409E-03
  27  Prefactor     1.2153        .23059        .77205E-06    .39432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.94222
  norm       = 4.06673
  Prefactor  = 134.915
  Prefactor  = 16.5182
  Prefactor  = 0.0001
  norm       = 0.091801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.645796
  Prefactor  = 0.0001
  Prefactor  = 1.57227
  Prefactor  = 0.0001
  Prefactor  = 4.99221
  norm       = 0.0001
  norm       = 4.65205
  Prefactor  = 36.2938
  Prefactor  = 0.000100199
  Prefactor  = 34.2321
  Prefactor  = 11.9215
  Prefactor  = 0.0001
  norm       = 7.40594
  Prefactor  = 0.0001
  Prefactor  = 19.9469
  norm       = 4.44559
  Normalizat = 1.01574
  Prefactor  = 1.21529
 **********
 **   18 **HESSE 
 **********

 FCN=   5063.509     FROM HESSE     STATUS=OK           494 CALLS     3823 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9422        4.9032        .15122E-03   -1.5263    
   2  norm          4.0667        2.2302        .75307E-04   -1.5305    
   3  Prefactor     134.91        91.165        .17333E-03   -1.3380    
   4  Prefactor     16.518        22.521        .98547E-04   -1.4895    
   5  Prefactor     .10000E-03    33.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .91801E-01    9.5796        .15555E-02   -1.5647    
   7  Prefactor     .10000E-03    11.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5595        .86637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.3891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .64580        .84564        .84266E-03   -1.5547    
  11  Prefactor     .10000E-03    25.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5723        5.5495        .29381E-03   -1.5457    
  13  Prefactor     .10000E-03    12.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9922        19.006        .17960E-03   -1.5261    
  15  norm          .10000E-03    14.544        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.6520        1.6516        .51854E-04   -1.5277    
  17  Prefactor     36.294        35.763        .66487E-04   -1.4502    
  18  Prefactor     .10020E-03    38.259        .38138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.232        43.294        .68500E-04   -1.4537    
  20  Prefactor     11.922        21.564        .11600E-03   -1.5017    
  21  Prefactor     .10000E-03    22.002        .35171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.4059        1.9182        .48437E-04   -1.5164    
  23  Prefactor     .10000E-03    32.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.947        26.964        .89671E-04   -1.4814    
  25  norm          4.4456        4.6692        .14603E-03   -1.5286    
  26  Normalizat    1.0157        .27176        .27322E-03   -.92505    
  27  Prefactor     1.2153        .27407        .27033E-03   -.85862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1581e-09
Minuit parameter uncertainties:
  1  4.90355
  2  2.2302
  3  91.26
  4  22.5325
  5  1.07656e-05
  6  1.87483
  7  4.00208e-05
  8  3.43613e-07
  9  2.43179e-07
  10  0.845652
  11  6.10294e-05
  12  5.55136
  13  5.88671e-06
  14  19.0288
  15  1.53863e-05
  16  1.65165
  17  35.7841
  18  0.00552382
  19  43.3341
  20  21.5785
  21  9.45461e-05
  22  1.91821
  23  8.48135e-06
  24  26.98
  25  4.6696
  26  0.272134
  27  0.274393
Done.

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

Extracting fit parameters...

4FGL J0314.3-5103
   Spectrum: PowerLaw
286    Prefactor:  1.002e-04  5.524e-03  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.043e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  1.215e+00  2.744e-01  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.016e+00  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 48.593 -51.055
Photon Flux Upper Limit: 9.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/536072/likelihoodResults_653270401_653529601_4FGL_J0314.3-5103_daily_bin1597.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) = 5063.50902958
delta logL = -0.000124013269669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5063.50886163
delta logL = 4.39319901488e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25378E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2007       1.0000          .0000       10.000    
     3 'Normalizat'    1.0157       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2153       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5062.883     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      273 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25627        3.9383        .72605E-02   -.87140E-03
   2  Index         3.9413        2.3960        .84393E-01   -.54626E-04
   3  Normalizat    .91942        .48698E-01    .64580E-01   -.31643E-03
   4  Prefactor     1.2726        .52213E-01    .59904E-01   -.27226E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.256266
  Index      = 3.94128
  Normalizat = 0.919423
  Prefactor  = 1.27264
 **********
 **   18 **HESSE 
 **********

 FCN=   5062.883     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      304 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25627        10.556        .32869E-04   -1.5607    
   2  Index         3.9413        6.8481        .42428E-02   -.21336    
   3  Normalizat    .91942        .21998        .28566E-03   -.95781    
   4  Prefactor     1.2726        .23053        .26491E-03   -.84124    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.31765e-09
Minuit parameter uncertainties:
  1  3.28942
  2  5.09678
  3  0.2202
  4  0.230711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/536072': 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) = 5062.88291203
delta logL = 0.625993533099

Extracting fit parameters...

4FGL J0314.3-5103
   Spectrum: PowerLaw
286    Prefactor:  2.563e-01  3.289e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  3.941e+00  5.097e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  1.273e+00  2.307e-01  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  9.194e-01  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 48.593 -51.055
Photon Index (Free Index): 3.94 +/- 5.10
Photon Flux (Free Index): 7.73e-08 +/- 7.39e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.37e-05

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/536072/cmap_HighResolution_653270401_653529601_4FGL_J0314.3-5103_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.36e-03', comment='SUCCESS', energy_flux2='1.17e-05', dlogl='6.26e-01', photon_flux2='7.73e-08', job_status='DONE', time_completed='2021-09-17 00:35:38.423353', photon_index_error2='5.10', photon_index2='3.94', ts='-0.00', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='9.78e-08', energy_flux_error2='1.37e-05', EG='1.02', time_epoch_completed='1631864138.42', return_code='0', job_id='536072', GAL2='1.27', EG2='0.92', return_code2='102', photon_flux_error2='7.39e-08', ts2='1.36', photon_index='2.04' WHERE bin_id='1597' AND source_name='4FGL J0314.3-5103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 00:35:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 536072: <4FGL_J0314.3-5103_daily_bin1597> in cluster <slac> Done

Job <4FGL_J0314.3-5103_daily_bin1597> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 17 00:20:18 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 00:20:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 00:20:19 2021
Terminated at Fri Sep 17 00:35:41 2021
Results reported at Fri Sep 17 00:35:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0314.3-5103_daily_bin1597 48.5929 -51.055 653270401 653529601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0314.3-5103 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   770.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            923 sec.

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

