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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin933
RA = 325.462, Dec = -37.4545
tmin = 481161601, tmax = 481420801
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='682538', job_status='RUN', time_executed='2021-09-27 00:18:31.757791', time_epoch_executed='1632727111.76' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='933'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682538

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682538/ft1_4FGL_J2141.8-3727_daily_bin933.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682538/ft2_4FGL_J2141.8-3727_daily_bin933.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682538/ft1_4FGL_J2141.8-3727_daily_bin933.fits outfile=/scratch/kocevski/682538/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin933.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=481161601.0 tmax=481420801.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 4.00
user 3.40
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682538/ft1_filtered_4FGL_J2141.8-3727_daily_bin933.fits" evtable="EVENTS" scfile=/scratch/kocevski/682538/ft2_4FGL_J2141.8-3727_daily_bin933.fits sctable="SC_DATA" outfile=/scratch/kocevski/682538/ltcube_481161601_481420801_4FGL_J2141.8-3727_daily_bin933.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/682538/ft2_4FGL_J2141.8-3727_daily_bin933.fits
.....................!
real 15.59
user 14.98
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682538/ft1_filtered_4FGL_J2141.8-3727_daily_bin933.fits evtable="EVENTS" scfile=/scratch/kocevski/682538/ft2_4FGL_J2141.8-3727_daily_bin933.fits sctable="SC_DATA" expcube=/scratch/kocevski/682538/ltcube_481161601_481420801_4FGL_J2141.8-3727_daily_bin933.fits outfile=/scratch/kocevski/682538/expmap_481161601_481420801_4FGL_J2141.8-3727_daily_bin933.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/682538/ltcube_481161601_481420801_4FGL_J2141.8-3727_daily_bin933.fits
.....................!
real 191.79
user 186.26
sys 4.75

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/682538/ft1_filtered_4FGL_J2141.8-3727_daily_bin933.fits scfile=/scratch/kocevski/682538/ft2_4FGL_J2141.8-3727_daily_bin933.fits outfile=/scratch/kocevski/682538/cmap_481161601_481420801_4FGL_J2141.8-3727_daily_bin933.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.98
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682538/ft1_filtered_4FGL_J2141.8-3727_daily_bin933.fits scfile=/scratch/kocevski/682538/ft2_4FGL_J2141.8-3727_daily_bin933.fits outfile=/scratch/kocevski/682538/cmap_HighResolution_481161601_481420801_4FGL_J2141.8-3727_daily_bin933.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 1.64
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/682538/ft1_filtered_4FGL_J2141.8-3727_daily_bin933.fits evtable="EVENTS" scfile=/scratch/kocevski/682538/ft2_4FGL_J2141.8-3727_daily_bin933.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682538/Model_4FGL_J2141.8-3727_daily_bin933.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/682538/ft1_filtered_4FGL_J2141.8-3727_daily_bin933.fits.....................!
real 57.26
user 55.76
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11049E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.064       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .17960E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    21.145       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2183       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0584       1.0000         .10000E-03   10000.    
    16 'Prefactor '    134.05       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9664       1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.706       1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.455       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10579E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1954       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92621       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=   6974.897     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     2179 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10102E-03    143.07       -.33127E-05** at limit **
   2  Prefactor     22.063        1.2397        .11229E-06   -.23949E-03
   3  Prefactor     .10000E-03    13.604       -.30164E-06** at limit **
   4  Prefactor     .10000E-03    5.8166        .49840E-07** at limit **
   5  Prefactor     .10000E-03    9.0015       -.61313E-07** at limit **
   6  norm          .11156E-03    44.598        .23967E-05** at limit **
   7  norm          21.145        1.6653        .37796E-07    .28882E-03
   8  Prefactor     3.2183        1.0443       -.42551E-07    .16337E-02
   9  Prefactor     .10000E-03    5.2238        .11993E-06** at limit **
  10  Prefactor     .10000E-03    10.523        .25162E-07** at limit **
  11  norm          .10000E-03    6.2932        .77428E-07** at limit **
  12  Prefactor     .10000E-03    30.520        .53726E-07** at limit **
  13  Prefactor     .11405E-03    39.661       -.22325E-05** at limit **
  14  norm          .10000E-03    6.8407        .81209E-07** at limit **
  15  norm          2.0583        .52279       -.10448E-07   -.19179E-03
  16  Prefactor     134.05        1.1984       -.37085E-07    .20257E-02
  17  Prefactor     .10000E-03    4.6360        .63096E-07** at limit **
  18  Prefactor     6.9729        6.1695       -.61144E-06   -.80923E-03
  19  Prefactor     30.393        70.712        .90621E-05    .10019E-02
  20  Prefactor     38.461        1.3803       -.95443E-07    .70075E-03
  21  Prefactor     .10000E-03    22.225        .46634E-06** at limit **
  22  Normalizat    1.1954        .22419       -.15071E-06    .56292E-04
  23  Prefactor     .92624        .13924        .13845E-06    .72186E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101016
  Prefactor  = 22.0631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000111557
  norm       = 21.1446
  Prefactor  = 3.21832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000114046
  norm       = 0.0001
  norm       = 2.0583
  Prefactor  = 134.053
  Prefactor  = 0.0001
  Prefactor  = 6.97295
  Prefactor  = 30.393
  Prefactor  = 38.4609
  Prefactor  = 0.0001
  Normalizat = 1.19542
  Prefactor  = 0.926239
 **********
 **   18 **HESSE 
 **********

 FCN=   6974.897     FROM HESSE     STATUS=OK           418 CALLS     2597 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10102E-03    144.96        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.063        23.854        .21318E-02   -1.4768    
   3  Prefactor     .10000E-03    13.583        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.7207        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.9968        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .11156E-03    3.9645        .65028E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          21.145        6.3222        .21776E-02   -1.4788    
   8  Prefactor     3.2183        8.2799        .56455E-02   -1.5349    
   9  Prefactor     .10000E-03    5.2254        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.309        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.2273        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.285        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11405E-03    79.244        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.6250        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0583        .52413        .66349E-02   -1.5421    
  16  Prefactor     134.05        58.051        .86956E-03   -1.3387    
  17  Prefactor     .10000E-03    4.6074        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.9729        6.3548        .38000E-02   -1.5180    
  19  Prefactor     30.393        72.704        .18077E-02   -1.4605    
  20  Prefactor     38.461        31.721        .16158E-02   -1.4467    
  21  Prefactor     .10000E-03    22.211        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1954        .20395        .67656E-01   -.86744    
  23  Prefactor     .92624        .12215        .45338E-01   -.95230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31317e-07
Minuit parameter uncertainties:
  1  0.0243288
  2  23.8643
  3  2.64804e-05
  4  1.66929e-06
  5  6.73907e-06
  6  0.0135385
  7  6.32237
  8  8.28289
  9  5.64094e-06
  10  1.65108e-05
  11  2.82779e-07
  12  0.000442235
  13  0.0668138
  14  6.5885e-06
  15  0.524135
  16  58.0756
  17  2.96468e-06
  18  6.35544
  19  72.9174
  20  31.7348
  21  7.64625e-05
  22  0.20409
  23  0.122182
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  3.218e+00  8.283e+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

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  9.262e-01  1.222e-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.195e+00  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/682538/likelihoodResults_481161601_481420801_4FGL_J2141.8-3727_daily_bin933.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) = 6974.86255457
delta logL = 0.0340409097353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6974.83612138
delta logL = 0.0604740986837

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43136       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5936       1.0000          .0000       10.000    
     3 'Normalizat'    1.1754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93621       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=   6974.836     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      250 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42394        16.734        .10987E-01    .10285E-02
   2  Index         4.6093        7.0958        .22379        .46244E-04
   3  Normalizat    1.1758        .36600E-01    .68153E-01   -.69930E-04
   4  Prefactor     .93604        .23152E-01    .45465E-01   -.15053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.42394
  Index      = 4.60928
  Normalizat = 1.17584
  Prefactor  = 0.936045
 **********
 **   18 **HESSE 
 **********

 FCN=   6974.836     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      281 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42394        77.724        .10163E-03   -1.5578    
   2  Index         4.6093        6.5001        .13424E-01   -.78223E-01
   3  Normalizat    1.1758        .16836        .30153E-03   -.87353    
   4  Prefactor     .93604        .10529        .21000E-03   -.94893    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46467e-09
Minuit parameter uncertainties:
  1  11.4943
  2  18.0069
  3  0.168433
  4  0.105316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682538': 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) = 6974.83611105
delta logL = 0.0604844249738

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  4.239e-01  1.149e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  4.609e+00  1.801e+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.360e-01  1.053e-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.176e+00  1.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/682538/cmap_HighResolution_481161601_481420801_4FGL_J2141.8-3727_daily_bin933.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-27 00:29:44.970333', job_id='682538', GAL2='0.94', fit_tolerance='1e-08', EG2='1.18', EG='1.20', time_epoch_completed='1632727784.97', return_code2='102', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='6.05e-02', ts2='0.31', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='933' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:29:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 682538: <4FGL_J2141.8-3727_daily_bin933> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin933 325.462 -37.4545 481161601 481420801 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 :                                   665.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             271.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            873 sec.

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

