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 160 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7460
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1745
RA = 325.462, Dec = -37.4545
tmin = 691632001, tmax = 691891201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='656413', job_status='RUN', time_executed='2022-12-05 01:23:05.760770', time_epoch_executed='1670232185.76' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/656413

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/656413/ft1_4FGL_J2141.8-3727_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/656413/ft2_4FGL_J2141.8-3727_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/656413/ft1_4FGL_J2141.8-3727_daily_bin1745.fits outfile=/scratch/kocevski/656413/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1745.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=691632001.0 tmax=691891201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.38
user 2.14
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/656413/ft2_4FGL_J2141.8-3727_daily_bin1745.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/656413/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/656413/ft1_filtered_4FGL_J2141.8-3727_daily_bin1745.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 636

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/656413/ft1_filtered_4FGL_J2141.8-3727_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/656413/ft2_4FGL_J2141.8-3727_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/656413/ltcube_691632001_691891201_4FGL_J2141.8-3727_daily_bin1745.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /scratch/kocevski/656413/ft2_4FGL_J2141.8-3727_daily_bin1745.fits
.....................!
real 12.93
user 12.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/656413/ft1_filtered_4FGL_J2141.8-3727_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/656413/ft2_4FGL_J2141.8-3727_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/656413/ltcube_691632001_691891201_4FGL_J2141.8-3727_daily_bin1745.fits outfile=/scratch/kocevski/656413/expmap_691632001_691891201_4FGL_J2141.8-3727_daily_bin1745.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/656413/ltcube_691632001_691891201_4FGL_J2141.8-3727_daily_bin1745.fits
.....................!
real 190.98
user 185.73
sys 4.89

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/656413/ft1_filtered_4FGL_J2141.8-3727_daily_bin1745.fits scfile=/scratch/kocevski/656413/ft2_4FGL_J2141.8-3727_daily_bin1745.fits outfile=/scratch/kocevski/656413/cmap_691632001_691891201_4FGL_J2141.8-3727_daily_bin1745.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/656413/ft1_filtered_4FGL_J2141.8-3727_daily_bin1745.fits scfile=/scratch/kocevski/656413/ft2_4FGL_J2141.8-3727_daily_bin1745.fits outfile=/scratch/kocevski/656413/cmap_HighResolution_691632001_691891201_4FGL_J2141.8-3727_daily_bin1745.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/656413/ft1_filtered_4FGL_J2141.8-3727_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/656413/ft2_4FGL_J2141.8-3727_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/656413/Model_4FGL_J2141.8-3727_daily_bin1745.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/656413/ft1_filtered_4FGL_J2141.8-3727_daily_bin1745.fits.....................!
real 56.96
user 55.60
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/656413/ft1_filtered_4FGL_J2141.8-3727_daily_bin1745.fits', '/scratch/kocevski/656413/ft2_4FGL_J2141.8-3727_daily_bin1745.fits', expMap='/scratch/kocevski/656413/expmap_691632001_691891201_4FGL_J2141.8-3727_daily_bin1745.fits', expCube='/scratch/kocevski/656413/ltcube_691632001_691891201_4FGL_J2141.8-3727_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/656413/Model_4FGL_J2141.8-3727_daily_bin1745.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/656413/ft1_filtered_4FGL_J2141.8-3727_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/656413/ft2_4FGL_J2141.8-3727_daily_bin1745.fits
Exposure map: /scratch/kocevski/656413/expmap_691632001_691891201_4FGL_J2141.8-3727_daily_bin1745.fits
Exposure cube: /scratch/kocevski/656413/ltcube_691632001_691891201_4FGL_J2141.8-3727_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/656413/Model_4FGL_J2141.8-3727_daily_bin1745.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54852E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    43.285       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.8675       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.7064       1.0000          .0000       .10000E+07
     5 'Prefactor '    17.421       1.0000          .0000       .10000E+07
     6 'norm      '    .91652E-02   1.0000          .0000       .10000E+07
     7 'norm      '    24.628       1.0000          .0000       .10000E+07
     8 'Prefactor '    .48655E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10468E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.7074       1.0000          .0000       .10000E+07
    11 'norm      '    .80885E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .80916E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    54.838       1.0000          .0000       .10000E+07
    14 'norm      '    .16431E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .96607       1.0000          .0000       .10000E+07
    16 'Prefactor '    24.847       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.8023       1.0000          .0000       .10000E+07
    18 'Prefactor '    8.5249       1.0000          .0000       .10000E+07
    19 'Prefactor '    .35733E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .75897E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .44964       1.0000          .0000       .10000E+07
    22 'Normalizat'    .88738       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1645       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=   6956.801     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     1971 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-09    20.177       -.87191E-06** at limit **
   2  Prefactor     43.146        4.3657       -.34198E-06   -.11909E-02
   3  Prefactor     5.5559        5.8174       -.33558E-06    .21351E-01
   4  Prefactor     2.7451        7.2767       -.63685E-06    .55920E-03
   5  Prefactor     17.212        14.251       -.18684E-06   -.10936E-01
   6  norm          .16653E-09    16.823        .11489E-05** at limit **
   7  norm          24.626        7.4483        .29952E-07    .11656E-02
   8  Prefactor      .0000        7.5779        .42900E-06** at limit **
   9  Prefactor     .55511E-10    10.706       -.46660E-06** at limit **
  10  Prefactor     4.7297        8.1844       -.57700E-06    .20948E-03
  11  norm          .16653E-09    80.998       -.10244E-05** at limit **
  12  Prefactor     .19562E-06    75.485        .11144E-05** at limit **
  13  Prefactor     53.132        28.056       -.41772E-06    .77592E-01
  14  norm           .0000        2.8729       -.52564E-06** at limit **
  15  norm          .96764        .35168       -.44373E-09    .33993E-02
  16  Prefactor     24.941        9.9774        .40582E-07   -.34725E-01
  17  Prefactor     5.7680        8.6951        .68816E-07   -.44740E-03
  18  Prefactor     8.5216        5.7816       -.80774E-06   -.77211E-03
  19  Prefactor      .0000        30.889        .30982E-08** at limit **
  20  Prefactor     .45103E-05    69.189       -.41329E-06** at limit **
  21  Prefactor     .44714E-06    120.92       -.12287E-04** at limit **
  22  Normalizat    .89016        .23524        .49302E-05   -.96114E-04
  23  Prefactor     1.1642        .15074        .15306E-05   -.12152E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-10
  Prefactor  = 43.1458
  Prefactor  = 5.55587
  Prefactor  = 2.74512
  Prefactor  = 17.2122
  norm       = 1.66533e-10
  norm       = 24.6262
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 4.72968
  norm       = 1.66533e-10
  Prefactor  = 1.95621e-07
  Prefactor  = 53.1322
  norm       = 0
  norm       = 0.967637
  Prefactor  = 24.9412
  Prefactor  = 5.76801
  Prefactor  = 8.5216
  Prefactor  = 0
  Prefactor  = 4.51034e-06
  Prefactor  = 4.47142e-07
  Normalizat = 0.89016
  Prefactor  = 1.16418
 **********
 **   18 **HESSE 
 **********

 FCN=   6956.801     FROM HESSE     STATUS=OK           428 CALLS     2399 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-09    20.243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     43.146        26.679        .15201E-03   -1.5577    
   3  Prefactor     5.5559        46.740        .41435E-03   -1.5661    
   4  Prefactor     2.7451        7.3773        .61891E-03   -1.5675    
   5  Prefactor     17.212        42.745        .23969E-03   -1.5625    
   6  norm          .16653E-09    16.397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          24.626        8.0708        .20155E-03   -1.5609    
   8  Prefactor      .0000        7.5704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    10.720        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.7297        8.2168        .46356E-03   -1.5664    
  11  norm          .16653E-09    4.0181        .10196E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .19562E-06    89.943        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     53.132        57.386        .13505E-03   -1.5562    
  14  norm           .0000        2.8751        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .96764        .35427        .42560E-03   -1.5688    
  16  Prefactor     24.941        36.403        .20066E-03   -1.5608    
  17  Prefactor     5.7680        8.6914        .41671E-03   -1.5660    
  18  Prefactor     8.5216        5.7829        .34309E-03   -1.5650    
  19  Prefactor      .0000        30.734        .16162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .45103E-05    94.450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .44714E-06    120.53        .83947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .89016        .21497        .75520E-01   -.96807    
  23  Prefactor     1.1642        .13519        .35530E-01   -.87441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2159e-07
Minuit parameter uncertainties:
  1  0.00021395
  2  26.6787
  3  32.2296
  4  7.37734
  5  42.7455
  6  9.8269e-05
  7  8.07082
  8  9.52333e-06
  9  5.23604e-05
  10  8.21677
  11  5.4675e-05
  12  0.00838927
  13  57.3866
  14  7.43229e-07
  15  0.35427
  16  36.4037
  17  8.69146
  18  5.78292
  19  2.08207e-05
  20  0.04128
  21  0.0146835
  22  0.215176
  23  0.135228
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  9.523e-06  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.164e+00  1.352e-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:  8.902e-01  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 325.462 -37.455
Photon Flux Upper Limit: 9.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/656413/likelihoodResults_691632001_691891201_4FGL_J2141.8-3727_daily_bin1745.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6956.8024281
delta logL = -0.00149658925784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6956.80093167
delta logL = -1.5678233467e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67563E-06   1.0000          .0000       .10000E+07
     2 'Index     '    3.0857       1.0000          .0000       10.000    
     3 'Normalizat'    .89026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1641       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6956.801     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      234 TOTAL
                     EDM=   .87E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.5782        .42118E-03** at limit **
   2  Index         1.2643        .72257       -.20155E-04     .0000    
   3  Normalizat    .89016        1.2260       -.25723E-04    .45849E-04
   4  Prefactor     1.1642        1.1160        .18778E-04    .33740E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.26429
  Normalizat = 0.890161
  Prefactor  = 1.16418
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6956.801     FROM HESSE     STATUS=FAILED         9 CALLS      243 TOTAL
                     EDM=   .87E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.5782        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .11731        1.2364       -.20155E-04   -.84375    
   3  Normalizat    .89016        1.2260       -.25723E-04   -.96807    
   4  Prefactor     1.1642        1.1160        .18778E-04   -.87441    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.66433e-12
Minuit parameter uncertainties:
  1  2.05224e-06
  2  0.728389
  3  1.26792
  4  1.13986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/656413': 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): 101
logL (Free Index) = 6956.80093151
delta logL = 5.45696821064e-12

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  2.052e-06  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  1.264e+00  7.284e-01  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.164e+00  1.140e+00  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:  8.902e-01  1.268e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 325.462 -37.455

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/656413/cmap_HighResolution_691632001_691891201_4FGL_J2141.8-3727_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.50e-03', job_status='DONE', photon_flux_upper_limit='9.57e-08', time_completed='2022-12-05 01:33:36.529559', job_id='656413', GAL2='1.16', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1670232816.53', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='5.46e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1745' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 01:33:36 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 656413: <4FGL_J2141.8-3727_daily_bin1745> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1745> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Dec  5 01:20:16 2022
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 01:20:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 01:20:18 2022
Terminated at Mon Dec  5 01:33:37 2022
Results reported at Mon Dec  5 01:33:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1745 325.462 -37.4545 691632001 691891201 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 :                                   633.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             242.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            801 sec.

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

