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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1695
RA = 325.462, Dec = -37.4545
tmin = 678672001, tmax = 678931201
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='731139', job_status='RUN', time_executed='2022-07-08 00:37:51.300226', time_epoch_executed='1657265871.3' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1695'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731139

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731139/ft1_4FGL_J2141.8-3727_daily_bin1695.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731139/ft2_4FGL_J2141.8-3727_daily_bin1695.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731139/ft1_4FGL_J2141.8-3727_daily_bin1695.fits outfile=/scratch/kocevski/731139/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1695.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=678672001.0 tmax=678931201.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.63
user 3.37
sys 0.23

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

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

Number of photons that the gtmktime cut: 460

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731139/ft1_filtered_4FGL_J2141.8-3727_daily_bin1695.fits" evtable="EVENTS" scfile=/scratch/kocevski/731139/ft2_4FGL_J2141.8-3727_daily_bin1695.fits sctable="SC_DATA" outfile=/scratch/kocevski/731139/ltcube_678672001_678931201_4FGL_J2141.8-3727_daily_bin1695.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/731139/ft2_4FGL_J2141.8-3727_daily_bin1695.fits
.....................!
real 12.46
user 12.02
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731139/ft1_filtered_4FGL_J2141.8-3727_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/731139/ft2_4FGL_J2141.8-3727_daily_bin1695.fits sctable="SC_DATA" expcube=/scratch/kocevski/731139/ltcube_678672001_678931201_4FGL_J2141.8-3727_daily_bin1695.fits outfile=/scratch/kocevski/731139/expmap_678672001_678931201_4FGL_J2141.8-3727_daily_bin1695.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/731139/ltcube_678672001_678931201_4FGL_J2141.8-3727_daily_bin1695.fits
.....................!
real 200.60
user 185.43
sys 5.68

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/731139/ft1_filtered_4FGL_J2141.8-3727_daily_bin1695.fits scfile=/scratch/kocevski/731139/ft2_4FGL_J2141.8-3727_daily_bin1695.fits outfile=/scratch/kocevski/731139/cmap_678672001_678931201_4FGL_J2141.8-3727_daily_bin1695.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731139/ft1_filtered_4FGL_J2141.8-3727_daily_bin1695.fits scfile=/scratch/kocevski/731139/ft2_4FGL_J2141.8-3727_daily_bin1695.fits outfile=/scratch/kocevski/731139/cmap_HighResolution_678672001_678931201_4FGL_J2141.8-3727_daily_bin1695.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.38
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731139/ft1_filtered_4FGL_J2141.8-3727_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/731139/ft2_4FGL_J2141.8-3727_daily_bin1695.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731139/Model_4FGL_J2141.8-3727_daily_bin1695.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/731139/ft1_filtered_4FGL_J2141.8-3727_daily_bin1695.fits....................!
real 46.02
user 44.69
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17663E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.941       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .45858       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 '    5.8250       1.0000         .10000E-03   10000.    
    11 'norm      '    7.8594       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .76967       1.0000         .10000E-03   10000.    
    15 'norm      '    .57425       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2410       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7924       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.442       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.326       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4778       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72396       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.

 FCN=   5154.147     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2599 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.754       -.58318E-06** at limit **
   2  Prefactor     .10000E-03    299.21       -.29313E-05** at limit **
   3  Prefactor     32.932        34.656        .36771E-06    .87280E-05
   4  Prefactor     .10000E-03    2.3765        .70668E-07** at limit **
   5  Prefactor     .10000E-03    21.720       -.66718E-06** at limit **
   6  norm          .10000E-03    4.7963        .16480E-06** at limit **
   7  norm          .45100        3.6445       -.12325E-06   -.51012E-04
   8  Prefactor     .10000E-03    3.4056       -.21520E-07** at limit **
   9  Prefactor     .10000E-03    15.119       -.41360E-06** at limit **
  10  Prefactor     5.8251        5.9683       -.13690E-06    .13045E-04
  11  norm          7.8586        8.4066       -.42670E-07    .18406E-04
  12  Prefactor     .10000E-03    13.887       -.67605E-06** at limit **
  13  Prefactor     .10000E-03    152.15        .27898E-05** at limit **
  14  norm          .77058        4.2092       -.30582E-06    .67630E-04
  15  norm          .57420        .38411        .31330E-08    .32666E-03
  16  Prefactor     .10000E-03    29.133       -.35240E-06** at limit **
  17  Prefactor     4.2393        4.8980        .28080E-06   -.40460E-03
  18  Prefactor     2.7913        4.4044        .24171E-06   -.68438E-05
  19  Prefactor     20.411        44.977       -.65224E-05   -.13018E-04
  20  Prefactor     32.328        25.370        .13249E-06    .56676E-05
  21  Prefactor     .10000E-03    9.4259       -.25643E-06** at limit **
  22  Normalizat    1.4779        .22821        .57390E-06    .45286E-04
  23  Prefactor     .72392        .13683       -.27311E-06    .90771E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.9322
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.450996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.82511
  norm       = 7.8586
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.770583
  norm       = 0.5742
  Prefactor  = 0.0001
  Prefactor  = 4.23932
  Prefactor  = 2.79133
  Prefactor  = 20.4115
  Prefactor  = 32.3277
  Prefactor  = 0.0001
  Normalizat = 1.47788
  Prefactor  = 0.72392
 **********
 **   18 **HESSE 
 **********

 FCN=   5154.147     FROM HESSE     STATUS=OK           372 CALLS     2971 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    56.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    312.15        .36444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.932        34.719        .69816E-04   -1.4560    
   4  Prefactor     .10000E-03    2.3793        .10808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.8031        .15355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .45100        8.0791        .26597E-02   -1.5574    
   8  Prefactor     .10000E-03    3.4201        .12937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.8251        5.9676        .16640E-03   -1.5225    
  11  norm          7.8586        8.3965        .14303E-03   -1.5147    
  12  Prefactor     .10000E-03    13.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    153.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .77058        13.647        .24753E-02   -1.5532    
  15  norm          .57420        .38958        .32489E-04   -1.5556    
  16  Prefactor     .10000E-03    29.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.2393        12.277        .97830E-03   -1.5296    
  18  Prefactor     2.7913        4.4152        .18173E-03   -1.5374    
  19  Prefactor     20.411        45.170        .88588E-04   -1.4804    
  20  Prefactor     32.328        25.574        .70475E-04   -1.4570    
  21  Prefactor     .10000E-03    9.4341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4779        .27828        .25838E-03   -.78402    
  23  Prefactor     .72392        .16106        .22094E-03   -1.0260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8911e-08
Minuit parameter uncertainties:
  1  1.07631e-05
  2  0.000161605
  3  34.7404
  4  1.69916e-07
  5  5.47423e-06
  6  5.76111e-07
  7  3.81785
  8  2.43404e-07
  9  3.48657e-06
  10  5.96825
  11  8.39774
  12  3.81121e-06
  13  8.01039e-05
  14  6.48701
  15  0.389583
  16  8.925e-06
  17  12.284
  18  4.4157
  19  45.2456
  20  25.5827
  21  3.24074e-06
  22  0.278567
  23  0.161166
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  2.434e-07  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:  7.239e-01  1.612e-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.478e+00  2.786e-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: 7.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731139/likelihoodResults_678672001_678931201_4FGL_J2141.8-3727_daily_bin1695.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) = 5154.14865704
delta logL = -0.00138471760329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5154.14727444
delta logL = -2.11351380131e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11418E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6092       1.0000          .0000       10.000    
     3 'Normalizat'    1.4777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72401       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=   5154.147     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      257 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.562        .13039E-01** at limit **
   2  Index         2.0331        5.5763        .50000       -.14888E-06
   3  Normalizat    1.4779        .21552E-01    .25838E-03    .91177E-04
   4  Prefactor     .72392        .13503E-01    .22094E-03    .11665E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0331
  Normalizat = 1.47788
  Prefactor  = 0.72392
 **********
 **   18 **HESSE 
 **********

 FCN=   5154.147     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    466.92        .14322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0331        8.9057        .50000       -.63525    
   3  Normalizat    1.4779        .72264E-01    .51676E-04   -.78402    
   4  Prefactor     .72392        .45277E-01    .88376E-05   -1.0260    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.08185e-09
Minuit parameter uncertainties:
  1  3.98613e-05
  2  1104.77
  3  0.0722695
  4  0.0452791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731139': 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): 102
logL (Free Index) = 5154.14726955
delta logL = 2.77354683931e-06

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  3.986e-05  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.033e+00  1.105e+03  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:  7.239e-01  4.528e-02  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.478e+00  7.227e-02  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/731139/cmap_HighResolution_678672001_678931201_4FGL_J2141.8-3727_daily_bin1695.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', job_status='DONE', photon_flux_upper_limit='7.93e-08', time_completed='2022-07-08 00:47:44.987602', job_id='731139', GAL2='0.72', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1657266464.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='2.77e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1695' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul  8 00:47:45 PDT 2022


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

Job <4FGL_J2141.8-3727_daily_bin1695> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Jul  8 00:35:14 2022
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  8 00:35:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul  8 00:35:15 2022
Terminated at Fri Jul  8 00:47:45 2022
Results reported at Fri Jul  8 00:47:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1695 325.462 -37.4545 678672001 678931201 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 :                                   586.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            751 sec.

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

