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


Performing analysis on: 4FGL_J2134.5-2130_daily_bin1450
RA = 323.641, Dec = -21.5029
tmin = 615168001, tmax = 615427201
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='601092', job_status='RUN', time_executed='2021-09-26 19:41:39.003108', time_epoch_executed='1632710499.0' WHERE source_name='4FGL J2134.5-2130' and cadence='daily' and bin_id='1450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601092

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601092/ft1_4FGL_J2134.5-2130_daily_bin1450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601092/ft2_4FGL_J2134.5-2130_daily_bin1450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601092/ft1_4FGL_J2134.5-2130_daily_bin1450.fits outfile=/scratch/kocevski/601092/ft1_filteredMKT_4FGL_J2134.5-2130_daily_bin1450.fits ra=323.641 dec=-21.5029 rad=12.0 tmin=615168001.0 tmax=615427201.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.73
user 3.43
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/601092/ft2_4FGL_J2134.5-2130_daily_bin1450.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601092/ft2_4FGL_J2134.5-2130_daily_bin1450.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/601092/ft1_filteredMKT_4FGL_J2134.5-2130_daily_bin1450.fits evtable="EVENTS" outfile="/scratch/kocevski/601092/ft1_filtered_4FGL_J2134.5-2130_daily_bin1450.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.52
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601092/ft1_filtered_4FGL_J2134.5-2130_daily_bin1450.fits" evtable="EVENTS" scfile=/scratch/kocevski/601092/ft2_4FGL_J2134.5-2130_daily_bin1450.fits sctable="SC_DATA" outfile=/scratch/kocevski/601092/ltcube_615168001_615427201_4FGL_J2134.5-2130_daily_bin1450.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/601092/ft2_4FGL_J2134.5-2130_daily_bin1450.fits
.....................!
real 19.77
user 19.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601092/ft1_filtered_4FGL_J2134.5-2130_daily_bin1450.fits evtable="EVENTS" scfile=/scratch/kocevski/601092/ft2_4FGL_J2134.5-2130_daily_bin1450.fits sctable="SC_DATA" expcube=/scratch/kocevski/601092/ltcube_615168001_615427201_4FGL_J2134.5-2130_daily_bin1450.fits outfile=/scratch/kocevski/601092/expmap_615168001_615427201_4FGL_J2134.5-2130_daily_bin1450.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/601092/ltcube_615168001_615427201_4FGL_J2134.5-2130_daily_bin1450.fits
.....................!
real 198.58
user 193.51
sys 4.65

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2134.5-2130 @ 323.641 -21.5029

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/601092/ft1_filtered_4FGL_J2134.5-2130_daily_bin1450.fits scfile=/scratch/kocevski/601092/ft2_4FGL_J2134.5-2130_daily_bin1450.fits outfile=/scratch/kocevski/601092/cmap_615168001_615427201_4FGL_J2134.5-2130_daily_bin1450.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=323.641 yref=-21.5029 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.60
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601092/ft1_filtered_4FGL_J2134.5-2130_daily_bin1450.fits scfile=/scratch/kocevski/601092/ft2_4FGL_J2134.5-2130_daily_bin1450.fits outfile=/scratch/kocevski/601092/cmap_HighResolution_615168001_615427201_4FGL_J2134.5-2130_daily_bin1450.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=323.641 yref=-21.5029 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.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/601092/ft1_filtered_4FGL_J2134.5-2130_daily_bin1450.fits evtable="EVENTS" scfile=/scratch/kocevski/601092/ft2_4FGL_J2134.5-2130_daily_bin1450.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/601092/Model_4FGL_J2134.5-2130_daily_bin1450.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/601092/ft1_filtered_4FGL_J2134.5-2130_daily_bin1450.fits.....................!
real 53.86
user 52.49
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/601092/ft1_filtered_4FGL_J2134.5-2130_daily_bin1450.fits', '/scratch/kocevski/601092/ft2_4FGL_J2134.5-2130_daily_bin1450.fits', expMap='/scratch/kocevski/601092/expmap_615168001_615427201_4FGL_J2134.5-2130_daily_bin1450.fits', expCube='/scratch/kocevski/601092/ltcube_615168001_615427201_4FGL_J2134.5-2130_daily_bin1450.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/601092/Model_4FGL_J2134.5-2130_daily_bin1450.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2134.5-2130'

4FGL J2134.5-2130
   Spectrum: PowerLaw
275    Prefactor:  1.845e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
276        Index:  1.996e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  2.061e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/601092/ft1_filtered_4FGL_J2134.5-2130_daily_bin1450.fits
Spacecraft file(s): /scratch/kocevski/601092/ft2_4FGL_J2134.5-2130_daily_bin1450.fits
Exposure map: /scratch/kocevski/601092/expmap_615168001_615427201_4FGL_J2134.5-2130_daily_bin1450.fits
Exposure cube: /scratch/kocevski/601092/ltcube_615168001_615427201_4FGL_J2134.5-2130_daily_bin1450.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/601092/Model_4FGL_J2134.5-2130_daily_bin1450.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) = 5735.0605891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13646E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14829E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9238       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3301       1.0000         .10000E-03   10000.    
     7 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1195       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.879       1.0000         .10000E-03   10000.    
    11 'norm      '    6.9396       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12928E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26157E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    6.0656       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.720       1.0000         .10000E-03   10000.    
    17 'norm      '    .12612       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .70440       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1728       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+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=   5735.042     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     3092 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    42.449        .18142E-02** at limit **
   2  norm          .10000E-03    6.7916        .18142E-02** at limit **
   3  Prefactor     .10000E-03    187.54        .52040E-02** at limit **
   4  Prefactor     1.9232        7.0818        .29955E-03    .50136E-04
   5  Prefactor     .10000E-03    12.390        .18142E-02** at limit **
   6  Prefactor     1.3289        23.016        .38081E-03    .68425E-04
   7  norm          .10000E-03    10.806        .18142E-02** at limit **
   8  Prefactor     3.1162        8.5750        .22956E-03    .43630E-04
   9  Prefactor     .10000E-03    5.5558        .17423E-02** at limit **
  10  Prefactor     19.893        23.071        .89832E-04    .12023E-04
  11  norm          6.9394        5.6698        .76147E-03   -.22259E-03
  12  Prefactor     .10000E-03    36.446        .18142E-02** at limit **
  13  Prefactor     .28612E-02    79.565        .16506       -.51598E-04
  14  norm          6.0669        5.5448        .15132E-03   -.30361E-03
  15  Prefactor     .10000E-03    2.6949        .12114E-02** at limit **
  16  Prefactor     23.711        18.239        .82246E-04   -.67731E-05
  17  norm          .12577        .18772        .46429E-03    .21294E-02
  18  Prefactor     .10000E-03    3.7357        .14257E-02** at limit **
  19  Prefactor     .10000E-03    4.9882        .16514E-02** at limit **
  20  Prefactor     .10000E-03    8.4640        .18142E-02** at limit **
  21  Normalizat    .70446        .28229        .35567E-03    .13393E-04
  22  Prefactor     1.1728        .16495        .17520E-03   -.38284E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.92318
  Prefactor  = 0.0001
  Prefactor  = 1.32893
  norm       = 0.0001
  Prefactor  = 3.11615
  Prefactor  = 0.0001
  Prefactor  = 19.8933
  norm       = 6.9394
  Prefactor  = 0.000100004
  Prefactor  = 0.00286124
  norm       = 6.06693
  Prefactor  = 0.0001
  Prefactor  = 23.7112
  norm       = 0.125773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.704456
  Prefactor  = 1.17283
 **********
 **   18 **HESSE 
 **********

 FCN=   5735.042     FROM HESSE     STATUS=OK           332 CALLS     3424 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    42.450        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.7917        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    192.77        .20816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9232        7.0798        .11982E-04   -1.5431    
   5  Prefactor     .10000E-03    12.391        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3289        23.004        .15233E-04   -1.5477    
   7  norm          .10000E-03    10.811        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1162        8.5736        .91825E-05   -1.5355    
   9  Prefactor     .10000E-03    5.5560        .34846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.893        23.067        .35933E-05   -1.4816    
  11  norm          6.9394        5.6698        .30459E-04   -1.5181    
  12  Prefactor     .10000E-03    36.455        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .28612E-02    89.832        .15398       -1.5697    
  14  norm          6.0669        5.5508        .60527E-05   -1.5215    
  15  Prefactor     .10000E-03    2.6951        .24228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.711        18.239        .32898E-05   -1.4734    
  17  norm          .12577        .18756        .18572E-04   -1.5637    
  18  Prefactor     .10000E-03    3.7361        .28514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.9883        .33028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.4648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .70446        .28261        .14227E-04   -1.0372    
  22  Prefactor     1.1728        .16510        .70081E-05   -.87172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99798e-10
Minuit parameter uncertainties:
  1  0.00110531
  2  1.2036e-05
  3  0.000933137
  4  7.08285
  5  4.11318e-05
  6  11.0628
  7  8.27599e-05
  8  8.57697
  9  4.1681e-06
  10  23.0772
  11  5.67024
  12  0.000740163
  13  0.997585
  14  5.55131
  15  1.59908e-06
  16  18.2428
  17  0.187564
  18  3.42018e-06
  19  6.61787e-08
  20  3.88982e-05
  21  0.283193
  22  0.165173
Done.

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

Extracting fit parameters...

4FGL J2134.5-2130
   Spectrum: PowerLaw
275    Prefactor:  3.116e+00  8.577e+00  1.000e-04  1.000e+04 ( 1.000e-13)
276        Index:  1.996e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  2.061e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.173e+00  1.652e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  7.045e-01  2.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 323.641 -21.503
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601092/likelihoodResults_615168001_615427201_4FGL_J2134.5-2130_daily_bin1450.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) = 5734.60916559
delta logL = 0.433228136401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5734.56963375
delta logL = 0.472759970628

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5734.570     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      224 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1618        56.272        .69959E-02    .12743E-02
   2  Index         2.8367        3.1244        .98883E-01    .28103E-03
   3  Normalizat    .65707        .69099E-01    .82929E-01    .19882E-03
   4  Prefactor     1.1838        .40552E-01    .35025E-01    .10811E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.16178
  Index      = 2.83666
  Normalizat = 0.657072
  Prefactor  = 1.18375
 **********
 **   18 **HESSE 
 **********

 FCN=   5734.570     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1618        6.6574        .10957E-03   -1.5414    
   2  Index         2.8367        1.2779        .55754E-02   -.44745    
   3  Normalizat    .65707        .26638        .36727E-03   -1.0561    
   4  Prefactor     1.1838        .16328        .17438E-03   -.86833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54665e-10
Minuit parameter uncertainties:
  1  6.65965
  2  1.29568
  3  0.266908
  4  0.163345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601092': 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) = 5734.56963297
delta logL = 0.472760757142

Extracting fit parameters...

4FGL J2134.5-2130
   Spectrum: PowerLaw
275    Prefactor:  2.162e+00  6.660e+00  1.000e-04  1.000e+04 ( 1.000e-13)
276        Index:  2.837e+00  1.296e+00  0.000e+00  1.000e+01 (-1.000e+00)
277        Scale:  2.061e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.184e+00  1.633e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  6.571e-01  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 323.641 -21.503
Photon Index (Free Index): 2.84 +/- 1.30
Photon Flux (Free Index): 6.30e-08 +/- 6.95e-08
Energy Flux (Free Index): 1.38e-05 +/- 1.61e-05

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/601092/cmap_HighResolution_615168001_615427201_4FGL_J2134.5-2130_daily_bin1450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.62e-03', comment='SUCCESS', energy_flux2='1.38e-05', dlogl='4.73e-01', photon_flux2='6.30e-08', job_status='DONE', time_completed='2021-09-26 19:52:56.633900', photon_index_error2='1.30', photon_index2='2.84', ts='0.15', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='1.61e-05', EG='0.70', time_epoch_completed='1632711176.63', return_code='0', job_id='601092', GAL2='1.18', EG2='0.66', return_code2='0', photon_flux_error2='6.95e-08', ts2='1.13', photon_index='2.00' WHERE bin_id='1450' AND source_name='4FGL J2134.5-2130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 19:52:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 601092: <4FGL_J2134.5-2130_daily_bin1450> in cluster <slac> Done

Job <4FGL_J2134.5-2130_daily_bin1450> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 19:40:20 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:40:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 19:40:37 2021
Terminated at Sun Sep 26 19:52:57 2021
Results reported at Sun Sep 26 19:52:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2134.5-2130_daily_bin1450 323.641 -21.5029 615168001 615427201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2134.5-2130 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   664.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            757 sec.

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

