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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1204
RA = 325.462, Dec = -37.4545
tmin = 551404801, tmax = 551664001
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='682938', job_status='RUN', time_executed='2021-09-27 00:21:52.505886', time_epoch_executed='1632727312.51' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682938

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682938/ft1_4FGL_J2141.8-3727_daily_bin1204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682938/ft2_4FGL_J2141.8-3727_daily_bin1204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682938/ft1_4FGL_J2141.8-3727_daily_bin1204.fits outfile=/scratch/kocevski/682938/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1204.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=551404801.0 tmax=551664001.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.68
user 3.35
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682938/ft1_filtered_4FGL_J2141.8-3727_daily_bin1204.fits" evtable="EVENTS" scfile=/scratch/kocevski/682938/ft2_4FGL_J2141.8-3727_daily_bin1204.fits sctable="SC_DATA" outfile=/scratch/kocevski/682938/ltcube_551404801_551664001_4FGL_J2141.8-3727_daily_bin1204.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/682938/ft2_4FGL_J2141.8-3727_daily_bin1204.fits
.....................!
real 15.04
user 14.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682938/ft1_filtered_4FGL_J2141.8-3727_daily_bin1204.fits evtable="EVENTS" scfile=/scratch/kocevski/682938/ft2_4FGL_J2141.8-3727_daily_bin1204.fits sctable="SC_DATA" expcube=/scratch/kocevski/682938/ltcube_551404801_551664001_4FGL_J2141.8-3727_daily_bin1204.fits outfile=/scratch/kocevski/682938/expmap_551404801_551664001_4FGL_J2141.8-3727_daily_bin1204.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/682938/ltcube_551404801_551664001_4FGL_J2141.8-3727_daily_bin1204.fits
.....................!
real 194.76
user 188.92
sys 5.35

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/682938/ft1_filtered_4FGL_J2141.8-3727_daily_bin1204.fits scfile=/scratch/kocevski/682938/ft2_4FGL_J2141.8-3727_daily_bin1204.fits outfile=/scratch/kocevski/682938/cmap_551404801_551664001_4FGL_J2141.8-3727_daily_bin1204.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.86
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682938/ft1_filtered_4FGL_J2141.8-3727_daily_bin1204.fits scfile=/scratch/kocevski/682938/ft2_4FGL_J2141.8-3727_daily_bin1204.fits outfile=/scratch/kocevski/682938/cmap_HighResolution_551404801_551664001_4FGL_J2141.8-3727_daily_bin1204.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/682938/ft1_filtered_4FGL_J2141.8-3727_daily_bin1204.fits evtable="EVENTS" scfile=/scratch/kocevski/682938/ft2_4FGL_J2141.8-3727_daily_bin1204.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682938/Model_4FGL_J2141.8-3727_daily_bin1204.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/682938/ft1_filtered_4FGL_J2141.8-3727_daily_bin1204.fits.......................!
real 18.32
user 16.87
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/682938/ft1_filtered_4FGL_J2141.8-3727_daily_bin1204.fits', '/scratch/kocevski/682938/ft2_4FGL_J2141.8-3727_daily_bin1204.fits', expMap='/scratch/kocevski/682938/expmap_551404801_551664001_4FGL_J2141.8-3727_daily_bin1204.fits', expCube='/scratch/kocevski/682938/ltcube_551404801_551664001_4FGL_J2141.8-3727_daily_bin1204.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/682938/Model_4FGL_J2141.8-3727_daily_bin1204.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/682938/ft1_filtered_4FGL_J2141.8-3727_daily_bin1204.fits
Spacecraft file(s): /scratch/kocevski/682938/ft2_4FGL_J2141.8-3727_daily_bin1204.fits
Exposure map: /scratch/kocevski/682938/expmap_551404801_551664001_4FGL_J2141.8-3727_daily_bin1204.fits
Exposure cube: /scratch/kocevski/682938/ltcube_551404801_551664001_4FGL_J2141.8-3727_daily_bin1204.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/682938/Model_4FGL_J2141.8-3727_daily_bin1204.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 608.518936554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 606.534676712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49348       1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.886       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .36979       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39877       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .42924       1.0000         .10000E-03   10000.    
     6 'norm      '    25.678       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2605       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3705       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0117       1.0000         .10000E-03   10000.    
    10 'Prefactor '    87.964       1.0000         .10000E-03   10000.    
    11 'norm      '    50.448       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20748E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    151.71       1.0000         .10000E-03   10000.    
    14 'norm      '    .83058E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6822       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .32060E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3040       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2738       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4428       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7349       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0188       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=   606.5111     FROM MIGRAD    STATUS=CONVERGED    168 CALLS      604 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21148E-03    247.48        .13084E-04** at limit **
   2  Prefactor     54.942        11.336        .18020E-06    .38629E-03
   3  Prefactor     .10010E-03    216.24       -.15043E-04** at limit **
   4  Prefactor     .12727E-03    110.56        .19617E-05** at limit **
   5  Prefactor     .10730E-03    304.99       -.17759E-04** at limit **
   6  norm          25.716        23.720        .96767E-06   -.78139E-03
   7  norm          .10004E-03    95.331        .30657E-05** at limit **
   8  Prefactor     16.759        121.67       -.93488E-05   -.27044E-02
   9  Prefactor     8.8602        32.505       -.53991E-05    .51956E-02
  10  Prefactor     82.447        85.909        .13789E-05    .23362E-01
  11  norm          47.561        50.175        .16216E-05    .16085E-02
  12  Prefactor     .10000E-03    41.125       -.50319E-05** at limit **
  13  Prefactor     164.74        144.85       -.17958E-05    .14621E-01
  14  norm          .10000E-03    105.61        .65088E-05** at limit **
  15  norm          .10000E-03    .53231        .57004E-08** at limit **
  16  Prefactor     6.6822        1.0028         .0000         .0000    
  17  Prefactor     .11754E-03    7.1668       -.35697E-05** at limit **
  18  Prefactor     1.3040        1.1037         .0000         .0000    
  19  Prefactor     4.0013        4.1525        .81704E-06    .10908E-02
  20  Prefactor     .12751E-03    318.63       -.84844E-05** at limit **
  21  Prefactor     .80005E-02    470.79        .62916E-05   -.19950E-02
  22  Normalizat    .10000E-01    .78242        .13373E-05** at limit **
  23  Prefactor     1.0145        .23383        .99329E-06    .98991E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000211478
  Prefactor  = 54.942
  Prefactor  = 0.000100099
  Prefactor  = 0.000127267
  Prefactor  = 0.000107303
  norm       = 25.716
  norm       = 0.000100041
  Prefactor  = 16.7591
  Prefactor  = 8.86018
  Prefactor  = 82.4468
  norm       = 47.5608
  Prefactor  = 0.000100001
  Prefactor  = 164.738
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.68215
  Prefactor  = 0.000117544
  Prefactor  = 1.304
  Prefactor  = 4.00126
  Prefactor  = 0.000127509
  Prefactor  = 0.00800046
  Normalizat = 0.01
  Prefactor  = 1.01453
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   606.5111     FROM HESSE     STATUS=FAILED        77 CALLS      681 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21148E-03    541.27        .11244E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     54.942        61.905        .13536E-02   -1.4224    
   3  Prefactor     .10010E-03    215.36        .10727E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .12727E-03    541.66        .10850E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10730E-03    312.44        .10978E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          25.716        23.097        .19763E-02   -1.4693    
   7  norm          .10004E-03    94.738        .68306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.759        103.57        .36934E-02   -1.4889    
   9  Prefactor     8.8602        34.415        .33378E-02   -1.5113    
  10  Prefactor     82.447        145.37        .10710E-02   -1.3889    
  11  norm          47.561        50.150        .14116E-02   -1.4328    
  12  Prefactor     .10000E-03    40.875        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     164.74        172.27        .81811E-03   -1.3134    
  14  norm          .10000E-03    28.074        .72313E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .52057        .79199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     515.96        509.24         .0000       -1.5191    
  17  Prefactor     .11754E-03    .24392       -.35697E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.3040        1.1037         .0000       -1.5480    
  19  Prefactor     4.0013        .97438        .81704E-06   -1.5308    
  20  Prefactor     .12751E-03    .20144       -.84844E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .80005E-02    .68208E-01    .62916E-05   -1.5726    
  22  Normalizat    .10000E-01    .25505        .13373E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.0145        1.2384        .99329E-06   -.92247    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.058e-09
Minuit parameter uncertainties:
  1  0.495827
  2  61.9775
  3  0.00928537
  4  0.245308
  5  0.0960395
  6  23.1055
  7  0.00393125
  8  83.5408
  9  34.4919
  10  145.999
  11  50.1947
  12  0.000442551
  13  172.801
  14  1.08609e-05
  15  4.50003e-08
  16  1.00283
  17  0.0041373
  18  1.10372
  19  0.974382
  20  0.004708
  21  0.0464274
  22  1.61924e-06
  23  1.27605
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 606.511143294

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.676e+01  8.354e+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.015e+00  1.276e+00  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.000e-02  1.619e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 325.462 -37.455
Photon Flux Upper Limit: 1.46e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682938/likelihoodResults_551404801_551664001_4FGL_J2141.8-3727_daily_bin1204.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) = 606.275157373
delta logL = 0.235985920694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 606.235741883
delta logL = 0.27540141098

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.439       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6880       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99924       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=   606.2357     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      218 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.558        85.990        .20847E-04   -.82799E-04
   2  Index         1.6881        .86357        .12103E-03    .12880E-04
   3  Normalizat    .10000E-01    .66613       -.14308E-06** at limit **
   4  Prefactor     .99915        .24077       -.19956E-05   -.76225E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.5576
  Index      = 1.68813
  Normalizat = 0.01
  Prefactor  = 0.999148
 **********
 **   18 **HESSE 
 **********

 FCN=   606.2357     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.558        85.302        .27959E-03   -1.4271    
   2  Index         1.6881        .85682        .49398E-02   -.72398    
   3  Normalizat    .10000E-01    .81584        .11137E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .99915        .21389        .17038E-03   -.92758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3922e-10
Minuit parameter uncertainties:
  1  85.5046
  2  0.864474
  3  1.02447e-05
  4  0.214071
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682938': 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) = 606.235740162
delta logL = 0.275403131609

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  5.156e+01  8.550e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.688e+00  8.645e-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.991e-01  2.141e-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.000e-02  1.024e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/682938/cmap_HighResolution_551404801_551664001_4FGL_J2141.8-3727_daily_bin1204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-01', job_status='DONE', photon_flux_upper_limit='1.46e-06', time_completed='2021-09-27 00:29:25.251435', job_id='682938', GAL2='1.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632727765.25', return_code2='0', ts='0.04', comment='SUCCESS', return_code='101', GAL='1.01', dlogl='2.75e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1204' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:29:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 682938: <4FGL_J2141.8-3727_daily_bin1204> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1204> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 27 00:15:40 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:19:10 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:19:10 2021
Terminated at Mon Sep 27 00:29:26 2021
Results reported at Mon Sep 27 00:29:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1204 325.462 -37.4545 551404801 551664001 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 :                                   336.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             227.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   615 sec.
    Turnaround time :                            826 sec.

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

