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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin690
RA = 325.462, Dec = -37.4545
tmin = 418176001, tmax = 418435201
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='681153', job_status='RUN', time_executed='2021-09-27 00:14:40.865088', time_epoch_executed='1632726880.87' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='690'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681153

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681153/ft1_4FGL_J2141.8-3727_daily_bin690.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681153/ft2_4FGL_J2141.8-3727_daily_bin690.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681153/ft1_4FGL_J2141.8-3727_daily_bin690.fits outfile=/scratch/kocevski/681153/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin690.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=418176001.0 tmax=418435201.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 5.03
user 4.73
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681153/ft1_filtered_4FGL_J2141.8-3727_daily_bin690.fits" evtable="EVENTS" scfile=/scratch/kocevski/681153/ft2_4FGL_J2141.8-3727_daily_bin690.fits sctable="SC_DATA" outfile=/scratch/kocevski/681153/ltcube_418176001_418435201_4FGL_J2141.8-3727_daily_bin690.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/681153/ft2_4FGL_J2141.8-3727_daily_bin690.fits
.....................!
real 15.65
user 15.10
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681153/ft1_filtered_4FGL_J2141.8-3727_daily_bin690.fits evtable="EVENTS" scfile=/scratch/kocevski/681153/ft2_4FGL_J2141.8-3727_daily_bin690.fits sctable="SC_DATA" expcube=/scratch/kocevski/681153/ltcube_418176001_418435201_4FGL_J2141.8-3727_daily_bin690.fits outfile=/scratch/kocevski/681153/expmap_418176001_418435201_4FGL_J2141.8-3727_daily_bin690.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/681153/ltcube_418176001_418435201_4FGL_J2141.8-3727_daily_bin690.fits
.....................!
real 194.27
user 186.22
sys 5.58

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/681153/ft1_filtered_4FGL_J2141.8-3727_daily_bin690.fits scfile=/scratch/kocevski/681153/ft2_4FGL_J2141.8-3727_daily_bin690.fits outfile=/scratch/kocevski/681153/cmap_418176001_418435201_4FGL_J2141.8-3727_daily_bin690.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=325.462 yref=-37.4545 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681153/ft1_filtered_4FGL_J2141.8-3727_daily_bin690.fits scfile=/scratch/kocevski/681153/ft2_4FGL_J2141.8-3727_daily_bin690.fits outfile=/scratch/kocevski/681153/cmap_HighResolution_418176001_418435201_4FGL_J2141.8-3727_daily_bin690.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/681153/ft1_filtered_4FGL_J2141.8-3727_daily_bin690.fits evtable="EVENTS" scfile=/scratch/kocevski/681153/ft2_4FGL_J2141.8-3727_daily_bin690.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/681153/Model_4FGL_J2141.8-3727_daily_bin690.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/681153/ft1_filtered_4FGL_J2141.8-3727_daily_bin690.fits.....................!
real 53.54
user 51.60
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.067       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.658       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2367       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.607       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.073       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.685       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10760E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.695       1.0000         .10000E-03   10000.    
    14 'norm      '    17.908       1.0000         .10000E-03   10000.    
    15 'norm      '    2.6187       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.9535       1.0000         .10000E-03   10000.    
    19 'Prefactor '    58.055       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .73075       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2262       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=   6178.055     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2442 TOTAL
                     EDM=   .61E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.066        64.438        .12198E-06   -.22967E-06
   2  Prefactor     .10000E-03    12.120        .90043E-07** at limit **
   3  Prefactor     21.656        25.376        .20424E-06   -.19257E-05
   4  Prefactor     3.2362        9.3181        .85339E-06   -.28058E-05
   5  Prefactor     .10000E-03    10.983        .75030E-07** at limit **
   6  norm          .10000E-03    2.6517       -.24963E-07** at limit **
   7  norm          11.608        6.2569       -.67013E-09   -.14291E-04
   8  Prefactor     10.074        12.080        .18873E-06   -.40342E-05
   9  Prefactor     .10000E-03    12.003       -.12154E-05** at limit **
  10  Prefactor     .10000E-03    6.6871        .93683E-07** at limit **
  11  norm          14.685        9.8136        .41100E-07    .11929E-05
  12  Prefactor     .10000E-03    15.436       -.35276E-05** at limit **
  13  Prefactor     16.587        96.479        .15875E-06   -.13886E-04
  14  norm          17.909        9.5387        .22364E-07    .43895E-04
  15  norm          2.6187        .74230       -.28250E-07    .11544E-03
  16  Prefactor     .10000E-03    19.403        .79139E-07** at limit **
  17  Prefactor     .10000E-03    5.7778        .19271E-06** at limit **
  18  Prefactor     9.9530        9.2702        .18194E-05   -.32923E-04
  19  Prefactor     58.051        80.986       -.16906E-05   -.28210E-05
  20  Prefactor     .10000E-03    18.617        .14469E-06** at limit **
  21  Prefactor     .10000E-03    11.058        .39081E-07** at limit **
  22  Normalizat    .73078        .24973       -.74907E-06    .30697E-05
  23  Prefactor     1.2262        .14679       -.15646E-06   -.21102E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.0662
  Prefactor  = 0.0001
  Prefactor  = 21.6564
  Prefactor  = 3.23624
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.6075
  Prefactor  = 10.0739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.6849
  Prefactor  = 0.0001
  Prefactor  = 16.5872
  norm       = 17.9095
  norm       = 2.61872
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.95299
  Prefactor  = 58.0506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.730779
  Prefactor  = 1.22618
 **********
 **   18 **HESSE 
 **********

 FCN=   6178.055     FROM HESSE     STATUS=OK           368 CALLS     2810 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.066        64.463        .55582E-04   -1.4264    
   2  Prefactor     .10000E-03    12.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.656        25.423        .86068E-04   -1.4777    
   4  Prefactor     3.2362        9.2963        .22514E-03   -1.5348    
   5  Prefactor     .10000E-03    10.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.6528        .12500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.608        6.2567        .11758E-03   -1.5026    
   8  Prefactor     10.074        12.072        .12625E-03   -1.5073    
   9  Prefactor     .10000E-03    12.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.685        9.8087        .10452E-03   -1.4941    
  12  Prefactor     .10000E-03    15.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.587        96.506        .98021E-04   -1.4893    
  14  norm          17.909        9.5875        .94646E-04   -1.4861    
  15  norm          2.6187        .74581        .32790E-04   -1.5384    
  16  Prefactor     .10000E-03    19.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.7973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.9530        9.3023        .63505E-03   -1.5077    
  19  Prefactor     58.051        81.003        .52653E-04   -1.4183    
  20  Prefactor     .10000E-03    18.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .73078        .27306        .39526E-03   -1.0269    
  23  Prefactor     1.2262        .16205        .19722E-03   -.85530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23879e-11
Minuit parameter uncertainties:
  1  64.5495
  2  4.80178e-07
  3  25.4357
  4  9.30046
  5  2.4016e-06
  6  4.13669e-07
  7  6.25702
  8  12.0746
  9  7.42366e-06
  10  1.97907e-07
  11  9.80973
  12  2.44498e-05
  13  80.2151
  14  9.58832
  15  0.745814
  16  3.34871e-06
  17  1.74064e-06
  18  9.30362
  19  81.1578
  20  4.78499e-06
  21  5.14695e-07
  22  0.273569
  23  0.162117
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.007e+01  1.207e+01  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.226e+00  1.621e-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:  7.308e-01  2.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.93
Ra Dec: 325.462 -37.455
Photon Flux Upper Limit: 1.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/681153/likelihoodResults_418176001_418435201_4FGL_J2141.8-3727_daily_bin690.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): 0
logL (Free Index) = 6178.0529989
delta logL = 0.0020065998242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6178.05250671
delta logL = 0.00249878792874

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7212       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6887       1.0000          .0000       10.000    
     3 'Normalizat'    .72794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2275       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=   6178.053     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      265 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7205        13.275        .12853E-03    .48650E-03
   2  Index         2.6887        .97827        .11232E-01    .10975E-03
   3  Normalizat    .72822        .25461        .39591E-03   -.17462E-03
   4  Prefactor     1.2273        .15867        .19714E-03   -.30940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.72052
  Index      = 2.68872
  Normalizat = 0.728222
  Prefactor  = 1.22732
 **********
 **   18 **HESSE 
 **********

 FCN=   6178.053     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7205        12.805        .51410E-05   -1.5084    
   2  Index         2.6887        .94311        .44929E-03   -.48054    
   3  Normalizat    .72822        .25473        .15836E-04   -1.0279    
   4  Prefactor     1.2273        .15866        .39429E-04   -.85495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08771e-10
Minuit parameter uncertainties:
  1  12.8089
  2  0.950372
  3  0.255141
  4  0.158718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681153': 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) = 6178.05250606
delta logL = 0.00249943087692

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  9.721e+00  1.281e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.689e+00  9.504e-01  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.227e+00  1.587e-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:  7.282e-01  2.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.93
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/681153/cmap_HighResolution_418176001_418435201_4FGL_J2141.8-3727_daily_bin690.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-02', job_status='DONE', photon_flux_upper_limit='1.88e-07', time_completed='2021-09-27 00:25:20.118623', job_id='681153', GAL2='1.23', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632727520.12', return_code2='0', ts='0.93', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='2.50e-03', ts2='0.93', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='690' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:25:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 681153: <4FGL_J2141.8-3727_daily_bin690> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin690> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 27 00:10:18 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:10:39 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:39 2021
Terminated at Mon Sep 27 00:25:20 2021
Results reported at Mon Sep 27 00:25:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin690 325.462 -37.4545 418176001 418435201 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 :                                   632.16 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             267.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            902 sec.

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

