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


Performing analysis on: 4FGL_J0016.2-0016_daily_bin1745
RA = 4.061, Dec = -0.2806
tmin = 691632001, tmax = 691891201
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='636939', job_status='RUN', time_executed='2022-12-05 00:08:19.953844', time_epoch_executed='1670227699.95' WHERE source_name='4FGL J0016.2-0016' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636939

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636939/ft1_4FGL_J0016.2-0016_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636939/ft2_4FGL_J0016.2-0016_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636939/ft1_4FGL_J0016.2-0016_daily_bin1745.fits outfile=/scratch/kocevski/636939/ft1_filteredMKT_4FGL_J0016.2-0016_daily_bin1745.fits ra=4.061 dec=-0.2806 rad=12.0 tmin=691632001.0 tmax=691891201.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.47
user 2.16
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/636939/ft2_4FGL_J0016.2-0016_daily_bin1745.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/636939/ft1_filteredMKT_4FGL_J0016.2-0016_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/636939/ft1_filtered_4FGL_J0016.2-0016_daily_bin1745.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.94
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 537

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636939/ft1_filtered_4FGL_J0016.2-0016_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/636939/ft2_4FGL_J0016.2-0016_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/636939/ltcube_691632001_691891201_4FGL_J0016.2-0016_daily_bin1745.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/636939/ft2_4FGL_J0016.2-0016_daily_bin1745.fits
.....................!
real 18.26
user 17.66
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636939/ft1_filtered_4FGL_J0016.2-0016_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/636939/ft2_4FGL_J0016.2-0016_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/636939/ltcube_691632001_691891201_4FGL_J0016.2-0016_daily_bin1745.fits outfile=/scratch/kocevski/636939/expmap_691632001_691891201_4FGL_J0016.2-0016_daily_bin1745.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/636939/ltcube_691632001_691891201_4FGL_J0016.2-0016_daily_bin1745.fits
.....................!
real 192.21
user 185.62
sys 5.16

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/636939/ft1_filtered_4FGL_J0016.2-0016_daily_bin1745.fits scfile=/scratch/kocevski/636939/ft2_4FGL_J0016.2-0016_daily_bin1745.fits outfile=/scratch/kocevski/636939/cmap_691632001_691891201_4FGL_J0016.2-0016_daily_bin1745.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/636939/ft1_filtered_4FGL_J0016.2-0016_daily_bin1745.fits scfile=/scratch/kocevski/636939/ft2_4FGL_J0016.2-0016_daily_bin1745.fits outfile=/scratch/kocevski/636939/cmap_HighResolution_691632001_691891201_4FGL_J0016.2-0016_daily_bin1745.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.60
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/636939/ft1_filtered_4FGL_J0016.2-0016_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/636939/ft2_4FGL_J0016.2-0016_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/636939/Model_4FGL_J0016.2-0016_daily_bin1745.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/636939/ft1_filtered_4FGL_J0016.2-0016_daily_bin1745.fits.....................!
real 59.76
user 58.22
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/636939/ft1_filtered_4FGL_J0016.2-0016_daily_bin1745.fits', '/scratch/kocevski/636939/ft2_4FGL_J0016.2-0016_daily_bin1745.fits', expMap='/scratch/kocevski/636939/expmap_691632001_691891201_4FGL_J0016.2-0016_daily_bin1745.fits', expCube='/scratch/kocevski/636939/ltcube_691632001_691891201_4FGL_J0016.2-0016_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/636939/Model_4FGL_J0016.2-0016_daily_bin1745.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/636939/ft1_filtered_4FGL_J0016.2-0016_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/636939/ft2_4FGL_J0016.2-0016_daily_bin1745.fits
Exposure map: /scratch/kocevski/636939/expmap_691632001_691891201_4FGL_J0016.2-0016_daily_bin1745.fits
Exposure cube: /scratch/kocevski/636939/ltcube_691632001_691891201_4FGL_J0016.2-0016_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/636939/Model_4FGL_J0016.2-0016_daily_bin1745.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) = 5786.16308477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14100E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    33.751       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.615       1.0000          .0000       .10000E+07
     4 'norm      '    4.2623       1.0000          .0000       .10000E+07
     5 'Prefactor '    .18397E-05   1.0000          .0000       .10000E+07
     6 'norm      '    13.578       1.0000          .0000       .10000E+07
     7 'norm      '    .82434E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .10102E-02   1.0000          .0000       .10000E+07
     9 'norm      '    20.490       1.0000          .0000       .10000E+07
    10 'Prefactor '    10.017       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.6600       1.0000          .0000       .10000E+07
    12 'norm      '    .50202E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .28688E-02   1.0000          .0000       .10000E+07
    14 'norm      '    7.9114       1.0000          .0000       .10000E+07
    15 'Prefactor '    .13642E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    5.2411       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.6375       1.0000          .0000       .10000E+07
    18 'Prefactor '    .17985E-04   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0892       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92540       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=   5785.479     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1236 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-08    4.3727        .61692E-07** at limit **
   2  Prefactor     33.703        2.2918       -.66420E-08    .24575E-01
   3  Prefactor     10.882        6.7232       -.28693E-07   -.22417E-01
   4  norm          4.2799        4.0000       -.17716E-07   -.15987E-02
   5  Prefactor     .97866E-07    3.3939        .61100E-07** at limit **
   6  norm          13.459        5.2788        .18293E-08    .11083E-01
   7  norm          .44409E-09    1.5755        .14455E-06** at limit **
   8  Prefactor     .25868E-07    22.914        .81668E-08** at limit **
   9  norm          20.583        2.4759        .37397E-08    .49108E-01
  10  Prefactor     10.034        5.0433       -.89524E-08    .13699E-03
  11  Prefactor     1.6626        3.2714        .20600E-06    .40617E-02
  12  norm          .14100E-07    9.8212        .11530E-07** at limit **
  13  Prefactor     .35416E-07    56.876        .23561E-06** at limit **
  14  norm          7.7128        5.9614       -.22979E-07   -.48624E-01
  15  Prefactor     .30753E-07    4.0843        .46424E-07** at limit **
  16  Prefactor     5.7310        9.1967       -.72182E-07    .51900E-01
  17  Prefactor     3.6134        9.9060       -.79572E-07    .47562E-02
  18  Prefactor     .60452E-07    5.8343        .84716E-07** at limit **
  19  Normalizat    1.0879        .25247        .54503E-06    .96530E-04
  20  Prefactor     .92568        .18293        .61195E-06    .11776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-09
  Prefactor  = 33.703
  Prefactor  = 10.8816
  norm       = 4.27993
  Prefactor  = 9.78662e-08
  norm       = 13.459
  norm       = 4.44089e-10
  Prefactor  = 2.58682e-08
  norm       = 20.5833
  Prefactor  = 10.0338
  Prefactor  = 1.66257
  norm       = 1.40998e-08
  Prefactor  = 3.54161e-08
  norm       = 7.71275
  Prefactor  = 3.07532e-08
  Prefactor  = 5.73096
  Prefactor  = 3.61337
  Prefactor  = 6.04516e-08
  Normalizat = 1.08786
  Prefactor  = 0.925676
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.479     FROM HESSE     STATUS=OK           335 CALLS     1571 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-08    4.5017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.703        21.027        .17215E-03   -1.5592    
   3  Prefactor     10.882        13.374        .30727E-03   -1.5642    
   4  norm          4.2799        4.3661        .48779E-03   -1.5667    
   5  Prefactor     .97866E-07    5.6380        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.459        7.4400        .27157E-03   -1.5635    
   7  norm          .44409E-09    1.5823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .25868E-07    23.028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          20.583        12.732        .22099E-03   -1.5617    
  10  Prefactor     10.034        5.0247        .31635E-03   -1.5645    
  11  Prefactor     1.6626        3.3052        .81856E-03   -1.5682    
  12  norm          .14100E-07    9.8281        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .35416E-07    56.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.7128        12.305        .35624E-03   -1.5652    
  15  Prefactor     .30753E-07    6.4477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.7310        33.149        .43883E-03   -1.5660    
  17  Prefactor     3.6134        19.918        .52945E-03   -1.5670    
  18  Prefactor     .60452E-07    6.6000        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0879        .21992        .64946E-01   -.90143    
  20  Prefactor     .92568        .15846        .45328E-01   -.95250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82518e-07
Minuit parameter uncertainties:
  1  0.000316394
  2  21.0267
  3  13.3744
  4  4.36614
  5  0.00148562
  6  7.43996
  7  5.26747e-05
  8  0.00154322
  9  12.7323
  10  5.02473
  11  3.30523
  12  0.000744356
  13  0.00283845
  14  12.3046
  15  0.000890941
  16  27.5664
  17  16.9674
  18  0.00126332
  19  0.220106
  20  0.158541
Done.

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

Extracting fit parameters...

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  4.280e+00  4.366e+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

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  9.257e-01  1.585e-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.088e+00  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 4.061 -0.281
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 7.08e-08 +/- 7.22e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.73e-05

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

Saving results to:
/scratch/kocevski/636939/likelihoodResults_691632001_691891201_4FGL_J0016.2-0016_daily_bin1745.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5784.69989827
delta logL = 0.779021859669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5784.69308971
delta logL = 0.7858304212

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4390       1.0000          .0000       .10000E+07
     2 'alpha     '    4.0341       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97127       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=   5784.693     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      242 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4377        31.159        .65487E-03    .20528E-01
   2  alpha         4.0335        3.2093        .49917        .79122E-04
   3  Normalizat    1.0078        .82723E-01    .67041E-01   -.53834E-04
   4  Prefactor     .97109        .65441E-01    .45907E-01   -.32644E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.43773
  alpha      = 4.03354
  Normalizat = 1.0078
  Prefactor  = 0.971089
 **********
 **   18 **HESSE 
 **********

 FCN=   5784.693     FROM HESSE     STATUS=OK            31 CALLS      273 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4377        4.0274        .69891E-05   -1.5677    
   2  alpha         4.0335        1.4268        .24140E-01    .66038    
   3  Normalizat    1.0078        .24559        .29654E-03   -.92769    
   4  Prefactor     .97109        .18542        .23414E-03   -.93700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00018e-10
Minuit parameter uncertainties:
  1  4.02742
  2  1.59453
  3  0.245867
  4  0.185545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636939': 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) = 5784.69308523
delta logL = 0.785834906016

Extracting fit parameters...

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  2.438e+00  4.027e+00  0.000e+00  1.000e+06 ( 1.000e-11)
73         alpha:  4.034e+00  1.595e+00  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:  9.711e-01  1.855e-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.008e+00  2.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.32
Ra Dec: 4.061 -0.281
Photon Index (Free Index): 4.03 +/- 1.59
Photon Flux (Free Index): 1.33e-07 +/- 8.58e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.42e-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/636939/cmap_HighResolution_691632001_691891201_4FGL_J0016.2-0016_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-05', comment='SUCCESS', photon_flux='7.08e-08', energy_flux2='2.05e-05', photon_flux_error='7.22e-08', dlogl='7.86e-01', energy_flux='1.70e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2022-12-05 00:17:04.260607', photon_index_error2='1.59', photon_index2='4.03', ts='1.44', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.99e-07', energy_flux_error2='1.42e-05', EG='1.09', time_epoch_completed='1670228224.26', return_code='0', job_id='636939', GAL2='0.97', EG2='1.01', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='8.58e-08', ts2='3.32', photon_index='2.61' WHERE bin_id='1745' AND source_name='4FGL J0016.2-0016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:17:04 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0056>
Subject: Job 636939: <4FGL_J0016.2-0016_daily_bin1745> in cluster <slac> Done

Job <4FGL_J0016.2-0016_daily_bin1745> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Dec  5 00:04:42 2022
Job was executed on host(s) <bullet0056>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:04:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:04:42 2022
Terminated at Mon Dec  5 00:17:05 2022
Results reported at Mon Dec  5 00:17:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0016.2-0016_daily_bin1745 4.061 -0.2806 691632001 691891201 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 :                                   519.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            743 sec.

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

