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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1168
RA = 325.462, Dec = -37.4545
tmin = 542073601, tmax = 542332801
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='682883', job_status='RUN', time_executed='2021-09-27 00:19:53.836093', time_epoch_executed='1632727193.84' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682883

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682883/ft1_4FGL_J2141.8-3727_daily_bin1168.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682883/ft2_4FGL_J2141.8-3727_daily_bin1168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682883/ft1_4FGL_J2141.8-3727_daily_bin1168.fits outfile=/scratch/kocevski/682883/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1168.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=542073601.0 tmax=542332801.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.63
user 3.34
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682883/ft1_filtered_4FGL_J2141.8-3727_daily_bin1168.fits" evtable="EVENTS" scfile=/scratch/kocevski/682883/ft2_4FGL_J2141.8-3727_daily_bin1168.fits sctable="SC_DATA" outfile=/scratch/kocevski/682883/ltcube_542073601_542332801_4FGL_J2141.8-3727_daily_bin1168.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/682883/ft2_4FGL_J2141.8-3727_daily_bin1168.fits
.....................!
real 13.64
user 13.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682883/ft1_filtered_4FGL_J2141.8-3727_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/682883/ft2_4FGL_J2141.8-3727_daily_bin1168.fits sctable="SC_DATA" expcube=/scratch/kocevski/682883/ltcube_542073601_542332801_4FGL_J2141.8-3727_daily_bin1168.fits outfile=/scratch/kocevski/682883/expmap_542073601_542332801_4FGL_J2141.8-3727_daily_bin1168.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/682883/ltcube_542073601_542332801_4FGL_J2141.8-3727_daily_bin1168.fits
.....................!
real 190.49
user 183.96
sys 6.14

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/682883/ft1_filtered_4FGL_J2141.8-3727_daily_bin1168.fits scfile=/scratch/kocevski/682883/ft2_4FGL_J2141.8-3727_daily_bin1168.fits outfile=/scratch/kocevski/682883/cmap_542073601_542332801_4FGL_J2141.8-3727_daily_bin1168.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682883/ft1_filtered_4FGL_J2141.8-3727_daily_bin1168.fits scfile=/scratch/kocevski/682883/ft2_4FGL_J2141.8-3727_daily_bin1168.fits outfile=/scratch/kocevski/682883/cmap_HighResolution_542073601_542332801_4FGL_J2141.8-3727_daily_bin1168.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/682883/ft1_filtered_4FGL_J2141.8-3727_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/682883/ft2_4FGL_J2141.8-3727_daily_bin1168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682883/Model_4FGL_J2141.8-3727_daily_bin1168.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/682883/ft1_filtered_4FGL_J2141.8-3727_daily_bin1168.fits.....................!
real 48.98
user 47.66
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.304       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13336E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.0559       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.958       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.188       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.339       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15169E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.9170       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0509       1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.000       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8260       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.195       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.605       1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.646       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .81006       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95856       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=   5865.539     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2486 TOTAL
                     EDM=   .59E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.549       -.23434E-05** at limit **
   2  Prefactor     38.302        29.405        .35110E-06    .40684E-06
   3  Prefactor     .10000E-03    19.588        .21970E-06** at limit **
   4  Prefactor     .10000E-03    9.7381       -.86802E-07** at limit **
   5  Prefactor     .10000E-03    10.160        .15288E-06** at limit **
   6  norm          .10000E-03    5.2900       -.15296E-07** at limit **
   7  norm          8.0564        4.6079        .11609E-06   -.53107E-07
   8  Prefactor     13.956        9.0846        .87340E-07   -.36927E-05
   9  Prefactor     30.189        21.847       -.67156E-06   -.78624E-05
  10  Prefactor     .10000E-03    3.9877       -.11549E-07** at limit **
  11  norm          .10000E-03    14.287        .62030E-07** at limit **
  12  Prefactor     18.310        31.859        .32111E-05    .38194E-05
  13  Prefactor     .10000E-03    62.510       -.23475E-06** at limit **
  14  norm          5.9194        7.6207        .19053E-05   -.17487E-04
  15  norm          2.0509        .59126       -.14070E-06    .33555E-05
  16  Prefactor     33.001        41.639        .23061E-06   -.82302E-06
  17  Prefactor     6.8260        7.5871        .19414E-06   -.23230E-05
  18  Prefactor     10.195        5.1175       -.53306E-06   -.30256E-04
  19  Prefactor     .10000E-03    37.902        .14476E-05** at limit **
  20  Prefactor     18.602        20.301        .19799E-06   -.11874E-05
  21  Prefactor     33.645        23.725        .19297E-06   -.43490E-05
  22  Normalizat    .81009        .21336       -.16526E-05    .93133E-06
  23  Prefactor     .95857        .12946        .42540E-06   -.28070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 38.3015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.05643
  Prefactor  = 13.9561
  Prefactor  = 30.1893
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.3098
  Prefactor  = 0.0001
  norm       = 5.91935
  norm       = 2.0509
  Prefactor  = 33.0015
  Prefactor  = 6.82604
  Prefactor  = 10.1946
  Prefactor  = 0.0001
  Prefactor  = 18.602
  Prefactor  = 33.6451
  Normalizat = 0.810085
  Prefactor  = 0.958573
 **********
 **   18 **HESSE 
 **********

 FCN=   5865.539     FROM HESSE     STATUS=OK           374 CALLS     2860 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.302        29.428        .64760E-04   -1.4469    
   3  Prefactor     .10000E-03    19.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.3168        .17203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.0564        4.6106        .12006E-03   -1.5140    
   8  Prefactor     13.956        9.1010        .10721E-03   -1.4961    
   9  Prefactor     30.189        21.848        .72923E-04   -1.4609    
  10  Prefactor     .10000E-03    4.0131        .14932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    14.640        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.310        31.858        .93527E-04   -1.4852    
  13  Prefactor     .10000E-03    62.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.9194        7.6341        .82543E-03   -1.5221    
  15  norm          2.0509        .59216        .28234E-04   -1.5422    
  16  Prefactor     33.001        41.754        .69754E-04   -1.4558    
  17  Prefactor     6.8260        7.6191        .15357E-03   -1.5185    
  18  Prefactor     10.195        5.1332        .11862E-03   -1.5069    
  19  Prefactor     .10000E-03    38.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.602        20.306        .92856E-04   -1.4845    
  21  Prefactor     33.645        23.769        .69083E-04   -1.4547    
  22  Normalizat    .81009        .24313        .32447E-03   -.99696    
  23  Prefactor     .95857        .14846        .19605E-03   -.94123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.40982e-11
Minuit parameter uncertainties:
  1  5.80434e-06
  2  29.4393
  3  3.82431e-06
  4  1.38307e-05
  5  1.27497e-06
  6  1.5793e-06
  7  4.61083
  8  9.10186
  9  21.8533
  10  8.75886e-08
  11  5.09322e-06
  12  31.8877
  13  0.000341045
  14  7.63531
  15  0.592162
  16  41.7905
  17  7.62015
  18  5.13344
  19  4.28689e-05
  20  20.3138
  21  23.776
  22  0.24346
  23  0.148519
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.396e+01  9.102e+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.586e-01  1.485e-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.101e-01  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.99
Ra Dec: 325.462 -37.455
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 7.45e-08 +/- 4.86e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/682883/likelihoodResults_542073601_542332801_4FGL_J2141.8-3727_daily_bin1168.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) = 5865.35226047
delta logL = 0.186920434075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5865.34649403
delta logL = 0.192686874552

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7866       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1181       1.0000          .0000       10.000    
     3 'Normalizat'    .78581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96992       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=   5865.346     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      289 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7849        11.802        .12809E-03    .49258E-04
   2  Index         3.1181        1.0153        .67738E-02    .16664E-04
   3  Normalizat    .78584        .22722        .32894E-03   -.39642E-03
   4  Prefactor     .97002        .14681        .19505E-03   -.76469E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.78489
  Index      = 3.1181
  Normalizat = 0.785845
  Prefactor  = 0.970015
 **********
 **   18 **HESSE 
 **********

 FCN=   5865.346     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7849        10.460        .51237E-05   -1.5082    
   2  Index         3.1181        .90072        .27095E-03   -.38589    
   3  Normalizat    .78584        .22699        .13158E-04   -1.0060    
   4  Prefactor     .97002        .14662        .39009E-04   -.93736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20024e-10
Minuit parameter uncertainties:
  1  10.4619
  2  0.906495
  3  0.227267
  4  0.146677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682883': 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) = 5865.34649293
delta logL = 0.192687976389

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  9.785e+00  1.046e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.118e+00  9.065e-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:  9.700e-01  1.467e-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.858e-01  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.41
Ra Dec: 325.462 -37.455
Photon Index (Free Index): 3.12 +/- 0.91
Photon Flux (Free Index): 9.30e-08 +/- 6.13e-08
Energy Flux (Free Index): 1.76e-05 +/- 1.11e-05

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/682883/cmap_HighResolution_542073601_542332801_4FGL_J2141.8-3727_daily_bin1168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-02', comment='SUCCESS', photon_flux='7.45e-08', energy_flux2='1.76e-05', photon_flux_error='4.86e-08', dlogl='1.93e-01', energy_flux='1.91e-05', photon_flux2='9.30e-08', job_status='DONE', time_completed='2021-09-27 00:31:02.864111', photon_index_error2='0.91', photon_index2='3.12', ts='3.99', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.77e-07', energy_flux_error2='1.11e-05', EG='0.81', time_epoch_completed='1632727862.86', return_code='0', job_id='682883', GAL2='0.97', EG2='0.79', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='6.13e-08', ts2='4.41', photon_index='2.62' WHERE bin_id='1168' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:31:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 682883: <4FGL_J2141.8-3727_daily_bin1168> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1168> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 27 00:15:37 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:18:36 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:18:36 2021
Terminated at Mon Sep 27 00:31:03 2021
Results reported at Mon Sep 27 00:31:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1168 325.462 -37.4545 542073601 542332801 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 :                                 1093 MB
    Average Memory :                             290.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            926 sec.

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

