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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin650
RA = 325.462, Dec = -37.4545
tmin = 407808001, tmax = 408067201
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='680010', job_status='RUN', time_executed='2021-09-27 00:08:53.298910', time_epoch_executed='1632726533.3' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680010

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680010/ft1_4FGL_J2141.8-3727_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680010/ft2_4FGL_J2141.8-3727_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680010/ft1_4FGL_J2141.8-3727_daily_bin650.fits outfile=/scratch/kocevski/680010/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin650.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=407808001.0 tmax=408067201.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.16
user 3.91
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680010/ft1_filtered_4FGL_J2141.8-3727_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/680010/ft2_4FGL_J2141.8-3727_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/680010/ltcube_407808001_408067201_4FGL_J2141.8-3727_daily_bin650.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/680010/ft2_4FGL_J2141.8-3727_daily_bin650.fits
.....................!
real 12.74
user 12.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680010/ft1_filtered_4FGL_J2141.8-3727_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/680010/ft2_4FGL_J2141.8-3727_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/680010/ltcube_407808001_408067201_4FGL_J2141.8-3727_daily_bin650.fits outfile=/scratch/kocevski/680010/expmap_407808001_408067201_4FGL_J2141.8-3727_daily_bin650.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/680010/ltcube_407808001_408067201_4FGL_J2141.8-3727_daily_bin650.fits
.....................!
real 192.77
user 186.87
sys 4.88

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/680010/ft1_filtered_4FGL_J2141.8-3727_daily_bin650.fits scfile=/scratch/kocevski/680010/ft2_4FGL_J2141.8-3727_daily_bin650.fits outfile=/scratch/kocevski/680010/cmap_407808001_408067201_4FGL_J2141.8-3727_daily_bin650.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680010/ft1_filtered_4FGL_J2141.8-3727_daily_bin650.fits scfile=/scratch/kocevski/680010/ft2_4FGL_J2141.8-3727_daily_bin650.fits outfile=/scratch/kocevski/680010/cmap_HighResolution_407808001_408067201_4FGL_J2141.8-3727_daily_bin650.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/680010/ft1_filtered_4FGL_J2141.8-3727_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/680010/ft2_4FGL_J2141.8-3727_daily_bin650.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/680010/Model_4FGL_J2141.8-3727_daily_bin650.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/680010/ft1_filtered_4FGL_J2141.8-3727_daily_bin650.fits.....................!
real 64.37
user 62.94
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.933       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.622       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24934E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.6328       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.727       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .41689       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.917       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.619       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0175       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0018       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16536E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4554       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.008       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2461       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91762       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=   8044.219     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2563 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    72.308       -.15797E-05** at limit **
   2  Prefactor     33.934        23.745       -.13368E-06    .14890E-04
   3  Prefactor     12.623        16.686        .17574E-06    .11291E-03
   4  Prefactor     .10001E-03    12.084        .17858E-04** at limit **
   5  Prefactor     .10000E-03    9.0511        .12252E-06** at limit **
   6  norm          .10000E-03    3.7381       -.16118E-06** at limit **
   7  norm          1.6331        2.8422        .42312E-07    .22566E-04
   8  Prefactor     15.725        10.292       -.52692E-06   -.47091E-03
   9  Prefactor     .10000E-03    4.3296       -.34608E-06** at limit **
  10  Prefactor     .10000E-03    7.9531       -.14397E-05** at limit **
  11  norm          .41441        13.421        .22306E-04   -.11385E-04
  12  Prefactor     18.937        37.851       -.72483E-05   -.22151E-03
  13  Prefactor     22.534        111.73        .19403E-04   -.74336E-04
  14  norm          3.0187        4.3988       -.86831E-06   -.85547E-03
  15  norm          1.0018        .38591       -.43012E-07   -.34687E-02
  16  Prefactor     .10001E-03    106.63       -.19076E-06** at limit **
  17  Prefactor     6.4556        6.0268       -.14037E-06   -.16462E-05
  18  Prefactor     .10000E-03    2.0227       -.14595E-06** at limit **
  19  Prefactor     .10000E-03    24.116        .11262E-05** at limit **
  20  Prefactor     .10000E-03    8.6831       -.43150E-06** at limit **
  21  Prefactor     32.009        26.866       -.38372E-06    .39515E-06
  22  Normalizat    1.2460        .19004        .31682E-05    .30515E-03
  23  Prefactor     .91766        .11394       -.15381E-05    .21809E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 33.934
  Prefactor  = 12.6227
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.63312
  Prefactor  = 15.7247
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.414406
  Prefactor  = 18.937
  Prefactor  = 22.5341
  norm       = 3.01871
  norm       = 1.0018
  Prefactor  = 0.000100007
  Prefactor  = 6.45555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.0088
  Normalizat = 1.24597
  Prefactor  = 0.917657
 **********
 **   18 **HESSE 
 **********

 FCN=   8044.219     FROM HESSE     STATUS=OK           374 CALLS     2937 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    72.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.934        23.747        .68792E-04   -1.4542    
   3  Prefactor     12.623        16.714        .56374E-03   -1.4997    
   4  Prefactor     .10001E-03    27.498        .38018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.0612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.7520        .16936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.6331        2.8114        .19322E-03   -1.5452    
   8  Prefactor     15.725        10.416        .10100E-03   -1.4915    
   9  Prefactor     .10000E-03    4.3344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.1080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .41441        3.3349        .88443E-01   -1.5579    
  12  Prefactor     18.937        37.806        .92087E-04   -1.4837    
  13  Prefactor     22.534        111.55        .84222E-04   -1.4758    
  14  norm          3.0187        4.3841        .20133E-03   -1.5360    
  15  norm          1.0018        .38560        .32279E-04   -1.5508    
  16  Prefactor     .10001E-03    107.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.4556        6.0314        .15796E-03   -1.5200    
  18  Prefactor     .10000E-03    2.0403        .12456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.6957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.009        26.958        .70824E-04   -1.4576    
  22  Normalizat    1.2460        .21914        .29076E-03   -.85194    
  23  Prefactor     .91766        .13175        .20773E-03   -.95527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60681e-09
Minuit parameter uncertainties:
  1  2.44181e-06
  2  23.7533
  3  16.7207
  4  0.000836601
  5  7.42424e-05
  6  2.43451e-05
  7  2.8116
  8  10.4168
  9  6.18629e-05
  10  0.000345825
  11  2.35107
  12  37.8536
  13  100.576
  14  4.38457
  15  0.385603
  16  0.00176885
  17  6.03194
  18  1.61045e-05
  19  0.000212313
  20  1.31987e-05
  21  26.9682
  22  0.219299
  23  0.131799
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.572e+01  1.042e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.623e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  5.479e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  9.177e-01  1.318e-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:  1.246e+00  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.03
Ra Dec: 325.462 -37.455
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 8.40e-08 +/- 5.56e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 1.43e-05

TS (Fixed Index): 3.03
Ra Dec: 325.462 -37.455
Photon Flux Upper Limit: 1.87e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.46e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/680010/likelihoodResults_407808001_408067201_4FGL_J2141.8-3727_daily_bin650.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) = 8043.84607881
delta logL = 0.372964159569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8043.8099986
delta logL = 0.409044361348

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8211       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2322       1.0000          .0000       10.000    
     3 'Normalizat'    1.2160       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93143       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8043.810     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      290 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8170        13.114        .63934E-03    .23006E-03
   2  Index         3.2334        .96765        .63918E-02    .51351E-03
   3  Normalizat    1.2160        .21298        .29369E-03   -.53806E-05
   4  Prefactor     .93138        .13063        .20638E-03   -.52331E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.81705
  Index      = 3.23339
  Normalizat = 1.21604
  Prefactor  = 0.931381
 **********
 **   18 **HESSE 
 **********

 FCN=   8043.810     FROM HESSE     STATUS=OK            27 CALLS      317 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8170        10.812        .12787E-03   -1.5081    
   2  Index         3.2334        .79911        .12784E-02   -.36112    
   3  Normalizat    1.2160        .21327        .11748E-04   -.86109    
   4  Prefactor     .93138        .13062        .82553E-05   -.95053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29589e-11
Minuit parameter uncertainties:
  1  10.8141
  2  0.803044
  3  0.213425
  4  0.130662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680010': 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) = 8043.80999567
delta logL = 0.409047291381

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  9.817e+00  1.081e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.233e+00  8.030e-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:  9.314e-01  1.307e-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:  1.216e+00  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.92
Ra Dec: 325.462 -37.455
Photon Index (Free Index): 3.23 +/- 0.80
Photon Flux (Free Index): 1.08e-07 +/- 6.38e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.22e-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/680010/cmap_HighResolution_407808001_408067201_4FGL_J2141.8-3727_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', photon_flux='8.40e-08', energy_flux2='1.95e-05', photon_flux_error='5.56e-08', dlogl='4.09e-01', energy_flux='2.16e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-27 00:21:18.978202', photon_index_error2='0.80', photon_index2='3.23', ts='3.03', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.87e-07', energy_flux_error2='1.22e-05', EG='1.25', time_epoch_completed='1632727278.98', return_code='0', job_id='680010', GAL2='0.93', EG2='1.22', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='6.38e-08', ts2='3.92', photon_index='2.62' WHERE bin_id='650' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:21:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 680010: <4FGL_J2141.8-3727_daily_bin650> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin650> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 00:05:49 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:06:48 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:06:48 2021
Terminated at Mon Sep 27 00:21:19 2021
Results reported at Mon Sep 27 00:21:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin650 325.462 -37.4545 407808001 408067201 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 :                                   742.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            930 sec.

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

