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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1064
RA = 325.462, Dec = -37.4545
tmin = 515116801, tmax = 515376001
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='682725', job_status='RUN', time_executed='2021-09-27 00:17:37.796419', time_epoch_executed='1632727057.8' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1064'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682725

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682725/ft1_4FGL_J2141.8-3727_daily_bin1064.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682725/ft2_4FGL_J2141.8-3727_daily_bin1064.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682725/ft1_4FGL_J2141.8-3727_daily_bin1064.fits outfile=/scratch/kocevski/682725/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1064.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=515116801.0 tmax=515376001.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 3.58
user 3.37
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682725/ft1_filtered_4FGL_J2141.8-3727_daily_bin1064.fits" evtable="EVENTS" scfile=/scratch/kocevski/682725/ft2_4FGL_J2141.8-3727_daily_bin1064.fits sctable="SC_DATA" outfile=/scratch/kocevski/682725/ltcube_515116801_515376001_4FGL_J2141.8-3727_daily_bin1064.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/682725/ft2_4FGL_J2141.8-3727_daily_bin1064.fits
.....................!
real 14.26
user 13.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682725/ft1_filtered_4FGL_J2141.8-3727_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/682725/ft2_4FGL_J2141.8-3727_daily_bin1064.fits sctable="SC_DATA" expcube=/scratch/kocevski/682725/ltcube_515116801_515376001_4FGL_J2141.8-3727_daily_bin1064.fits outfile=/scratch/kocevski/682725/expmap_515116801_515376001_4FGL_J2141.8-3727_daily_bin1064.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/682725/ltcube_515116801_515376001_4FGL_J2141.8-3727_daily_bin1064.fits
.....................!
real 191.06
user 186.58
sys 3.89

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/682725/ft1_filtered_4FGL_J2141.8-3727_daily_bin1064.fits scfile=/scratch/kocevski/682725/ft2_4FGL_J2141.8-3727_daily_bin1064.fits outfile=/scratch/kocevski/682725/cmap_515116801_515376001_4FGL_J2141.8-3727_daily_bin1064.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682725/ft1_filtered_4FGL_J2141.8-3727_daily_bin1064.fits scfile=/scratch/kocevski/682725/ft2_4FGL_J2141.8-3727_daily_bin1064.fits outfile=/scratch/kocevski/682725/cmap_HighResolution_515116801_515376001_4FGL_J2141.8-3727_daily_bin1064.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/682725/ft1_filtered_4FGL_J2141.8-3727_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/682725/ft2_4FGL_J2141.8-3727_daily_bin1064.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682725/Model_4FGL_J2141.8-3727_daily_bin1064.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/682725/ft1_filtered_4FGL_J2141.8-3727_daily_bin1064.fits.....................!
real 62.11
user 60.82
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.040       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.200       1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.376       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9203       1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.986       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7070       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1352       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    15.530       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15499E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    90.096       1.0000         .10000E-03   10000.    
    14 'norm      '    .49230       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0421       1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.659       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0533       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8009       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96156       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95623       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=   7907.798     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2596 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.002        58.453       -.74484E-05   -.17503E-03
   2  Prefactor     39.199        23.475        .44107E-08   -.38694E-04
   3  Prefactor     54.370        27.725        .70683E-06    .78093E-04
   4  Prefactor     6.9178        6.2619        .16052E-06   -.14684E-04
   5  Prefactor     44.968        28.281        .27059E-05    .37308E-03
   6  norm          .10000E-03    2.9950       -.20159E-07** at limit **
   7  norm          .10000E-03    1.4970        .18900E-06** at limit **
   8  Prefactor     7.7030        7.5456        .89184E-07   -.93986E-04
   9  Prefactor     3.1034        12.854        .11317E-04   -.38563E-03
  10  Prefactor     .10000E-03    5.1373        .55670E-07** at limit **
  11  norm          15.533        8.8183        .41476E-06    .28415E-03
  12  Prefactor     .10000E-03    11.431        .97245E-06** at limit **
  13  Prefactor     90.161        52.614        .31174E-05    .47495E-03
  14  norm          .48835        2.3171        .12528E-06   -.30828E-03
  15  norm          2.0426        .47458       -.68772E-07   -.10732E-03
  16  Prefactor     48.603        36.703        .13844E-05    .75327E-04
  17  Prefactor     6.0497        5.3395       -.11506E-07   -.18677E-03
  18  Prefactor     .10000E-03    1.4997       -.33385E-09** at limit **
  19  Prefactor     .10000E-03    12.061        .84428E-07** at limit **
  20  Prefactor     5.7950        12.184        .42318E-07   -.61192E-04
  21  Prefactor     .10000E-03    8.4073       -.31591E-07** at limit **
  22  Normalizat    .96243        .18383       -.30355E-05    .38190E-04
  23  Prefactor     .95580        .11577        .43879E-06   -.20043E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.0018
  Prefactor  = 39.1991
  Prefactor  = 54.37
  Prefactor  = 6.91779
  Prefactor  = 44.968
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.703
  Prefactor  = 3.10343
  Prefactor  = 0.0001
  norm       = 15.5333
  Prefactor  = 0.0001
  Prefactor  = 90.161
  norm       = 0.488347
  norm       = 2.04261
  Prefactor  = 48.603
  Prefactor  = 6.04966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.79505
  Prefactor  = 0.0001
  Normalizat = 0.962427
  Prefactor  = 0.955797
 **********
 **   18 **HESSE 
 **********

 FCN=   7907.798     FROM HESSE     STATUS=OK           368 CALLS     2964 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.002        59.589        .80052E-04   -1.4708    
   2  Prefactor     39.199        23.493        .64018E-04   -1.4455    
   3  Prefactor     54.370        27.779        .54395E-04   -1.4232    
   4  Prefactor     6.9178        6.2575        .15251E-03   -1.5182    
   5  Prefactor     44.968        28.571        .59776E-04   -1.4366    
   6  norm          .10000E-03    3.0027        .15029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5062        .10611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.7030        7.5597        .14445E-03   -1.5153    
   9  Prefactor     3.1034        14.122        .11448E-02   -1.5356    
  10  Prefactor     .10000E-03    5.1968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.533        8.8214        .10163E-03   -1.4920    
  12  Prefactor     .10000E-03    11.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     90.161        55.266        .21166E-03   -1.3806    
  14  norm          .48835        10.999        .23233E-02   -1.5568    
  15  norm          2.0426        .48217        .27057E-04   -1.5422    
  16  Prefactor     48.603        36.847        .57486E-04   -1.4313    
  17  Prefactor     6.0497        5.3546        .16319E-03   -1.5216    
  18  Prefactor     .10000E-03    1.5168        .10632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.7950        12.184        .16675E-03   -1.5226    
  21  Prefactor     .10000E-03    8.4311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .96243        .20812        .30430E-03   -.94300    
  23  Prefactor     .95580        .13238        .20554E-03   -.94218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18137e-09
Minuit parameter uncertainties:
  1  59.7311
  2  23.4984
  3  27.7857
  4  6.25807
  5  28.5802
  6  9.93332e-07
  7  8.84238e-06
  8  7.56061
  9  13.2451
  10  2.82375e-06
  11  8.82217
  12  0.000123369
  13  55.2972
  14  4.63571
  15  0.482172
  16  36.8645
  17  5.35506
  18  4.6525e-06
  19  1.76003e-05
  20  12.189
  21  1.33462e-05
  22  0.208296
  23  0.132429
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  7.703e+00  7.561e+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

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  9.558e-01  1.324e-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:  9.624e-01  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 325.462 -37.455
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 4.11e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.04e-05

TS (Fixed Index): 1.46
Ra Dec: 325.462 -37.455
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682725/likelihoodResults_515116801_515376001_4FGL_J2141.8-3727_daily_bin1064.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) = 7906.64006942
delta logL = 1.15814779357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7906.54924597
delta logL = 1.24897124919

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30428       1.0000         .10000E-03   10000.    
     2 'Index     '    5.6218       1.0000          .0000       10.000    
     3 'Normalizat'    .89220       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98921       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.

 FCN=   7906.549     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      290 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30337        2.4167        .62948E-02    .23560E-03
   2  Index         5.6243        2.9298        .15113        .92148E-04
   3  Normalizat    .89231        .48895E-01    .71044E-01    .11628E-04
   4  Prefactor     .98916        .33093E-01    .46132E-01    .14108E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.303372
  Index      = 5.62431
  Normalizat = 0.892307
  Prefactor  = 0.98916
 **********
 **   18 **HESSE 
 **********

 FCN=   7906.549     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      325 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30337        5.3983        .28590E-03   -1.5598    
   2  Index         5.6243        7.4049        .58084E-02    .12519    
   3  Normalizat    .89231        .16006        .31434E-03   -.96731    
   4  Prefactor     .98916        .10676        .20243E-03   -.93092    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.71303e-10
Minuit parameter uncertainties:
  1  2.55928
  2  5.5421
  3  0.160148
  4  0.106782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682725': 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) = 7906.54924454
delta logL = 1.24897267945

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  3.034e-01  2.559e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  5.624e+00  5.542e+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.892e-01  1.068e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  8.923e-01  1.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.17
Ra Dec: 325.462 -37.455
Photon Index (Free Index): 5.62 +/- 5.54
Photon Flux (Free Index): 9.45e-08 +/- 5.68e-08
Energy Flux (Free Index): 1.20e-05 +/- 9.26e-06

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/682725/cmap_HighResolution_515116801_515376001_4FGL_J2141.8-3727_daily_bin1064.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.93e-03', comment='SUCCESS', photon_flux='4.11e-08', energy_flux2='1.20e-05', photon_flux_error='4.03e-08', dlogl='1.25e+00', energy_flux='1.06e-05', photon_flux2='9.45e-08', job_status='DONE', time_completed='2021-09-27 00:30:16.076902', photon_index_error2='5.54', photon_index2='5.62', ts='1.46', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='9.26e-06', EG='0.96', time_epoch_completed='1632727816.08', return_code='0', job_id='682725', GAL2='0.99', EG2='0.89', return_code2='102', energy_flux_error='1.04e-05', photon_flux_error2='5.68e-08', ts2='4.17', photon_index='2.62' WHERE bin_id='1064' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:30:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 682725: <4FGL_J2141.8-3727_daily_bin1064> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1064> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 27 00:15:26 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:17:16 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:17:16 2021
Terminated at Mon Sep 27 00:30:16 2021
Results reported at Mon Sep 27 00:30:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1064 325.462 -37.4545 515116801 515376001 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 :                                   752.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            890 sec.

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

