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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1006
RA = 325.462, Dec = -37.4545
tmin = 500083201, tmax = 500342401
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='682643', job_status='RUN', time_executed='2021-09-27 00:19:30.984512', time_epoch_executed='1632727170.98' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682643

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682643/ft1_4FGL_J2141.8-3727_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682643/ft2_4FGL_J2141.8-3727_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682643/ft1_4FGL_J2141.8-3727_daily_bin1006.fits outfile=/scratch/kocevski/682643/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1006.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=500083201.0 tmax=500342401.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 5.70
user 5.37
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682643/ft1_filtered_4FGL_J2141.8-3727_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/682643/ft2_4FGL_J2141.8-3727_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/682643/ltcube_500083201_500342401_4FGL_J2141.8-3727_daily_bin1006.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/682643/ft2_4FGL_J2141.8-3727_daily_bin1006.fits
.....................!
real 13.59
user 13.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682643/ft1_filtered_4FGL_J2141.8-3727_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/682643/ft2_4FGL_J2141.8-3727_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/682643/ltcube_500083201_500342401_4FGL_J2141.8-3727_daily_bin1006.fits outfile=/scratch/kocevski/682643/expmap_500083201_500342401_4FGL_J2141.8-3727_daily_bin1006.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/682643/ltcube_500083201_500342401_4FGL_J2141.8-3727_daily_bin1006.fits
.....................!
real 191.66
user 184.54
sys 6.08

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/682643/ft1_filtered_4FGL_J2141.8-3727_daily_bin1006.fits scfile=/scratch/kocevski/682643/ft2_4FGL_J2141.8-3727_daily_bin1006.fits outfile=/scratch/kocevski/682643/cmap_500083201_500342401_4FGL_J2141.8-3727_daily_bin1006.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682643/ft1_filtered_4FGL_J2141.8-3727_daily_bin1006.fits scfile=/scratch/kocevski/682643/ft2_4FGL_J2141.8-3727_daily_bin1006.fits outfile=/scratch/kocevski/682643/cmap_HighResolution_500083201_500342401_4FGL_J2141.8-3727_daily_bin1006.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/682643/ft1_filtered_4FGL_J2141.8-3727_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/682643/ft2_4FGL_J2141.8-3727_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682643/Model_4FGL_J2141.8-3727_daily_bin1006.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/682643/ft1_filtered_4FGL_J2141.8-3727_daily_bin1006.fits.....................!
real 58.73
user 57.27
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.829       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.330       1.0000         .10000E-03   10000.    
     3 'Prefactor '    67.371       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2861       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.744       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.051       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.797       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5460       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.309       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.451       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.5359       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .40380E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1093       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92917       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=   6746.086     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2571 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.951        85.790       -.95771E-05   -.31038E-05
   2  Prefactor     10.333        22.814        .12940E-06    .40662E-05
   3  Prefactor     67.375        29.002        .11033E-06    .10097E-04
   4  Prefactor     3.2871        8.1153        .18725E-05    .26227E-04
   5  Prefactor     .10000E-03    25.807        .69004E-06** at limit **
   6  norm          .10000E-03    1.7216       -.88071E-08** at limit **
   7  norm          11.744        6.5381        .56013E-07   -.98940E-05
   8  Prefactor     .10000E-03    4.4025       -.92402E-07** at limit **
   9  Prefactor     15.045        15.022       -.26028E-06    .25269E-05
  10  Prefactor     10.798        8.9572        .34309E-07    .15621E-05
  11  norm          .10000E-03    11.537       -.23012E-06** at limit **
  12  Prefactor     .10000E-03    8.1647        .18270E-07** at limit **
  13  Prefactor     .10000E-03    21.955       -.87221E-06** at limit **
  14  norm          2.5489        5.6039        .81638E-07   -.50016E-04
  15  norm          .10000E-03    .17075        .16397E-07** at limit **
  16  Prefactor     15.314        30.254        .23422E-06    .72449E-06
  17  Prefactor     24.433        16.327       -.78659E-06   -.63501E-04
  18  Prefactor     7.5381        8.8653        .60285E-07   -.64718E-05
  19  Prefactor     .10000E-03    29.014        .10582E-06** at limit **
  20  Prefactor     .10023E-03    32.337        .15738E-05** at limit **
  21  Prefactor     .10000E-03    18.295        .27026E-06** at limit **
  22  Normalizat    1.1091        .22745       -.11859E-05   -.20505E-04
  23  Prefactor     .92928        .12408        .80897E-06   -.66820E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9513
  Prefactor  = 10.3332
  Prefactor  = 67.3751
  Prefactor  = 3.28711
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.7444
  Prefactor  = 0.0001
  Prefactor  = 15.0449
  Prefactor  = 10.7981
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.54895
  norm       = 0.0001
  Prefactor  = 15.3137
  Prefactor  = 24.4328
  Prefactor  = 7.5381
  Prefactor  = 0.0001
  Prefactor  = 0.000100229
  Prefactor  = 0.0001
  Normalizat = 1.10905
  Prefactor  = 0.929284
 **********
 **   18 **HESSE 
 **********

 FCN=   6746.086     FROM HESSE     STATUS=OK           384 CALLS     2955 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.951        85.523        .10401E-03   -1.4934    
   2  Prefactor     10.333        22.825        .12467E-03   -1.5065    
   3  Prefactor     67.375        29.042        .48900E-04   -1.4064    
   4  Prefactor     3.2871        8.1394        .11168E-02   -1.5345    
   5  Prefactor     .10000E-03    25.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.7221        .10525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.744        6.5421        .11690E-03   -1.5022    
   8  Prefactor     .10000E-03    4.4316        .16825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.045        15.016        .10324E-03   -1.4932    
  10  Prefactor     10.798        8.9590        .12193E-03   -1.5051    
  11  norm          .10000E-03    11.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.1733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5489        5.3432        .24962E-03   -1.5389    
  15  norm          .10000E-03    .26331        .62208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.314        30.257        .10237E-03   -1.4925    
  17  Prefactor     24.433        16.513        .81009E-04   -1.4719    
  18  Prefactor     7.5381        8.8921        .14609E-03   -1.5159    
  19  Prefactor     .10000E-03    29.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10023E-03    32.189        .14575       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1091        .26084        .31349E-03   -.89462    
  23  Prefactor     .92928        .14300        .20015E-03   -.95125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2207e-11
Minuit parameter uncertainties:
  1  71.6735
  2  22.8439
  3  29.0481
  4  8.14212
  5  1.92698e-05
  6  1.93889e-07
  7  6.54247
  8  2.53802e-06
  9  15.0195
  10  8.96012
  11  7.92806e-06
  12  1.77018e-06
  13  2.61737e-06
  14  5.34423
  15  1.52167e-07
  16  30.2873
  17  16.5161
  18  8.8937
  19  6.72067e-07
  20  0.0054341
  21  6.63886e-07
  22  0.261143
  23  0.143061
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  2.538e-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:  9.293e-01  1.431e-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.109e+00  2.611e-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: 8.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682643/likelihoodResults_500083201_500342401_4FGL_J2141.8-3727_daily_bin1006.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) = 6746.08749313
delta logL = -0.00107514706724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6745.98713258
delta logL = 0.0992854031292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57396E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.0294       1.0000          .0000       10.000    
     3 'Normalizat'    1.0724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94291       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6745.987     FROM MIGRAD    STATUS=FAILED        97 CALLS      349 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57001E-03    .16587        .37478E-04** at limit **
   2  Index         9.0340        5.2944        .91797E-02   -.14193E-04
   3  Normalizat    1.0724        .16017        .31827E-03   -.51938E-04
   4  Prefactor     .94293        .91629E-01    .19888E-03   -.37728E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6745.987     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      440 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57001E-03    .16587        .57612E-05** at limit **
   2  Index         9.0340        5.2944        .49717E-02   -.14193E-04
   3  Normalizat    1.0724        .16017        .20588E-03   -.51938E-04
   4  Prefactor     .94293        .91629E-01    .58817E-04   -.37728E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6745.987     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      477 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57000E-03    .17579        .74956E-05** at limit **
   2  Index         9.0340        5.6482        .36719E-03   -.24769E-05
   3  Normalizat    1.0724        .23137        .12731E-04   -.35721E-05
   4  Prefactor     .94293        .13186        .79551E-05    .34298E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000569998
  Index      = 9.03399
  Normalizat = 1.07237
  Prefactor  = 0.942931
 **********
 **   18 **HESSE 
 **********

 FCN=   6745.987     FROM HESSE     STATUS=OK            25 CALLS      502 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57000E-03    .33650E-01    .29982E-06   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.0340        9.3225        .14688E-04    .93871    
   3  Normalizat    1.0724        .24694        .25461E-05   -.90644    
   4  Prefactor     .94293        .14193        .15910E-05   -.94657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36854e-12
Minuit parameter uncertainties:
  1  0.00795379
  2  8.58647
  3  0.24721
  4  0.141986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682643': 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) = 6745.98713238
delta logL = 0.0992856016437

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  5.700e-04  7.954e-03  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  9.034e+00  8.586e+00  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:  9.429e-01  1.420e-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.072e+00  2.472e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/682643/cmap_HighResolution_500083201_500342401_4FGL_J2141.8-3727_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-03', job_status='DONE', photon_flux_upper_limit='8.67e-08', time_completed='2021-09-27 00:31:12.202941', job_id='682643', GAL2='0.94', fit_tolerance='1e-08', EG2='1.07', EG='1.11', time_epoch_completed='1632727872.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='9.93e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1006' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:31:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 682643: <4FGL_J2141.8-3727_daily_bin1006> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1006> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 27 00:15:21 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:16:44 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:16:44 2021
Terminated at Mon Sep 27 00:31:13 2021
Results reported at Mon Sep 27 00:31:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1006 325.462 -37.4545 500083201 500342401 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 :                                   694.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            952 sec.

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

