/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 3 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 = 7353
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2141.8-3727_daily_bin41
RA = 325.462, Dec = -37.4545
tmin = 249955201, tmax = 250214401
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='674599', job_status='RUN', time_executed='2021-09-26 23:48:29.520134', time_epoch_executed='1632725309.52' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/674599

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/674599/ft1_4FGL_J2141.8-3727_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/674599/ft2_4FGL_J2141.8-3727_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/674599/ft1_4FGL_J2141.8-3727_daily_bin41.fits outfile=/scratch/kocevski/674599/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin41.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=249955201.0 tmax=250214401.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 1.99
user 1.28
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/674599/ft1_filtered_4FGL_J2141.8-3727_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/674599/ft2_4FGL_J2141.8-3727_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/674599/ltcube_249955201_250214401_4FGL_J2141.8-3727_daily_bin41.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/674599/ft2_4FGL_J2141.8-3727_daily_bin41.fits
.....................!
real 14.67
user 14.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/674599/ft1_filtered_4FGL_J2141.8-3727_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/674599/ft2_4FGL_J2141.8-3727_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/674599/ltcube_249955201_250214401_4FGL_J2141.8-3727_daily_bin41.fits outfile=/scratch/kocevski/674599/expmap_249955201_250214401_4FGL_J2141.8-3727_daily_bin41.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/674599/ltcube_249955201_250214401_4FGL_J2141.8-3727_daily_bin41.fits
.....................!
real 191.07
user 185.41
sys 5.01

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/674599/ft1_filtered_4FGL_J2141.8-3727_daily_bin41.fits scfile=/scratch/kocevski/674599/ft2_4FGL_J2141.8-3727_daily_bin41.fits outfile=/scratch/kocevski/674599/cmap_249955201_250214401_4FGL_J2141.8-3727_daily_bin41.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.54
user 0.37
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/674599/ft1_filtered_4FGL_J2141.8-3727_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/674599/ft2_4FGL_J2141.8-3727_daily_bin41.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/674599/Model_4FGL_J2141.8-3727_daily_bin41.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/674599/ft1_filtered_4FGL_J2141.8-3727_daily_bin41.fits.....................!
real 62.76
user 61.30
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.137       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.619       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .95468       1.0000         .10000E-03   10000.    
     7 'norm      '    19.333       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10872E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    20.041       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10742E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.624       1.0000         .10000E-03   10000.    
    14 'norm      '    9.3431       1.0000         .10000E-03   10000.    
    15 'norm      '    1.1553       1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.435       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .95660       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.934       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0737       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85857       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=   8300.524     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2505 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.108        69.104       -.39759E-05   -.14305E-03
   2  Prefactor     26.616        20.086       -.10462E-06   -.37845E-04
   3  Prefactor     .10000E-03    38.856       -.18261E-05** at limit **
   4  Prefactor     .10000E-03    5.9172        .53525E-07** at limit **
   5  Prefactor     .10000E-03    24.473        .39297E-05** at limit **
   6  norm          .95508        4.3925        .23810E-05   -.86864E-04
   7  norm          19.333        5.4812        .99503E-07   -.99651E-04
   8  Prefactor     .10000E-03    1.4278        .27411E-07** at limit **
   9  Prefactor     .10000E-03    20.175       -.47596E-06** at limit **
  10  Prefactor     .10000E-03    2.2695        .30372E-07** at limit **
  11  norm          20.041        8.1314       -.16872E-06   -.10755E-04
  12  Prefactor     .10000E-03    11.658       -.40355E-06** at limit **
  13  Prefactor     44.635        45.356       -.10971E-05    .12434E-03
  14  norm          9.3425        4.9088        .16967E-05   -.64433E-03
  15  norm          1.1552        .36028       -.93955E-07    .26110E-03
  16  Prefactor     45.423        39.221       -.13282E-05   -.15428E-03
  17  Prefactor     .10000E-03    4.6651        .81689E-07** at limit **
  18  Prefactor     .95415        3.6868        .22625E-06   -.61588E-04
  19  Prefactor     .10000E-03    20.493       -.10733E-05** at limit **
  20  Prefactor     43.930        22.240       -.13151E-06   -.82034E-04
  21  Prefactor     .10000E-03    11.153        .99461E-06** at limit **
  22  Normalizat    1.0739        .17635       -.83237E-06   -.30171E-04
  23  Prefactor     .85843        .10777        .18291E-07   -.98484E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.1079
  Prefactor  = 26.6161
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.955077
  norm       = 19.3327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.0407
  Prefactor  = 0.0001
  Prefactor  = 44.6347
  norm       = 9.3425
  norm       = 1.15525
  Prefactor  = 45.4227
  Prefactor  = 0.0001
  Prefactor  = 0.954147
  Prefactor  = 0.0001
  Prefactor  = 43.9299
  Prefactor  = 0.0001
  Normalizat = 1.07394
  Prefactor  = 0.858432
 **********
 **   18 **HESSE 
 **********

 FCN=   8300.524     FROM HESSE     STATUS=OK           366 CALLS     2871 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.108        70.457        .57795E-04   -1.4320    
   2  Prefactor     26.616        20.104        .77647E-04   -1.4676    
   3  Prefactor     .10000E-03    39.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .95508        4.3492        .37361E-03   -1.5513    
   7  norm          19.333        5.4843        .91091E-04   -1.4828    
   8  Prefactor     .10000E-03    1.4298        .10630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2759        .13403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          20.041        8.1328        .89469E-04   -1.4812    
  12  Prefactor     .10000E-03    11.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     44.635        45.796        .60017E-04   -1.4371    
  14  norm          9.3425        4.9934        .64634E-03   -1.5097    
  15  norm          1.1552        .36136        .28389E-04   -1.5493    
  16  Prefactor     45.423        39.608        .59482E-04   -1.4359    
  17  Prefactor     .10000E-03    4.8243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .95415        7.1401        .31712E-02   -1.5513    
  19  Prefactor     .10000E-03    20.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.930        22.322        .60485E-04   -1.4381    
  21  Prefactor     .10000E-03    11.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0739        .20545        .28546E-03   -.90593    
  23  Prefactor     .85843        .12545        .20528E-03   -.97609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99948e-08
Minuit parameter uncertainties:
  1  70.5797
  2  20.1096
  3  0.000359138
  4  5.29055e-06
  5  0.000636844
  6  4.07646
  7  5.4844
  8  5.48051e-07
  9  0.000190895
  10  5.21917e-07
  11  8.13325
  12  0.000142895
  13  45.8326
  14  4.99364
  15  0.361361
  16  39.6309
  17  4.83656e-06
  18  5.22081
  19  0.000158617
  20  22.3264
  21  0.000117625
  22  0.205599
  23  0.125495
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  5.481e-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:  8.584e-01  1.255e-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.074e+00  2.056e-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.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/674599/likelihoodResults_249955201_250214401_4FGL_J2141.8-3727_daily_bin41.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) = 8300.52713518
delta logL = -0.00328201677075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8300.52385303
delta logL = 1.29033651319e-07

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 'Index     '    2.6122       1.0000          .0000       10.000    
     3 'Normalizat'    1.0739       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85842       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=   8300.524     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      245 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.755        .10680E-01** at limit **
   2  Index         2.1621        8.8272        .50000        .27103E-07
   3  Normalizat    1.0739        .14457E-01    .28546E-03    .65919E-03
   4  Prefactor     .85843        .94578E-02    .20528E-03    .97917E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16207
  Normalizat = 1.07394
  Prefactor  = 0.858433
 **********
 **   18 **HESSE 
 **********

 FCN=   8300.524     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    141.58        .11238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1621        6.0762        .50000       -.60357    
   3  Normalizat    1.0739        .46707E-01    .57091E-04   -.90593    
   4  Prefactor     .85843        .30556E-01    .41056E-04   -.97609    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.81834e-10
Minuit parameter uncertainties:
  1  8.40898e-06
  2  805.545
  3  0.0467083
  4  0.030557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/674599': 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) = 8300.5238495
delta logL = 3.65781670553e-06

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  8.409e-06  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.162e+00  8.055e+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:  8.584e-01  3.056e-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.074e+00  4.671e-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/674599/cmap_HighResolution_249955201_250214401_4FGL_J2141.8-3727_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-03', job_status='DONE', photon_flux_upper_limit='4.18e-08', time_completed='2021-09-27 00:00:55.675772', job_id='674599', GAL2='0.86', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632726055.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.66e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='41' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:00:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 674599: <4FGL_J2141.8-3727_daily_bin41> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin41> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 23:45:26 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 23:48:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 23:48:17 2021
Terminated at Mon Sep 27 00:00:56 2021
Results reported at Mon Sep 27 00:00:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin41 325.462 -37.4545 249955201 250214401 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 :                                   742.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            930 sec.

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

