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


Performing analysis on: 4FGL_J2134.5-2130_daily_bin1457
RA = 323.641, Dec = -21.5029
tmin = 616982401, tmax = 617241601
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='601102', job_status='RUN', time_executed='2021-09-26 19:42:52.897395', time_epoch_executed='1632710572.9' WHERE source_name='4FGL J2134.5-2130' and cadence='daily' and bin_id='1457'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601102

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601102/ft1_4FGL_J2134.5-2130_daily_bin1457.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601102/ft2_4FGL_J2134.5-2130_daily_bin1457.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601102/ft1_4FGL_J2134.5-2130_daily_bin1457.fits outfile=/scratch/kocevski/601102/ft1_filteredMKT_4FGL_J2134.5-2130_daily_bin1457.fits ra=323.641 dec=-21.5029 rad=12.0 tmin=616982401.0 tmax=617241601.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.07
user 2.80
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601102/ft2_4FGL_J2134.5-2130_daily_bin1457.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/601102/ft1_filteredMKT_4FGL_J2134.5-2130_daily_bin1457.fits evtable="EVENTS" outfile="/scratch/kocevski/601102/ft1_filtered_4FGL_J2134.5-2130_daily_bin1457.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.54
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601102/ft1_filtered_4FGL_J2134.5-2130_daily_bin1457.fits" evtable="EVENTS" scfile=/scratch/kocevski/601102/ft2_4FGL_J2134.5-2130_daily_bin1457.fits sctable="SC_DATA" outfile=/scratch/kocevski/601102/ltcube_616982401_617241601_4FGL_J2134.5-2130_daily_bin1457.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/601102/ft2_4FGL_J2134.5-2130_daily_bin1457.fits
.....................!
real 16.39
user 15.93
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601102/ft1_filtered_4FGL_J2134.5-2130_daily_bin1457.fits evtable="EVENTS" scfile=/scratch/kocevski/601102/ft2_4FGL_J2134.5-2130_daily_bin1457.fits sctable="SC_DATA" expcube=/scratch/kocevski/601102/ltcube_616982401_617241601_4FGL_J2134.5-2130_daily_bin1457.fits outfile=/scratch/kocevski/601102/expmap_616982401_617241601_4FGL_J2134.5-2130_daily_bin1457.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/601102/ltcube_616982401_617241601_4FGL_J2134.5-2130_daily_bin1457.fits
.....................!
real 192.64
user 187.09
sys 5.04

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/601102/ft1_filtered_4FGL_J2134.5-2130_daily_bin1457.fits scfile=/scratch/kocevski/601102/ft2_4FGL_J2134.5-2130_daily_bin1457.fits outfile=/scratch/kocevski/601102/cmap_616982401_617241601_4FGL_J2134.5-2130_daily_bin1457.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601102/ft1_filtered_4FGL_J2134.5-2130_daily_bin1457.fits scfile=/scratch/kocevski/601102/ft2_4FGL_J2134.5-2130_daily_bin1457.fits outfile=/scratch/kocevski/601102/cmap_HighResolution_616982401_617241601_4FGL_J2134.5-2130_daily_bin1457.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/601102/ft1_filtered_4FGL_J2134.5-2130_daily_bin1457.fits evtable="EVENTS" scfile=/scratch/kocevski/601102/ft2_4FGL_J2134.5-2130_daily_bin1457.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/601102/Model_4FGL_J2134.5-2130_daily_bin1457.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/601102/ft1_filtered_4FGL_J2134.5-2130_daily_bin1457.fits...........................!
real 16.04
user 14.64
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/601102/ft1_filtered_4FGL_J2134.5-2130_daily_bin1457.fits', '/scratch/kocevski/601102/ft2_4FGL_J2134.5-2130_daily_bin1457.fits', expMap='/scratch/kocevski/601102/expmap_616982401_617241601_4FGL_J2134.5-2130_daily_bin1457.fits', expCube='/scratch/kocevski/601102/ltcube_616982401_617241601_4FGL_J2134.5-2130_daily_bin1457.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/601102/Model_4FGL_J2134.5-2130_daily_bin1457.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/601102/ft1_filtered_4FGL_J2134.5-2130_daily_bin1457.fits
Spacecraft file(s): /scratch/kocevski/601102/ft2_4FGL_J2134.5-2130_daily_bin1457.fits
Exposure map: /scratch/kocevski/601102/expmap_616982401_617241601_4FGL_J2134.5-2130_daily_bin1457.fits
Exposure cube: /scratch/kocevski/601102/ltcube_616982401_617241601_4FGL_J2134.5-2130_daily_bin1457.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/601102/Model_4FGL_J2134.5-2130_daily_bin1457.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 341.185571277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 340.698782994

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0883       1.0000         .10000E-03   10000.    
     2 'norm      '    4.4865       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1120       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2261       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3431       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22545       1.0000         .10000E-03   10000.    
     7 'norm      '    .63073E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15749E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .68987       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50402E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .48568E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29899E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5205       1.0000         .10000E-03   10000.    
    14 'norm      '    .42040E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.523       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30520       1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .75511E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .28949E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13169E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6472       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0169       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   340.6300     FROM MIGRAD    STATUS=CONVERGED    226 CALLS      347 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0883        1.0034         .0000         .0000    
   2  norm          4.4865        1.0063         .0000         .0000    
   3  Prefactor     .12004        28.235       -.89895E-05   -.71111E-02
   4  Prefactor     271.80        847.30        .25730E-04   -.95390E-03
   5  Prefactor     .10431E-03    654.09        .13271E-04** at limit **
   6  Prefactor     .10044E-03    364.02       -.14472E-04** at limit **
   7  norm          .10000E-03    67.105        .28778E-05** at limit **
   8  Prefactor     .10000E-03    160.77       -.15769E-04** at limit **
   9  Prefactor     .10002E-03    308.26        .36029E-04** at limit **
  10  Prefactor     .10000E-03    82.124       -.81781E-05** at limit **
  11  norm          .10000E-03    55.404       -.14143E-05** at limit **
  12  Prefactor     .10000E-03    72.229        .15746E-04** at limit **
  13  Prefactor     .22779E-03    428.72       -.30516E-04** at limit **
  14  norm          .10000E-03    33.585       -.14193E-04** at limit **
  15  Prefactor     21.446        47.804       -.30611E-05    .26997E-03
  16  Prefactor     .10000E-03    73.292        .27717E-05** at limit **
  17  norm          .10000E-03    .68505       -.80692E-06** at limit **
  18  Prefactor     .10000E-03    57.794        .22483E-04** at limit **
  19  Prefactor     .10000E-03    61.506        .12419E-04** at limit **
  20  Prefactor     .10000E-03    26.180        .15293E-05** at limit **
  21  Normalizat    1.4845        1.3636        .71657E-04    .14133E-05
  22  Prefactor     1.0947        .95708       -.40479E-04   -.73213E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.08827
  norm       = 4.48651
  Prefactor  = 0.120035
  Prefactor  = 271.799
  Prefactor  = 0.00010431
  Prefactor  = 0.000100437
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.000227786
  norm       = 0.0001
  Prefactor  = 21.446
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.48453
  Prefactor  = 1.09468
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   340.6300     FROM HESSE     STATUS=FAILED        11 CALLS      358 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     521.17        515.04         .0000       -1.5214    
   2  norm          4.4865        1.0063         .0000       -1.5284    
   3  Prefactor     .12004        .17211       -.89895E-05   -1.5777    
   4  Prefactor     271.80        9.1683        .25730E-04   -1.2396    
   5  Prefactor     .10431E-03    .11209        .13271E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10044E-03    .25468       -.14472E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .21779        .28778E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .26091       -.15769E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    .36137        .36029E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .23019       -.81781E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .21451       -.14143E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .21029        .15746E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .22779E-03    .45690E-01   -.30516E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .21303       -.14193E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.446        .97610       -.30611E-05   -1.4781    
  16  Prefactor     .10000E-03    .27289        .27717E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .20571       -.80692E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .22061        .22483E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .21008        .12419E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .26446        .15293E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4845        .99385        .71657E-04   -.78214    
  22  Prefactor     1.0947        1.2865       -.40479E-04   -.89637    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.78585e-10
Minuit parameter uncertainties:
  1  1.00341
  2  1.00635
  3  0.172116
  4  9.16836
  5  0.00139003
  6  0.000667559
  7  3.61267e-06
  8  1.01075e-05
  9  0.000153151
  10  2.797e-05
  11  3.7084e-05
  12  2.40257e-05
  13  0.0048326
  14  8.74639e-07
  15  0.976097
  16  6.57324e-06
  17  3.8083e-07
  18  1.57431e-05
  19  1.94506e-05
  20  1.65153e-06
  21  1.00736
  22  1.32599
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 340.629959191

Extracting fit parameters...

4FGL J2134.5-2130
   Spectrum: PowerLaw
275    Prefactor:  1.000e-04  1.011e-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:  1.095e+00  1.326e+00  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.485e+00  1.007e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/601102/likelihoodResults_616982401_617241601_4FGL_J2134.5-2130_daily_bin1457.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) = 340.629988631
delta logL = -2.94398507208e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 340.629959217
delta logL = -2.65816879619e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9648       1.0000          .0000       10.000    
     3 'Normalizat'    1.4845       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0947       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=   340.6300     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      232 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    2209.0        .90712E-02** at limit **
   2  Index         2.0235        8.9099        .50000       -.39123E-05
   3  Normalizat    1.4845        .10340        .69581E-01    .30615E-04
   4  Prefactor     1.0947        .73631E-01    .55977E-01    .72673E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100057
  Index      = 2.02348
  Normalizat = 1.48452
  Prefactor  = 1.09469
 **********
 **   18 **HESSE 
 **********

 FCN=   340.6300     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      261 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    8291.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0235        5.9728        .50000       -.63764    
   3  Normalizat    1.4845        .20946        .30783E-03   -.78214    
   4  Prefactor     1.0947        .14923        .24752E-03   -.89637    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.50776e-08
Minuit parameter uncertainties:
  1  0.0453879
  2  29.7019
  3  0.209585
  4  0.149284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601102': 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) = 340.629959166
delta logL = 2.46699869422e-08

Extracting fit parameters...

4FGL J2134.5-2130
   Spectrum: PowerLaw
275    Prefactor:  1.001e-04  4.539e-02  1.000e-04  1.000e+04 ( 1.000e-13)
276        Index:  2.023e+00  2.970e+01  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.095e+00  1.493e-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.485e+00  2.096e-01  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/601102/cmap_HighResolution_616982401_617241601_4FGL_J2134.5-2130_daily_bin1457.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-01', job_status='DONE', photon_flux_upper_limit='1.80e-06', time_completed='2021-09-26 19:48:25.623176', job_id='601102', GAL2='1.09', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1632710905.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.09', dlogl='2.47e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1457' AND source_name='4FGL J2134.5-2130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 19:48:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 601102: <4FGL_J2134.5-2130_daily_bin1457> in cluster <slac> Done

Job <4FGL_J2134.5-2130_daily_bin1457> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 19:40:21 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:40:39 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:39 2021
Terminated at Sun Sep 26 19:48:26 2021
Results reported at Sun Sep 26 19:48:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2134.5-2130_daily_bin1457 323.641 -21.5029 616982401 617241601 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 :                                   324.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             394.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   467 sec.
    Turnaround time :                            485 sec.

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

