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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin440
RA = 323.836, Dec = -50.1015
tmin = 353376001, tmax = 353635201
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='602990', job_status='RUN', time_executed='2021-09-26 19:49:03.633092', time_epoch_executed='1632710943.63' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/602990

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/602990/ft1_4FGL_J2135.3-5006_daily_bin440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/602990/ft2_4FGL_J2135.3-5006_daily_bin440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/602990/ft1_4FGL_J2135.3-5006_daily_bin440.fits outfile=/scratch/kocevski/602990/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin440.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=353376001.0 tmax=353635201.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.65
user 3.28
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/602990/ft1_filtered_4FGL_J2135.3-5006_daily_bin440.fits" evtable="EVENTS" scfile=/scratch/kocevski/602990/ft2_4FGL_J2135.3-5006_daily_bin440.fits sctable="SC_DATA" outfile=/scratch/kocevski/602990/ltcube_353376001_353635201_4FGL_J2135.3-5006_daily_bin440.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/602990/ft2_4FGL_J2135.3-5006_daily_bin440.fits
.....................!
real 13.10
user 12.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/602990/ft1_filtered_4FGL_J2135.3-5006_daily_bin440.fits evtable="EVENTS" scfile=/scratch/kocevski/602990/ft2_4FGL_J2135.3-5006_daily_bin440.fits sctable="SC_DATA" expcube=/scratch/kocevski/602990/ltcube_353376001_353635201_4FGL_J2135.3-5006_daily_bin440.fits outfile=/scratch/kocevski/602990/expmap_353376001_353635201_4FGL_J2135.3-5006_daily_bin440.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/602990/ltcube_353376001_353635201_4FGL_J2135.3-5006_daily_bin440.fits
.....................!
real 192.38
user 187.63
sys 4.05

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/602990/ft1_filtered_4FGL_J2135.3-5006_daily_bin440.fits scfile=/scratch/kocevski/602990/ft2_4FGL_J2135.3-5006_daily_bin440.fits outfile=/scratch/kocevski/602990/cmap_353376001_353635201_4FGL_J2135.3-5006_daily_bin440.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.52
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/602990/ft1_filtered_4FGL_J2135.3-5006_daily_bin440.fits scfile=/scratch/kocevski/602990/ft2_4FGL_J2135.3-5006_daily_bin440.fits outfile=/scratch/kocevski/602990/cmap_HighResolution_353376001_353635201_4FGL_J2135.3-5006_daily_bin440.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2357       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.1835       1.0000         .10000E-03   10000.    
     5 'Prefactor '    58.945       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    47.601       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.705       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .74764       1.0000         .10000E-03   10000.    
    11 'norm      '    12.741       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6548       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3634       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .50884E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2299       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5058       1.0000         .10000E-03   10000.    
    20 'Prefactor '    77.140       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7388       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99441       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0739       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=   6331.557     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     3526 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.850       -.16817E-05** at limit **
   2  Prefactor     1.2348        3.3308       -.48733E-06   -.93092E-03
   3  Prefactor     .10000E-03    18.849       -.49683E-05** at limit **
   4  norm          7.1828        2.8201        .57889E-07   -.77875E-04
   5  Prefactor     58.922        54.986       -.14424E-04    .24410E-03
   6  Prefactor     .10000E-03    28.539        .10168E-04** at limit **
   7  Prefactor     47.598        13.789        .18492E-06   -.41338E-05
   8  Prefactor     .10000E-03    15.282        .24071E-05** at limit **
   9  Prefactor     37.685        31.422       -.25809E-06    .10349E-03
  10  Prefactor     .73587        4.1425       -.42661E-06   -.36945E-03
  11  norm          12.741        6.0325        .16374E-05   -.47164E-03
  12  Prefactor     6.6523        10.980        .16824E-06   -.11628E-03
  13  Prefactor     .10000E-03    24.986        .39888E-05** at limit **
  14  Prefactor     .10000E-03    2.7914        .28394E-06** at limit **
  15  Prefactor     3.3622        5.2344       -.14264E-05   -.33838E-03
  16  Prefactor     .10000E-03    37.460       -.19243E-04** at limit **
  17  norm          .10007E-03    7.6911       -.11653E-05** at limit **
  18  Prefactor     6.2288        6.7685        .23802E-05   -.11290E-03
  19  Prefactor     2.4980        7.9772       -.21797E-04   -.25680E-03
  20  Prefactor     77.200        51.964        .39235E-04   -.24035E-03
  21  Prefactor     5.7084        18.238       -.30514E-04   -.46737E-04
  22  Prefactor     .10000E-03    59.634        .13503E-04** at limit **
  23  Normalizat    .99457        .24680       -.15320E-05    .37289E-03
  24  Prefactor     1.0739        .14801        .12696E-05    .27486E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.23478
  Prefactor  = 0.000100001
  norm       = 7.18279
  Prefactor  = 58.9224
  Prefactor  = 0.000100001
  Prefactor  = 47.598
  Prefactor  = 0.0001
  Prefactor  = 37.685
  Prefactor  = 0.735871
  norm       = 12.7406
  Prefactor  = 6.65226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.36219
  Prefactor  = 0.000100005
  norm       = 0.000100074
  Prefactor  = 6.22882
  Prefactor  = 2.49796
  Prefactor  = 77.2005
  Prefactor  = 5.70842
  Prefactor  = 0.000100002
  Normalizat = 0.994569
  Prefactor  = 1.07391
 **********
 **   18 **HESSE 
 **********

 FCN=   6331.557     FROM HESSE     STATUS=OK           403 CALLS     3929 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2348        3.3224        .22173E-03   -1.5486    
   3  Prefactor     .10000E-03    18.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.1828        2.8196        .79089E-04   -1.5172    
   5  Prefactor     58.922        54.829        .52256E-04   -1.4171    
   6  Prefactor     .10000E-03    28.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     47.598        13.777        .58118E-04   -1.4327    
   8  Prefactor     .10000E-03    15.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.685        31.408        .65271E-04   -1.4479    
  10  Prefactor     .73587        8.1938        .29954E-02   -1.5536    
  11  norm          12.741        6.0245        .11222E-03   -1.4994    
  12  Prefactor     6.6523        10.970        .15555E-03   -1.5192    
  13  Prefactor     .10000E-03    25.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.7965        .12982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3622        5.2440        .21166E-03   -1.5341    
  16  Prefactor     .10000E-03    37.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10007E-03    10.427        .72778E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2288        6.7864        .16083E-03   -1.5209    
  19  Prefactor     2.4980        8.1122        .25815E-03   -1.5392    
  20  Prefactor     77.200        52.153        .45720E-04   -1.3948    
  21  Prefactor     5.7084        18.223        .16767E-03   -1.5230    
  22  Prefactor     .10000E-03    59.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .99457        .28331        .33674E-03   -.93213    
  24  Prefactor     1.0739        .17024        .21288E-03   -.90305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54362e-09
Minuit parameter uncertainties:
  1  5.78821e-05
  2  3.32288
  3  0.000270427
  4  2.81967
  5  54.8763
  6  0.000402993
  7  13.7782
  8  0.00011424
  9  31.4219
  10  4.91155
  11  6.02481
  12  10.9729
  13  0.000160528
  14  8.68923e-06
  15  5.2447
  16  0.00082483
  17  0.0017529
  18  6.78728
  19  8.1158
  20  52.1837
  21  18.2402
  22  0.000722533
  23  0.283744
  24  0.170324
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  7.359e-01  4.912e+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.074e+00  1.703e-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.946e-01  2.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/602990/likelihoodResults_353376001_353635201_4FGL_J2135.3-5006_daily_bin440.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6331.44826672
delta logL = 0.108283621069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6331.42440422
delta logL = 0.13214611389

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25141       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2164       1.0000          .0000       10.000    
     3 'Normalizat'    .96386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0854       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=   6331.424     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      224 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24962        7.6023        .10210E-01    .17782E-02
   2  Index         4.2206        3.6736        .20402        .58000E-04
   3  Normalizat    .96382        .35484E-01    .77133E-01   -.32340E-04
   4  Prefactor     1.0855        .23334E-01    .38168E-01   -.75481E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.249623
  Index      = 4.22059
  Normalizat = 0.96382
  Prefactor  = 1.08553
 **********
 **   18 **HESSE 
 **********

 FCN=   6331.424     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      255 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24962        44.839        .72396E-04   -1.5608    
   2  Index         4.2206        6.3174        .11010E-01   -.15652    
   3  Normalizat    .96382        .20352        .34136E-03   -.94253    
   4  Prefactor     1.0855        .13079        .21184E-03   -.89930    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.21253e-06
Minuit parameter uncertainties:
  1  6.6949
  2  16.6205
  3  0.203679
  4  0.130832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/602990': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6331.42440331
delta logL = 0.132147028356

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  2.496e-01  6.695e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  4.221e+00  1.662e+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.086e+00  1.308e-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.638e-01  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/602990/cmap_HighResolution_353376001_353635201_4FGL_J2135.3-5006_daily_bin440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.66e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-26 20:01:47.146960', job_id='602990', GAL2='1.09', fit_tolerance='1e-08', EG2='0.96', EG='0.99', time_epoch_completed='1632711707.15', return_code2='102', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.32e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='440' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:01:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 602990: <4FGL_J2135.3-5006_daily_bin440> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin440> 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) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:46:25 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:25 2021
Terminated at Sun Sep 26 20:01:47 2021
Results reported at Sun Sep 26 20:01:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin440 323.836 -50.1015 353376001 353635201 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 :                                   747.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            971 sec.

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

