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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin446
RA = 323.836, Dec = -50.1015
tmin = 354931201, tmax = 355190401
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='602999', job_status='RUN', time_executed='2021-09-26 19:47:04.057925', time_epoch_executed='1632710824.06' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/602999

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/602999/ft1_4FGL_J2135.3-5006_daily_bin446.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/602999/ft2_4FGL_J2135.3-5006_daily_bin446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/602999/ft1_4FGL_J2135.3-5006_daily_bin446.fits outfile=/scratch/kocevski/602999/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin446.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=354931201.0 tmax=355190401.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.50
user 3.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/602999/ft1_filtered_4FGL_J2135.3-5006_daily_bin446.fits" evtable="EVENTS" scfile=/scratch/kocevski/602999/ft2_4FGL_J2135.3-5006_daily_bin446.fits sctable="SC_DATA" outfile=/scratch/kocevski/602999/ltcube_354931201_355190401_4FGL_J2135.3-5006_daily_bin446.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/602999/ft2_4FGL_J2135.3-5006_daily_bin446.fits
.....................!
real 12.55
user 12.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/602999/ft1_filtered_4FGL_J2135.3-5006_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/602999/ft2_4FGL_J2135.3-5006_daily_bin446.fits sctable="SC_DATA" expcube=/scratch/kocevski/602999/ltcube_354931201_355190401_4FGL_J2135.3-5006_daily_bin446.fits outfile=/scratch/kocevski/602999/expmap_354931201_355190401_4FGL_J2135.3-5006_daily_bin446.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/602999/ltcube_354931201_355190401_4FGL_J2135.3-5006_daily_bin446.fits
.....................!
real 193.45
user 185.85
sys 5.15

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/602999/ft1_filtered_4FGL_J2135.3-5006_daily_bin446.fits scfile=/scratch/kocevski/602999/ft2_4FGL_J2135.3-5006_daily_bin446.fits outfile=/scratch/kocevski/602999/cmap_354931201_355190401_4FGL_J2135.3-5006_daily_bin446.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/602999/ft1_filtered_4FGL_J2135.3-5006_daily_bin446.fits scfile=/scratch/kocevski/602999/ft2_4FGL_J2135.3-5006_daily_bin446.fits outfile=/scratch/kocevski/602999/cmap_HighResolution_354931201_355190401_4FGL_J2135.3-5006_daily_bin446.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10643E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0275       1.0000         .10000E-03   10000.    
     4 'norm      '    8.0643       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.111       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.969       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8643       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1190       1.0000         .10000E-03   10000.    
    11 'norm      '    4.3836       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .55967       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5550       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4327       1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9298       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7177       1.0000         .10000E-03   10000.    
    20 'Prefactor '    54.349       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .37868       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .64359       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0488       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=   7726.132     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2780 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.525        .47363E-07** at limit **
   2  Prefactor     .10000E-03    1.6360        .41458E-06** at limit **
   3  Prefactor     7.0282        17.720       -.18078E-06   -.51335E-04
   4  norm          8.0644        2.3211        .84075E-08   -.94788E-04
   5  Prefactor     13.069        40.541       -.44099E-06   -.38440E-04
   6  Prefactor     .10000E-03    79.464        .30147E-06** at limit **
   7  Prefactor     28.970        9.5872       -.45951E-07   -.49958E-05
   8  Prefactor     3.8639        14.576        .34382E-06    .95911E-06
   9  Prefactor     .10000E-03    9.5346       -.39715E-06** at limit **
  10  Prefactor     5.1191        3.8171        .64238E-07    .85077E-04
  11  norm          4.3835        3.5960        .22394E-08   -.84112E-05
  12  Prefactor     .56714        4.3927       -.15201E-06    .28360E-04
  13  Prefactor     .10000E-03    51.555       -.82267E-06** at limit **
  14  Prefactor     .10000E-03    6.5827       -.38883E-05** at limit **
  15  Prefactor     3.5559        4.2433       -.73272E-07    .11971E-03
  16  Prefactor     6.3400        339.34        .33324E-05    .98149E-05
  17  norm          .10000E-03    2.9715       -.43894E-06** at limit **
  18  Prefactor     1.9304        2.6863        .17766E-06    .56742E-04
  19  Prefactor     3.7186        3.6249       -.74687E-07    .27287E-04
  20  Prefactor     54.320        28.642        .86730E-07    .63404E-04
  21  Prefactor     .35215        6.5666       -.26828E-06    .52548E-04
  22  Prefactor     .10000E-03    24.757       -.35051E-07** at limit **
  23  Normalizat    .64330        .19200        .26675E-05   -.36494E-04
  24  Prefactor     1.0490        .12137       -.17327E-05    .91646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.02822
  norm       = 8.06436
  Prefactor  = 13.0688
  Prefactor  = 0.0001
  Prefactor  = 28.9701
  Prefactor  = 3.86386
  Prefactor  = 0.0001
  Prefactor  = 5.11914
  norm       = 4.38353
  Prefactor  = 0.567136
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.55586
  Prefactor  = 6.34002
  norm       = 0.0001
  Prefactor  = 1.9304
  Prefactor  = 3.71865
  Prefactor  = 54.3196
  Prefactor  = 0.352147
  Prefactor  = 0.0001
  Normalizat = 0.643296
  Prefactor  = 1.04896
 **********
 **   18 **HESSE 
 **********

 FCN=   7726.132     FROM HESSE     STATUS=OK           407 CALLS     3187 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.1996        .21152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.0282        17.592        .15133E-03   -1.5178    
   4  norm          8.0644        2.3183        .67753E-04   -1.5140    
   5  Prefactor     13.069        40.530        .11062E-03   -1.4985    
   6  Prefactor     .10000E-03    79.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.970        9.5814        .74437E-04   -1.4631    
   8  Prefactor     3.8639        14.512        .20528E-03   -1.5315    
   9  Prefactor     .10000E-03    9.5566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.1191        3.8123        .14118E-03   -1.5255    
  11  norm          4.3835        3.5790        .14265E-03   -1.5289    
  12  Prefactor     .56714        10.950        .35309E-02   -1.5557    
  13  Prefactor     .10000E-03    52.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.8652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5559        4.2189        .17862E-03   -1.5331    
  16  Prefactor     6.3400        345.79        .15824E-03   -1.5204    
  17  norm          .10000E-03    2.9802        .14803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.9304        2.6789        .16278E-03   -1.5430    
  19  Prefactor     3.7186        3.6175        .15808E-03   -1.5322    
  20  Prefactor     54.320        28.436        .54409E-04   -1.4233    
  21  Prefactor     .35215        42.733        .40972E-02   -1.5589    
  22  Prefactor     .10000E-03    24.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .64330        .20817        .33015E-03   -1.0618    
  24  Prefactor     1.0490        .13247        .18292E-03   -.91115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60151e-10
Minuit parameter uncertainties:
  1  7.39911e-05
  2  5.39516e-05
  3  17.6045
  4  2.31838
  5  40.6153
  6  9.48197e-05
  7  9.58195
  8  14.5252
  9  7.09261e-06
  10  3.81246
  11  3.57915
  12  4.98456
  13  0.000149987
  14  5.56732e-05
  15  4.21922
  16  94.2226
  17  4.22284e-06
  18  2.67904
  19  3.61774
  20  28.4433
  21  7.76298
  22  1.4095e-05
  23  0.208426
  24  0.132515
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  5.119e+00  3.812e+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.049e+00  1.325e-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.433e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 323.836 -50.102
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.47e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.05e-05

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

Saving results to:
/scratch/kocevski/602999/likelihoodResults_354931201_355190401_4FGL_J2135.3-5006_daily_bin446.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) = 7726.12340423
delta logL = 0.00896879730681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7726.12137793
delta logL = 0.0109950974957

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3588       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3403       1.0000          .0000       10.000    
     3 'Normalizat'    .64680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0475       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=   7726.121     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      238 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3584        4.2819        .14567E-03    .17715E-02
   2  Index         2.3405        .60517        .83065E-02    .31457E-03
   3  Normalizat    .64680        .18626        .32931E-03   -.25833E-03
   4  Prefactor     1.0475        .12895        .18304E-03   -.50301E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.35844
  Index      = 2.34045
  Normalizat = 0.646796
  Prefactor  = 1.04755
 **********
 **   18 **HESSE 
 **********

 FCN=   7726.121     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3584        4.2200        .58269E-05   -1.5245    
   2  Index         2.3405        .59611        .33226E-03   -.56085    
   3  Normalizat    .64680        .18630        .13173E-04   -1.0603    
   4  Prefactor     1.0475        .12900        .36607E-04   -.91161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33751e-09
Minuit parameter uncertainties:
  1  4.22027
  2  0.598101
  3  0.186486
  4  0.129034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/602999': 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) = 7726.12137792
delta logL = 0.0109951113927

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  5.358e+00  4.220e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.340e+00  5.981e-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.048e+00  1.290e-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.468e-01  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.10
Ra Dec: 323.836 -50.102
Photon Index (Free Index): 2.34 +/- 0.60
Photon Flux (Free Index): 4.17e-08 +/- 3.72e-08
Energy Flux (Free Index): 1.49e-05 +/- 1.25e-05

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/602999/cmap_HighResolution_354931201_355190401_4FGL_J2135.3-5006_daily_bin446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.07e-03', comment='SUCCESS', photon_flux='4.47e-08', energy_flux2='1.49e-05', photon_flux_error='3.32e-08', dlogl='1.10e-02', energy_flux='1.41e-05', photon_flux2='4.17e-08', job_status='DONE', time_completed='2021-09-26 20:00:08.661009', photon_index_error2='0.60', photon_index2='2.34', ts='3.08', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.25e-05', EG='0.64', time_epoch_completed='1632711608.66', return_code='0', job_id='602999', GAL2='1.05', EG2='0.65', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='3.72e-08', ts2='3.10', photon_index='2.43' WHERE bin_id='446' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:00:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 602999: <4FGL_J2135.3-5006_daily_bin446> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin446 323.836 -50.1015 354931201 355190401 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 :                                   772.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            873 sec.

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

