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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1630
RA = 325.462, Dec = -37.4545
tmin = 661824001, tmax = 662083201
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='498809', job_status='RUN', time_executed='2021-12-25 00:57:17.915372', time_epoch_executed='1640422637.92' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1630'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498809

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498809/ft1_4FGL_J2141.8-3727_daily_bin1630.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498809/ft2_4FGL_J2141.8-3727_daily_bin1630.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498809/ft1_4FGL_J2141.8-3727_daily_bin1630.fits outfile=/scratch/kocevski/498809/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1630.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=661824001.0 tmax=662083201.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.69
user 4.44
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498809/ft1_filtered_4FGL_J2141.8-3727_daily_bin1630.fits" evtable="EVENTS" scfile=/scratch/kocevski/498809/ft2_4FGL_J2141.8-3727_daily_bin1630.fits sctable="SC_DATA" outfile=/scratch/kocevski/498809/ltcube_661824001_662083201_4FGL_J2141.8-3727_daily_bin1630.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/498809/ft2_4FGL_J2141.8-3727_daily_bin1630.fits
.....................!
real 13.74
user 13.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498809/ft1_filtered_4FGL_J2141.8-3727_daily_bin1630.fits evtable="EVENTS" scfile=/scratch/kocevski/498809/ft2_4FGL_J2141.8-3727_daily_bin1630.fits sctable="SC_DATA" expcube=/scratch/kocevski/498809/ltcube_661824001_662083201_4FGL_J2141.8-3727_daily_bin1630.fits outfile=/scratch/kocevski/498809/expmap_661824001_662083201_4FGL_J2141.8-3727_daily_bin1630.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/498809/ltcube_661824001_662083201_4FGL_J2141.8-3727_daily_bin1630.fits
.....................!
real 190.66
user 186.25
sys 3.90

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/498809/ft1_filtered_4FGL_J2141.8-3727_daily_bin1630.fits scfile=/scratch/kocevski/498809/ft2_4FGL_J2141.8-3727_daily_bin1630.fits outfile=/scratch/kocevski/498809/cmap_661824001_662083201_4FGL_J2141.8-3727_daily_bin1630.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.61
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498809/ft1_filtered_4FGL_J2141.8-3727_daily_bin1630.fits scfile=/scratch/kocevski/498809/ft2_4FGL_J2141.8-3727_daily_bin1630.fits outfile=/scratch/kocevski/498809/cmap_HighResolution_661824001_662083201_4FGL_J2141.8-3727_daily_bin1630.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.59
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/498809/ft1_filtered_4FGL_J2141.8-3727_daily_bin1630.fits evtable="EVENTS" scfile=/scratch/kocevski/498809/ft2_4FGL_J2141.8-3727_daily_bin1630.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/498809/Model_4FGL_J2141.8-3727_daily_bin1630.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/498809/ft1_filtered_4FGL_J2141.8-3727_daily_bin1630.fits.....................!
real 64.32
user 62.97
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.991       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.770       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.914       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.2589       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0443       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7420       1.0000         .10000E-03   10000.    
    11 'norm      '    4.7026       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.7694       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4514       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1623       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3514       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .56725       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7080       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .81277       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0078       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=   8518.026     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2566 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.755        94.669        .21982E-04    .63234E-04
   2  Prefactor     12.766        15.683        .37801E-06   -.21470E-05
   3  Prefactor     10.901        21.242        .10671E-05    .28829E-05
   4  Prefactor     .10025E-03    4.1251       -.24497E-05** at limit **
   5  Prefactor     .10000E-03    4.7352        .99599E-07** at limit **
   6  norm          .10000E-03    2.0377        .15098E-08** at limit **
   7  norm          6.2585        3.3439        .71236E-08    .19137E-03
   8  Prefactor     4.0412        6.9481        .17581E-05    .26587E-03
   9  Prefactor     .10000E-03    4.5383       -.11848E-07** at limit **
  10  Prefactor     1.7422        7.3243        .76487E-05    .22182E-03
  11  norm          4.7024        4.8988        .11014E-06   -.92324E-05
  12  Prefactor     .10000E-03    6.6062       -.65334E-07** at limit **
  13  Prefactor     .10000E-03    46.246       -.13548E-05** at limit **
  14  norm          8.7695        4.2370        .39245E-06    .48127E-04
  15  norm          1.4514        .37182        .12262E-07    .95848E-04
  16  Prefactor     4.1312        41.654        .55968E-05    .17244E-04
  17  Prefactor     1.3512        2.8155        .29953E-06    .27433E-04
  18  Prefactor     .56177        2.2119        .49379E-06   -.11178E-03
  19  Prefactor     .10000E-03    18.477       -.10143E-05** at limit **
  20  Prefactor     .10000E-03    10.058        .12254E-06** at limit **
  21  Prefactor     3.7032        13.591        .10767E-05   -.39952E-05
  22  Normalizat    .81312        .16144       -.35272E-05    .27090E-03
  23  Prefactor     1.0076        .10378        .28438E-06    .29650E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.7546
  Prefactor  = 12.7665
  Prefactor  = 10.9007
  Prefactor  = 0.00010025
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.25848
  Prefactor  = 4.04116
  Prefactor  = 0.0001
  Prefactor  = 1.74217
  norm       = 4.70238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.76953
  norm       = 1.45143
  Prefactor  = 4.13121
  Prefactor  = 1.35118
  Prefactor  = 0.561771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.70325
  Normalizat = 0.813118
  Prefactor  = 1.0076
 **********
 **   18 **HESSE 
 **********

 FCN=   8518.026     FROM HESSE     STATUS=OK           378 CALLS     2944 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.755        94.821        .23658E-03   -1.4012    
   2  Prefactor     12.766        15.689        .11209E-03   -1.4993    
   3  Prefactor     10.901        21.254        .12127E-03   -1.5048    
   4  Prefactor     .10025E-03    21.820        .34145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.7374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.0389        .12866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.2585        3.3425        .11918E-03   -1.5208    
   8  Prefactor     4.0412        6.8360        .10025E-02   -1.5306    
   9  Prefactor     .10000E-03    4.5526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7422        7.3897        .15892E-02   -1.5444    
  11  norm          4.7024        4.8884        .18556E-03   -1.5274    
  12  Prefactor     .10000E-03    6.6209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    46.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.7695        4.2517        .12023E-03   -1.5116    
  15  norm          1.4514        .37285        .26704E-04   -1.5467    
  16  Prefactor     4.1312        41.923        .19756E-03   -1.5301    
  17  Prefactor     1.3512        2.7696        .21671E-03   -1.5475    
  18  Prefactor     .56177        4.1175        .25637E-02   -1.5558    
  19  Prefactor     .10000E-03    18.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.7032        13.599        .20972E-03   -1.5323    
  22  Normalizat    .81312        .18201        .29373E-03   -.99584    
  23  Prefactor     1.0076        .11974        .18535E-03   -.92476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05178e-08
Minuit parameter uncertainties:
  1  95.0214
  2  15.6937
  3  21.2683
  4  0.00467228
  5  2.7455e-06
  6  1.14176e-06
  7  3.34259
  8  6.83729
  9  3.59251e-06
  10  7.17738
  11  4.88885
  12  1.63032e-07
  13  1.51292e-05
  14  4.25183
  15  0.372848
  16  26.344
  17  2.7699
  18  3.04178
  19  6.10554e-06
  20  1.7488e-05
  21  13.6103
  22  0.182151
  23  0.119773
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  4.041e+00  6.837e+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.008e+00  1.198e-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.131e-01  1.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/498809/likelihoodResults_661824001_662083201_4FGL_J2141.8-3727_daily_bin1630.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) = 8516.70950599
delta logL = 1.31602315276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8516.62234661
delta logL = 1.40318253366

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29417       1.0000         .10000E-03   10000.    
     2 'Index     '    5.5138       1.0000          .0000       10.000    
     3 'Normalizat'    .74264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0368       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=   8516.622     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      240 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29402        2.2211        .67442E-02    .19045E-02
   2  Index         5.5153        2.7561        .16458        .14970E-03
   3  Normalizat    .74267        .38321E-01    .69099E-01    .45568E-05
   4  Prefactor     1.0367        .26790E-01    .40755E-01   -.31912E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.29402
  Index      = 5.51531
  Normalizat = 0.742671
  Prefactor  = 1.03672
 **********
 **   18 **HESSE 
 **********

 FCN=   8516.622     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29402        5.6290        .30622E-03   -1.5600    
   2  Index         5.5153        7.4345        .60335E-02    .10325    
   3  Normalizat    .74267        .13847        .30577E-03   -1.0223    
   4  Prefactor     1.0367        .95013E-01    .18291E-03   -.91515    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10714e-07
Minuit parameter uncertainties:
  1  2.57281
  2  5.76869
  3  0.138532
  4  0.0950283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498809': 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): 102
logL (Free Index) = 8516.62234216
delta logL = 1.40318698405

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.037e+00  9.503e-02  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.427e-01  1.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.50
Ra Dec: 325.462 -37.455
Photon Index (Free Index): 5.52 +/- 5.77
Photon Flux (Free Index): 7.79e-08 +/- 4.93e-08
Energy Flux (Free Index): 9.97e-06 +/- 8.19e-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/498809/cmap_HighResolution_661824001_662083201_4FGL_J2141.8-3727_daily_bin1630.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.43e-03', comment='SUCCESS', energy_flux2='9.97e-06', dlogl='1.40e+00', photon_flux2='7.79e-08', job_status='DONE', time_completed='2021-12-25 01:10:19.059536', photon_index_error2='5.77', photon_index2='5.52', ts='0.47', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='9.48e-08', energy_flux_error2='8.19e-06', EG='0.81', time_epoch_completed='1640423419.06', return_code='0', job_id='498809', GAL2='1.04', EG2='0.74', return_code2='102', photon_flux_error2='4.93e-08', ts2='3.50', photon_index='2.62' WHERE bin_id='1630' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 25 01:10:19 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 498809: <4FGL_J2141.8-3727_daily_bin1630> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1630> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Dec 25 00:55:37 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 25 00:56:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 25 00:56:46 2021
Terminated at Sat Dec 25 01:10:19 2021
Results reported at Sat Dec 25 01:10:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1630 325.462 -37.4545 661824001 662083201 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 :                                   783.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            882 sec.

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

