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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1403
RA = 325.462, Dec = -37.4545
tmin = 602985601, tmax = 603244801
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='684312', job_status='RUN', time_executed='2021-09-27 00:23:07.919222', time_epoch_executed='1632727387.92' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/684312

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/684312/ft1_4FGL_J2141.8-3727_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/684312/ft2_4FGL_J2141.8-3727_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/684312/ft1_4FGL_J2141.8-3727_daily_bin1403.fits outfile=/scratch/kocevski/684312/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1403.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=602985601.0 tmax=603244801.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.04
user 2.83
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/684312/ft1_filtered_4FGL_J2141.8-3727_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/684312/ft2_4FGL_J2141.8-3727_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/684312/ltcube_602985601_603244801_4FGL_J2141.8-3727_daily_bin1403.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/684312/ft2_4FGL_J2141.8-3727_daily_bin1403.fits
.....................!
real 17.22
user 16.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/684312/ft1_filtered_4FGL_J2141.8-3727_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/684312/ft2_4FGL_J2141.8-3727_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/684312/ltcube_602985601_603244801_4FGL_J2141.8-3727_daily_bin1403.fits outfile=/scratch/kocevski/684312/expmap_602985601_603244801_4FGL_J2141.8-3727_daily_bin1403.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/684312/ltcube_602985601_603244801_4FGL_J2141.8-3727_daily_bin1403.fits
.....................!
real 191.98
user 187.17
sys 4.35

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/684312/ft1_filtered_4FGL_J2141.8-3727_daily_bin1403.fits scfile=/scratch/kocevski/684312/ft2_4FGL_J2141.8-3727_daily_bin1403.fits outfile=/scratch/kocevski/684312/cmap_602985601_603244801_4FGL_J2141.8-3727_daily_bin1403.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.07
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/684312/ft1_filtered_4FGL_J2141.8-3727_daily_bin1403.fits scfile=/scratch/kocevski/684312/ft2_4FGL_J2141.8-3727_daily_bin1403.fits outfile=/scratch/kocevski/684312/cmap_HighResolution_602985601_603244801_4FGL_J2141.8-3727_daily_bin1403.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/684312/ft1_filtered_4FGL_J2141.8-3727_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/684312/ft2_4FGL_J2141.8-3727_daily_bin1403.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/684312/Model_4FGL_J2141.8-3727_daily_bin1403.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/684312/ft1_filtered_4FGL_J2141.8-3727_daily_bin1403.fits..............................!
real 15.50
user 14.26
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11362E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.760       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11968E-03   1.0000         .10000E-03   10000.    
     6 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     7 'norm      '    .11875E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'norm      '    10000.       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.898       1.0000         .10000E-03   10000.    
    13 'Prefactor '    129.12       1.0000         .10000E-03   10000.    
    14 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11086E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    62.696       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .59045       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=   342.1797     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     3003 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    98.067        .25527E-05** at limit **
   2  Prefactor     .10000E-03    89.863       -.21928E-04** at limit **
   3  Prefactor     .10000E-03    39.139       -.16802E-05** at limit **
   4  Prefactor     17.792        33.299        .12715E-04   -.13948E-03
   5  Prefactor     .10002E-03    106.35        .81551E-05** at limit **
   6  norm         10000.0        9526.6       -.70736E-03** at limit **
   7  norm          .10002E-03    108.79        .68322E-05** at limit **
   8  Prefactor    10000.0        1816.1       -.11584E-03** at limit **
   9  Prefactor    10000.0        9921.9       -.26412E-03** at limit **
  10  Prefactor    10000.0        7334.9       -.19287E-03** at limit **
  11  norm         10000.0        2178.0        .28425E-04** at limit **
  12  Prefactor     .10261E-03    7726.4        .98645E-03** at limit **
  13  Prefactor    10000.0        5075.3        .66783E-04** at limit **
  14  norm         10000.0        7506.3        .13352E-03** at limit **
  15  norm          .10000E-03    12.812       -.22902E-06** at limit **
  16  Prefactor     .10000E-03    679.24        .45438E-04** at limit **
  17  Prefactor     .10000E-03    20.990       -.76896E-06** at limit **
  18  Prefactor     .10000E-03    18.127        .13198E-05** at limit **
  19  Prefactor     .10004E-03    180.13        .23444E-04** at limit **
  20  Prefactor     .10000E-03    25.045        .18916E-05** at limit **
  21  Prefactor     62.617        72.256       -.11057E-04    .19366E-03
  22  Normalizat    .10000E-01    .16162       -.11599E-03** at limit **
  23  Prefactor     .58901        .22993       -.22740E-04    .15450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7924
  Prefactor  = 0.000100018
  norm       = 10000
  norm       = 0.000100024
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.000102609
  Prefactor  = 10000
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 62.6167
  Normalizat = 0.01
  Prefactor  = 0.589014
 **********
 **   18 **HESSE 
 **********

 FCN=   342.1797     FROM HESSE     STATUS=OK           350 CALLS     3353 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    101.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    90.686        .17317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.697        .11407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.792        33.427        .95037E-04   -1.4864    
   5  Prefactor     .10002E-03    109.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm         10000.0        9524.9        .20967E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10002E-03    112.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        1815.1        .20662E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        9919.3        .18232E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        7338.3        .20268E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm         10000.0        2190.9        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10261E-03    7795.3        .55767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        5053.0        .17715E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm         10000.0        7536.0        .18174E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.862        .64890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    676.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.035        .83206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.358        .77274E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10004E-03    179.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.263        .90970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     62.617        72.326        .50678E-04   -1.4124    
  22  Normalizat    .10000E-01    .16148        .22913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .58901        .22983        .17000E-03   -1.0805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87516e-09
Minuit parameter uncertainties:
  1  0.000467624
  2  8.99794e-05
  3  0.000168373
  4  33.4626
  5  0.00282404
  6  0.527861
  7  0.0032964
  8  0.0210662
  9  0.148839
  10  0.118083
  11  0.0218731
  12  0.742009
  13  4.47614
  14  0.0234194
  15  9.36299e-06
  16  0.00168235
  17  4.06857e-05
  18  7.42177e-05
  19  0.00548448
  20  3.40657e-05
  21  72.4282
  22  1.07243e-05
  23  0.230198
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e+04  2.107e-02  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:  5.890e-01  2.302e-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.000e-02  1.072e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.06
Ra Dec: 325.462 -37.455
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 5.34e-05 +/- 1.12e-10
Energy Flux (Fixed Index): 1.37e-02 +/- 2.89e-08

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) = 334.008318727
delta logL = 8.17142558085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 334.00830159
delta logL = 8.17144271746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4261       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45848       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=   334.0083     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      173 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        9850.3        .19552E-02** at limit **
   2  Index         4.4260        .25108        .54381E-06    .20546E-03
   3  Normalizat    .10000E-01    .11230        .75904E-06** at limit **
   4  Prefactor     .45847        .18938        .17861E-06    .11318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Index      = 4.42601
  Normalizat = 0.01
  Prefactor  = 0.45847
 **********
 **   18 **HESSE 
 **********

 FCN=   334.0083     FROM HESSE     STATUS=OK            25 CALLS      198 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        9852.0        .18143E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.4260        .25142        .90088E-04   -.11505    
   3  Normalizat    .10000E-01    .11248        .18921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .45847        .18893        .16106E-03   -1.1392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08606e-10
Minuit parameter uncertainties:
  1  0.0307379
  2  0.251528
  3  3.81436e-08
  4  0.18919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/684312': 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) = 334.008300838
delta logL = 8.17144347015

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e+04  3.074e-02  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  4.426e+00  2.515e-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:  4.585e-01  1.892e-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.000e-02  3.814e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.39
Ra Dec: 325.462 -37.455
Photon Index (Free Index): 4.43 +/- 0.25
Photon Flux (Free Index): 5.45e-04 +/- 1.92e-04
Energy Flux (Free Index): 7.68e-02 +/- 2.48e-02

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/684312/cmap_HighResolution_602985601_603244801_4FGL_J2141.8-3727_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.34e-05', energy_flux2='7.68e-02', photon_flux_error='1.12e-10', dlogl='8.17e+00', energy_flux='1.37e-02', photon_flux2='5.45e-04', job_status='DONE', time_completed='2021-09-27 00:28:59.192980', photon_index_error2='0.25', photon_index2='4.43', ts='7.06', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', energy_flux_error2='2.48e-02', EG='0.01', time_epoch_completed='1632727739.19', return_code='0', job_id='684312', GAL2='0.46', EG2='0.01', return_code2='0', energy_flux_error='2.89e-08', photon_flux_error2='1.92e-04', ts2='24.39', photon_index='2.62' WHERE bin_id='1403' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:28:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 684312: <4FGL_J2141.8-3727_daily_bin1403> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1403 325.462 -37.4545 602985601 603244801 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 :                                   339.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             329.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   365 sec.
    Turnaround time :                            505 sec.

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

