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


Performing analysis on: 4FGL_J2143.1-3929_daily_bin1651
RA = 325.793, Dec = -39.4882
tmin = 667267201, tmax = 667526401
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='535913', job_status='RUN', time_executed='2022-02-26 01:14:22.165290', time_epoch_executed='1645866862.17' WHERE source_name='4FGL J2143.1-3929' and cadence='daily' and bin_id='1651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/535913

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/535913/ft1_4FGL_J2143.1-3929_daily_bin1651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/535913/ft2_4FGL_J2143.1-3929_daily_bin1651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/535913/ft1_4FGL_J2143.1-3929_daily_bin1651.fits outfile=/scratch/kocevski/535913/ft1_filteredMKT_4FGL_J2143.1-3929_daily_bin1651.fits ra=325.793 dec=-39.4882 rad=12.0 tmin=667267201.0 tmax=667526401.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.96
user 2.69
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/535913/ft2_4FGL_J2143.1-3929_daily_bin1651.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/535913/ft2_4FGL_J2143.1-3929_daily_bin1651.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/535913/ft1_filteredMKT_4FGL_J2143.1-3929_daily_bin1651.fits evtable="EVENTS" outfile="/scratch/kocevski/535913/ft1_filtered_4FGL_J2143.1-3929_daily_bin1651.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.54
user 0.36
sys 0.16
Number of photons that survived the gtmktime cut: 43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/535913/ft1_filtered_4FGL_J2143.1-3929_daily_bin1651.fits" evtable="EVENTS" scfile=/scratch/kocevski/535913/ft2_4FGL_J2143.1-3929_daily_bin1651.fits sctable="SC_DATA" outfile=/scratch/kocevski/535913/ltcube_667267201_667526401_4FGL_J2143.1-3929_daily_bin1651.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/535913/ft2_4FGL_J2143.1-3929_daily_bin1651.fits
.....................!
real 19.14
user 18.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/535913/ft1_filtered_4FGL_J2143.1-3929_daily_bin1651.fits evtable="EVENTS" scfile=/scratch/kocevski/535913/ft2_4FGL_J2143.1-3929_daily_bin1651.fits sctable="SC_DATA" expcube=/scratch/kocevski/535913/ltcube_667267201_667526401_4FGL_J2143.1-3929_daily_bin1651.fits outfile=/scratch/kocevski/535913/expmap_667267201_667526401_4FGL_J2143.1-3929_daily_bin1651.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/535913/ltcube_667267201_667526401_4FGL_J2143.1-3929_daily_bin1651.fits
.....................!
real 195.14
user 189.37
sys 5.11

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 172 point sources and 0 extended sources

Setting source of interest to:
4FGL J2143.1-3929 @ 325.793 -39.4882

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/535913/ft1_filtered_4FGL_J2143.1-3929_daily_bin1651.fits scfile=/scratch/kocevski/535913/ft2_4FGL_J2143.1-3929_daily_bin1651.fits outfile=/scratch/kocevski/535913/cmap_667267201_667526401_4FGL_J2143.1-3929_daily_bin1651.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.793 yref=-39.4882 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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/535913/ft1_filtered_4FGL_J2143.1-3929_daily_bin1651.fits scfile=/scratch/kocevski/535913/ft2_4FGL_J2143.1-3929_daily_bin1651.fits outfile=/scratch/kocevski/535913/cmap_HighResolution_667267201_667526401_4FGL_J2143.1-3929_daily_bin1651.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.793 yref=-39.4882 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/535913/ft1_filtered_4FGL_J2143.1-3929_daily_bin1651.fits evtable="EVENTS" scfile=/scratch/kocevski/535913/ft2_4FGL_J2143.1-3929_daily_bin1651.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/535913/Model_4FGL_J2143.1-3929_daily_bin1651.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/535913/ft1_filtered_4FGL_J2143.1-3929_daily_bin1651.fits......................!
real 17.60
user 15.54
sys 1.74

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/535913/ft1_filtered_4FGL_J2143.1-3929_daily_bin1651.fits', '/scratch/kocevski/535913/ft2_4FGL_J2143.1-3929_daily_bin1651.fits', expMap='/scratch/kocevski/535913/expmap_667267201_667526401_4FGL_J2143.1-3929_daily_bin1651.fits', expCube='/scratch/kocevski/535913/ltcube_667267201_667526401_4FGL_J2143.1-3929_daily_bin1651.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/535913/Model_4FGL_J2143.1-3929_daily_bin1651.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2143.1-3929'

4FGL J2143.1-3929
   Spectrum: PowerLaw
283    Prefactor:  1.791e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.139e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  1.680e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/535913/ft1_filtered_4FGL_J2143.1-3929_daily_bin1651.fits
Spacecraft file(s): /scratch/kocevski/535913/ft2_4FGL_J2143.1-3929_daily_bin1651.fits
Exposure map: /scratch/kocevski/535913/expmap_667267201_667526401_4FGL_J2143.1-3929_daily_bin1651.fits
Exposure cube: /scratch/kocevski/535913/ltcube_667267201_667526401_4FGL_J2143.1-3929_daily_bin1651.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/535913/Model_4FGL_J2143.1-3929_daily_bin1651.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) = 477.255811657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2019.1       1.0000         .10000E-03   10000.    
     8 'norm      '    1145.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4411.9       1.0000         .10000E-03   10000.    
    11 'norm      '    .10237E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17198E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .14209E-03   1.0000         .10000E-03   10000.    
    15 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.0047       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .61118       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   476.9428     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     3759 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    79.033        .33939E-04** at limit **
   2  norm          .10000E-03    2.1816        .17421E-06** at limit **
   3  Prefactor     .10000E-03    36.759       -.12150E-05** at limit **
   4  Prefactor     .10000E-03    53.800       -.34256E-04** at limit **
   5  Prefactor     .10000E-03    211.14        .53024E-04** at limit **
   6  norm          .10000E-03    48.084        .19432E-04** at limit **
   7  Prefactor     2018.4        1458.9       -.16371E-03    .17591E-05
   8  norm          1145.4        1352.2        .14498E-03    .17004E-05
   9  Prefactor     .10000E-03    275.18        .69059E-04** at limit **
  10  Prefactor     4412.0        7181.7        .14721E-04    .11049E-05
  11  norm          .10000E-03    199.81        .40319E-04** at limit **
  12  Prefactor     .10000E-03    1018.2       -.83011E-03** at limit **
  13  Prefactor     .10000E-03    6534.4       -.15369E-02** at limit **
  14  norm          .10000E-03    288.80        .62188E-04** at limit **
  15  norm         10000.0        6912.7        .44473E-03** at limit **
  16  Prefactor     .10000E-03    147.06       -.44654E-04** at limit **
  17  Prefactor     .10000E-03    25.268        .28060E-06** at limit **
  18  Prefactor     .10000E-03    301.08        .54049E-04** at limit **
  19  Prefactor     .10000E-03    150.24       -.39932E-04** at limit **
  20  Prefactor     9.0033        14.784        .50576E-06    .24965E-05
  21  Prefactor     .10000E-03    176.29        .50561E-05** at limit **
  22  Prefactor     .10000E-03    83.447        .23267E-04** at limit **
  23  Prefactor     .10000E-03    116.86       -.62237E-04** at limit **
  24  Normalizat    .10000E-01    .87011E-01    .59635E-06** at limit **
  25  Prefactor     .61119        .17604        .23648E-06    .22125E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2018.39
  norm       = 1145.42
  Prefactor  = 0.0001
  Prefactor  = 4411.96
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.00328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.611186
 **********
 **   18 **HESSE 
 **********

 FCN=   476.9428     FROM HESSE     STATUS=OK           405 CALLS     4164 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    79.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.2020        .31508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    36.833        .12944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    53.800        .15665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    211.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    48.083        .14808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2018.4        1458.5        .49823E-04   -.63891    
   8  norm          1145.4        1352.3        .62812E-04   -.88028    
   9  Prefactor     .10000E-03    275.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4412.0        7181.8        .40280E-04   -.11788    
  11  norm          .10000E-03    199.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1018.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6534.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    288.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm         10000.0        6912.9        .20825E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    147.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.272        .10730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    301.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    150.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.0033        14.792        .10430E-03   -1.5108    
  21  Prefactor     .10000E-03    176.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    83.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    116.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .87137E-01    .19901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .61119        .17598        .15309E-03   -1.0712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78296e-11
Minuit parameter uncertainties:
  1  2.25825e-05
  2  2.22337e-05
  3  3.12537e-05
  4  2.69929e-05
  5  7.25608e-05
  6  7.28454e-09
  7  1492.68
  8  1396.59
  9  6.51098e-05
  10  6523.04
  11  8.29901e-06
  12  2.04688e-05
  13  6.82999e-05
  14  2.57253e-06
  15  0.000367286
  16  0.000268223
  17  0.000168201
  18  0.000754512
  19  8.36971e-06
  20  14.7975
  21  2.60257e-05
  22  2.34267e-06
  23  4.52027e-05
  24  4.5917e-07
  25  0.176139
Done.

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

Extracting fit parameters...

4FGL J2143.1-3929
   Spectrum: PowerLaw
283    Prefactor:  4.412e+03  6.523e+03  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.139e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  1.680e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  6.112e-01  1.761e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.000e-02  4.592e-07  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.394445626922

TS (Fixed Index): 0.77
Ra Dec: 325.793 -39.488
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.58e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/535913/likelihoodResults_667267201_667526401_4FGL_J2143.1-3929_daily_bin1651.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) = 474.861527161
delta logL = 2.08122579907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 474.860683118
delta logL = 2.08206984188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.9504       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   474.8607     FROM MIGRAD    STATUS=CONVERGED     11 CALLS       57 TOTAL
                     EDM=   .37E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.9504        .22290        .22223E-01    .39127E-05
                               ERR DEF=  .500    
Final values: 
  Index      = 2.95042
 **********
 **   18 **HESSE 
 **********

 FCN=   474.8607     FROM HESSE     STATUS=OK             7 CALLS       64 TOTAL
                     EDM=   .33E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       2.9504        .22428        .10411E-03   -.42236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3162e-13
Minuit parameter uncertainties:
  1  0.22437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/535913': 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) = 474.860683117
delta logL = 2.08206984229

Extracting fit parameters...

4FGL J2143.1-3929
   Spectrum: PowerLaw
283    Prefactor:  4.412e+03  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
284        Index:  2.950e+00  2.244e-01  0.000e+00  1.000e+01 (-1.000e+00)
285        Scale:  1.680e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  6.112e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 4.94
Ra Dec: 325.793 -39.488
Photon Index (Free Index): 2.95 +/- 0.22
Photon Flux (Free Index): 9.34e-05 +/- 4.83e-05
Energy Flux (Free Index): 1.91e-02 +/- 7.63e-03

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/535913/cmap_HighResolution_667267201_667526401_4FGL_J2143.1-3929_daily_bin1651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.58e+04', comment='SUCCESS', energy_flux2='1.91e-02', dlogl='2.08e+00', photon_flux2='9.34e-05', job_status='DONE', time_completed='2022-02-26 01:20:28.293250', photon_index_error2='0.22', photon_index2='2.95', ts='0.69', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='7.63e-03', EG='0.01', time_epoch_completed='1645867228.29', return_code='0', job_id='535913', GAL2='0.61', EG2='0.01', return_code2='0', photon_flux_error2='4.83e-05', ts2='4.94', photon_index='2.14' WHERE bin_id='1651' AND source_name='4FGL J2143.1-3929' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 26 01:20:28 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 535913: <4FGL_J2143.1-3929_daily_bin1651> in cluster <slac> Done

Job <4FGL_J2143.1-3929_daily_bin1651> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Feb 26 01:10:18 2022
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 26 01:13:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 26 01:13:33 2022
Terminated at Sat Feb 26 01:20:29 2022
Results reported at Sat Feb 26 01:20:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2143.1-3929_daily_bin1651 325.793 -39.4882 667267201 667526401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2143.1-3929 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   368.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   415 sec.
    Turnaround time :                            611 sec.

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

