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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1760
RA = 325.462, Dec = -37.4545
tmin = 695520001, tmax = 695779201
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='751700', job_status='RUN', time_executed='2023-01-19 01:47:48.994401', time_epoch_executed='1674121668.99' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/751700

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/751700/ft1_4FGL_J2141.8-3727_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/751700/ft2_4FGL_J2141.8-3727_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/751700/ft1_4FGL_J2141.8-3727_daily_bin1760.fits outfile=/scratch/kocevski/751700/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1760.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=695520001.0 tmax=695779201.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.50
user 2.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/751700/ft2_4FGL_J2141.8-3727_daily_bin1760.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/751700/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1760.fits evtable="EVENTS" outfile="/scratch/kocevski/751700/ft1_filtered_4FGL_J2141.8-3727_daily_bin1760.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.51
user 0.37
sys 0.13

Number of photons that the gtmktime cut: 232

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/751700/ft1_filtered_4FGL_J2141.8-3727_daily_bin1760.fits" evtable="EVENTS" scfile=/scratch/kocevski/751700/ft2_4FGL_J2141.8-3727_daily_bin1760.fits sctable="SC_DATA" outfile=/scratch/kocevski/751700/ltcube_695520001_695779201_4FGL_J2141.8-3727_daily_bin1760.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/751700/ft2_4FGL_J2141.8-3727_daily_bin1760.fits
.....................!
real 17.58
user 17.10
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/751700/ft1_filtered_4FGL_J2141.8-3727_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/751700/ft2_4FGL_J2141.8-3727_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/751700/ltcube_695520001_695779201_4FGL_J2141.8-3727_daily_bin1760.fits outfile=/scratch/kocevski/751700/expmap_695520001_695779201_4FGL_J2141.8-3727_daily_bin1760.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/751700/ltcube_695520001_695779201_4FGL_J2141.8-3727_daily_bin1760.fits
.....................!
real 193.56
user 187.51
sys 5.58

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/751700/ft1_filtered_4FGL_J2141.8-3727_daily_bin1760.fits scfile=/scratch/kocevski/751700/ft2_4FGL_J2141.8-3727_daily_bin1760.fits outfile=/scratch/kocevski/751700/cmap_695520001_695779201_4FGL_J2141.8-3727_daily_bin1760.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.60
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/751700/ft1_filtered_4FGL_J2141.8-3727_daily_bin1760.fits scfile=/scratch/kocevski/751700/ft2_4FGL_J2141.8-3727_daily_bin1760.fits outfile=/scratch/kocevski/751700/cmap_HighResolution_695520001_695779201_4FGL_J2141.8-3727_daily_bin1760.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/751700/ft1_filtered_4FGL_J2141.8-3727_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/751700/ft2_4FGL_J2141.8-3727_daily_bin1760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/751700/Model_4FGL_J2141.8-3727_daily_bin1760.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/751700/ft1_filtered_4FGL_J2141.8-3727_daily_bin1760.fits......................!
real 31.22
user 29.83
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.374       1.0000          .0000       .10000E+07
     2 'Prefactor '    .47904E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    97.462       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.1763       1.0000          .0000       .10000E+07
     5 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     6 'norm      '    .16098E-07   1.0000          .0000       .10000E+07
     7 'norm      '    5.4792       1.0000          .0000       .10000E+07
     8 'Prefactor '    .16948E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    5.6764       1.0000          .0000       .10000E+07
    10 'Prefactor '    .54345E-07   1.0000          .0000       .10000E+07
    11 'norm      '    .70832E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .71003E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    82.064       1.0000          .0000       .10000E+07
    14 'norm      '    .31752E-07   1.0000          .0000       .10000E+07
    15 'norm      '    1.1774       1.0000          .0000       .10000E+07
    16 'Prefactor '    26.039       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.0060       1.0000          .0000       .10000E+07
    18 'Prefactor '    5.2374       1.0000          .0000       .10000E+07
    19 'Prefactor '    .92948E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    7.6731       1.0000          .0000       .10000E+07
    21 'Prefactor '    .19573E-06   1.0000          .0000       .10000E+07
    22 'Normalizat'    .98092       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0900       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=   2721.845     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     2830 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.386        1.0163        .33093E-07   -.26334E-02
   2  Prefactor     .11363E-04    35.967        .11953E-05** at limit **
   3  Prefactor     97.475        1.2085       -.64534E-07    .17581E-01
   4  Prefactor     8.1753        14.186       -.48737E-05   -.39345E-02
   5  Prefactor     .38691E-07    21.387        .74981E-05** at limit **
   6  norm          .65614E-07    26.088       -.62107E-05** at limit **
   7  norm          5.4793        8.0834       -.38569E-06    .11962E-02
   8  Prefactor     .29976E-08    16.089       -.31727E-05** at limit **
   9  Prefactor     5.6828        1.9424        .38616E-07    .11562E-02
  10  Prefactor     .55511E-10    7.4324       -.10301E-06** at limit **
  11  norm           .0000        10.492       -.12204E-05** at limit **
  12  Prefactor     .84971E-06    60.829        .30903E-05** at limit **
  13  Prefactor     81.955        4.1078        .48789E-06   -.88614E-01
  14  norm           .0000        2.9327       -.89801E-07** at limit **
  15  norm          1.1775        .50861       -.24486E-08   -.67095E-03
  16  Prefactor     26.068        2.5456       -.43849E-06    .25095E-01
  17  Prefactor     5.0069        4.8930       -.20065E-05   -.18440E-02
  18  Prefactor     5.2394        8.4564       -.93777E-06    .11177E-04
  19  Prefactor     .72088E-05    57.768       -.28919E-05** at limit **
  20  Prefactor     7.6738        1.4875       -.24776E-06   -.80500E-03
  21  Prefactor     .22760E-08    12.333        .15387E-05** at limit **
  22  Normalizat    .98077        .36334        .33736E-04    .43635E-04
  23  Prefactor     1.0901        .25050       -.36174E-05    .64447E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.3859
  Prefactor  = 1.13632e-05
  Prefactor  = 97.475
  Prefactor  = 8.17528
  Prefactor  = 3.86913e-08
  norm       = 6.56142e-08
  norm       = 5.47927
  Prefactor  = 2.9976e-09
  Prefactor  = 5.68277
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 8.49709e-07
  Prefactor  = 81.9551
  norm       = 0
  norm       = 1.17748
  Prefactor  = 26.0681
  Prefactor  = 5.00686
  Prefactor  = 5.23939
  Prefactor  = 7.20879e-06
  Prefactor  = 7.67381
  Prefactor  = 2.27596e-09
  Normalizat = 0.980774
  Prefactor  = 1.09013
 **********
 **   18 **HESSE 
 **********

 FCN=   2721.845     FROM HESSE     STATUS=OK           414 CALLS     3244 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.386        955.00        .17059E-03   -1.5591    
   2  Prefactor     .11363E-04    85.738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     97.475        120.81        .10130E-03   -1.5511    
   4  Prefactor     8.1753        14.898        .35038E-03   -1.5651    
   5  Prefactor     .38691E-07    21.463        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .65614E-07    26.179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.4793        8.1418        .42902E-03   -1.5661    
   8  Prefactor     .29976E-08    16.077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6828        49.151        .42138E-03   -1.5660    
  10  Prefactor     .55511E-10    7.4316        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        10.479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .84971E-06    62.773        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     81.955        113.01        .11040E-03   -1.5527    
  14  norm           .0000        2.9283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1775        .51178        .53711E-03   -1.5686    
  16  Prefactor     26.068        76.399        .19601E-03   -1.5606    
  17  Prefactor     5.0069        13.872        .44922E-03   -1.5663    
  18  Prefactor     5.2394        8.4797        .43898E-03   -1.5662    
  19  Prefactor     .72088E-05    93.909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.6738        23.205        .36178E-03   -1.5653    
  21  Prefactor     .22760E-08    12.342        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .98077        .33732        .71228E-01   -.93677    
  23  Prefactor     1.0901        .22572        .37979E-01   -.89783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63449e-06
Minuit parameter uncertainties:
  1  362.491
  2  0.0624271
  3  120.817
  4  14.8978
  5  0.0018227
  6  0.00262076
  7  8.14182
  8  0.000439617
  9  33.4257
  10  3.19175e-05
  11  3.29226e-05
  12  0.0146067
  13  113.01
  14  7.54945e-06
  15  0.511778
  16  76.4022
  17  13.8725
  18  8.47975
  19  0.0520379
  20  23.2051
  21  0.000336406
  22  0.338057
  23  0.225913
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  2.998e-09  4.396e-04  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.090e+00  2.259e-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:  9.808e-01  3.381e-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: 2.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.64e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/751700/likelihoodResults_695520001_695779201_4FGL_J2141.8-3727_daily_bin1760.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) = 2721.84527638
delta logL = -7.26211073925e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2721.84520493
delta logL = -1.17597892313e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33014E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .99617       1.0000          .0000       10.000    
     3 'Normalizat'    .98092       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0900       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=   2721.845     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      255 TOTAL
                     EDM=   .35E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        10.407        .42118E-03** at limit **
   2  Index         3.3953        2.1116        .99081E-05     .0000    
   3  Normalizat    .98077        1.3117        .58583E-05    .42147E-05
   4  Prefactor     1.0901        1.1554        .28478E-06    .72487E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.39527
  Normalizat = 0.980774
  Prefactor  = 1.09013
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2721.845     FROM HESSE     STATUS=FAILED         9 CALLS      264 TOTAL
                     EDM=   .35E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        10.407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2877        2.2759        .99081E-05   -.32673    
   3  Normalizat    .98077        1.3117        .58583E-05   -.93677    
   4  Prefactor     1.0901        1.1554        .28478E-06   -.89783    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.50101e-13
Minuit parameter uncertainties:
  1  1.43398e-05
  2  2.1887
  3  1.35899
  4  1.18363
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/751700': 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) = 2721.84520376
delta logL = 9.73159330897e-11

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  1.434e-05  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  3.395e+00  2.189e+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.090e+00  1.184e+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:  9.808e-01  1.359e+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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/751700/cmap_HighResolution_695520001_695779201_4FGL_J2141.8-3727_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-02', job_status='DONE', photon_flux_upper_limit='2.09e-07', time_completed='2023-01-19 01:55:35.453436', job_id='751700', GAL2='1.09', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1674122135.45', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='9.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1760' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 01:55:35 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 751700: <4FGL_J2141.8-3727_daily_bin1760> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1760> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Jan 19 01:45:22 2023
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 01:46:43 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 01:46:43 2023
Terminated at Thu Jan 19 01:55:36 2023
Results reported at Thu Jan 19 01:55:36 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1760 325.462 -37.4545 695520001 695779201 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 :                                   468.64 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   532 sec.
    Turnaround time :                            614 sec.

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

