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


Performing analysis on: 4FGL_J0016.2-0016_daily_bin1755
RA = 4.061, Dec = -0.2806
tmin = 694224001, tmax = 694483201
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='807198', job_status='RUN', time_executed='2023-01-04 00:06:27.658541', time_epoch_executed='1672819587.66' WHERE source_name='4FGL J0016.2-0016' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/807198

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/807198/ft1_4FGL_J0016.2-0016_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/807198/ft2_4FGL_J0016.2-0016_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/807198/ft1_4FGL_J0016.2-0016_daily_bin1755.fits outfile=/scratch/kocevski/807198/ft1_filteredMKT_4FGL_J0016.2-0016_daily_bin1755.fits ra=4.061 dec=-0.2806 rad=12.0 tmin=694224001.0 tmax=694483201.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.09
user 2.84
sys 0.20

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

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

Number of photons that the gtmktime cut: 874

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/807198/ft1_filtered_4FGL_J0016.2-0016_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/807198/ft2_4FGL_J0016.2-0016_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/807198/ltcube_694224001_694483201_4FGL_J0016.2-0016_daily_bin1755.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/807198/ft2_4FGL_J0016.2-0016_daily_bin1755.fits
.....................!
real 16.65
user 16.16
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/807198/ft1_filtered_4FGL_J0016.2-0016_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/807198/ft2_4FGL_J0016.2-0016_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/807198/ltcube_694224001_694483201_4FGL_J0016.2-0016_daily_bin1755.fits outfile=/scratch/kocevski/807198/expmap_694224001_694483201_4FGL_J0016.2-0016_daily_bin1755.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/807198/ltcube_694224001_694483201_4FGL_J0016.2-0016_daily_bin1755.fits
.....................!
real 191.92
user 186.51
sys 4.67

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/807198/ft1_filtered_4FGL_J0016.2-0016_daily_bin1755.fits scfile=/scratch/kocevski/807198/ft2_4FGL_J0016.2-0016_daily_bin1755.fits outfile=/scratch/kocevski/807198/cmap_694224001_694483201_4FGL_J0016.2-0016_daily_bin1755.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/807198/ft1_filtered_4FGL_J0016.2-0016_daily_bin1755.fits scfile=/scratch/kocevski/807198/ft2_4FGL_J0016.2-0016_daily_bin1755.fits outfile=/scratch/kocevski/807198/cmap_HighResolution_694224001_694483201_4FGL_J0016.2-0016_daily_bin1755.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/807198/ft1_filtered_4FGL_J0016.2-0016_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/807198/ft2_4FGL_J0016.2-0016_daily_bin1755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/807198/Model_4FGL_J0016.2-0016_daily_bin1755.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/807198/ft1_filtered_4FGL_J0016.2-0016_daily_bin1755.fits.....................!
real 89.58
user 87.42
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3369       1.0000          .0000       .10000E+07
     2 'Prefactor '    14.898       1.0000          .0000       .10000E+07
     3 'Prefactor '    .34120E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .19327E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    14.765       1.0000          .0000       .10000E+07
     6 'norm      '    2.7262       1.0000          .0000       .10000E+07
     7 'norm      '    3.9796       1.0000          .0000       .10000E+07
     8 'Prefactor '    8.9861       1.0000          .0000       .10000E+07
     9 'norm      '    1.7884       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.7563       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.8839       1.0000          .0000       .10000E+07
    12 'norm      '    6.1832       1.0000          .0000       .10000E+07
    13 'Prefactor '    25.948       1.0000          .0000       .10000E+07
    14 'norm      '    17.532       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.4108       1.0000          .0000       .10000E+07
    16 'Prefactor '    8.6004       1.0000          .0000       .10000E+07
    17 'Prefactor '    .20092E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .65759       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2192       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .76563       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=   9485.872     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     1236 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3381        5.1046       -.14069E-05    .32907E-03
   2  Prefactor     14.955        14.235        .67262E-06   -.38188E-02
   3  Prefactor      .0000        6.2828        .17164E-05** at limit **
   4  norm          .33307E-09    2.2429        .90084E-06** at limit **
   5  Prefactor     14.641        9.7367       -.56375E-06   -.30231E-02
   6  norm          2.7309        2.2904        .25195E-06    .92703E-02
   7  norm          3.9793        2.8007       -.35022E-06    .91161E-02
   8  Prefactor     8.8779        6.9099        .60554E-07   -.11293E-02
   9  norm          1.7941        5.9874        .91690E-06   -.20667E-02
  10  Prefactor     3.7558        1.8386        .89360E-07    .10353E-02
  11  Prefactor     4.8974        2.7341       -.45551E-06   -.92564E-03
  12  norm          6.1664        4.1582       -.59030E-06    .79416E-03
  13  Prefactor     25.369        22.385        .16774E-05   -.93161E-02
  14  norm          17.431        3.8357        .24035E-06    .17631E-01
  15  Prefactor     3.4320        3.8330       -.68255E-06   -.59286E-02
  16  Prefactor     8.6023        2.1158        .18298E-06   -.56202E-01
  17  Prefactor     .72164E-09    58.822       -.19183E-05** at limit **
  18  Prefactor     .66460        8.0038        .55729E-05    .41990E-02
  19  Normalizat    1.2195        .18748       -.16788E-04   -.23686E-03
  20  Prefactor     .76569        .13917        .64669E-05    .70714E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33806
  Prefactor  = 14.9547
  Prefactor  = 0
  norm       = 3.33067e-10
  Prefactor  = 14.6407
  norm       = 2.73088
  norm       = 3.97932
  Prefactor  = 8.87792
  norm       = 1.79415
  Prefactor  = 3.75579
  Prefactor  = 4.89741
  norm       = 6.16642
  Prefactor  = 25.3689
  norm       = 17.4308
  Prefactor  = 3.43204
  Prefactor  = 8.60234
  Prefactor  = 7.21645e-10
  Prefactor  = 0.664595
  Normalizat = 1.21951
  Prefactor  = 0.76569
 **********
 **   18 **HESSE 
 **********

 FCN=   9485.872     FROM HESSE     STATUS=OK           343 CALLS     1579 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3381        5.1265        .55383E-03   -1.5671    
   2  Prefactor     14.955        14.296        .25923E-03   -1.5631    
   3  Prefactor      .0000        6.2207        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .33307E-09    2.2305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.641        9.7795        .26040E-03   -1.5631    
   6  norm          2.7309        2.3052        .61649E-03   -1.5675    
   7  norm          3.9793        2.8176        .50535E-03   -1.5668    
   8  Prefactor     8.8779        6.9077        .33411E-03   -1.5648    
   9  norm          1.7941        5.9900        .78192E-03   -1.5681    
  10  Prefactor     3.7558        1.8393        .52069E-03   -1.5669    
  11  Prefactor     4.8974        2.7397        .45492E-03   -1.5664    
  12  norm          6.1664        4.1590        .40349E-03   -1.5658    
  13  Prefactor     25.369        22.809        .19635E-03   -1.5607    
  14  norm          17.431        21.333        .23893E-03   -1.5624    
  15  Prefactor     3.4320        4.2568        .54751E-03   -1.5671    
  16  Prefactor     8.6023        14.319        .34157E-03   -1.5649    
  17  Prefactor     .72164E-09    58.604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .66460        7.8852        .64220E-03   -1.5692    
  19  Normalizat    1.2195        .16097        .58367E-01   -.86002    
  20  Prefactor     .76569        .12028        .43268E-01   -1.0101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0062e-06
Minuit parameter uncertainties:
  1  5.12649
  2  14.296
  3  1.67488e-05
  4  5.64115e-05
  5  9.77953
  6  2.30516
  7  2.81757
  8  6.90771
  9  5.99004
  10  1.8393
  11  2.73975
  12  4.15898
  13  22.8088
  14  21.3331
  15  4.25679
  16  14.3193
  17  0.00041317
  18  4.57841
  19  0.161031
  20  0.120319
Done.

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

Extracting fit parameters...

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  3.331e-10  5.641e-05  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:  7.657e-01  1.203e-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.220e+00  1.610e-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: 7.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/807198/likelihoodResults_694224001_694483201_4FGL_J0016.2-0016_daily_bin1755.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) = 9486.15554032
delta logL = -0.283339316018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9485.23043457
delta logL = 0.641766432165

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33970       1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80076       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9485.230     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      257 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33853        .33233        .52070E-04    .52532E-02
   2  alpha         5.0000        3.1657        .92649E-01** at limit **
   3  Normalizat    1.1501        .18627        .26469E-03    .26629E-05
   4  Prefactor     .80084        .14237        .24403E-03   -.59445E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.338534
  alpha      = 5
  Normalizat = 1.15007
  Prefactor  = 0.800845
 **********
 **   18 **HESSE 
 **********

 FCN=   9485.230     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33853        .32984        .20828E-05   -1.5696    
   2  alpha         5.0000        3.1648        .18530E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1501        .18624        .10588E-04   -.88160    
   4  Prefactor     .80084        .14244        .97612E-05   -.99697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30326e-11
Minuit parameter uncertainties:
  1  0.329845
  2  2.12882e-05
  3  0.186347
  4  0.142502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/807198': 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) = 9485.23041656
delta logL = 0.641784446561

Extracting fit parameters...

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  3.385e-01  3.298e-01  0.000e+00  1.000e+06 ( 1.000e-11)
73         alpha:  5.000e+00  2.129e-05  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.008e-01  1.425e-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.150e+00  1.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 4.061 -0.281
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 4.90e-08 +/- 4.75e-08
Energy Flux (Free Index): 6.67e-06 +/- 6.48e-06

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/807198/cmap_HighResolution_694224001_694483201_4FGL_J0016.2-0016_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-05', comment='SUCCESS', energy_flux2='6.67e-06', dlogl='6.42e-01', photon_flux2='4.90e-08', job_status='DONE', time_completed='2023-01-04 00:17:24.118473', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='7.01e-08', energy_flux_error2='6.48e-06', EG='1.22', time_epoch_completed='1672820244.12', return_code='0', job_id='807198', GAL2='0.80', EG2='1.15', return_code2='0', photon_flux_error2='4.75e-08', ts2='1.47', photon_index='2.61' WHERE bin_id='1755' AND source_name='4FGL J0016.2-0016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 00:17:24 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 807198: <4FGL_J0016.2-0016_daily_bin1755> in cluster <slac> Done

Job <4FGL_J0016.2-0016_daily_bin1755> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Jan  4 00:04:47 2023
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 00:05:33 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 00:05:33 2023
Terminated at Wed Jan  4 00:17:25 2023
Results reported at Wed Jan  4 00:17:25 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0016.2-0016_daily_bin1755 4.061 -0.2806 694224001 694483201 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 :                                   654.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            758 sec.

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

