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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1099
RA = 323.836, Dec = -50.1015
tmin = 524188801, tmax = 524448001
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='606060', job_status='RUN', time_executed='2021-09-26 19:58:31.078500', time_epoch_executed='1632711511.08' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1099'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606060

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606060/ft1_4FGL_J2135.3-5006_daily_bin1099.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606060/ft2_4FGL_J2135.3-5006_daily_bin1099.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606060/ft1_4FGL_J2135.3-5006_daily_bin1099.fits outfile=/scratch/kocevski/606060/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1099.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=524188801.0 tmax=524448001.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.46
user 3.20
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/606060/ft2_4FGL_J2135.3-5006_daily_bin1099.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/606060/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1099.fits evtable="EVENTS" outfile="/scratch/kocevski/606060/ft1_filtered_4FGL_J2135.3-5006_daily_bin1099.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606060/ft1_filtered_4FGL_J2135.3-5006_daily_bin1099.fits" evtable="EVENTS" scfile=/scratch/kocevski/606060/ft2_4FGL_J2135.3-5006_daily_bin1099.fits sctable="SC_DATA" outfile=/scratch/kocevski/606060/ltcube_524188801_524448001_4FGL_J2135.3-5006_daily_bin1099.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/606060/ft2_4FGL_J2135.3-5006_daily_bin1099.fits
.....................!
real 14.76
user 14.28
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606060/ft1_filtered_4FGL_J2135.3-5006_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/606060/ft2_4FGL_J2135.3-5006_daily_bin1099.fits sctable="SC_DATA" expcube=/scratch/kocevski/606060/ltcube_524188801_524448001_4FGL_J2135.3-5006_daily_bin1099.fits outfile=/scratch/kocevski/606060/expmap_524188801_524448001_4FGL_J2135.3-5006_daily_bin1099.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/606060/ltcube_524188801_524448001_4FGL_J2135.3-5006_daily_bin1099.fits
.....................!
real 191.14
user 185.18
sys 5.31

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/606060/ft1_filtered_4FGL_J2135.3-5006_daily_bin1099.fits scfile=/scratch/kocevski/606060/ft2_4FGL_J2135.3-5006_daily_bin1099.fits outfile=/scratch/kocevski/606060/cmap_524188801_524448001_4FGL_J2135.3-5006_daily_bin1099.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606060/ft1_filtered_4FGL_J2135.3-5006_daily_bin1099.fits scfile=/scratch/kocevski/606060/ft2_4FGL_J2135.3-5006_daily_bin1099.fits outfile=/scratch/kocevski/606060/cmap_HighResolution_524188801_524448001_4FGL_J2135.3-5006_daily_bin1099.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/606060/ft1_filtered_4FGL_J2135.3-5006_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/606060/ft2_4FGL_J2135.3-5006_daily_bin1099.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/606060/Model_4FGL_J2135.3-5006_daily_bin1099.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/606060/ft1_filtered_4FGL_J2135.3-5006_daily_bin1099.fits.....................!
real 51.03
user 49.67
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8048       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.9195       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .41663E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6417       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12268E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21524       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .73917       1.0000         .10000E-03   10000.    
    11 'norm      '    8.1400       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16661E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5416       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7325       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.1855       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15641       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2947       1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.840       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90067       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0430       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=   6738.780     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     2838 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.780       -.15815E-05** at limit **
   2  Prefactor     1.8055        2.0923        .58782E-07    .10764E-04
   3  Prefactor     .10000E-03    6.3825        .16097E-06** at limit **
   4  norm          2.9190        1.9762        .18896E-07   -.35556E-04
   5  Prefactor     .10000E-03    40.118        .16054E-05** at limit **
   6  Prefactor     .10012E-03    211.47       -.16008E-04** at limit **
   7  Prefactor     1.6407        6.2762        .26484E-06    .48089E-03
   8  Prefactor     .10000E-03    94.352        .33977E-05** at limit **
   9  Prefactor     .93371E-03    18.853       -.24001E-05** at limit **
  10  Prefactor     .74017        3.2954        .40584E-06    .18280E-03
  11  norm          8.1358        4.4614        .43671E-07   -.16550E-04
  12  Prefactor     .10000E-03    4.5301        .33769E-06** at limit **
  13  Prefactor     .10000E-03    10.554        .85622E-07** at limit **
  14  Prefactor     2.5407        4.4922       -.75106E-07    .21518E-03
  15  Prefactor     1.7331        3.6019       -.41555E-06   -.11393E-03
  16  Prefactor     .10000E-03    31.074       -.27603E-06** at limit **
  17  norm          3.1854        3.6022       -.49294E-08   -.22387E-04
  18  Prefactor     .15531        4.0915       -.23029E-05    .13158E-02
  19  Prefactor     2.2927        4.1737       -.50072E-06   -.19424E-03
  20  Prefactor     31.804        30.058       -.14406E-05   -.16060E-03
  21  Prefactor     .10000E-03    5.6474       -.28298E-05** at limit **
  22  Prefactor     .10000E-03    29.850        .15948E-06** at limit **
  23  Normalizat    .90117        .20685        .31432E-05   -.10189E-03
  24  Prefactor     1.0427        .13153       -.24423E-05   -.24053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 1.80548
  Prefactor  = 0.0001
  norm       = 2.91903
  Prefactor  = 0.000100001
  Prefactor  = 0.000100122
  Prefactor  = 1.64073
  Prefactor  = 0.000100005
  Prefactor  = 0.000933712
  Prefactor  = 0.74017
  norm       = 8.1358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.54071
  Prefactor  = 1.73312
  Prefactor  = 0.0001
  norm       = 3.18543
  Prefactor  = 0.155312
  Prefactor  = 2.29272
  Prefactor  = 31.8044
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 0.901168
  Prefactor  = 1.0427
 **********
 **   18 **HESSE 
 **********

 FCN=   6738.780     FROM HESSE     STATUS=OK           409 CALLS     3247 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8055        2.0771        .12299E-03   -1.5439    
   3  Prefactor     .10000E-03    6.3961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9190        1.9701        .90187E-04   -1.5366    
   5  Prefactor     .10000E-03    40.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10012E-03    222.88        .21245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6407        6.5051        .16487E-02   -1.5452    
   8  Prefactor     .10000E-03    98.414        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .93371E-03    21.560        .95679E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .74017        3.2978        .28311E-03   -1.5536    
  11  norm          8.1358        4.4501        .12383E-03   -1.5137    
  12  Prefactor     .10000E-03    24.160        .33771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5407        4.4763        .11155E-02   -1.5389    
  15  Prefactor     1.7331        3.5763        .20807E-03   -1.5445    
  16  Prefactor     .10000E-03    31.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.1854        3.6034        .16166E-03   -1.5351    
  18  Prefactor     .15531        12.316        .20390E-02   -1.5629    
  19  Prefactor     2.2927        4.1448        .21228E-03   -1.5405    
  20  Prefactor     31.804        30.047        .71010E-04   -1.4579    
  21  Prefactor     .10000E-03    5.8551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .90117        .22733        .28768E-03   -.96419    
  24  Prefactor     1.0427        .14543        .18663E-03   -.91320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25895e-08
Minuit parameter uncertainties:
  1  0.000431725
  2  2.07716
  3  1.65402e-05
  4  1.97011
  5  0.000461613
  6  0.0104632
  7  6.50791
  8  0.00134485
  9  0.268239
  10  3.12476
  11  4.45031
  12  0.000182203
  13  1.23356e-05
  14  4.4769
  15  3.57677
  16  5.29573e-05
  17  3.60361
  18  2.76584
  19  4.14532
  20  30.0608
  21  0.000246241
  22  7.09519e-05
  23  0.22757
  24  0.145482
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  7.402e-01  3.125e+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.043e+00  1.455e-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:  9.012e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/606060/likelihoodResults_524188801_524448001_4FGL_J2135.3-5006_daily_bin1099.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) = 6738.78005891
delta logL = 0.000368483143575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6738.78001797
delta logL = 0.000409423673773

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72210       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4772       1.0000          .0000       10.000    
     3 'Normalizat'    .90069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0428       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6738.780     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      285 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72372        3.5417        .27723E-03   -.23867E-04
   2  Index         2.4780        1.6765        .10455E-01   -.37546E-05
   3  Normalizat    .90087        .20048        .28773E-03    .57293E-05
   4  Prefactor     1.0428        .13923        .18662E-03   -.11026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.723721
  Index      = 2.47803
  Normalizat = 0.900869
  Prefactor  = 1.0428
 **********
 **   18 **HESSE 
 **********

 FCN=   6738.780     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72372        3.3643        .11089E-04   -1.5538    
   2  Index         2.4780        1.6368        .41822E-03   -.52868    
   3  Normalizat    .90087        .20067        .11509E-04   -.96430    
   4  Prefactor     1.0428        .13933        .74648E-05   -.91316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94034e-12
Minuit parameter uncertainties:
  1  3.12083
  2  1.67876
  3  0.200839
  4  0.139382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606060': 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) = 6738.7800164
delta logL = 0.000410996044593

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  7.237e-01  3.121e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.478e+00  1.679e+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.043e+00  1.394e-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:  9.009e-01  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/606060/cmap_HighResolution_524188801_524448001_4FGL_J2135.3-5006_daily_bin1099.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-03', job_status='DONE', photon_flux_upper_limit='7.97e-08', time_completed='2021-09-26 20:10:51.190204', job_id='606060', GAL2='1.04', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632712251.19', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='4.11e-04', ts2='0.07', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1099' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:10:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 606060: <4FGL_J2135.3-5006_daily_bin1099> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1099 323.836 -50.1015 524188801 524448001 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 :                                   720.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            920 sec.

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

