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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1473
RA = 325.462, Dec = -37.4545
tmin = 621129601, tmax = 621388801
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='685481', job_status='RUN', time_executed='2021-09-27 00:27:09.262377', time_epoch_executed='1632727629.26' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/685481

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/685481/ft1_4FGL_J2141.8-3727_daily_bin1473.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/685481/ft2_4FGL_J2141.8-3727_daily_bin1473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/685481/ft1_4FGL_J2141.8-3727_daily_bin1473.fits outfile=/scratch/kocevski/685481/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1473.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=621129601.0 tmax=621388801.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.18
user 2.91
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/685481/ft1_filtered_4FGL_J2141.8-3727_daily_bin1473.fits" evtable="EVENTS" scfile=/scratch/kocevski/685481/ft2_4FGL_J2141.8-3727_daily_bin1473.fits sctable="SC_DATA" outfile=/scratch/kocevski/685481/ltcube_621129601_621388801_4FGL_J2141.8-3727_daily_bin1473.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/685481/ft2_4FGL_J2141.8-3727_daily_bin1473.fits
.....................!
real 14.98
user 14.49
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/685481/ft1_filtered_4FGL_J2141.8-3727_daily_bin1473.fits evtable="EVENTS" scfile=/scratch/kocevski/685481/ft2_4FGL_J2141.8-3727_daily_bin1473.fits sctable="SC_DATA" expcube=/scratch/kocevski/685481/ltcube_621129601_621388801_4FGL_J2141.8-3727_daily_bin1473.fits outfile=/scratch/kocevski/685481/expmap_621129601_621388801_4FGL_J2141.8-3727_daily_bin1473.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/685481/ltcube_621129601_621388801_4FGL_J2141.8-3727_daily_bin1473.fits
.....................!
real 193.95
user 185.69
sys 5.62

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/685481/ft1_filtered_4FGL_J2141.8-3727_daily_bin1473.fits scfile=/scratch/kocevski/685481/ft2_4FGL_J2141.8-3727_daily_bin1473.fits outfile=/scratch/kocevski/685481/cmap_621129601_621388801_4FGL_J2141.8-3727_daily_bin1473.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/685481/ft1_filtered_4FGL_J2141.8-3727_daily_bin1473.fits scfile=/scratch/kocevski/685481/ft2_4FGL_J2141.8-3727_daily_bin1473.fits outfile=/scratch/kocevski/685481/cmap_HighResolution_621129601_621388801_4FGL_J2141.8-3727_daily_bin1473.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/685481/ft1_filtered_4FGL_J2141.8-3727_daily_bin1473.fits evtable="EVENTS" scfile=/scratch/kocevski/685481/ft2_4FGL_J2141.8-3727_daily_bin1473.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/685481/Model_4FGL_J2141.8-3727_daily_bin1473.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/685481/ft1_filtered_4FGL_J2141.8-3727_daily_bin1473.fits.....................!
real 21.43
user 18.73
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    158.09       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7905       1.0000         .10000E-03   10000.    
     3 'Prefactor '    162.12       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .31048E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19441E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .58139E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .48245E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .72035E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    151.43       1.0000         .10000E-03   10000.    
    11 'norm      '    .11995E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    261.27       1.0000         .10000E-03   10000.    
    13 'Prefactor '    45.397       1.0000         .10000E-03   10000.    
    14 'norm      '    33.771       1.0000         .10000E-03   10000.    
    15 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .42525E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .92377E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27739E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3024       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.7036       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6307       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2656       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=   982.9485     FROM MIGRAD    STATUS=CONVERGED    858 CALLS     2594 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     174.93        186.22       -.79944E-06    .86244E-05
   2  Prefactor     5.0626        139.25        .83157E-06    .22218E-05
   3  Prefactor     157.21        82.663       -.50951E-07    .24423E-04
   4  Prefactor     .10000E-03    53.170        .55782E-06** at limit **
   5  Prefactor     .10000E-03    133.60        .97774E-06** at limit **
   6  norm          .10000E-03    26.041       -.10969E-06** at limit **
   7  norm          .10000E-03    76.774       -.11590E-05** at limit **
   8  Prefactor     .10000E-03    60.830       -.13898E-05** at limit **
   9  Prefactor     .10000E-03    93.639       -.11891E-05** at limit **
  10  Prefactor     144.99        92.846        .23187E-05    .24372E-03
  11  norm          .10000E-03    32.596       -.18705E-06** at limit **
  12  Prefactor     271.52        293.26        .30181E-05    .65045E-05
  13  Prefactor     .10000E-03    1931.9       -.27042E-04** at limit **
  14  norm          27.531        53.057       -.72333E-06    .41346E-04
  15  norm          .10000E-03    2.6926       -.39896E-07** at limit **
  16  Prefactor     .10000E-03    137.99        .26266E-06** at limit **
  17  Prefactor     .10000E-03    1306.5       -.11851E-05** at limit **
  18  Prefactor     .10000E-03    587.91        .31424E-05** at limit **
  19  Prefactor     .10007E-03    6251.8        .28808E-01** at limit **
  20  Prefactor     10000.        9336.2       -.29092E-04** at limit **
  21  Prefactor    10000.0        8866.1        .16590E-03** at limit **
  22  Normalizat    .10000E-01    .58765       -.97694E-06** at limit **
  23  Prefactor     1.2565        .25404        .24861E-06    .13516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 174.925
  Prefactor  = 5.0626
  Prefactor  = 157.205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 144.989
  norm       = 0.0001
  Prefactor  = 271.52
  Prefactor  = 0.0001
  norm       = 27.5306
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100066
  Prefactor  = 10000
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 1.25646
 **********
 **   18 **HESSE 
 **********

 FCN=   982.9485     FROM HESSE     STATUS=OK           350 CALLS     2944 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     174.93        185.59        .32068E-04   -1.3055    
   2  Prefactor     5.0626        141.05        .18382E-03   -1.6158    
   3  Prefactor     157.21        82.801        .31673E-04   -1.3194    
   4  Prefactor     .10000E-03    53.870        .21375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    133.88        .18240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    26.046        .15635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    77.632        .18619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    60.864        .18523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    93.641        .18653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     144.99        91.798        .32754E-04   -1.3294    
  11  norm          .10000E-03    32.599        .17492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     271.52        293.34        .12538E-03   -1.2397    
  13  Prefactor     .10000E-03    1931.7        .29753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          27.531        52.933        .68956E-04   -1.4658    
  15  norm          .10000E-03    2.6928        .50230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    137.99        .18467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1306.5        .18221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    587.92        .18322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10007E-03    6252.4        .97111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10000.        9336.4        .64321E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        8865.9        .77919E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .84941        .11558E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.2565        .21939        .17523E-03   -.84611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56091e-10
Minuit parameter uncertainties:
  1  186.217
  2  53.5843
  3  82.8625
  4  0.000166521
  5  8.22147e-05
  6  2.97787e-06
  7  0.000137914
  8  3.61567e-05
  9  6.421e-06
  10  91.8884
  11  1.05819e-05
  12  294.958
  13  0.000226756
  14  53.0231
  15  1.06537e-07
  16  2.5699e-05
  17  0.000245783
  18  0.000227173
  19  0.134445
  20  0.000192616
  21  0.00409433
  22  2.53475e-05
  23  0.219551
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.256e+00  2.196e-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  2.535e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/685481/likelihoodResults_621129601_621388801_4FGL_J2141.8-3727_daily_bin1473.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) = 982.948557465
delta logL = -8.18964265363e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 982.948475709
delta logL = -1.40223960443e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5677       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2565       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=   982.9485     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      240 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    196.64        .90712E-02** at limit **
   2  Index         2.5847        5.5656        .50000       -.26441E-05
   3  Normalizat    .10000E-01    .45968        .32094    ** at limit **
   4  Prefactor     1.2565        .23161        .33414E-01    .19459E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100037
  Index      = 2.5847
  Normalizat = 0.01
  Prefactor  = 1.25646
 **********
 **   18 **HESSE 
 **********

 FCN=   982.9485     FROM HESSE     STATUS=OK            31 CALLS      271 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    59.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5847        6.2893        .50000       -.50415    
   3  Normalizat    .10000E-01    .63385        .11561E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2565        .18934        .17523E-03   -.84611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15676e-09
Minuit parameter uncertainties:
  1  0.00297439
  2  4.45307
  3  3.52661e-05
  4  0.189444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/685481': 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) = 982.948475592
delta logL = -2.31136709772e-08

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  2.974e-03  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.585e+00  4.453e+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.256e+00  1.894e-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  3.527e-05  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/685481/cmap_HighResolution_621129601_621388801_4FGL_J2141.8-3727_daily_bin1473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.08e-02', job_status='DONE', photon_flux_upper_limit='9.04e-07', time_completed='2021-09-27 00:34:41.178646', job_id='685481', GAL2='1.26', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632728081.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='-2.31e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1473' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:34:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 685481: <4FGL_J2141.8-3727_daily_bin1473> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1473> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 00:25:17 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:25:23 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:25:23 2021
Terminated at Mon Sep 27 00:34:41 2021
Results reported at Mon Sep 27 00:34:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1473 325.462 -37.4545 621129601 621388801 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 :                                   369.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            564 sec.

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

