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


Performing analysis on: 4FGL_J0017.5-0514_daily_bin1605
RA = 4.3949, Dec = -5.2347
tmin = 655344001, tmax = 655603201
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='121855', job_status='RUN', time_executed='2021-12-07 11:11:57.649610', time_epoch_executed='1638904317.65' WHERE source_name='4FGL J0017.5-0514' and cadence='daily' and bin_id='1605'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/121855

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/121855/ft1_4FGL_J0017.5-0514_daily_bin1605.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/121855/ft2_4FGL_J0017.5-0514_daily_bin1605.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/121855/ft1_4FGL_J0017.5-0514_daily_bin1605.fits outfile=/scratch/kocevski/121855/ft1_filteredMKT_4FGL_J0017.5-0514_daily_bin1605.fits ra=4.3949 dec=-5.2347 rad=12.0 tmin=655344001.0 tmax=655603201.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 2.88
user 2.67
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/121855/ft2_4FGL_J0017.5-0514_daily_bin1605.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/121855/ft2_4FGL_J0017.5-0514_daily_bin1605.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/121855/ft1_filteredMKT_4FGL_J0017.5-0514_daily_bin1605.fits evtable="EVENTS" outfile="/scratch/kocevski/121855/ft1_filtered_4FGL_J0017.5-0514_daily_bin1605.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.53
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/121855/ft1_filtered_4FGL_J0017.5-0514_daily_bin1605.fits" evtable="EVENTS" scfile=/scratch/kocevski/121855/ft2_4FGL_J0017.5-0514_daily_bin1605.fits sctable="SC_DATA" outfile=/scratch/kocevski/121855/ltcube_655344001_655603201_4FGL_J0017.5-0514_daily_bin1605.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/121855/ft2_4FGL_J0017.5-0514_daily_bin1605.fits
.....................!
real 15.34
user 14.96
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/121855/ft1_filtered_4FGL_J0017.5-0514_daily_bin1605.fits evtable="EVENTS" scfile=/scratch/kocevski/121855/ft2_4FGL_J0017.5-0514_daily_bin1605.fits sctable="SC_DATA" expcube=/scratch/kocevski/121855/ltcube_655344001_655603201_4FGL_J0017.5-0514_daily_bin1605.fits outfile=/scratch/kocevski/121855/expmap_655344001_655603201_4FGL_J0017.5-0514_daily_bin1605.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/121855/ltcube_655344001_655603201_4FGL_J0017.5-0514_daily_bin1605.fits
.....................!
real 193.61
user 188.07
sys 5.07

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

Setting source of interest to:
4FGL J0017.5-0514 @ 4.3949 -5.2347

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/121855/ft1_filtered_4FGL_J0017.5-0514_daily_bin1605.fits scfile=/scratch/kocevski/121855/ft2_4FGL_J0017.5-0514_daily_bin1605.fits outfile=/scratch/kocevski/121855/cmap_655344001_655603201_4FGL_J0017.5-0514_daily_bin1605.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=4.3949 yref=-5.2347 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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/121855/ft1_filtered_4FGL_J0017.5-0514_daily_bin1605.fits scfile=/scratch/kocevski/121855/ft2_4FGL_J0017.5-0514_daily_bin1605.fits outfile=/scratch/kocevski/121855/cmap_HighResolution_655344001_655603201_4FGL_J0017.5-0514_daily_bin1605.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=4.3949 yref=-5.2347 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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/121855/ft1_filtered_4FGL_J0017.5-0514_daily_bin1605.fits evtable="EVENTS" scfile=/scratch/kocevski/121855/ft2_4FGL_J0017.5-0514_daily_bin1605.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/121855/Model_4FGL_J0017.5-0514_daily_bin1605.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/121855/ft1_filtered_4FGL_J0017.5-0514_daily_bin1605.fits.....................!
real 19.90
user 18.34
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/121855/ft1_filtered_4FGL_J0017.5-0514_daily_bin1605.fits', '/scratch/kocevski/121855/ft2_4FGL_J0017.5-0514_daily_bin1605.fits', expMap='/scratch/kocevski/121855/expmap_655344001_655603201_4FGL_J0017.5-0514_daily_bin1605.fits', expCube='/scratch/kocevski/121855/ltcube_655344001_655603201_4FGL_J0017.5-0514_daily_bin1605.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/121855/Model_4FGL_J0017.5-0514_daily_bin1605.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0017.5-0514'

4FGL J0017.5-0514
   Spectrum: LogParabola
72          norm:  2.149e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
73         alpha:  2.594e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
74          beta:  1.051e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
75            Eb:  8.308e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/121855/ft1_filtered_4FGL_J0017.5-0514_daily_bin1605.fits
Spacecraft file(s): /scratch/kocevski/121855/ft2_4FGL_J0017.5-0514_daily_bin1605.fits
Exposure map: /scratch/kocevski/121855/expmap_655344001_655603201_4FGL_J0017.5-0514_daily_bin1605.fits
Exposure cube: /scratch/kocevski/121855/ltcube_655344001_655603201_4FGL_J0017.5-0514_daily_bin1605.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/121855/Model_4FGL_J0017.5-0514_daily_bin1605.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) = 805.751968901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10640E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    85.901       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10777E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    20.278       1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.619       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4020       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12638E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3090       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .77728E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    15.557       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.198       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.4196       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .44802       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0261       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   805.7233     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     3221 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    45.540        .36056E-04** at limit **
   2  Prefactor     86.050        13.417       -.37123E-05    .10868E-02
   3  Prefactor     .10131E-03    188.32       -.99439E-05** at limit **
   4  Prefactor     .10000E-03    11.384        .62021E-06** at limit **
   5  norm          20.270        12.341       -.11113E-04   -.12031E-01
   6  Prefactor     31.612        4.9869        .57887E-05    .58336E-05
   7  norm          .10000E-03    4.9705       -.10162E-05** at limit **
   8  norm          .15482E-01    8307.9        .40767E-03    .56344E-03
   9  Prefactor     .10195E-03    295.52        .32514E-04** at limit **
  10  Prefactor     .10000E-03    27.304       -.45631E-06** at limit **
  11  norm          .10002E-03    46.793        .98921E-04** at limit **
  12  Prefactor     3.3446        29.962       -.71972E-04   -.69284E-03
  13  Prefactor     .10000E-03    4.1186       -.10438E-05** at limit **
  14  norm          .10000E-03    6.1189        .54250E-06** at limit **
  15  norm          .10000E-03    6.2235        .20969E-06** at limit **
  16  Prefactor     .10000E-03    19.785        .58626E-06** at limit **
  17  Prefactor     .10015E-03    47.131        .21318E-04** at limit **
  18  Prefactor     .10238E-03    31.946        .29897E-04** at limit **
  19  Prefactor     .10003E-03    307.28        .23355E-03** at limit **
  20  Prefactor     .10003E-03    59.373        .51459E-04** at limit **
  21  norm          16.033        47.073       -.61034E-04    .76818E-02
  22  Prefactor     19.590        35.365       -.26177E-04    .22757E-02
  23  Prefactor     .10000E-03    16.263        .62647E-05** at limit **
  24  Prefactor     .10213E-03    40.810       -.45598E-04** at limit **
  25  Prefactor     9.4325        5.3702        .51273E-05    .48052E-02
  26  Normalizat    .44794        .44492        .55047E-04    .48991E-05
  27  Prefactor     1.0260        .40670       -.76003E-05    .68527E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100025
  Prefactor  = 86.0498
  Prefactor  = 0.000101309
  Prefactor  = 0.0001
  norm       = 20.27
  Prefactor  = 31.6117
  norm       = 0.0001
  norm       = 0.0154817
  Prefactor  = 0.000101949
  Prefactor  = 0.0001
  norm       = 0.000100021
  Prefactor  = 3.3446
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100149
  Prefactor  = 0.000102382
  Prefactor  = 0.000100034
  Prefactor  = 0.000100029
  norm       = 16.0325
  Prefactor  = 19.5895
  Prefactor  = 0.0001
  Prefactor  = 0.000102131
  Prefactor  = 9.43247
  Normalizat = 0.447944
  Prefactor  = 1.02596
 **********
 **   18 **HESSE 
 **********

 FCN=   805.7233     FROM HESSE     STATUS=OK           526 CALLS     3747 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    45.472        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     86.050        178.07        .10836E-02   -1.3850    
   3  Prefactor     .10131E-03    190.16        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.381        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          20.270        27.259        .22236E-02   -1.4807    
   6  Prefactor     31.612        53.130        .17814E-02   -1.4583    
   7  norm          .10000E-03    4.9689        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .15482E-01    8752.8        .91593E-02   -1.5683    
   9  Prefactor     .10195E-03    303.82        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.304        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10002E-03    61.898        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3446        162.77        .55637E-02   -1.5342    
  13  Prefactor     .10000E-03    4.1141        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.0770        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.2226        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.783        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10015E-03    47.468        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10238E-03    55.839        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    591.43        .10460E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    64.317        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          16.033        223.70        .25387E-02   -1.4907    
  22  Prefactor     19.590        363.26        .22853E-02   -1.4822    
  23  Prefactor     .10000E-03    16.230        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10213E-03    53.585        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.4325        25.966        .32644E-02   -1.5094    
  26  Normalizat    .44794        .40863        .72162E-01   -1.1489    
  27  Prefactor     1.0260        .37404        .41576E-01   -.91869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19333e-06
Minuit parameter uncertainties:
  1  0.00214393
  2  179.189
  3  0.03165
  4  8.92685e-07
  5  27.2756
  6  53.2099
  7  5.24086e-07
  8  26.0223
  9  0.0489143
  10  4.72609e-06
  11  0.0022941
  12  46.799
  13  6.49179e-07
  14  8.14896e-07
  15  2.57399e-07
  16  3.16786e-06
  17  0.00533063
  18  0.0230879
  19  0.00900389
  20  0.00274325
  21  120.323
  22  169.922
  23  4.90561e-05
  24  0.02139
  25  25.9976
  26  0.411398
  27  0.374992
Done.

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

Extracting fit parameters...

4FGL J0017.5-0514
   Spectrum: LogParabola
72          norm:  1.000e-04  5.241e-07  1.000e-04  1.000e+04 ( 1.000e-12)
73         alpha:  2.594e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
74          beta:  1.051e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
75            Eb:  8.308e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.026e+00  3.750e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  4.479e-01  4.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 4.395 -5.235
Photon Flux Upper Limit: 3.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.00e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/121855/likelihoodResults_655344001_655603201_4FGL_J0017.5-0514_daily_bin1605.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 805.724012122
delta logL = -0.000732156233312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 805.723279911
delta logL = 5.50022605239e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5818       1.0000          .0000       5.0000    
     3 'Normalizat'    .44791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0260       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+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=   805.7233     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      233 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    615.37        .62380E-02** at limit **
   2  alpha         1.7653        3.7757        .16472        .80373E-07
   3  Normalizat    .44795        .11521        .31956E-03    .76741E-04
   4  Prefactor     1.0260        .10432        .19450E-03    .12480E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.76528
  Normalizat = 0.447945
  Prefactor  = 1.02596
 **********
 **   18 **HESSE 
 **********

 FCN=   805.7233     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.6881        .71681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7653        2.9248        .65887E-02   -.29829    
   3  Normalizat    .44795        .44446        .12782E-04   -1.1489    
   4  Prefactor     1.0260        .40435        .38901E-04   -.91869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67881e-10
Minuit parameter uncertainties:
  1  8.65336e-05
  2  359.521
  3  0.448033
  4  0.405559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/121855': 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) = 805.723277388
delta logL = 2.5773725838e-06

Extracting fit parameters...

4FGL J0017.5-0514
   Spectrum: LogParabola
72          norm:  1.000e-04  8.653e-05  1.000e-04  1.000e+04 ( 1.000e-12)
73         alpha:  1.765e+00  3.595e+02  0.000e+00  5.000e+00 ( 1.000e+00)
74          beta:  1.051e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
75            Eb:  8.308e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.026e+00  4.056e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  4.479e-01  4.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 4.395 -5.235

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/121855/cmap_HighResolution_655344001_655603201_4FGL_J0017.5-0514_daily_bin1605.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.00e-05', job_status='DONE', photon_flux_upper_limit='3.24e-07', time_completed='2021-12-07 11:18:09.124447', job_id='121855', GAL2='1.03', fit_tolerance='1e-08', EG2='0.45', EG='0.45', time_epoch_completed='1638904689.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.58e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1605' AND source_name='4FGL J0017.5-0514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 11:18:09 PST 2021



------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 121691: <4FGL_J0017.5-0514_daily_bin1605> in cluster <slac> Done

Job <4FGL_J0017.5-0514_daily_bin1605> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Dec  7 11:01:30 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 11:10:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 11:10:04 2021
Terminated at Tue Dec  7 11:17:40 2021
Results reported at Tue Dec  7 11:17:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0017.5-0514_daily_bin1605 4.3949 -5.2347 655344001 655603201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0017.5-0514 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   379.37 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             341.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   456 sec.
    Turnaround time :                            970 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 121855: <4FGL_J0017.5-0514_daily_bin1605> in cluster <slac> Done

Job <4FGL_J0017.5-0514_daily_bin1605> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec  7 11:01:37 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 11:11:44 2021
</u/ki/kocevski> was used as the home directory.
</nfs/farm/g/glast/g/LCRepository/Repository/Scripts> was used as the working directory.
Started at Tue Dec  7 11:11:44 2021
Terminated at Tue Dec  7 11:18:09 2021
Results reported at Tue Dec  7 11:18:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0017.5-0514_daily_bin1605 4.3949 -5.2347 655344001 655603201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0017.5-0514 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   371.13 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             402.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   385 sec.
    Turnaround time :                            992 sec.

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

