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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1492
RA = 325.462, Dec = -37.4545
tmin = 626054401, tmax = 626313601
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='685511', job_status='RUN', time_executed='2021-09-27 00:26:04.947321', time_epoch_executed='1632727564.95' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/685511

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/685511/ft1_4FGL_J2141.8-3727_daily_bin1492.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/685511/ft2_4FGL_J2141.8-3727_daily_bin1492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/685511/ft1_4FGL_J2141.8-3727_daily_bin1492.fits outfile=/scratch/kocevski/685511/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1492.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=626054401.0 tmax=626313601.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 4.15
user 3.90
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/685511/ft1_filtered_4FGL_J2141.8-3727_daily_bin1492.fits" evtable="EVENTS" scfile=/scratch/kocevski/685511/ft2_4FGL_J2141.8-3727_daily_bin1492.fits sctable="SC_DATA" outfile=/scratch/kocevski/685511/ltcube_626054401_626313601_4FGL_J2141.8-3727_daily_bin1492.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/685511/ft2_4FGL_J2141.8-3727_daily_bin1492.fits
.....................!
real 13.90
user 13.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/685511/ft1_filtered_4FGL_J2141.8-3727_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/685511/ft2_4FGL_J2141.8-3727_daily_bin1492.fits sctable="SC_DATA" expcube=/scratch/kocevski/685511/ltcube_626054401_626313601_4FGL_J2141.8-3727_daily_bin1492.fits outfile=/scratch/kocevski/685511/expmap_626054401_626313601_4FGL_J2141.8-3727_daily_bin1492.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/685511/ltcube_626054401_626313601_4FGL_J2141.8-3727_daily_bin1492.fits
.....................!
real 190.80
user 185.85
sys 4.29

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/685511/ft1_filtered_4FGL_J2141.8-3727_daily_bin1492.fits scfile=/scratch/kocevski/685511/ft2_4FGL_J2141.8-3727_daily_bin1492.fits outfile=/scratch/kocevski/685511/cmap_626054401_626313601_4FGL_J2141.8-3727_daily_bin1492.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/685511/ft1_filtered_4FGL_J2141.8-3727_daily_bin1492.fits scfile=/scratch/kocevski/685511/ft2_4FGL_J2141.8-3727_daily_bin1492.fits outfile=/scratch/kocevski/685511/cmap_HighResolution_626054401_626313601_4FGL_J2141.8-3727_daily_bin1492.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.72
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/685511/ft1_filtered_4FGL_J2141.8-3727_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/685511/ft2_4FGL_J2141.8-3727_daily_bin1492.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/685511/Model_4FGL_J2141.8-3727_daily_bin1492.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/685511/ft1_filtered_4FGL_J2141.8-3727_daily_bin1492.fits....................!
real 73.25
user 70.60
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.507       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.393       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .66374       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5329       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.5325       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4141       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11530E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10580E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12395E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.351       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2264       1.0000         .10000E-03   10000.    
    15 'norm      '    .62466       1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.196       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5754       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.267       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4304       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .79475       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0100       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=   9622.332     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2556 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.431        56.730       -.57684E-04   -.15317E-04
   2  Prefactor     .10000E-03    12.504       -.65612E-07** at limit **
   3  Prefactor     32.389        17.829        .25510E-05    .99781E-05
   4  Prefactor     .63251        2.5884        .55658E-06   -.77781E-03
   5  Prefactor     3.5361        16.252       -.48899E-05   -.10950E-03
   6  norm          .10000E-03    1.5820       -.18423E-07** at limit **
   7  norm          6.5329        3.3057        .14263E-06   -.32068E-04
   8  Prefactor     5.4142        4.6953        .28331E-06   -.20841E-03
   9  Prefactor     .10000E-03    9.8489       -.53829E-06** at limit **
  10  Prefactor     .10000E-03    1.9506       -.33900E-07** at limit **
  11  norm          .10000E-03    2.3358       -.12662E-06** at limit **
  12  Prefactor     .10000E-03    5.5828       -.82013E-06** at limit **
  13  Prefactor     22.277        34.415        .11760E-04    .52731E-04
  14  norm          1.2309        2.3854       -.14762E-05   -.15960E-02
  15  norm          .62460        .24834       -.26813E-07    .21576E-03
  16  Prefactor     43.197        28.372       -.35387E-05   -.80523E-05
  17  Prefactor     .10000E-03    1.4274        .27422E-07** at limit **
  18  Prefactor     3.5755        2.8922       -.13020E-06   -.39487E-03
  19  Prefactor     .10000E-03    7.1425       -.17657E-06** at limit **
  20  Prefactor     10.266        11.607       -.53998E-05    .23413E-04
  21  Prefactor     1.4101        35.101       -.55530E-05   -.16296E-03
  22  Normalizat    .79458        .14946        .13076E-05    .68292E-04
  23  Prefactor     1.0102        .96108E-01    .80156E-06    .43911E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.4314
  Prefactor  = 0.0001
  Prefactor  = 32.389
  Prefactor  = 0.632512
  Prefactor  = 3.53614
  norm       = 0.0001
  norm       = 6.5329
  Prefactor  = 5.41424
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.277
  norm       = 1.23088
  norm       = 0.624605
  Prefactor  = 43.1967
  Prefactor  = 0.0001
  Prefactor  = 3.57554
  Prefactor  = 0.0001
  Prefactor  = 10.2659
  Prefactor  = 1.41012
  Normalizat = 0.794585
  Prefactor  = 1.01016
 **********
 **   18 **HESSE 
 **********

 FCN=   9622.332     FROM HESSE     STATUS=OK           378 CALLS     2934 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.431        56.589        .29397E-03   -1.4344    
   2  Prefactor     .10000E-03    12.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.389        17.836        .70404E-04   -1.4569    
   4  Prefactor     .63251        11.016        .29453E-02   -1.5549    
   5  Prefactor     3.5361        16.067        .21506E-03   -1.5332    
   6  norm          .10000E-03    1.5836        .12049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.5329        3.2952        .11986E-03   -1.5197    
   8  Prefactor     5.4142        4.6908        .17270E-03   -1.5243    
   9  Prefactor     .10000E-03    9.9769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9582        .13376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.1581        .29031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.5866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.277        34.315        .84725E-04   -1.4764    
  14  norm          1.2309        2.3278        .19373E-03   -1.5486    
  15  norm          .62460        .24648        .29103E-04   -1.5550    
  16  Prefactor     43.197        28.393        .60997E-04   -1.4393    
  17  Prefactor     .10000E-03    1.4340        .11443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.5755        2.8935        .14475E-03   -1.5330    
  19  Prefactor     .10000E-03    7.1428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.266        11.595        .12505E-03   -1.5067    
  21  Prefactor     1.4101        35.872        .36122E-03   -1.5470    
  22  Normalizat    .79458        .17179        .29368E-03   -1.0027    
  23  Prefactor     1.0102        .11157        .18104E-03   -.92392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19843e-09
Minuit parameter uncertainties:
  1  56.6542
  2  4.89524e-05
  3  17.8386
  4  5.2801
  5  15.0816
  6  1.82548e-06
  7  3.29529
  8  4.69117
  9  0.000100335
  10  3.24039e-06
  11  8.31824e-05
  12  7.41188e-05
  13  34.3454
  14  2.32799
  15  0.246481
  16  28.4015
  17  2.05628e-06
  18  2.89359
  19  2.64983e-06
  20  11.5974
  21  14.2335
  22  0.171911
  23  0.111592
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  5.414e+00  4.691e+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.010e+00  1.116e-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.946e-01  1.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.36
Ra Dec: 325.462 -37.455
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 2.89e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 7.43e-06 +/- 6.43e-06

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

Saving results to:
/scratch/kocevski/685511/likelihoodResults_626054401_626313601_4FGL_J2141.8-3727_daily_bin1492.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) = 9622.18892402
delta logL = 0.143265518054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9622.18427716
delta logL = 0.147912382139

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1807       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2174       1.0000          .0000       10.000    
     3 'Normalizat'    .80414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0061       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=   9622.184     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      284 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1806        5.3123        .16148E-03    .49846E-04
   2  Index         2.2173        .68991        .12445E-01   -.72444E-04
   3  Normalizat    .80414        .15878        .29205E-03    .76297E-05
   4  Prefactor     1.0061        .10926        .18135E-03    .29891E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.18059
  Index      = 2.21727
  Normalizat = 0.804136
  Prefactor  = 1.00611
 **********
 **   18 **HESSE 
 **********

 FCN=   9622.184     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1806        5.3117        .64591E-05   -1.5211    
   2  Index         2.2173        .68996        .24890E-02   -.59022    
   3  Normalizat    .80414        .15887        .11682E-04   -.99915    
   4  Prefactor     1.0061        .10932        .36269E-04   -.92526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01984e-12
Minuit parameter uncertainties:
  1  5.31213
  2  0.693171
  3  0.158966
  4  0.109347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/685511': 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) = 9622.18427715
delta logL = 0.147912395185

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  6.181e+00  5.312e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.217e+00  6.932e-01  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.006e+00  1.093e-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:  8.041e-01  1.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 325.462 -37.455
Photon Index (Free Index): 2.22 +/- 0.69
Photon Flux (Free Index): 2.21e-08 +/- 2.34e-08
Energy Flux (Free Index): 9.60e-06 +/- 1.02e-05

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/685511/cmap_HighResolution_626054401_626313601_4FGL_J2141.8-3727_daily_bin1492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-03', comment='SUCCESS', photon_flux='2.89e-08', energy_flux2='9.60e-06', photon_flux_error='2.50e-08', dlogl='1.48e-01', energy_flux='7.43e-06', photon_flux2='2.21e-08', job_status='DONE', time_completed='2021-09-27 00:41:57.529172', photon_index_error2='0.69', photon_index2='2.22', ts='2.36', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='8.65e-08', energy_flux_error2='1.02e-05', EG='0.79', time_epoch_completed='1632728517.53', return_code='0', job_id='685511', GAL2='1.01', EG2='0.80', return_code2='0', energy_flux_error='6.43e-06', photon_flux_error2='2.34e-08', ts2='2.64', photon_index='2.62' WHERE bin_id='1492' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:41:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 685511: <4FGL_J2141.8-3727_daily_bin1492> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1492> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 00:25:20 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:25:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 00:25:41 2021
Terminated at Mon Sep 27 00:41:58 2021
Results reported at Mon Sep 27 00:41:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1492 325.462 -37.4545 626054401 626313601 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 :                                   837.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            998 sec.

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

