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


Performing analysis on: 4FGL_J0016.2-0016_daily_bin1742
RA = 4.061, Dec = -0.2806
tmin = 690854401, tmax = 691113601
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='217180', job_status='RUN', time_executed='2022-11-26 00:06:37.614124', time_epoch_executed='1669449997.61' WHERE source_name='4FGL J0016.2-0016' and cadence='daily' and bin_id='1742'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217180

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217180/ft1_4FGL_J0016.2-0016_daily_bin1742.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217180/ft2_4FGL_J0016.2-0016_daily_bin1742.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217180/ft1_4FGL_J0016.2-0016_daily_bin1742.fits outfile=/scratch/kocevski/217180/ft1_filteredMKT_4FGL_J0016.2-0016_daily_bin1742.fits ra=4.061 dec=-0.2806 rad=12.0 tmin=690854401.0 tmax=691113601.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.96
user 2.69
sys 0.22

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

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

Number of photons that the gtmktime cut: 507

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217180/ft1_filtered_4FGL_J0016.2-0016_daily_bin1742.fits" evtable="EVENTS" scfile=/scratch/kocevski/217180/ft2_4FGL_J0016.2-0016_daily_bin1742.fits sctable="SC_DATA" outfile=/scratch/kocevski/217180/ltcube_690854401_691113601_4FGL_J0016.2-0016_daily_bin1742.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/217180/ft2_4FGL_J0016.2-0016_daily_bin1742.fits
.....................!
real 16.78
user 16.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217180/ft1_filtered_4FGL_J0016.2-0016_daily_bin1742.fits evtable="EVENTS" scfile=/scratch/kocevski/217180/ft2_4FGL_J0016.2-0016_daily_bin1742.fits sctable="SC_DATA" expcube=/scratch/kocevski/217180/ltcube_690854401_691113601_4FGL_J0016.2-0016_daily_bin1742.fits outfile=/scratch/kocevski/217180/expmap_690854401_691113601_4FGL_J0016.2-0016_daily_bin1742.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/217180/ltcube_690854401_691113601_4FGL_J0016.2-0016_daily_bin1742.fits
.....................!
real 192.29
user 186.40
sys 5.44

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/217180/ft1_filtered_4FGL_J0016.2-0016_daily_bin1742.fits scfile=/scratch/kocevski/217180/ft2_4FGL_J0016.2-0016_daily_bin1742.fits outfile=/scratch/kocevski/217180/cmap_690854401_691113601_4FGL_J0016.2-0016_daily_bin1742.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217180/ft1_filtered_4FGL_J0016.2-0016_daily_bin1742.fits scfile=/scratch/kocevski/217180/ft2_4FGL_J0016.2-0016_daily_bin1742.fits outfile=/scratch/kocevski/217180/cmap_HighResolution_690854401_691113601_4FGL_J0016.2-0016_daily_bin1742.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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217180/ft1_filtered_4FGL_J0016.2-0016_daily_bin1742.fits evtable="EVENTS" scfile=/scratch/kocevski/217180/ft2_4FGL_J0016.2-0016_daily_bin1742.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217180/Model_4FGL_J0016.2-0016_daily_bin1742.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/217180/ft1_filtered_4FGL_J0016.2-0016_daily_bin1742.fits.....................!
real 59.17
user 57.18
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/217180/ft1_filtered_4FGL_J0016.2-0016_daily_bin1742.fits', '/scratch/kocevski/217180/ft2_4FGL_J0016.2-0016_daily_bin1742.fits', expMap='/scratch/kocevski/217180/expmap_690854401_691113601_4FGL_J0016.2-0016_daily_bin1742.fits', expCube='/scratch/kocevski/217180/ltcube_690854401_691113601_4FGL_J0016.2-0016_daily_bin1742.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/217180/Model_4FGL_J0016.2-0016_daily_bin1742.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  0.000e+00  1.000e+06 ( 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 -5.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/217180/ft1_filtered_4FGL_J0016.2-0016_daily_bin1742.fits
Spacecraft file(s): /scratch/kocevski/217180/ft2_4FGL_J0016.2-0016_daily_bin1742.fits
Exposure map: /scratch/kocevski/217180/expmap_690854401_691113601_4FGL_J0016.2-0016_daily_bin1742.fits
Exposure cube: /scratch/kocevski/217180/ltcube_690854401_691113601_4FGL_J0016.2-0016_daily_bin1742.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/217180/Model_4FGL_J0016.2-0016_daily_bin1742.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) = 5724.19328829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16296E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .22672E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .11095E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .70643E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    9.9755       1.0000          .0000       .10000E+07
     6 'norm      '    .63838E-08   1.0000          .0000       .10000E+07
     7 'norm      '    .23715E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .21552E-02   1.0000          .0000       .10000E+07
     9 'norm      '    12.260       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.1206       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.4740       1.0000          .0000       .10000E+07
    12 'norm      '    .80920E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .10903       1.0000          .0000       .10000E+07
    14 'norm      '    39.377       1.0000          .0000       .10000E+07
    15 'Prefactor '    .42690E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    25.790       1.0000          .0000       .10000E+07
    17 'Prefactor '    23.284       1.0000          .0000       .10000E+07
    18 'Prefactor '    .70344E-06   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0191       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81795       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5724.155     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     1189 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-07    2.9733       -.95495E-06** at limit **
   2  Prefactor     .88546E-06    4.3996        .36990E-05** at limit **
   3  Prefactor      .0000        .94975       -.79812E-07** at limit **
   4  norm          .69256E-06    16.531        .18840E-05** at limit **
   5  Prefactor     9.9944        3.3741       -.12058E-07    .18795E-01
   6  norm          .16653E-09    1.0238       -.72559E-08** at limit **
   7  norm          .55511E-10    .91255       -.73421E-07** at limit **
   8  Prefactor     .88818E-09    5.4067       -.59915E-06** at limit **
   9  norm          12.232        7.1928       -.18429E-05   -.12999    
  10  Prefactor     2.1215        3.8063       -.96839E-07   -.39549E-02
  11  Prefactor     6.4284        4.2990        .22033E-07    .57679E-02
  12  norm          .49960E-09    2.2745        .20930E-06** at limit **
  13  Prefactor     .29246E-04    129.89       -.19849E-04** at limit **
  14  norm          39.553        6.8838        .53921E-06   -.77020E-02
  15  Prefactor     .13878E-08    2.6675        .57378E-06** at limit **
  16  Prefactor     25.896        5.1716        .99719E-06   -.44518E-01
  17  Prefactor     22.995        8.5749        .11008E-05   -.13477E-01
  18  Prefactor     .11491E-07    3.1419        .78645E-06** at limit **
  19  Normalizat    1.0192        .21268        .62117E-05   -.24727E-03
  20  Prefactor     .81827        .16486       -.44964E-05   -.33351E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-08
  Prefactor  = 8.85458e-07
  Prefactor  = 0
  norm       = 6.92557e-07
  Prefactor  = 9.99437
  norm       = 1.66533e-10
  norm       = 5.55112e-11
  Prefactor  = 8.88178e-10
  norm       = 12.2316
  Prefactor  = 2.12148
  Prefactor  = 6.42844
  norm       = 4.996e-10
  Prefactor  = 2.92458e-05
  norm       = 39.5534
  Prefactor  = 1.38778e-09
  Prefactor  = 25.8958
  Prefactor  = 22.9948
  Prefactor  = 1.14908e-08
  Normalizat = 1.01918
  Prefactor  = 0.818266
 **********
 **   18 **HESSE 
 **********

 FCN=   5724.155     FROM HESSE     STATUS=OK           345 CALLS     1534 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-07    3.1073        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .88546E-06    9.3363        .13345E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.8337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .69256E-06    1.6855        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.9944        8.9154        .31702E-03   -1.5645    
   6  norm          .16653E-09    1.0272        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .55511E-10    1.8051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .88818E-09    5.4289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.232        11.648        .28584E-03   -1.5638    
  10  Prefactor     2.1215        3.8489        .70793E-03   -1.5679    
  11  Prefactor     6.4284        4.5760        .39421E-03   -1.5657    
  12  norm          .49960E-09    2.2840        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .29246E-04    41.437        .16867E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          39.553        22.149        .15938E-03   -1.5582    
  15  Prefactor     .13878E-08    2.6602        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.896        31.728        .19695E-03   -1.5606    
  17  Prefactor     22.995        20.411        .20729E-03   -1.5612    
  18  Prefactor     .11491E-07    3.4423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0192        .19515        .43484E-01   -.92390    
  20  Prefactor     .81827        .14512        .43950E-01   -.99058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75912e-07
Minuit parameter uncertainties:
  1  0.000371622
  2  0.00575049
  3  1.41637e-05
  4  0.00216086
  5  8.9154
  6  2.43759e-05
  7  1.94203e-05
  8  0.000139155
  9  11.6485
  10  3.84893
  11  4.57605
  12  6.71292e-05
  13  0.0696243
  14  22.1486
  15  0.000121774
  16  31.7279
  17  20.4114
  18  0.000397773
  19  0.195287
  20  0.145188
Done.

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

Extracting fit parameters...

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  6.926e-07  2.161e-03  0.000e+00  1.000e+06 ( 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 -5.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:  8.183e-01  1.452e-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.019e+00  1.953e-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: 9.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217180/likelihoodResults_690854401_691113601_4FGL_J0016.2-0016_daily_bin1742.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) = 5724.15702173
delta logL = -0.00230006180755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5724.15465949
delta logL = 6.2174121922e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15867E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    3.1394       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81878       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5724.155     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      347 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20517E-01    77.977        .24174E-02** at limit **
   2  alpha         3.1431        3.0589        .17199        .60662E-06
   3  Normalizat    1.0186        .31043E-01    .26029E-03    .22860E-03
   4  Prefactor     .81847        .23376E-01    .22451E-03    .24747E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0205171
  alpha      = 3.1431
  Normalizat = 1.0186
  Prefactor  = 0.81847
 **********
 **   18 **HESSE 
 **********

 FCN=   5724.155     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      382 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20517E-01    66.529        .29350E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.1431        3.6787        .68795E-02    .26016    
   3  Normalizat    1.0186        .34014E-01    .52059E-04   -.92410    
   4  Prefactor     .81847        .25338E-01    .44902E-04   -.99051    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.32552e-09
Minuit parameter uncertainties:
  1  2.33667
  2  97.4689
  3  0.0340146
  4  0.0253388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217180': 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) = 5724.15465234
delta logL = 6.93203182891e-05

Extracting fit parameters...

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  2.052e-02  2.337e+00  0.000e+00  1.000e+06 ( 1.000e-11)
73         alpha:  3.143e+00  9.747e+01  0.000e+00  5.000e+00 ( 1.000e+00)
74          beta:  1.848e-01  0.000e+00 -5.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:  8.185e-01  2.534e-02  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.019e+00  3.401e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 4.061 -0.281

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/217180/cmap_HighResolution_690854401_691113601_4FGL_J0016.2-0016_daily_bin1742.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-05', job_status='DONE', photon_flux_upper_limit='9.25e-08', time_completed='2022-11-26 00:15:16.245504', job_id='217180', GAL2='0.82', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1669450516.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='6.93e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1742' AND source_name='4FGL J0016.2-0016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Nov 26 00:15:16 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 217180: <4FGL_J0016.2-0016_daily_bin1742> in cluster <slac> Done

Job <4FGL_J0016.2-0016_daily_bin1742> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Nov 26 00:04:38 2022
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov 26 00:06:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov 26 00:06:15 2022
Terminated at Sat Nov 26 00:15:16 2022
Results reported at Sat Nov 26 00:15:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0016.2-0016_daily_bin1742 4.061 -0.2806 690854401 691113601 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 :                                   516.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             328.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   542 sec.
    Turnaround time :                            638 sec.

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

