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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1657
RA = 323.836, Dec = -50.1015
tmin = 668822401, tmax = 669081601
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='530619', job_status='RUN', time_executed='2022-03-16 01:18:09.392549', time_epoch_executed='1647418689.39' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1657'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530619

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530619/ft1_4FGL_J2135.3-5006_daily_bin1657.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530619/ft2_4FGL_J2135.3-5006_daily_bin1657.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530619/ft1_4FGL_J2135.3-5006_daily_bin1657.fits outfile=/scratch/kocevski/530619/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1657.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=668822401.0 tmax=669081601.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 5.68
user 5.33
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/530619/ft2_4FGL_J2135.3-5006_daily_bin1657.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/530619/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1657.fits evtable="EVENTS" outfile="/scratch/kocevski/530619/ft1_filtered_4FGL_J2135.3-5006_daily_bin1657.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
Number of photons that survived the gtmktime cut: 532

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530619/ft1_filtered_4FGL_J2135.3-5006_daily_bin1657.fits" evtable="EVENTS" scfile=/scratch/kocevski/530619/ft2_4FGL_J2135.3-5006_daily_bin1657.fits sctable="SC_DATA" outfile=/scratch/kocevski/530619/ltcube_668822401_669081601_4FGL_J2135.3-5006_daily_bin1657.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/530619/ft2_4FGL_J2135.3-5006_daily_bin1657.fits
.....................!
real 13.24
user 12.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530619/ft1_filtered_4FGL_J2135.3-5006_daily_bin1657.fits evtable="EVENTS" scfile=/scratch/kocevski/530619/ft2_4FGL_J2135.3-5006_daily_bin1657.fits sctable="SC_DATA" expcube=/scratch/kocevski/530619/ltcube_668822401_669081601_4FGL_J2135.3-5006_daily_bin1657.fits outfile=/scratch/kocevski/530619/expmap_668822401_669081601_4FGL_J2135.3-5006_daily_bin1657.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/530619/ltcube_668822401_669081601_4FGL_J2135.3-5006_daily_bin1657.fits
.....................!
real 192.46
user 185.36
sys 4.77

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/530619/ft1_filtered_4FGL_J2135.3-5006_daily_bin1657.fits scfile=/scratch/kocevski/530619/ft2_4FGL_J2135.3-5006_daily_bin1657.fits outfile=/scratch/kocevski/530619/cmap_668822401_669081601_4FGL_J2135.3-5006_daily_bin1657.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/530619/ft1_filtered_4FGL_J2135.3-5006_daily_bin1657.fits scfile=/scratch/kocevski/530619/ft2_4FGL_J2135.3-5006_daily_bin1657.fits outfile=/scratch/kocevski/530619/cmap_HighResolution_668822401_669081601_4FGL_J2135.3-5006_daily_bin1657.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/530619/ft1_filtered_4FGL_J2135.3-5006_daily_bin1657.fits evtable="EVENTS" scfile=/scratch/kocevski/530619/ft2_4FGL_J2135.3-5006_daily_bin1657.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/530619/Model_4FGL_J2135.3-5006_daily_bin1657.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/530619/ft1_filtered_4FGL_J2135.3-5006_daily_bin1657.fits.....................!
real 48.09
user 46.23
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.575       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3442       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.141       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2431       1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.372       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14947E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11246E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.4253       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7723       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3233       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6254       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.9051       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.151       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0283       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2426       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90640       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=   5793.707     FROM MIGRAD    STATUS=CONVERGED   1004 CALLS     3592 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.559        62.769        .54798E-04    .42738E-05
   2  Prefactor     3.3446        2.6043        .10365E-03   -.79412E-04
   3  Prefactor     15.121        25.102        .10293E-03    .12812E-04
   4  norm          1.2430        2.2585        .14410E-03   -.33768E-04
   5  Prefactor     52.359        64.823        .55420E-04    .75900E-05
   6  Prefactor     .10000E-03    30.548        .18142E-02** at limit **
   7  Prefactor     .10000E-03    3.7318        .14286E-02** at limit **
   8  Prefactor     .10000E-03    23.837        .10540    ** at limit **
   9  Prefactor     .10000E-03    20.317        .18142E-02** at limit **
  10  Prefactor     .10000E-03    4.3041        .37950E-01** at limit **
  11  norm          6.4238        5.0386        .14289E-03    .17170E-03
  12  Prefactor     .10000E-03    2.6485        .12095E-02** at limit **
  13  Prefactor     9.7816        49.254        .12819E-03    .47004E-05
  14  Prefactor     7.3237        9.0838        .74107E-03    .60505E-04
  15  Prefactor     2.6247        4.2706        .19056E-03    .32217E-05
  16  Prefactor     .10000E-03    54.576        .18142E-02** at limit **
  17  norm          4.9047        6.5335        .18161E-03    .56340E-05
  18  Prefactor     .10000E-03    1.4535        .89536E-03** at limit **
  19  Prefactor     .10000E-03    2.9474        .12735E-02** at limit **
  20  Prefactor     29.140        39.162        .74204E-04    .17925E-04
  21  Prefactor     4.0281        16.767        .20092E-03    .41249E-04
  22  Prefactor     .10000E-03    51.520        .18142E-02** at limit **
  23  Normalizat    1.2428        .28160        .28022E-03    .95786E-04
  24  Prefactor     .90638        .17228        .20928E-03    .11169E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.5587
  Prefactor  = 3.34461
  Prefactor  = 15.1211
  norm       = 1.24299
  Prefactor  = 52.3594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.42376
  Prefactor  = 0.0001
  Prefactor  = 9.78159
  Prefactor  = 7.32367
  Prefactor  = 2.62474
  Prefactor  = 0.0001
  norm       = 4.90474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.1402
  Prefactor  = 4.02809
  Prefactor  = 0.0001
  Normalizat = 1.24276
  Prefactor  = 0.906381
 **********
 **   18 **HESSE 
 **********

 FCN=   5793.707     FROM HESSE     STATUS=OK           395 CALLS     3987 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.559        62.766        .10960E-04   -1.4243    
   2  Prefactor     3.3446        2.6042        .41459E-05   -1.5342    
   3  Prefactor     15.121        25.100        .41172E-05   -1.4930    
   4  norm          1.2430        2.2580        .57638E-05   -1.5485    
   5  Prefactor     52.359        64.826        .11084E-04   -1.4260    
   6  Prefactor     .10000E-03    30.548        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.7327        .28571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.121        .10792       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.320        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5938        .43001E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.4238        5.0380        .57155E-05   -1.5201    
  12  Prefactor     .10000E-03    2.6485        .24189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.7816        49.205        .51275E-05   -1.5082    
  14  Prefactor     7.3237        9.0807        .29643E-04   -1.5167    
  15  Prefactor     2.6247        4.2702        .76223E-05   -1.5384    
  16  Prefactor     .10000E-03    54.577        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.9047        6.5334        .72644E-05   -1.5265    
  18  Prefactor     .10000E-03    1.4535        .17907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.9477        .25470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.140        39.134        .29682E-05   -1.4628    
  21  Prefactor     4.0281        16.741        .80367E-05   -1.5307    
  22  Prefactor     .10000E-03    51.520        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2428        .28193        .11209E-04   -.85292    
  24  Prefactor     .90638        .17246        .83711E-05   -.95918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0755e-11
Minuit parameter uncertainties:
  1  62.8433
  2  2.60432
  3  25.1172
  4  2.25816
  5  64.9131
  6  1.26194e-05
  7  7.45144e-06
  8  0.000129861
  9  4.86786e-05
  10  1.06675e-05
  11  5.03837
  12  1.74962e-06
  13  43.9348
  14  9.08243
  15  4.27066
  16  5.77965e-05
  17  6.53436
  18  8.71486e-07
  19  2.35023e-07
  20  39.1685
  21  16.4313
  22  5.15865e-05
  23  0.282273
  24  0.172568
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.067e-05  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.064e-01  1.726e-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:  1.243e+00  2.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 323.836 -50.102
Photon Flux Upper Limit: 8.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/530619/likelihoodResults_668822401_669081601_4FGL_J2135.3-5006_daily_bin1657.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) = 5793.70738378
delta logL = -3.03349934256e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5793.70738376
delta logL = -3.03176566376e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96345E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4302       1.0000          .0000       10.000    
     3 'Normalizat'    1.2427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90638       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=   5793.707     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      245 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10059E-03    .17614        .63615E-01** at limit **
   2  Index         2.5258        5.5369        .50000        .73003E-05
   3  Normalizat    1.2428        .16979E-02    .63351E-01    .96573E-04
   4  Prefactor     .90638        .11079E-02    .45086E-01    .16562E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100595
  Index      = 2.52577
  Normalizat = 1.24275
  Prefactor  = 0.906382
 **********
 **   18 **HESSE 
 **********

 FCN=   5793.707     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      286 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10059E-03    .56759        .36107E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5258        5.5577        .50000       -.51766    
   3  Normalizat    1.2428        .20973E-02    .28022E-03   -.85292    
   4  Prefactor     .90638        .13694E-02    .20928E-03   -.95918    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.11973e-09
Minuit parameter uncertainties:
  1  0.00116181
  2  35.221
  3  0.00209734
  4  0.00136936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530619': 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) = 5793.70735346
delta logL = -8.24547896627e-09

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.006e-04  1.162e-03  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.526e+00  3.522e+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:  9.064e-01  1.369e-03  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:  1.243e+00  2.097e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/530619/cmap_HighResolution_668822401_669081601_4FGL_J2135.3-5006_daily_bin1657.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.56e-03', job_status='DONE', photon_flux_upper_limit='8.48e-08', time_completed='2022-03-16 01:30:15.142005', job_id='530619', GAL2='0.91', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1647419415.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-8.25e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1657' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar 16 01:30:15 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 530619: <4FGL_J2135.3-5006_daily_bin1657> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1657> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Mar 16 01:15:39 2022
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar 16 01:17:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar 16 01:17:02 2022
Terminated at Wed Mar 16 01:30:16 2022
Results reported at Wed Mar 16 01:30:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1657 323.836 -50.1015 668822401 669081601 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 :                                   721.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            877 sec.

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

