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


Performing analysis on: 4FGL_J0014.3-0500_daily_bin1590
RA = 3.5864, Dec = -5.012
tmin = 651456001, tmax = 651715201
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='220017', job_status='RUN', time_executed='2021-08-27 00:03:03.612445', time_epoch_executed='1630047783.61' WHERE source_name='4FGL J0014.3-0500' and cadence='daily' and bin_id='1590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/220017

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/220017/ft1_4FGL_J0014.3-0500_daily_bin1590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/220017/ft2_4FGL_J0014.3-0500_daily_bin1590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/220017/ft1_4FGL_J0014.3-0500_daily_bin1590.fits outfile=/scratch/kocevski/220017/ft1_filteredMKT_4FGL_J0014.3-0500_daily_bin1590.fits ra=3.5864 dec=-5.012 rad=12.0 tmin=651456001.0 tmax=651715201.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 6.40
user 3.30
sys 2.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/220017/ft2_4FGL_J0014.3-0500_daily_bin1590.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/220017/ft1_filteredMKT_4FGL_J0014.3-0500_daily_bin1590.fits evtable="EVENTS" outfile="/scratch/kocevski/220017/ft1_filtered_4FGL_J0014.3-0500_daily_bin1590.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 2.48
user 0.31
sys 2.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/220017/ft1_filtered_4FGL_J0014.3-0500_daily_bin1590.fits" evtable="EVENTS" scfile=/scratch/kocevski/220017/ft2_4FGL_J0014.3-0500_daily_bin1590.fits sctable="SC_DATA" outfile=/scratch/kocevski/220017/ltcube_651456001_651715201_4FGL_J0014.3-0500_daily_bin1590.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/220017/ft2_4FGL_J0014.3-0500_daily_bin1590.fits
.....................!
real 14.31
user 11.65
sys 2.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/220017/ft1_filtered_4FGL_J0014.3-0500_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/220017/ft2_4FGL_J0014.3-0500_daily_bin1590.fits sctable="SC_DATA" expcube=/scratch/kocevski/220017/ltcube_651456001_651715201_4FGL_J0014.3-0500_daily_bin1590.fits outfile=/scratch/kocevski/220017/expmap_651456001_651715201_4FGL_J0014.3-0500_daily_bin1590.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/220017/ltcube_651456001_651715201_4FGL_J0014.3-0500_daily_bin1590.fits
.....................!
real 192.46
user 185.10
sys 6.95

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/220017/ft1_filtered_4FGL_J0014.3-0500_daily_bin1590.fits scfile=/scratch/kocevski/220017/ft2_4FGL_J0014.3-0500_daily_bin1590.fits outfile=/scratch/kocevski/220017/cmap_651456001_651715201_4FGL_J0014.3-0500_daily_bin1590.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.61
user 0.35
sys 2.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/220017/ft1_filtered_4FGL_J0014.3-0500_daily_bin1590.fits scfile=/scratch/kocevski/220017/ft2_4FGL_J0014.3-0500_daily_bin1590.fits outfile=/scratch/kocevski/220017/cmap_HighResolution_651456001_651715201_4FGL_J0014.3-0500_daily_bin1590.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 2.56
user 0.37
sys 2.04

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/220017/ft1_filtered_4FGL_J0014.3-0500_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/220017/ft2_4FGL_J0014.3-0500_daily_bin1590.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/220017/Model_4FGL_J0014.3-0500_daily_bin1590.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/220017/ft1_filtered_4FGL_J0014.3-0500_daily_bin1590.fits.....................!
real 60.71
user 56.11
sys 3.90

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/220017/ft1_filtered_4FGL_J0014.3-0500_daily_bin1590.fits', '/scratch/kocevski/220017/ft2_4FGL_J0014.3-0500_daily_bin1590.fits', expMap='/scratch/kocevski/220017/expmap_651456001_651715201_4FGL_J0014.3-0500_daily_bin1590.fits', expCube='/scratch/kocevski/220017/ltcube_651456001_651715201_4FGL_J0014.3-0500_daily_bin1590.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/220017/Model_4FGL_J0014.3-0500_daily_bin1590.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  1.000e-04  1.000e+04 ( 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/220017/ft1_filtered_4FGL_J0014.3-0500_daily_bin1590.fits
Spacecraft file(s): /scratch/kocevski/220017/ft2_4FGL_J0014.3-0500_daily_bin1590.fits
Exposure map: /scratch/kocevski/220017/expmap_651456001_651715201_4FGL_J0014.3-0500_daily_bin1590.fits
Exposure cube: /scratch/kocevski/220017/ltcube_651456001_651715201_4FGL_J0014.3-0500_daily_bin1590.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/220017/Model_4FGL_J0014.3-0500_daily_bin1590.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) = 5731.18054551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.670       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.590       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.906       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4416       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.3302       1.0000         .10000E-03   10000.    
     8 'norm      '    8.5847       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1395       1.0000         .10000E-03   10000.    
    10 'norm      '    16.546       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7270       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .45423E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    2.2907       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7936       1.0000         .10000E-03   10000.    
    16 'Prefactor '    53.122       1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.007       1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.243       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    70.456       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2799       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.246       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4039       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .54303       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5731.134     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3703 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.670        13.294         .0000        .62064E-03
   2  Prefactor     .10000E-03    24.863         .0000    ** at limit **
   3  Prefactor     19.591        26.460         .0000        .10799E-03
   4  Prefactor     13.906        9.7425         .0000        .89331E-03
   5  norm          1.4416        4.2953         .0000        .12498E-02
   6  Prefactor     .10000E-03    6.2176         .0000    ** at limit **
   7  norm          4.3302        5.1271         .0000        .16751E-02
   8  norm          8.5846        5.6521         .0000        .16944E-03
   9  Prefactor     4.1398        15.490         .0000        .20371E-03
  10  norm          16.546        12.641         .0000        .24234E-03
  11  Prefactor     6.7270        3.8745         .0000        .15267E-02
  12  Prefactor     .10000E-03    1.9295         .0000    ** at limit **
  13  norm          .45127E-01    2.1502         .0000        .37882E-03
  14  norm          2.2906        4.9918         .0000       -.10012E-02
  15  Prefactor     7.7939        41.656         .0000       -.25228E-03
  16  Prefactor     53.121        39.805         .0000       -.61425E-03
  17  Prefactor     56.007        515.61         .0000       -.76813E-04
  18  Prefactor     25.244        16.516         .0000       -.86547E-03
  19  norm          .10004E-03    16.896         .0000    ** at limit **
  20  Prefactor     70.456        85.829         .0000        .18979E-03
  21  Prefactor     1.2797        5.2246         .0000        .23927E-01
  22  Prefactor     .10003E-03    15.001         .0000    ** at limit **
  23  Prefactor     18.246        20.232         .0000        .34728E-03
  24  Prefactor     .10000E-03    5.5504         .0000    ** at limit **
  25  Normalizat    1.4039        .22336         .0000       -.60941E-04
  26  Prefactor     .54303        .17424         .0000       -.18089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.67
  Prefactor  = 0.0001
  Prefactor  = 19.5908
  Prefactor  = 13.9058
  norm       = 1.44156
  Prefactor  = 0.0001
  norm       = 4.3302
  norm       = 8.58464
  Prefactor  = 4.1398
  norm       = 16.5459
  Prefactor  = 6.72699
  Prefactor  = 0.0001
  norm       = 0.0451266
  norm       = 2.29062
  Prefactor  = 7.79391
  Prefactor  = 53.1209
  Prefactor  = 56.0072
  Prefactor  = 25.2435
  norm       = 0.000100036
  Prefactor  = 70.4563
  Prefactor  = 1.27967
  Prefactor  = 0.000100025
  Prefactor  = 18.2463
  Prefactor  = 0.0001
  Normalizat = 1.40389
  Prefactor  = 0.54303
 **********
 **   18 **HESSE 
 **********

 FCN=   5731.134     FROM HESSE     STATUS=OK           458 CALLS     4161 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.670        13.318        .50589E-03   -1.4916    
   2  Prefactor     .10000E-03    24.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.591        25.414        .90491E-04   -1.4822    
   4  Prefactor     13.906        9.7212        .10741E-03   -1.4962    
   5  norm          1.4416        4.0541        .20118E-03   -1.5468    
   6  Prefactor     .10000E-03    6.2251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.3302        5.1036        .14890E-03   -1.5292    
   8  norm          8.5846        5.6223        .13484E-03   -1.5122    
   9  Prefactor     4.1398        15.415        .19812E-03   -1.5301    
  10  norm          16.546        12.597        .98463E-04   -1.4894    
  11  Prefactor     6.7270        3.8759        .10868E-03   -1.5189    
  12  Prefactor     .10000E-03    11.429        .19348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .45127E-01    43.128        .20432E-02   -1.5666    
  14  norm          2.2906        4.9137        .22912E-03   -1.5405    
  15  Prefactor     7.7939        44.724        .14364E-03   -1.5150    
  16  Prefactor     53.121        38.675        .55030E-04   -1.4249    
  17  Prefactor     56.007        504.71        .53601E-04   -1.4210    
  18  Prefactor     25.244        16.368        .79730E-04   -1.4703    
  19  norm          .10004E-03    16.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     70.456        85.845        .47824E-04   -1.4027    
  21  Prefactor     1.2797        5.0101        .14210E-02   -1.5482    
  22  Prefactor     .10003E-03    15.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.246        20.279        .93763E-04   -1.4853    
  24  Prefactor     .10000E-03    5.6071        .17405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4039        .26395        .24957E-03   -.80516    
  26  Prefactor     .54303        .20114        .31159E-03   -1.1004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16262e-08
Minuit parameter uncertainties:
  1  13.3203
  2  8.4412e-05
  3  25.428
  4  9.72229
  5  4.05487
  6  1.51099e-06
  7  5.10409
  8  5.62261
  9  15.43
  10  12.5988
  11  3.87602
  12  0.000147688
  13  2.78906
  14  4.91455
  15  37.3826
  16  38.6935
  17  340.146
  18  16.3708
  19  0.00155835
  20  85.9968
  21  5.01178
  22  0.0012346
  23  20.2867
  24  2.93255e-05
  25  0.264206
  26  0.201405
Done.

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

Extracting fit parameters...

4FGL J0014.3-0500
   Spectrum: PowerLaw
62     Prefactor:  1.391e+01  9.722e+00  1.000e-04  1.000e+04 ( 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:  5.430e-01  2.014e-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:  1.404e+00  2.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.11
Ra Dec: 3.586 -5.012
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 8.92e-08 +/- 6.23e-08
Energy Flux (Fixed Index): 3.05e-05 +/- 2.13e-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) = 5731.05648528
delta logL = 0.0779635861418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5731.04567469
delta logL = 0.0887741823544

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5731.046     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      277 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.292        12.152        .12490E-03    .45118E-03
   2  Index         2.6213        .69874        .40186E-02    .16532E-03
   3  Normalizat    1.3754        .25516        .25155E-03    .22295E-03
   4  Prefactor     .55777        .20053        .30768E-03    .23618E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2915
  Index      = 2.62126
  Normalizat = 1.37544
  Prefactor  = 0.557772
 **********
 **   18 **HESSE 
 **********

 FCN=   5731.046     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.292        10.457        .49961E-05   -1.5066    
   2  Index         2.6213        .60071        .16075E-03   -.49581    
   3  Normalizat    1.3754        .25280        .50310E-04   -.81342    
   4  Prefactor     .55777        .19954        .12307E-04   -1.0939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86756e-10
Minuit parameter uncertainties:
  1  10.4584
  2  0.602593
  3  0.253031
  4  0.199795
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/220017': 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) = 5731.04567445
delta logL = 0.0887744231595

Extracting fit parameters...

4FGL J0014.3-0500
   Spectrum: PowerLaw
62     Prefactor:  1.029e+01  1.046e+01  1.000e-04  1.000e+04 ( 1.000e-13)
63         Index:  2.621e+00  6.026e-01  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:  5.578e-01  1.998e-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:  1.375e+00  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.36
Ra Dec: 3.586 -5.012
Photon Index (Free Index): 2.62 +/- 0.60
Photon Flux (Free Index): 1.15e-07 +/- 8.49e-08
Energy Flux (Free Index): 2.95e-05 +/- 1.63e-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/220017/cmap_HighResolution_651456001_651715201_4FGL_J0014.3-0500_daily_bin1590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.92e-08', energy_flux2='2.95e-05', photon_flux_error='6.23e-08', dlogl='8.88e-02', energy_flux='3.05e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-08-27 00:14:03.981073', photon_index_error2='0.60', photon_index2='2.62', ts='6.11', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='1.40', time_epoch_completed='1630048443.98', return_code='0', job_id='220017', GAL2='0.56', EG2='1.38', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='8.49e-08', ts2='6.36', photon_index='2.37' WHERE bin_id='1590' AND source_name='4FGL J0014.3-0500' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 00:14:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 220017: <4FGL_J0014.3-0500_daily_bin1590> in cluster <slac> Done

Job <4FGL_J0014.3-0500_daily_bin1590> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 27 00:00:21 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 00:00:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 00:00:23 2021
Terminated at Fri Aug 27 00:14:05 2021
Results reported at Fri Aug 27 00:14:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0014.3-0500_daily_bin1590 3.5864 -5.012 651456001 651715201 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 :                                   692.31 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             271.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            824 sec.

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

