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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1027
RA = 323.836, Dec = -50.1015
tmin = 505526401, tmax = 505785601
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='605957', job_status='RUN', time_executed='2021-09-26 19:57:42.904248', time_epoch_executed='1632711462.9' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1027'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605957

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605957/ft1_4FGL_J2135.3-5006_daily_bin1027.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605957/ft2_4FGL_J2135.3-5006_daily_bin1027.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605957/ft1_4FGL_J2135.3-5006_daily_bin1027.fits outfile=/scratch/kocevski/605957/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1027.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=505526401.0 tmax=505785601.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.60
user 3.36
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/605957/ft2_4FGL_J2135.3-5006_daily_bin1027.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/605957/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1027.fits evtable="EVENTS" outfile="/scratch/kocevski/605957/ft1_filtered_4FGL_J2135.3-5006_daily_bin1027.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/605957/ft1_filtered_4FGL_J2135.3-5006_daily_bin1027.fits" evtable="EVENTS" scfile=/scratch/kocevski/605957/ft2_4FGL_J2135.3-5006_daily_bin1027.fits sctable="SC_DATA" outfile=/scratch/kocevski/605957/ltcube_505526401_505785601_4FGL_J2135.3-5006_daily_bin1027.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/605957/ft2_4FGL_J2135.3-5006_daily_bin1027.fits
.....................!
real 13.23
user 12.87
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605957/ft1_filtered_4FGL_J2135.3-5006_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/605957/ft2_4FGL_J2135.3-5006_daily_bin1027.fits sctable="SC_DATA" expcube=/scratch/kocevski/605957/ltcube_505526401_505785601_4FGL_J2135.3-5006_daily_bin1027.fits outfile=/scratch/kocevski/605957/expmap_505526401_505785601_4FGL_J2135.3-5006_daily_bin1027.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/605957/ltcube_505526401_505785601_4FGL_J2135.3-5006_daily_bin1027.fits
.....................!
real 191.69
user 186.22
sys 4.76

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/605957/ft1_filtered_4FGL_J2135.3-5006_daily_bin1027.fits scfile=/scratch/kocevski/605957/ft2_4FGL_J2135.3-5006_daily_bin1027.fits outfile=/scratch/kocevski/605957/cmap_505526401_505785601_4FGL_J2135.3-5006_daily_bin1027.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605957/ft1_filtered_4FGL_J2135.3-5006_daily_bin1027.fits scfile=/scratch/kocevski/605957/ft2_4FGL_J2135.3-5006_daily_bin1027.fits outfile=/scratch/kocevski/605957/cmap_HighResolution_505526401_505785601_4FGL_J2135.3-5006_daily_bin1027.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/605957/ft1_filtered_4FGL_J2135.3-5006_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/605957/ft2_4FGL_J2135.3-5006_daily_bin1027.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/605957/Model_4FGL_J2135.3-5006_daily_bin1027.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/605957/ft1_filtered_4FGL_J2135.3-5006_daily_bin1027.fits.....................!
real 45.45
user 44.05
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/605957/ft1_filtered_4FGL_J2135.3-5006_daily_bin1027.fits', '/scratch/kocevski/605957/ft2_4FGL_J2135.3-5006_daily_bin1027.fits', expMap='/scratch/kocevski/605957/expmap_505526401_505785601_4FGL_J2135.3-5006_daily_bin1027.fits', expCube='/scratch/kocevski/605957/ltcube_505526401_505785601_4FGL_J2135.3-5006_daily_bin1027.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/605957/Model_4FGL_J2135.3-5006_daily_bin1027.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/605957/ft1_filtered_4FGL_J2135.3-5006_daily_bin1027.fits
Spacecraft file(s): /scratch/kocevski/605957/ft2_4FGL_J2135.3-5006_daily_bin1027.fits
Exposure map: /scratch/kocevski/605957/expmap_505526401_505785601_4FGL_J2135.3-5006_daily_bin1027.fits
Exposure cube: /scratch/kocevski/605957/ltcube_505526401_505785601_4FGL_J2135.3-5006_daily_bin1027.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/605957/Model_4FGL_J2135.3-5006_daily_bin1027.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) = 5507.54100106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1260       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7867       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.7410       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    237.50       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7729       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.935       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.8269       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2903       1.0000         .10000E-03   10000.    
    11 'norm      '    11.445       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    117.38       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .69073       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3025       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.710       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86803       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96739       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=   5507.536     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2731 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1733        245.70       -.97531E-05   -.67404E-05
   2  Prefactor     3.7867        2.9080        .13930E-06    .26531E-03
   3  Prefactor     .10000E-03    19.933       -.96728E-06** at limit **
   4  norm          2.7411        1.9801        .35790E-06    .66141E-03
   5  Prefactor     .10000E-03    125.15       -.33056E-05** at limit **
   6  Prefactor     237.51        128.15        .80290E-06    .24886E-04
   7  Prefactor     6.7742        11.970        .64336E-06    .14052E-03
   8  Prefactor     32.940        42.736        .24810E-06    .56005E-04
   9  Prefactor     9.8284        29.929       -.54416E-06    .11791E-03
  10  Prefactor     2.2912        6.6218        .92208E-05    .15715E-04
  11  norm          11.445        7.2915       -.82533E-07    .10653E-03
  12  Prefactor     .10000E-03    7.1960       -.37321E-07** at limit **
  13  Prefactor     117.39        54.670       -.42052E-06    .98318E-04
  14  Prefactor     .10000E-03    5.6047       -.43194E-07** at limit **
  15  Prefactor     .10000E-03    2.1398       -.41157E-06** at limit **
  16  Prefactor     .10000E-03    35.342       -.23233E-06** at limit **
  17  norm          .10000E-03    2.7254       -.60622E-07** at limit **
  18  Prefactor     .69886        3.7353        .14281E-05   -.84494E-04
  19  Prefactor     3.3043        6.1323       -.52265E-07   -.13494E-03
  20  Prefactor     .10000E-03    24.035        .99966E-06** at limit **
  21  Prefactor     14.712        12.573        .13178E-06   -.15647E-03
  22  Prefactor     .10000E-03    135.59        .23355E-05** at limit **
  23  Normalizat    .86782        .23674       -.44487E-05    .25735E-03
  24  Prefactor     .96750        .13985        .11604E-05    .43558E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.17331
  Prefactor  = 3.78672
  Prefactor  = 0.000100001
  norm       = 2.74112
  Prefactor  = 0.000100002
  Prefactor  = 237.505
  Prefactor  = 6.77422
  Prefactor  = 32.9402
  Prefactor  = 9.8284
  Prefactor  = 2.29118
  norm       = 11.4446
  Prefactor  = 0.0001
  Prefactor  = 117.386
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.698856
  Prefactor  = 3.3043
  Prefactor  = 0.000100001
  Prefactor  = 14.712
  Prefactor  = 0.0001
  Normalizat = 0.867823
  Prefactor  = 0.9675
 **********
 **   18 **HESSE 
 **********

 FCN=   5507.536     FROM HESSE     STATUS=OK           399 CALLS     3130 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1733        245.47        .13267E-03   -1.5102    
   2  Prefactor     3.7867        2.9050        .10600E-03   -1.5319    
   3  Prefactor     .10000E-03    20.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.7411        1.9776        .42328E-03   -1.5377    
   5  Prefactor     .10000E-03    126.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     237.51        128.21        .26269E-04   -1.2613    
   7  Prefactor     6.7742        11.935        .77088E-03   -1.5187    
   8  Prefactor     32.940        42.718        .69823E-04   -1.4559    
   9  Prefactor     9.8284        29.992        .12783E-03   -1.5081    
  10  Prefactor     2.2912        6.6506        .13562E-02   -1.5405    
  11  norm          11.445        7.2858        .11842E-03   -1.5031    
  12  Prefactor     .10000E-03    7.2662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     117.39        54.970        .37139E-04   -1.3537    
  14  Prefactor     .10000E-03    5.6429        .17142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.1873        .10609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    35.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.7270        .11966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .69886        6.8356        .26135E-02   -1.5541    
  19  Prefactor     3.3043        6.1577        .22278E-03   -1.5344    
  20  Prefactor     .10000E-03    24.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.712        12.594        .10443E-03   -1.4941    
  22  Prefactor     .10000E-03    135.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .86782        .27742        .30488E-03   -.97600    
  24  Prefactor     .96750        .16608        .19583E-03   -.93821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40721e-08
Minuit parameter uncertainties:
  1  95.3429
  2  2.9051
  3  0.000264387
  4  1.97768
  5  0.000991218
  6  128.364
  7  11.9388
  8  42.7572
  9  30.0381
  10  6.65274
  11  7.28635
  12  5.00783e-06
  13  54.9942
  14  9.86016e-06
  15  4.38502e-05
  16  9.03051e-06
  17  6.90552e-06
  18  4.37164
  19  6.15885
  20  0.000245577
  21  12.5966
  22  0.000223631
  23  0.277872
  24  0.166163
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  2.291e+00  6.653e+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:  9.675e-01  1.662e-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.678e-01  2.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 323.836 -50.102
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/605957/likelihoodResults_505526401_505785601_4FGL_J2135.3-5006_daily_bin1027.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) = 5507.34038717
delta logL = 0.19551905096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5507.33077137
delta logL = 0.205134854196

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6930       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2589       1.0000          .0000       10.000    
     3 'Normalizat'    .83549       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97892       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.

 FCN=   5507.331     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      220 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6861        50.167        .80866E-02    .63218E-03
   2  Index         3.2618        3.5552        .21573        .53713E-04
   3  Normalizat    .83522        .46218E-01    .70091E-01   -.86066E-04
   4  Prefactor     .97905        .31510E-01    .46003E-01   -.26675E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.68609
  Index      = 3.26182
  Normalizat = 0.835217
  Prefactor  = 0.979047
 **********
 **   18 **HESSE 
 **********

 FCN=   5507.331     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6861        5.7257        .12710E-03   -1.5448    
   2  Index         3.2618        1.8702        .77168E-02   -.35505    
   3  Normalizat    .83522        .24067        .31014E-03   -.98775    
   4  Prefactor     .97905        .15913        .19475E-03   -.93431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25424e-08
Minuit parameter uncertainties:
  1  5.72755
  2  1.92379
  3  0.240978
  4  0.159209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605957': 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) = 5507.33076865
delta logL = 0.205137575359

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.686e+00  5.728e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  3.262e+00  1.924e+00  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:  9.790e-01  1.592e-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.352e-01  2.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 323.836 -50.102

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/605957/cmap_HighResolution_505526401_505785601_4FGL_J2135.3-5006_daily_bin1027.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2021-09-26 20:08:13.740317', job_id='605957', GAL2='0.98', fit_tolerance='1e-08', EG2='0.84', EG='0.87', time_epoch_completed='1632712093.74', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.05e-01', ts2='0.58', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1027' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:08:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 605957: <4FGL_J2135.3-5006_daily_bin1027> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1027 323.836 -50.1015 505526401 505785601 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 :                                   628.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            771 sec.

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

