aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 198 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0314.3-5103_daily_bin1751
RA = 48.5929, Dec = -51.055
tmin = 693187201, tmax = 693446401
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='67420', job_status='RUN', time_executed='2022-12-23 00:08:58.474339', time_epoch_executed='1671782938.47' WHERE source_name='4FGL J0314.3-5103' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/67420

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/67420/ft1_4FGL_J0314.3-5103_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/67420/ft2_4FGL_J0314.3-5103_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/67420/ft1_4FGL_J0314.3-5103_daily_bin1751.fits outfile=/scratch/kocevski/67420/ft1_filteredMKT_4FGL_J0314.3-5103_daily_bin1751.fits ra=48.5929 dec=-51.055 rad=12.0 tmin=693187201.0 tmax=693446401.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.08
user 3.44
sys 0.24

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

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

Number of photons that the gtmktime cut: 634

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/67420/ft1_filtered_4FGL_J0314.3-5103_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/67420/ft2_4FGL_J0314.3-5103_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/67420/ltcube_693187201_693446401_4FGL_J0314.3-5103_daily_bin1751.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/67420/ft2_4FGL_J0314.3-5103_daily_bin1751.fits
.....................!
real 12.68
user 12.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/67420/ft1_filtered_4FGL_J0314.3-5103_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/67420/ft2_4FGL_J0314.3-5103_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/67420/ltcube_693187201_693446401_4FGL_J0314.3-5103_daily_bin1751.fits outfile=/scratch/kocevski/67420/expmap_693187201_693446401_4FGL_J0314.3-5103_daily_bin1751.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/67420/ltcube_693187201_693446401_4FGL_J0314.3-5103_daily_bin1751.fits
.....................!
real 193.81
user 188.55
sys 4.63

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_8years/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/67420/ft1_filtered_4FGL_J0314.3-5103_daily_bin1751.fits scfile=/scratch/kocevski/67420/ft2_4FGL_J0314.3-5103_daily_bin1751.fits outfile=/scratch/kocevski/67420/cmap_693187201_693446401_4FGL_J0314.3-5103_daily_bin1751.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/67420/ft1_filtered_4FGL_J0314.3-5103_daily_bin1751.fits scfile=/scratch/kocevski/67420/ft2_4FGL_J0314.3-5103_daily_bin1751.fits outfile=/scratch/kocevski/67420/cmap_HighResolution_693187201_693446401_4FGL_J0314.3-5103_daily_bin1751.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/67420/ft1_filtered_4FGL_J0314.3-5103_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/67420/ft2_4FGL_J0314.3-5103_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/67420/Model_4FGL_J0314.3-5103_daily_bin1751.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/67420/ft1_filtered_4FGL_J0314.3-5103_daily_bin1751.fits.....................!
real 138.29
user 136.65
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/67420/ft1_filtered_4FGL_J0314.3-5103_daily_bin1751.fits', '/scratch/kocevski/67420/ft2_4FGL_J0314.3-5103_daily_bin1751.fits', expMap='/scratch/kocevski/67420/expmap_693187201_693446401_4FGL_J0314.3-5103_daily_bin1751.fits', expCube='/scratch/kocevski/67420/ltcube_693187201_693446401_4FGL_J0314.3-5103_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/67420/Model_4FGL_J0314.3-5103_daily_bin1751.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  0.000e+00  1.000e+06 ( 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/67420/ft1_filtered_4FGL_J0314.3-5103_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/67420/ft2_4FGL_J0314.3-5103_daily_bin1751.fits
Exposure map: /scratch/kocevski/67420/expmap_693187201_693446401_4FGL_J0314.3-5103_daily_bin1751.fits
Exposure cube: /scratch/kocevski/67420/ltcube_693187201_693446401_4FGL_J0314.3-5103_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/67420/Model_4FGL_J0314.3-5103_daily_bin1751.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) = 6891.03751282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1659       1.0000          .0000       .10000E+07
     2 'norm      '    2.7448       1.0000          .0000       .10000E+07
     3 'Prefactor '    36.700       1.0000          .0000       .10000E+07
     4 'Prefactor '    .86572E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10391E-04   1.0000          .0000       .10000E+07
     6 'norm      '    1.7094       1.0000          .0000       .10000E+07
     7 'Prefactor '    9.9308       1.0000          .0000       .10000E+07
     8 'Prefactor '    .19025E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .79956E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .26257E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.7190       1.0000          .0000       .10000E+07
    12 'Prefactor '    .27292E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .32799E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .10934E-02   1.0000          .0000       .10000E+07
    15 'norm      '    5.0435       1.0000          .0000       .10000E+07
    16 'Prefactor '    .45346E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    8.8491       1.0000          .0000       .10000E+07
    18 'Prefactor '    .27384E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    6.1991       1.0000          .0000       .10000E+07
    20 'Prefactor '    6.4107       1.0000          .0000       .10000E+07
    21 'norm      '    1.8204       1.0000          .0000       .10000E+07
    22 'Prefactor '    11.584       1.0000          .0000       .10000E+07
    23 'Prefactor '    .15127E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .11996E-06   1.0000          .0000       .10000E+07
    25 'Normalizat'    .88747       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6891.034     FROM MIGRAD    STATUS=CONVERGED    152 CALLS     2254 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1663        2.5057       -.18971E-07   -.34247E-03
   2  norm          2.7451        1.2781       -.10051E-07   -.79715E-03
   3  Prefactor     36.581        2.8255        .45148E-07    .38478E-01
   4  Prefactor     .16653E-09    3.6370        .85412E-07** at limit **
   5  Prefactor     .66613E-09    4.0973        .12903E-06** at limit **
   6  norm          1.7099        1.3992       -.67582E-07   -.32597E-02
   7  Prefactor     9.9095        10.454       -.10677E-06   -.19815E-01
   8  Prefactor     .22204E-09    3.1485        .20662E-07** at limit **
   9  Prefactor     .77305E-05    64.981        .13707E-05** at limit **
  10  norm           .0000        .37949       -.44994E-07** at limit **
  11  Prefactor     4.5281        1.6167       -.54534E-07   -.98688E-02
  12  Prefactor     .24505E-04    19.549       -.97247E-06** at limit **
  13  Prefactor     .62061E-07    10.483       -.42295E-07** at limit **
  14  norm          .23981E-07    6.7708       -.18686E-06** at limit **
  15  norm          5.0453        1.4113       -.11871E-07   -.97948E-03
  16  Prefactor     .49682E-07    4.5780        .13506E-06** at limit **
  17  Prefactor     8.9291        6.5082       -.11008E-06   -.26431E-02
  18  Prefactor     .96332E-05    33.901       -.65375E-06** at limit **
  19  Prefactor     6.2040        2.1217        .17193E-07    .28452E-01
  20  Prefactor     6.4001        7.1388       -.20167E-07    .10765E-03
  21  norm          1.8205        .75162        .45501E-08    .18630E-02
  22  Prefactor     11.571        2.7550       -.83784E-07    .10199    
  23  Prefactor     .49072E-07    3.6026        .70080E-07** at limit **
  24  norm           .0000        1.6600        .37767E-07** at limit **
  25  Normalizat    .88735        .16343       -.25477E-05   -.30109E-05
  26  Prefactor     .85507        .17625        .47199E-05    .67343E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.16625
  norm       = 2.74514
  Prefactor  = 36.5812
  Prefactor  = 1.66533e-10
  Prefactor  = 6.66134e-10
  norm       = 1.70985
  Prefactor  = 9.90955
  Prefactor  = 2.22045e-10
  Prefactor  = 7.73054e-06
  norm       = 0
  Prefactor  = 4.52807
  Prefactor  = 2.45048e-05
  Prefactor  = 6.20615e-08
  norm       = 2.39808e-08
  norm       = 5.04535
  Prefactor  = 4.96825e-08
  Prefactor  = 8.92909
  Prefactor  = 9.63324e-06
  Prefactor  = 6.20401
  Prefactor  = 6.40007
  norm       = 1.82047
  Prefactor  = 11.5706
  Prefactor  = 4.90719e-08
  norm       = 0
  Normalizat = 0.887347
  Prefactor  = 0.855071
 **********
 **   18 **HESSE 
 **********

 FCN=   6891.034     FROM HESSE     STATUS=OK           514 CALLS     2768 TOTAL
                     EDM=   .81E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1663        2.5080        .56935E-03   -1.5672    
   2  norm          2.7451        1.2810        .61424E-03   -1.5675    
   3  Prefactor     36.581        46.404        .16509E-03   -1.5587    
   4  Prefactor     .16653E-09    3.6464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .66613E-09    4.1099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7099        1.4139        .80377E-03   -1.5682    
   7  Prefactor     9.9095        10.699        .31773E-03   -1.5645    
   8  Prefactor     .22204E-09    3.1422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .77305E-05    73.460        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        .37709        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.5281        107.47        .46297E-03   -1.5665    
  12  Prefactor     .24505E-04    2.8309        .48994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .62061E-07    10.527        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23981E-07    6.8103        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.0453        1.4419        .44751E-03   -1.5663    
  16  Prefactor     .49682E-07    8.0622        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.9291        6.5384        .33670E-03   -1.5648    
  18  Prefactor     .96332E-05    45.595        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.2040        10.699        .40296E-03   -1.5658    
  20  Prefactor     6.4001        7.1437        .39617E-03   -1.5657    
  21  norm          1.8205        .75244        .77364E-03   -1.5681    
  22  Prefactor     11.571        18.306        .29409E-03   -1.5640    
  23  Prefactor     .49072E-07    8.0478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        1.6554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .88735        .14094        .44741E-01   -.96906    
  26  Prefactor     .85507        .15075        .44429E-01   -.97729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.14085e-07
Minuit parameter uncertainties:
  1  2.50799
  2  1.281
  3  46.4046
  4  4.92257e-05
  5  0.000105316
  6  1.41391
  7  10.6988
  8  5.14e-05
  9  0.0476612
  10  1.56218e-06
  11  44.1211
  12  0.0166577
  13  0.00161623
  14  0.000808539
  15  1.44188
  16  0.00126575
  17  6.53837
  18  0.0419157
  19  10.699
  20  7.14373
  21  0.752443
  22  18.3065
  23  0.00125687
  24  6.32944e-06
  25  0.141001
  26  0.150822
Done.

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

Extracting fit parameters...

4FGL J0314.3-5103
   Spectrum: PowerLaw
286    Prefactor:  8.929e+00  6.538e+00  0.000e+00  1.000e+06 ( 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:  8.551e-01  1.508e-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.873e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.11
Ra Dec: 48.593 -51.055
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 3.14e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 1.96e-05 +/- 1.43e-05

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) = 6890.83455916
delta logL = 0.199473511388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6890.81387437
delta logL = 0.220158304037

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4507       1.0000          .0000       .10000E+07
     2 'Index     '    2.3894       1.0000          .0000       10.000    
     3 'Normalizat'    .86928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86459       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=   6890.814     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      270 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4511        7.0141        .12635E-04    .23962E-02
   2  Index         2.3895        .58514        .51665E-02    .60003E-04
   3  Normalizat    .86930        .16198        .22122E-03    .10777E-02
   4  Prefactor     .86460        .17460        .24181E-03    .10235E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.45108
  Index      = 2.38952
  Normalizat = 0.869296
  Prefactor  = 0.864599
 **********
 **   18 **HESSE 
 **********

 FCN=   6890.814     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4511        6.2648        .50539E-06   -1.5657    
   2  Index         2.3895        .52239        .20666E-03   -.54931    
   3  Normalizat    .86930        .16173        .44244E-04   -.97548    
   4  Prefactor     .86460        .17451        .48362E-04   -.97389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.8716e-10
Minuit parameter uncertainties:
  1  6.26479
  2  0.523708
  3  0.16182
  4  0.17462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/67420': 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) = 6890.81387427
delta logL = 0.220158405711

Extracting fit parameters...

4FGL J0314.3-5103
   Spectrum: PowerLaw
286    Prefactor:  6.451e+00  6.265e+00  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.390e+00  5.237e-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:  8.646e-01  1.746e-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.693e-01  1.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.53
Ra Dec: 48.593 -51.055
Photon Index (Free Index): 2.39 +/- 0.52
Photon Flux (Free Index): 4.64e-08 +/- 3.45e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.08e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/67420/cmap_HighResolution_693187201_693446401_4FGL_J0314.3-5103_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.14e-08', energy_flux2='1.54e-05', photon_flux_error='2.30e-08', dlogl='2.20e-01', energy_flux='1.96e-05', photon_flux2='4.64e-08', job_status='DONE', time_completed='2022-12-23 00:21:17.570587', photon_index_error2='0.52', photon_index2='2.39', ts='4.11', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.08e-05', EG='0.89', time_epoch_completed='1671783677.57', return_code='0', job_id='67420', GAL2='0.86', EG2='0.87', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='3.45e-08', ts2='4.53', photon_index='2.04' WHERE bin_id='1751' AND source_name='4FGL J0314.3-5103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:21:17 PST 2022

', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='3.45e-08', ts2='4.53', photon_index='2.04' WHERE bin_id='1751' AND source_name='4FGL J0314.3-5103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:17:04 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0247>
Subject: Job 67492: <4FGL_J0314.3-5103_daily_bin1751> in cluster <slac> Done

Job <4FGL_J0314.3-5103_daily_bin1751> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Dec 23 00:05:15 2022
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:05:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:05:16 2022
Terminated at Fri Dec 23 00:17:04 2022
Results reported at Fri Dec 23 00:17:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0314.3-5103_daily_bin1751 48.5929 -51.055 693187201 693446401 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 :                                   574.99 sec.
    Max Memory :                                 628 MB
    Average Memory :                             289.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2929 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            709 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 67420: <4FGL_J0314.3-5103_daily_bin1751> in cluster <slac> Done

Job <4FGL_J0314.3-5103_daily_bin1751> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Dec 23 00:05:11 2022
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:05:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:05:12 2022
Terminated at Fri Dec 23 00:21:18 2022
Results reported at Fri Dec 23 00:21:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0314.3-5103_daily_bin1751 48.5929 -51.055 693187201 693446401 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 :                                   738.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            967 sec.

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

