/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 5 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2141.8-3727_daily_bin324
RA = 325.462, Dec = -37.4545
tmin = 323308801, tmax = 323568001
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='677234', job_status='RUN', time_executed='2021-09-26 23:57:43.653276', time_epoch_executed='1632725863.65' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/677234

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/677234/ft1_4FGL_J2141.8-3727_daily_bin324.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/677234/ft2_4FGL_J2141.8-3727_daily_bin324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/677234/ft1_4FGL_J2141.8-3727_daily_bin324.fits outfile=/scratch/kocevski/677234/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin324.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=323308801.0 tmax=323568001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.03
user 2.60
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/677234/ft2_4FGL_J2141.8-3727_daily_bin324.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/677234/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin324.fits evtable="EVENTS" outfile="/scratch/kocevski/677234/ft1_filtered_4FGL_J2141.8-3727_daily_bin324.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.45
user 0.28
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/677234/ft1_filtered_4FGL_J2141.8-3727_daily_bin324.fits" evtable="EVENTS" scfile=/scratch/kocevski/677234/ft2_4FGL_J2141.8-3727_daily_bin324.fits sctable="SC_DATA" outfile=/scratch/kocevski/677234/ltcube_323308801_323568001_4FGL_J2141.8-3727_daily_bin324.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/677234/ft2_4FGL_J2141.8-3727_daily_bin324.fits
.....................!
real 11.96
user 11.28
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/677234/ft1_filtered_4FGL_J2141.8-3727_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/677234/ft2_4FGL_J2141.8-3727_daily_bin324.fits sctable="SC_DATA" expcube=/scratch/kocevski/677234/ltcube_323308801_323568001_4FGL_J2141.8-3727_daily_bin324.fits outfile=/scratch/kocevski/677234/expmap_323308801_323568001_4FGL_J2141.8-3727_daily_bin324.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/677234/ltcube_323308801_323568001_4FGL_J2141.8-3727_daily_bin324.fits
.....................!
real 158.26
user 152.84
sys 4.33

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/677234/ft1_filtered_4FGL_J2141.8-3727_daily_bin324.fits scfile=/scratch/kocevski/677234/ft2_4FGL_J2141.8-3727_daily_bin324.fits outfile=/scratch/kocevski/677234/cmap_323308801_323568001_4FGL_J2141.8-3727_daily_bin324.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.99
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/677234/ft1_filtered_4FGL_J2141.8-3727_daily_bin324.fits scfile=/scratch/kocevski/677234/ft2_4FGL_J2141.8-3727_daily_bin324.fits outfile=/scratch/kocevski/677234/cmap_HighResolution_323308801_323568001_4FGL_J2141.8-3727_daily_bin324.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.49
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/677234/ft1_filtered_4FGL_J2141.8-3727_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/677234/ft2_4FGL_J2141.8-3727_daily_bin324.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/677234/Model_4FGL_J2141.8-3727_daily_bin324.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/677234/ft1_filtered_4FGL_J2141.8-3727_daily_bin324.fits.....................!
real 59.94
user 58.21
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    105.14       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7719       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.368       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7017       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.147       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.6088       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.873       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7411       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2974       1.0000         .10000E-03   10000.    
    11 'norm      '    .31089       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11330E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.403       1.0000         .10000E-03   10000.    
    15 'norm      '    2.4203       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10573E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .24940E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1116       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.292       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .65287       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1608       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=   9797.762     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2591 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     105.07        81.295       -.51002E-04    .18764E-05
   2  Prefactor     2.7652        13.044       -.79553E-05   -.14314E-03
   3  Prefactor     37.365        20.045        .15267E-05    .49361E-04
   4  Prefactor     9.6998        6.6150       -.10321E-05   -.32654E-04
   5  Prefactor     11.148        19.976       -.79363E-06    .99018E-05
   6  norm          .10000E-03    1.4212        .70762E-08** at limit **
   7  norm          4.6072        3.4023       -.32091E-07   -.48482E-04
   8  Prefactor     10.885        7.1244        .43721E-05    .61795E-03
   9  Prefactor     9.7351        11.791       -.34597E-05   -.15116E-04
  10  Prefactor     6.2942        6.1328       -.30428E-05   -.73230E-04
  11  norm          .26366        4.3376       -.38563E-05    .62274E-03
  12  Prefactor     .10000E-03    5.2155        .59901E-07** at limit **
  13  Prefactor     .10000E-03    45.643        .17720E-05** at limit **
  14  norm          13.403        4.8821       -.74051E-07    .67221E-03
  15  norm          2.4202        .45009       -.41227E-08    .14946E-02
  16  Prefactor     .10000E-03    21.627       -.73653E-06** at limit **
  17  Prefactor     .10000E-03    3.4360       -.80043E-06** at limit **
  18  Prefactor     2.1101        3.2254       -.75864E-06   -.10135E-02
  19  Prefactor     .10000E-03    20.911        .30877E-05** at limit **
  20  Prefactor     17.290        18.017        .12368E-05    .82442E-04
  21  Prefactor     .10000E-03    7.9784        .14019E-06** at limit **
  22  Normalizat    .65300        .17128        .82325E-06    .61484E-03
  23  Prefactor     1.1610        .10887        .15339E-05    .70144E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 105.071
  Prefactor  = 2.76515
  Prefactor  = 37.3654
  Prefactor  = 9.69981
  Prefactor  = 11.1485
  norm       = 0.0001
  norm       = 4.60718
  Prefactor  = 10.885
  Prefactor  = 9.73505
  Prefactor  = 6.29419
  norm       = 0.263664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.4035
  norm       = 2.42015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.11007
  Prefactor  = 0.0001
  Prefactor  = 17.2901
  Prefactor  = 0.0001
  Normalizat = 0.652995
  Prefactor  = 1.16099
 **********
 **   18 **HESSE 
 **********

 FCN=   9797.762     FROM HESSE     STATUS=OK           390 CALLS     2981 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     105.07        81.174        .19609E-03   -1.3654    
   2  Prefactor     2.7652        13.151        .24444E-03   -1.5375    
   3  Prefactor     37.365        20.054        .65564E-04   -1.4485    
   4  Prefactor     9.6998        6.6116        .12866E-03   -1.5085    
   5  Prefactor     11.148        19.928        .12000E-03   -1.5040    
   6  norm          .10000E-03    1.4217        .11524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.6072        3.3947        .14844E-03   -1.5279    
   8  Prefactor     10.885        7.1053        .12150E-03   -1.5048    
   9  Prefactor     9.7351        11.794        .12839E-03   -1.5084    
  10  Prefactor     6.2942        6.1296        .15996E-03   -1.5206    
  11  norm          .26366        30.611        .38459E-02   -1.5605    
  12  Prefactor     .10000E-03    5.2194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.403        4.8989        .10941E-03   -1.4976    
  15  norm          2.4202        .45243        .26472E-04   -1.5397    
  16  Prefactor     .10000E-03    21.935        .13789       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.4238        .34646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1101        3.2201        .21106E-03   -1.5417    
  19  Prefactor     .10000E-03    20.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.290        17.960        .96315E-04   -1.4876    
  21  Prefactor     .10000E-03    8.0080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .65300        .18479        .35490E-03   -1.0578    
  23  Prefactor     1.1610        .12010        .18857E-03   -.87540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84281e-09
Minuit parameter uncertainties:
  1  81.26
  2  12.0648
  3  20.0573
  4  6.61211
  5  19.9396
  6  2.65224e-07
  7  3.39483
  8  7.10587
  9  11.7971
  10  6.13023
  11  5.68379
  12  4.48095e-06
  13  8.51432e-05
  14  4.89908
  15  0.452435
  16  0.000158367
  17  4.89682e-05
  18  3.22036
  19  1.63058e-05
  20  17.9655
  21  1.4324e-05
  22  0.18497
  23  0.120126
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.088e+01  7.106e+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.161e+00  1.201e-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:  6.530e-01  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.03
Ra Dec: 325.462 -37.455
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 5.81e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 9.74e-06

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) = 9797.73558232
delta logL = 0.0265423146029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9797.7258466
delta logL = 0.0362780308806

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8949       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8080       1.0000          .0000       10.000    
     3 'Normalizat'    .64410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1647       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=   9797.726     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      244 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8944        8.0665        .12739E-03    .49852E-03
   2  Index         2.8080        .74737        .82966E-02    .90984E-04
   3  Normalizat    .64408        .17309        .35713E-03   -.43911E-03
   4  Prefactor     1.1647        .11769        .18830E-03   -.18134E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.8944
  Index      = 2.80803
  Normalizat = 0.644081
  Prefactor  = 1.16468
 **********
 **   18 **HESSE 
 **********

 FCN=   9797.726     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8944        7.6196        .50955E-05   -1.5079    
   2  Index         2.8080        .70543        .33186E-03   -.45381    
   3  Normalizat    .64408        .17303        .14285E-04   -1.0614    
   4  Prefactor     1.1647        .11765        .37661E-04   -.87425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.22969e-10
Minuit parameter uncertainties:
  1  7.62037
  2  0.708359
  3  0.173172
  4  0.117676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/677234': 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) = 9797.72584658
delta logL = 0.0362780480154

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  9.894e+00  7.620e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.808e+00  7.084e-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.165e+00  1.177e-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:  6.441e-01  1.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.11
Ra Dec: 325.462 -37.455
Photon Index (Free Index): 2.81 +/- 0.71
Photon Flux (Free Index): 6.50e-08 +/- 4.58e-08
Energy Flux (Free Index): 1.45e-05 +/- 9.04e-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/677234/cmap_HighResolution_323308801_323568001_4FGL_J2141.8-3727_daily_bin324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.81e-08', energy_flux2='1.45e-05', photon_flux_error='3.79e-08', dlogl='3.63e-02', energy_flux='1.49e-05', photon_flux2='6.50e-08', job_status='DONE', time_completed='2021-09-27 00:08:15.723388', photon_index_error2='0.71', photon_index2='2.81', ts='4.03', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='9.04e-06', EG='0.65', time_epoch_completed='1632726495.72', return_code='0', job_id='677234', GAL2='1.16', EG2='0.64', return_code2='0', energy_flux_error='9.74e-06', photon_flux_error2='4.58e-08', ts2='4.11', photon_index='2.62' WHERE bin_id='324' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:08:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 677234: <4FGL_J2141.8-3727_daily_bin324> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin324> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 23:55:15 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 23:57:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 23:57:27 2021
Terminated at Mon Sep 27 00:08:16 2021
Results reported at Mon Sep 27 00:08:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin324 325.462 -37.4545 323308801 323568001 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 :                                   623.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            781 sec.

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

