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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin508
RA = 325.462, Dec = -37.4545
tmin = 371001601, tmax = 371260801
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='679784', job_status='RUN', time_executed='2021-09-27 00:06:22.089290', time_epoch_executed='1632726382.09' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/679784

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/679784/ft1_4FGL_J2141.8-3727_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/679784/ft2_4FGL_J2141.8-3727_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/679784/ft1_4FGL_J2141.8-3727_daily_bin508.fits outfile=/scratch/kocevski/679784/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin508.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.83
user 6.18
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/679784/ft1_filtered_4FGL_J2141.8-3727_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/679784/ft2_4FGL_J2141.8-3727_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/679784/ltcube_371001601_371260801_4FGL_J2141.8-3727_daily_bin508.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/679784/ft2_4FGL_J2141.8-3727_daily_bin508.fits
.....................!
real 14.43
user 14.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/679784/ft1_filtered_4FGL_J2141.8-3727_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/679784/ft2_4FGL_J2141.8-3727_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/679784/ltcube_371001601_371260801_4FGL_J2141.8-3727_daily_bin508.fits outfile=/scratch/kocevski/679784/expmap_371001601_371260801_4FGL_J2141.8-3727_daily_bin508.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/679784/ltcube_371001601_371260801_4FGL_J2141.8-3727_daily_bin508.fits
.....................!
real 191.30
user 186.24
sys 4.56

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/679784/ft1_filtered_4FGL_J2141.8-3727_daily_bin508.fits scfile=/scratch/kocevski/679784/ft2_4FGL_J2141.8-3727_daily_bin508.fits outfile=/scratch/kocevski/679784/cmap_371001601_371260801_4FGL_J2141.8-3727_daily_bin508.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.95
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/679784/ft1_filtered_4FGL_J2141.8-3727_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/679784/ft2_4FGL_J2141.8-3727_daily_bin508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/679784/Model_4FGL_J2141.8-3727_daily_bin508.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/679784/ft1_filtered_4FGL_J2141.8-3727_daily_bin508.fits.....................!
real 49.69
user 48.29
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8532       1.0000         .10000E-03   10000.    
     5 'Prefactor '    65.947       1.0000         .10000E-03   10000.    
     6 'norm      '    6.5518       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4157       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15836E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    50.695       1.0000         .10000E-03   10000.    
    14 'norm      '    7.1329       1.0000         .10000E-03   10000.    
    15 'norm      '    .63242       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .38334       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.727       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0304       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .64550       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2665       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=   5763.218     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2967 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.583        .13811E-04** at limit **
   2  Prefactor     .10000E-03    28.413       -.39878E-05** at limit **
   3  Prefactor     .10000E-03    10.390       -.77708E-07** at limit **
   4  Prefactor     7.8575        9.9467       -.14124E-04   -.99458E-04
   5  Prefactor     65.944        38.751        .43882E-05    .85908E-04
   6  norm          6.5525        7.8504        .44017E-05   -.40787E-04
   7  norm          .10000E-03    2.0676        .13285E-08** at limit **
   8  Prefactor     .10000E-03    4.1672        .40368E-07** at limit **
   9  Prefactor     .10000E-03    48.566       -.66828E-05** at limit **
  10  Prefactor     3.4147        8.3707       -.40259E-05   -.21143E-03
  11  norm          .10000E-03    3.6772       -.32061E-07** at limit **
  12  Prefactor     .10005E-03    71.784        .28340E-04** at limit **
  13  Prefactor     50.879        57.930        .88058E-05   -.37268E-03
  14  norm          7.1301        6.5027       -.19000E-05   -.57448E-03
  15  norm          .63245        .34736       -.66869E-08   -.69713E-03
  16  Prefactor     .10000E-03    59.781       -.31877E-04** at limit **
  17  Prefactor     .10000E-03    4.0460       -.10206E-06** at limit **
  18  Prefactor     .37511        3.5690       -.18185E-05   -.22906E-03
  19  Prefactor     .10000E-03    14.980       -.80269E-07** at limit **
  20  Prefactor     12.727        27.462        .24144E-05    .65716E-04
  21  Prefactor     1.0089        17.845       -.22548E-05   -.11435E-03
  22  Normalizat    .64559        .22977        .62656E-05    .18012E-03
  23  Prefactor     1.2664        .14319       -.66124E-06    .39908E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.85748
  Prefactor  = 65.9442
  norm       = 6.55251
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 3.41468
  norm       = 0.0001
  Prefactor  = 0.000100045
  Prefactor  = 50.879
  norm       = 7.13006
  norm       = 0.632455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.375108
  Prefactor  = 0.0001
  Prefactor  = 12.727
  Prefactor  = 1.00891
  Normalizat = 0.645588
  Prefactor  = 1.26645
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.218     FROM HESSE     STATUS=OK           368 CALLS     3335 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.8575        10.049        .14309E-03   -1.5147    
   5  Prefactor     65.944        38.713        .49421E-04   -1.4082    
   6  norm          6.5525        7.8443        .15678E-03   -1.5196    
   7  norm          .10000E-03    2.0770        .10651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.1940        .15129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    49.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4147        8.3811        .21888E-03   -1.5338    
  11  norm          .10000E-03    3.6869        .14215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10005E-03    70.425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     50.879        56.544        .56325E-04   -1.4280    
  14  norm          7.1301        6.5132        .15020E-03   -1.5174    
  15  norm          .63245        .34921        .31236E-04   -1.5549    
  16  Prefactor     .10000E-03    60.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0610        .14909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .37511        8.2792        .27436E-02   -1.5585    
  19  Prefactor     .10000E-03    14.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.727        27.443        .11228E-03   -1.4994    
  21  Prefactor     1.0089        93.816        .60518E-02   -1.5507    
  22  Normalizat    .64559        .25189        .36417E-03   -1.0608    
  23  Prefactor     1.2664        .15823        .18157E-03   -.84310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4657e-08
Minuit parameter uncertainties:
  1  1.26797e-05
  2  6.69416e-05
  3  1.68798e-05
  4  10.0509
  5  38.7274
  6  7.84553
  7  1.12785e-06
  8  6.22793e-07
  9  0.000605682
  10  8.38402
  11  4.11686e-06
  12  0.00357786
  13  56.6041
  14  6.51389
  15  0.349214
  16  0.000163176
  17  1.78791e-05
  18  3.52462
  19  3.71274e-07
  20  27.4705
  21  19.4884
  22  0.252338
  23  0.158293
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  6.228e-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:  1.266e+00  1.583e-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:  6.456e-01  2.523e-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.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/679784/likelihoodResults_371001601_371260801_4FGL_J2141.8-3727_daily_bin508.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) = 5763.21905638
delta logL = -0.00113432747094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5763.217922
delta logL = 4.95410859003e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5953       1.0000          .0000       10.000    
     3 'Normalizat'    .64560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2665       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=   5763.218     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      261 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.249        .15612E-01** at limit **
   2  Index         1.9573        7.6569        .50000       -.19388E-06
   3  Normalizat    .64559        .13298E-01    .36416E-03    .78452E-04
   4  Prefactor     1.2664        .90675E-02    .18157E-03    .16861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.95732
  Normalizat = 0.645588
  Prefactor  = 1.26645
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.218     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      292 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    175.03        .38487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9573        8.2388        .50000       -.65421    
   3  Normalizat    .64559        .27346E-01    .14567E-04   -1.0608    
   4  Prefactor     1.2664        .18646E-01    .36314E-04   -.84310    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.39682e-09
Minuit parameter uncertainties:
  1  0.000913209
  2  443.128
  3  0.0273463
  4  0.0186465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/679784': 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) = 5763.21791718
delta logL = 4.87082797918e-06

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  9.132e-04  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.957e+00  4.431e+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:  1.266e+00  1.865e-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:  6.456e-01  2.735e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/679784/cmap_HighResolution_371001601_371260801_4FGL_J2141.8-3727_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.59e-03', job_status='DONE', photon_flux_upper_limit='8.41e-08', time_completed='2021-09-27 00:17:33.853103', job_id='679784', GAL2='1.27', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632727053.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='4.87e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='508' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:17:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 679784: <4FGL_J2141.8-3727_daily_bin508> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin508> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 00:05:29 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:05:46 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:05:46 2021
Terminated at Mon Sep 27 00:17:34 2021
Results reported at Mon Sep 27 00:17:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin508 325.462 -37.4545 371001601 371260801 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 :                                   664.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            725 sec.

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

