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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin1640
RA = 325.462, Dec = -37.4545
tmin = 664416001, tmax = 664675201
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='284802', job_status='RUN', time_executed='2022-01-24 00:40:49.022861', time_epoch_executed='1643013649.02' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284802

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284802/ft1_4FGL_J2141.8-3727_daily_bin1640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284802/ft2_4FGL_J2141.8-3727_daily_bin1640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284802/ft1_4FGL_J2141.8-3727_daily_bin1640.fits outfile=/scratch/kocevski/284802/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1640.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=664416001.0 tmax=664675201.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.61
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/284802/ft1_filtered_4FGL_J2141.8-3727_daily_bin1640.fits" evtable="EVENTS" scfile=/scratch/kocevski/284802/ft2_4FGL_J2141.8-3727_daily_bin1640.fits sctable="SC_DATA" outfile=/scratch/kocevski/284802/ltcube_664416001_664675201_4FGL_J2141.8-3727_daily_bin1640.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/284802/ft2_4FGL_J2141.8-3727_daily_bin1640.fits
.....................!
real 12.24
user 11.87
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284802/ft1_filtered_4FGL_J2141.8-3727_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/284802/ft2_4FGL_J2141.8-3727_daily_bin1640.fits sctable="SC_DATA" expcube=/scratch/kocevski/284802/ltcube_664416001_664675201_4FGL_J2141.8-3727_daily_bin1640.fits outfile=/scratch/kocevski/284802/expmap_664416001_664675201_4FGL_J2141.8-3727_daily_bin1640.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/284802/ltcube_664416001_664675201_4FGL_J2141.8-3727_daily_bin1640.fits
.....................!
real 193.13
user 187.29
sys 5.51

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/284802/ft1_filtered_4FGL_J2141.8-3727_daily_bin1640.fits scfile=/scratch/kocevski/284802/ft2_4FGL_J2141.8-3727_daily_bin1640.fits outfile=/scratch/kocevski/284802/cmap_664416001_664675201_4FGL_J2141.8-3727_daily_bin1640.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284802/ft1_filtered_4FGL_J2141.8-3727_daily_bin1640.fits scfile=/scratch/kocevski/284802/ft2_4FGL_J2141.8-3727_daily_bin1640.fits outfile=/scratch/kocevski/284802/cmap_HighResolution_664416001_664675201_4FGL_J2141.8-3727_daily_bin1640.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/284802/ft1_filtered_4FGL_J2141.8-3727_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/284802/ft2_4FGL_J2141.8-3727_daily_bin1640.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/284802/Model_4FGL_J2141.8-3727_daily_bin1640.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/284802/ft1_filtered_4FGL_J2141.8-3727_daily_bin1640.fits.....................!
real 47.67
user 46.40
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.722       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.962       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0934       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.736       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1704       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4370       1.0000         .10000E-03   10000.    
    11 'norm      '    6.6122       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.097       1.0000         .10000E-03   10000.    
    14 'norm      '    .18673E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11287E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.313       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2899       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94998       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=   5507.558     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2527 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.718        84.030       -.91426E-06    .14124E-04
   2  Prefactor     29.960        36.792       -.16045E-05    .34922E-04
   3  Prefactor     .10000E-03    10.637       -.51844E-06** at limit **
   4  Prefactor     9.0928        11.981       -.10586E-05    .13037E-03
   5  Prefactor     .10000E-03    23.197       -.11863E-05** at limit **
   6  norm          .10000E-03    3.5555       -.70791E-07** at limit **
   7  norm          16.736        6.4929       -.88238E-07    .20771E-03
   8  Prefactor     5.1701        10.849       -.58299E-06    .54530E-04
   9  Prefactor     .10000E-03    9.9969       -.11131E-06** at limit **
  10  Prefactor     9.4371        8.6071       -.12933E-06    .77530E-04
  11  norm          6.6173        10.379        .94270E-06    .31342E-03
  12  Prefactor     .10000E-03    12.729        .63978E-07** at limit **
  13  Prefactor     44.287        85.582        .23479E-05   -.38536E-04
  14  norm          .10000E-03    9.9596        .82497E-05** at limit **
  15  norm          .10000E-03    .13541        .10287E-06** at limit **
  16  Prefactor     .10114E-03    33.277        .47788E-05** at limit **
  17  Prefactor     .10000E-03    7.2430       -.66350E-06** at limit **
  18  Prefactor     .10000E-03    2.4115       -.35506E-06** at limit **
  19  Prefactor     .10000E-03    16.154       -.92821E-06** at limit **
  20  Prefactor     24.328        36.574       -.11200E-05    .50149E-04
  21  Prefactor     .10000E-03    21.303        .66079E-06** at limit **
  22  Normalizat    1.2900        .24534        .18314E-05    .30875E-04
  23  Prefactor     .95003        .13906        .33796E-05    .97755E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.7183
  Prefactor  = 29.96
  Prefactor  = 0.0001
  Prefactor  = 9.09283
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.736
  Prefactor  = 5.1701
  Prefactor  = 0.0001
  Prefactor  = 9.4371
  norm       = 6.61734
  Prefactor  = 0.0001
  Prefactor  = 44.2872
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.000101143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.3282
  Prefactor  = 0.0001
  Normalizat = 1.28999
  Prefactor  = 0.950026
 **********
 **   18 **HESSE 
 **********

 FCN=   5507.558     FROM HESSE     STATUS=OK           370 CALLS     2897 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.718        84.083        .52355E-04   -1.4174    
   2  Prefactor     29.960        36.902        .73196E-04   -1.4613    
   3  Prefactor     .10000E-03    10.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.0928        11.964        .13291E-03   -1.5105    
   5  Prefactor     .10000E-03    23.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.5578        .13668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.736        6.4911        .97903E-04   -1.4890    
   8  Prefactor     5.1701        10.823        .17680E-03   -1.5253    
   9  Prefactor     .10000E-03    10.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.4371        8.5942        .13046E-03   -1.5093    
  11  norm          6.6173        10.336        .78029E-03   -1.5193    
  12  Prefactor     .10000E-03    12.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     44.287        85.519        .30186E-03   -1.4376    
  14  norm          .10000E-03    10.559        .30219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .14534        .52709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10114E-03    245.29        .78695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.2970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.4387        .11265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.328        36.624        .81239E-04   -1.4721    
  21  Prefactor     .10000E-03    21.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2900        .26735        .29392E-03   -.83866    
  23  Prefactor     .95003        .16041        .21377E-03   -.94414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67683e-09
Minuit parameter uncertainties:
  1  84.254
  2  36.9297
  3  6.60682e-05
  4  11.9671
  5  0.000169362
  6  8.07306e-06
  7  6.49135
  8  10.8268
  9  1.39375e-06
  10  8.59537
  11  10.3391
  12  6.90865e-05
  13  85.7574
  14  0.000398452
  15  2.53199e-06
  16  0.0336319
  17  0.000115205
  18  3.4808e-05
  19  5.73726e-05
  20  36.6579
  21  0.000110969
  22  0.267638
  23  0.160495
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  5.170e+00  1.083e+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:  9.500e-01  1.605e-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.290e+00  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/284802/likelihoodResults_664416001_664675201_4FGL_J2141.8-3727_daily_bin1640.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) = 5507.52314803
delta logL = 0.0351340876123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5507.52163998
delta logL = 0.0366421374229

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6516       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2916       1.0000          .0000       10.000    
     3 'Normalizat'    1.2952       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94642       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=   5507.522     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      306 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6534        12.549        .15559E-03   -.62839E-04
   2  Index         2.2916        1.0732        .14231E-01    .25412E-05
   3  Normalizat    1.2952        .24714        .29342E-03   -.50098E-04
   4  Prefactor     .94650        .15725        .21410E-03   -.12559E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.65344
  Index      = 2.29162
  Normalizat = 1.29516
  Prefactor  = 0.946498
 **********
 **   18 **HESSE 
 **********

 FCN=   5507.522     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6534        12.411        .62236E-05   -1.5192    
   2  Index         2.2916        1.0620        .56923E-03   -.57243    
   3  Normalizat    1.2952        .24733        .11737E-04   -.83711    
   4  Prefactor     .94650        .15730        .42819E-04   -.94535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52949e-11
Minuit parameter uncertainties:
  1  12.4155
  2  1.07366
  3  0.247551
  4  0.157376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284802': 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) = 5507.52163973
delta logL = 0.0366423882051

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  6.653e+00  1.242e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.292e+00  1.074e+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:  9.465e-01  1.574e-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.295e+00  2.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
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/284802/cmap_HighResolution_664416001_664675201_4FGL_J2141.8-3727_daily_bin1640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', job_status='DONE', photon_flux_upper_limit='1.60e-07', time_completed='2022-01-24 00:50:44.287939', job_id='284802', GAL2='0.95', fit_tolerance='1e-08', EG2='1.30', EG='1.29', time_epoch_completed='1643014244.29', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.66e-02', ts2='0.35', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1640' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 24 00:50:44 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 284802: <4FGL_J2141.8-3727_daily_bin1640> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin1640> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Jan 24 00:40:13 2022
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 24 00:40:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 24 00:40:14 2022
Terminated at Mon Jan 24 00:50:45 2022
Results reported at Mon Jan 24 00:50:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin1640 325.462 -37.4545 664416001 664675201 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 :                                   596.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            632 sec.

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

