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


Performing analysis on: 4FGL_J2134.5-2130_daily_bin1278
RA = 323.641, Dec = -21.5029
tmin = 570585601, tmax = 570844801
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='599686', job_status='RUN', time_executed='2021-09-26 19:36:37.849367', time_epoch_executed='1632710197.85' WHERE source_name='4FGL J2134.5-2130' and cadence='daily' and bin_id='1278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/599686

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/599686/ft1_4FGL_J2134.5-2130_daily_bin1278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/599686/ft2_4FGL_J2134.5-2130_daily_bin1278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/599686/ft1_4FGL_J2134.5-2130_daily_bin1278.fits outfile=/scratch/kocevski/599686/ft1_filteredMKT_4FGL_J2134.5-2130_daily_bin1278.fits ra=323.641 dec=-21.5029 rad=12.0 tmin=570585601.0 tmax=570844801.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.10
user 2.83
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/599686/ft2_4FGL_J2134.5-2130_daily_bin1278.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/599686/ft1_filteredMKT_4FGL_J2134.5-2130_daily_bin1278.fits evtable="EVENTS" outfile="/scratch/kocevski/599686/ft1_filtered_4FGL_J2134.5-2130_daily_bin1278.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 1.23
user 0.35
sys 0.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/599686/ft1_filtered_4FGL_J2134.5-2130_daily_bin1278.fits" evtable="EVENTS" scfile=/scratch/kocevski/599686/ft2_4FGL_J2134.5-2130_daily_bin1278.fits sctable="SC_DATA" outfile=/scratch/kocevski/599686/ltcube_570585601_570844801_4FGL_J2134.5-2130_daily_bin1278.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/599686/ft2_4FGL_J2134.5-2130_daily_bin1278.fits
.....................!
real 15.12
user 14.50
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/599686/ft1_filtered_4FGL_J2134.5-2130_daily_bin1278.fits evtable="EVENTS" scfile=/scratch/kocevski/599686/ft2_4FGL_J2134.5-2130_daily_bin1278.fits sctable="SC_DATA" expcube=/scratch/kocevski/599686/ltcube_570585601_570844801_4FGL_J2134.5-2130_daily_bin1278.fits outfile=/scratch/kocevski/599686/expmap_570585601_570844801_4FGL_J2134.5-2130_daily_bin1278.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/599686/ltcube_570585601_570844801_4FGL_J2134.5-2130_daily_bin1278.fits
.....................!
real 193.86
user 188.27
sys 5.03

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/599686/ft1_filtered_4FGL_J2134.5-2130_daily_bin1278.fits scfile=/scratch/kocevski/599686/ft2_4FGL_J2134.5-2130_daily_bin1278.fits outfile=/scratch/kocevski/599686/cmap_570585601_570844801_4FGL_J2134.5-2130_daily_bin1278.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/599686/ft1_filtered_4FGL_J2134.5-2130_daily_bin1278.fits scfile=/scratch/kocevski/599686/ft2_4FGL_J2134.5-2130_daily_bin1278.fits outfile=/scratch/kocevski/599686/cmap_HighResolution_570585601_570844801_4FGL_J2134.5-2130_daily_bin1278.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.55
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/599686/ft1_filtered_4FGL_J2134.5-2130_daily_bin1278.fits', '/scratch/kocevski/599686/ft2_4FGL_J2134.5-2130_daily_bin1278.fits', expMap='/scratch/kocevski/599686/expmap_570585601_570844801_4FGL_J2134.5-2130_daily_bin1278.fits', expCube='/scratch/kocevski/599686/ltcube_570585601_570844801_4FGL_J2134.5-2130_daily_bin1278.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/599686/Model_4FGL_J2134.5-2130_daily_bin1278.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/599686/ft1_filtered_4FGL_J2134.5-2130_daily_bin1278.fits
Spacecraft file(s): /scratch/kocevski/599686/ft2_4FGL_J2134.5-2130_daily_bin1278.fits
Exposure map: /scratch/kocevski/599686/expmap_570585601_570844801_4FGL_J2134.5-2130_daily_bin1278.fits
Exposure cube: /scratch/kocevski/599686/ltcube_570585601_570844801_4FGL_J2134.5-2130_daily_bin1278.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/599686/Model_4FGL_J2134.5-2130_daily_bin1278.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) = 329.914664745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11327E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10227E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.884       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.259       1.0000         .10000E-03   10000.    
     7 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2417.6       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .83277E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12138E-03   1.0000         .10000E-03   10000.    
    14 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10218E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    68.637       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11533E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82373       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.

 FCN=   329.8990     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2392 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    987.01       -.14753E-06** at limit **
   2  norm          .10000E-03    230.57       -.48925E-07** at limit **
   3  Prefactor     .10000E-03    449.92        .20425E-06** at limit **
   4  Prefactor     .10000E-03    7480.8       -.77634E-06** at limit **
   5  Prefactor     18.384        226.47        .11908E-04    .52605E-05
   6  Prefactor     29.911        202.32       -.18574E-04    .12545E-04
   7  norm         10000.0        8326.9       -.19236E-05** at limit **
   8  Prefactor     .10000E-03    244.22        .24498E-06** at limit **
   9  Prefactor     2444.9        8775.8       -.27005E-05   -.53155E-07
  10  Prefactor     .10000E-03    34.014        .76159E-07** at limit **
  11  norm          .10000E-03    14.668       -.53700E-07** at limit **
  12  Prefactor     .10000E-03    6234.0        .16119E-05** at limit **
  13  Prefactor     .10000E-03    8419.8        .21295E-05** at limit **
  14  norm         10000.0        6659.8       -.40251E-05** at limit **
  15  Prefactor     .10000E-03    19.696       -.18018E-06** at limit **
  16  Prefactor     .10000E-03    28.647        .30516E-08** at limit **
  17  norm          .10000E-03    10.612        .24844E-06** at limit **
  18  Prefactor     .10000E-03    66.743        .24947E-05** at limit **
  19  Prefactor     68.616        57.681        .65938E-06   -.45818E-04
  20  Prefactor     .10000E-03    53.079        .67342E-06** at limit **
  21  Normalizat    .10000E-01    .19336        .10616E-04** at limit **
  22  Prefactor     .82358        .25861       -.38422E-05   -.20895E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 18.3842
  Prefactor  = 29.911
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 2444.9
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.6156
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.823577
 **********
 **   18 **HESSE 
 **********

 FCN=   329.8990     FROM HESSE     STATUS=OK           324 CALLS     2716 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    986.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    230.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    449.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7479.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.384        229.71        .92168E-04   -1.4850    
   6  Prefactor     29.911        199.83        .74068E-04   -1.4614    
   7  norm         10000.0        8322.7        .18950E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    244.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2444.9        8773.7        .46713E-04   -.53637    
  10  Prefactor     .10000E-03    34.014        .10358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    14.668        .67998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6233.6        .20878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8417.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm         10000.0        6661.0        .21168E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.735        .78757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.648        .95051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.610        .57832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    66.592        .14505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     68.616        57.706        .48450E-04   -1.4049    
  20  Prefactor     .10000E-03    53.062        .12943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .20292        .25089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .82358        .26281        .15258E-03   -.98865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58043e-11
Minuit parameter uncertainties:
  1  0.000398467
  2  6.9613e-05
  3  0.000441761
  4  0.00628344
  5  130.595
  6  155.38
  7  0.0214395
  8  2.29954e-05
  9  17708.5
  10  1.21682e-06
  11  6.75829e-06
  12  0.00141702
  13  0.0108282
  14  0.00287044
  15  4.62514e-05
  16  3.22852e-06
  17  6.58573e-06
  18  0.000159317
  19  57.7532
  20  4.10543e-05
  21  2.01146e-06
  22  0.263215
Done.

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

Extracting fit parameters...

4FGL J2134.5-2130
   Spectrum: PowerLaw
275    Prefactor:  1.000e-04  2.300e-05  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:  8.236e-01  2.632e-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:  1.000e-02  2.011e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 323.641 -21.503
Photon Flux Upper Limit: 6.20e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.65e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/599686/likelihoodResults_570585601_570844801_4FGL_J2134.5-2130_daily_bin1278.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) = 329.899029707
delta logL = -1.93900685872e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 329.899010608
delta logL = -2.91080937131e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16776E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2675       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82358       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=   329.8990     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      268 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10327E-03    131.70        .18142E-01** at limit **
   2  Index         2.1858        5.9639        .50000        .16018E-05
   3  Normalizat    .10000E-01    .28240E-03    .25087E-02** at limit **
   4  Prefactor     .82358        .87867E-02    .15259E-03   -.75384E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103271
  Index      = 2.1858
  Normalizat = 0.01
  Prefactor  = 0.823576
 **********
 **   18 **HESSE 
 **********

 FCN=   329.8990     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      297 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10327E-03    918.11        .24556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1858        5.0759        .50000       -.59782    
   3  Normalizat    .10000E-01    .20404E-02    .50174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .82358        .23619E-01    .30517E-04   -.98865    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.97531e-10
Minuit parameter uncertainties:
  1  0.111349
  2  778.87
  3  5.77189e-09
  4  0.0236192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/599686': 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) = 329.899010384
delta logL = -6.67627659823e-08

Extracting fit parameters...

4FGL J2134.5-2130
   Spectrum: PowerLaw
275    Prefactor:  1.033e-04  1.113e-01  1.000e-04  1.000e+04 ( 1.000e-13)
276        Index:  2.186e+00  7.789e+02  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:  8.236e-01  2.362e-02  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:  1.000e-02  5.772e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 323.641 -21.503

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/599686/cmap_HighResolution_570585601_570844801_4FGL_J2134.5-2130_daily_bin1278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-01', job_status='DONE', photon_flux_upper_limit='6.20e-06', time_completed='2021-09-26 19:42:33.349965', job_id='599686', GAL2='0.82', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632710553.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-6.68e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1278' AND source_name='4FGL J2134.5-2130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 19:42:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 599686: <4FGL_J2134.5-2130_daily_bin1278> in cluster <slac> Done

Job <4FGL_J2134.5-2130_daily_bin1278> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 19:35:24 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:35:34 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:35:34 2021
Terminated at Sun Sep 26 19:42:34 2021
Results reported at Sun Sep 26 19:42:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2134.5-2130_daily_bin1278 323.641 -21.5029 570585601 570844801 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 :                                   336.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             439.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   419 sec.
    Turnaround time :                            430 sec.

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

