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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin397
RA = 325.462, Dec = -37.4545
tmin = 342230401, tmax = 342489601
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='678520', job_status='RUN', time_executed='2021-09-27 00:00:53.535571', time_epoch_executed='1632726053.54' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/678520

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/678520/ft1_4FGL_J2141.8-3727_daily_bin397.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/678520/ft2_4FGL_J2141.8-3727_daily_bin397.fits


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

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

Done.
real 4.22
user 3.41
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/678520/ft2_4FGL_J2141.8-3727_daily_bin397.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/678520/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin397.fits evtable="EVENTS" outfile="/scratch/kocevski/678520/ft1_filtered_4FGL_J2141.8-3727_daily_bin397.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.55
user 0.38
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/678520/ft1_filtered_4FGL_J2141.8-3727_daily_bin397.fits" evtable="EVENTS" scfile=/scratch/kocevski/678520/ft2_4FGL_J2141.8-3727_daily_bin397.fits sctable="SC_DATA" outfile=/scratch/kocevski/678520/ltcube_342230401_342489601_4FGL_J2141.8-3727_daily_bin397.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/678520/ft2_4FGL_J2141.8-3727_daily_bin397.fits
.....................!
real 19.07
user 18.57
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/678520/ft1_filtered_4FGL_J2141.8-3727_daily_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/678520/ft2_4FGL_J2141.8-3727_daily_bin397.fits sctable="SC_DATA" expcube=/scratch/kocevski/678520/ltcube_342230401_342489601_4FGL_J2141.8-3727_daily_bin397.fits outfile=/scratch/kocevski/678520/expmap_342230401_342489601_4FGL_J2141.8-3727_daily_bin397.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/678520/ltcube_342230401_342489601_4FGL_J2141.8-3727_daily_bin397.fits
.....................!
real 195.57
user 189.30
sys 5.72

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/678520/ft1_filtered_4FGL_J2141.8-3727_daily_bin397.fits scfile=/scratch/kocevski/678520/ft2_4FGL_J2141.8-3727_daily_bin397.fits outfile=/scratch/kocevski/678520/cmap_342230401_342489601_4FGL_J2141.8-3727_daily_bin397.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/678520/ft1_filtered_4FGL_J2141.8-3727_daily_bin397.fits scfile=/scratch/kocevski/678520/ft2_4FGL_J2141.8-3727_daily_bin397.fits outfile=/scratch/kocevski/678520/cmap_HighResolution_342230401_342489601_4FGL_J2141.8-3727_daily_bin397.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.58
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/678520/ft1_filtered_4FGL_J2141.8-3727_daily_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/678520/ft2_4FGL_J2141.8-3727_daily_bin397.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/678520/Model_4FGL_J2141.8-3727_daily_bin397.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/678520/ft1_filtered_4FGL_J2141.8-3727_daily_bin397.fits.....................!
real 73.01
user 71.36
sys 1.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.555       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.398       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.886       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.342       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.200       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3029       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.4934       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .37481E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2215       1.0000         .10000E-03   10000.    
    14 'norm      '    5.2022       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2048       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6709       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .85968       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89051       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=   9566.759     FROM MIGRAD    STATUS=CONVERGED    895 CALLS     2581 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.398        .18142E-02** at limit **
   2  Prefactor     29.554        15.940        .73698E-04   -.37023E-05
   3  Prefactor     37.397        20.457        .65537E-04   -.31918E-04
   4  Prefactor     20.887        7.3718        .87642E-04    .22312E-04
   5  Prefactor     12.325        25.167        .11402E-03   -.33899E-05
   6  norm          .10000E-03    1.4223        .11388E-02** at limit **
   7  norm          12.201        5.3339        .11469E-03    .95955E-04
   8  Prefactor     .10000E-03    1.9215        .13191E-02** at limit **
   9  Prefactor     5.3033        7.3581        .87267E-03   -.29223E-03
  10  Prefactor     .10000E-03    2.8513        .16077E-02** at limit **
  11  norm          7.4931        5.6596        .14651E-03   -.23047E-03
  12  Prefactor     .10000E-03    20.291        .42586E-03** at limit **
  13  Prefactor     1.0589        15.835        .20400       -.62151E-04
  14  norm          5.2027        3.0288        .11974E-03   -.15419E-03
  15  norm          1.2048        .32016        .26743E-04   -.26357E-03
  16  Prefactor     .10000E-03    10.758        .18142E-02** at limit **
  17  Prefactor     .10000E-03    4.0370        .36285E-03** at limit **
  18  Prefactor     2.6713        3.7683        .21249E-03   -.16008E-03
  19  Prefactor     .10000E-03    35.751        .18142E-02** at limit **
  20  Prefactor     .10000E-03    4.8880        .18142E-02** at limit **
  21  Prefactor     .10000E-03    35.710        .18142E-02** at limit **
  22  Normalizat    .85969        .15998        .28434E-03   -.58615E-04
  23  Prefactor     .89051        .10473        .18940E-03   -.35654E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 29.5536
  Prefactor  = 37.3966
  Prefactor  = 20.8867
  Prefactor  = 12.3254
  norm       = 0.0001
  norm       = 12.2013
  Prefactor  = 0.0001
  Prefactor  = 5.30329
  Prefactor  = 0.0001
  norm       = 7.49312
  Prefactor  = 0.0001
  Prefactor  = 1.05887
  norm       = 5.20272
  norm       = 1.20483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.67133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.859693
  Prefactor  = 0.890515
 **********
 **   18 **HESSE 
 **********

 FCN=   9566.759     FROM HESSE     STATUS=OK           350 CALLS     2931 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.398        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.554        15.942        .29479E-05   -1.4620    
   3  Prefactor     37.397        20.461        .26215E-05   -1.4484    
   4  Prefactor     20.887        7.3717        .35057E-05   -1.4794    
   5  Prefactor     12.325        25.160        .45610E-05   -1.5006    
   6  norm          .10000E-03    1.4224        .22776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.201        5.3335        .45875E-05   -1.5009    
   8  Prefactor     .10000E-03    1.9218        .26382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3033        7.3571        .34907E-04   -1.5247    
  10  Prefactor     .10000E-03    2.8518        .32155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.4931        5.6602        .58603E-05   -1.5160    
  12  Prefactor     .10000E-03    20.292        .85172E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0589        186.23        .73030E-02   -1.5502    
  14  norm          5.2027        3.0268        .47896E-05   -1.5252    
  15  norm          1.2048        .32012        .10697E-05   -1.5488    
  16  Prefactor     .10000E-03    10.760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0372        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6713        3.7681        .84998E-05   -1.5381    
  19  Prefactor     .10000E-03    35.758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8883        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.737        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .85969        .16001        .11374E-04   -.97891    
  23  Prefactor     .89051        .10477        .75762E-05   -.96473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33781e-09
Minuit parameter uncertainties:
  1  2.21642e-05
  2  15.9441
  3  20.465
  4  7.37205
  5  25.1811
  6  2.76271e-07
  7  5.3337
  8  3.36835e-06
  9  7.35833
  10  3.40456e-06
  11  5.66059
  12  7.80254e-05
  13  28.1728
  14  3.02687
  15  0.320122
  16  4.56303e-06
  17  5.80305e-06
  18  3.76847
  19  1.57918e-05
  20  1.78509e-06
  21  3.73618e-05
  22  0.1601
  23  0.104797
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  3.368e-06  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:  8.905e-01  1.048e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  8.597e-01  1.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/678520/likelihoodResults_342230401_342489601_4FGL_J2141.8-3727_daily_bin397.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9566.7618062
delta logL = -0.00248145575097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9566.75932456
delta logL = 1.86482793652e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6051       1.0000          .0000       10.000    
     3 'Normalizat'    .85970       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89049       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=   9566.759     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      253 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.790        .13358E-01** at limit **
   2  Index         2.1404        6.0705        .50000        .46298E-06
   3  Normalizat    .85969        .87459E-02    .28434E-03   -.50707E-03
   4  Prefactor     .89051        .59605E-02    .18940E-03   -.75471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1404
  Normalizat = 0.859693
  Prefactor  = 0.890514
 **********
 **   18 **HESSE 
 **********

 FCN=   9566.759     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    122.32        .14540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1404        5.4511        .50000       -.60884    
   3  Normalizat    .85969        .28453E-01    .11373E-04   -.97891    
   4  Prefactor     .89051        .19392E-01    .37881E-04   -.96473    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.22295e-09
Minuit parameter uncertainties:
  1  0.000130389
  2  549.925
  3  0.0284537
  4  0.019392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/678520': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9566.75932007
delta logL = 4.67888457933e-06

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.304e-04  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.140e+00  5.499e+02  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:  8.905e-01  1.939e-02  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  8.597e-01  2.845e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 325.462 -37.455

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/678520/cmap_HighResolution_342230401_342489601_4FGL_J2141.8-3727_daily_bin397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.48e-03', job_status='DONE', photon_flux_upper_limit='4.44e-08', time_completed='2021-09-27 00:15:18.748649', job_id='678520', GAL2='0.89', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1632726918.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.68e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='397' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:15:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 678520: <4FGL_J2141.8-3727_daily_bin397> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin397> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep 27 00:00:28 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:00:35 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:00:35 2021
Terminated at Mon Sep 27 00:15:19 2021
Results reported at Mon Sep 27 00:15:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin397 325.462 -37.4545 342230401 342489601 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 :                                   861.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            891 sec.

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

