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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1482
RA = 325.462, Dec = -37.4545
tmin = 623462401, tmax = 623721601
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='685495', job_status='RUN', time_executed='2021-09-27 00:26:15.555411', time_epoch_executed='1632727575.56' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1482'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/685495

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/685495/ft1_4FGL_J2141.8-3727_daily_bin1482.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/685495/ft2_4FGL_J2141.8-3727_daily_bin1482.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/685495/ft1_4FGL_J2141.8-3727_daily_bin1482.fits outfile=/scratch/kocevski/685495/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1482.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=623462401.0 tmax=623721601.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.80
user 2.53
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/685495/ft1_filtered_4FGL_J2141.8-3727_daily_bin1482.fits" evtable="EVENTS" scfile=/scratch/kocevski/685495/ft2_4FGL_J2141.8-3727_daily_bin1482.fits sctable="SC_DATA" outfile=/scratch/kocevski/685495/ltcube_623462401_623721601_4FGL_J2141.8-3727_daily_bin1482.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/685495/ft2_4FGL_J2141.8-3727_daily_bin1482.fits
.....................!
real 16.17
user 15.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/685495/ft1_filtered_4FGL_J2141.8-3727_daily_bin1482.fits evtable="EVENTS" scfile=/scratch/kocevski/685495/ft2_4FGL_J2141.8-3727_daily_bin1482.fits sctable="SC_DATA" expcube=/scratch/kocevski/685495/ltcube_623462401_623721601_4FGL_J2141.8-3727_daily_bin1482.fits outfile=/scratch/kocevski/685495/expmap_623462401_623721601_4FGL_J2141.8-3727_daily_bin1482.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/685495/ltcube_623462401_623721601_4FGL_J2141.8-3727_daily_bin1482.fits
.....................!
real 191.47
user 186.50
sys 4.54

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/685495/ft1_filtered_4FGL_J2141.8-3727_daily_bin1482.fits scfile=/scratch/kocevski/685495/ft2_4FGL_J2141.8-3727_daily_bin1482.fits outfile=/scratch/kocevski/685495/cmap_623462401_623721601_4FGL_J2141.8-3727_daily_bin1482.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.97
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/685495/ft1_filtered_4FGL_J2141.8-3727_daily_bin1482.fits scfile=/scratch/kocevski/685495/ft2_4FGL_J2141.8-3727_daily_bin1482.fits outfile=/scratch/kocevski/685495/cmap_HighResolution_623462401_623721601_4FGL_J2141.8-3727_daily_bin1482.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=325.462 yref=-37.4545 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.300       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.3364       1.0000         .10000E-03   10000.    
     3 'Prefactor '    61.170       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4255       1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.166       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.4117       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .46139E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4572       1.0000         .10000E-03   10000.    
    11 'norm      '    .42325       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.346       1.0000         .10000E-03   10000.    
    14 'norm      '    .42500       1.0000         .10000E-03   10000.    
    15 'norm      '    .93425       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3510       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.554       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .66675       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3476       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=   8212.450     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2577 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.301        67.103        .31891E-06    .74434E-05
   2  Prefactor     9.3374        26.352        .22759E-06   -.10205E-04
   3  Prefactor     61.166        31.018       -.15012E-06   -.70042E-04
   4  Prefactor     9.4251        8.2697        .29977E-06    .71213E-05
   5  Prefactor     40.159        34.238       -.61219E-06   -.61481E-04
   6  norm          .10000E-03    3.8292        .12176E-07** at limit **
   7  norm          4.4126        5.1828        .93156E-06    .27888E-03
   8  Prefactor     .10001E-03    4.5420        .11738E-06** at limit **
   9  Prefactor     .10000E-03    22.675        .45237E-06** at limit **
  10  Prefactor     8.4524        9.0214        .30720E-07   -.12195E-03
  11  norm          .41258        4.3572       -.29006E-06   -.42656E-04
  12  Prefactor     .10000E-03    8.4694        .23265E-06** at limit **
  13  Prefactor     47.368        56.129        .32629E-05    .16367E-03
  14  norm          .42308        3.5771        .27996E-05   -.42261E-03
  15  norm          .93427        .33677       -.55758E-07   -.59544E-03
  16  Prefactor     .10000E-03    14.855       -.30077E-07** at limit **
  17  Prefactor     3.3506        4.7340       -.91654E-07   -.16570E-03
  18  Prefactor     .10000E-03    2.5957       -.16726E-08** at limit **
  19  Prefactor     .10000E-03    9.9212        .75686E-07** at limit **
  20  Prefactor     .10000E-03    5.5289       -.90765E-09** at limit **
  21  Prefactor     11.553        16.736        .42221E-06    .21924E-04
  22  Normalizat    .66686        .19705       -.16127E-05   -.74877E-04
  23  Prefactor     1.3476        .12736        .17926E-06   -.15176E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.3015
  Prefactor  = 9.33743
  Prefactor  = 61.1661
  Prefactor  = 9.42514
  Prefactor  = 40.1591
  norm       = 0.0001
  norm       = 4.41257
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 8.45237
  norm       = 0.412577
  Prefactor  = 0.0001
  Prefactor  = 47.3683
  norm       = 0.423076
  norm       = 0.93427
  Prefactor  = 0.0001
  Prefactor  = 3.35056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5527
  Normalizat = 0.666861
  Prefactor  = 1.34756
 **********
 **   18 **HESSE 
 **********

 FCN=   8212.450     FROM HESSE     STATUS=OK           380 CALLS     2957 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.301        67.128        .23607E-03   -1.4005    
   2  Prefactor     9.3374        26.371        .13116E-03   -1.5097    
   3  Prefactor     61.166        31.074        .51302E-04   -1.4142    
   4  Prefactor     9.4251        8.2649        .13054E-03   -1.5094    
   5  Prefactor     40.159        34.224        .63246E-04   -1.4440    
   6  norm          .10000E-03    3.8401        .17319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.4126        5.2397        .19174E-03   -1.5288    
   8  Prefactor     .10001E-03    9.9403        .56871E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.4524        9.0645        .13785E-03   -1.5126    
  11  norm          .41258        13.717        .35978E-02   -1.5580    
  12  Prefactor     .10000E-03    8.4670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     47.368        59.534        .58274E-04   -1.4330    
  14  norm          .42308        3.9336        .33873E-03   -1.5578    
  15  norm          .93427        .33876        .30430E-04   -1.5515    
  16  Prefactor     .10000E-03    14.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3506        4.7375        .22108E-03   -1.5342    
  18  Prefactor     .10000E-03    2.6434        .14249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.9230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.5306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.553        16.753        .11786E-03   -1.5028    
  22  Normalizat    .66686        .21130        .38225E-03   -1.0522    
  23  Prefactor     1.3476        .13851        .19088E-03   -.81904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.17486e-08
Minuit parameter uncertainties:
  1  67.1983
  2  26.4038
  3  31.0826
  4  8.26594
  5  34.2407
  6  3.16543e-07
  7  5.24027
  8  0.000471779
  9  8.84259e-05
  10  9.06594
  11  4.75851
  12  4.2422e-05
  13  59.6086
  14  2.58
  15  0.338766
  16  4.78445e-06
  17  4.73804
  18  5.25761e-06
  19  8.97166e-06
  20  1.48715e-06
  21  16.7599
  22  0.211561
  23  0.13855
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  4.718e-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.348e+00  1.385e-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:  6.669e-01  2.116e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/685495/likelihoodResults_623462401_623721601_4FGL_J2141.8-3727_daily_bin1482.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) = 8212.45010043
delta logL = -3.09082170133e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8212.45010041
delta logL = -3.08832786686e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96353E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6227       1.0000          .0000       10.000    
     3 'Normalizat'    .66682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3476       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.

 FCN=   8209.844     FROM MIGRAD    STATUS=CONVERGED    188 CALLS      360 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48592E-03    .80717E-02    .27299E-03** at limit **
   2  Index        10.0000        6.9175        .50000    ** at limit **
   3  Normalizat    .51885        .11616        .96852E-01   -.88611E-05
   4  Prefactor     1.4072        .78805E-01    .31828E-01   -.28584E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000485916
  Index      = 10
  Normalizat = 0.518847
  Prefactor  = 1.40725
 **********
 **   18 **HESSE 
 **********

 FCN=   8209.844     FROM HESSE     STATUS=OK            39 CALLS      399 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48592E-03    .28554E-03    .11457E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .43331        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .51885        .20891        .42924E-03   -1.1155    
   4  Prefactor     1.4072        .13946        .18719E-03   -.80172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18952e-11
Minuit parameter uncertainties:
  1  0.000285536
  2  3.73966e-06
  3  0.209229
  4  0.1395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/685495': 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) = 8209.8442479
delta logL = 2.60582161976

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  4.859e-04  2.855e-04  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.000e+01  3.740e-06  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.407e+00  1.395e-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.188e-01  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.74
Ra Dec: 325.462 -37.455
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.36e-07 +/- 7.73e-08
Energy Flux (Free Index): 1.52e-05 +/- 8.70e-06

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/685495/cmap_HighResolution_623462401_623721601_4FGL_J2141.8-3727_daily_bin1482.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.08e-03', comment='SUCCESS', energy_flux2='1.52e-05', dlogl='2.61e+00', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-09-27 00:40:35.459819', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='8.70e-06', EG='0.67', time_epoch_completed='1632728435.46', return_code='0', job_id='685495', GAL2='1.41', EG2='0.52', return_code2='0', photon_flux_error2='7.73e-08', ts2='5.74', photon_index='2.62' WHERE bin_id='1482' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:40:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 685495: <4FGL_J2141.8-3727_daily_bin1482> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1482> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 00:25:19 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:25:30 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:25:30 2021
Terminated at Mon Sep 27 00:40:36 2021
Results reported at Mon Sep 27 00:40:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1482 325.462 -37.4545 623462401 623721601 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 :                                   757.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            917 sec.

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

