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


Performing analysis on: 4FGL_J0016.2-0016_daily_bin1672
RA = 4.061, Dec = -0.2806
tmin = 672710401, tmax = 672969601
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='153706', job_status='RUN', time_executed='2022-04-30 00:10:16.664429', time_epoch_executed='1651302616.66' WHERE source_name='4FGL J0016.2-0016' and cadence='daily' and bin_id='1672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153706

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153706/ft1_4FGL_J0016.2-0016_daily_bin1672.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153706/ft2_4FGL_J0016.2-0016_daily_bin1672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153706/ft1_4FGL_J0016.2-0016_daily_bin1672.fits outfile=/scratch/kocevski/153706/ft1_filteredMKT_4FGL_J0016.2-0016_daily_bin1672.fits ra=4.061 dec=-0.2806 rad=12.0 tmin=672710401.0 tmax=672969601.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 3.12
user 2.86
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/153706/ft2_4FGL_J0016.2-0016_daily_bin1672.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153706/ft2_4FGL_J0016.2-0016_daily_bin1672.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/153706/ft1_filteredMKT_4FGL_J0016.2-0016_daily_bin1672.fits evtable="EVENTS" outfile="/scratch/kocevski/153706/ft1_filtered_4FGL_J0016.2-0016_daily_bin1672.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.31
sys 0.20

Number of photons that the gtmktime cut: 630

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153706/ft1_filtered_4FGL_J0016.2-0016_daily_bin1672.fits" evtable="EVENTS" scfile=/scratch/kocevski/153706/ft2_4FGL_J0016.2-0016_daily_bin1672.fits sctable="SC_DATA" outfile=/scratch/kocevski/153706/ltcube_672710401_672969601_4FGL_J0016.2-0016_daily_bin1672.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/153706/ft2_4FGL_J0016.2-0016_daily_bin1672.fits
.....................!
real 14.38
user 13.95
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153706/ft1_filtered_4FGL_J0016.2-0016_daily_bin1672.fits evtable="EVENTS" scfile=/scratch/kocevski/153706/ft2_4FGL_J0016.2-0016_daily_bin1672.fits sctable="SC_DATA" expcube=/scratch/kocevski/153706/ltcube_672710401_672969601_4FGL_J0016.2-0016_daily_bin1672.fits outfile=/scratch/kocevski/153706/expmap_672710401_672969601_4FGL_J0016.2-0016_daily_bin1672.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/153706/ltcube_672710401_672969601_4FGL_J0016.2-0016_daily_bin1672.fits
.....................!
real 192.52
user 185.45
sys 6.33

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

Setting source of interest to:
4FGL J0016.2-0016 @ 4.061 -0.2806

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/153706/ft1_filtered_4FGL_J0016.2-0016_daily_bin1672.fits scfile=/scratch/kocevski/153706/ft2_4FGL_J0016.2-0016_daily_bin1672.fits outfile=/scratch/kocevski/153706/cmap_672710401_672969601_4FGL_J0016.2-0016_daily_bin1672.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.061 yref=-0.2806 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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153706/ft1_filtered_4FGL_J0016.2-0016_daily_bin1672.fits scfile=/scratch/kocevski/153706/ft2_4FGL_J0016.2-0016_daily_bin1672.fits outfile=/scratch/kocevski/153706/cmap_HighResolution_672710401_672969601_4FGL_J0016.2-0016_daily_bin1672.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.061 yref=-0.2806 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/153706/ft1_filtered_4FGL_J0016.2-0016_daily_bin1672.fits evtable="EVENTS" scfile=/scratch/kocevski/153706/ft2_4FGL_J0016.2-0016_daily_bin1672.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/153706/Model_4FGL_J0016.2-0016_daily_bin1672.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/153706/ft1_filtered_4FGL_J0016.2-0016_daily_bin1672.fits.....................!
real 73.83
user 71.89
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/153706/ft1_filtered_4FGL_J0016.2-0016_daily_bin1672.fits', '/scratch/kocevski/153706/ft2_4FGL_J0016.2-0016_daily_bin1672.fits', expMap='/scratch/kocevski/153706/expmap_672710401_672969601_4FGL_J0016.2-0016_daily_bin1672.fits', expCube='/scratch/kocevski/153706/ltcube_672710401_672969601_4FGL_J0016.2-0016_daily_bin1672.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/153706/Model_4FGL_J0016.2-0016_daily_bin1672.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0016.2-0016'

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  1.412e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
73         alpha:  2.614e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
74          beta:  1.848e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
75            Eb:  3.723e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/153706/ft1_filtered_4FGL_J0016.2-0016_daily_bin1672.fits
Spacecraft file(s): /scratch/kocevski/153706/ft2_4FGL_J0016.2-0016_daily_bin1672.fits
Exposure map: /scratch/kocevski/153706/expmap_672710401_672969601_4FGL_J0016.2-0016_daily_bin1672.fits
Exposure cube: /scratch/kocevski/153706/ltcube_672710401_672969601_4FGL_J0016.2-0016_daily_bin1672.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/153706/Model_4FGL_J0016.2-0016_daily_bin1672.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) = 6949.63906203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.519       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2299       1.0000         .10000E-03   10000.    
     5 'norm      '    .19553E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8888       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6061       1.0000         .10000E-03   10000.    
    10 'norm      '    8.2745       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.636       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.8418       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13648E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.838       1.0000         .10000E-03   10000.    
    17 'norm      '    .21143E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .91034E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.245       1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.231       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7842       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .70378       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6949.552     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2393 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9166        .10721E-07** at limit **
   2  Prefactor     .10000E-03    13.939        .46461E-07** at limit **
   3  Prefactor     33.527        18.357       -.46891E-06   -.73731E-03
   4  Prefactor     5.2279        6.5505        .18999E-06   -.19362E-03
   5  norm          .10061E-03    1.9070        .75119E-06** at limit **
   6  Prefactor     .10000E-03    5.7508        .10311E-07** at limit **
   7  norm          .10000E-03    3.0879       -.94105E-07** at limit **
   8  norm          3.8878        5.5119       -.16612E-07   -.10631E-03
   9  Prefactor     6.6056        11.120        .24275E-05   -.10688E-03
  10  norm          8.2738        12.677        .42756E-06   -.78393E-04
  11  Prefactor     22.633        7.5740       -.85418E-07   -.17108E-03
  12  Prefactor     .10000E-03    1.5794       -.10403E-06** at limit **
  13  norm          6.8405        6.4819        .12719E-05   -.98010E-04
  14  Prefactor     .10000E-03    18.032       -.22820E-06** at limit **
  15  Prefactor     .10001E-03    274.10       -.27483E-05** at limit **
  16  Prefactor     10.851        9.4903       -.67142E-06   -.21591E-03
  17  norm          .10002E-03    34.480       -.52996E-05** at limit **
  18  Prefactor     .10017E-03    2.1836        .61760E-06** at limit **
  19  Prefactor     .10000E-03    9.8953        .25479E-08** at limit **
  20  Prefactor     21.242        18.932        .38901E-06    .10532E-03
  21  Prefactor     40.236        21.956       -.37233E-06   -.38206E-03
  22  Prefactor     .10000E-03    6.4690        .58089E-07** at limit **
  23  Normalizat    1.7846        .23459        .60940E-06   -.33091E-03
  24  Prefactor     .70367        .16267       -.68260E-06   -.17854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.5272
  Prefactor  = 5.22791
  norm       = 0.000100605
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.88782
  Prefactor  = 6.60559
  norm       = 8.27378
  Prefactor  = 22.6327
  Prefactor  = 0.0001
  norm       = 6.84048
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 10.8506
  norm       = 0.000100016
  Prefactor  = 0.000100174
  Prefactor  = 0.0001
  Prefactor  = 21.2419
  Prefactor  = 40.2361
  Prefactor  = 0.0001
  Normalizat = 1.7846
  Prefactor  = 0.703666
 **********
 **   18 **HESSE 
 **********

 FCN=   6949.552     FROM HESSE     STATUS=OK           397 CALLS     2790 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9220        .13903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.527        18.222        .69214E-04   -1.4549    
   4  Prefactor     5.2279        6.5285        .17577E-03   -1.5251    
   5  norm          .10061E-03    32.712        .19550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.7661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.1349        .28466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8878        5.4959        .20461E-03   -1.5314    
   9  Prefactor     6.6056        11.338        .78065E-03   -1.5194    
  10  norm          8.2738        12.610        .13937E-03   -1.5133    
  11  Prefactor     22.633        7.6043        .84190E-04   -1.4756    
  12  Prefactor     .10000E-03    1.5893        .10236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.8405        6.5999        .76695E-03   -1.5185    
  14  Prefactor     .10000E-03    18.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    275.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.851        9.1035        .12170E-03   -1.5049    
  17  norm          .10002E-03    36.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10017E-03    48.376        .22329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.9024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.242        18.971        .86899E-04   -1.4786    
  21  Prefactor     40.236        22.190        .63196E-04   -1.4438    
  22  Prefactor     .10000E-03    6.5744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.7846        .26890        .27827E-03   -.70066    
  24  Prefactor     .70367        .18620        .30736E-03   -1.0338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17464e-08
Minuit parameter uncertainties:
  1  3.61115e-07
  2  1.01788e-05
  3  18.2247
  4  6.52939
  5  0.00890357
  6  1.46745e-07
  7  1.0261e-05
  8  5.49661
  9  11.3415
  10  12.6141
  11  7.60466
  12  8.13902e-06
  13  6.6006
  14  5.55702e-05
  15  0.00245651
  16  9.10468
  17  0.00154281
  18  0.00581138
  19  1.35635e-06
  20  18.9762
  21  22.1944
  22  7.80061e-07
  23  0.269127
  24  0.186365
Done.

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

Extracting fit parameters...

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  1.006e-04  8.904e-03  1.000e-04  1.000e+04 ( 1.000e-11)
73         alpha:  2.614e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
74          beta:  1.848e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
75            Eb:  3.723e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  7.037e-01  1.864e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.785e+00  2.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 4.061 -0.281
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153706/likelihoodResults_672710401_672969601_4FGL_J0016.2-0016_daily_bin1672.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) = 6949.55233461
delta logL = -0.000146086631503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6948.42902182
delta logL = 1.12316669579

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86078       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76799       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6948.429     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      299 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86129        19.378        .12132E-01    .99814E-03
   2  alpha         5.0000        4.7184        .46271    ** at limit **
   3  Normalizat    1.6463        .12973        .64817E-01    .35326E-05
   4  Prefactor     .76759        .81364E-01    .66819E-01    .19989E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.861294
  alpha      = 5
  Normalizat = 1.64626
  Prefactor  = 0.767585
 **********
 **   18 **HESSE 
 **********

 FCN=   6948.429     FROM HESSE     STATUS=OK            37 CALLS      336 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86129        .85445        .55048E-03   -1.5522    
   2  alpha         5.0000        3.6854        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.6463        .26766        .28668E-03   -.73747    
   4  Prefactor     .76759        .19135        .29562E-03   -1.0093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32661e-09
Minuit parameter uncertainties:
  1  0.854465
  2  8.98536e-05
  3  0.267892
  4  0.191517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153706': 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) = 6948.42901176
delta logL = 1.12317676148

Extracting fit parameters...

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  8.613e-01  8.545e-01  1.000e-04  1.000e+04 ( 1.000e-11)
73         alpha:  5.000e+00  8.985e-05  0.000e+00  5.000e+00 ( 1.000e+00)
74          beta:  1.848e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
75            Eb:  3.723e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  7.676e-01  1.915e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.646e+00  2.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.61
Ra Dec: 4.061 -0.281
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.25e-07 +/- 1.23e-07
Energy Flux (Free Index): 1.70e-05 +/- 1.68e-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/153706/cmap_HighResolution_672710401_672969601_4FGL_J0016.2-0016_daily_bin1672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-05', comment='SUCCESS', energy_flux2='1.70e-05', dlogl='1.12e+00', photon_flux2='1.25e-07', job_status='DONE', time_completed='2022-04-30 00:21:54.941243', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.68e-05', EG='1.78', time_epoch_completed='1651303314.94', return_code='0', job_id='153706', GAL2='0.77', EG2='1.65', return_code2='0', photon_flux_error2='1.23e-07', ts2='2.61', photon_index='2.61' WHERE bin_id='1672' AND source_name='4FGL J0016.2-0016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr 30 00:21:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 153696: <4FGL_J0016.2-0016_daily_bin1672> in cluster <slac> Done

Job <4FGL_J0016.2-0016_daily_bin1672> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Apr 30 00:05:35 2022
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr 30 00:06:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr 30 00:06:07 2022
Terminated at Sat Apr 30 00:21:17 2022
Results reported at Sat Apr 30 00:21:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0016.2-0016_daily_bin1672 4.061 -0.2806 672710401 672969601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0016.2-0016 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   711.52 sec.
    Max Memory :                                 618 MB
    Average Memory :                             253.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            942 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 153706: <4FGL_J0016.2-0016_daily_bin1672> in cluster <slac> Done

Job <4FGL_J0016.2-0016_daily_bin1672> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Apr 30 00:05:35 2022
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr 30 00:06:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr 30 00:06:17 2022
Terminated at Sat Apr 30 00:21:55 2022
Results reported at Sat Apr 30 00:21:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0016.2-0016_daily_bin1672 4.061 -0.2806 672710401 672969601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0016.2-0016 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   699.57 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            980 sec.

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

