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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1032
RA = 325.462, Dec = -37.4545
tmin = 506822401, tmax = 507081601
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='682681', job_status='RUN', time_executed='2021-09-27 00:17:30.793141', time_epoch_executed='1632727050.79' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1032'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682681

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682681/ft1_4FGL_J2141.8-3727_daily_bin1032.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682681/ft2_4FGL_J2141.8-3727_daily_bin1032.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682681/ft1_4FGL_J2141.8-3727_daily_bin1032.fits outfile=/scratch/kocevski/682681/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1032.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=506822401.0 tmax=507081601.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.62
user 3.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/682681/ft2_4FGL_J2141.8-3727_daily_bin1032.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/682681/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1032.fits evtable="EVENTS" outfile="/scratch/kocevski/682681/ft1_filtered_4FGL_J2141.8-3727_daily_bin1032.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/682681/ft1_filtered_4FGL_J2141.8-3727_daily_bin1032.fits" evtable="EVENTS" scfile=/scratch/kocevski/682681/ft2_4FGL_J2141.8-3727_daily_bin1032.fits sctable="SC_DATA" outfile=/scratch/kocevski/682681/ltcube_506822401_507081601_4FGL_J2141.8-3727_daily_bin1032.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/682681/ft2_4FGL_J2141.8-3727_daily_bin1032.fits
.....................!
real 15.13
user 14.14
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682681/ft1_filtered_4FGL_J2141.8-3727_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/682681/ft2_4FGL_J2141.8-3727_daily_bin1032.fits sctable="SC_DATA" expcube=/scratch/kocevski/682681/ltcube_506822401_507081601_4FGL_J2141.8-3727_daily_bin1032.fits outfile=/scratch/kocevski/682681/expmap_506822401_507081601_4FGL_J2141.8-3727_daily_bin1032.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/682681/ltcube_506822401_507081601_4FGL_J2141.8-3727_daily_bin1032.fits
.....................!
real 192.15
user 185.67
sys 4.88

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/682681/ft1_filtered_4FGL_J2141.8-3727_daily_bin1032.fits scfile=/scratch/kocevski/682681/ft2_4FGL_J2141.8-3727_daily_bin1032.fits outfile=/scratch/kocevski/682681/cmap_506822401_507081601_4FGL_J2141.8-3727_daily_bin1032.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=325.462 yref=-37.4545 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682681/ft1_filtered_4FGL_J2141.8-3727_daily_bin1032.fits scfile=/scratch/kocevski/682681/ft2_4FGL_J2141.8-3727_daily_bin1032.fits outfile=/scratch/kocevski/682681/cmap_HighResolution_506822401_507081601_4FGL_J2141.8-3727_daily_bin1032.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=325.462 yref=-37.4545 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    25.187       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7321       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3446       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      '    12.331       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.8531       1.0000         .10000E-03   10000.    
    11 'norm      '    .10101E-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      '    2.6772       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3053       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4013       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.013       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95309       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88785       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=   8164.068     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2129 TOTAL
                     EDM=   .95E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.833        .80668E-06** at limit **
   2  Prefactor     25.182        20.076       -.35497E-05   -.16029E-05
   3  Prefactor     8.7326        24.325        .32528E-06   -.12247E-04
   4  Prefactor     2.3448        2.5067        .60490E-07   -.51572E-03
   5  Prefactor     .10000E-03    30.236       -.48189E-06** at limit **
   6  norm          .10000E-03    1.9812        .19459E-08** at limit **
   7  norm          12.332        4.9836       -.32777E-07   -.49210E-04
   8  Prefactor     .10000E-03    5.1745        .22224E-05** at limit **
   9  Prefactor     .10000E-03    4.1339       -.71740E-07** at limit **
  10  Prefactor     8.8523        6.7254       -.74266E-07   -.96899E-04
  11  norm          .10000E-03    8.5091        .29107E-06** at limit **
  12  Prefactor     .10000E-03    3.6448        .20377E-07** at limit **
  13  Prefactor     .10000E-03    11.596        .88801E-06** at limit **
  14  norm          2.6762        4.3880       -.12626E-06   -.48190E-04
  15  norm          3.3053        .54845       -.14657E-08   -.51898E-04
  16  Prefactor     .10000E-03    13.444       -.32232E-05** at limit **
  17  Prefactor     3.3972        6.0715       -.68964E-07   -.24668E-03
  18  Prefactor     .10000E-03    1.8966       -.30921E-08** at limit **
  19  Prefactor     .10000E-03    16.085        .17415E-05** at limit **
  20  Prefactor     19.015        17.298        .45298E-06    .72901E-05
  21  Prefactor     .10000E-03    5.3028       -.23365E-05** at limit **
  22  Normalizat    .95322        .15950        .21775E-06   -.25808E-04
  23  Prefactor     .88779        .10446        .25522E-06   -.63597E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.1817
  Prefactor  = 8.73257
  Prefactor  = 2.34476
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.3321
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.85232
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.67623
  norm       = 3.30532
  Prefactor  = 0.0001
  Prefactor  = 3.39719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0145
  Prefactor  = 0.0001
  Normalizat = 0.953219
  Prefactor  = 0.887787
 **********
 **   18 **HESSE 
 **********

 FCN=   8164.068     FROM HESSE     STATUS=OK           368 CALLS     2497 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.182        20.109        .79819E-04   -1.4704    
   3  Prefactor     8.7326        24.539        .67823E-03   -1.5117    
   4  Prefactor     2.3448        4.9094        .13387E-02   -1.5402    
   5  Prefactor     .10000E-03    30.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.9835        .12420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.332        4.9825        .57038E-03   -1.5005    
   8  Prefactor     .10000E-03    5.2307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.1385        .17942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.8523        6.7371        .67355E-03   -1.5113    
  11  norm          .10000E-03    8.7487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.6474        .16847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6762        4.4052        .21495E-03   -1.5381    
  15  norm          3.3053        .55042        .24694E-04   -1.5344    
  16  Prefactor     .10000E-03    13.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3972        7.1094        .10968E-02   -1.5339    
  18  Prefactor     .10000E-03    1.9541        .24293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.015        17.311        .91854E-04   -1.4836    
  21  Prefactor     .10000E-03    5.3160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .95322        .18603        .27953E-03   -.94615    
  23  Prefactor     .88779        .11906        .19407E-03   -.96569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43977e-10
Minuit parameter uncertainties:
  1  6.97199e-07
  2  20.1148
  3  24.5671
  4  4.91027
  5  1.69101e-05
  6  9.44571e-08
  7  4.98269
  8  1.39215e-05
  9  1.9254e-07
  10  6.73763
  11  1.14669e-05
  12  1.35375e-07
  13  2.28897e-07
  14  4.40575
  15  0.550425
  16  1.56967e-06
  17  7.11121
  18  1.57269e-06
  19  2.46203e-06
  20  17.3158
  21  1.38185e-06
  22  0.18616
  23  0.119094
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.392e-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:  8.878e-01  1.191e-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:  9.532e-01  1.862e-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: 6.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682681/likelihoodResults_506822401_507081601_4FGL_J2141.8-3727_daily_bin1032.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) = 8164.06937016
delta logL = -0.000911386278858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8164.06845864
delta logL = 1.28733518068e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5791       1.0000          .0000       10.000    
     3 'Normalizat'    .95315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8164.068     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      264 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7636        .98513E-01** at limit **
   2  Index         1.7663        8.7321        .50000       -.28456E-06
   3  Normalizat    .95322        .37508E-02    .27953E-03    .12516E-02
   4  Prefactor     .88779        .25360E-02    .19407E-03    .18230E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.76634
  Normalizat = 0.953221
  Prefactor  = 0.887789
 **********
 **   18 **HESSE 
 **********

 FCN=   8164.068     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      295 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    471.00        .32349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7663        9.0904        .50000       -.70329    
   3  Normalizat    .95322        .19021E-01    .55907E-04   -.94614    
   4  Prefactor     .88779        .12861E-01    .38815E-04   -.96569    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.98207e-09
Minuit parameter uncertainties:
  1  0.000984547
  2  303.382
  3  0.0190207
  4  0.012861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682681': 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) = 8164.06845132
delta logL = 7.45279612602e-06

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  9.845e-04  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.766e+00  3.034e+02  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:  8.878e-01  1.286e-02  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:  9.532e-01  1.902e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 325.462 -37.455

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/682681/cmap_HighResolution_506822401_507081601_4FGL_J2141.8-3727_daily_bin1032.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.44e-03', job_status='DONE', photon_flux_upper_limit='6.94e-08', time_completed='2021-09-27 00:29:34.099601', job_id='682681', GAL2='0.89', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1632727774.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='7.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1032' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:29:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 682681: <4FGL_J2141.8-3727_daily_bin1032> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1032 325.462 -37.4545 506822401 507081601 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 :                                   714.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            852 sec.

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

