aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 41 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7450
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1741
RA = 325.462, Dec = -37.4545
tmin = 690595201, tmax = 690854401
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='27951', job_status='RUN', time_executed='2022-11-23 01:08:15.413427', time_epoch_executed='1669194495.41' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/27951

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/27951/ft1_4FGL_J2141.8-3727_daily_bin1741.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/27951/ft2_4FGL_J2141.8-3727_daily_bin1741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/27951/ft1_4FGL_J2141.8-3727_daily_bin1741.fits outfile=/scratch/kocevski/27951/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1741.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=690595201.0 tmax=690854401.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 2.97
user 2.69
sys 0.21

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

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

Number of photons that the gtmktime cut: 978

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/27951/ft1_filtered_4FGL_J2141.8-3727_daily_bin1741.fits" evtable="EVENTS" scfile=/scratch/kocevski/27951/ft2_4FGL_J2141.8-3727_daily_bin1741.fits sctable="SC_DATA" outfile=/scratch/kocevski/27951/ltcube_690595201_690854401_4FGL_J2141.8-3727_daily_bin1741.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/27951/ft2_4FGL_J2141.8-3727_daily_bin1741.fits
.....................!
real 15.45
user 14.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/27951/ft1_filtered_4FGL_J2141.8-3727_daily_bin1741.fits evtable="EVENTS" scfile=/scratch/kocevski/27951/ft2_4FGL_J2141.8-3727_daily_bin1741.fits sctable="SC_DATA" expcube=/scratch/kocevski/27951/ltcube_690595201_690854401_4FGL_J2141.8-3727_daily_bin1741.fits outfile=/scratch/kocevski/27951/expmap_690595201_690854401_4FGL_J2141.8-3727_daily_bin1741.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/27951/ltcube_690595201_690854401_4FGL_J2141.8-3727_daily_bin1741.fits
.....................!
real 193.80
user 185.66
sys 6.05

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/27951/ft1_filtered_4FGL_J2141.8-3727_daily_bin1741.fits scfile=/scratch/kocevski/27951/ft2_4FGL_J2141.8-3727_daily_bin1741.fits outfile=/scratch/kocevski/27951/cmap_690595201_690854401_4FGL_J2141.8-3727_daily_bin1741.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/27951/ft1_filtered_4FGL_J2141.8-3727_daily_bin1741.fits scfile=/scratch/kocevski/27951/ft2_4FGL_J2141.8-3727_daily_bin1741.fits outfile=/scratch/kocevski/27951/cmap_HighResolution_690595201_690854401_4FGL_J2141.8-3727_daily_bin1741.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/27951/ft1_filtered_4FGL_J2141.8-3727_daily_bin1741.fits evtable="EVENTS" scfile=/scratch/kocevski/27951/ft2_4FGL_J2141.8-3727_daily_bin1741.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/27951/Model_4FGL_J2141.8-3727_daily_bin1741.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/27951/ft1_filtered_4FGL_J2141.8-3727_daily_bin1741.fits.....................!
real 78.96
user 76.70
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/27951/ft1_filtered_4FGL_J2141.8-3727_daily_bin1741.fits', '/scratch/kocevski/27951/ft2_4FGL_J2141.8-3727_daily_bin1741.fits', expMap='/scratch/kocevski/27951/expmap_690595201_690854401_4FGL_J2141.8-3727_daily_bin1741.fits', expCube='/scratch/kocevski/27951/ltcube_690595201_690854401_4FGL_J2141.8-3727_daily_bin1741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/27951/Model_4FGL_J2141.8-3727_daily_bin1741.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  0.000e+00  1.000e+06 ( 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/27951/ft1_filtered_4FGL_J2141.8-3727_daily_bin1741.fits
Spacecraft file(s): /scratch/kocevski/27951/ft2_4FGL_J2141.8-3727_daily_bin1741.fits
Exposure map: /scratch/kocevski/27951/expmap_690595201_690854401_4FGL_J2141.8-3727_daily_bin1741.fits
Exposure cube: /scratch/kocevski/27951/ltcube_690595201_690854401_4FGL_J2141.8-3727_daily_bin1741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/27951/Model_4FGL_J2141.8-3727_daily_bin1741.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) = 10465.2715656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29148       1.0000          .0000       .10000E+07
     2 'Prefactor '    .54953E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.3398       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14721E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    20.908       1.0000          .0000       .10000E+07
     6 'norm      '    .97982E-03   1.0000          .0000       .10000E+07
     7 'norm      '    14.526       1.0000          .0000       .10000E+07
     8 'Prefactor '    7.2292       1.0000          .0000       .10000E+07
     9 'Prefactor '    10.418       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.4407       1.0000          .0000       .10000E+07
    11 'norm      '    4.4930       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10020E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    49.635       1.0000          .0000       .10000E+07
    14 'norm      '    3.3189       1.0000          .0000       .10000E+07
    15 'norm      '    .60613       1.0000          .0000       .10000E+07
    16 'Prefactor '    32.823       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.5964       1.0000          .0000       .10000E+07
    18 'Prefactor '    .30037E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    23.023       1.0000          .0000       .10000E+07
    20 'Prefactor '    .19540E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    33.055       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1043       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91790       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10465.27     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1922 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-09    1.5004        .79279E-06** at limit **
   2  Prefactor     .65392E-07    7.7774       -.17105E-05** at limit **
   3  Prefactor     6.2960        10.035       -.26721E-05   -.61693E-01
   4  Prefactor      .0000        2.7146        .14311E-06** at limit **
   5  Prefactor     20.926        1.0962       -.34548E-07   -.37850E-02
   6  norm           .0000        2.4689       -.48735E-06** at limit **
   7  norm          14.583        4.7178       -.12834E-06   -.26710E-02
   8  Prefactor     7.2461        5.5774       -.15026E-06   -.36443E-02
   9  Prefactor     10.406        9.0310       -.27416E-05   -.13454E-01
  10  Prefactor     3.4477        3.9394        .20151E-06    .17852E-02
  11  norm          4.4597        4.1678       -.20174E-06   -.69777E-03
  12  Prefactor     .89373E-08    4.2636        .17268E-05** at limit **
  13  Prefactor     49.684        27.943        .37776E-05   -.81793E-01
  14  norm          3.3257        3.1005       -.41994E-06    .39725E-02
  15  norm          .60616        .23656        .29081E-07    .32580E-02
  16  Prefactor     32.810        5.5975       -.85609E-06   -.17100E-01
  17  Prefactor     5.6135        5.5998       -.22437E-07   -.36171E-02
  18  Prefactor     .33307E-09    5.9284        .24516E-05** at limit **
  19  Prefactor     23.034        4.9583        .63978E-06    .62391E-01
  20  Prefactor     .31031E-07    10.457        .21048E-05** at limit **
  21  Prefactor     33.056        1.5738       -.19630E-07    .24149E-01
  22  Normalizat    1.1040        .17387        .15465E-04   -.26459E-04
  23  Prefactor     .91799        .11303       -.43250E-05    .81386E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-10
  Prefactor  = 6.53921e-08
  Prefactor  = 6.29602
  Prefactor  = 0
  Prefactor  = 20.926
  norm       = 0
  norm       = 14.5835
  Prefactor  = 7.24611
  Prefactor  = 10.406
  Prefactor  = 3.44767
  norm       = 4.45975
  Prefactor  = 8.9373e-09
  Prefactor  = 49.6844
  norm       = 3.32565
  norm       = 0.606159
  Prefactor  = 32.8097
  Prefactor  = 5.61347
  Prefactor  = 3.33067e-10
  Prefactor  = 23.0338
  Prefactor  = 3.10307e-08
  Prefactor  = 33.0562
  Normalizat = 1.10399
  Prefactor  = 0.917992
 **********
 **   18 **HESSE 
 **********

 FCN=   10465.27     FROM HESSE     STATUS=OK           428 CALLS     2350 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-09    46.915        .10332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .65392E-07    9.0397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.2960        22.023        .39841E-03   -1.5658    
   4  Prefactor      .0000        2.7365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.926        23.752        .21876E-03   -1.5616    
   6  norm           .0000        2.4888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.583        5.1138        .26254E-03   -1.5632    
   8  Prefactor     7.2461        5.5873        .37282E-03   -1.5654    
   9  Prefactor     10.406        9.0346        .31018E-03   -1.5643    
  10  Prefactor     3.4477        3.9494        .54502E-03   -1.5671    
  11  norm          4.4597        4.1702        .47476E-03   -1.5666    
  12  Prefactor     .89373E-08    7.8382        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     49.684        33.387        .14195E-03   -1.5567    
  14  norm          3.3257        3.1217        .55540E-03   -1.5671    
  15  norm          .60616        .23537        .67044E-03   -1.5692    
  16  Prefactor     32.810        27.747        .17457E-03   -1.5593    
  17  Prefactor     5.6135        5.5898        .42443E-03   -1.5661    
  18  Prefactor     .33307E-09    1.2655        .62125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.034        21.268        .20846E-03   -1.5612    
  20  Prefactor     .31031E-07    10.759        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.056        17.898        .17396E-03   -1.5593    
  22  Normalizat    1.1040        .15478        .63789E-01   -.89624    
  23  Prefactor     .91799        .98625E-01    .45233E-01   -.95515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70299e-07
Minuit parameter uncertainties:
  1  0.000317707
  2  0.00153785
  3  22.0238
  4  8.57866e-06
  5  23.752
  6  1.44337e-06
  7  5.11385
  8  5.58733
  9  9.0346
  10  3.9494
  11  4.17015
  12  0.00052956
  13  33.3869
  14  3.12169
  15  0.235371
  16  27.7476
  17  5.58977
  18  3.9936e-05
  19  21.2681
  20  0.00115599
  21  17.8977
  22  0.154848
  23  0.0986446
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  7.246e+00  5.587e+00  0.000e+00  1.000e+06 ( 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.180e-01  9.864e-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.104e+00  1.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.65
Ra Dec: 325.462 -37.455
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 3.87e-08 +/- 2.98e-08
Energy Flux (Fixed Index): 9.94e-06 +/- 7.66e-06

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

Saving results to:
/scratch/kocevski/27951/likelihoodResults_690595201_690854401_4FGL_J2141.8-3727_daily_bin1741.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) = 10465.1656733
delta logL = 0.105841794952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10465.1608093
delta logL = 0.110705731582

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1032       1.0000          .0000       .10000E+07
     2 'Index     '    2.2758       1.0000          .0000       10.000    
     3 'Normalizat'    1.1151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91316       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=   10465.16     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      271 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1031        6.2061        .14079E-04    .19638E-02
   2  Index         2.2758        .67912        .12204E-01   -.85520E-04
   3  Normalizat    1.1151        .16708        .28093E-03    .65638E-04
   4  Prefactor     .91316        .11194        .20642E-03    .11929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.10309
  Index      = 2.27576
  Normalizat = 1.11512
  Prefactor  = 0.913164
 **********
 **   18 **HESSE 
 **********

 FCN=   10465.16     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1031        6.1950        .56315E-06   -1.5651    
   2  Index         2.2758        .67792        .24409E-02   -.57621    
   3  Normalizat    1.1151        .16719        .11237E-04   -.89268    
   4  Prefactor     .91316        .11202        .82570E-05   -.95683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20682e-11
Minuit parameter uncertainties:
  1  6.19503
  2  0.680912
  3  0.16727
  4  0.112045
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/27951': 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) = 10465.1608093
delta logL = 0.110705733925

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  8.103e+00  6.195e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.276e+00  6.809e-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.132e-01  1.120e-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.115e+00  1.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.86
Ra Dec: 325.462 -37.455
Photon Index (Free Index): 2.28 +/- 0.68
Photon Flux (Free Index): 3.05e-08 +/- 2.96e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.10e-05

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/27951/cmap_HighResolution_690595201_690854401_4FGL_J2141.8-3727_daily_bin1741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.05e-03', comment='SUCCESS', photon_flux='3.87e-08', energy_flux2='1.20e-05', photon_flux_error='2.98e-08', dlogl='1.11e-01', energy_flux='9.94e-06', photon_flux2='3.05e-08', job_status='DONE', time_completed='2022-11-23 01:21:17.285112', photon_index_error2='0.68', photon_index2='2.28', ts='2.65', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='1.10e-05', EG='1.10', time_epoch_completed='1669195277.29', return_code='0', job_id='27951', GAL2='0.91', EG2='1.12', return_code2='0', energy_flux_error='7.66e-06', photon_flux_error2='2.96e-08', ts2='2.86', photon_index='2.62' WHERE bin_id='1741' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Nov 23 01:21:17 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 27951: <4FGL_J2141.8-3727_daily_bin1741> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1741> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Nov 23 01:05:26 2022
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Nov 23 01:07:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Nov 23 01:07:25 2022
Terminated at Wed Nov 23 01:21:19 2022
Results reported at Wed Nov 23 01:21:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1741 325.462 -37.4545 690595201 690854401 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 :                                   773.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            953 sec.

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

