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


Performing analysis on: 4FGL_J2134.5-2130_daily_bin1583
RA = 323.641, Dec = -21.5029
tmin = 649641601, tmax = 649900801
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='601284', job_status='RUN', time_executed='2021-09-26 19:44:06.370115', time_epoch_executed='1632710646.37' WHERE source_name='4FGL J2134.5-2130' and cadence='daily' and bin_id='1583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601284

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601284/ft1_4FGL_J2134.5-2130_daily_bin1583.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601284/ft2_4FGL_J2134.5-2130_daily_bin1583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601284/ft1_4FGL_J2134.5-2130_daily_bin1583.fits outfile=/scratch/kocevski/601284/ft1_filteredMKT_4FGL_J2134.5-2130_daily_bin1583.fits ra=323.641 dec=-21.5029 rad=12.0 tmin=649641601.0 tmax=649900801.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 2.61
user 2.35
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601284/ft2_4FGL_J2134.5-2130_daily_bin1583.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/601284/ft1_filteredMKT_4FGL_J2134.5-2130_daily_bin1583.fits evtable="EVENTS" outfile="/scratch/kocevski/601284/ft1_filtered_4FGL_J2134.5-2130_daily_bin1583.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601284/ft1_filtered_4FGL_J2134.5-2130_daily_bin1583.fits" evtable="EVENTS" scfile=/scratch/kocevski/601284/ft2_4FGL_J2134.5-2130_daily_bin1583.fits sctable="SC_DATA" outfile=/scratch/kocevski/601284/ltcube_649641601_649900801_4FGL_J2134.5-2130_daily_bin1583.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/601284/ft2_4FGL_J2134.5-2130_daily_bin1583.fits
.....................!
real 16.79
user 16.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601284/ft1_filtered_4FGL_J2134.5-2130_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/601284/ft2_4FGL_J2134.5-2130_daily_bin1583.fits sctable="SC_DATA" expcube=/scratch/kocevski/601284/ltcube_649641601_649900801_4FGL_J2134.5-2130_daily_bin1583.fits outfile=/scratch/kocevski/601284/expmap_649641601_649900801_4FGL_J2134.5-2130_daily_bin1583.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/601284/ltcube_649641601_649900801_4FGL_J2134.5-2130_daily_bin1583.fits
.....................!
real 192.49
user 185.79
sys 6.11

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/601284/ft1_filtered_4FGL_J2134.5-2130_daily_bin1583.fits scfile=/scratch/kocevski/601284/ft2_4FGL_J2134.5-2130_daily_bin1583.fits outfile=/scratch/kocevski/601284/cmap_649641601_649900801_4FGL_J2134.5-2130_daily_bin1583.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601284/ft1_filtered_4FGL_J2134.5-2130_daily_bin1583.fits scfile=/scratch/kocevski/601284/ft2_4FGL_J2134.5-2130_daily_bin1583.fits outfile=/scratch/kocevski/601284/cmap_HighResolution_649641601_649900801_4FGL_J2134.5-2130_daily_bin1583.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/601284/ft1_filtered_4FGL_J2134.5-2130_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/601284/ft2_4FGL_J2134.5-2130_daily_bin1583.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/601284/Model_4FGL_J2134.5-2130_daily_bin1583.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/601284/ft1_filtered_4FGL_J2134.5-2130_daily_bin1583.fits.....................!
real 16.05
user 14.74
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.5723       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8454       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.357       1.0000         .10000E-03   10000.    
     6 'Prefactor '    86.413       1.0000         .10000E-03   10000.    
     7 'norm      '    .17790E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .55645       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12272E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .77067E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .11668E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    60.460       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.648       1.0000         .10000E-03   10000.    
    14 'norm      '    158.67       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47926E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10935       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10926       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84790       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=   277.7350     FROM MIGRAD    STATUS=CONVERGED    235 CALLS      410 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  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     4.5723        1.0061         .0000         .0000    
   4  Prefactor     1.8454        1.0424         .0000         .0000    
   5  Prefactor     32.518        109.63        .15068E-05   -.40531E-05
   6  Prefactor     90.498        131.06       -.17386E-05   -.46730E-05
   7  norm          .10000E-03    712.43        .45913E-05** at limit **
   8  Prefactor     .10000E-03    224.07        .41944E-06** at limit **
   9  Prefactor     .10000E-03    350.65       -.81026E-05** at limit **
  10  Prefactor     .10000E-03    37.252       -.39702E-06** at limit **
  11  norm          .10000E-03    10.573       -.14301E-06** at limit **
  12  Prefactor     .10000E-03    1496.6        .23216E-04** at limit **
  13  Prefactor     981.30        5100.6       -.14015E-04   -.14129E-06
  14  norm          105.49        253.52       -.45282E-05    .58875E-05
  15  Prefactor     .10000E-03    5.9301       -.42891E-07** at limit **
  16  Prefactor     .10000E-03    19.038        .50147E-06** at limit **
  17  norm          .10000E-03    4.4936        .98076E-06** at limit **
  18  Prefactor     .10000E-03    83.896        .26221E-06** at limit **
  19  Prefactor     .10000E-03    12.698       -.26702E-06** at limit **
  20  Prefactor     .10000E-03    136.26       -.15745E-05** at limit **
  21  Normalizat    .10000E-01    .42007        .24767E-06** at limit **
  22  Prefactor     .85173        .28385        .35638E-06   -.34482E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.08827
  norm       = 4.48651
  Prefactor  = 4.5723
  Prefactor  = 1.84539
  Prefactor  = 32.5183
  Prefactor  = 90.4975
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 981.3
  norm       = 105.495
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.851728
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   277.7350     FROM HESSE     STATUS=FAILED        11 CALLS      421 TOTAL
                     EDM=   .21E-11  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     4.5723        1.0061         .0000       -1.5280    
   4  Prefactor     1.8454        1.0424         .0000       -1.5436    
   5  Prefactor     32.518        .92110        .15068E-05   -1.4567    
   6  Prefactor     90.498        1.0232       -.17386E-05   -1.3802    
   7  norm          .10000E-03    .20571        .45913E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .33057        .41944E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .20631       -.81026E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .22096       -.39702E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .20571       -.14301E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .41604E-02    .23216E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     981.30        9.1319       -.14015E-04   -.93355    
  14  norm          105.49        .81761       -.45282E-05   -1.3650    
  15  Prefactor     .10000E-03    .20571       -.42891E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .21437        .50147E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .20571        .98076E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .22828        .26221E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .20571       -.26702E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .22826       -.15745E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .25505        .24767E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .85173        1.1975        .35638E-06   -.97849    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.12765e-12
Minuit parameter uncertainties:
  1  1.00341
  2  1.00635
  3  1.00611
  4  1.04244
  5  0.921097
  6  1.02316
  7  4.29326e-06
  8  5.86276e-06
  9  3.87372e-06
  10  1.63039e-06
  11  4.72389e-07
  12  1.4013e-06
  13  9.13191
  14  0.817609
  15  1.48259e-07
  16  1.64429e-06
  17  3.19981e-07
  18  2.12497e-06
  19  8.38942e-07
  20  7.5768e-07
  21  1.9773e-07
  22  1.23763
Done.

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

Extracting fit parameters...

4FGL J2134.5-2130
   Spectrum: PowerLaw
275    Prefactor:  1.000e-04  5.863e-06  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.517e-01  1.238e+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.000e-02  1.977e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/601284/likelihoodResults_649641601_649900801_4FGL_J2134.5-2130_daily_bin1583.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) = 277.734991898
delta logL = -2.18014074562e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 277.734970205
delta logL = -1.08875553906e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3046       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85173       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=   277.7350     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      249 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    185.72        .90712E-02** at limit **
   2  Index         2.2719        8.8206        .50000        .16415E-05
   3  Normalizat    .10000E-01    .84494E-03    .15074    ** at limit **
   4  Prefactor     .85173        .12132E-01    .33778E-01   -.21761E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.27192
  Normalizat = 0.01
  Prefactor  = 0.851728
 **********
 **   18 **HESSE 
 **********

 FCN=   277.7350     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      282 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1089.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2719        7.8828        .50000       -.57712    
   3  Normalizat    .10000E-01    .57757E-02    .63177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .85173        .30004E-01    .14928E-03   -.97849    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19864e-07
Minuit parameter uncertainties:
  1  0.000192464
  2  882.294
  3  3.86706e-08
  4  0.0300048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601284': 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) = 277.734970175
delta logL = -7.83318796493e-08

Extracting fit parameters...

4FGL J2134.5-2130
   Spectrum: PowerLaw
275    Prefactor:  1.000e-04  1.925e-04  1.000e-04  1.000e+04 ( 1.000e-13)
276        Index:  2.272e+00  8.823e+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.517e-01  3.000e-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  3.867e-08  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/601284/cmap_HighResolution_649641601_649900801_4FGL_J2134.5-2130_daily_bin1583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.05e-01', job_status='DONE', photon_flux_upper_limit='2.73e-06', time_completed='2021-09-26 19:49:37.020811', job_id='601284', GAL2='0.85', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632710977.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.85', dlogl='-7.83e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1583' AND source_name='4FGL J2134.5-2130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 19:49:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 601284: <4FGL_J2134.5-2130_daily_bin1583> in cluster <slac> Done

Job <4FGL_J2134.5-2130_daily_bin1583> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 19:40:34 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:41:30 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:41:30 2021
Terminated at Sun Sep 26 19:49:37 2021
Results reported at Sun Sep 26 19:49:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2134.5-2130_daily_bin1583 323.641 -21.5029 649641601 649900801 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.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             195.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   487 sec.
    Turnaround time :                            543 sec.

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

