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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1114
RA = 325.462, Dec = -37.4545
tmin = 528076801, tmax = 528336001
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='682795', job_status='RUN', time_executed='2021-09-27 00:19:29.323779', time_epoch_executed='1632727169.32' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682795

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682795/ft1_4FGL_J2141.8-3727_daily_bin1114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682795/ft2_4FGL_J2141.8-3727_daily_bin1114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682795/ft1_4FGL_J2141.8-3727_daily_bin1114.fits outfile=/scratch/kocevski/682795/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1114.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=528076801.0 tmax=528336001.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.52
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682795/ft1_filtered_4FGL_J2141.8-3727_daily_bin1114.fits" evtable="EVENTS" scfile=/scratch/kocevski/682795/ft2_4FGL_J2141.8-3727_daily_bin1114.fits sctable="SC_DATA" outfile=/scratch/kocevski/682795/ltcube_528076801_528336001_4FGL_J2141.8-3727_daily_bin1114.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/682795/ft2_4FGL_J2141.8-3727_daily_bin1114.fits
.....................!
real 16.63
user 16.28
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682795/ft1_filtered_4FGL_J2141.8-3727_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/682795/ft2_4FGL_J2141.8-3727_daily_bin1114.fits sctable="SC_DATA" expcube=/scratch/kocevski/682795/ltcube_528076801_528336001_4FGL_J2141.8-3727_daily_bin1114.fits outfile=/scratch/kocevski/682795/expmap_528076801_528336001_4FGL_J2141.8-3727_daily_bin1114.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/682795/ltcube_528076801_528336001_4FGL_J2141.8-3727_daily_bin1114.fits
.....................!
real 194.79
user 189.36
sys 4.50

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/682795/ft1_filtered_4FGL_J2141.8-3727_daily_bin1114.fits scfile=/scratch/kocevski/682795/ft2_4FGL_J2141.8-3727_daily_bin1114.fits outfile=/scratch/kocevski/682795/cmap_528076801_528336001_4FGL_J2141.8-3727_daily_bin1114.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.57
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682795/ft1_filtered_4FGL_J2141.8-3727_daily_bin1114.fits scfile=/scratch/kocevski/682795/ft2_4FGL_J2141.8-3727_daily_bin1114.fits outfile=/scratch/kocevski/682795/cmap_HighResolution_528076801_528336001_4FGL_J2141.8-3727_daily_bin1114.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.58
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/682795/ft1_filtered_4FGL_J2141.8-3727_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/682795/ft2_4FGL_J2141.8-3727_daily_bin1114.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682795/Model_4FGL_J2141.8-3727_daily_bin1114.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/682795/ft1_filtered_4FGL_J2141.8-3727_daily_bin1114.fits.....................!
real 48.36
user 46.77
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    22.851       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.115       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    17.366       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .47212       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.8577       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3407       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0239       1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.357       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2082       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1488       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2094       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0068       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=   5345.877     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2551 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    90.491        .43779E-05** at limit **
   2  Prefactor     22.853        26.168        .50607E-07    .51676E-05
   3  Prefactor     11.118        24.200        .12472E-06    .63235E-05
   4  Prefactor     .10005E-03    9.0340       -.25002E-05** at limit **
   5  Prefactor     .10000E-03    71.979       -.46715E-05** at limit **
   6  norm          .10000E-03    3.7138       -.30992E-08** at limit **
   7  norm          17.364        7.9056        .41486E-06    .38647E-03
   8  Prefactor     .48568        10.429        .13448E-06   -.29217E-04
   9  Prefactor     9.8575        13.861        .31397E-06    .19323E-04
  10  Prefactor     2.3393        7.3979        .42488E-06    .34712E-04
  11  norm          .10000E-03    4.1048        .28204E-08** at limit **
  12  Prefactor     .10000E-03    6.8775        .91344E-08** at limit **
  13  Prefactor     .10000E-03    38.190       -.43020E-07** at limit **
  14  norm          .10000E-03    1.9366        .63218E-08** at limit **
  15  norm          1.0239        .42279        .54394E-08   -.73623E-05
  16  Prefactor     43.355        53.761        .51572E-06    .26168E-04
  17  Prefactor     4.2067        11.045        .34135E-05    .19329E-03
  18  Prefactor     .10000E-03    2.0940        .39456E-07** at limit **
  19  Prefactor     .10000E-03    28.015       -.48732E-06** at limit **
  20  Prefactor     3.1487        35.728        .50906E-05    .61602E-04
  21  Prefactor     .10000E-03    7.5854        .10597E-07** at limit **
  22  Normalizat    1.2096        .24454       -.14204E-05    .22685E-03
  23  Prefactor     1.0067        .14662        .28232E-06    .17473E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 22.8532
  Prefactor  = 11.1178
  Prefactor  = 0.000100046
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 17.3636
  Prefactor  = 0.48568
  Prefactor  = 9.8575
  Prefactor  = 2.3393
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.02386
  Prefactor  = 43.3554
  Prefactor  = 4.20675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.14872
  Prefactor  = 0.0001
  Normalizat = 1.20963
  Prefactor  = 1.00668
 **********
 **   18 **HESSE 
 **********

 FCN=   5345.877     FROM HESSE     STATUS=OK           368 CALLS     2919 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    90.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.853        26.182        .83793E-04   -1.4751    
   3  Prefactor     11.118        24.224        .12017E-03   -1.5041    
   4  Prefactor     .10005E-03    34.466        .35893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    72.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.7171        .13761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          17.364        7.9560        .96111E-04   -1.4874    
   8  Prefactor     .48568        57.943        .42830E-02   -1.5569    
   9  Prefactor     9.8575        13.859        .63815E-03   -1.5080    
  10  Prefactor     2.3393        7.3352        .26799E-03   -1.5402    
  11  norm          .10000E-03    4.1136        .14464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.8798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.9435        .99324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0239        .42448        .29577E-04   -1.5506    
  16  Prefactor     43.355        53.910        .60884E-04   -1.4390    
  17  Prefactor     4.2067        11.188        .98223E-03   -1.5298    
  18  Prefactor     .10000E-03    3.6640        .20616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.1487        35.795        .11422E-02   -1.5353    
  21  Prefactor     .10000E-03    7.5890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2096        .27706        .29956E-03   -.86306    
  23  Prefactor     1.0067        .16929        .21045E-03   -.92507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39781e-08
Minuit parameter uncertainties:
  1  0.000497731
  2  26.1947
  3  24.2457
  4  0.00251568
  5  0.000305755
  6  1.80352e-07
  7  7.95652
  8  10.6192
  9  13.8637
  10  7.33797
  11  1.67657e-08
  12  3.06015e-07
  13  8.49384e-06
  14  5.71913e-07
  15  0.42448
  16  53.971
  17  11.1941
  18  4.20414e-06
  19  3.315e-05
  20  21.2486
  21  3.25859e-07
  22  0.277397
  23  0.169384
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  4.857e-01  1.062e+01  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.007e+00  1.694e-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.210e+00  2.774e-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.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682795/likelihoodResults_528076801_528336001_4FGL_J2141.8-3727_daily_bin1114.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) = 5345.86670197
delta logL = 0.0107182572365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5345.86106472
delta logL = 0.0163555110594

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2477       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2723       1.0000          .0000       10.000    
     3 'Normalizat'    1.1988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0094       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5345.861     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      292 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2500        19.841        .20033E-02   -.34817E-03
   2  Index         3.2727        3.6537        .12245E-01   -.27996E-04
   3  Normalizat    1.1988        .26316        .30075E-03   -.89249E-04
   4  Prefactor     1.0094        .16607        .21019E-03   -.36562E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.25003
  Index      = 3.27265
  Normalizat = 1.19878
  Prefactor  = 1.0094
 **********
 **   18 **HESSE 
 **********

 FCN=   5345.861     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2500        12.262        .80130E-04   -1.5484    
   2  Index         3.2727        3.0367        .48980E-03   -.35274    
   3  Normalizat    1.1988        .26332        .12030E-04   -.86641    
   4  Prefactor     1.0094        .16626        .84078E-05   -.92417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58247e-10
Minuit parameter uncertainties:
  1  7.83197
  2  3.30277
  3  0.26361
  4  0.166343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682795': 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) = 5345.86106461
delta logL = 0.0163556185762

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.250e+00  7.832e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.273e+00  3.303e+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.009e+00  1.663e-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.199e+00  2.636e-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/682795/cmap_HighResolution_528076801_528336001_4FGL_J2141.8-3727_daily_bin1114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-09-27 00:30:06.185515', job_id='682795', GAL2='1.01', fit_tolerance='1e-08', EG2='1.20', EG='1.21', time_epoch_completed='1632727806.19', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.64e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1114' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:30:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 682795: <4FGL_J2141.8-3727_daily_bin1114> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1114 325.462 -37.4545 528076801 528336001 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 :                                   606.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            875 sec.

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

