/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 81 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 = 7665
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2141.8-3727_daily_bin300
RA = 325.462, Dec = -37.4545
tmin = 317088001, tmax = 317347201
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='677198', job_status='RUN', time_executed='2021-09-26 23:58:43.529749', time_epoch_executed='1632725923.53' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/677198

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/677198/ft1_4FGL_J2141.8-3727_daily_bin300.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/677198/ft2_4FGL_J2141.8-3727_daily_bin300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/677198/ft1_4FGL_J2141.8-3727_daily_bin300.fits outfile=/scratch/kocevski/677198/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin300.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=317088001.0 tmax=317347201.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.90
user 3.65
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/677198/ft1_filtered_4FGL_J2141.8-3727_daily_bin300.fits" evtable="EVENTS" scfile=/scratch/kocevski/677198/ft2_4FGL_J2141.8-3727_daily_bin300.fits sctable="SC_DATA" outfile=/scratch/kocevski/677198/ltcube_317088001_317347201_4FGL_J2141.8-3727_daily_bin300.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/677198/ft2_4FGL_J2141.8-3727_daily_bin300.fits
.....................!
real 15.02
user 14.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/677198/ft1_filtered_4FGL_J2141.8-3727_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/677198/ft2_4FGL_J2141.8-3727_daily_bin300.fits sctable="SC_DATA" expcube=/scratch/kocevski/677198/ltcube_317088001_317347201_4FGL_J2141.8-3727_daily_bin300.fits outfile=/scratch/kocevski/677198/expmap_317088001_317347201_4FGL_J2141.8-3727_daily_bin300.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/677198/ltcube_317088001_317347201_4FGL_J2141.8-3727_daily_bin300.fits
.....................!
real 191.29
user 185.89
sys 4.99

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/677198/ft1_filtered_4FGL_J2141.8-3727_daily_bin300.fits scfile=/scratch/kocevski/677198/ft2_4FGL_J2141.8-3727_daily_bin300.fits outfile=/scratch/kocevski/677198/cmap_317088001_317347201_4FGL_J2141.8-3727_daily_bin300.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/677198/ft1_filtered_4FGL_J2141.8-3727_daily_bin300.fits scfile=/scratch/kocevski/677198/ft2_4FGL_J2141.8-3727_daily_bin300.fits outfile=/scratch/kocevski/677198/cmap_HighResolution_317088001_317347201_4FGL_J2141.8-3727_daily_bin300.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8304       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.628       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.7404       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3820       1.0000         .10000E-03   10000.    
    11 'norm      '    17.533       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.703       1.0000         .10000E-03   10000.    
    15 'norm      '    .97525       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.629       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3934       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11156E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13314E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0543       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0115       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=   5423.591     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2527 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.015       -.14139E-04** at limit **
   2  Prefactor     .10000E-03    16.771        .87889E-06** at limit **
   3  Prefactor     .10000E-03    54.911        .77950E-05** at limit **
   4  Prefactor     7.8342        11.587        .16639E-05    .36622E-04
   5  Prefactor     13.632        32.209       -.25665E-06    .76123E-05
   6  norm          .10000E-03    7.1974        .11284E-06** at limit **
   7  norm          9.7408        6.1397        .23752E-05    .41341E-03
   8  Prefactor     .10000E-03    2.6840       -.36094E-07** at limit **
   9  Prefactor     .10000E-03    17.945       -.63747E-06** at limit **
  10  Prefactor     2.3826        3.8037        .88121E-06   -.19389E-02
  11  norm          17.534        10.461       -.12772E-07   -.32466E-04
  12  Prefactor     .10000E-03    8.6773       -.35287E-06** at limit **
  13  Prefactor     .10000E-03    40.614        .89516E-06** at limit **
  14  norm          15.706        7.2354       -.52478E-06   -.18371E-03
  15  norm          .97529        .43241        .50923E-07    .51162E-04
  16  Prefactor     .10000E-03    12.892       -.19481E-06** at limit **
  17  Prefactor     27.630        12.880       -.17947E-06   -.95420E-04
  18  Prefactor     1.3852        8.5081        .57386E-05   -.10406E-03
  19  Prefactor     .10001E-03    252.78       -.11932E-04** at limit **
  20  Prefactor     .10000E-03    9.2645        .14838E-06** at limit **
  21  Prefactor     .10000E-03    99.855        .10262E-04** at limit **
  22  Normalizat    1.0539        .24550       -.19870E-05   -.58602E-04
  23  Prefactor     1.0117        .14524        .13747E-06   -.16447E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.83416
  Prefactor  = 13.6317
  norm       = 0.0001
  norm       = 9.7408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.38265
  norm       = 17.5335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.7059
  norm       = 0.975288
  Prefactor  = 0.0001
  Prefactor  = 27.6295
  Prefactor  = 1.38523
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05388
  Prefactor  = 1.01174
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.591     FROM HESSE     STATUS=OK           366 CALLS     2893 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    55.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.8342        11.606        .14330E-03   -1.5148    
   5  Prefactor     13.632        32.168        .10850E-03   -1.4969    
   6  norm          .10000E-03    7.2258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.7408        6.1792        .12840E-03   -1.5084    
   8  Prefactor     .10000E-03    2.6867        .11782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3826        7.9513        .13270E-02   -1.5399    
  11  norm          17.534        10.461        .95652E-04   -1.4870    
  12  Prefactor     .10000E-03    8.6804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    40.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.706        7.2566        .10107E-03   -1.4915    
  15  norm          .97529        .43342        .30282E-04   -1.5510    
  16  Prefactor     .10000E-03    12.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.630        12.985        .76217E-04   -1.4656    
  18  Prefactor     1.3852        8.7848        .36798E-03   -1.5473    
  19  Prefactor     .10001E-03    256.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.2691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    100.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0539        .28614        .31640E-03   -.91247    
  23  Prefactor     1.0117        .16873        .20903E-03   -.92339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02099e-08
Minuit parameter uncertainties:
  1  0.000755275
  2  3.20512e-05
  3  0.000432787
  4  11.6093
  5  32.2093
  6  7.68658e-06
  7  6.17963
  8  2.7052e-07
  9  6.72205e-06
  10  7.95479
  11  10.4618
  12  3.28778e-06
  13  9.57116e-05
  14  7.25699
  15  0.433423
  16  1.07361e-05
  17  12.9867
  18  6.97806
  19  0.00331343
  20  3.76464e-06
  21  0.000347318
  22  0.286565
  23  0.168819
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  2.705e-07  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.012e+00  1.688e-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.054e+00  2.866e-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: 7.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/677198/likelihoodResults_317088001_317347201_4FGL_J2141.8-3727_daily_bin300.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) = 5423.59323065
delta logL = -0.00174899665035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5423.59148158
delta logL = 7.83320501796e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6112       1.0000          .0000       10.000    
     3 'Normalizat'    1.0539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0118       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=   5423.591     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      250 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.856        .11847E-01** at limit **
   2  Index         2.1497        6.0417        .50000        .87061E-07
   3  Normalizat    1.0539        .19632E-01    .31641E-03   -.57345E-04
   4  Prefactor     1.0117        .12815E-01    .20903E-03   -.79634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14967
  Normalizat = 1.05388
  Prefactor  = 1.01174
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.591     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    265.42        .12541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1497        5.6816        .50000       -.60659    
   3  Normalizat    1.0539        .62968E-01    .12656E-04   -.91247    
   4  Prefactor     1.0117        .41105E-01    .41806E-04   -.92339    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.83671e-10
Minuit parameter uncertainties:
  1  0.00027004
  2  1059.89
  3  0.0629722
  4  0.0411065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/677198': 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) = 5423.59147947
delta logL = 2.18484092329e-06

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  2.700e-04  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.150e+00  1.060e+03  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.012e+00  4.111e-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:  1.054e+00  6.297e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/677198/cmap_HighResolution_317088001_317347201_4FGL_J2141.8-3727_daily_bin300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2021-09-27 00:08:41.640875', job_id='677198', GAL2='1.01', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632726521.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='300' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:08:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 677198: <4FGL_J2141.8-3727_daily_bin300> in cluster <slac> Done

Job <4FGL_J2141.8-3727_daily_bin300> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 23:55:13 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 23:57:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 23:57:13 2021
Terminated at Mon Sep 27 00:08:42 2021
Results reported at Mon Sep 27 00:08:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2141.8-3727_daily_bin300 325.462 -37.4545 317088001 317347201 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.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             328.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            809 sec.

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

