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


Performing analysis on: 4FGL_J0014.3-0500_daily_bin1747
RA = 3.5864, Dec = -5.012
tmin = 692150401, tmax = 692409601
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='787682', job_status='RUN', time_executed='2022-12-11 00:06:00.755717', time_epoch_executed='1670745960.76' WHERE source_name='4FGL J0014.3-0500' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/787682

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/787682/ft1_4FGL_J0014.3-0500_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/787682/ft2_4FGL_J0014.3-0500_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/787682/ft1_4FGL_J0014.3-0500_daily_bin1747.fits outfile=/scratch/kocevski/787682/ft1_filteredMKT_4FGL_J0014.3-0500_daily_bin1747.fits ra=3.5864 dec=-5.012 rad=12.0 tmin=692150401.0 tmax=692409601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.10
user 3.79
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/787682/ft2_4FGL_J0014.3-0500_daily_bin1747.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/787682/ft2_4FGL_J0014.3-0500_daily_bin1747.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/787682/ft1_filteredMKT_4FGL_J0014.3-0500_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/787682/ft1_filtered_4FGL_J0014.3-0500_daily_bin1747.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.71
user 0.35
sys 0.17

Number of photons that the gtmktime cut: 456

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/787682/ft1_filtered_4FGL_J0014.3-0500_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/787682/ft2_4FGL_J0014.3-0500_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/787682/ltcube_692150401_692409601_4FGL_J0014.3-0500_daily_bin1747.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/787682/ft2_4FGL_J0014.3-0500_daily_bin1747.fits
.....................!
real 17.56
user 16.96
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/787682/ft1_filtered_4FGL_J0014.3-0500_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/787682/ft2_4FGL_J0014.3-0500_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/787682/ltcube_692150401_692409601_4FGL_J0014.3-0500_daily_bin1747.fits outfile=/scratch/kocevski/787682/expmap_692150401_692409601_4FGL_J0014.3-0500_daily_bin1747.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/787682/ltcube_692150401_692409601_4FGL_J0014.3-0500_daily_bin1747.fits
.....................!
real 192.45
user 186.22
sys 4.57

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

Setting source of interest to:
4FGL J0014.3-0500 @ 3.5864 -5.012

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/787682/ft1_filtered_4FGL_J0014.3-0500_daily_bin1747.fits scfile=/scratch/kocevski/787682/ft2_4FGL_J0014.3-0500_daily_bin1747.fits outfile=/scratch/kocevski/787682/cmap_692150401_692409601_4FGL_J0014.3-0500_daily_bin1747.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=3.5864 yref=-5.012 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 2.06
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/787682/ft1_filtered_4FGL_J0014.3-0500_daily_bin1747.fits scfile=/scratch/kocevski/787682/ft2_4FGL_J0014.3-0500_daily_bin1747.fits outfile=/scratch/kocevski/787682/cmap_HighResolution_692150401_692409601_4FGL_J0014.3-0500_daily_bin1747.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=3.5864 yref=-5.012 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.78
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/787682/ft1_filtered_4FGL_J0014.3-0500_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/787682/ft2_4FGL_J0014.3-0500_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/787682/Model_4FGL_J0014.3-0500_daily_bin1747.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/787682/ft1_filtered_4FGL_J0014.3-0500_daily_bin1747.fits.....................!
real 59.75
user 50.00
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/787682/ft1_filtered_4FGL_J0014.3-0500_daily_bin1747.fits', '/scratch/kocevski/787682/ft2_4FGL_J0014.3-0500_daily_bin1747.fits', expMap='/scratch/kocevski/787682/expmap_692150401_692409601_4FGL_J0014.3-0500_daily_bin1747.fits', expCube='/scratch/kocevski/787682/ltcube_692150401_692409601_4FGL_J0014.3-0500_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/787682/Model_4FGL_J0014.3-0500_daily_bin1747.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0014.3-0500'

4FGL J0014.3-0500
   Spectrum: PowerLaw
62     Prefactor:  1.466e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
63         Index:  2.370e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
64         Scale:  1.747e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/787682/ft1_filtered_4FGL_J0014.3-0500_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/787682/ft2_4FGL_J0014.3-0500_daily_bin1747.fits
Exposure map: /scratch/kocevski/787682/expmap_692150401_692409601_4FGL_J0014.3-0500_daily_bin1747.fits
Exposure cube: /scratch/kocevski/787682/ltcube_692150401_692409601_4FGL_J0014.3-0500_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/787682/Model_4FGL_J0014.3-0500_daily_bin1747.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) = 5145.38110946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34018E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.8189       1.0000          .0000       .10000E+07
     3 'Prefactor '    .44249E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .58162E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .95362E-03   1.0000          .0000       .10000E+07
     6 'norm      '    17.863       1.0000          .0000       .10000E+07
     7 'norm      '    .40138E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .27436E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .88053E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.1492       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.2574       1.0000          .0000       .10000E+07
    12 'norm      '    .47405E-05   1.0000          .0000       .10000E+07
    13 'norm      '    6.1378       1.0000          .0000       .10000E+07
    14 'Prefactor '    .69946E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .44870E-01   1.0000          .0000       .10000E+07
    16 'norm      '    .56088E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.2959       1.0000          .0000       .10000E+07
    18 'Prefactor '    72.135       1.0000          .0000       .10000E+07
    19 'Prefactor '    7.1164       1.0000          .0000       .10000E+07
    20 'Normalizat'    .45598       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.5089       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5145.373     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1677 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77404E-05    180.16        .73767E-06** at limit **
   2  Prefactor     9.8296        1.8937        .51615E-07   -.42676E-01
   3  Prefactor      .0000        4.0779        .30108E-06** at limit **
   4  norm           .0000        2.9558       -.29038E-06** at limit **
   5  Prefactor     .22204E-09    5.2545       -.25995E-07** at limit **
   6  norm          17.948        5.6989        .20759E-07    .74667E-03
   7  norm           .0000        1.1891        .12001E-07** at limit **
   8  Prefactor     .11102E-09    7.0967       -.16124E-06** at limit **
   9  norm          .10547E-08    13.387       -.24610E-06** at limit **
  10  Prefactor     4.1142        4.7474       -.16685E-06   -.18759E-03
  11  Prefactor     6.3048        4.6906       -.16776E-06    .82892E-03
  12  norm           .0000        1.7901       -.16235E-06** at limit **
  13  norm          6.1571        5.8387       -.21002E-06   -.82806E-05
  14  Prefactor     .77716E-08    17.275       -.10459E-06** at limit **
  15  Prefactor     .36415E-07    38.153        .10565E-05** at limit **
  16  norm          .49516E-07    40.193       -.22331E-06** at limit **
  17  Prefactor     5.3022        4.3383       -.15989E-06    .11819E-02
  18  Prefactor     72.842        11.447       -.25005E-07   -.15030    
  19  Prefactor     7.1129        2.6204       -.29749E-07    .14832E-01
  20  Normalizat    .45567        .24871        .11143E-04    .51975E-04
  21  Prefactor     1.5088        .22810        .38594E-05    .13427E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.74042e-06
  Prefactor  = 9.82957
  Prefactor  = 0
  norm       = 0
  Prefactor  = 2.22045e-10
  norm       = 17.9477
  norm       = 0
  Prefactor  = 1.11022e-10
  norm       = 1.05471e-09
  Prefactor  = 4.11418
  Prefactor  = 6.30483
  norm       = 0
  norm       = 6.15714
  Prefactor  = 7.77156e-09
  Prefactor  = 3.64153e-08
  norm       = 4.95159e-08
  Prefactor  = 5.30217
  Prefactor  = 72.8424
  Prefactor  = 7.11293
  Normalizat = 0.45567
  Prefactor  = 1.50876
 **********
 **   18 **HESSE 
 **********

 FCN=   5145.373     FROM HESSE     STATUS=OK           365 CALLS     2042 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77404E-05    15.861        .66376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.8296        11.370        .31955E-03   -1.5645    
   3  Prefactor      .0000        4.1166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        2.8771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .22204E-09    5.2786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.948        5.7225        .23670E-03   -1.5623    
   7  norm           .0000        1.1939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11102E-09    7.1081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10547E-08    13.387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1142        4.7929        .49459E-03   -1.5667    
  11  Prefactor     6.3048        4.7213        .40106E-03   -1.5658    
  12  norm           .0000        1.7950        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.1571        5.8510        .40500E-03   -1.5658    
  14  Prefactor     .77716E-08    17.478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .36415E-07    38.600        .15751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .49516E-07    40.677        .15306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3022        4.3763        .43651E-03   -1.5662    
  18  Prefactor     72.842        56.178        .11775E-03   -1.5537    
  19  Prefactor     7.1129        9.3241        .37579E-03   -1.5655    
  20  Normalizat    .45567        .23490        .91312E-01   -1.1452    
  21  Prefactor     1.5088        .20783        .48733E-01   -.77295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0128e-06
Minuit parameter uncertainties:
  1  0.0221607
  2  11.3698
  3  7.38889e-06
  4  3.29178e-06
  5  6.78916e-05
  6  5.72248
  7  6.71139e-06
  8  5.14774e-05
  9  0.000238813
  10  4.79287
  11  4.72131
  12  6.20626e-07
  13  5.85099
  14  0.000738148
  15  0.00237066
  16  0.00283869
  17  4.37633
  18  56.1783
  19  9.3241
  20  0.235406
  21  0.207942
Done.

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

Extracting fit parameters...

4FGL J0014.3-0500
   Spectrum: PowerLaw
62     Prefactor:  0.000e+00  7.389e-06  0.000e+00  1.000e+06 ( 1.000e-13)
63         Index:  2.370e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
64         Scale:  1.747e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.509e+00  2.079e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  4.557e-01  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 3.586 -5.012
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/787682/likelihoodResults_692150401_692409601_4FGL_J0014.3-0500_daily_bin1747.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) = 5145.44418391
delta logL = -0.0711846869754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5145.37300343
delta logL = -4.21159438702e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30495E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.4448       1.0000          .0000       10.000    
     3 'Normalizat'    .45560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5090       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5145.373     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      239 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13323E-08    .24630E-01    .42118E-03** at limit **
   2  Index         2.3689        5.0289        .50000        .12506E-08
   3  Normalizat    .45567        .41166E-03    .91312E-01    .25315E-03
   4  Prefactor     1.5088        .38036E-03    .48733E-01    .67467E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33227e-09
  Index      = 2.36892
  Normalizat = 0.455667
  Prefactor  = 1.50876
 **********
 **   18 **HESSE 
 **********

 FCN=   5145.373     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      270 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13323E-08    .14721        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3689        6.1196        .50000       -.55414    
   3  Normalizat    .45567        .10026E-02    .40462E-03   -1.1452    
   4  Prefactor     1.5088        .92904E-03    .21542E-03   -.77295    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.11772e-12
Minuit parameter uncertainties:
  1  2.79165e-05
  2  1848.6
  3  0.00100258
  4  0.000929044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/787682': 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) = 5145.37299922
delta logL = -4.42923919763e-10

Extracting fit parameters...

4FGL J0014.3-0500
   Spectrum: PowerLaw
62     Prefactor:  1.332e-09  2.792e-05  0.000e+00  1.000e+06 ( 1.000e-13)
63         Index:  2.369e+00  1.849e+03  0.000e+00  1.000e+01 (-1.000e+00)
64         Scale:  1.747e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.509e+00  9.290e-04  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  4.557e-01  1.003e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 3.586 -5.012

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/787682/cmap_HighResolution_692150401_692409601_4FGL_J0014.3-0500_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.81e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2022-12-11 00:14:58.604631', job_id='787682', GAL2='1.51', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1670746498.6', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.51', dlogl='-4.43e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1747' AND source_name='4FGL J0014.3-0500' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 00:14:58 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 787682: <4FGL_J0014.3-0500_daily_bin1747> in cluster <slac> Done

Job <4FGL_J0014.3-0500_daily_bin1747> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Dec 11 00:05:01 2022
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 00:05:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 00:05:02 2022
Terminated at Sun Dec 11 00:14:59 2022
Results reported at Sun Dec 11 00:14:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0014.3-0500_daily_bin1747 3.5864 -5.012 692150401 692409601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0014.3-0500 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   511.56 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             311.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   596 sec.
    Turnaround time :                            598 sec.

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

