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


Performing analysis on: 4FGL_J0314.3-5103_daily_bin1598
RA = 48.5929, Dec = -51.055
tmin = 653529601, tmax = 653788801
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='719870', job_status='RUN', time_executed='2021-09-20 00:07:30.819431', time_epoch_executed='1632121650.82' WHERE source_name='4FGL J0314.3-5103' and cadence='daily' and bin_id='1598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/719870

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/719870/ft1_4FGL_J0314.3-5103_daily_bin1598.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/719870/ft2_4FGL_J0314.3-5103_daily_bin1598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/719870/ft1_4FGL_J0314.3-5103_daily_bin1598.fits outfile=/scratch/kocevski/719870/ft1_filteredMKT_4FGL_J0314.3-5103_daily_bin1598.fits ra=48.5929 dec=-51.055 rad=12.0 tmin=653529601.0 tmax=653788801.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 5.18
user 4.90
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/719870/ft2_4FGL_J0314.3-5103_daily_bin1598.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/719870/ft1_filteredMKT_4FGL_J0314.3-5103_daily_bin1598.fits evtable="EVENTS" outfile="/scratch/kocevski/719870/ft1_filtered_4FGL_J0314.3-5103_daily_bin1598.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/719870/ft1_filtered_4FGL_J0314.3-5103_daily_bin1598.fits" evtable="EVENTS" scfile=/scratch/kocevski/719870/ft2_4FGL_J0314.3-5103_daily_bin1598.fits sctable="SC_DATA" outfile=/scratch/kocevski/719870/ltcube_653529601_653788801_4FGL_J0314.3-5103_daily_bin1598.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/719870/ft2_4FGL_J0314.3-5103_daily_bin1598.fits
.....................!
real 11.91
user 11.58
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/719870/ft1_filtered_4FGL_J0314.3-5103_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/719870/ft2_4FGL_J0314.3-5103_daily_bin1598.fits sctable="SC_DATA" expcube=/scratch/kocevski/719870/ltcube_653529601_653788801_4FGL_J0314.3-5103_daily_bin1598.fits outfile=/scratch/kocevski/719870/expmap_653529601_653788801_4FGL_J0314.3-5103_daily_bin1598.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/719870/ltcube_653529601_653788801_4FGL_J0314.3-5103_daily_bin1598.fits
.....................!
real 190.37
user 186.18
sys 3.82

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/719870/ft1_filtered_4FGL_J0314.3-5103_daily_bin1598.fits scfile=/scratch/kocevski/719870/ft2_4FGL_J0314.3-5103_daily_bin1598.fits outfile=/scratch/kocevski/719870/cmap_653529601_653788801_4FGL_J0314.3-5103_daily_bin1598.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/719870/ft1_filtered_4FGL_J0314.3-5103_daily_bin1598.fits scfile=/scratch/kocevski/719870/ft2_4FGL_J0314.3-5103_daily_bin1598.fits outfile=/scratch/kocevski/719870/cmap_HighResolution_653529601_653788801_4FGL_J0314.3-5103_daily_bin1598.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/719870/ft1_filtered_4FGL_J0314.3-5103_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/719870/ft2_4FGL_J0314.3-5103_daily_bin1598.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/719870/Model_4FGL_J0314.3-5103_daily_bin1598.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/719870/ft1_filtered_4FGL_J0314.3-5103_daily_bin1598.fits.....................!
real 120.53
user 119.17
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/719870/ft1_filtered_4FGL_J0314.3-5103_daily_bin1598.fits', '/scratch/kocevski/719870/ft2_4FGL_J0314.3-5103_daily_bin1598.fits', expMap='/scratch/kocevski/719870/expmap_653529601_653788801_4FGL_J0314.3-5103_daily_bin1598.fits', expCube='/scratch/kocevski/719870/ltcube_653529601_653788801_4FGL_J0314.3-5103_daily_bin1598.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/719870/Model_4FGL_J0314.3-5103_daily_bin1598.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/719870/ft1_filtered_4FGL_J0314.3-5103_daily_bin1598.fits
Spacecraft file(s): /scratch/kocevski/719870/ft2_4FGL_J0314.3-5103_daily_bin1598.fits
Exposure map: /scratch/kocevski/719870/expmap_653529601_653788801_4FGL_J0314.3-5103_daily_bin1598.fits
Exposure cube: /scratch/kocevski/719870/ltcube_653529601_653788801_4FGL_J0314.3-5103_daily_bin1598.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/719870/Model_4FGL_J0314.3-5103_daily_bin1598.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) = 6064.17021513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8963       1.0000         .10000E-03   10000.    
     2 'norm      '    .41620       1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.948       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.809       1.0000         .10000E-03   10000.    
     6 'norm      '    .16299E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.240       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10837E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0975       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.593       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.026       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4707       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10100E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6120       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.198       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4593       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .71161E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3523       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .87173       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1889       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=   6064.165     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     3317 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8949        5.3232       -.36183E-06   -.12069E-03
   2  norm          .41698        1.2836        .97549E-06    .24917E-03
   3  Prefactor     50.940        55.693       -.19165E-06   -.68962E-04
   4  Prefactor     .10000E-03    7.7330        .59576E-07** at limit **
   5  Prefactor     12.812        12.691        .29461E-07    .59475E-06
   6  norm          .10000E-03    .89324       -.15374E-07** at limit **
   7  Prefactor     .10000E-03    2.6969        .93520E-08** at limit **
   8  Prefactor     .10000E-03    3.2375       -.45664E-07** at limit **
   9  Prefactor     16.235        15.767       -.52500E-07   -.16349E-05
  10  norm          .10000E-03    .22926        .19375E-07** at limit **
  11  Prefactor     .10002E-03    99.921       -.27828E-05** at limit **
  12  Prefactor     5.0975        6.6383        .82865E-06    .37031E-04
  13  Prefactor     27.590        28.144       -.19063E-06   -.22895E-04
  14  Prefactor     .10000E-03    23.815        .92499E-06** at limit **
  15  norm          10.025        7.7336       -.43856E-07    .30820E-04
  16  norm          3.4701        1.5122       -.11468E-07    .70200E-03
  17  Prefactor     .10001E-03    70.284        .42862E-05** at limit **
  18  Prefactor     3.6093        4.0603        .22911E-06    .22544E-04
  19  Prefactor     31.194        40.538        .19539E-07   -.24453E-04
  20  Prefactor     6.4580        18.862        .62020E-05    .11247E-03
  21  Prefactor     .10011E-03    7.2885       -.23218E-05** at limit **
  22  norm          2.3524        1.0611        .72202E-08   -.28565E-04
  23  Prefactor     .10000E-03    28.490       -.11091E-05** at limit **
  24  Prefactor     .10000E-03    5.5090        .35984E-07** at limit **
  25  norm          .10000E-03    1.5610        .26312E-07** at limit **
  26  Normalizat    .87164        .17309       -.95704E-06    .68853E-04
  27  Prefactor     1.1889        .18673       -.31860E-07    .68115E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.89485
  norm       = 0.416978
  Prefactor  = 50.9395
  Prefactor  = 0.0001
  Prefactor  = 12.8119
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2353
  norm       = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 5.09752
  Prefactor  = 27.5897
  Prefactor  = 0.000100001
  norm       = 10.0248
  norm       = 3.47008
  Prefactor  = 0.000100012
  Prefactor  = 3.60927
  Prefactor  = 31.1944
  Prefactor  = 6.45796
  Prefactor  = 0.000100108
  norm       = 2.35238
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.871639
  Prefactor  = 1.18892
 **********
 **   18 **HESSE 
 **********

 FCN=   6064.165     FROM HESSE     STATUS=OK           490 CALLS     3807 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8949        5.2444        .13292E-03   -1.5146    
   2  norm          .41698        1.2845        .13766E-03   -1.5579    
   3  Prefactor     50.940        55.545        .56186E-04   -1.4279    
   4  Prefactor     .10000E-03    7.7716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.812        12.688        .11192E-03   -1.4992    
   6  norm          .10000E-03    7.7510        .14035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7014        .12488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3353        .27345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.235        15.763        .99386E-04   -1.4902    
  10  norm          .10000E-03    .23288        .36392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    101.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.0975        6.5763        .17808E-03   -1.5256    
  13  Prefactor     27.590        28.085        .76267E-04   -1.4657    
  14  Prefactor     .10000E-03    24.353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.025        7.7717        .12655E-03   -1.5075    
  16  norm          3.4701        1.5078        .55888E-04   -1.5335    
  17  Prefactor     .10001E-03    73.558        .36294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6093        4.0508        .16149E-03   -1.5328    
  19  Prefactor     31.194        40.543        .71735E-04   -1.4590    
  20  Prefactor     6.4580        19.141        .78958E-03   -1.5200    
  21  Prefactor     .10011E-03    23.049        .34693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3524        1.0604        .52255E-04   -1.5401    
  23  Prefactor     .10000E-03    28.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.5156        .17851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.5713        .95011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .87164        .20489        .25433E-03   -.97464    
  27  Prefactor     1.1889        .22089        .24342E-03   -.86673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18659e-09
Minuit parameter uncertainties:
  1  5.24475
  2  1.28459
  3  55.6017
  4  3.13893e-06
  5  12.6911
  6  3.6309e-05
  7  3.66249e-07
  8  3.37618e-06
  9  15.767
  10  2.17217e-07
  11  0.00254445
  12  6.5772
  13  28.0981
  14  0.000337613
  15  7.77246
  16  1.50783
  17  0.00188933
  18  4.05114
  19  40.5793
  20  19.1587
  21  0.00316066
  22  1.06039
  23  0.000584693
  24  3.26022e-06
  25  9.22129e-07
  26  0.205072
  27  0.221065
Done.

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

Extracting fit parameters...

4FGL J0314.3-5103
   Spectrum: PowerLaw
286    Prefactor:  3.609e+00  4.051e+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

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  1.189e+00  2.211e-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:  8.716e-01  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.26
Ra Dec: 48.593 -51.055
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 1.27e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 7.90e-06 +/- 8.87e-06

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

Saving results to:
/scratch/kocevski/719870/likelihoodResults_653529601_653788801_4FGL_J0314.3-5103_daily_bin1598.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) = 6064.11881642
delta logL = 0.0459577206193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6064.11783493
delta logL = 0.0469392176965

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6064.118     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      256 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2655        5.0561        .17667E-03   -.48783E-03
   2  Index         1.7956        .78673        .99477E-02   -.10490E-03
   3  Normalizat    .87521        .19811        .25385E-03    .13503E-03
   4  Prefactor     1.1870        .21859        .24358E-03    .15261E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26548
  Index      = 1.79556
  Normalizat = 0.87521
  Prefactor  = 1.18704
 **********
 **   18 **HESSE 
 **********

 FCN=   6064.118     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2655        5.0002        .70670E-05   -1.5295    
   2  Index         1.7956        .77826        .39791E-03   -.69565    
   3  Normalizat    .87521        .19828        .10154E-04   -.97337    
   4  Prefactor     1.1870        .21879        .48715E-04   -.86731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25268e-10
Minuit parameter uncertainties:
  1  5.00067
  2  0.783689
  3  0.198442
  4  0.21896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/719870': 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) = 6064.1178346
delta logL = 0.0469395405889

Extracting fit parameters...

4FGL J0314.3-5103
   Spectrum: PowerLaw
286    Prefactor:  4.265e+00  5.001e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.796e+00  7.837e-01  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.187e+00  2.190e-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:  8.752e-01  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.35
Ra Dec: 48.593 -51.055
Photon Index (Free Index): 1.80 +/- 0.78
Photon Flux (Free Index): 9.58e-09 +/- 1.43e-08
Energy Flux (Free Index): 1.16e-05 +/- 2.07e-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/719870/cmap_HighResolution_653529601_653788801_4FGL_J0314.3-5103_daily_bin1598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-03', comment='SUCCESS', photon_flux='1.27e-08', energy_flux2='1.16e-05', photon_flux_error='1.42e-08', dlogl='4.69e-02', energy_flux='7.90e-06', photon_flux2='9.58e-09', job_status='DONE', time_completed='2021-09-20 00:21:49.525959', photon_index_error2='0.78', photon_index2='1.80', ts='2.26', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='5.86e-08', energy_flux_error2='2.07e-05', EG='0.87', time_epoch_completed='1632122509.53', return_code='0', job_id='719870', GAL2='1.19', EG2='0.88', return_code2='0', energy_flux_error='8.87e-06', photon_flux_error2='1.43e-08', ts2='2.35', photon_index='2.04' WHERE bin_id='1598' AND source_name='4FGL J0314.3-5103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 00:21:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 719870: <4FGL_J0314.3-5103_daily_bin1598> in cluster <slac> Done

Job <4FGL_J0314.3-5103_daily_bin1598> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 20 00:05:30 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 00:05:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 00:05:32 2021
Terminated at Mon Sep 20 00:21:50 2021
Results reported at Mon Sep 20 00:21:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0314.3-5103_daily_bin1598 48.5929 -51.055 653529601 653788801 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 :                                   860.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            980 sec.

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

