/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 94 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 = 7498
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2141.8-3727_daily_bin731
RA = 325.462, Dec = -37.4545
tmin = 428803201, tmax = 429062401
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='681216', job_status='RUN', time_executed='2021-09-27 00:12:47.865338', time_epoch_executed='1632726767.87' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681216

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681216/ft1_4FGL_J2141.8-3727_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681216/ft2_4FGL_J2141.8-3727_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681216/ft1_4FGL_J2141.8-3727_daily_bin731.fits outfile=/scratch/kocevski/681216/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin731.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=428803201.0 tmax=429062401.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.65
user 6.34
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/681216/ft2_4FGL_J2141.8-3727_daily_bin731.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/681216/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/681216/ft1_filtered_4FGL_J2141.8-3727_daily_bin731.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/681216/ft1_filtered_4FGL_J2141.8-3727_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/681216/ft2_4FGL_J2141.8-3727_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/681216/ltcube_428803201_429062401_4FGL_J2141.8-3727_daily_bin731.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/681216/ft2_4FGL_J2141.8-3727_daily_bin731.fits
.....................!
real 14.31
user 13.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681216/ft1_filtered_4FGL_J2141.8-3727_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/681216/ft2_4FGL_J2141.8-3727_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/681216/ltcube_428803201_429062401_4FGL_J2141.8-3727_daily_bin731.fits outfile=/scratch/kocevski/681216/expmap_428803201_429062401_4FGL_J2141.8-3727_daily_bin731.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/681216/ltcube_428803201_429062401_4FGL_J2141.8-3727_daily_bin731.fits
.....................!
real 193.82
user 187.86
sys 5.33

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/681216/ft1_filtered_4FGL_J2141.8-3727_daily_bin731.fits scfile=/scratch/kocevski/681216/ft2_4FGL_J2141.8-3727_daily_bin731.fits outfile=/scratch/kocevski/681216/cmap_428803201_429062401_4FGL_J2141.8-3727_daily_bin731.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.79
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681216/ft1_filtered_4FGL_J2141.8-3727_daily_bin731.fits scfile=/scratch/kocevski/681216/ft2_4FGL_J2141.8-3727_daily_bin731.fits outfile=/scratch/kocevski/681216/cmap_HighResolution_428803201_429062401_4FGL_J2141.8-3727_daily_bin731.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/681216/ft1_filtered_4FGL_J2141.8-3727_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/681216/ft2_4FGL_J2141.8-3727_daily_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/681216/Model_4FGL_J2141.8-3727_daily_bin731.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/681216/ft1_filtered_4FGL_J2141.8-3727_daily_bin731.fits.....................!
real 47.66
user 45.81
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.203       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.306       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.311       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.504       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.4810       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.827       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.8763       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4333       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4651       1.0000         .10000E-03   10000.    
    16 'Prefactor '    66.625       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    50.494       1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.859       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .67681       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99465       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=   5430.407     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2513 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.353       -.11256E-04** at limit **
   2  Prefactor     26.202        25.320       -.62064E-06   -.57238E-05
   3  Prefactor     19.305        22.509       -.20363E-06   -.77116E-05
   4  Prefactor     14.312        10.987        .17512E-06   -.41170E-04
   5  Prefactor     19.492        29.970       -.10266E-04   -.24325E-04
   6  norm          .10000E-03    2.9242        .49673E-08** at limit **
   7  norm          6.4799        6.7858        .19665E-05   -.11808E-03
   8  Prefactor     .10000E-03    18.330        .56827E-05** at limit **
   9  Prefactor     23.830        22.166       -.22001E-06   -.14697E-05
  10  Prefactor     .10000E-03    6.3458        .36833E-07** at limit **
  11  norm          5.8750        7.2175        .85243E-06   -.10527E-03
  12  Prefactor     7.4498        16.597       -.54942E-05   -.24921E-04
  13  Prefactor     .10000E-03    79.350       -.10378E-05** at limit **
  14  norm          .10000E-03    6.7608        .56248E-07** at limit **
  15  norm          1.4651        .51244        .40858E-07   -.36921E-04
  16  Prefactor     66.633        73.405        .86998E-05   -.43380E-05
  17  Prefactor     .10000E-03    4.5707        .88331E-08** at limit **
  18  Prefactor     .10000E-03    1.5102        .16036E-07** at limit **
  19  Prefactor     .10000E-03    23.284        .59462E-05** at limit **
  20  Prefactor     50.494        37.600       -.36083E-06   -.55791E-05
  21  Prefactor     44.857        32.662       -.85081E-06   -.87843E-05
  22  Normalizat    .67665        .22136       -.96712E-06   -.57762E-04
  23  Prefactor     .99471        .12877        .53868E-06   -.15516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 26.2023
  Prefactor  = 19.3052
  Prefactor  = 14.312
  Prefactor  = 19.4924
  norm       = 0.0001
  norm       = 6.47991
  Prefactor  = 0.0001
  Prefactor  = 23.8299
  Prefactor  = 0.0001
  norm       = 5.87498
  Prefactor  = 7.44982
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 1.46514
  Prefactor  = 66.6333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.4935
  Prefactor  = 44.8572
  Normalizat = 0.676647
  Prefactor  = 0.994705
 **********
 **   18 **HESSE 
 **********

 FCN=   5430.407     FROM HESSE     STATUS=OK           368 CALLS     2881 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.202        25.343        .78258E-04   -1.4684    
   3  Prefactor     19.305        22.585        .91154E-04   -1.4829    
   4  Prefactor     14.312        10.982        .10588E-03   -1.4951    
   5  Prefactor     19.492        29.938        .90691E-04   -1.4825    
   6  norm          .10000E-03    2.9263        .12307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.4799        6.7523        .15765E-03   -1.5199    
   8  Prefactor     .10000E-03    18.716        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.830        22.164        .82061E-04   -1.4731    
  10  Prefactor     .10000E-03    6.3707        .18125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.8750        7.2033        .16566E-03   -1.5223    
  12  Prefactor     7.4498        16.596        .14710E-03   -1.5162    
  13  Prefactor     .10000E-03    79.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.9469        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4651        .51270        .29996E-04   -1.5466    
  16  Prefactor     66.633        73.676        .49171E-04   -1.4074    
  17  Prefactor     .10000E-03    4.5774        .15383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5107        .88440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     50.494        37.703        .56437E-04   -1.4286    
  21  Prefactor     44.857        32.689        .59861E-04   -1.4367    
  22  Normalizat    .67665        .25053        .35949E-03   -1.0482    
  23  Prefactor     .99471        .14764        .18116E-03   -.92906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01715e-11
Minuit parameter uncertainties:
  1  1.9282e-06
  2  25.3538
  3  22.5946
  4  10.9838
  5  29.9607
  6  7.98626e-07
  7  6.75313
  8  6.32172e-05
  9  22.1716
  10  4.5343e-06
  11  7.20436
  12  16.6063
  13  0.000852715
  14  3.40112e-05
  15  0.512697
  16  73.7771
  17  2.32644e-06
  18  9.41279e-07
  19  1.09032e-06
  20  37.7203
  21  32.702
  22  0.250958
  23  0.147696
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  6.322e-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:  9.947e-01  1.477e-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.766e-01  2.510e-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: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/681216/likelihoodResults_428803201_429062401_4FGL_J2141.8-3727_daily_bin731.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) = 5430.40714122
delta logL = -0.000254882865192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5430.40688672
delta logL = -3.83532096748e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12876E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5568       1.0000          .0000       10.000    
     3 'Normalizat'    .67681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99463       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=   5430.407     FROM MIGRAD    STATUS=FAILED       113 CALLS      272 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52018E-03    32.697        .62538E-01** at limit **
   2  Index         1.9493        6.9977        .50000       -.81223E-05
   3  Normalizat    .67665        .79124E-02    .35949E-03    .92375E-04
   4  Prefactor     .99471        .47979E-02    .18116E-03    .23931E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5430.407     FROM SIMPLEX   STATUS=PROGRESS      96 CALLS      368 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12676        32.697        .22405E-02   -.23671E-02
   2  Index         1.9656        6.9977        .71519E-02   -.81223E-05
   3  Normalizat    .67673        .79124E-02    .10804E-04    .92375E-04
   4  Prefactor     .99468        .47979E-02    .25640E-05    .23931E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5430.407     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      436 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15271        237.47        .77345E-01   -.40714E-04
   2  Index         1.9705        7.5597        .50000       -.16010E-04
   3  Normalizat    .67669        .26452E-01    .14380E-04    .14185E-02
   4  Prefactor     .99447        .16096E-01    .36232E-04   -.24687E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.152713
  Index      = 1.97054
  Normalizat = 0.676689
  Prefactor  = 0.99447
 **********
 **   18 **HESSE 
 **********

 FCN=   5430.407     FROM HESSE     STATUS=OK            37 CALLS      473 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15271        25.106        .72141E-01   -1.5630    
   2  Index         1.9705        5.4157        .45690E-01   -.65089    
   3  Normalizat    .67669        .23667        .28759E-05   -1.0482    
   4  Prefactor     .99447        .14394        .72463E-05   -.92914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93424e-08
Minuit parameter uncertainties:
  1  3.91651
  2  8.09683
  3  0.237028
  4  0.143995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681216': 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) = 5430.40679214
delta logL = 9.41968901316e-05

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.527e-01  3.917e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.971e+00  8.097e+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.945e-01  1.440e-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.767e-01  2.370e-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/681216/cmap_HighResolution_428803201_429062401_4FGL_J2141.8-3727_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-09-27 00:23:11.486535', job_id='681216', GAL2='0.99', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632727391.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='9.42e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='731' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:23:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 681216: <4FGL_J2141.8-3727_daily_bin731> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin731> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 27 00:10:22 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:10: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:10:57 2021
Terminated at Mon Sep 27 00:23:12 2021
Results reported at Mon Sep 27 00:23:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin731 325.462 -37.4545 428803201 429062401 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 :                                   612.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            770 sec.

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

