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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1124
RA = 325.462, Dec = -37.4545
tmin = 530668801, tmax = 530928001
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='682811', job_status='RUN', time_executed='2021-09-27 00:18:13.995120', time_epoch_executed='1632727094.0' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682811

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682811/ft1_4FGL_J2141.8-3727_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682811/ft2_4FGL_J2141.8-3727_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682811/ft1_4FGL_J2141.8-3727_daily_bin1124.fits outfile=/scratch/kocevski/682811/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1124.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=530668801.0 tmax=530928001.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.62
user 3.38
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682811/ft1_filtered_4FGL_J2141.8-3727_daily_bin1124.fits" evtable="EVENTS" scfile=/scratch/kocevski/682811/ft2_4FGL_J2141.8-3727_daily_bin1124.fits sctable="SC_DATA" outfile=/scratch/kocevski/682811/ltcube_530668801_530928001_4FGL_J2141.8-3727_daily_bin1124.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/682811/ft2_4FGL_J2141.8-3727_daily_bin1124.fits
.....................!
real 12.98
user 12.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682811/ft1_filtered_4FGL_J2141.8-3727_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/682811/ft2_4FGL_J2141.8-3727_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/682811/ltcube_530668801_530928001_4FGL_J2141.8-3727_daily_bin1124.fits outfile=/scratch/kocevski/682811/expmap_530668801_530928001_4FGL_J2141.8-3727_daily_bin1124.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/682811/ltcube_530668801_530928001_4FGL_J2141.8-3727_daily_bin1124.fits
.....................!
real 190.13
user 185.06
sys 4.53

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/682811/ft1_filtered_4FGL_J2141.8-3727_daily_bin1124.fits scfile=/scratch/kocevski/682811/ft2_4FGL_J2141.8-3727_daily_bin1124.fits outfile=/scratch/kocevski/682811/cmap_530668801_530928001_4FGL_J2141.8-3727_daily_bin1124.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682811/ft1_filtered_4FGL_J2141.8-3727_daily_bin1124.fits scfile=/scratch/kocevski/682811/ft2_4FGL_J2141.8-3727_daily_bin1124.fits outfile=/scratch/kocevski/682811/cmap_HighResolution_530668801_530928001_4FGL_J2141.8-3727_daily_bin1124.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.58
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/682811/ft1_filtered_4FGL_J2141.8-3727_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/682811/ft2_4FGL_J2141.8-3727_daily_bin1124.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682811/Model_4FGL_J2141.8-3727_daily_bin1124.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/682811/ft1_filtered_4FGL_J2141.8-3727_daily_bin1124.fits.....................!
real 68.02
user 66.75
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.359       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.313       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3874       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9801       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    21.139       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.8790       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9767       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .36932       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.2967       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2349       1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.948       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97705       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99982       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=   9353.696     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2520 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.029       -.31767E-04** at limit **
   2  Prefactor     11.342        16.745        .25040E-06   -.30805E-04
   3  Prefactor     31.315        22.024        .33439E-06   -.19057E-05
   4  Prefactor     5.3876        5.4538        .84634E-06   -.31077E-03
   5  Prefactor     7.9772        25.329       -.30681E-05   -.24761E-04
   6  norm          .10000E-03    1.5345        .10603E-07** at limit **
   7  norm          21.140        6.2150        .15233E-06    .16153E-04
   8  Prefactor     .10000E-03    2.1932       -.80442E-08** at limit **
   9  Prefactor     .10000E-03    3.6691       -.29153E-07** at limit **
  10  Prefactor     .10000E-03    3.4465       -.88594E-08** at limit **
  11  norm          .10000E-03    2.3541       -.85127E-08** at limit **
  12  Prefactor     .10000E-03    11.276       -.12167E-06** at limit **
  13  Prefactor     .10000E-03    24.190       -.10784E-04** at limit **
  14  norm          2.8797        3.8469       -.61684E-06   -.80182E-03
  15  norm          1.9767        .43133        .23567E-07    .77789E-03
  16  Prefactor     .10000E-03    21.957        .60004E-05** at limit **
  17  Prefactor     .39644        5.4352       -.22205E-05    .60606E-03
  18  Prefactor     7.2965        4.0082        .89385E-07   -.28756E-03
  19  Prefactor     .10000E-03    55.886        .31032E-04** at limit **
  20  Prefactor     4.2315        36.733       -.57787E-05    .73796E-04
  21  Prefactor     33.941        23.749       -.14994E-05    .66506E-04
  22  Normalizat    .97709        .16819        .17494E-05    .19877E-03
  23  Prefactor     .99980        .10490       -.54847E-06    .41155E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.3417
  Prefactor  = 31.3153
  Prefactor  = 5.38755
  Prefactor  = 7.97717
  norm       = 0.0001
  norm       = 21.1399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.87967
  norm       = 1.97671
  Prefactor  = 0.0001
  Prefactor  = 0.396437
  Prefactor  = 7.29652
  Prefactor  = 0.0001
  Prefactor  = 4.23153
  Prefactor  = 33.9406
  Normalizat = 0.977087
  Prefactor  = 0.999801
 **********
 **   18 **HESSE 
 **********

 FCN=   9353.696     FROM HESSE     STATUS=OK           372 CALLS     2892 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.342        16.751        .11887E-03   -1.5034    
   3  Prefactor     31.315        22.046        .71603E-04   -1.4588    
   4  Prefactor     5.3876        5.4317        .17313E-03   -1.5244    
   5  Prefactor     7.9772        25.263        .14194E-03   -1.5143    
   6  norm          .10000E-03    1.5348        .11700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          21.140        6.2024        .87116E-04   -1.4788    
   8  Prefactor     .10000E-03    2.2058        .13984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.6717        .18092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.4668        .17530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.3714        .14489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8797        3.8704        .19875E-03   -1.5369    
  15  norm          1.9767        .43286        .27462E-04   -1.5427    
  16  Prefactor     .10000E-03    22.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .39644        28.962        .39901E-02   -1.5582    
  18  Prefactor     7.2965        4.0136        .13864E-03   -1.5168    
  19  Prefactor     .10000E-03    56.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.2315        36.036        .19581E-03   -1.5297    
  21  Prefactor     33.941        23.721        .68777E-04   -1.4542    
  22  Normalizat    .97709        .19498        .30149E-03   -.93802    
  23  Prefactor     .99980        .12155        .19921E-03   -.92736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75867e-09
Minuit parameter uncertainties:
  1  6.72293e-05
  2  16.7574
  3  22.0515
  4  5.43219
  5  25.2973
  6  1.23721e-07
  7  6.20259
  8  1.48637e-06
  9  6.41974e-09
  10  2.60865e-06
  11  8.24849e-07
  12  1.39582e-05
  13  1.45667e-05
  14  3.87071
  15  0.432859
  16  3.87351e-05
  17  6.77946
  18  4.01372
  19  0.000116046
  20  24.7171
  21  23.7275
  22  0.195119
  23  0.121579
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.486e-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:  9.998e-01  1.216e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  9.771e-01  1.951e-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: 5.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682811/likelihoodResults_530668801_530928001_4FGL_J2141.8-3727_daily_bin1124.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) = 9353.69802911
delta logL = -0.00216106776497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9353.695868
delta logL = 4.44088072982e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6075       1.0000          .0000       10.000    
     3 'Normalizat'    .97709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99978       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=   9353.689     FROM MIGRAD    STATUS=CONVERGED    191 CALLS      345 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82041E-01    .65431        .30111E-01   -.26420E-02
   2  Index         .88199        1.0253        .50000       -.10943E-03
   3  Normalizat    .97733        .17457        .30148E-03   -.43629E-03
   4  Prefactor     .99928        .11733        .19921E-03   -.53042E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0820412
  Index      = 0.881987
  Normalizat = 0.977328
  Prefactor  = 0.999277
 **********
 **   18 **HESSE 
 **********

 FCN=   9353.689     FROM HESSE     STATUS=OK            31 CALLS      376 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82041E-01    1.5688        .14975E-02   -1.5765    
   2  Index         .88199        1.5206        .34252E-01   -.96773    
   3  Normalizat    .97733        .17469        .12059E-04   -.93794    
   4  Prefactor     .99928        .11746        .39842E-04   -.92754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32369e-07
Minuit parameter uncertainties:
  1  0.717095
  2  1.60488
  3  0.17479
  4  0.117486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682811': 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) = 9353.68877879
delta logL = 0.00708925476465

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  8.204e-02  7.171e-01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  8.820e-01  1.605e+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.993e-01  1.175e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  9.773e-01  1.748e-01  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/682811/cmap_HighResolution_530668801_530928001_4FGL_J2141.8-3727_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-03', job_status='DONE', photon_flux_upper_limit='5.13e-08', time_completed='2021-09-27 00:31:51.030973', job_id='682811', GAL2='1.00', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632727911.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='7.09e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1124' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:31:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 682811: <4FGL_J2141.8-3727_daily_bin1124> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1124> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 27 00:15:33 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:18:00 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:18:00 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_bin1124 325.462 -37.4545 530668801 530928001 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 :                                   812.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            978 sec.

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

