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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1265
RA = 325.462, Dec = -37.4545
tmin = 567216001, tmax = 567475201
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='684106', job_status='RUN', time_executed='2021-09-27 00:21:20.508934', time_epoch_executed='1632727280.51' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/684106

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/684106/ft1_4FGL_J2141.8-3727_daily_bin1265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/684106/ft2_4FGL_J2141.8-3727_daily_bin1265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/684106/ft1_4FGL_J2141.8-3727_daily_bin1265.fits outfile=/scratch/kocevski/684106/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1265.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=567216001.0 tmax=567475201.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.94
user 2.75
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/684106/ft1_filtered_4FGL_J2141.8-3727_daily_bin1265.fits" evtable="EVENTS" scfile=/scratch/kocevski/684106/ft2_4FGL_J2141.8-3727_daily_bin1265.fits sctable="SC_DATA" outfile=/scratch/kocevski/684106/ltcube_567216001_567475201_4FGL_J2141.8-3727_daily_bin1265.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/684106/ft2_4FGL_J2141.8-3727_daily_bin1265.fits
.....................!
real 16.43
user 16.07
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/684106/ft1_filtered_4FGL_J2141.8-3727_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/684106/ft2_4FGL_J2141.8-3727_daily_bin1265.fits sctable="SC_DATA" expcube=/scratch/kocevski/684106/ltcube_567216001_567475201_4FGL_J2141.8-3727_daily_bin1265.fits outfile=/scratch/kocevski/684106/expmap_567216001_567475201_4FGL_J2141.8-3727_daily_bin1265.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/684106/ltcube_567216001_567475201_4FGL_J2141.8-3727_daily_bin1265.fits
.....................!
real 192.70
user 187.48
sys 4.76

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/684106/ft1_filtered_4FGL_J2141.8-3727_daily_bin1265.fits scfile=/scratch/kocevski/684106/ft2_4FGL_J2141.8-3727_daily_bin1265.fits outfile=/scratch/kocevski/684106/cmap_567216001_567475201_4FGL_J2141.8-3727_daily_bin1265.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/684106/ft1_filtered_4FGL_J2141.8-3727_daily_bin1265.fits scfile=/scratch/kocevski/684106/ft2_4FGL_J2141.8-3727_daily_bin1265.fits outfile=/scratch/kocevski/684106/cmap_HighResolution_567216001_567475201_4FGL_J2141.8-3727_daily_bin1265.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/684106/ft1_filtered_4FGL_J2141.8-3727_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/684106/ft2_4FGL_J2141.8-3727_daily_bin1265.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/684106/Model_4FGL_J2141.8-3727_daily_bin1265.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/684106/ft1_filtered_4FGL_J2141.8-3727_daily_bin1265.fits.....................!
real 63.21
user 61.12
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13320E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1883       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.516       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.796       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9423       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    19.550       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5821       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8096       1.0000         .10000E-03   10000.    
    16 'Prefactor '    64.058       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6724       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.7702       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4115       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77451       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.

 FCN=   7682.657     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2184 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    260.97         .0000    ** at limit **
   2  Prefactor     .10000E-03    7.2596         .0000    ** at limit **
   3  Prefactor     4.1852        21.357         .0000       -.63188E-03
   4  Prefactor     .10000E-03    4.4088         .0000    ** at limit **
   5  Prefactor     15.519        23.509         .0000        .46100E-03
   6  norm          .10000E-03    1.6971         .0000    ** at limit **
   7  norm          11.796        5.0360         .0000       -.59602E-02
   8  Prefactor     .10000E-03    1.8831         .0000    ** at limit **
   9  Prefactor     7.9447        11.627         .0000       -.27060E-03
  10  Prefactor     .10000E-03    3.0497         .0000    ** at limit **
  11  norm          19.550        10.238         .0000        .92242E-03
  12  Prefactor     .10000E-03    13.633         .0000    ** at limit **
  13  Prefactor     .10000E-03    31.847         .0000    ** at limit **
  14  norm          1.5839        4.4685         .0000        .30511E-01
  15  norm          1.8097        .47721         .0000        .23177E-02
  16  Prefactor     64.060        34.532         .0000        .98069E-04
  17  Prefactor     6.6753        9.2950         .0000        .34617E-02
  18  Prefactor     .10000E-03    1.9657         .0000    ** at limit **
  19  Prefactor     .10001E-03    11.298         .0000    ** at limit **
  20  Prefactor     7.7750        23.561         .0000        .87702E-03
  21  Prefactor     .10001E-03    12.781         .0000    ** at limit **
  22  Normalizat    1.4113        .18533         .0000        .18926E-03
  23  Prefactor     .77460        .11602         .0000        .21311E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 4.18517
  Prefactor  = 0.0001
  Prefactor  = 15.5189
  norm       = 0.0001
  norm       = 11.7956
  Prefactor  = 0.0001
  Prefactor  = 7.94469
  Prefactor  = 0.0001
  norm       = 19.5501
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.58394
  norm       = 1.80969
  Prefactor  = 64.0601
  Prefactor  = 6.67535
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 7.775
  Prefactor  = 0.000100005
  Normalizat = 1.41128
  Prefactor  = 0.774602
 **********
 **   18 **HESSE 
 **********

 FCN=   7682.657     FROM HESSE     STATUS=OK           358 CALLS     2542 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    263.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.2674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.1852        21.399        .19692E-03   -1.5299    
   4  Prefactor     .10000E-03    4.4464        .17967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.519        23.506        .10168E-03   -1.4920    
   6  norm          .10000E-03    1.6974        .11152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.796        5.0361        .11664E-03   -1.5021    
   8  Prefactor     .10000E-03    1.8858        .11745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.9447        11.625        .14227E-03   -1.5144    
  10  Prefactor     .10000E-03    3.0653        .14947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          19.550        10.234        .45293E-03   -1.4823    
  12  Prefactor     .10000E-03    13.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    31.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5839        4.4433        .13632E-02   -1.5456    
  15  norm          1.8097        .47510        .27964E-04   -1.5439    
  16  Prefactor     64.060        34.558        .50140E-04   -1.4105    
  17  Prefactor     6.6753        9.3912        .77673E-03   -1.5191    
  18  Prefactor     .10000E-03    2.0048        .11995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    11.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.7750        23.616        .14385E-03   -1.5150    
  21  Prefactor     .10001E-03    12.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4113        .21328        .26427E-03   -.80303    
  23  Prefactor     .77460        .13243        .22811E-03   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01069e-08
Minuit parameter uncertainties:
  1  0.002742
  2  1.69889e-05
  3  18.9375
  4  8.41196e-06
  5  23.52
  6  2.29702e-06
  7  5.03632
  8  8.77889e-07
  9  11.6279
  10  2.67704e-05
  11  10.2345
  12  0.00033524
  13  2.24373e-05
  14  4.44421
  15  0.475104
  16  34.5683
  17  9.39326
  18  1.58039e-06
  19  0.000487271
  20  23.6446
  21  0.000520327
  22  0.21341
  23  0.132489
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  8.779e-07  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:  7.746e-01  1.325e-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.411e+00  2.134e-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: 5.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/684106/likelihoodResults_567216001_567475201_4FGL_J2141.8-3727_daily_bin1265.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) = 7682.65997497
delta logL = -0.00249418205567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7682.65748063
delta logL = 1.60477611644e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6096       1.0000          .0000       10.000    
     3 'Normalizat'    1.4113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77461       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=   7682.657     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      251 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.814        .11830E-01** at limit **
   2  Index         2.0134        6.1506        .50000       -.24365E-06
   3  Normalizat    1.4113        .17802E-01    .26427E-03    .39002E-03
   4  Prefactor     .77460        .11842E-01    .22811E-03    .69724E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01339
  Normalizat = 1.41128
  Prefactor  = 0.774605
 **********
 **   18 **HESSE 
 **********

 FCN=   7682.657     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    242.14        .12949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0134        5.1826        .50000       -.64016    
   3  Normalizat    1.4113        .57052E-01    .52855E-04   -.80303    
   4  Prefactor     .77460        .37953E-01    .45621E-04   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26193e-09
Minuit parameter uncertainties:
  1  9.93101e-05
  2  914.861
  3  0.057055
  4  0.0379538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/684106': 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) = 7682.65747608
delta logL = 4.70717714052e-06

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  9.931e-05  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.013e+00  9.149e+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:  7.746e-01  3.795e-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:  1.411e+00  5.706e-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/684106/cmap_HighResolution_567216001_567475201_4FGL_J2141.8-3727_daily_bin1265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-03', job_status='DONE', photon_flux_upper_limit='5.37e-08', time_completed='2021-09-27 00:33:05.107719', job_id='684106', GAL2='0.77', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1632727985.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='4.71e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1265' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:33:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 684106: <4FGL_J2141.8-3727_daily_bin1265> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1265> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 00:20:17 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:21:03 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:03 2021
Terminated at Mon Sep 27 00:33:06 2021
Results reported at Mon Sep 27 00:33:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1265 325.462 -37.4545 567216001 567475201 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 :                                   695.08 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             331.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            769 sec.

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

