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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1296
RA = 325.462, Dec = -37.4545
tmin = 575251201, tmax = 575510401
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='684156', job_status='RUN', time_executed='2021-09-27 00:22:22.803261', time_epoch_executed='1632727342.8' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/684156

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/684156/ft1_4FGL_J2141.8-3727_daily_bin1296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/684156/ft2_4FGL_J2141.8-3727_daily_bin1296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/684156/ft1_4FGL_J2141.8-3727_daily_bin1296.fits outfile=/scratch/kocevski/684156/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1296.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=575251201.0 tmax=575510401.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 5.33
user 5.05
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/684156/ft1_filtered_4FGL_J2141.8-3727_daily_bin1296.fits" evtable="EVENTS" scfile=/scratch/kocevski/684156/ft2_4FGL_J2141.8-3727_daily_bin1296.fits sctable="SC_DATA" outfile=/scratch/kocevski/684156/ltcube_575251201_575510401_4FGL_J2141.8-3727_daily_bin1296.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/684156/ft2_4FGL_J2141.8-3727_daily_bin1296.fits
.....................!
real 14.49
user 14.13
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/684156/ft1_filtered_4FGL_J2141.8-3727_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/684156/ft2_4FGL_J2141.8-3727_daily_bin1296.fits sctable="SC_DATA" expcube=/scratch/kocevski/684156/ltcube_575251201_575510401_4FGL_J2141.8-3727_daily_bin1296.fits outfile=/scratch/kocevski/684156/expmap_575251201_575510401_4FGL_J2141.8-3727_daily_bin1296.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/684156/ltcube_575251201_575510401_4FGL_J2141.8-3727_daily_bin1296.fits
.....................!
real 192.73
user 186.49
sys 5.06

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/684156/ft1_filtered_4FGL_J2141.8-3727_daily_bin1296.fits scfile=/scratch/kocevski/684156/ft2_4FGL_J2141.8-3727_daily_bin1296.fits outfile=/scratch/kocevski/684156/cmap_575251201_575510401_4FGL_J2141.8-3727_daily_bin1296.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.06
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/684156/ft1_filtered_4FGL_J2141.8-3727_daily_bin1296.fits scfile=/scratch/kocevski/684156/ft2_4FGL_J2141.8-3727_daily_bin1296.fits outfile=/scratch/kocevski/684156/cmap_HighResolution_575251201_575510401_4FGL_J2141.8-3727_daily_bin1296.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=325.462 yref=-37.4545 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.322       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.658       1.0000         .10000E-03   10000.    
     3 'Prefactor '    51.752       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1236       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2051       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.9986       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.4399       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.317       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .49065E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.4141       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.1095       1.0000         .10000E-03   10000.    
    15 'norm      '    1.1201       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.5994       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9006       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .81505       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0705       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=   9232.795     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2529 TOTAL
                     EDM=   .59E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.283        47.790        .68712E-05    .44807E-05
   2  Prefactor     24.657        16.685        .73313E-07   -.44783E-06
   3  Prefactor     51.751        23.280        .12889E-06   -.63883E-06
   4  Prefactor     3.1239        6.1435        .23129E-06   -.40424E-05
   5  Prefactor     3.2028        17.815        .56669E-06   -.31263E-05
   6  norm          .10000E-03    1.7558        .23065E-08** at limit **
   7  norm          4.9979        3.0018        .52940E-07   -.17481E-04
   8  Prefactor     9.4349        6.4397        .77048E-07   -.28673E-04
   9  Prefactor     36.317        15.800       -.10706E-06   -.23494E-04
  10  Prefactor     .10000E-03    4.8890        .28484E-06** at limit **
  11  norm          6.4145        6.6102        .74075E-06    .60316E-05
  12  Prefactor     .10000E-03    6.2100        .13548E-06** at limit **
  13  Prefactor     .10000E-03    26.903        .25046E-05** at limit **
  14  norm          3.1101        3.2450        .11569E-05   -.73186E-05
  15  norm          1.1201        .32262       -.45057E-07   -.12448E-03
  16  Prefactor     8.6026        27.945       -.25827E-06   -.10042E-05
  17  Prefactor     .10000E-03    3.1858       -.13551E-07** at limit **
  18  Prefactor     3.9009        2.8346        .50158E-07    .19653E-04
  19  Prefactor     .10000E-03    8.8269       -.79748E-06** at limit **
  20  Prefactor     .10000E-03    10.138        .10119E-05** at limit **
  21  Prefactor     .10000E-03    22.308       -.23108E-05** at limit **
  22  Normalizat    .81485        .15938       -.11328E-05    .85119E-06
  23  Prefactor     1.0706        .10625        .24549E-06   -.11341E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.2831
  Prefactor  = 24.6575
  Prefactor  = 51.7507
  Prefactor  = 3.12389
  Prefactor  = 3.20281
  norm       = 0.0001
  norm       = 4.99791
  Prefactor  = 9.43491
  Prefactor  = 36.3171
  Prefactor  = 0.000100001
  norm       = 6.41453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.11009
  norm       = 1.12013
  Prefactor  = 8.60256
  Prefactor  = 0.0001
  Prefactor  = 3.90091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.814846
  Prefactor  = 1.07058
 **********
 **   18 **HESSE 
 **********

 FCN=   9232.795     FROM HESSE     STATUS=OK           376 CALLS     2905 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.283        47.839        .82945E-04   -1.4743    
   2  Prefactor     24.657        16.697        .80669E-04   -1.4714    
   3  Prefactor     51.751        23.328        .55750E-04   -1.4268    
   4  Prefactor     3.1239        6.1249        .22940E-03   -1.5354    
   5  Prefactor     3.2028        17.652        .22631E-03   -1.5350    
   6  norm          .10000E-03    1.7583        .12434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.9979        2.9926        .12384E-03   -1.5261    
   8  Prefactor     9.4349        6.3172        .13044E-03   -1.5094    
   9  Prefactor     36.317        15.801        .66503E-04   -1.4502    
  10  Prefactor     .10000E-03    18.738        .39632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.4145        6.5913        .79239E-03   -1.5201    
  12  Prefactor     .10000E-03    6.2358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.1101        3.2464        .81621E-03   -1.5355    
  15  norm          1.1201        .32317        .27594E-04   -1.5496    
  16  Prefactor     8.6026        27.967        .13670E-03   -1.5121    
  17  Prefactor     .10000E-03    3.2246        .16740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9009        2.8359        .13362E-03   -1.5313    
  19  Prefactor     .10000E-03    8.8284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .81485        .17807        .30908E-03   -.99520    
  23  Prefactor     1.0706        .12033        .18965E-03   -.90412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96501e-10
Minuit parameter uncertainties:
  1  47.9174
  2  16.6999
  3  23.3323
  4  6.12608
  5  15.0448
  6  6.03752e-08
  7  2.9927
  8  6.31765
  9  15.8027
  10  0.000227906
  11  6.59202
  12  1.26014e-06
  13  5.07522e-06
  14  3.2466
  15  0.323171
  16  28.0093
  17  1.40183e-06
  18  2.83596
  19  1.11267e-06
  20  4.07098e-06
  21  2.95285e-05
  22  0.178202
  23  0.120358
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  9.435e+00  6.318e+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.071e+00  1.204e-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.148e-01  1.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.68
Ra Dec: 325.462 -37.455
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 5.04e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 8.66e-06

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

Saving results to:
/scratch/kocevski/684156/likelihoodResults_575251201_575510401_4FGL_J2141.8-3727_daily_bin1296.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) = 9232.76730143
delta logL = 0.0279375185401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9232.75787818
delta logL = 0.0373607777219

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5388       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8280       1.0000          .0000       10.000    
     3 'Normalizat'    .80551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0744       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.

 FCN=   9232.758     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5353        103.91        .34295E-02    .11884E-02
   2  Index         2.8283        6.4095        .22531        .11744E-03
   3  Normalizat    .80549        .65725E-01    .70214E-01    .48233E-04
   4  Prefactor     1.0745        .38247E-01    .38651E-01   -.26845E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.53534
  Index      = 2.82825
  Normalizat = 0.805488
  Prefactor  = 1.07446
 **********
 **   18 **HESSE 
 **********

 FCN=   9232.758     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5353        7.3688        .13718E-03   -1.5124    
   2  Index         2.8283        .82357        .88804E-02   -.44932    
   3  Normalizat    .80549        .17422        .31070E-03   -.99865    
   4  Prefactor     1.0745        .11879        .18935E-03   -.90287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33834e-10
Minuit parameter uncertainties:
  1  7.36955
  2  0.828234
  3  0.174341
  4  0.118819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/684156': 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) = 9232.75787799
delta logL = 0.0373609594135

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  8.535e+00  7.370e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.828e+00  8.282e-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.074e+00  1.188e-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.055e-01  1.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.76
Ra Dec: 325.462 -37.455
Photon Index (Free Index): 2.83 +/- 0.83
Photon Flux (Free Index): 5.74e-08 +/- 4.31e-08
Energy Flux (Free Index): 1.26e-05 +/- 8.36e-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/684156/cmap_HighResolution_575251201_575510401_4FGL_J2141.8-3727_daily_bin1296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.41e-03', comment='SUCCESS', photon_flux='5.04e-08', energy_flux2='1.26e-05', photon_flux_error='3.37e-08', dlogl='3.74e-02', energy_flux='1.29e-05', photon_flux2='5.74e-08', job_status='DONE', time_completed='2021-09-27 00:36:12.992881', photon_index_error2='0.83', photon_index2='2.83', ts='3.68', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='8.36e-06', EG='0.81', time_epoch_completed='1632728172.99', return_code='0', job_id='684156', GAL2='1.07', EG2='0.81', return_code2='0', energy_flux_error='8.66e-06', photon_flux_error2='4.31e-08', ts2='3.76', photon_index='2.62' WHERE bin_id='1296' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:36:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 684156: <4FGL_J2141.8-3727_daily_bin1296> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1296 325.462 -37.4545 575251201 575510401 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 :                                   823.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            951 sec.

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

