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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1653
RA = 325.462, Dec = -37.4545
tmin = 667785601, tmax = 668044801
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='889353', job_status='RUN', time_executed='2022-03-04 01:16:23.745221', time_epoch_executed='1646385383.75' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889353

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889353/ft1_4FGL_J2141.8-3727_daily_bin1653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889353/ft2_4FGL_J2141.8-3727_daily_bin1653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889353/ft1_4FGL_J2141.8-3727_daily_bin1653.fits outfile=/scratch/kocevski/889353/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1653.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=667785601.0 tmax=668044801.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.33
user 4.05
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/889353/ft2_4FGL_J2141.8-3727_daily_bin1653.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/889353/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1653.fits evtable="EVENTS" outfile="/scratch/kocevski/889353/ft1_filtered_4FGL_J2141.8-3727_daily_bin1653.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.33
sys 0.15
Number of photons that survived the gtmktime cut: 735

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889353/ft1_filtered_4FGL_J2141.8-3727_daily_bin1653.fits" evtable="EVENTS" scfile=/scratch/kocevski/889353/ft2_4FGL_J2141.8-3727_daily_bin1653.fits sctable="SC_DATA" outfile=/scratch/kocevski/889353/ltcube_667785601_668044801_4FGL_J2141.8-3727_daily_bin1653.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/889353/ft2_4FGL_J2141.8-3727_daily_bin1653.fits
.....................!
real 12.44
user 11.85
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889353/ft1_filtered_4FGL_J2141.8-3727_daily_bin1653.fits evtable="EVENTS" scfile=/scratch/kocevski/889353/ft2_4FGL_J2141.8-3727_daily_bin1653.fits sctable="SC_DATA" expcube=/scratch/kocevski/889353/ltcube_667785601_668044801_4FGL_J2141.8-3727_daily_bin1653.fits outfile=/scratch/kocevski/889353/expmap_667785601_668044801_4FGL_J2141.8-3727_daily_bin1653.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/889353/ltcube_667785601_668044801_4FGL_J2141.8-3727_daily_bin1653.fits
.....................!
real 190.47
user 185.30
sys 4.66

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/889353/ft1_filtered_4FGL_J2141.8-3727_daily_bin1653.fits scfile=/scratch/kocevski/889353/ft2_4FGL_J2141.8-3727_daily_bin1653.fits outfile=/scratch/kocevski/889353/cmap_667785601_668044801_4FGL_J2141.8-3727_daily_bin1653.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889353/ft1_filtered_4FGL_J2141.8-3727_daily_bin1653.fits scfile=/scratch/kocevski/889353/ft2_4FGL_J2141.8-3727_daily_bin1653.fits outfile=/scratch/kocevski/889353/cmap_HighResolution_667785601_668044801_4FGL_J2141.8-3727_daily_bin1653.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/889353/ft1_filtered_4FGL_J2141.8-3727_daily_bin1653.fits evtable="EVENTS" scfile=/scratch/kocevski/889353/ft2_4FGL_J2141.8-3727_daily_bin1653.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/889353/Model_4FGL_J2141.8-3727_daily_bin1653.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/889353/ft1_filtered_4FGL_J2141.8-3727_daily_bin1653.fits.....................!
real 62.12
user 60.74
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    129.24       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.868       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.954       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.880       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2075       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .12098E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12849E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22235       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3097       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11244E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.071       1.0000         .10000E-03   10000.    
    14 'norm      '    4.9763       1.0000         .10000E-03   10000.    
    15 'norm      '    1.1183       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9165       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9197       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.855       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .58821       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1656       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=   7895.305     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2626 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     129.27        82.244       -.39366E-05   -.30039E-04
   2  Prefactor     18.878        18.151        .73808E-07    .12043E-04
   3  Prefactor     12.969        23.300       -.13666E-05   -.76818E-06
   4  Prefactor     13.888        8.3119       -.35962E-07    .43621E-04
   5  Prefactor     5.1700        21.980        .23905E-05    .59274E-04
   6  norm          .10000E-03    3.4077       -.13847E-07** at limit **
   7  norm          .10000E-03    1.8640       -.10097E-06** at limit **
   8  Prefactor     .10001E-03    5.5412       -.26333E-05** at limit **
   9  Prefactor     .10000E-03    4.4843       -.54915E-08** at limit **
  10  Prefactor     .35250        4.8928        .70330E-06   -.66188E-05
  11  norm          2.3102        3.5711        .42250E-09    .73714E-04
  12  Prefactor     .10000E-03    9.9639       -.55908E-06** at limit **
  13  Prefactor     11.067        39.264       -.15761E-05    .14689E-04
  14  norm          4.9800        4.0170        .12053E-05    .75983E-03
  15  norm          1.1184        .36739       -.65825E-07    .15318E-03
  16  Prefactor     .10000E-03    17.298        .10883E-05** at limit **
  17  Prefactor     4.9210        6.1781        .12488E-06    .40372E-04
  18  Prefactor     2.9220        3.3863        .99665E-07    .59567E-04
  19  Prefactor     .10000E-03    14.224       -.18505E-05** at limit **
  20  Prefactor     44.863        20.886       -.23623E-06   -.31352E-05
  21  Prefactor     .10000E-03    7.3155        .48468E-07** at limit **
  22  Normalizat    .58768        .18095       -.44916E-06    .19040E-03
  23  Prefactor     1.1657        .11536        .19093E-06    .25017E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 129.274
  Prefactor  = 18.878
  Prefactor  = 12.9695
  Prefactor  = 13.888
  Prefactor  = 5.16997
  norm       = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.352497
  norm       = 2.31019
  Prefactor  = 0.0001
  Prefactor  = 11.067
  norm       = 4.97998
  norm       = 1.11837
  Prefactor  = 0.0001
  Prefactor  = 4.92104
  Prefactor  = 2.92195
  Prefactor  = 0.0001
  Prefactor  = 44.8631
  Prefactor  = 0.0001
  Normalizat = 0.587682
  Prefactor  = 1.16569
 **********
 **   18 **HESSE 
 **********

 FCN=   7895.305     FROM HESSE     STATUS=OK           384 CALLS     3010 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     129.27        82.456        .17708E-03   -1.3429    
   2  Prefactor     18.878        18.157        .92206E-04   -1.4839    
   3  Prefactor     12.969        23.353        .11129E-03   -1.4988    
   4  Prefactor     13.888        8.3100        .10751E-03   -1.4962    
   5  Prefactor     5.1700        21.980        .17615E-03   -1.5253    
   6  norm          .10000E-03    3.4266        .16019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.8014        .42592E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    11.151        .31783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.4891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .35250        54.254        .34708E-02   -1.5589    
  11  norm          2.3102        3.5486        .20280E-03   -1.5404    
  12  Prefactor     .10000E-03    9.9729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.067        39.294        .12041E-03   -1.5043    
  14  norm          4.9800        4.2151        .74101E-03   -1.5262    
  15  norm          1.1184        .36856        .28814E-04   -1.5496    
  16  Prefactor     .10000E-03    17.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.9210        6.1875        .18140E-03   -1.5264    
  18  Prefactor     2.9220        3.3809        .16869E-03   -1.5366    
  19  Prefactor     .10000E-03    14.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     44.863        20.903        .59863E-04   -1.4367    
  21  Prefactor     .10000E-03    7.3284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .58768        .19886        .34921E-03   -1.0851    
  23  Prefactor     1.1657        .12831        .17709E-03   -.87394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34164e-08
Minuit parameter uncertainties:
  1  82.529
  2  18.1625
  3  23.3691
  4  8.31067
  5  21.3331
  6  1.78959e-06
  7  0.000232518
  8  0.000658753
  9  8.65781e-07
  10  8.75316
  11  3.54895
  12  5.62514e-06
  13  39.3865
  14  4.21533
  15  0.368557
  16  8.959e-06
  17  6.18828
  18  3.38108
  19  3.21742e-05
  20  20.9066
  21  9.64751e-08
  22  0.1991
  23  0.128342
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  6.588e-04  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.166e+00  1.283e-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:  5.877e-01  1.991e-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: 6.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/889353/likelihoodResults_667785601_668044801_4FGL_J2141.8-3727_daily_bin1653.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) = 7895.3052646
delta logL = -0.000425261585406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7895.30484031
delta logL = -9.67532287177e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13350E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5655       1.0000          .0000       10.000    
     3 'Normalizat'    .58781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1656       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7895.305     FROM MIGRAD    STATUS=FAILED       104 CALLS      274 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11155E-03    165.56        .33059E-02** at limit **
   2  Index         2.3186        8.3933        .50000        .12804E-04
   3  Normalizat    .58768        .11799E-01    .34921E-03    .27672E-05
   4  Prefactor     1.1657        .82550E-02    .17709E-03    .38519E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7895.305     FROM SIMPLEX   STATUS=UNCHANGED    123 CALLS      397 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11155E-03    165.56        .79588E-03** at limit **
   2  Index         2.3186        8.3933        .57881E-03    .12804E-04
   3  Normalizat    .58768        .11799E-01    .47467E-05    .27672E-05
   4  Prefactor     1.1657        .82550E-02    .18913E-05    .38519E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7895.305     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      451 TOTAL
                     EDM=   .61E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5533        .66118E-01** at limit **
   2  Index         2.2281        6.0614        .50000       -.55456E-07
   3  Normalizat    .58768        .25798E-02    .13968E-04   -.29300E-04
   4  Prefactor     1.1657        .18049E-02    .70834E-05   -.53285E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22809
  Normalizat = 0.587681
  Prefactor  = 1.16569
 **********
 **   18 **HESSE 
 **********

 FCN=   7895.305     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      482 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    192.60        .35078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2281        6.9195        .50000       -.58762    
   3  Normalizat    .58768        .12408E-01    .27937E-05   -1.0851    
   4  Prefactor     1.1657        .86820E-02    .14167E-05   -.87394    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48911e-11
Minuit parameter uncertainties:
  1  9.71386e-06
  2  272.986
  3  0.0124078
  4  0.00868203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889353': 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) = 7895.30483709
delta logL = 2.25578969548e-06

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  9.714e-06  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.228e+00  2.730e+02  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.166e+00  8.682e-03  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:  5.877e-01  1.241e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/889353/cmap_HighResolution_667785601_668044801_4FGL_J2141.8-3727_daily_bin1653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-03', job_status='DONE', photon_flux_upper_limit='6.66e-08', time_completed='2022-03-04 01:28:55.667222', job_id='889353', GAL2='1.17', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1646386135.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='2.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1653' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar  4 01:28:55 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 889353: <4FGL_J2141.8-3727_daily_bin1653> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1653> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Mar  4 01:15:40 2022
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar  4 01:16:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar  4 01:16:16 2022
Terminated at Fri Mar  4 01:28:56 2022
Results reported at Fri Mar  4 01:28:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1653 325.462 -37.4545 667785601 668044801 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 :                                   752.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            796 sec.

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

