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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1677
RA = 325.462, Dec = -37.4545
tmin = 674006401, tmax = 674265601
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='170530', job_status='RUN', time_executed='2022-05-15 01:10:41.134503', time_epoch_executed='1652602241.13' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1677'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/170530

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/170530/ft1_4FGL_J2141.8-3727_daily_bin1677.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/170530/ft2_4FGL_J2141.8-3727_daily_bin1677.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/170530/ft1_4FGL_J2141.8-3727_daily_bin1677.fits outfile=/scratch/kocevski/170530/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1677.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=674006401.0 tmax=674265601.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 4.67
user 4.33
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/170530/ft2_4FGL_J2141.8-3727_daily_bin1677.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/170530/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1677.fits evtable="EVENTS" outfile="/scratch/kocevski/170530/ft1_filtered_4FGL_J2141.8-3727_daily_bin1677.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.53
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 556

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/170530/ft1_filtered_4FGL_J2141.8-3727_daily_bin1677.fits" evtable="EVENTS" scfile=/scratch/kocevski/170530/ft2_4FGL_J2141.8-3727_daily_bin1677.fits sctable="SC_DATA" outfile=/scratch/kocevski/170530/ltcube_674006401_674265601_4FGL_J2141.8-3727_daily_bin1677.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/170530/ft2_4FGL_J2141.8-3727_daily_bin1677.fits
.....................!
real 13.70
user 13.24
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/170530/ft1_filtered_4FGL_J2141.8-3727_daily_bin1677.fits evtable="EVENTS" scfile=/scratch/kocevski/170530/ft2_4FGL_J2141.8-3727_daily_bin1677.fits sctable="SC_DATA" expcube=/scratch/kocevski/170530/ltcube_674006401_674265601_4FGL_J2141.8-3727_daily_bin1677.fits outfile=/scratch/kocevski/170530/expmap_674006401_674265601_4FGL_J2141.8-3727_daily_bin1677.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/170530/ltcube_674006401_674265601_4FGL_J2141.8-3727_daily_bin1677.fits
.....................!
real 193.48
user 187.92
sys 4.75

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/170530/ft1_filtered_4FGL_J2141.8-3727_daily_bin1677.fits scfile=/scratch/kocevski/170530/ft2_4FGL_J2141.8-3727_daily_bin1677.fits outfile=/scratch/kocevski/170530/cmap_674006401_674265601_4FGL_J2141.8-3727_daily_bin1677.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/170530/ft1_filtered_4FGL_J2141.8-3727_daily_bin1677.fits scfile=/scratch/kocevski/170530/ft2_4FGL_J2141.8-3727_daily_bin1677.fits outfile=/scratch/kocevski/170530/cmap_HighResolution_674006401_674265601_4FGL_J2141.8-3727_daily_bin1677.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/170530/ft1_filtered_4FGL_J2141.8-3727_daily_bin1677.fits evtable="EVENTS" scfile=/scratch/kocevski/170530/ft2_4FGL_J2141.8-3727_daily_bin1677.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/170530/Model_4FGL_J2141.8-3727_daily_bin1677.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/170530/ft1_filtered_4FGL_J2141.8-3727_daily_bin1677.fits.....................!
real 51.50
user 50.01
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/170530/ft1_filtered_4FGL_J2141.8-3727_daily_bin1677.fits', '/scratch/kocevski/170530/ft2_4FGL_J2141.8-3727_daily_bin1677.fits', expMap='/scratch/kocevski/170530/expmap_674006401_674265601_4FGL_J2141.8-3727_daily_bin1677.fits', expCube='/scratch/kocevski/170530/ltcube_674006401_674265601_4FGL_J2141.8-3727_daily_bin1677.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/170530/Model_4FGL_J2141.8-3727_daily_bin1677.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/170530/ft1_filtered_4FGL_J2141.8-3727_daily_bin1677.fits
Spacecraft file(s): /scratch/kocevski/170530/ft2_4FGL_J2141.8-3727_daily_bin1677.fits
Exposure map: /scratch/kocevski/170530/expmap_674006401_674265601_4FGL_J2141.8-3727_daily_bin1677.fits
Exposure cube: /scratch/kocevski/170530/ltcube_674006401_674265601_4FGL_J2141.8-3727_daily_bin1677.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/170530/Model_4FGL_J2141.8-3727_daily_bin1677.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) = 6072.24081966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    133.51       1.0000         .10000E-03   10000.    
     2 'Prefactor '    50.267       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32661E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.094       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6514       1.0000         .10000E-03   10000.    
    11 'norm      '    .33335E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    51.386       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .82974       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16408E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.848       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2555       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0798       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=   6072.231     FROM MIGRAD    STATUS=CONVERGED    941 CALLS     2991 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     133.48        134.00        .17426E-03    .59381E-04
   2  Prefactor     50.264        34.169        .56563E-04    .57564E-04
   3  Prefactor     .10000E-03    39.444        .18142E-02** at limit **
   4  Prefactor     .10000E-03    31.128        .38461E-02** at limit **
   5  Prefactor     .10000E-03    16.891        .18142E-02** at limit **
   6  norm          .10000E-03    2.8037        .12742E-02** at limit **
   7  norm          10.097        6.8061        .12612E-03    .27377E-03
   8  Prefactor     .10000E-03    3.2445        .13685E-02** at limit **
   9  Prefactor     .10000E-03    9.5968        .18142E-02** at limit **
  10  Prefactor     1.6513        4.9956        .29704E-03    .27794E-03
  11  norm          .10072E-03    6.5148        .61720E-01** at limit **
  12  Prefactor     .10000E-03    20.539        .18142E-02** at limit **
  13  Prefactor     51.409        66.444        .55947E-04    .35236E-04
  14  norm          .10000E-03    2.7417        .12497E-02** at limit **
  15  norm          .82969        .37351        .30845E-04    .83888E-03
  16  Prefactor     .10000E-03    103.10        .18142E-02** at limit **
  17  Prefactor     .10002E-03    5.7812        .59345E-01** at limit **
  18  Prefactor     .10000E-03    6.0925        .36285E-03** at limit **
  19  Prefactor     .10000E-03    49.560        .18142E-02** at limit **
  20  Prefactor     27.848        22.088        .75917E-04    .34742E-05
  21  Prefactor     .10000E-03    18.585        .18142E-02** at limit **
  22  Normalizat    1.2556        .25359        .30245E-03    .69896E-03
  23  Prefactor     1.0798        .16586        .21316E-03    .29488E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 133.482
  Prefactor  = 50.2636
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.0967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.65128
  norm       = 0.000100718
  Prefactor  = 0.0001
  Prefactor  = 51.4089
  norm       = 0.0001
  norm       = 0.82969
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.8477
  Prefactor  = 0.0001
  Normalizat = 1.25555
  Prefactor  = 1.07984
 **********
 **   18 **HESSE 
 **********

 FCN=   6072.231     FROM HESSE     STATUS=OK           366 CALLS     3357 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     133.48        134.00        .34852E-04   -1.3392    
   2  Prefactor     50.264        34.169        .11313E-04   -1.4289    
   3  Prefactor     .10000E-03    39.455        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.547        .76922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.892        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.8037        .25483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.097        6.8058        .50447E-05   -1.5072    
   8  Prefactor     .10000E-03    3.2447        .27370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.5975        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6513        4.9954        .11882E-04   -1.5451    
  11  norm          .10072E-03    6.3472        .63116E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.540        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     51.409        66.443        .11189E-04   -1.4273    
  14  norm          .10000E-03    2.7424        .24994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .82969        .37351        .12338E-05   -1.5526    
  16  Prefactor     .10000E-03    103.13        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    5.6803        .60276E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0927        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    49.567        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.848        22.088        .15183E-04   -1.4652    
  21  Prefactor     .10000E-03    18.592        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2556        .25373        .60490E-04   -.84903    
  23  Prefactor     1.0798        .16597        .42631E-04   -.90113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9077e-09
Minuit parameter uncertainties:
  1  134.304
  2  34.182
  3  0.000530191
  4  0.000482052
  5  6.81836e-05
  6  2.52969e-06
  7  6.80633
  8  8.29737e-06
  9  2.83472e-05
  10  4.99666
  11  0.0042692
  12  0.00015081
  13  66.5391
  14  1.96531e-05
  15  0.373509
  16  8.33923e-05
  17  0.000722797
  18  1.56836e-05
  19  2.74823e-05
  20  22.0942
  21  3.50081e-05
  22  0.253982
  23  0.166053
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  8.297e-06  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:  1.080e+00  1.661e-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.256e+00  2.540e-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: 8.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/170530/likelihoodResults_674006401_674265601_4FGL_J2141.8-3727_daily_bin1677.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): 102
logL (Free Index) = 6072.23250517
delta logL = -0.00146092400882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6072.23104422
delta logL = 2.28901626542e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6090       1.0000          .0000       10.000    
     3 'Normalizat'    1.2555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0799       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=   6072.231     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      257 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    420.37        .13790E-01** at limit **
   2  Index         2.1203        8.7916        .50000        .41720E-05
   3  Normalizat    1.2555        .74138E-01    .30245E-03    .21388E-04
   4  Prefactor     1.0798        .49141E-01    .21315E-03    .37068E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12027
  Normalizat = 1.25554
  Prefactor  = 1.07985
 **********
 **   18 **HESSE 
 **********

 FCN=   6072.231     FROM HESSE     STATUS=OK            27 CALLS      284 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2061        .14659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1203        6.0461        .50000       -.61376    
   3  Normalizat    1.2555        .24544        .12098E-04   -.84903    
   4  Prefactor     1.0798        .16297        .85262E-05   -.90113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9605e-11
Minuit parameter uncertainties:
  1  1.36181e-05
  2  4.34566
  3  0.245666
  4  0.163046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/170530': 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) = 6072.23104225
delta logL = 1.99432997761e-06

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.362e-05  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.120e+00  4.346e+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.080e+00  1.630e-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.256e+00  2.457e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/170530/cmap_HighResolution_674006401_674265601_4FGL_J2141.8-3727_daily_bin1677.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-03', job_status='DONE', photon_flux_upper_limit='8.00e-08', time_completed='2022-05-15 01:21:55.777357', job_id='170530', GAL2='1.08', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1652602915.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.99e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1677' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun May 15 01:21:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 170530: <4FGL_J2141.8-3727_daily_bin1677> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1677> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun May 15 01:05:27 2022
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun May 15 01:09:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun May 15 01:09:23 2022
Terminated at Sun May 15 01:21:56 2022
Results reported at Sun May 15 01:21:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1677 325.462 -37.4545 674006401 674265601 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 :                                   675.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            989 sec.

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

