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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1268
RA = 325.462, Dec = -37.4545
tmin = 567993601, tmax = 568252801
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='684113', job_status='RUN', time_executed='2021-09-27 00:21:41.891656', time_epoch_executed='1632727301.89' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1268'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/684113

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/684113/ft1_4FGL_J2141.8-3727_daily_bin1268.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/684113/ft2_4FGL_J2141.8-3727_daily_bin1268.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/684113/ft1_4FGL_J2141.8-3727_daily_bin1268.fits outfile=/scratch/kocevski/684113/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1268.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=567993601.0 tmax=568252801.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 2.08
user 1.75
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/684113/ft1_filtered_4FGL_J2141.8-3727_daily_bin1268.fits" evtable="EVENTS" scfile=/scratch/kocevski/684113/ft2_4FGL_J2141.8-3727_daily_bin1268.fits sctable="SC_DATA" outfile=/scratch/kocevski/684113/ltcube_567993601_568252801_4FGL_J2141.8-3727_daily_bin1268.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/684113/ft2_4FGL_J2141.8-3727_daily_bin1268.fits
.....................!
real 12.98
user 12.44
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/684113/ft1_filtered_4FGL_J2141.8-3727_daily_bin1268.fits evtable="EVENTS" scfile=/scratch/kocevski/684113/ft2_4FGL_J2141.8-3727_daily_bin1268.fits sctable="SC_DATA" expcube=/scratch/kocevski/684113/ltcube_567993601_568252801_4FGL_J2141.8-3727_daily_bin1268.fits outfile=/scratch/kocevski/684113/expmap_567993601_568252801_4FGL_J2141.8-3727_daily_bin1268.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/684113/ltcube_567993601_568252801_4FGL_J2141.8-3727_daily_bin1268.fits
.....................!
real 157.15
user 151.65
sys 4.31

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/684113/ft1_filtered_4FGL_J2141.8-3727_daily_bin1268.fits scfile=/scratch/kocevski/684113/ft2_4FGL_J2141.8-3727_daily_bin1268.fits outfile=/scratch/kocevski/684113/cmap_567993601_568252801_4FGL_J2141.8-3727_daily_bin1268.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.75
user 0.32
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/684113/ft1_filtered_4FGL_J2141.8-3727_daily_bin1268.fits scfile=/scratch/kocevski/684113/ft2_4FGL_J2141.8-3727_daily_bin1268.fits outfile=/scratch/kocevski/684113/cmap_HighResolution_567993601_568252801_4FGL_J2141.8-3727_daily_bin1268.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.50
user 0.32
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/684113/ft1_filtered_4FGL_J2141.8-3727_daily_bin1268.fits evtable="EVENTS" scfile=/scratch/kocevski/684113/ft2_4FGL_J2141.8-3727_daily_bin1268.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/684113/Model_4FGL_J2141.8-3727_daily_bin1268.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/684113/ft1_filtered_4FGL_J2141.8-3727_daily_bin1268.fits.....................!
real 37.53
user 36.28
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    232.34       1.0000         .10000E-03   10000.    
     2 'Prefactor '    48.553       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.437       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.002       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.366       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.8344       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9848       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5997       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7226       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5298       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9197       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.732       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1001       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0438       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=   5260.936     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2514 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     232.34        260.95        .64917E-06   -.86470E-05
   2  Prefactor     48.552        36.964        .18645E-06   -.32588E-04
   3  Prefactor     .10000E-03    10.318       -.51625E-06** at limit **
   4  Prefactor     11.439        15.607        .20625E-05   -.18496E-03
   5  Prefactor     .10000E-03    14.316        .39681E-05** at limit **
   6  norm          .10000E-03    4.2515        .30626E-07** at limit **
   7  norm          .10000E-03    2.0401       -.19382E-08** at limit **
   8  Prefactor     20.004        13.293        .24981E-06   -.43430E-04
   9  Prefactor     29.367        20.252       -.58529E-07    .10979E-04
  10  Prefactor     .10000E-03    5.2302       -.18199E-06** at limit **
  11  norm          8.8345        9.3123        .17365E-06   -.33084E-04
  12  Prefactor     .10004E-03    48.659       -.27718E-07** at limit **
  13  Prefactor     8.0063        67.908        .11606E-04    .17806E-03
  14  norm          .10000E-03    5.3473        .67036E-06** at limit **
  15  norm          1.5998        .50752       -.28036E-07   -.47287E-03
  16  Prefactor     3.7111        158.81       -.92543E-05   -.58820E-04
  17  Prefactor     4.5314        9.2244        .51364E-05   -.68242E-03
  18  Prefactor     2.9200        3.9081        .20104E-05   -.89068E-03
  19  Prefactor     .10001E-03    16.816       -.52424E-05** at limit **
  20  Prefactor     .10001E-03    32.806        .54851E-05** at limit **
  21  Prefactor     12.733        24.859        .29109E-06   -.91456E-05
  22  Normalizat    1.0999        .25944       -.27316E-05   -.29352E-04
  23  Prefactor     1.0439        .15735       -.67081E-07   -.12297E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 232.339
  Prefactor  = 48.5521
  Prefactor  = 0.0001
  Prefactor  = 11.4388
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 20.0044
  Prefactor  = 29.3668
  Prefactor  = 0.0001
  norm       = 8.83448
  Prefactor  = 0.000100035
  Prefactor  = 8.00633
  norm       = 0.0001
  norm       = 1.59978
  Prefactor  = 3.71108
  Prefactor  = 4.5314
  Prefactor  = 2.91999
  Prefactor  = 0.000100007
  Prefactor  = 0.000100006
  Prefactor  = 12.7333
  Normalizat = 1.09988
  Prefactor  = 1.04394
 **********
 **   18 **HESSE 
 **********

 FCN=   5260.936     FROM HESSE     STATUS=OK           366 CALLS     2880 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     232.34        261.14        .26552E-04   -1.2647    
   2  Prefactor     48.552        37.004        .57548E-04   -1.4313    
   3  Prefactor     .10000E-03    10.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.439        15.705        .59231E-03   -1.5031    
   5  Prefactor     .10000E-03    14.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.2587        .14606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.0475        .10117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.004        13.354        .89556E-04   -1.4813    
   9  Prefactor     29.367        20.271        .73933E-04   -1.4624    
  10  Prefactor     .10000E-03    5.2435        .16195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.8345        9.3091        .13485E-03   -1.5113    
  12  Prefactor     .10004E-03    50.908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.0063        71.739        .14189E-03   -1.5142    
  14  norm          .10000E-03    5.4252        .16323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5998        .50860        .27744E-04   -1.5455    
  16  Prefactor     3.7111        164.11        .20929E-03   -1.5323    
  17  Prefactor     4.5314        9.6268        .94577E-03   -1.5282    
  18  Prefactor     2.9200        3.9818        .81886E-03   -1.5366    
  19  Prefactor     .10001E-03    17.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    33.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.733        24.970        .11226E-03   -1.4994    
  22  Normalizat    1.0999        .29999        .31992E-03   -.89756    
  23  Prefactor     1.0439        .18091        .21831E-03   -.91279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20938e-09
Minuit parameter uncertainties:
  1  262.47
  2  37.0218
  3  5.02285e-05
  4  15.7107
  5  0.000481317
  6  1.90066e-06
  7  8.66505e-07
  8  13.3562
  9  20.2762
  10  1.0974e-05
  11  9.31065
  12  0.00268445
  13  48.0085
  14  9.75267e-06
  15  0.508602
  16  49.5012
  17  9.63012
  18  3.9822
  19  0.000690528
  20  0.000885555
  21  24.99
  22  0.300454
  23  0.18102
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  2.000e+01  1.336e+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:  1.044e+00  1.810e-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.100e+00  3.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.39
Ra Dec: 325.462 -37.455
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 7.12e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.83e-05

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

Saving results to:
/scratch/kocevski/684113/likelihoodResults_567993601_568252801_4FGL_J2141.8-3727_daily_bin1268.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) = 5260.48885679
delta logL = 0.447508011197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5260.47185817
delta logL = 0.464506633793

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.087       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3045       1.0000          .0000       10.000    
     3 'Normalizat'    1.0612       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0614       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=   5260.472     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      273 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.084        14.162        .11522E-03    .83048E-03
   2  Index         3.3047        .88903        .57427E-02    .21036E-03
   3  Normalizat    1.0612        .27027        .32478E-03   -.48236E-03
   4  Prefactor     1.0614        .17798        .21671E-03   -.71067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0843
  Index      = 3.30474
  Normalizat = 1.06118
  Prefactor  = 1.06143
 **********
 **   18 **HESSE 
 **********

 FCN=   5260.472     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.084        12.588        .46089E-05   -1.5013    
   2  Index         3.3047        .79066        .22971E-03   -.34591    
   3  Normalizat    1.0612        .27046        .64956E-04   -.91008    
   4  Prefactor     1.0614        .17797        .43341E-04   -.90709    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12113e-09
Minuit parameter uncertainties:
  1  12.5905
  2  0.794428
  3  0.270815
  4  0.178073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/684113': 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) = 5260.47185814
delta logL = 0.464506662451

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.208e+01  1.259e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.305e+00  7.944e-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.061e+00  1.781e-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.061e+00  2.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.37
Ra Dec: 325.462 -37.455
Photon Index (Free Index): 3.30 +/- 0.79
Photon Flux (Free Index): 1.45e-07 +/- 8.74e-08
Energy Flux (Free Index): 2.56e-05 +/- 1.53e-05

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/684113/cmap_HighResolution_567993601_568252801_4FGL_J2141.8-3727_daily_bin1268.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-02', comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='2.56e-05', photon_flux_error='7.12e-08', dlogl='4.65e-01', energy_flux='2.74e-05', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-27 00:29:40.527264', photon_index_error2='0.79', photon_index2='3.30', ts='3.39', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='2.48e-07', energy_flux_error2='1.53e-05', EG='1.10', time_epoch_completed='1632727780.53', return_code='0', job_id='684113', GAL2='1.06', EG2='1.06', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='8.74e-08', ts2='4.37', photon_index='2.62' WHERE bin_id='1268' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:29:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 684113: <4FGL_J2141.8-3727_daily_bin1268> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1268> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 00:20:18 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:21:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 00:21:05 2021
Terminated at Mon Sep 27 00:29:41 2021
Results reported at Mon Sep 27 00:29:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1268 325.462 -37.4545 567993601 568252801 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 :                                   471.56 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             309.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   515 sec.
    Turnaround time :                            563 sec.

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

