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


Performing analysis on: 4FGL_J0021.5-2552_daily_bin1703
RA = 5.3912, Dec = -25.8681
tmin = 680745601, tmax = 681004801
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='302316', job_status='RUN', time_executed='2022-08-01 00:07:36.790115', time_epoch_executed='1659337656.79' WHERE source_name='4FGL J0021.5-2552' and cadence='daily' and bin_id='1703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302316

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302316/ft1_4FGL_J0021.5-2552_daily_bin1703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302316/ft2_4FGL_J0021.5-2552_daily_bin1703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302316/ft1_4FGL_J0021.5-2552_daily_bin1703.fits outfile=/scratch/kocevski/302316/ft1_filteredMKT_4FGL_J0021.5-2552_daily_bin1703.fits ra=5.3912 dec=-25.8681 rad=12.0 tmin=680745601.0 tmax=681004801.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.99
user 2.75
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/302316/ft2_4FGL_J0021.5-2552_daily_bin1703.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/302316/ft2_4FGL_J0021.5-2552_daily_bin1703.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/302316/ft1_filteredMKT_4FGL_J0021.5-2552_daily_bin1703.fits evtable="EVENTS" outfile="/scratch/kocevski/302316/ft1_filtered_4FGL_J0021.5-2552_daily_bin1703.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.55
user 0.35
sys 0.18

Number of photons that the gtmktime cut: 402

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302316/ft1_filtered_4FGL_J0021.5-2552_daily_bin1703.fits" evtable="EVENTS" scfile=/scratch/kocevski/302316/ft2_4FGL_J0021.5-2552_daily_bin1703.fits sctable="SC_DATA" outfile=/scratch/kocevski/302316/ltcube_680745601_681004801_4FGL_J0021.5-2552_daily_bin1703.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/302316/ft2_4FGL_J0021.5-2552_daily_bin1703.fits
.....................!
real 16.48
user 16.05
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302316/ft1_filtered_4FGL_J0021.5-2552_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/302316/ft2_4FGL_J0021.5-2552_daily_bin1703.fits sctable="SC_DATA" expcube=/scratch/kocevski/302316/ltcube_680745601_681004801_4FGL_J0021.5-2552_daily_bin1703.fits outfile=/scratch/kocevski/302316/expmap_680745601_681004801_4FGL_J0021.5-2552_daily_bin1703.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/302316/ltcube_680745601_681004801_4FGL_J0021.5-2552_daily_bin1703.fits
.....................!
real 194.11
user 187.29
sys 6.14

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

Setting source of interest to:
4FGL J0021.5-2552 @ 5.3912 -25.8681

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/302316/ft1_filtered_4FGL_J0021.5-2552_daily_bin1703.fits scfile=/scratch/kocevski/302316/ft2_4FGL_J0021.5-2552_daily_bin1703.fits outfile=/scratch/kocevski/302316/cmap_680745601_681004801_4FGL_J0021.5-2552_daily_bin1703.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=5.3912 yref=-25.8681 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302316/ft1_filtered_4FGL_J0021.5-2552_daily_bin1703.fits scfile=/scratch/kocevski/302316/ft2_4FGL_J0021.5-2552_daily_bin1703.fits outfile=/scratch/kocevski/302316/cmap_HighResolution_680745601_681004801_4FGL_J0021.5-2552_daily_bin1703.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=5.3912 yref=-25.8681 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.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/302316/ft1_filtered_4FGL_J0021.5-2552_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/302316/ft2_4FGL_J0021.5-2552_daily_bin1703.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302316/Model_4FGL_J0021.5-2552_daily_bin1703.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/302316/ft1_filtered_4FGL_J0021.5-2552_daily_bin1703.fits.....................!
real 41.33
user 39.25
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/302316/ft1_filtered_4FGL_J0021.5-2552_daily_bin1703.fits', '/scratch/kocevski/302316/ft2_4FGL_J0021.5-2552_daily_bin1703.fits', expMap='/scratch/kocevski/302316/expmap_680745601_681004801_4FGL_J0021.5-2552_daily_bin1703.fits', expCube='/scratch/kocevski/302316/ltcube_680745601_681004801_4FGL_J0021.5-2552_daily_bin1703.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/302316/Model_4FGL_J0021.5-2552_daily_bin1703.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0021.5-2552'

4FGL J0021.5-2552
   Spectrum: PowerLaw
75     Prefactor:  4.219e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
76         Index:  2.121e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
77         Scale:  1.302e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/302316/ft1_filtered_4FGL_J0021.5-2552_daily_bin1703.fits
Spacecraft file(s): /scratch/kocevski/302316/ft2_4FGL_J0021.5-2552_daily_bin1703.fits
Exposure map: /scratch/kocevski/302316/expmap_680745601_681004801_4FGL_J0021.5-2552_daily_bin1703.fits
Exposure cube: /scratch/kocevski/302316/ltcube_680745601_681004801_4FGL_J0021.5-2552_daily_bin1703.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/302316/Model_4FGL_J0021.5-2552_daily_bin1703.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) = 4506.22380376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8937       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7936       1.0000         .10000E-03   10000.    
     6 'norm      '    15.676       1.0000         .10000E-03   10000.    
     7 'norm      '    4.4333       1.0000         .10000E-03   10000.    
     8 'Prefactor '    53.398       1.0000         .10000E-03   10000.    
     9 'norm      '    .10217E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.586       1.0000         .10000E-03   10000.    
    14 'Prefactor '    147.59       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19010E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0648       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .81020       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4506.219     FROM MIGRAD    STATUS=CONVERGED    391 CALLS     1871 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    58.999       -.24255E-06** at limit **
   2  Prefactor     2.8936        3.5336       -.57251E-06   -.27766E-03
   3  Prefactor     .10000E-03    9.7036       -.32771E-07** at limit **
   4  Prefactor     .10000E-03    6.3221       -.70880E-07** at limit **
   5  Prefactor     2.7937        26.494       -.47877E-05   -.69625E-04
   6  norm          15.677        17.495       -.98265E-06    .99565E-05
   7  norm          4.4332        4.2259       -.36582E-06    .42300E-04
   8  Prefactor     53.324        81.291       -.65097E-04    .68436E-05
   9  norm          .10000E-03    3.9816        .41049E-06** at limit **
  10  norm          .10000E-03    1.5899       -.96531E-07** at limit **
  11  Prefactor     .10000E-03    1.6748        .23970E-07** at limit **
  12  Prefactor     .10000E-03    3.4691       -.15468E-07** at limit **
  13  Prefactor     13.584        39.194       -.25686E-06   -.12323E-03
  14  Prefactor     147.56        126.37       -.19805E-04    .18078E-05
  15  Prefactor     .10000E-03    333.47        .11162E-04** at limit **
  16  Prefactor     .10000E-03    2.0793       -.31749E-07** at limit **
  17  Prefactor     .10000E-03    118.12       -.14484E-05** at limit **
  18  Normalizat    1.0649        .18291        .32568E-05   -.70942E-04
  19  Prefactor     .81007        .20655        .20210E-05    .66794E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.89357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.79372
  norm       = 15.6771
  norm       = 4.4332
  Prefactor  = 53.3242
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5835
  Prefactor  = 147.563
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06486
  Prefactor  = 0.810072
 **********
 **   18 **HESSE 
 **********

 FCN=   4506.219     FROM HESSE     STATUS=OK           262 CALLS     2133 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    59.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8936        3.5275        .13339E-03   -1.5368    
   3  Prefactor     .10000E-03    9.7110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.3340        .16484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7937        26.512        .24342E-03   -1.5374    
   6  norm          15.677        17.490        .10116E-03   -1.4916    
   7  norm          4.4332        4.2274        .13033E-03   -1.5287    
   8  Prefactor     53.324        81.309        .54888E-04   -1.4246    
   9  norm          .10000E-03    3.9882        .13086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.6520        .16526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6809        .84832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4741        .12211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.584        39.208        .54335E-03   -1.4971    
  14  Prefactor     147.56        126.24        .16586E-03   -1.3272    
  15  Prefactor     .10000E-03    345.84        .36471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.0849        .94529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    119.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0649        .21559        .20792E-03   -.90888    
  19  Prefactor     .81007        .24308        .26706E-03   -.99358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95271e-10
Minuit parameter uncertainties:
  1  0.00020045
  2  3.52772
  3  1.05207e-05
  4  1.75221e-05
  5  17.222
  6  17.4959
  7  4.22771
  8  81.4786
  9  8.21337e-05
  10  1.24931e-05
  11  3.0155e-06
  12  2.98627e-06
  13  39.282
  14  126.474
  15  0.00167364
  16  4.69128e-06
  17  0.000397207
  18  0.215764
  19  0.243405
Done.

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

Extracting fit parameters...

4FGL J0021.5-2552
   Spectrum: PowerLaw
75     Prefactor:  1.000e-04  1.752e-05  1.000e-04  1.000e+04 ( 1.000e-13)
76         Index:  2.121e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
77         Scale:  1.302e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  8.101e-01  2.434e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.065e+00  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 5.391 -25.868
Photon Flux Upper Limit: 5.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302316/likelihoodResults_680745601_681004801_4FGL_J0021.5-2552_daily_bin1703.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) = 4506.22007621
delta logL = -0.000751233370465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4506.21932498
delta logL = 4.0017766878e-11

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1257       1.0000          .0000       10.000    
     3 'Normalizat'    1.0649       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81007       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4506.219     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      199 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    752.91        .90712E-02** at limit **
   2  Index         2.1299        8.3840        .50000       -.55273E-05
   3  Normalizat    1.0649        .57646E-01    .39655E-01   -.55664E-05
   4  Prefactor     .81007        .65686E-01    .43848E-01    .12035E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12992
  Normalizat = 1.06486
  Prefactor  = 0.81007
 **********
 **   18 **HESSE 
 **********

 FCN=   4506.219     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9984        .16495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1299        6.0543        .50000       -.61140    
   3  Normalizat    1.0649        .21080        .20792E-03   -.90888    
   4  Prefactor     .81007        .24036        .26706E-03   -.99358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44083e-11
Minuit parameter uncertainties:
  1  9.40528e-07
  2  4.30595
  3  0.210966
  4  0.240674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302316': 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) = 4506.21932497
delta logL = 1.15060174721e-08

Extracting fit parameters...

4FGL J0021.5-2552
   Spectrum: PowerLaw
75     Prefactor:  1.000e-04  9.405e-07  1.000e-04  1.000e+04 ( 1.000e-13)
76         Index:  2.130e+00  4.306e+00  0.000e+00  1.000e+01 (-1.000e+00)
77         Scale:  1.302e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  8.101e-01  2.407e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.065e+00  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 5.391 -25.868

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/302316/cmap_HighResolution_680745601_681004801_4FGL_J0021.5-2552_daily_bin1703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2022-08-01 00:16:10.440086', job_id='302316', GAL2='0.81', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1659338170.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.15e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1703' AND source_name='4FGL J0021.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug  1 00:16:10 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 302316: <4FGL_J0021.5-2552_daily_bin1703> in cluster <slac> Done

Job <4FGL_J0021.5-2552_daily_bin1703> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug  1 00:04:57 2022
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 00:05:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 00:05:14 2022
Terminated at Mon Aug  1 00:16:11 2022
Results reported at Mon Aug  1 00:16:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0021.5-2552_daily_bin1703 5.3912 -25.8681 680745601 681004801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0021.5-2552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   511.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            674 sec.

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

