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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1014
RA = 323.836, Dec = -50.1015
tmin = 502156801, tmax = 502416001
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='605938', job_status='RUN', time_executed='2021-09-26 19:58:14.759676', time_epoch_executed='1632711494.76' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1014'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605938

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605938/ft1_4FGL_J2135.3-5006_daily_bin1014.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605938/ft2_4FGL_J2135.3-5006_daily_bin1014.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605938/ft1_4FGL_J2135.3-5006_daily_bin1014.fits outfile=/scratch/kocevski/605938/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1014.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=502156801.0 tmax=502416001.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 4.10
user 3.85
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/605938/ft2_4FGL_J2135.3-5006_daily_bin1014.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/605938/ft2_4FGL_J2135.3-5006_daily_bin1014.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/605938/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1014.fits evtable="EVENTS" outfile="/scratch/kocevski/605938/ft1_filtered_4FGL_J2135.3-5006_daily_bin1014.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/605938/ft1_filtered_4FGL_J2135.3-5006_daily_bin1014.fits" evtable="EVENTS" scfile=/scratch/kocevski/605938/ft2_4FGL_J2135.3-5006_daily_bin1014.fits sctable="SC_DATA" outfile=/scratch/kocevski/605938/ltcube_502156801_502416001_4FGL_J2135.3-5006_daily_bin1014.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/605938/ft2_4FGL_J2135.3-5006_daily_bin1014.fits
.....................!
real 15.75
user 15.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605938/ft1_filtered_4FGL_J2135.3-5006_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/605938/ft2_4FGL_J2135.3-5006_daily_bin1014.fits sctable="SC_DATA" expcube=/scratch/kocevski/605938/ltcube_502156801_502416001_4FGL_J2135.3-5006_daily_bin1014.fits outfile=/scratch/kocevski/605938/expmap_502156801_502416001_4FGL_J2135.3-5006_daily_bin1014.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/605938/ltcube_502156801_502416001_4FGL_J2135.3-5006_daily_bin1014.fits
.....................!
real 191.85
user 186.67
sys 4.62

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

Setting source of interest to:
4FGL J2135.3-5006 @ 323.836 -50.1015

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/605938/ft1_filtered_4FGL_J2135.3-5006_daily_bin1014.fits scfile=/scratch/kocevski/605938/ft2_4FGL_J2135.3-5006_daily_bin1014.fits outfile=/scratch/kocevski/605938/cmap_502156801_502416001_4FGL_J2135.3-5006_daily_bin1014.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.836 yref=-50.1015 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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605938/ft1_filtered_4FGL_J2135.3-5006_daily_bin1014.fits scfile=/scratch/kocevski/605938/ft2_4FGL_J2135.3-5006_daily_bin1014.fits outfile=/scratch/kocevski/605938/cmap_HighResolution_502156801_502416001_4FGL_J2135.3-5006_daily_bin1014.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.836 yref=-50.1015 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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/605938/ft1_filtered_4FGL_J2135.3-5006_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/605938/ft2_4FGL_J2135.3-5006_daily_bin1014.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/605938/Model_4FGL_J2135.3-5006_daily_bin1014.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/605938/ft1_filtered_4FGL_J2135.3-5006_daily_bin1014.fits.....................!
real 61.75
user 59.73
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/605938/ft1_filtered_4FGL_J2135.3-5006_daily_bin1014.fits', '/scratch/kocevski/605938/ft2_4FGL_J2135.3-5006_daily_bin1014.fits', expMap='/scratch/kocevski/605938/expmap_502156801_502416001_4FGL_J2135.3-5006_daily_bin1014.fits', expCube='/scratch/kocevski/605938/ltcube_502156801_502416001_4FGL_J2135.3-5006_daily_bin1014.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/605938/Model_4FGL_J2135.3-5006_daily_bin1014.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2135.3-5006'

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  2.639e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.430e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  7.285e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/605938/ft1_filtered_4FGL_J2135.3-5006_daily_bin1014.fits
Spacecraft file(s): /scratch/kocevski/605938/ft2_4FGL_J2135.3-5006_daily_bin1014.fits
Exposure map: /scratch/kocevski/605938/expmap_502156801_502416001_4FGL_J2135.3-5006_daily_bin1014.fits
Exposure cube: /scratch/kocevski/605938/ltcube_502156801_502416001_4FGL_J2135.3-5006_daily_bin1014.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/605938/Model_4FGL_J2135.3-5006_daily_bin1014.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) = 8554.49473006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2449       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.413       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0886       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9204       1.0000         .10000E-03   10000.    
    11 'norm      '    10.646       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3594       1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.590       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4511       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7574       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3651       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .51768E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80680       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0729       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8554.493     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2805 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.376       -.91242E-07** at limit **
   2  Prefactor     3.2448        2.1052        .59727E-07    .10784E-03
   3  Prefactor     18.413        17.967        .32212E-06    .25373E-04
   4  norm          .10000E-03    .42739       -.24986E-07** at limit **
   5  Prefactor     .10000E-03    33.724       -.18621E-07** at limit **
   6  Prefactor     .10000E-03    63.216       -.16668E-05** at limit **
   7  Prefactor     3.0887        7.0883        .82610E-06    .27137E-03
   8  Prefactor     .10000E-03    25.470       -.11605E-06** at limit **
   9  Prefactor     .10000E-03    8.1166       -.25000E-07** at limit **
  10  Prefactor     7.9204        4.2152        .41214E-06    .25173E-03
  11  norm          10.646        4.2765        .33536E-06    .12787E-02
  12  Prefactor     4.3593        5.5021       -.93662E-07    .16296E-03
  13  Prefactor     49.583        32.364       -.19123E-06    .25812E-05
  14  Prefactor     .10000E-03    2.5721       -.50846E-07** at limit **
  15  Prefactor     2.4513        2.2769        .26440E-07    .51562E-04
  16  Prefactor     .10000E-03    22.471        .52167E-06** at limit **
  17  norm          .10000E-03    2.3138       -.11533E-07** at limit **
  18  Prefactor     2.7574        2.7232       -.11532E-06    .29789E-04
  19  Prefactor     2.3666        4.9723        .62547E-05    .67279E-03
  20  Prefactor     .10000E-03    10.591       -.32844E-07** at limit **
  21  Prefactor     .33065E-01    6.9807       -.59179E-05    .66321E-03
  22  Prefactor     .10000E-03    53.173        .14256E-05** at limit **
  23  Normalizat    .80679        .17224       -.16396E-05    .65461E-03
  24  Prefactor     1.0730        .11181        .21868E-06    .56837E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.24482
  Prefactor  = 18.4127
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.08867
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.9204
  norm       = 10.6464
  Prefactor  = 4.35934
  Prefactor  = 49.5825
  Prefactor  = 0.0001
  Prefactor  = 2.4513
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.75741
  Prefactor  = 2.36661
  Prefactor  = 0.0001
  Prefactor  = 0.0330654
  Prefactor  = 0.000100001
  Normalizat = 0.806786
  Prefactor  = 1.07296
 **********
 **   18 **HESSE 
 **********

 FCN=   8554.493     FROM HESSE     STATUS=OK           401 CALLS     3206 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2448        2.1006        .10365E-03   -1.5348    
   3  Prefactor     18.413        17.976        .93338E-04   -1.4850    
   4  norm          .10000E-03    .43638        .59008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    63.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0887        7.0702        .23077E-03   -1.5356    
   8  Prefactor     .10000E-03    25.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.1317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.9204        4.2148        .65401E-03   -1.5145    
  11  norm          10.646        4.2890        .11718E-03   -1.5055    
  12  Prefactor     4.3593        5.4967        .19291E-03   -1.5290    
  13  Prefactor     49.583        32.498        .56946E-04   -1.4299    
  14  Prefactor     .10000E-03    2.5876        .14477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4513        2.2709        .12995E-03   -1.5395    
  16  Prefactor     .10000E-03    22.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.3202        .13739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7574        2.7181        .14628E-03   -1.5376    
  19  Prefactor     2.3666        4.9934        .13323E-02   -1.5400    
  20  Prefactor     .10000E-03    10.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .33065E-01    8.2493        .60359E-01   -1.5672    
  22  Prefactor     .10000E-03    53.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .80679        .20005        .30445E-03   -.99817    
  24  Prefactor     1.0730        .12998        .18712E-03   -.90335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31057e-09
Minuit parameter uncertainties:
  1  5.26604e-06
  2  2.10061
  3  17.9813
  4  1.26285e-06
  5  5.35667e-05
  6  0.000549516
  7  7.07207
  8  0.000338724
  9  3.4441e-06
  10  4.21492
  11  4.28916
  12  5.49734
  13  32.5091
  14  6.46513e-06
  15  2.27098
  16  9.48428e-05
  17  5.5675e-07
  18  2.71818
  19  4.99427
  20  1.54358e-06
  21  1.04311
  22  0.000439695
  23  0.200233
  24  0.130016
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  7.920e+00  4.215e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.430e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  7.285e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.073e+00  1.300e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  8.068e-01  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.26
Ra Dec: 323.836 -50.102
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 6.91e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.16e-05

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) = 8553.69178915
delta logL = 0.800840239079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8553.68737247
delta logL = 0.805256913029

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2324       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1685       1.0000          .0000       10.000    
     3 'Normalizat'    .75949       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0933       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+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=   8553.687     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      277 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2326        4.6725        .80587E-04    .47965E-04
   2  Index         3.1685        .77636        .50270E-02    .48668E-04
   3  Normalizat    .75949        .18811        .31267E-03    .12908E-03
   4  Prefactor     1.0933        .12942        .18550E-03    .29989E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.23257
  Index      = 3.16855
  Normalizat = 0.759488
  Prefactor  = 1.09335
 **********
 **   18 **HESSE 
 **********

 FCN=   8553.687     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2326        3.8821        .32235E-05   -1.5296    
   2  Index         3.1685        .64525        .20108E-03   -.37502    
   3  Normalizat    .75949        .18762        .12507E-04   -1.0159    
   4  Prefactor     1.0933        .12918        .37100E-04   -.89679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6089e-11
Minuit parameter uncertainties:
  1  3.8823
  2  0.647333
  3  0.187784
  4  0.129216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605938': 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) = 8553.68737246
delta logL = 0.80525692455

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  4.233e+00  3.882e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  3.169e+00  6.473e-01  0.000e+00  1.000e+01 (-1.000e+00)
293        Scale:  7.285e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.093e+00  1.292e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  7.595e-01  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.02
Ra Dec: 323.836 -50.102
Photon Index (Free Index): 3.17 +/- 0.65
Photon Flux (Free Index): 1.06e-07 +/- 5.16e-08
Energy Flux (Free Index): 1.96e-05 +/- 8.92e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/605938/cmap_HighResolution_502156801_502416001_4FGL_J2135.3-5006_daily_bin1014.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.91e-08', energy_flux2='1.96e-05', photon_flux_error='3.67e-08', dlogl='8.05e-01', energy_flux='2.18e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-26 20:10:40.366072', photon_index_error2='0.65', photon_index2='3.17', ts='6.26', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='8.92e-06', EG='0.81', time_epoch_completed='1632712240.37', return_code='0', job_id='605938', GAL2='1.09', EG2='0.76', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='5.16e-08', ts2='8.02', photon_index='2.43' WHERE bin_id='1014' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:10:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 605938: <4FGL_J2135.3-5006_daily_bin1014> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1014> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 19:55:21 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:56:19 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:56:19 2021
Terminated at Sun Sep 26 20:10:40 2021
Results reported at Sun Sep 26 20:10:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1014 323.836 -50.1015 502156801 502416001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2135.3-5006 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   742.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            919 sec.

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

