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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin724
RA = 323.836, Dec = -50.1015
tmin = 426988801, tmax = 427248001
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='604459', job_status='RUN', time_executed='2021-09-26 19:52:36.303200', time_epoch_executed='1632711156.3' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604459

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604459/ft1_4FGL_J2135.3-5006_daily_bin724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604459/ft2_4FGL_J2135.3-5006_daily_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604459/ft1_4FGL_J2135.3-5006_daily_bin724.fits outfile=/scratch/kocevski/604459/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin724.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=426988801.0 tmax=427248001.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.97
user 5.67
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/604459/ft2_4FGL_J2135.3-5006_daily_bin724.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/604459/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin724.fits evtable="EVENTS" outfile="/scratch/kocevski/604459/ft1_filtered_4FGL_J2135.3-5006_daily_bin724.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.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604459/ft1_filtered_4FGL_J2135.3-5006_daily_bin724.fits" evtable="EVENTS" scfile=/scratch/kocevski/604459/ft2_4FGL_J2135.3-5006_daily_bin724.fits sctable="SC_DATA" outfile=/scratch/kocevski/604459/ltcube_426988801_427248001_4FGL_J2135.3-5006_daily_bin724.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/604459/ft2_4FGL_J2135.3-5006_daily_bin724.fits
.....................!
real 16.50
user 16.10
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604459/ft1_filtered_4FGL_J2135.3-5006_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/604459/ft2_4FGL_J2135.3-5006_daily_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/604459/ltcube_426988801_427248001_4FGL_J2135.3-5006_daily_bin724.fits outfile=/scratch/kocevski/604459/expmap_426988801_427248001_4FGL_J2135.3-5006_daily_bin724.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/604459/ltcube_426988801_427248001_4FGL_J2135.3-5006_daily_bin724.fits
.....................!
real 195.01
user 188.69
sys 5.93

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/604459/ft1_filtered_4FGL_J2135.3-5006_daily_bin724.fits scfile=/scratch/kocevski/604459/ft2_4FGL_J2135.3-5006_daily_bin724.fits outfile=/scratch/kocevski/604459/cmap_426988801_427248001_4FGL_J2135.3-5006_daily_bin724.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.61
user 0.43
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604459/ft1_filtered_4FGL_J2135.3-5006_daily_bin724.fits scfile=/scratch/kocevski/604459/ft2_4FGL_J2135.3-5006_daily_bin724.fits outfile=/scratch/kocevski/604459/cmap_HighResolution_426988801_427248001_4FGL_J2135.3-5006_daily_bin724.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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/604459/ft1_filtered_4FGL_J2135.3-5006_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/604459/ft2_4FGL_J2135.3-5006_daily_bin724.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/604459/Model_4FGL_J2135.3-5006_daily_bin724.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/604459/ft1_filtered_4FGL_J2135.3-5006_daily_bin724.fits.....................!
real 58.67
user 57.16
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3336       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.284       1.0000         .10000E-03   10000.    
     4 'norm      '    4.5069       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.831       1.0000         .10000E-03   10000.    
     6 'Prefactor '    189.98       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .92745       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11952E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19337E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0513       1.0000         .10000E-03   10000.    
    11 'norm      '    3.6314       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5748       1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.231       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11357E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19842E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.860       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .25076E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2805       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93531       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=   6946.475     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     3312 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.877       -.19418E-07** at limit **
   2  Prefactor     3.3343        2.5556        .11942E-06   -.27892E-04
   3  Prefactor     13.310        23.268        .27766E-06   -.30469E-04
   4  norm          4.5079        2.2015        .57870E-08   -.15307E-03
   5  Prefactor     37.751        61.601        .19279E-05   -.10359E-03
   6  Prefactor     190.14        157.21        .28650E-05    .15552E-03
   7  Prefactor     .93096        8.6269        .39742E-05   -.39605E-04
   8  Prefactor     .10000E-03    60.827       -.16351E-05** at limit **
   9  Prefactor     .10001E-03    225.15        .17037E-05** at limit **
  10  Prefactor     9.0486        5.5575        .87499E-06   -.57449E-04
  11  norm          3.6314        3.5739       -.31938E-06   -.87050E-04
  12  Prefactor     4.5765        8.4248        .60429E-05   -.16644E-04
  13  Prefactor     61.171        66.402       -.89941E-06   -.81446E-04
  14  Prefactor     .10000E-03    32.749       -.31916E-05** at limit **
  15  Prefactor     .10000E-03    4.5939        .71148E-07** at limit **
  16  Prefactor     .10000E-03    51.779       -.12294E-06** at limit **
  17  norm          12.855        9.5339        .68305E-08   -.27074E-04
  18  Prefactor     .10000E-03    3.8418       -.13598E-06** at limit **
  19  Prefactor     .10000E-03    4.3328       -.58020E-07** at limit **
  20  Prefactor     .10000E-03    15.929       -.27008E-07** at limit **
  21  Prefactor     .15569        9.0327        .64539E-06   -.16091E-03
  22  Prefactor     .10000E-03    49.752        .30788E-06** at limit **
  23  Normalizat    1.2808        .23128        .38175E-06   -.77584E-04
  24  Prefactor     .93491        .13311       -.93560E-06   -.19958E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.33428
  Prefactor  = 13.3104
  norm       = 4.50785
  Prefactor  = 37.7514
  Prefactor  = 190.144
  Prefactor  = 0.930957
  Prefactor  = 0.000100002
  Prefactor  = 0.000100012
  Prefactor  = 9.04858
  norm       = 3.63142
  Prefactor  = 4.57652
  Prefactor  = 61.171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.8548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.155688
  Prefactor  = 0.0001
  Normalizat = 1.28079
  Prefactor  = 0.93491
 **********
 **   18 **HESSE 
 **********

 FCN=   6946.475     FROM HESSE     STATUS=OK           407 CALLS     3719 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.3343        2.5484        .11130E-03   -1.5343    
   3  Prefactor     13.310        23.225        .10990E-03   -1.4978    
   4  norm          4.5079        2.1970        .80480E-04   -1.5283    
   5  Prefactor     37.751        61.517        .65162E-04   -1.4478    
   6  Prefactor     190.14        157.10        .14650E-03   -1.2941    
   7  Prefactor     .93096        8.5763        .46394E-03   -1.5515    
   8  Prefactor     .10000E-03    61.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    233.22        .40518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.0486        5.5565        .66610E-03   -1.5106    
  11  norm          3.6314        3.5740        .15141E-03   -1.5327    
  12  Prefactor     4.5765        8.4442        .94100E-03   -1.5280    
  13  Prefactor     61.171        66.818        .51277E-04   -1.4142    
  14  Prefactor     .10000E-03    33.871        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.690        .33977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    51.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.855        9.5269        .11170E-03   -1.4991    
  18  Prefactor     .10000E-03    13.447        .31662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.3526        .16941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .15569        9.5764        .86110E-01   -1.5629    
  22  Prefactor     .10000E-03    49.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2808        .26940        .30831E-03   -.84142    
  24  Prefactor     .93491        .15656        .21450E-03   -.94932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.56445e-10
Minuit parameter uncertainties:
  1  2.71556e-05
  2  2.54848
  3  23.2411
  4  2.19708
  5  61.6209
  6  157.444
  7  5.65203
  8  0.000668135
  9  0.00338257
  10  5.5568
  11  3.57424
  12  8.44644
  13  66.8996
  14  1.1151e-05
  15  0.000118426
  16  6.5601e-05
  17  9.52801
  18  0.000156314
  19  4.52622e-07
  20  3.36262e-06
  21  2.44169
  22  0.000218888
  23  0.269692
  24  0.156637
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  9.349e-01  1.566e-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.281e+00  2.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.80
Ra Dec: 323.836 -50.102
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 7.90e-08 +/- 4.84e-08
Energy Flux (Fixed Index): 2.49e-05 +/- 1.53e-05

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) = 6946.22298975
delta logL = 0.251895252231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6946.21467649
delta logL = 0.260208519689

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4064       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0488       1.0000          .0000       10.000    
     3 'Normalizat'    1.3114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92420       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=   6946.215     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3966        13.176        .32667E-02    .25603E-04
   2  Index         2.0484        .89941        .22672       -.18706E-04
   3  Normalizat    1.3120        .22390        .68985E-01    .97681E-05
   4  Prefactor     .92399        .13331        .45313E-01    .78462E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.39663
  Index      = 2.04844
  Normalizat = 1.31198
  Prefactor  = 0.923993
 **********
 **   18 **HESSE 
 **********

 FCN=   6946.215     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3966        6.0995        .13067E-03   -1.5095    
   2  Index         2.0484        .51309        .80683E-02   -.63144    
   3  Normalizat    1.3120        .25684        .30521E-03   -.83210    
   4  Prefactor     .92399        .15453        .21560E-03   -.95308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.10465e-11
Minuit parameter uncertainties:
  1  6.09988
  2  0.514481
  3  0.257087
  4  0.154607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604459': 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) = 6946.21467313
delta logL = 0.260211877356

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  9.397e+00  6.100e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.048e+00  5.145e-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.240e-01  1.546e-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.312e+00  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.31
Ra Dec: 323.836 -50.102
Photon Index (Free Index): 2.05 +/- 0.51
Photon Flux (Free Index): 5.24e-08 +/- 4.80e-08
Energy Flux (Free Index): 3.22e-05 +/- 2.67e-05

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/604459/cmap_HighResolution_426988801_427248001_4FGL_J2135.3-5006_daily_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.90e-08', energy_flux2='3.22e-05', photon_flux_error='4.84e-08', dlogl='2.60e-01', energy_flux='2.49e-05', photon_flux2='5.24e-08', job_status='DONE', time_completed='2021-09-26 20:04:29.176070', photon_index_error2='0.51', photon_index2='2.05', ts='5.80', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.67e-05', EG='1.28', time_epoch_completed='1632711869.18', return_code='0', job_id='604459', GAL2='0.92', EG2='1.31', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='4.80e-08', ts2='6.31', photon_index='2.43' WHERE bin_id='724' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:04:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 604459: <4FGL_J2135.3-5006_daily_bin724> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin724> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 26 19:50:19 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:51:04 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:51:04 2021
Terminated at Sun Sep 26 20:04:30 2021
Results reported at Sun Sep 26 20:04:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin724 323.836 -50.1015 426988801 427248001 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 :                                   712.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            851 sec.

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

