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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1436
RA = 325.462, Dec = -37.4545
tmin = 611539201, tmax = 611798401
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='684361', job_status='RUN', time_executed='2021-09-27 00:23:35.414077', time_epoch_executed='1632727415.41' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/684361

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/684361/ft1_4FGL_J2141.8-3727_daily_bin1436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/684361/ft2_4FGL_J2141.8-3727_daily_bin1436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/684361/ft1_4FGL_J2141.8-3727_daily_bin1436.fits outfile=/scratch/kocevski/684361/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1436.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=611539201.0 tmax=611798401.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.82
user 3.24
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/684361/ft2_4FGL_J2141.8-3727_daily_bin1436.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/684361/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1436.fits evtable="EVENTS" outfile="/scratch/kocevski/684361/ft1_filtered_4FGL_J2141.8-3727_daily_bin1436.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/684361/ft1_filtered_4FGL_J2141.8-3727_daily_bin1436.fits" evtable="EVENTS" scfile=/scratch/kocevski/684361/ft2_4FGL_J2141.8-3727_daily_bin1436.fits sctable="SC_DATA" outfile=/scratch/kocevski/684361/ltcube_611539201_611798401_4FGL_J2141.8-3727_daily_bin1436.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/684361/ft2_4FGL_J2141.8-3727_daily_bin1436.fits
.....................!
real 14.11
user 13.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/684361/ft1_filtered_4FGL_J2141.8-3727_daily_bin1436.fits evtable="EVENTS" scfile=/scratch/kocevski/684361/ft2_4FGL_J2141.8-3727_daily_bin1436.fits sctable="SC_DATA" expcube=/scratch/kocevski/684361/ltcube_611539201_611798401_4FGL_J2141.8-3727_daily_bin1436.fits outfile=/scratch/kocevski/684361/expmap_611539201_611798401_4FGL_J2141.8-3727_daily_bin1436.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/684361/ltcube_611539201_611798401_4FGL_J2141.8-3727_daily_bin1436.fits
.....................!
real 190.93
user 185.49
sys 4.95

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

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

This is gtbin version HEAD
real 1.01
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/684361/ft1_filtered_4FGL_J2141.8-3727_daily_bin1436.fits scfile=/scratch/kocevski/684361/ft2_4FGL_J2141.8-3727_daily_bin1436.fits outfile=/scratch/kocevski/684361/cmap_HighResolution_611539201_611798401_4FGL_J2141.8-3727_daily_bin1436.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.252       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4725       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.108       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.895       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.8222       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8681       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8691       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5949       1.0000         .10000E-03   10000.    
    15 'norm      '    .65420       1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.210       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .81205       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10640E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .79183       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0891       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=   8382.210     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2191 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.023        58.318       -.17035E-05   -.34067E-04
   2  Prefactor     8.4690        18.289        .14920E-05    .86707E-04
   3  Prefactor     .10000E-03    41.629       -.44728E-05** at limit **
   4  Prefactor     20.107        8.7039       -.22024E-06   -.22575E-03
   5  Prefactor     33.889        24.364        .29571E-05    .54489E-03
   6  norm          .10000E-03    1.7041        .15225E-08** at limit **
   7  norm          8.8224        4.0071       -.21004E-06   -.62704E-04
   8  Prefactor     3.8696        7.8883        .96472E-06    .24972E-03
   9  Prefactor     .10000E-03    8.4705        .71265E-07** at limit **
  10  Prefactor     3.8683        5.0469        .22153E-05   -.10476E-02
  11  norm          .10000E-03    2.3814        .20110E-07** at limit **
  12  Prefactor     .10000E-03    4.9594       -.14046E-07** at limit **
  13  Prefactor     .10000E-03    25.494        .28685E-08** at limit **
  14  norm          1.5942        3.0912        .69214E-06   -.19266E-03
  15  norm          .65418        .26433       -.48861E-08   -.17452E-03
  16  Prefactor     38.205        30.936        .12420E-05    .13693E-03
  17  Prefactor     .10000E-03    2.1195        .44499E-08** at limit **
  18  Prefactor     .80978        3.6176        .20255E-05   -.40316E-03
  19  Prefactor     .10001E-03    42.594        .42184E-05** at limit **
  20  Prefactor     .10000E-03    19.415        .40125E-07** at limit **
  21  Prefactor     .10000E-03    8.2701       -.78099E-07** at limit **
  22  Normalizat    .79198        .17129       -.23753E-05   -.40048E-04
  23  Prefactor     1.0890        .10963        .27816E-06   -.17924E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.023
  Prefactor  = 8.46901
  Prefactor  = 0.000100005
  Prefactor  = 20.1072
  Prefactor  = 33.8889
  norm       = 0.0001
  norm       = 8.82237
  Prefactor  = 3.86961
  Prefactor  = 0.0001
  Prefactor  = 3.86829
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.59424
  norm       = 0.654176
  Prefactor  = 38.2052
  Prefactor  = 0.0001
  Prefactor  = 0.809779
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.79198
  Prefactor  = 1.089
 **********
 **   18 **HESSE 
 **********

 FCN=   8382.210     FROM HESSE     STATUS=OK           366 CALLS     2557 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.023        58.547        .11943E-03   -1.5044    
   2  Prefactor     8.4690        18.339        .13772E-03   -1.5126    
   3  Prefactor     .10000E-03    42.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.107        8.7343        .89321E-04   -1.4811    
   5  Prefactor     33.889        25.472        .68830E-04   -1.4543    
   6  norm          .10000E-03    1.7050        .11672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.8224        4.0122        .11756E-03   -1.5114    
   8  Prefactor     3.8696        7.9977        .20517E-03   -1.5315    
   9  Prefactor     .10000E-03    8.5365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8683        5.3997        .10257E-02   -1.5315    
  11  norm          .10000E-03    2.3914        .13794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.9660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5942        3.0670        .20669E-03   -1.5455    
  15  norm          .65418        .26357        .28306E-04   -1.5546    
  16  Prefactor     38.205        31.070        .64839E-04   -1.4471    
  17  Prefactor     .10000E-03    2.1294        .13014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .80978        3.7764        .32809E-03   -1.5528    
  19  Prefactor     .10001E-03    43.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.306        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.2919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .79198        .19201        .30869E-03   -1.0037    
  23  Prefactor     1.0890        .12508        .18496E-03   -.89819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36434e-09
Minuit parameter uncertainties:
  1  50.8856
  2  18.3514
  3  0.000917029
  4  8.73488
  5  25.4806
  6  5.70643e-07
  7  4.01237
  8  7.99989
  9  1.9201e-05
  10  5.40034
  11  6.87925e-07
  12  1.6117e-06
  13  2.01927e-05
  14  3.06731
  15  0.263569
  16  31.0834
  17  4.3532e-06
  18  3.49762
  19  0.000998312
  20  4.23501e-05
  21  4.83371e-09
  22  0.192174
  23  0.125118
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.089e+00  1.251e-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.920e-01  1.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 325.462 -37.455
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/684361/likelihoodResults_611539201_611798401_4FGL_J2141.8-3727_daily_bin1436.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) = 8380.31310839
delta logL = 1.89674031218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8379.8767455
delta logL = 2.33310320143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27047E-03   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .71779       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1247       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=   8379.877     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      435 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27052E-03    .18307E-03    .11051E-04** at limit **
   2  Index        10.0000        .52477        .50000    ** at limit **
   3  Normalizat    .71786        .18277        .32232E-03    .22221E-04
   4  Prefactor     1.1247        .12511        .18226E-03    .63624E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00027052
  Index      = 10
  Normalizat = 0.717858
  Prefactor  = 1.12468
 **********
 **   18 **HESSE 
 **********

 FCN=   8379.877     FROM HESSE     STATUS=OK            33 CALLS      468 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27052E-03    .17962E-03    .22102E-05   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .50608        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .71786        .18298        .12893E-04   -1.0319    
   4  Prefactor     1.1247        .12521        .72903E-05   -.88682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83321e-12
Minuit parameter uncertainties:
  1  0.000179616
  2  2.35773e-05
  3  0.183132
  4  0.125244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/684361': 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) = 8379.87674385
delta logL = 2.33310484741

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  2.705e-04  1.796e-04  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.000e+01  2.358e-05  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.125e+00  1.252e-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.179e-01  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.18
Ra Dec: 325.462 -37.455
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 7.56e-08 +/- 4.87e-08
Energy Flux (Free Index): 8.45e-06 +/- 5.47e-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/684361/cmap_HighResolution_611539201_611798401_4FGL_J2141.8-3727_daily_bin1436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.27e-03', comment='SUCCESS', energy_flux2='8.45e-06', dlogl='2.33e+00', photon_flux2='7.56e-08', job_status='DONE', time_completed='2021-09-27 00:36:11.850703', photon_index_error2='0.00', photon_index2='10.00', ts='0.28', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='5.47e-06', EG='0.79', time_epoch_completed='1632728171.85', return_code='0', job_id='684361', GAL2='1.12', EG2='0.72', return_code2='0', photon_flux_error2='4.87e-08', ts2='5.18', photon_index='2.62' WHERE bin_id='1436' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:36:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 684361: <4FGL_J2141.8-3727_daily_bin1436> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1436> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 00:20:37 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:23:21 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:23:21 2021
Terminated at Mon Sep 27 00:36:12 2021
Results reported at Mon Sep 27 00:36:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1436 325.462 -37.4545 611539201 611798401 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 :                                   740.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            935 sec.

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

