/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 63 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_bin1376
RA = 325.462, Dec = -37.4545
tmin = 595987201, tmax = 596246401
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='684274', job_status='RUN', time_executed='2021-09-27 00:23:38.343524', time_epoch_executed='1632727418.34' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/684274

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/684274/ft1_4FGL_J2141.8-3727_daily_bin1376.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/684274/ft2_4FGL_J2141.8-3727_daily_bin1376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/684274/ft1_4FGL_J2141.8-3727_daily_bin1376.fits outfile=/scratch/kocevski/684274/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1376.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=595987201.0 tmax=596246401.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.20
user 2.97
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/684274/ft2_4FGL_J2141.8-3727_daily_bin1376.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/684274/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1376.fits evtable="EVENTS" outfile="/scratch/kocevski/684274/ft1_filtered_4FGL_J2141.8-3727_daily_bin1376.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.83
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/684274/ft1_filtered_4FGL_J2141.8-3727_daily_bin1376.fits" evtable="EVENTS" scfile=/scratch/kocevski/684274/ft2_4FGL_J2141.8-3727_daily_bin1376.fits sctable="SC_DATA" outfile=/scratch/kocevski/684274/ltcube_595987201_596246401_4FGL_J2141.8-3727_daily_bin1376.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/684274/ft2_4FGL_J2141.8-3727_daily_bin1376.fits
.....................!
real 14.81
user 14.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/684274/ft1_filtered_4FGL_J2141.8-3727_daily_bin1376.fits evtable="EVENTS" scfile=/scratch/kocevski/684274/ft2_4FGL_J2141.8-3727_daily_bin1376.fits sctable="SC_DATA" expcube=/scratch/kocevski/684274/ltcube_595987201_596246401_4FGL_J2141.8-3727_daily_bin1376.fits outfile=/scratch/kocevski/684274/expmap_595987201_596246401_4FGL_J2141.8-3727_daily_bin1376.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/684274/ltcube_595987201_596246401_4FGL_J2141.8-3727_daily_bin1376.fits
.....................!
real 191.11
user 185.87
sys 4.81

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/684274/ft1_filtered_4FGL_J2141.8-3727_daily_bin1376.fits scfile=/scratch/kocevski/684274/ft2_4FGL_J2141.8-3727_daily_bin1376.fits outfile=/scratch/kocevski/684274/cmap_595987201_596246401_4FGL_J2141.8-3727_daily_bin1376.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/684274/ft1_filtered_4FGL_J2141.8-3727_daily_bin1376.fits scfile=/scratch/kocevski/684274/ft2_4FGL_J2141.8-3727_daily_bin1376.fits outfile=/scratch/kocevski/684274/cmap_HighResolution_595987201_596246401_4FGL_J2141.8-3727_daily_bin1376.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.55
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/684274/ft1_filtered_4FGL_J2141.8-3727_daily_bin1376.fits evtable="EVENTS" scfile=/scratch/kocevski/684274/ft2_4FGL_J2141.8-3727_daily_bin1376.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/684274/Model_4FGL_J2141.8-3727_daily_bin1376.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/684274/ft1_filtered_4FGL_J2141.8-3727_daily_bin1376.fits.....................!
real 57.73
user 55.95
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    67.725       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4048       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .58523E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    15.216       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .79757E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .38740       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .48075E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9040       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4388       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.441       1.0000         .10000E-03   10000.    
    20 'Prefactor '    94.993       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0320       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2204       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=   7177.420     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2629 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.345        .67795E-06** at limit **
   2  Prefactor     .10000E-03    33.362       -.67840E-06** at limit **
   3  Prefactor     67.724        35.911        .36086E-06    .20064E-04
   4  Prefactor     8.3925        10.123        .15060E-06    .31535E-03
   5  Prefactor     .10000E-03    170.85       -.92780E-05** at limit **
   6  norm          .10000E-03    2.6400       -.26150E-07** at limit **
   7  norm          15.204        6.6825       -.51436E-06    .21486E-03
   8  Prefactor     .10001E-03    13.575       -.62099E-05** at limit **
   9  Prefactor     .10000E-03    6.8745       -.29988E-07** at limit **
  10  Prefactor     .44130        62.780        .18872E-04   -.21342E-04
  11  norm          .10000E-03    5.4378       -.49589E-07** at limit **
  12  Prefactor     .10000E-03    12.342       -.17916E-06** at limit **
  13  Prefactor     .10000E-03    33.167       -.63679E-06** at limit **
  14  norm          .10000E-03    2.3023       -.96863E-07** at limit **
  15  norm          1.9042        .50418        .34048E-07   -.29324E-03
  16  Prefactor     .10000E-03    85.674        .39990E-06** at limit **
  17  Prefactor     .10000E-03    14.184        .30471E-07** at limit **
  18  Prefactor     2.4364        4.9789       -.10811E-05   -.40290E-04
  19  Prefactor     27.442        51.684        .24116E-05    .56243E-04
  20  Prefactor     94.998        31.964        .50898E-06    .13798E-03
  21  Prefactor     .10000E-03    13.457        .34116E-06** at limit **
  22  Normalizat    1.0323        .22698       -.15938E-05   -.70313E-04
  23  Prefactor     1.2203        .14250       -.11451E-06   -.19043E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.7242
  Prefactor  = 8.39246
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.2039
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.441302
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 1.90421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.43641
  Prefactor  = 27.4424
  Prefactor  = 94.9981
  Prefactor  = 0.0001
  Normalizat = 1.0323
  Prefactor  = 1.22033
 **********
 **   18 **HESSE 
 **********

 FCN=   7177.420     FROM HESSE     STATUS=OK           376 CALLS     3005 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     67.724        35.976        .48772E-04   -1.4060    
   4  Prefactor     8.3925        10.182        .13828E-03   -1.5128    
   5  Prefactor     .10000E-03    172.06        .42154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.6426        .13443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.204        6.6458        .10268E-03   -1.4928    
   8  Prefactor     .10001E-03    14.158        .59912E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.8830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .44130        69.605        .40561E-02   -1.5575    
  11  norm          .10000E-03    5.4971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    41.777        .23743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9042        .49449        .29232E-04   -1.5432    
  16  Prefactor     .10000E-03    86.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.534        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4364        5.0149        .25425E-03   -1.5396    
  19  Prefactor     27.442        51.808        .76477E-04   -1.4660    
  20  Prefactor     94.998        32.057        .41238E-04   -1.3756    
  21  Prefactor     .10000E-03    13.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0323        .25094        .34018E-03   -.91956    
  23  Prefactor     1.2203        .16103        .21129E-03   -.85708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80971e-08
Minuit parameter uncertainties:
  1  0.000169781
  2  6.30732e-05
  3  35.9878
  4  10.1845
  5  0.000347802
  6  7.56421e-07
  7  6.64614
  8  0.000589396
  9  2.487e-06
  10  11.0964
  11  5.09119e-06
  12  1.3676e-05
  13  0.000130749
  14  0.000344267
  15  0.494491
  16  0.000371136
  17  3.08134e-05
  18  5.01574
  19  51.8929
  20  32.0628
  21  3.92058e-05
  22  0.25123
  23  0.1611
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  5.894e-04  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.623e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  5.479e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.220e+00  1.611e-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.032e+00  2.512e-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.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/684274/likelihoodResults_595987201_596246401_4FGL_J2141.8-3727_daily_bin1376.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) = 7177.4195816
delta logL = -7.65935510572e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7177.36581055
delta logL = 0.0537633966087

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1303       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7116       1.0000          .0000       10.000    
     3 'Normalizat'    1.0080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2276       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7177.366     FROM MIGRAD    STATUS=FAILED        86 CALLS      448 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1301        19.570        .25354E-03   -.70745E-03
   2  Index         3.7116        6.8223        .81116E-02   -.19736E-03
   3  Normalizat    1.0080        .24547        .34387E-03   -.30241E-03
   4  Prefactor     1.2276        .15958        .21075E-03   -.29124E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7177.366     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      529 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1301        19.570        .26045E-03   -1.5495    
   2  Index         3.7116        6.8223        .37743E-02   -.26062    
   3  Normalizat    1.0080        .24547        .33273E-03   -.92764    
   4  Prefactor     1.2276        .15958        .16334E-03   -.85487    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7177.366     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      556 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1295        8.4873        .10141E-04   -.10529E-02
   2  Index         3.7120        3.3065        .32446E-03   -.71394E-04
   3  Normalizat    1.0080        .24592        .13755E-04   -.20432E-03
   4  Prefactor     1.2276        .15960        .42150E-04   -.19431E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.12954
  Index      = 3.71199
  Normalizat = 1.00797
  Prefactor  = 1.22757
 **********
 **   18 **HESSE 
 **********

 FCN=   7177.366     FROM HESSE     STATUS=OK            23 CALLS      579 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1295        8.3493        .20283E-05   -1.5495    
   2  Index         3.7120        3.2846        .64893E-04   -.26054    
   3  Normalizat    1.0080        .24590        .27510E-05   -.92764    
   4  Prefactor     1.2276        .15958        .84300E-05   -.85487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08597e-09
Minuit parameter uncertainties:
  1  6.14289
  2  3.61173
  3  0.246182
  4  0.159645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/684274': 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) = 7177.36581054
delta logL = 0.0537634038647

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.130e+00  6.143e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.712e+00  3.612e+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:  1.228e+00  1.596e-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.008e+00  2.462e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/684274/cmap_HighResolution_595987201_596246401_4FGL_J2141.8-3727_daily_bin1376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.84e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-27 00:35:55.516258', job_id='684274', GAL2='1.23', fit_tolerance='1e-08', EG2='1.01', EG='1.03', time_epoch_completed='1632728155.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='5.38e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1376' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:35:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 684274: <4FGL_J2141.8-3727_daily_bin1376> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1376> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 00:20:31 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:22:25 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:22:25 2021
Terminated at Mon Sep 27 00:35:56 2021
Results reported at Mon Sep 27 00:35:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1376 325.462 -37.4545 595987201 596246401 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 :                                   720.10 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            925 sec.

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

