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


Performing analysis on: 4FGL_J0021.5-2552_daily_bin1762
RA = 5.3912, Dec = -25.8681
tmin = 696038401, tmax = 696297601
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='95712', job_status='RUN', time_executed='2023-01-25 00:07:45.582298', time_epoch_executed='1674634065.58' WHERE source_name='4FGL J0021.5-2552' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95712

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95712/ft1_4FGL_J0021.5-2552_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95712/ft2_4FGL_J0021.5-2552_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95712/ft1_4FGL_J0021.5-2552_daily_bin1762.fits outfile=/scratch/kocevski/95712/ft1_filteredMKT_4FGL_J0021.5-2552_daily_bin1762.fits ra=5.3912 dec=-25.8681 rad=12.0 tmin=696038401.0 tmax=696297601.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.21
user 2.96
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/95712/ft2_4FGL_J0021.5-2552_daily_bin1762.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/95712/ft1_filteredMKT_4FGL_J0021.5-2552_daily_bin1762.fits evtable="EVENTS" outfile="/scratch/kocevski/95712/ft1_filtered_4FGL_J0021.5-2552_daily_bin1762.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.48
user 0.31
sys 0.15

Number of photons that the gtmktime cut: 359

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95712/ft1_filtered_4FGL_J0021.5-2552_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/95712/ft2_4FGL_J0021.5-2552_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/95712/ltcube_696038401_696297601_4FGL_J0021.5-2552_daily_bin1762.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/95712/ft2_4FGL_J0021.5-2552_daily_bin1762.fits
.....................!
real 13.53
user 13.12
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95712/ft1_filtered_4FGL_J0021.5-2552_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/95712/ft2_4FGL_J0021.5-2552_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/95712/ltcube_696038401_696297601_4FGL_J0021.5-2552_daily_bin1762.fits outfile=/scratch/kocevski/95712/expmap_696038401_696297601_4FGL_J0021.5-2552_daily_bin1762.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/95712/ltcube_696038401_696297601_4FGL_J0021.5-2552_daily_bin1762.fits
.....................!
real 160.98
user 155.40
sys 4.61

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/95712/ft1_filtered_4FGL_J0021.5-2552_daily_bin1762.fits scfile=/scratch/kocevski/95712/ft2_4FGL_J0021.5-2552_daily_bin1762.fits outfile=/scratch/kocevski/95712/cmap_696038401_696297601_4FGL_J0021.5-2552_daily_bin1762.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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95712/ft1_filtered_4FGL_J0021.5-2552_daily_bin1762.fits scfile=/scratch/kocevski/95712/ft2_4FGL_J0021.5-2552_daily_bin1762.fits outfile=/scratch/kocevski/95712/cmap_HighResolution_696038401_696297601_4FGL_J0021.5-2552_daily_bin1762.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.60
user 0.34
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95712/ft1_filtered_4FGL_J0021.5-2552_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/95712/ft2_4FGL_J0021.5-2552_daily_bin1762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95712/Model_4FGL_J0021.5-2552_daily_bin1762.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/95712/ft1_filtered_4FGL_J0021.5-2552_daily_bin1762.fits......................!
real 33.24
user 31.08
sys 1.56

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/95712/ft1_filtered_4FGL_J0021.5-2552_daily_bin1762.fits', '/scratch/kocevski/95712/ft2_4FGL_J0021.5-2552_daily_bin1762.fits', expMap='/scratch/kocevski/95712/expmap_696038401_696297601_4FGL_J0021.5-2552_daily_bin1762.fits', expCube='/scratch/kocevski/95712/ltcube_696038401_696297601_4FGL_J0021.5-2552_daily_bin1762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/95712/Model_4FGL_J0021.5-2552_daily_bin1762.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  0.000e+00  1.000e+06 ( 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/95712/ft1_filtered_4FGL_J0021.5-2552_daily_bin1762.fits
Spacecraft file(s): /scratch/kocevski/95712/ft2_4FGL_J0021.5-2552_daily_bin1762.fits
Exposure map: /scratch/kocevski/95712/expmap_696038401_696297601_4FGL_J0021.5-2552_daily_bin1762.fits
Exposure cube: /scratch/kocevski/95712/ltcube_696038401_696297601_4FGL_J0021.5-2552_daily_bin1762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/95712/Model_4FGL_J0021.5-2552_daily_bin1762.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) = 4174.92184269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11276       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.7025       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11326E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .35215E-02   1.0000          .0000       .10000E+07
     5 'norm      '    6.8333       1.0000          .0000       .10000E+07
     6 'norm      '    .47029E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .13369E-03   1.0000          .0000       .10000E+07
     8 'norm      '    3.8850       1.0000          .0000       .10000E+07
     9 'Prefactor '    .17790E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .20554E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    67.836       1.0000          .0000       .10000E+07
    12 'Prefactor '    .18470E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    74.961       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.0144       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.1091       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4174.918     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     1014 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99920E-09    26.359       -.31467E-07** at limit **
   2  Prefactor     4.7253        5.2611        .89257E-08   -.78800E-02
   3  Prefactor     .16653E-09    7.4992       -.35384E-06** at limit **
   4  Prefactor     .17764E-08    6.4912        .17964E-06** at limit **
   5  norm          6.8800        7.4001       -.14328E-07   -.97579E-03
   6  norm          .49960E-09    2.1589        .51412E-08** at limit **
   7  norm          .55511E-10    11.866        .15604E-06** at limit **
   8  norm          3.8877        3.3494        .30433E-08   -.47793E-02
   9  Prefactor     .27756E-09    3.2212       -.63195E-06** at limit **
  10  Prefactor     .17764E-08    8.2546        .31765E-05** at limit **
  11  Prefactor     70.149        58.440        .16766E-06   -.16515E-01
  12  Prefactor      .0000        6.8647       -.26598E-05** at limit **
  13  Prefactor     75.814        22.850       -.99863E-07    .49610E-01
  14  Normalizat    1.0131        .25391        .29712E-06    .68989E-04
  15  Prefactor     1.1094        .28092       -.51459E-06    .24275E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.99201e-10
  Prefactor  = 4.72528
  Prefactor  = 1.66533e-10
  Prefactor  = 1.77636e-09
  norm       = 6.87998
  norm       = 4.996e-10
  norm       = 5.55112e-11
  norm       = 3.88771
  Prefactor  = 2.77556e-10
  Prefactor  = 1.77636e-09
  Prefactor  = 70.1495
  Prefactor  = 0
  Prefactor  = 75.8143
  Normalizat = 1.01306
  Prefactor  = 1.10937
 **********
 **   18 **HESSE 
 **********

 FCN=   4174.918     FROM HESSE     STATUS=OK           208 CALLS     1222 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99920E-09    26.279        .13598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.7253        5.4380        .46380E-03   -1.5664    
   3  Prefactor     .16653E-09    7.4965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .17764E-08    6.5004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.8800        7.3999        .38358E-03   -1.5656    
   6  norm          .49960E-09    2.1638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .55511E-10    11.873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8877        3.3487        .51167E-03   -1.5669    
   9  Prefactor     .27756E-09    9.3469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .17764E-08    8.8776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     70.149        66.050        .12142E-03   -1.5540    
  12  Prefactor      .0000        9.3328        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     75.814        77.871        .11551E-03   -1.5534    
  14  Normalizat    1.0131        .21100        .44356E-01   -.92594    
  15  Prefactor     1.1094        .23254        .58885E-01   -.89168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40181e-07
Minuit parameter uncertainties:
  1  0.000321141
  2  5.43802
  3  7.03209e-05
  4  0.000214007
  5  7.39995
  6  6.55503e-05
  7  4.63837e-05
  8  3.34873
  9  9.98567e-05
  10  0.000250728
  11  66.0507
  12  1.58211e-05
  13  77.8723
  14  0.211172
  15  0.232751
Done.

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

Extracting fit parameters...

4FGL J0021.5-2552
   Spectrum: PowerLaw
75     Prefactor:  1.665e-10  7.032e-05  0.000e+00  1.000e+06 ( 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:  1.109e+00  2.328e-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.013e+00  2.112e-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: 6.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/95712/likelihoodResults_696038401_696297601_4FGL_J0021.5-2552_daily_bin1762.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) = 4174.91902567
delta logL = -0.000658547196508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4174.91836713
delta logL = -7.16408976587e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10714E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.3349       1.0000          .0000       10.000    
     3 'Normalizat'    1.0130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1094       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4174.589     FROM MIGRAD    STATUS=FAILED       255 CALLS      445 TOTAL
                     EDM=   .33E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14369E-04    .11932E-02    .74901E-07** at limit **
   2  Index         8.5187        9.1749        .71315E-02   -.11532E-03
   3  Normalizat    .93657        .19531        .25171E-03   -.57446E-03
   4  Prefactor     1.1693        .21397        .25459E-03   -.54927E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4174.589     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      536 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14369E-04    .11932E-02    .14919E-06** at limit **
   2  Index         8.5187        9.1749        .38667E-02   -.11532E-03
   3  Normalizat    .93657        .19531        .28160E-03   -.57446E-03
   4  Prefactor     1.1693        .21397        .14599E-03   -.54927E-03
                               ERR DEF=  .500    

 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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4174.589     FROM MIGRAD    STATUS=FAILED        64 CALLS      600 TOTAL
                     EDM=   .33E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14365E-04    .11951E-02    .37451E-06** at limit **
   2  Index         8.5188        9.1740        .11410E-04   -.11757E-04
   3  Normalizat    .93657        .19433        .10068E-04   -.22583E-04
   4  Prefactor     1.1693        .21218        .10184E-04   -.19425E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.43646e-05
  Index      = 8.51881
  Normalizat = 0.936571
  Prefactor  = 1.16932
 **********
 **   18 **HESSE 
 **********

 FCN=   4174.589     FROM HESSE     STATUS=NOT POSDEF    23 CALLS      623 TOTAL
                     EDM=   .33E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14365E-04    .11964E-02    .37451E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.5188        9.1731        .22821E-05    .78068    
   3  Normalizat    .93657        .19507        .20137E-05   -.95187    
   4  Prefactor     1.1693        .21279        .20367E-05   -.87281    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.00032923
Minuit parameter uncertainties:
  1  0.000262187
  2  7.41684
  3  0.195215
  4  0.212945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95712': 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): 1
logL (Free Index) = 4174.58898073
delta logL = 0.329386389625

Extracting fit parameters...

4FGL J0021.5-2552
   Spectrum: PowerLaw
75     Prefactor:  1.436e-05  2.622e-04  0.000e+00  1.000e+06 ( 1.000e-13)
76         Index:  8.519e+00  7.417e+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:  1.169e+00  2.129e-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:  9.366e-01  1.952e-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/95712/cmap_HighResolution_696038401_696297601_4FGL_J0021.5-2552_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.95e-03', job_status='DONE', photon_flux_upper_limit='6.54e-08', time_completed='2023-01-25 00:14:09.408977', job_id='95712', GAL2='1.17', fit_tolerance='1e-08', EG2='0.94', EG='1.01', time_epoch_completed='1674634449.41', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.29e-01', ts2='0.73', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1762' AND source_name='4FGL J0021.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 00:14:09 PST 2023


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 95712: <4FGL_J0021.5-2552_daily_bin1762> in cluster <slac> Done

Job <4FGL_J0021.5-2552_daily_bin1762> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan 25 00:04:46 2023
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 00:06:33 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 00:06:33 2023
Terminated at Wed Jan 25 00:14:10 2023
Results reported at Wed Jan 25 00:14:10 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0021.5-2552_daily_bin1762 5.3912 -25.8681 696038401 696297601 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 :                                   383.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   456 sec.
    Turnaround time :                            564 sec.

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

