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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin871
RA = 325.462, Dec = -37.4545
tmin = 465091201, tmax = 465350401
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='681417', job_status='RUN', time_executed='2021-09-27 00:14:14.904835', time_epoch_executed='1632726854.9' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='871'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681417

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681417/ft1_4FGL_J2141.8-3727_daily_bin871.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681417/ft2_4FGL_J2141.8-3727_daily_bin871.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681417/ft1_4FGL_J2141.8-3727_daily_bin871.fits outfile=/scratch/kocevski/681417/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin871.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=465091201.0 tmax=465350401.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.81
user 3.19
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/681417/ft2_4FGL_J2141.8-3727_daily_bin871.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/681417/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin871.fits evtable="EVENTS" outfile="/scratch/kocevski/681417/ft1_filtered_4FGL_J2141.8-3727_daily_bin871.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681417/ft1_filtered_4FGL_J2141.8-3727_daily_bin871.fits" evtable="EVENTS" scfile=/scratch/kocevski/681417/ft2_4FGL_J2141.8-3727_daily_bin871.fits sctable="SC_DATA" outfile=/scratch/kocevski/681417/ltcube_465091201_465350401_4FGL_J2141.8-3727_daily_bin871.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/681417/ft2_4FGL_J2141.8-3727_daily_bin871.fits
.....................!
real 14.99
user 14.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681417/ft1_filtered_4FGL_J2141.8-3727_daily_bin871.fits evtable="EVENTS" scfile=/scratch/kocevski/681417/ft2_4FGL_J2141.8-3727_daily_bin871.fits sctable="SC_DATA" expcube=/scratch/kocevski/681417/ltcube_465091201_465350401_4FGL_J2141.8-3727_daily_bin871.fits outfile=/scratch/kocevski/681417/expmap_465091201_465350401_4FGL_J2141.8-3727_daily_bin871.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/681417/ltcube_465091201_465350401_4FGL_J2141.8-3727_daily_bin871.fits
.....................!
real 192.37
user 187.46
sys 4.17

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/681417/ft1_filtered_4FGL_J2141.8-3727_daily_bin871.fits scfile=/scratch/kocevski/681417/ft2_4FGL_J2141.8-3727_daily_bin871.fits outfile=/scratch/kocevski/681417/cmap_465091201_465350401_4FGL_J2141.8-3727_daily_bin871.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.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/681417/ft1_filtered_4FGL_J2141.8-3727_daily_bin871.fits evtable="EVENTS" scfile=/scratch/kocevski/681417/ft2_4FGL_J2141.8-3727_daily_bin871.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/681417/Model_4FGL_J2141.8-3727_daily_bin871.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/681417/ft1_filtered_4FGL_J2141.8-3727_daily_bin871.fits.....................!
real 61.46
user 59.65
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.237       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29080E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9586       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11156E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.1895       1.0000         .10000E-03   10000.    
     7 'norm      '    10.122       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2455       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0862       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.693       1.0000         .10000E-03   10000.    
    11 'norm      '    3.6402       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11109E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.336       1.0000         .10000E-03   10000.    
    14 'norm      '    10.626       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2900       1.0000         .10000E-03   10000.    
    16 'Prefactor '    69.903       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9942       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.885       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .69022       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0514       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=   7679.194     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2517 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.235        61.601       -.18771E-06   -.16836E-04
   2  Prefactor     .10001E-03    20.980        .46726E-05** at limit **
   3  Prefactor     .10001E-03    88.006       -.71724E-05** at limit **
   4  Prefactor     4.9600        6.9565        .50150E-05   -.92930E-03
   5  Prefactor     .10000E-03    41.993       -.13220E-05** at limit **
   6  norm          2.1897        5.2488        .62949E-06   -.84946E-04
   7  norm          10.122        4.4104        .55418E-07    .37584E-03
   8  Prefactor     1.2499        8.6438        .28440E-05   -.21001E-03
   9  Prefactor     4.0826        13.268        .18193E-05    .33319E-04
  10  Prefactor     18.690        9.6116       -.47842E-06   -.15794E-03
  11  norm          3.6404        7.0669        .11015E-06   -.13233E-03
  12  Prefactor     .10000E-03    8.5794       -.13389E-05** at limit **
  13  Prefactor     41.298        58.959       -.78862E-05   -.39451E-03
  14  norm          10.629        5.4705        .50238E-06   -.25644E-03
  15  norm          1.2899        .40425        .14169E-07    .14070E-03
  16  Prefactor     69.905        36.484        .31303E-06    .71658E-04
  17  Prefactor     .10000E-03    8.9476        .15183E-05** at limit **
  18  Prefactor     2.9952        2.8960        .75725E-07   -.89452E-05
  19  Prefactor     .10000E-03    18.351       -.33273E-05** at limit **
  20  Prefactor     25.889        15.383        .18652E-06   -.15817E-05
  21  Prefactor     .10000E-03    6.2983        .71155E-07** at limit **
  22  Normalizat    .69009        .17187       -.10504E-05   -.88982E-04
  23  Prefactor     1.0514        .11186       -.60560E-06   -.35648E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.2351
  Prefactor  = 0.000100007
  Prefactor  = 0.000100012
  Prefactor  = 4.96002
  Prefactor  = 0.000100002
  norm       = 2.18972
  norm       = 10.122
  Prefactor  = 1.2499
  Prefactor  = 4.08257
  Prefactor  = 18.6898
  norm       = 3.64042
  Prefactor  = 0.0001
  Prefactor  = 41.2979
  norm       = 10.6287
  norm       = 1.2899
  Prefactor  = 69.9048
  Prefactor  = 0.0001
  Prefactor  = 2.99521
  Prefactor  = 0.000100005
  Prefactor  = 25.8893
  Prefactor  = 0.0001
  Normalizat = 0.690091
  Prefactor  = 1.0514
 **********
 **   18 **HESSE 
 **********

 FCN=   7679.194     FROM HESSE     STATUS=OK           370 CALLS     2887 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.235        61.621        .54464E-04   -1.4234    
   2  Prefactor     .10001E-03    21.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    92.606        .42806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9600        7.2182        .90303E-03   -1.5263    
   5  Prefactor     .10000E-03    42.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.1897        5.2266        .27815E-03   -1.5412    
   7  norm          10.122        4.4128        .11679E-03   -1.5072    
   8  Prefactor     1.2499        8.5842        .40125E-03   -1.5484    
   9  Prefactor     4.0826        13.266        .19944E-03   -1.5304    
  10  Prefactor     18.690        9.4870        .92638E-04   -1.4843    
  11  norm          3.6404        7.0378        .21174E-03   -1.5326    
  12  Prefactor     .10000E-03    8.5560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.298        61.732        .62348E-04   -1.4422    
  14  norm          10.629        5.5002        .12291E-03   -1.5056    
  15  norm          1.2899        .40520        .28802E-04   -1.5481    
  16  Prefactor     69.905        36.523        .48012E-04   -1.4034    
  17  Prefactor     .10000E-03    9.2943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.9952        2.8990        .14137E-03   -1.5362    
  19  Prefactor     .10000E-03    18.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     25.889        15.403        .78737E-04   -1.4690    
  21  Prefactor     .10000E-03    6.3064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .69009        .19246        .32424E-03   -1.0429    
  23  Prefactor     1.0514        .12572        .18562E-03   -.91035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35094e-09
Minuit parameter uncertainties:
  1  61.6931
  2  0.000789741
  3  0.00214518
  4  7.21945
  5  0.000511214
  6  5.22768
  7  4.41296
  8  6.55226
  9  13.2753
  10  9.48772
  11  7.03942
  12  4.36616e-06
  13  61.8278
  14  5.5005
  15  0.405202
  16  36.5345
  17  0.000121372
  18  2.89911
  19  0.000600784
  20  15.4057
  21  2.64426e-06
  22  0.192645
  23  0.125754
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.250e+00  6.552e+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

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.051e+00  1.258e-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.901e-01  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 325.462 -37.455
Photon Flux Upper Limit: 8.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/681417/likelihoodResults_465091201_465350401_4FGL_J2141.8-3727_daily_bin871.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) = 7679.19255854
delta logL = 0.00102483866795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7679.19249246
delta logL = 0.0010909182447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1915       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7183       1.0000          .0000       10.000    
     3 'Normalizat'    .68984       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0514       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=   7679.192     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      286 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1912        8.9603        .41715E-03    .52419E-04
   2  Index         2.7172        2.1113        .15303E-01    .33609E-05
   3  Normalizat    .68965        .17838        .32433E-03   -.76905E-04
   4  Prefactor     1.0516        .12379        .18561E-03   -.11125E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.19123
  Index      = 2.71716
  Normalizat = 0.689652
  Prefactor  = 1.05158
 **********
 **   18 **HESSE 
 **********

 FCN=   7679.192     FROM HESSE     STATUS=OK            27 CALLS      313 TOTAL
                     EDM=   .95E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1912        7.9693        .83430E-04   -1.5490    
   2  Index         2.7172        2.0016        .61211E-03   -.47413    
   3  Normalizat    .68965        .17852        .12973E-04   -1.0430    
   4  Prefactor     1.0516        .12384        .37121E-04   -.91029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.53016e-12
Minuit parameter uncertainties:
  1  6.16317
  2  2.07615
  3  0.178674
  4  0.123877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681417': 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) = 7679.19249088
delta logL = 0.0010924977787

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.191e+00  6.163e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.717e+00  2.076e+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:  1.052e+00  1.239e-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.897e-01  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/681417/cmap_HighResolution_465091201_465350401_4FGL_J2141.8-3727_daily_bin871.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-03', job_status='DONE', photon_flux_upper_limit='8.75e-08', time_completed='2021-09-27 00:26:48.726093', job_id='681417', GAL2='1.05', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1632727608.73', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.09e-03', ts2='0.05', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='871' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:26:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 681417: <4FGL_J2141.8-3727_daily_bin871> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin871> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 27 00:10:36 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:12:04 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:12:04 2021
Terminated at Mon Sep 27 00:26:49 2021
Results reported at Mon Sep 27 00:26:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin871 325.462 -37.4545 465091201 465350401 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 :                                   748.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             288.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            973 sec.

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

