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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin555
RA = 325.462, Dec = -37.4545
tmin = 383184001, tmax = 383443201
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='679859', job_status='RUN', time_executed='2021-09-27 00:06:26.482428', time_epoch_executed='1632726386.48' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/679859

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/679859/ft1_4FGL_J2141.8-3727_daily_bin555.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/679859/ft2_4FGL_J2141.8-3727_daily_bin555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/679859/ft1_4FGL_J2141.8-3727_daily_bin555.fits outfile=/scratch/kocevski/679859/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin555.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=383184001.0 tmax=383443201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.41
user 3.21
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/679859/ft2_4FGL_J2141.8-3727_daily_bin555.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/679859/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin555.fits evtable="EVENTS" outfile="/scratch/kocevski/679859/ft1_filtered_4FGL_J2141.8-3727_daily_bin555.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/679859/ft1_filtered_4FGL_J2141.8-3727_daily_bin555.fits" evtable="EVENTS" scfile=/scratch/kocevski/679859/ft2_4FGL_J2141.8-3727_daily_bin555.fits sctable="SC_DATA" outfile=/scratch/kocevski/679859/ltcube_383184001_383443201_4FGL_J2141.8-3727_daily_bin555.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/679859/ft2_4FGL_J2141.8-3727_daily_bin555.fits
.....................!
real 13.35
user 12.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/679859/ft1_filtered_4FGL_J2141.8-3727_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/679859/ft2_4FGL_J2141.8-3727_daily_bin555.fits sctable="SC_DATA" expcube=/scratch/kocevski/679859/ltcube_383184001_383443201_4FGL_J2141.8-3727_daily_bin555.fits outfile=/scratch/kocevski/679859/expmap_383184001_383443201_4FGL_J2141.8-3727_daily_bin555.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/679859/ltcube_383184001_383443201_4FGL_J2141.8-3727_daily_bin555.fits
.....................!
real 191.04
user 185.47
sys 5.05

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/679859/ft1_filtered_4FGL_J2141.8-3727_daily_bin555.fits scfile=/scratch/kocevski/679859/ft2_4FGL_J2141.8-3727_daily_bin555.fits outfile=/scratch/kocevski/679859/cmap_383184001_383443201_4FGL_J2141.8-3727_daily_bin555.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=325.462 yref=-37.4545 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/679859/ft1_filtered_4FGL_J2141.8-3727_daily_bin555.fits scfile=/scratch/kocevski/679859/ft2_4FGL_J2141.8-3727_daily_bin555.fits outfile=/scratch/kocevski/679859/cmap_HighResolution_383184001_383443201_4FGL_J2141.8-3727_daily_bin555.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9768       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5075       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2345       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.6108       1.0000         .10000E-03   10000.    
     7 'norm      '    9.2821       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5665       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.751       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    65.659       1.0000         .10000E-03   10000.    
    14 'norm      '    18.575       1.0000         .10000E-03   10000.    
    15 'norm      '    .92847       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8397       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0788       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.545       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .73809       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0455       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=   9242.974     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2534 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    100.54       -.10657E-05** at limit **
   2  Prefactor     5.9765        15.729       -.20723E-06   -.11037E-03
   3  Prefactor     3.5046        28.009        .83654E-06   -.56608E-05
   4  Prefactor     5.2348        4.9497       -.11370E-06   -.58528E-03
   5  Prefactor     .10000E-03    5.7268       -.23255E-07** at limit **
   6  norm          1.6107        3.3428       -.63851E-07   -.54610E-04
   7  norm          9.2821        4.0576        .24950E-06   -.18967E-05
   8  Prefactor     .10000E-03    2.5870        .30247E-07** at limit **
   9  Prefactor     7.5667        8.2677        .31524E-06    .69480E-05
  10  Prefactor     .10000E-03    1.5775       -.48555E-07** at limit **
  11  norm          11.751        8.3193       -.75004E-07   -.84875E-05
  12  Prefactor     .10000E-03    8.9770        .48170E-06** at limit **
  13  Prefactor     65.651        44.575       -.56845E-05   -.15047E-04
  14  norm          18.575        5.1604        .16367E-06   -.26139E-04
  15  norm          .92846        .31358        .65924E-08    .20505E-03
  16  Prefactor     .10000E-03    36.347        .55657E-06** at limit **
  17  Prefactor     3.8404        3.3056        .14974E-06   -.84004E-03
  18  Prefactor     2.0792        2.4364       -.55110E-07   -.33438E-04
  19  Prefactor     .10000E-03    11.855       -.12247E-06** at limit **
  20  Prefactor     13.550        18.847       -.13188E-05   -.26962E-05
  21  Prefactor     .10000E-03    4.7507        .13563E-06** at limit **
  22  Normalizat    .73797        .15398        .61412E-06   -.16266E-04
  23  Prefactor     1.0456        .10285       -.53443E-07    .32803E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.97646
  Prefactor  = 3.50463
  Prefactor  = 5.23476
  Prefactor  = 0.0001
  norm       = 1.61071
  norm       = 9.28213
  Prefactor  = 0.0001
  Prefactor  = 7.56668
  Prefactor  = 0.0001
  norm       = 11.7512
  Prefactor  = 0.0001
  Prefactor  = 65.6507
  norm       = 18.5749
  norm       = 0.928464
  Prefactor  = 0.0001
  Prefactor  = 3.84039
  Prefactor  = 2.07919
  Prefactor  = 0.0001
  Prefactor  = 13.5495
  Prefactor  = 0.0001
  Normalizat = 0.737975
  Prefactor  = 1.04558
 **********
 **   18 **HESSE 
 **********

 FCN=   9242.974     FROM HESSE     STATUS=OK           372 CALLS     2906 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    100.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.9765        16.367        .82123E-03   -1.5219    
   3  Prefactor     3.5046        28.165        .21587E-03   -1.5334    
   4  Prefactor     5.2348        5.6886        .87845E-03   -1.5250    
   5  Prefactor     .10000E-03    5.7350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6107        3.3053        .24732E-03   -1.5454    
   7  norm          9.2821        4.0588        .12330E-03   -1.5099    
   8  Prefactor     .10000E-03    2.6207        .15094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.5667        8.2674        .14579E-03   -1.5158    
  10  Prefactor     .10000E-03    1.5813        .11792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.751        8.3277        .11686E-03   -1.5022    
  12  Prefactor     .10000E-03    9.0672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     65.651        44.638        .49529E-04   -1.4086    
  14  norm          18.575        5.1690        .92932E-04   -1.4846    
  15  norm          .92846        .31458        .29508E-04   -1.5515    
  16  Prefactor     .10000E-03    36.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8404        6.0400        .10298E-02   -1.5316    
  18  Prefactor     2.0792        2.4322        .15717E-03   -1.5420    
  19  Prefactor     .10000E-03    11.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.550        18.913        .10883E-03   -1.4972    
  21  Prefactor     .10000E-03    4.7547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .73797        .17886        .31632E-03   -1.0241    
  23  Prefactor     1.0456        .11705        .18530E-03   -.91225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77647e-10
Minuit parameter uncertainties:
  1  3.14917e-05
  2  16.3798
  3  19.8829
  4  5.68919
  5  4.24098e-06
  6  3.30568
  7  4.05892
  8  2.17293e-06
  9  8.26862
  10  9.80062e-07
  11  8.32854
  12  9.45705e-05
  13  44.6603
  14  5.16915
  15  0.314584
  16  2.43619e-05
  17  6.04096
  18  2.43227
  19  1.10718e-06
  20  18.9216
  21  1.1735e-06
  22  0.178997
  23  0.117074
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  2.173e-06  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.046e+00  1.171e-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:  7.380e-01  1.790e-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: 4.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/679859/likelihoodResults_383184001_383443201_4FGL_J2141.8-3727_daily_bin555.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) = 9242.97620137
delta logL = -0.00181786291978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9242.9743835
delta logL = 7.41783878766e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6195       1.0000          .0000       10.000    
     3 'Normalizat'    .73797       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0456       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=   9242.974     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      242 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10018E-03    137.82        .15101E-02** at limit **
   2  Index         2.5817        8.3764        .50000        .83704E-05
   3  Normalizat    .73797        .30046E-01    .31632E-03   -.73677E-04
   4  Prefactor     1.0456        .20779E-01    .18530E-03   -.74408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100175
  Index      = 2.58169
  Normalizat = 0.737975
  Prefactor  = 1.04558
 **********
 **   18 **HESSE 
 **********

 FCN=   9242.974     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10018E-03    478.11        .30203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5817        8.1105        .50000       -.50483    
   3  Normalizat    .73797        .76668E-01    .12653E-04   -1.0241    
   4  Prefactor     1.0456        .52993E-01    .37060E-04   -.91225    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.71881e-08
Minuit parameter uncertainties:
  1  0.018462
  2  1781.31
  3  0.0766791
  4  0.0529958
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/679859': 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) = 9242.97438345
delta logL = 5.61212800676e-08

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.002e-04  1.846e-02  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.582e+00  1.781e+03  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  5.479e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.046e+00  5.300e-02  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  7.380e-01  7.668e-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/679859/cmap_HighResolution_383184001_383443201_4FGL_J2141.8-3727_daily_bin555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.86e-03', job_status='DONE', photon_flux_upper_limit='4.93e-08', time_completed='2021-09-27 00:19:59.796526', job_id='679859', GAL2='1.05', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632727199.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='5.61e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='555' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:19:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 679859: <4FGL_J2141.8-3727_daily_bin555> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin555> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 00:05:35 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:06:05 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:06:05 2021
Terminated at Mon Sep 27 00:20:00 2021
Results reported at Mon Sep 27 00:20:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin555 325.462 -37.4545 383184001 383443201 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 :                                   810.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             342.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            865 sec.

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

