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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1059
RA = 323.836, Dec = -50.1015
tmin = 513820801, tmax = 514080001
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='606003', job_status='RUN', time_executed='2021-09-26 19:59:22.366748', time_epoch_executed='1632711562.37' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606003

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606003/ft1_4FGL_J2135.3-5006_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606003/ft2_4FGL_J2135.3-5006_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606003/ft1_4FGL_J2135.3-5006_daily_bin1059.fits outfile=/scratch/kocevski/606003/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1059.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=513820801.0 tmax=514080001.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.83
user 3.56
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/606003/ft2_4FGL_J2135.3-5006_daily_bin1059.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/606003/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1059.fits evtable="EVENTS" outfile="/scratch/kocevski/606003/ft1_filtered_4FGL_J2135.3-5006_daily_bin1059.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/606003/ft1_filtered_4FGL_J2135.3-5006_daily_bin1059.fits" evtable="EVENTS" scfile=/scratch/kocevski/606003/ft2_4FGL_J2135.3-5006_daily_bin1059.fits sctable="SC_DATA" outfile=/scratch/kocevski/606003/ltcube_513820801_514080001_4FGL_J2135.3-5006_daily_bin1059.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/606003/ft2_4FGL_J2135.3-5006_daily_bin1059.fits
.....................!
real 16.13
user 15.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606003/ft1_filtered_4FGL_J2135.3-5006_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/606003/ft2_4FGL_J2135.3-5006_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/606003/ltcube_513820801_514080001_4FGL_J2135.3-5006_daily_bin1059.fits outfile=/scratch/kocevski/606003/expmap_513820801_514080001_4FGL_J2135.3-5006_daily_bin1059.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/606003/ltcube_513820801_514080001_4FGL_J2135.3-5006_daily_bin1059.fits
.....................!
real 195.68
user 189.56
sys 5.65

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/606003/ft1_filtered_4FGL_J2135.3-5006_daily_bin1059.fits scfile=/scratch/kocevski/606003/ft2_4FGL_J2135.3-5006_daily_bin1059.fits outfile=/scratch/kocevski/606003/cmap_513820801_514080001_4FGL_J2135.3-5006_daily_bin1059.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606003/ft1_filtered_4FGL_J2135.3-5006_daily_bin1059.fits scfile=/scratch/kocevski/606003/ft2_4FGL_J2135.3-5006_daily_bin1059.fits outfile=/scratch/kocevski/606003/cmap_HighResolution_513820801_514080001_4FGL_J2135.3-5006_daily_bin1059.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.59
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/606003/ft1_filtered_4FGL_J2135.3-5006_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/606003/ft2_4FGL_J2135.3-5006_daily_bin1059.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/606003/Model_4FGL_J2135.3-5006_daily_bin1059.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/606003/ft1_filtered_4FGL_J2135.3-5006_daily_bin1059.fits.....................!
real 51.41
user 50.04
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .13539E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4295       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.634       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.801       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0360       1.0000         .10000E-03   10000.    
    11 'norm      '    9.2399       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1657       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.532       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6967       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.3566       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.2857       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .63340E-01   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77351       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3270       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6465.772     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     2335 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10318E-03    21.023       -.51393E-05** at limit **
   2  Prefactor     .10000E-03    3.7908       -.45928E-07** at limit **
   3  Prefactor     .10005E-03    13.312        .97855E-06** at limit **
   4  norm          1.4296        2.1735       -.20657E-06   -.11700E-03
   5  Prefactor     .10290E-03    21.038        .32218E-05** at limit **
   6  Prefactor     .10001E-03    10.101       -.97323E-06** at limit **
   7  Prefactor     17.638        2.0666       -.14463E-06    .52316E-03
   8  Prefactor     .10004E-03    14.207       -.23961E-05** at limit **
   9  Prefactor     19.802        1.4386       -.91354E-07   -.23104E-03
  10  Prefactor     4.0371        5.7550       -.27471E-06   -.49941E-03
  11  norm          9.2418        1.3268       -.60321E-08    .33499E-03
  12  Prefactor     .10000E-03    7.9420       -.10901E-05** at limit **
  13  Prefactor     .10000E-03    12.142        .27600E-06** at limit **
  14  Prefactor     .10000E-03    8.4664        .15430E-05** at limit **
  15  Prefactor     2.1674        4.0386        .90279E-06    .31154E-03
  16  Prefactor     10.501        5.2594        .34547E-06    .25016E-03
  17  norm          .10000E-03    3.0222       -.12351E-06** at limit **
  18  Prefactor     .10000E-03    5.4369        .25825E-05** at limit **
  19  Prefactor     9.6953        1.3071        .16845E-06   -.70937E-03
  20  Prefactor     9.3856        19.385       -.48022E-05    .83473E-02
  21  Prefactor     8.2647        16.861        .12210E-05    .53523E-02
  22  Prefactor     .15822E-03    1575.1        .21798E-04** at limit **
  23  Normalizat    .77330        .25468        .35725E-05    .78868E-04
  24  Prefactor     1.3271        .16828       -.16386E-05   -.20014E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103177
  Prefactor  = 0.0001
  Prefactor  = 0.000100054
  norm       = 1.42962
  Prefactor  = 0.000102902
  Prefactor  = 0.000100013
  Prefactor  = 17.6384
  Prefactor  = 0.000100038
  Prefactor  = 19.8025
  Prefactor  = 4.03714
  norm       = 9.2418
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 2.16737
  Prefactor  = 10.5014
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.69529
  Prefactor  = 9.38563
  Prefactor  = 8.2647
  Prefactor  = 0.000158225
  Normalizat = 0.773295
  Prefactor  = 1.32705
 **********
 **   18 **HESSE 
 **********

 FCN=   6465.772     FROM HESSE     STATUS=OK           459 CALLS     2794 TOTAL
                     EDM=   .89E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10318E-03    30.264        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9061        .35804E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10005E-03    13.313        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4296        2.2078        .90343E-02   -1.5469    
   5  Prefactor     .10290E-03    29.378        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    29.831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.638        11.946        .23844E-02   -1.4868    
   8  Prefactor     .10004E-03    14.245        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.802        23.951        .22502E-02   -1.4818    
  10  Prefactor     4.0371        5.9746        .50180E-02   -1.5306    
  11  norm          9.2418        6.3258        .32962E-02   -1.5100    
  12  Prefactor     .10000E-03    7.8270        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.140        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.3465        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1674        4.0998        .69966E-02   -1.5414    
  16  Prefactor     10.501        214.37        .30865E-02   -1.5060    
  17  norm          .10000E-03    3.0199        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.2492        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.6953        7.6442        .32172E-02   -1.5085    
  20  Prefactor     9.3856        30.394        .32754E-02   -1.5095    
  21  Prefactor     8.2647        17.509        .34819E-02   -1.5133    
  22  Prefactor     .15822E-03    90.233        .24563       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .77330        .24046        .81289E-01   -1.0107    
  24  Prefactor     1.3271        .15082        .32155E-01   -.82506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89367e-07
Minuit parameter uncertainties:
  1  0.0196203
  2  1.64789e-06
  3  0.0016903
  4  2.20791
  5  0.0184761
  6  0.00123598
  7  11.9472
  8  0.00147949
  9  23.9629
  10  5.97552
  11  6.32622
  12  9.5494e-05
  13  0.000463919
  14  0.000144266
  15  4.10029
  16  95.2864
  17  4.89671e-06
  18  0.000140151
  19  7.64496
  20  30.444
  21  17.5198
  22  0.145185
  23  0.240794
  24  0.150868
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  4.037e+00  5.976e+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.327e+00  1.509e-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.733e-01  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/606003/likelihoodResults_513820801_514080001_4FGL_J2135.3-5006_daily_bin1059.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) = 6465.30555189
delta logL = 0.466230308265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6465.29365627
delta logL = 0.478125929582

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3729       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6537       1.0000          .0000       10.000    
     3 'Normalizat'    .72170       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3500       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=   6465.294     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      253 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3689        24.554        .92989E-02    .92494E-03
   2  Index         3.6558        3.6874        .13609        .14856E-03
   3  Normalizat    .72171        .59609E-01    .83849E-01    .55530E-04
   4  Prefactor     1.3500        .40478E-01    .31791E-01    .73379E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.36892
  Index      = 3.65577
  Normalizat = 0.721713
  Prefactor  = 1.34997
 **********
 **   18 **HESSE 
 **********

 FCN=   6465.294     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      286 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3689        53.784        .81301E-04   -1.5474    
   2  Index         3.6558        6.7242        .71485E-02   -.27219    
   3  Normalizat    .72171        .23562        .37132E-03   -1.0304    
   4  Prefactor     1.3500        .16447        .19057E-03   -.81833    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1975e-09
Minuit parameter uncertainties:
  1  17.177
  2  7.64609
  3  0.235953
  4  0.164529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606003': 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) = 6465.29365549
delta logL = 0.478126715721

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.369e+00  1.718e+01  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  3.656e+00  7.646e+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:  1.350e+00  1.645e-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.217e-01  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 323.836 -50.102
Photon Index (Free Index): 3.66 +/- 7.65
Photon Flux (Free Index): 7.35e-08 +/- 6.82e-08
Energy Flux (Free Index): 1.18e-05 +/- 2.53e-05

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/606003/cmap_HighResolution_513820801_514080001_4FGL_J2135.3-5006_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', energy_flux2='1.18e-05', dlogl='4.78e-01', photon_flux2='7.35e-08', job_status='DONE', time_completed='2021-09-26 20:10:55.160898', photon_index_error2='7.65', photon_index2='3.66', ts='0.55', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='2.53e-05', EG='0.77', time_epoch_completed='1632712255.16', return_code='0', job_id='606003', GAL2='1.35', EG2='0.72', return_code2='102', photon_flux_error2='6.82e-08', ts2='1.59', photon_index='2.43' WHERE bin_id='1059' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:10:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 606003: <4FGL_J2135.3-5006_daily_bin1059> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1059 323.836 -50.1015 513820801 514080001 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 :                                   682.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            929 sec.

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

