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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1671
RA = 325.462, Dec = -37.4545
tmin = 672451201, tmax = 672710401
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='43671', job_status='RUN', time_executed='2022-04-27 01:06:07.209478', time_epoch_executed='1651046767.21' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/43671

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/43671/ft1_4FGL_J2141.8-3727_daily_bin1671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/43671/ft2_4FGL_J2141.8-3727_daily_bin1671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/43671/ft1_4FGL_J2141.8-3727_daily_bin1671.fits outfile=/scratch/kocevski/43671/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1671.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=672451201.0 tmax=672710401.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.98
user 2.73
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/43671/ft2_4FGL_J2141.8-3727_daily_bin1671.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/43671/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1671.fits evtable="EVENTS" outfile="/scratch/kocevski/43671/ft1_filtered_4FGL_J2141.8-3727_daily_bin1671.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1089

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/43671/ft1_filtered_4FGL_J2141.8-3727_daily_bin1671.fits" evtable="EVENTS" scfile=/scratch/kocevski/43671/ft2_4FGL_J2141.8-3727_daily_bin1671.fits sctable="SC_DATA" outfile=/scratch/kocevski/43671/ltcube_672451201_672710401_4FGL_J2141.8-3727_daily_bin1671.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/43671/ft2_4FGL_J2141.8-3727_daily_bin1671.fits
.....................!
real 14.06
user 13.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/43671/ft1_filtered_4FGL_J2141.8-3727_daily_bin1671.fits evtable="EVENTS" scfile=/scratch/kocevski/43671/ft2_4FGL_J2141.8-3727_daily_bin1671.fits sctable="SC_DATA" expcube=/scratch/kocevski/43671/ltcube_672451201_672710401_4FGL_J2141.8-3727_daily_bin1671.fits outfile=/scratch/kocevski/43671/expmap_672451201_672710401_4FGL_J2141.8-3727_daily_bin1671.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/43671/ltcube_672451201_672710401_4FGL_J2141.8-3727_daily_bin1671.fits
.....................!
real 191.89
user 185.65
sys 5.87

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/43671/ft1_filtered_4FGL_J2141.8-3727_daily_bin1671.fits scfile=/scratch/kocevski/43671/ft2_4FGL_J2141.8-3727_daily_bin1671.fits outfile=/scratch/kocevski/43671/cmap_672451201_672710401_4FGL_J2141.8-3727_daily_bin1671.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/43671/ft1_filtered_4FGL_J2141.8-3727_daily_bin1671.fits scfile=/scratch/kocevski/43671/ft2_4FGL_J2141.8-3727_daily_bin1671.fits outfile=/scratch/kocevski/43671/cmap_HighResolution_672451201_672710401_4FGL_J2141.8-3727_daily_bin1671.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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/43671/ft1_filtered_4FGL_J2141.8-3727_daily_bin1671.fits evtable="EVENTS" scfile=/scratch/kocevski/43671/ft2_4FGL_J2141.8-3727_daily_bin1671.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/43671/Model_4FGL_J2141.8-3727_daily_bin1671.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/43671/ft1_filtered_4FGL_J2141.8-3727_daily_bin1671.fits.....................!
real 85.54
user 84.13
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/43671/ft1_filtered_4FGL_J2141.8-3727_daily_bin1671.fits', '/scratch/kocevski/43671/ft2_4FGL_J2141.8-3727_daily_bin1671.fits', expMap='/scratch/kocevski/43671/expmap_672451201_672710401_4FGL_J2141.8-3727_daily_bin1671.fits', expCube='/scratch/kocevski/43671/ltcube_672451201_672710401_4FGL_J2141.8-3727_daily_bin1671.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/43671/Model_4FGL_J2141.8-3727_daily_bin1671.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  1.000e-04  1.000e+04 ( 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/43671/ft1_filtered_4FGL_J2141.8-3727_daily_bin1671.fits
Spacecraft file(s): /scratch/kocevski/43671/ft2_4FGL_J2141.8-3727_daily_bin1671.fits
Exposure map: /scratch/kocevski/43671/expmap_672451201_672710401_4FGL_J2141.8-3727_daily_bin1671.fits
Exposure cube: /scratch/kocevski/43671/ltcube_672451201_672710401_4FGL_J2141.8-3727_daily_bin1671.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/43671/Model_4FGL_J2141.8-3727_daily_bin1671.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) = 11545.715271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.343       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8576       1.0000         .10000E-03   10000.    
     3 'Prefactor '    53.612       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0132       1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.765       1.0000         .10000E-03   10000.    
     6 'norm      '    .30525       1.0000         .10000E-03   10000.    
     7 'norm      '    11.188       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4117       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2489       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.282       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16195E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .22231E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1461       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7981       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5093       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    46.371       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2005       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81332       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11545.61     FROM MIGRAD    STATUS=CONVERGED    924 CALLS     2659 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.301        57.507        .11895E-03   -.25423E-04
   2  Prefactor     2.8603        18.201        .24050E-03    .55781E-05
   3  Prefactor     53.627        20.819        .54779E-04   -.90818E-04
   4  Prefactor     2.0143        4.7432        .14587E-02   -.56849E-03
   5  Prefactor     28.750        22.007        .74699E-04    .24046E-04
   6  norm          .30464        4.2054        .20896E-02   -.21866E-02
   7  norm          11.190        4.1128        .11977E-03   -.48978E-04
   8  Prefactor     8.4123        6.7819        .13822E-03   -.72544E-04
   9  Prefactor     1.2465        11.871        .40033E-03   -.36179E-04
  10  Prefactor     .10000E-03    2.0001        .14811E-02** at limit **
  11  norm          .10000E-03    2.3451        .16002E-02** at limit **
  12  Prefactor     18.232        16.944        .93672E-04   -.64839E-03
  13  Prefactor     .10000E-03    38.880        .14831    ** at limit **
  14  norm          .10002E-03    5.6018        .21098E-02** at limit **
  15  norm          1.1458        .29711        .28577E-04   -.54821E-03
  16  Prefactor     3.7960        54.294        .20712E-03   -.74649E-05
  17  Prefactor     .10000E-03    1.6256        .13350E-02** at limit **
  18  Prefactor     1.5135        3.0555        .25492E-03   -.38710E-04
  19  Prefactor     .10000E-03    11.548        .18142E-02** at limit **
  20  Prefactor     46.351        17.393        .29440E-03    .79163E-04
  21  Prefactor     .10000E-03    7.1276        .18142E-02** at limit **
  22  Normalizat    1.2003        .16401        .26599E-03    .17438E-04
  23  Prefactor     .81345        .10262        .20985E-03   -.58149E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3015
  Prefactor  = 2.86034
  Prefactor  = 53.6265
  Prefactor  = 2.01425
  Prefactor  = 28.7498
  norm       = 0.30464
  norm       = 11.1904
  Prefactor  = 8.41226
  Prefactor  = 1.24648
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.2319
  Prefactor  = 0.000100002
  norm       = 0.000100023
  norm       = 1.14583
  Prefactor  = 3.79601
  Prefactor  = 0.0001
  Prefactor  = 1.51352
  Prefactor  = 0.0001
  Prefactor  = 46.3512
  Prefactor  = 0.0001
  Normalizat = 1.20025
  Prefactor  = 0.813452
 **********
 **   18 **HESSE 
 **********

 FCN=   11545.61     FROM HESSE     STATUS=OK           360 CALLS     3019 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.301        57.393        .47581E-05   -1.5035    
   2  Prefactor     2.8603        18.193        .96198E-05   -1.5370    
   3  Prefactor     53.627        20.818        .10956E-04   -1.4242    
   4  Prefactor     2.0143        4.7388        .58349E-04   -1.5424    
   5  Prefactor     28.750        22.001        .29880E-05   -1.4635    
   6  norm          .30464        4.2068        .83584E-04   -1.5598    
   7  norm          11.190        4.1126        .47909E-05   -1.5039    
   8  Prefactor     8.4123        6.7815        .55289E-05   -1.5128    
   9  Prefactor     1.2465        11.867        .16013E-04   -1.5485    
  10  Prefactor     .10000E-03    2.0002        .29621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.3457        .32003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.232        16.949        .18734E-04   -1.4854    
  13  Prefactor     .10000E-03    39.028        .14798       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10002E-03    5.6541        .42195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1458        .29704        .11431E-05   -1.5494    
  16  Prefactor     3.7960        54.272        .82849E-05   -1.5318    
  17  Prefactor     .10000E-03    1.6258        .26700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5135        3.0550        .10197E-04   -1.5462    
  19  Prefactor     .10000E-03    11.548        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     46.351        17.392        .11776E-04   -1.4345    
  21  Prefactor     .10000E-03    7.1286        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2003        .16406        .10640E-04   -.86595    
  23  Prefactor     .81345        .10268        .41971E-04   -.99234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47359e-08
Minuit parameter uncertainties:
  1  51.0139
  2  14.4337
  3  20.821
  4  4.73971
  5  22.0068
  6  2.26394
  7  4.11269
  8  6.78208
  9  7.69384
  10  1.50015e-06
  11  5.05618e-06
  12  16.9534
  13  0.00048595
  14  0.000720292
  15  0.297037
  16  28.7377
  17  7.46933e-06
  18  3.05535
  19  3.60105e-06
  20  17.3944
  21  2.00478e-05
  22  0.164129
  23  0.102705
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  8.412e+00  6.782e+00  1.000e-04  1.000e+04 ( 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:  8.135e-01  1.027e-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:  1.200e+00  1.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.00
Ra Dec: 325.462 -37.455
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 4.49e-08 +/- 3.62e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 9.30e-06

TS (Fixed Index): 2.00
Ra Dec: 325.462 -37.455
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/43671/likelihoodResults_672451201_672710401_4FGL_J2141.8-3727_daily_bin1671.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) = 11544.5530445
delta logL = 1.05572507772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11544.5226381
delta logL = 1.08613147019

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2385       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9268       1.0000          .0000       10.000    
     3 'Normalizat'    1.1455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83599       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=   11544.52     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      250 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2243        22.035        .56270E-02    .13967E-02
   2  Index         3.9311        2.7713        .18380        .24641E-03
   3  Normalizat    1.1455        .43488E-01    .61325E-01   -.53433E-04
   4  Prefactor     .83589        .28505E-01    .44184E-01    .14815E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.22434
  Index      = 3.93108
  Normalizat = 1.14549
  Prefactor  = 0.835889
 **********
 **   18 **HESSE 
 **********

 FCN=   11544.52     FROM HESSE     STATUS=OK            33 CALLS      283 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2243        144.26        .97985E-04   -1.5349    
   2  Index         3.9311        6.4460        .62881E-02   -.21545    
   3  Normalizat    1.1455        .17923        .27124E-03   -.88304    
   4  Prefactor     .83589        .12843        .20729E-03   -.98419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6833e-09
Minuit parameter uncertainties:
  1  43.2454
  2  9.82617
  3  0.179325
  4  0.128479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/43671': 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) = 11544.5226278
delta logL = 1.08614169466

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  3.224e+00  4.325e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.931e+00  9.826e+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:  8.359e-01  1.285e-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:  1.145e+00  1.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.37
Ra Dec: 325.462 -37.455
Photon Index (Free Index): 3.93 +/- 9.83
Photon Flux (Free Index): 8.85e-08 +/- 4.89e-08
Energy Flux (Free Index): 1.34e-05 +/- 2.49e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/43671/cmap_HighResolution_672451201_672710401_4FGL_J2141.8-3727_daily_bin1671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.94e-03', comment='SUCCESS', photon_flux='4.49e-08', energy_flux2='1.34e-05', photon_flux_error='3.62e-08', dlogl='1.09e+00', energy_flux='1.15e-05', photon_flux2='8.85e-08', job_status='DONE', time_completed='2022-04-27 01:22:04.522957', photon_index_error2='9.83', photon_index2='3.93', ts='2.00', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='2.49e-05', EG='1.20', time_epoch_completed='1651047724.52', return_code='0', job_id='43671', GAL2='0.84', EG2='1.15', return_code2='0', energy_flux_error='9.30e-06', photon_flux_error2='4.89e-08', ts2='4.37', photon_index='2.62' WHERE bin_id='1671' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Apr 27 01:22:04 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 43671: <4FGL_J2141.8-3727_daily_bin1671> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1671> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Apr 27 01:05:28 2022
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Apr 27 01:05:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Apr 27 01:05:29 2022
Terminated at Wed Apr 27 01:22:04 2022
Results reported at Wed Apr 27 01:22:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1671 325.462 -37.4545 672451201 672710401 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 :                                   959.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            996 sec.

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

