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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1733
RA = 325.462, Dec = -37.4545
tmin = 688521601, tmax = 688780801
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='708478', job_status='RUN', time_executed='2022-10-30 00:37:20.553688', time_epoch_executed='1667115440.55' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708478

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708478/ft1_4FGL_J2141.8-3727_daily_bin1733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708478/ft2_4FGL_J2141.8-3727_daily_bin1733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708478/ft1_4FGL_J2141.8-3727_daily_bin1733.fits outfile=/scratch/kocevski/708478/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1733.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=688521601.0 tmax=688780801.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.52
user 3.30
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/708478/ft2_4FGL_J2141.8-3727_daily_bin1733.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/708478/ft2_4FGL_J2141.8-3727_daily_bin1733.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/708478/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1733.fits evtable="EVENTS" outfile="/scratch/kocevski/708478/ft1_filtered_4FGL_J2141.8-3727_daily_bin1733.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.49
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 575

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708478/ft1_filtered_4FGL_J2141.8-3727_daily_bin1733.fits" evtable="EVENTS" scfile=/scratch/kocevski/708478/ft2_4FGL_J2141.8-3727_daily_bin1733.fits sctable="SC_DATA" outfile=/scratch/kocevski/708478/ltcube_688521601_688780801_4FGL_J2141.8-3727_daily_bin1733.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/708478/ft2_4FGL_J2141.8-3727_daily_bin1733.fits
.....................!
real 12.00
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708478/ft1_filtered_4FGL_J2141.8-3727_daily_bin1733.fits evtable="EVENTS" scfile=/scratch/kocevski/708478/ft2_4FGL_J2141.8-3727_daily_bin1733.fits sctable="SC_DATA" expcube=/scratch/kocevski/708478/ltcube_688521601_688780801_4FGL_J2141.8-3727_daily_bin1733.fits outfile=/scratch/kocevski/708478/expmap_688521601_688780801_4FGL_J2141.8-3727_daily_bin1733.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/708478/ltcube_688521601_688780801_4FGL_J2141.8-3727_daily_bin1733.fits
.....................!
real 189.13
user 184.48
sys 4.33

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 J2141.8-3727 @ 325.462 -37.4545

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/708478/ft1_filtered_4FGL_J2141.8-3727_daily_bin1733.fits scfile=/scratch/kocevski/708478/ft2_4FGL_J2141.8-3727_daily_bin1733.fits outfile=/scratch/kocevski/708478/cmap_688521601_688780801_4FGL_J2141.8-3727_daily_bin1733.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=325.462 yref=-37.4545 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/708478/ft1_filtered_4FGL_J2141.8-3727_daily_bin1733.fits scfile=/scratch/kocevski/708478/ft2_4FGL_J2141.8-3727_daily_bin1733.fits outfile=/scratch/kocevski/708478/cmap_HighResolution_688521601_688780801_4FGL_J2141.8-3727_daily_bin1733.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=325.462 yref=-37.4545 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/708478/ft1_filtered_4FGL_J2141.8-3727_daily_bin1733.fits evtable="EVENTS" scfile=/scratch/kocevski/708478/ft2_4FGL_J2141.8-3727_daily_bin1733.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/708478/Model_4FGL_J2141.8-3727_daily_bin1733.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/708478/ft1_filtered_4FGL_J2141.8-3727_daily_bin1733.fits.....................!
real 49.35
user 48.03
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/708478/ft1_filtered_4FGL_J2141.8-3727_daily_bin1733.fits', '/scratch/kocevski/708478/ft2_4FGL_J2141.8-3727_daily_bin1733.fits', expMap='/scratch/kocevski/708478/expmap_688521601_688780801_4FGL_J2141.8-3727_daily_bin1733.fits', expCube='/scratch/kocevski/708478/ltcube_688521601_688780801_4FGL_J2141.8-3727_daily_bin1733.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/708478/Model_4FGL_J2141.8-3727_daily_bin1733.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2141.8-3727'

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  3.345e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.623e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  5.479e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/708478/ft1_filtered_4FGL_J2141.8-3727_daily_bin1733.fits
Spacecraft file(s): /scratch/kocevski/708478/ft2_4FGL_J2141.8-3727_daily_bin1733.fits
Exposure map: /scratch/kocevski/708478/expmap_688521601_688780801_4FGL_J2141.8-3727_daily_bin1733.fits
Exposure cube: /scratch/kocevski/708478/ltcube_688521601_688780801_4FGL_J2141.8-3727_daily_bin1733.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/708478/Model_4FGL_J2141.8-3727_daily_bin1733.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) = 6309.86859119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16938E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    28.798       1.0000          .0000       .10000E+07
     3 'Prefactor '    14.017       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.6587       1.0000          .0000       .10000E+07
     5 'Prefactor '    15.764       1.0000          .0000       .10000E+07
     6 'norm      '    .82991E-05   1.0000          .0000       .10000E+07
     7 'norm      '    7.6133       1.0000          .0000       .10000E+07
     8 'Prefactor '    15.984       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15660E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    14.462       1.0000          .0000       .10000E+07
    11 'norm      '    12.763       1.0000          .0000       .10000E+07
    12 'Prefactor '    24.757       1.0000          .0000       .10000E+07
    13 'Prefactor '    .95387E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .12270E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .85099       1.0000          .0000       .10000E+07
    16 'Prefactor '    47.782       1.0000          .0000       .10000E+07
    17 'Prefactor '    .13687E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.0488       1.0000          .0000       .10000E+07
    19 'Prefactor '    21.073       1.0000          .0000       .10000E+07
    20 'Prefactor '    14.081       1.0000          .0000       .10000E+07
    21 'Prefactor '    .35137E-03   1.0000          .0000       .10000E+07
    22 'Normalizat'    .76543       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0582       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6309.832     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1855 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31664E-06    36.462       -.14729E-05** at limit **
   2  Prefactor     28.941        1.4328        .59378E-07   -.65125E-02
   3  Prefactor     14.479        3.5320        .22503E-06    .44688E-02
   4  Prefactor     3.7681        6.2432       -.38753E-06   -.54859E-03
   5  Prefactor     16.324        6.7701        .35062E-06    .28176E-01
   6  norm          .55511E-10    2.0114       -.34517E-08** at limit **
   7  norm          7.5857        4.4688        .31972E-07    .11226E-02
   8  Prefactor     16.054        10.212       -.14047E-06   -.68857E-01
   9  Prefactor     .83267E-09    4.4428        .11470E-05** at limit **
  10  Prefactor     14.525        9.8625       -.28599E-06   -.48135E-01
  11  norm          12.907        8.8650        .67598E-06    .82631E-01
  12  Prefactor     24.878        5.3078       -.14562E-06    .16174    
  13  Prefactor      .0000        26.969       -.19931E-06** at limit **
  14  norm          .55511E-10    1.9191       -.74347E-07** at limit **
  15  norm          .85244        .37544        .21045E-07    .21042E-03
  16  Prefactor     49.382        36.303        .12125E-05   -.49258E-01
  17  Prefactor     .94924E-08    11.067       -.24280E-05** at limit **
  18  Prefactor     1.0660        3.2192        .98871E-07    .13735E-03
  19  Prefactor     20.362        10.931       -.54216E-06   -.37023E-01
  20  Prefactor     14.445        5.0975        .27350E-06   -.11452    
  21  Prefactor      .0000        20.830       -.70993E-06** at limit **
  22  Normalizat    .76288        .21552        .59544E-05    .40968E-04
  23  Prefactor     1.0579        .14328       -.45650E-05    .41354E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.16636e-07
  Prefactor  = 28.9413
  Prefactor  = 14.4794
  Prefactor  = 3.76811
  Prefactor  = 16.3241
  norm       = 5.55112e-11
  norm       = 7.58574
  Prefactor  = 16.0542
  Prefactor  = 8.32667e-10
  Prefactor  = 14.5249
  norm       = 12.9066
  Prefactor  = 24.8777
  Prefactor  = 0
  norm       = 5.55112e-11
  norm       = 0.852444
  Prefactor  = 49.3824
  Prefactor  = 9.49241e-09
  Prefactor  = 1.06601
  Prefactor  = 20.3616
  Prefactor  = 14.4451
  Prefactor  = 0
  Normalizat = 0.762885
  Prefactor  = 1.05793
 **********
 **   18 **HESSE 
 **********

 FCN=   6309.832     FROM HESSE     STATUS=OK           422 CALLS     2277 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31664E-06    37.441        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.941        26.192        .18638E-03   -1.5600    
   3  Prefactor     14.479        29.897        .26727E-03   -1.5632    
   4  Prefactor     3.7681        6.3199        .52785E-03   -1.5669    
   5  Prefactor     16.324        33.576        .25199E-03   -1.5627    
   6  norm          .55511E-10    2.0171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.5857        4.6682        .36321E-03   -1.5653    
   8  Prefactor     16.054        10.430        .25025E-03   -1.5628    
   9  Prefactor     .83267E-09    4.4463        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.525        9.9256        .26312E-03   -1.5632    
  11  norm          12.907        9.0983        .28013E-03   -1.5636    
  12  Prefactor     24.878        17.608        .20102E-03   -1.5608    
  13  Prefactor      .0000        26.935        .14055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    1.9165        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .85244        .37811        .49209E-03   -1.5689    
  16  Prefactor     49.382        39.490        .14468E-03   -1.5567    
  17  Prefactor     .94924E-08    11.031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0660        3.2696        .12105E-02   -1.5687    
  19  Prefactor     20.362        36.758        .21790E-03   -1.5618    
  20  Prefactor     14.445        22.345        .26666E-03   -1.5632    
  21  Prefactor      .0000        20.923        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .76288        .20002        .72919E-01   -1.0146    
  23  Prefactor     1.0579        .12920        .39453E-01   -.90823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15406e-06
Minuit parameter uncertainties:
  1  0.0068863
  2  26.1919
  3  29.8977
  4  6.31996
  5  33.5767
  6  1.84608e-05
  7  4.66819
  8  10.43
  9  0.000123546
  10  9.92566
  11  9.09826
  12  17.6082
  13  2.42278e-05
  14  1.7926e-05
  15  0.378107
  16  39.4901
  17  0.000646918
  18  3.2696
  19  36.7582
  20  22.3455
  21  3.89821e-05
  22  0.200213
  23  0.129239
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.605e+01  1.043e+01  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.623e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  5.479e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.058e+00  1.292e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  7.629e-01  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.17
Ra Dec: 325.462 -37.455
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 8.57e-08 +/- 5.56e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.43e-05

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) = 6307.5164402
delta logL = 2.31558212293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6307.50086744
delta logL = 2.33115488897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0605       1.0000          .0000       .10000E+07
     2 'Index     '    4.2507       1.0000          .0000       10.000    
     3 'Normalizat'    .67526       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0930       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6307.501     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      253 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0565        25.267        .50013E-03    .20321E-02
   2  Index         4.2515        3.0895        .10216        .12385E-03
   3  Normalizat    .67532        .82360E-01    .76796E-01    .18571E-04
   4  Prefactor     1.0930        .56123E-01    .37857E-01   -.93267E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.05645
  Index      = 4.25153
  Normalizat = 0.675316
  Prefactor  = 1.093
 **********
 **   18 **HESSE 
 **********

 FCN=   6307.501     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0565        9.7858        .63166E-05   -1.5668    
   2  Index         4.2515        1.6878        .42366E-02   -.15026    
   3  Normalizat    .67532        .21194        .34000E-03   -1.0488    
   4  Prefactor     1.0930        .14451        .18845E-03   -.89691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4152e-08
Minuit parameter uncertainties:
  1  9.78584
  2  1.72245
  3  0.212192
  4  0.144565
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708478': 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) = 6307.50086703
delta logL = 2.33115529834

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  4.056e+00  9.786e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  4.252e+00  1.722e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  5.479e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.093e+00  1.446e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  6.753e-01  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.24
Ra Dec: 325.462 -37.455
Photon Index (Free Index): 4.25 +/- 1.72
Photon Flux (Free Index): 1.73e-07 +/- 7.30e-08
Energy Flux (Free Index): 2.50e-05 +/- 1.18e-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/708478/cmap_HighResolution_688521601_688780801_4FGL_J2141.8-3727_daily_bin1733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.57e-08', energy_flux2='2.50e-05', photon_flux_error='5.56e-08', dlogl='2.33e+00', energy_flux='2.20e-05', photon_flux2='1.73e-07', job_status='DONE', time_completed='2022-10-30 00:46:12.001600', photon_index_error2='1.72', photon_index2='4.25', ts='4.17', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='0.76', time_epoch_completed='1667115972.0', return_code='0', job_id='708478', GAL2='1.09', EG2='0.68', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='7.30e-08', ts2='9.24', photon_index='2.62' WHERE bin_id='1733' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 30 00:46:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 708478: <4FGL_J2141.8-3727_daily_bin1733> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1733> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Oct 30 00:35:29 2022
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 30 00:35:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 30 00:35:30 2022
Terminated at Sun Oct 30 00:46:12 2022
Results reported at Sun Oct 30 00:46:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1733 325.462 -37.4545 688521601 688780801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2141.8-3727 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   534.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            643 sec.

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

