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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1332
RA = 325.462, Dec = -37.4545
tmin = 584582401, tmax = 584841601
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='684210', job_status='RUN', time_executed='2021-09-27 00:22:44.075459', time_epoch_executed='1632727364.08' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/684210

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/684210/ft1_4FGL_J2141.8-3727_daily_bin1332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/684210/ft2_4FGL_J2141.8-3727_daily_bin1332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/684210/ft1_4FGL_J2141.8-3727_daily_bin1332.fits outfile=/scratch/kocevski/684210/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1332.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=584582401.0 tmax=584841601.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.92
user 2.69
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/684210/ft2_4FGL_J2141.8-3727_daily_bin1332.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/684210/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1332.fits evtable="EVENTS" outfile="/scratch/kocevski/684210/ft1_filtered_4FGL_J2141.8-3727_daily_bin1332.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/684210/ft1_filtered_4FGL_J2141.8-3727_daily_bin1332.fits" evtable="EVENTS" scfile=/scratch/kocevski/684210/ft2_4FGL_J2141.8-3727_daily_bin1332.fits sctable="SC_DATA" outfile=/scratch/kocevski/684210/ltcube_584582401_584841601_4FGL_J2141.8-3727_daily_bin1332.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/684210/ft2_4FGL_J2141.8-3727_daily_bin1332.fits
.....................!
real 19.25
user 18.78
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/684210/ft1_filtered_4FGL_J2141.8-3727_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/684210/ft2_4FGL_J2141.8-3727_daily_bin1332.fits sctable="SC_DATA" expcube=/scratch/kocevski/684210/ltcube_584582401_584841601_4FGL_J2141.8-3727_daily_bin1332.fits outfile=/scratch/kocevski/684210/expmap_584582401_584841601_4FGL_J2141.8-3727_daily_bin1332.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/684210/ltcube_584582401_584841601_4FGL_J2141.8-3727_daily_bin1332.fits
.....................!
real 193.62
user 187.74
sys 5.39

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/684210/ft1_filtered_4FGL_J2141.8-3727_daily_bin1332.fits scfile=/scratch/kocevski/684210/ft2_4FGL_J2141.8-3727_daily_bin1332.fits outfile=/scratch/kocevski/684210/cmap_584582401_584841601_4FGL_J2141.8-3727_daily_bin1332.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.66
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/684210/ft1_filtered_4FGL_J2141.8-3727_daily_bin1332.fits scfile=/scratch/kocevski/684210/ft2_4FGL_J2141.8-3727_daily_bin1332.fits outfile=/scratch/kocevski/684210/cmap_HighResolution_584582401_584841601_4FGL_J2141.8-3727_daily_bin1332.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 1.05
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/684210/ft1_filtered_4FGL_J2141.8-3727_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/684210/ft2_4FGL_J2141.8-3727_daily_bin1332.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/684210/Model_4FGL_J2141.8-3727_daily_bin1332.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/684210/ft1_filtered_4FGL_J2141.8-3727_daily_bin1332.fits......................!
real 19.01
user 17.54
sys 1.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0020       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .23580E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    781.20       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12045E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    26.262       1.0000         .10000E-03   10000.    
     7 'norm      '    .10327E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.866       1.0000         .10000E-03   10000.    
    11 'norm      '    .10249E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10498E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    34.954       1.0000         .10000E-03   10000.    
    15 'norm      '    .29785       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .27249E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.000       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.876       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.883       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .81869       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .56697       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=   813.4394     FROM MIGRAD    STATUS=CONVERGED    900 CALLS     2924 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        9189.4        .70869E-02** at limit **
   2  Prefactor     .10000E-03    1577.4        .20075E-02** at limit **
   3  Prefactor     778.30        915.95        .74527E-04    .26951E-04
   4  Prefactor     .10017E-03    592.90        .18142E-02** at limit **
   5  Prefactor     .10000E-03    219.05        .18142E-02** at limit **
   6  norm          26.239        28.344        .78171E-04    .60977E-04
   7  norm          .10000E-03    16.205        .11221E-02** at limit **
   8  Prefactor     .10000E-03    15.848        .11108E-02** at limit **
   9  Prefactor     .10000E-03    22.794        .13308E-02** at limit **
  10  Prefactor     40.620        48.322        .62705E-04   -.31669E-04
  11  norm          .10000E-03    17.109        .11525E-02** at limit **
  12  Prefactor     .10000E-03    32.801        .15959E-02** at limit **
  13  Prefactor     .10005E-03    376.51        .18142E-02** at limit **
  14  norm          34.872        19.800        .67782E-04    .18698E-03
  15  norm          .29855        .59119        .28596E-04    .15738E-03
  16  Prefactor     .10000E-03    104.27        .21430E-02** at limit **
  17  Prefactor     .10000E-03    28.042        .14687E-02** at limit **
  18  Prefactor     10.965        11.726        .93968E-04    .13732E-04
  19  Prefactor     .10000E-03    31.783        .15719E-02** at limit **
  20  Prefactor     22.939        31.208        .83747E-04   -.41013E-04
  21  Prefactor     21.897        29.791        .85624E-04   -.18572E-04
  22  Normalizat    .80911        .53923        .26086E-03    .89509E-04
  23  Prefactor     .57213        .43446        .25293E-03    .24952E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 0.000100004
  Prefactor  = 778.305
  Prefactor  = 0.000100172
  Prefactor  = 0.0001
  norm       = 26.2392
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.6202
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100051
  norm       = 34.8722
  norm       = 0.298549
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 10.9646
  Prefactor  = 0.000100001
  Prefactor  = 22.9387
  Prefactor  = 21.8966
  Normalizat = 0.809105
  Prefactor  = 0.572125
 **********
 **   18 **HESSE 
 **********

 FCN=   813.4394     FROM HESSE     STATUS=OK           346 CALLS     3270 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        9189.6        .14174E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1577.5        .40151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     778.30        915.97        .14905E-04   -1.0053    
   4  Prefactor     .10017E-03    592.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    219.05        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          26.239        28.344        .15634E-04   -1.4683    
   7  norm          .10000E-03    16.205        .22441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.848        .22216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.794        .26615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     40.620        48.325        .12541E-04   -1.4432    
  11  norm          .10000E-03    17.109        .23050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    32.802        .31918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10005E-03    376.55        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          34.872        19.801        .13556E-04   -1.4526    
  15  norm          .29855        .59118        .11438E-05   -1.5599    
  16  Prefactor     .10000E-03    104.27        .42860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.046        .29374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.965        11.726        .37587E-05   -1.5046    
  19  Prefactor     .10000E-03    31.783        .31438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.939        31.207        .33499E-05   -1.4750    
  21  Prefactor     21.897        29.792        .34250E-05   -1.4772    
  22  Normalizat    .80911        .53969        .52171E-04   -.99732    
  23  Prefactor     .57213        .43485        .10117E-04   -1.0877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.90594e-10
Minuit parameter uncertainties:
  1  0.203697
  2  0.00526805
  3  934.828
  4  0.0204035
  5  0.000450014
  6  28.3585
  7  2.9209e-05
  8  1.04436e-05
  9  1.73344e-05
  10  48.3718
  11  5.87484e-05
  12  0.000300799
  13  0.00882567
  14  19.8044
  15  0.591196
  16  0.000241109
  17  0.000515369
  18  11.7286
  19  0.000350901
  20  31.2294
  21  29.812
  22  0.543319
  23  0.437432
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.044e-05  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:  5.721e-01  4.374e-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.091e-01  5.433e-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.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.65e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/684210/likelihoodResults_584582401_584841601_4FGL_J2141.8-3727_daily_bin1332.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) = 813.439719606
delta logL = -0.000287642199396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 813.439435865
delta logL = -3.90084824176e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.6716       1.0000          .0000       10.000    
     3 'Normalizat'    .80914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57182       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   813.4394     FROM MIGRAD    STATUS=FAILED       106 CALLS      290 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    577.83        .80056E-02** at limit **
   2  Index         1.9253        7.1800        .50000       -.70835E-07
   3  Normalizat    .80910        .65000E-01    .26224E-03    .80681E-04
   4  Prefactor     .57213        .53497E-01    .25185E-03    .88029E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   813.4394     FROM SIMPLEX   STATUS=UNCHANGED    147 CALLS      437 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    577.83        .70470E-03** at limit **
   2  Index         1.9253        7.1800        .54770E-05   -.70835E-07
   3  Normalizat    .80910        .65000E-01    .43564E-07    .80681E-04
   4  Prefactor     .57213        .53497E-01    .15327E-07    .88029E-04
                               ERR DEF=  .500    

 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.

 FCN=   813.4394     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      510 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.000        .24495E-03** at limit **
   2  Index         1.9312        5.9801        .50000       -.62422E-06
   3  Normalizat    .80910        .50335        .10489E-04    .71044E-04
   4  Prefactor     .57213        .41445        .10074E-04    .77924E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.93116
  Normalizat = 0.8091
  Prefactor  = 0.57213
 **********
 **   18 **HESSE 
 **********

 FCN=   813.4394     FROM HESSE     STATUS=OK            27 CALLS      537 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.494        .48989E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9312        5.3400        .50000       -.66082    
   3  Normalizat    .80910        .50298        .20979E-05   -.99732    
   4  Prefactor     .57213        .41416        .20148E-05   -1.0877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61741e-09
Minuit parameter uncertainties:
  1  7.68887e-05
  2  248.762
  3  0.505916
  4  0.416392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/684210': 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) = 813.439431398
delta logL = 5.66284029446e-07

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  7.689e-05  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.931e+00  2.488e+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:  5.721e-01  4.164e-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.091e-01  5.059e-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/684210/cmap_HighResolution_584582401_584841601_4FGL_J2141.8-3727_daily_bin1332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-02', job_status='DONE', photon_flux_upper_limit='4.65e-07', time_completed='2021-09-27 00:29:08.641161', job_id='684210', GAL2='0.57', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1632727748.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='5.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1332' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:29:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 684210: <4FGL_J2141.8-3727_daily_bin1332> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1332 325.462 -37.4545 584582401 584841601 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 :                                   375.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   431 sec.
    Turnaround time :                            523 sec.

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

