/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 8 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2135.3-5006_daily_bin323
RA = 323.836, Dec = -50.1015
tmin = 323049601, tmax = 323308801
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='602810', job_status='RUN', time_executed='2021-09-26 19:46:05.036239', time_epoch_executed='1632710765.04' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/602810

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/602810/ft1_4FGL_J2135.3-5006_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/602810/ft2_4FGL_J2135.3-5006_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/602810/ft1_4FGL_J2135.3-5006_daily_bin323.fits outfile=/scratch/kocevski/602810/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin323.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=323049601.0 tmax=323308801.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.37
user 3.12
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/602810/ft1_filtered_4FGL_J2135.3-5006_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/602810/ft2_4FGL_J2135.3-5006_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/602810/ltcube_323049601_323308801_4FGL_J2135.3-5006_daily_bin323.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/602810/ft2_4FGL_J2135.3-5006_daily_bin323.fits
.....................!
real 15.20
user 14.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/602810/ft1_filtered_4FGL_J2135.3-5006_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/602810/ft2_4FGL_J2135.3-5006_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/602810/ltcube_323049601_323308801_4FGL_J2135.3-5006_daily_bin323.fits outfile=/scratch/kocevski/602810/expmap_323049601_323308801_4FGL_J2135.3-5006_daily_bin323.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/602810/ltcube_323049601_323308801_4FGL_J2135.3-5006_daily_bin323.fits
.....................!
real 191.18
user 185.73
sys 4.92

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/602810/ft1_filtered_4FGL_J2135.3-5006_daily_bin323.fits scfile=/scratch/kocevski/602810/ft2_4FGL_J2135.3-5006_daily_bin323.fits outfile=/scratch/kocevski/602810/cmap_323049601_323308801_4FGL_J2135.3-5006_daily_bin323.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/602810/ft1_filtered_4FGL_J2135.3-5006_daily_bin323.fits scfile=/scratch/kocevski/602810/ft2_4FGL_J2135.3-5006_daily_bin323.fits outfile=/scratch/kocevski/602810/cmap_HighResolution_323049601_323308801_4FGL_J2135.3-5006_daily_bin323.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.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/602810/ft1_filtered_4FGL_J2135.3-5006_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/602810/ft2_4FGL_J2135.3-5006_daily_bin323.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/602810/Model_4FGL_J2135.3-5006_daily_bin323.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/602810/ft1_filtered_4FGL_J2135.3-5006_daily_bin323.fits.....................!
real 64.20
user 62.59
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12727E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.5829       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.710       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13567       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1666       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3574       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3729       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7203       1.0000         .10000E-03   10000.    
    11 'norm      '    3.0693       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2082       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.837       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7737       1.0000         .10000E-03   10000.    
    16 'Prefactor '    47.220       1.0000         .10000E-03   10000.    
    17 'norm      '    13.844       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8414       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4420       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10512E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14434       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14124E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .68024       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1597       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=   8733.009     FROM MIGRAD    STATUS=CONVERGED   1042 CALLS     3240 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.944        .18142E-02** at limit **
   2  Prefactor     .10000E-03    1.5765        .22402E-03** at limit **
   3  Prefactor     .10000E-03    13.973        .18142E-02** at limit **
   4  norm          9.5821        2.2974        .65610E-04   -.20551E-03
   5  Prefactor     29.645        31.886        .73505E-04   -.11031E-03
   6  Prefactor     .10001E-03    48.591        .21007    ** at limit **
   7  Prefactor     9.1565        7.6836        .13238E-03   -.92581E-04
   8  Prefactor     5.3507        14.424        .17363E-03   -.37584E-04
   9  Prefactor     2.3581        37.447        .26597E-03    .96602E-05
  10  Prefactor     4.7182        3.6759        .15000E-03   -.16583E-03
  11  norm          3.0669        3.1789        .16202E-03   -.88971E-04
  12  Prefactor     9.2100        7.3201        .13207E-03   -.40284E-04
  13  Prefactor     .10000E-03    14.471        .18142E-02** at limit **
  14  Prefactor     13.855        12.034        .10768E-03   -.14887E-03
  15  Prefactor     2.7730        3.3329        .17717E-03   -.16825E-03
  16  Prefactor     47.094        132.09        .58351E-04   -.22133E-04
  17  norm          13.848        7.6078        .10765E-03   -.57451E-04
  18  Prefactor     1.8399        3.4225        .22163E-03   -.19215E-03
  19  Prefactor     6.4361        5.0092        .15813E-03   -.20102E-03
  20  Prefactor     .10000E-03    16.195        .18142E-02** at limit **
  21  Prefactor     .69616E-01    11.443        .66540E-01    .22388E-03
  22  Prefactor     .10000E-03    54.529        .18142E-02** at limit **
  23  Normalizat    .68060        .21088        .34387E-03   -.35574E-03
  24  Prefactor     1.1597        .13386        .18847E-03   -.21189E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.58208
  Prefactor  = 29.6448
  Prefactor  = 0.000100014
  Prefactor  = 9.15654
  Prefactor  = 5.35071
  Prefactor  = 2.35808
  Prefactor  = 4.71825
  norm       = 3.06686
  Prefactor  = 9.21
  Prefactor  = 0.0001
  Prefactor  = 13.8553
  Prefactor  = 2.77301
  Prefactor  = 47.0939
  norm       = 13.8483
  Prefactor  = 1.83992
  Prefactor  = 6.4361
  Prefactor  = 0.0001
  Prefactor  = 0.0696159
  Prefactor  = 0.0001
  Normalizat = 0.680597
  Prefactor  = 1.15966
 **********
 **   18 **HESSE 
 **********

 FCN=   8733.009     FROM HESSE     STATUS=OK           393 CALLS     3633 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.944        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.5766        .44804E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.5821        2.2973        .26244E-05   -1.5089    
   5  Prefactor     29.645        31.885        .14701E-04   -1.4618    
   6  Prefactor     .10001E-03    49.529        .20684       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.1565        7.6825        .52950E-05   -1.5103    
   8  Prefactor     5.3507        14.424        .69451E-05   -1.5245    
   9  Prefactor     2.3581        37.438        .10639E-04   -1.5401    
  10  Prefactor     4.7182        3.6755        .60002E-05   -1.5274    
  11  norm          3.0669        3.1787        .64810E-05   -1.5358    
  12  Prefactor     9.2100        7.3196        .52830E-05   -1.5101    
  13  Prefactor     .10000E-03    14.472        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.855        12.033        .43071E-05   -1.4963    
  15  Prefactor     2.7730        3.3326        .70867E-05   -1.5375    
  16  Prefactor     47.094        132.10        .11670E-04   -1.4334    
  17  norm          13.848        7.6076        .43060E-05   -1.4964    
  18  Prefactor     1.8399        3.4215        .88652E-05   -1.5437    
  19  Prefactor     6.4361        5.0090        .63252E-05   -1.5201    
  20  Prefactor     .10000E-03    16.197        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .69616E-01    9.1662        .76124E-01   -1.5655    
  22  Prefactor     .10000E-03    54.530        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .68060        .21064        .13755E-04   -1.0466    
  24  Prefactor     1.1597        .13389        .37694E-04   -.87582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01495e-10
Minuit parameter uncertainties:
  1  1.90435e-05
  2  1.31798e-05
  3  8.71646e-05
  4  2.29731
  5  31.9033
  6  0.00166803
  7  7.68334
  8  14.4331
  9  18.8052
  10  3.67565
  11  3.17884
  12  7.32032
  13  1.27813e-05
  14  12.0347
  15  3.33279
  16  132.93
  17  7.60813
  18  3.42184
  19  5.00935
  20  2.53104e-05
  21  1.59674
  22  2.27505e-06
  23  0.210891
  24  0.133926
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  4.718e+00  3.676e+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.160e+00  1.339e-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:  6.806e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.84
Ra Dec: 323.836 -50.102
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.12e-08 +/- 3.20e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.01e-05

TS (Fixed Index): 2.84
Ra Dec: 323.836 -50.102
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/602810/likelihoodResults_323049601_323308801_4FGL_J2135.3-5006_daily_bin323.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) = 8732.85095356
delta logL = 0.158214766467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8732.8443176
delta logL = 0.164850725374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4736       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9261       1.0000          .0000       10.000    
     3 'Normalizat'    .65627       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1697       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=   8732.844     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      298 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4740        5.1030        .11214E-03    .71515E-03
   2  Index         2.9259        1.1973        .83616E-02    .11656E-03
   3  Normalizat    .65630        .19357        .34955E-03    .25551E-03
   4  Prefactor     1.1696        .13251        .18774E-03    .62839E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.47402
  Index      = 2.92588
  Normalizat = 0.656301
  Prefactor  = 1.16963
 **********
 **   18 **HESSE 
 **********

 FCN=   8732.844     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4740        4.0715        .44854E-05   -1.5335    
   2  Index         2.9259        .95774        .33446E-03   -.42775    
   3  Normalizat    .65630        .19180        .13982E-04   -1.0564    
   4  Prefactor     1.1696        .13178        .37548E-04   -.87271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65172e-10
Minuit parameter uncertainties:
  1  4.07181
  2  0.964963
  3  0.191999
  4  0.131813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/602810': 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) = 8732.84431745
delta logL = 0.164850877214

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.170e+00  1.318e-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:  6.563e-01  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.21
Ra Dec: 323.836 -50.102
Photon Index (Free Index): 2.93 +/- 0.96
Photon Flux (Free Index): 6.03e-08 +/- 4.94e-08
Energy Flux (Free Index): 1.25e-05 +/- 8.53e-06

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.52e-03', comment='SUCCESS', photon_flux='4.12e-08', energy_flux2='1.25e-05', photon_flux_error='3.20e-08', dlogl='1.65e-01', energy_flux='1.30e-05', photon_flux2='6.03e-08', job_status='DONE', time_completed='2021-09-26 20:00:59.227656', photon_index_error2='0.96', photon_index2='2.93', ts='2.84', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='8.53e-06', EG='0.68', time_epoch_completed='1632711659.23', return_code='0', job_id='602810', GAL2='1.17', EG2='0.66', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='4.94e-08', ts2='3.21', photon_index='2.43' WHERE bin_id='323' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:00:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 602810: <4FGL_J2135.3-5006_daily_bin323> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin323> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 19:45:22 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:45:46 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:45:46 2021
Terminated at Sun Sep 26 20:01:00 2021
Results reported at Sun Sep 26 20:01:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin323 323.836 -50.1015 323049601 323308801 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 :                                   887.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             342.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            938 sec.

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

