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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1046
RA = 325.462, Dec = -37.4545
tmin = 510451201, tmax = 510710401
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='682700', job_status='RUN', time_executed='2021-09-27 00:19:52.010140', time_epoch_executed='1632727192.01' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682700

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682700/ft1_4FGL_J2141.8-3727_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682700/ft2_4FGL_J2141.8-3727_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682700/ft1_4FGL_J2141.8-3727_daily_bin1046.fits outfile=/scratch/kocevski/682700/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1046.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=510451201.0 tmax=510710401.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.23
user 3.76
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682700/ft1_filtered_4FGL_J2141.8-3727_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/682700/ft2_4FGL_J2141.8-3727_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/682700/ltcube_510451201_510710401_4FGL_J2141.8-3727_daily_bin1046.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/682700/ft2_4FGL_J2141.8-3727_daily_bin1046.fits
.....................!
real 14.43
user 14.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682700/ft1_filtered_4FGL_J2141.8-3727_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/682700/ft2_4FGL_J2141.8-3727_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/682700/ltcube_510451201_510710401_4FGL_J2141.8-3727_daily_bin1046.fits outfile=/scratch/kocevski/682700/expmap_510451201_510710401_4FGL_J2141.8-3727_daily_bin1046.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/682700/ltcube_510451201_510710401_4FGL_J2141.8-3727_daily_bin1046.fits
.....................!
real 192.49
user 187.54
sys 4.59

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/682700/ft1_filtered_4FGL_J2141.8-3727_daily_bin1046.fits scfile=/scratch/kocevski/682700/ft2_4FGL_J2141.8-3727_daily_bin1046.fits outfile=/scratch/kocevski/682700/cmap_510451201_510710401_4FGL_J2141.8-3727_daily_bin1046.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 1.34
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682700/ft1_filtered_4FGL_J2141.8-3727_daily_bin1046.fits scfile=/scratch/kocevski/682700/ft2_4FGL_J2141.8-3727_daily_bin1046.fits outfile=/scratch/kocevski/682700/cmap_HighResolution_510451201_510710401_4FGL_J2141.8-3727_daily_bin1046.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/682700/ft1_filtered_4FGL_J2141.8-3727_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/682700/ft2_4FGL_J2141.8-3727_daily_bin1046.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682700/Model_4FGL_J2141.8-3727_daily_bin1046.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/682700/ft1_filtered_4FGL_J2141.8-3727_daily_bin1046.fits.....................!
real 54.13
user 52.74
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    96.670       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.525       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.044       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.515       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.166       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.755       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0868       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.8544       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9791       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3830       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.599       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1824       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91120       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=   6504.051     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2478 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     96.667        152.47       -.13191E-06   -.11137E-04
   2  Prefactor     30.521        28.109       -.33626E-06   -.72378E-04
   3  Prefactor     18.043        23.501       -.30331E-07   -.26293E-04
   4  Prefactor     .10000E-03    2.9508        .66956E-09** at limit **
   5  Prefactor     .10000E-03    11.579        .32389E-06** at limit **
   6  norm          .10000E-03    3.6063       -.46069E-07** at limit **
   7  norm          10.515        5.1123       -.83484E-07   -.14023E-03
   8  Prefactor     11.162        9.9987       -.37429E-06   -.12375E-03
   9  Prefactor     18.751        21.004       -.26494E-06   -.57227E-04
  10  Prefactor     1.0864        13.920        .34216E-05   -.15810E-03
  11  norm          .10000E-03    2.4812       -.37109E-07** at limit **
  12  Prefactor     .10000E-03    8.7050       -.13950E-06** at limit **
  13  Prefactor     .10000E-03    50.421       -.77583E-06** at limit **
  14  norm          6.8537        6.0772        .15176E-06   -.91411E-04
  15  norm          1.9791        .53996       -.74323E-08   -.14671E-03
  16  Prefactor     .10000E-03    19.369       -.60426E-06** at limit **
  17  Prefactor     .10000E-03    2.2067        .19679E-07** at limit **
  18  Prefactor     3.3839        4.1617        .86456E-06    .38382E-03
  19  Prefactor     .10000E-03    21.019        .11251E-05** at limit **
  20  Prefactor     18.600        17.672        .74749E-07    .11121E-05
  21  Prefactor     .10000E-03    14.499       -.42833E-06** at limit **
  22  Normalizat    1.1821        .20690       -.60635E-06   -.42929E-04
  23  Prefactor     .91134        .13174        .21247E-07   -.12341E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 96.6666
  Prefactor  = 30.5215
  Prefactor  = 18.0429
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.5148
  Prefactor  = 11.1619
  Prefactor  = 18.7509
  Prefactor  = 1.08643
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.85371
  norm       = 1.97907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.38388
  Prefactor  = 0.0001
  Prefactor  = 18.6004
  Prefactor  = 0.0001
  Normalizat = 1.18212
  Prefactor  = 0.911336
 **********
 **   18 **HESSE 
 **********

 FCN=   6504.051     FROM HESSE     STATUS=OK           370 CALLS     2848 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     96.667        152.84        .40882E-04   -1.3738    
   2  Prefactor     30.521        28.278        .72520E-04   -1.4602    
   3  Prefactor     18.043        23.537        .94288E-04   -1.4858    
   4  Prefactor     .10000E-03    2.9613        .13527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.6141        .14958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.515        5.1209        .12251E-03   -1.5059    
   8  Prefactor     11.162        10.027        .11989E-03   -1.5040    
   9  Prefactor     18.751        21.063        .92482E-04   -1.4842    
  10  Prefactor     1.0864        15.853        .46006E-03   -1.5500    
  11  norm          .10000E-03    2.4853        .12405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.7133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    50.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.8537        6.1280        .15325E-03   -1.5184    
  15  norm          1.9791        .54248        .28536E-04   -1.5427    
  16  Prefactor     .10000E-03    19.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.2118        .11699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3839        4.3019        .17926E-03   -1.5340    
  19  Prefactor     .10000E-03    21.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.600        17.699        .92871E-04   -1.4845    
  21  Prefactor     .10000E-03    14.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1821        .23906        .28885E-03   -.87157    
  23  Prefactor     .91134        .15207        .21574E-03   -.95746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87747e-10
Minuit parameter uncertainties:
  1  153.464
  2  28.29
  3  23.5489
  4  1.55911e-06
  5  4.86495e-05
  6  2.12329e-06
  7  5.12108
  8  10.0288
  9  21.0718
  10  8.30241
  11  1.14978e-06
  12  9.14609e-06
  13  0.000159928
  14  6.12854
  15  0.542481
  16  0.000103767
  17  1.50231e-06
  18  4.30229
  19  0.000159165
  20  17.7038
  21  7.05871e-05
  22  0.239284
  23  0.152143
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.116e+01  1.003e+01  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:  9.113e-01  1.521e-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.182e+00  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.87
Ra Dec: 325.462 -37.455
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 5.96e-08 +/- 5.35e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.38e-05

TS (Fixed Index): 1.87
Ra Dec: 325.462 -37.455
Photon Flux Upper Limit: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682700/likelihoodResults_510451201_510710401_4FGL_J2141.8-3727_daily_bin1046.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) = 6504.03307255
delta logL = 0.0178974138898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6504.00921875
delta logL = 0.0417512113518

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0765       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0790       1.0000          .0000       10.000    
     3 'Normalizat'    1.1609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92188       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=   6504.009     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      257 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0713        20.913        .14108E-03    .11395E-03
   2  Index         3.0803        2.3341        .86294E-02    .38308E-04
   3  Normalizat    1.1610        .24080        .29108E-03    .20817E-03
   4  Prefactor     .92181        .15573        .21467E-03   -.43171E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.0713
  Index      = 3.08029
  Normalizat = 1.16098
  Prefactor  = 0.921813
 **********
 **   18 **HESSE 
 **********

 FCN=   6504.009     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0713        14.073        .56432E-05   -1.5140    
   2  Index         3.0803        1.6079        .34518E-03   -.39406    
   3  Normalizat    1.1610        .23441        .11643E-04   -.87817    
   4  Prefactor     .92181        .15207        .42934E-04   -.95383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27263e-09
Minuit parameter uncertainties:
  1  14.0784
  2  1.64232
  3  0.234622
  4  0.152139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682700': 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) = 6504.00921781
delta logL = 0.0417521486961

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  8.071e+00  1.408e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.080e+00  1.642e+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:  9.218e-01  1.521e-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.161e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.97
Ra Dec: 325.462 -37.455
Photon Index (Free Index): 3.08 +/- 1.64
Photon Flux (Free Index): 7.33e-08 +/- 7.03e-08
Energy Flux (Free Index): 1.41e-05 +/- 1.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/682700/cmap_HighResolution_510451201_510710401_4FGL_J2141.8-3727_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', photon_flux='5.96e-08', energy_flux2='1.41e-05', photon_flux_error='5.35e-08', dlogl='4.18e-02', energy_flux='1.53e-05', photon_flux2='7.33e-08', job_status='DONE', time_completed='2021-09-27 00:31:50.560064', photon_index_error2='1.64', photon_index2='3.08', ts='1.87', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='1.23e-05', EG='1.18', time_epoch_completed='1632727910.56', return_code='0', job_id='682700', GAL2='0.92', EG2='1.16', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='7.03e-08', ts2='1.97', photon_index='2.62' WHERE bin_id='1046' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:31:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 682700: <4FGL_J2141.8-3727_daily_bin1046> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1046> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 27 00:15:25 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:17:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 00:17:07 2021
Terminated at Mon Sep 27 00:31:51 2021
Results reported at Mon Sep 27 00:31:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1046 325.462 -37.4545 510451201 510710401 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 :                                   657.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            986 sec.

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

