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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1058
RA = 325.462, Dec = -37.4545
tmin = 513561601, tmax = 513820801
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='682717', job_status='RUN', time_executed='2021-09-27 00:18:51.800370', time_epoch_executed='1632727131.8' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1058'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682717

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682717/ft1_4FGL_J2141.8-3727_daily_bin1058.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682717/ft2_4FGL_J2141.8-3727_daily_bin1058.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682717/ft1_4FGL_J2141.8-3727_daily_bin1058.fits outfile=/scratch/kocevski/682717/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1058.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=513561601.0 tmax=513820801.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.88
user 3.45
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/682717/ft2_4FGL_J2141.8-3727_daily_bin1058.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/682717/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1058.fits evtable="EVENTS" outfile="/scratch/kocevski/682717/ft1_filtered_4FGL_J2141.8-3727_daily_bin1058.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682717/ft1_filtered_4FGL_J2141.8-3727_daily_bin1058.fits" evtable="EVENTS" scfile=/scratch/kocevski/682717/ft2_4FGL_J2141.8-3727_daily_bin1058.fits sctable="SC_DATA" outfile=/scratch/kocevski/682717/ltcube_513561601_513820801_4FGL_J2141.8-3727_daily_bin1058.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/682717/ft2_4FGL_J2141.8-3727_daily_bin1058.fits
.....................!
real 12.73
user 12.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682717/ft1_filtered_4FGL_J2141.8-3727_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/682717/ft2_4FGL_J2141.8-3727_daily_bin1058.fits sctable="SC_DATA" expcube=/scratch/kocevski/682717/ltcube_513561601_513820801_4FGL_J2141.8-3727_daily_bin1058.fits outfile=/scratch/kocevski/682717/expmap_513561601_513820801_4FGL_J2141.8-3727_daily_bin1058.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/682717/ltcube_513561601_513820801_4FGL_J2141.8-3727_daily_bin1058.fits
.....................!
real 192.30
user 186.90
sys 5.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/682717/ft1_filtered_4FGL_J2141.8-3727_daily_bin1058.fits scfile=/scratch/kocevski/682717/ft2_4FGL_J2141.8-3727_daily_bin1058.fits outfile=/scratch/kocevski/682717/cmap_513561601_513820801_4FGL_J2141.8-3727_daily_bin1058.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=325.462 yref=-37.4545 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682717/ft1_filtered_4FGL_J2141.8-3727_daily_bin1058.fits scfile=/scratch/kocevski/682717/ft2_4FGL_J2141.8-3727_daily_bin1058.fits outfile=/scratch/kocevski/682717/cmap_HighResolution_513561601_513820801_4FGL_J2141.8-3727_daily_bin1058.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/682717/ft1_filtered_4FGL_J2141.8-3727_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/682717/ft2_4FGL_J2141.8-3727_daily_bin1058.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682717/Model_4FGL_J2141.8-3727_daily_bin1058.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/682717/ft1_filtered_4FGL_J2141.8-3727_daily_bin1058.fits.....................!
real 54.64
user 53.16
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    197.61       1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.937       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.931       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0881       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.6842       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0320       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    89.179       1.0000         .10000E-03   10000.    
    14 'norm      '    1.6623       1.0000         .10000E-03   10000.    
    15 'norm      '    2.6558       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.125       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .81936E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.0619       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.257       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2173       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94279       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=   6605.217     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2557 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     197.65        134.13        .26473E-05    .16023E-04
   2  Prefactor     62.934        31.884       -.28782E-06   -.40925E-04
   3  Prefactor     28.927        31.804       -.59171E-06   -.37568E-04
   4  Prefactor     3.0853        7.4256        .84255E-06   -.32320E-04
   5  Prefactor     .10000E-03    8.8336        .44396E-07** at limit **
   6  norm          .10000E-03    5.4153        .21403E-07** at limit **
   7  norm          6.6829        4.1747        .66371E-07   -.14061E-04
   8  Prefactor     .10000E-03    11.759       -.70403E-07** at limit **
   9  Prefactor     9.0361        12.440       -.33246E-06   -.41194E-04
  10  Prefactor     .10000E-03    5.0652        .78271E-07** at limit **
  11  norm          .10000E-03    5.0027       -.19494E-06** at limit **
  12  Prefactor     .10000E-03    20.647        .80474E-06** at limit **
  13  Prefactor     89.213        88.553       -.34374E-05   -.54449E-04
  14  norm          1.6551        10.235        .51521E-05   -.45022E-04
  15  norm          2.6561        .62965       -.11643E-06   -.72703E-03
  16  Prefactor     15.129        52.782       -.59998E-06   -.20545E-04
  17  Prefactor     .10033E-03    6.6620        .39649E-06** at limit **
  18  Prefactor     9.0606        6.2709        .14250E-06   -.49131E-04
  19  Prefactor     .10000E-03    15.117        .49091E-06** at limit **
  20  Prefactor     15.279        25.573        .21554E-05    .57055E-04
  21  Prefactor     .10000E-03    15.793        .62277E-07** at limit **
  22  Normalizat    1.2176        .23804       -.33928E-05    .53900E-05
  23  Prefactor     .94275        .13463        .83431E-06   -.22312E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 197.648
  Prefactor  = 62.9339
  Prefactor  = 28.9265
  Prefactor  = 3.08534
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.68293
  Prefactor  = 0.0001
  Prefactor  = 9.03608
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 89.2127
  norm       = 1.65513
  norm       = 2.65614
  Prefactor  = 15.1287
  Prefactor  = 0.000100329
  Prefactor  = 9.06062
  Prefactor  = 0.0001
  Prefactor  = 15.2793
  Prefactor  = 0.0001
  Normalizat = 1.21765
  Prefactor  = 0.942753
 **********
 **   18 **HESSE 
 **********

 FCN=   6605.217     FROM HESSE     STATUS=OK           378 CALLS     2935 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     197.65        134.40        .14370E-03   -1.2887    
   2  Prefactor     62.934        31.937        .50582E-04   -1.4120    
   3  Prefactor     28.927        31.941        .74486E-04   -1.4632    
   4  Prefactor     3.0853        7.4186        .23079E-03   -1.5357    
   5  Prefactor     .10000E-03    8.8397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.5622        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.6829        4.1759        .12724E-03   -1.5191    
   8  Prefactor     .10000E-03    12.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.0361        12.445        .13336E-03   -1.5107    
  10  Prefactor     .10000E-03    5.0977        .17863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.0291        .17751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     89.213        88.670        .42548E-04   -1.3816    
  14  norm          1.6551        10.411        .32717E-03   -1.5451    
  15  norm          2.6561        .63149        .28738E-04   -1.5382    
  16  Prefactor     15.129        53.715        .10299E-03   -1.4930    
  17  Prefactor     .10033E-03    12.628        .62126E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.0606        6.2977        .13314E-03   -1.5106    
  19  Prefactor     .10000E-03    15.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.279        25.867        .10254E-03   -1.4926    
  21  Prefactor     .10000E-03    15.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2176        .27130        .30932E-03   -.86059    
  23  Prefactor     .94275        .15430        .21876E-03   -.94663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61587e-10
Minuit parameter uncertainties:
  1  134.606
  2  31.946
  3  31.9602
  4  7.42081
  5  5.85543e-06
  6  1.4729e-06
  7  4.17606
  8  3.70909e-05
  9  12.4488
  10  9.29508e-06
  11  4.23204e-06
  12  4.86949e-05
  13  88.8019
  14  8.30422
  15  0.631496
  16  53.8875
  17  0.00407911
  18  6.29812
  19  1.84104e-05
  20  25.8864
  21  2.21901e-05
  22  0.271612
  23  0.154373
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  3.709e-05  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.428e-01  1.544e-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.218e+00  2.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/682717/likelihoodResults_513561601_513820801_4FGL_J2141.8-3727_daily_bin1058.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6605.21785428
delta logL = -0.000396785135308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6605.21745752
delta logL = -2.65799826593e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6217       1.0000          .0000       10.000    
     3 'Normalizat'    1.2177       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94276       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=   6605.217     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1057.3        .90712E-02** at limit **
   2  Index         2.6208        7.9112        .50000        .56000E-06
   3  Normalizat    1.2176        .62844E-01    .69910E-01    .23058E-04
   4  Prefactor     .94276        .39618E-01    .45548E-01    .15751E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.6208
  Normalizat = 1.21765
  Prefactor  = 0.942755
 **********
 **   18 **HESSE 
 **********

 FCN=   6605.217     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6242.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6208        5.8862        .50000       -.49592    
   3  Normalizat    1.2176        .16178        .30932E-03   -.86059    
   4  Prefactor     .94276        .10250        .21876E-03   -.94663    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.28327e-09
Minuit parameter uncertainties:
  1  0.000947773
  2  66.3623
  3  0.161851
  4  0.102518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682717': 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) = 6605.21745749
delta logL = 3.57431417797e-10

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  9.478e-04  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.621e+00  6.636e+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.428e-01  1.025e-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.218e+00  1.619e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 325.462 -37.455

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/682717/cmap_HighResolution_513561601_513820801_4FGL_J2141.8-3727_daily_bin1058.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.68e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-27 00:29:58.486437', job_id='682717', GAL2='0.94', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632727798.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.57e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1058' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:29:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 682717: <4FGL_J2141.8-3727_daily_bin1058> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1058> 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) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:17:13 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:13 2021
Terminated at Mon Sep 27 00:29:58 2021
Results reported at Mon Sep 27 00:29:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1058 325.462 -37.4545 513561601 513820801 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 :                                   662.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             301.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            872 sec.

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

