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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1338
RA = 323.836, Dec = -50.1015
tmin = 586137601, tmax = 586396801
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='607576', job_status='RUN', time_executed='2021-09-26 20:03:56.462540', time_epoch_executed='1632711836.46' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607576

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607576/ft1_4FGL_J2135.3-5006_daily_bin1338.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607576/ft2_4FGL_J2135.3-5006_daily_bin1338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607576/ft1_4FGL_J2135.3-5006_daily_bin1338.fits outfile=/scratch/kocevski/607576/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1338.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=586137601.0 tmax=586396801.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 4.61
user 4.35
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607576/ft1_filtered_4FGL_J2135.3-5006_daily_bin1338.fits" evtable="EVENTS" scfile=/scratch/kocevski/607576/ft2_4FGL_J2135.3-5006_daily_bin1338.fits sctable="SC_DATA" outfile=/scratch/kocevski/607576/ltcube_586137601_586396801_4FGL_J2135.3-5006_daily_bin1338.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/607576/ft2_4FGL_J2135.3-5006_daily_bin1338.fits
.....................!
real 13.01
user 12.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607576/ft1_filtered_4FGL_J2135.3-5006_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/607576/ft2_4FGL_J2135.3-5006_daily_bin1338.fits sctable="SC_DATA" expcube=/scratch/kocevski/607576/ltcube_586137601_586396801_4FGL_J2135.3-5006_daily_bin1338.fits outfile=/scratch/kocevski/607576/expmap_586137601_586396801_4FGL_J2135.3-5006_daily_bin1338.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/607576/ltcube_586137601_586396801_4FGL_J2135.3-5006_daily_bin1338.fits
.....................!
real 193.83
user 188.44
sys 4.76

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/607576/ft1_filtered_4FGL_J2135.3-5006_daily_bin1338.fits scfile=/scratch/kocevski/607576/ft2_4FGL_J2135.3-5006_daily_bin1338.fits outfile=/scratch/kocevski/607576/cmap_586137601_586396801_4FGL_J2135.3-5006_daily_bin1338.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607576/ft1_filtered_4FGL_J2135.3-5006_daily_bin1338.fits scfile=/scratch/kocevski/607576/ft2_4FGL_J2135.3-5006_daily_bin1338.fits outfile=/scratch/kocevski/607576/cmap_HighResolution_586137601_586396801_4FGL_J2135.3-5006_daily_bin1338.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/607576/ft1_filtered_4FGL_J2135.3-5006_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/607576/ft2_4FGL_J2135.3-5006_daily_bin1338.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/607576/Model_4FGL_J2135.3-5006_daily_bin1338.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/607576/ft1_filtered_4FGL_J2135.3-5006_daily_bin1338.fits.....................!
real 49.74
user 48.43
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.758       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4623       1.0000         .10000E-03   10000.    
     5 'Prefactor '    48.352       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11235E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3825       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    73.046       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0818       1.0000         .10000E-03   10000.    
    11 'norm      '    10.468       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    72.432       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2743       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29215E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.6914       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15235E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    168.86       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .72902       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2246       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=   6366.787     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2696 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.786       -.76125E-05** at limit **
   2  Prefactor     10.759        3.6087        .10980E-06   -.13795E-03
   3  Prefactor     .10000E-03    15.663        .81676E-06** at limit **
   4  norm          3.4625        2.0428       -.16315E-07    .66802E-04
   5  Prefactor     48.338        55.390        .22298E-05   -.59299E-05
   6  Prefactor     .10000E-03    75.141        .90578E-05** at limit **
   7  Prefactor     1.3811        8.5816        .19435E-04   -.10137E-03
   8  Prefactor     .10000E-03    8.6416        .13096E-06** at limit **
   9  Prefactor     73.084        41.284       -.29323E-05   -.80515E-04
  10  Prefactor     2.0814        3.7537        .67059E-07    .17992E-03
  11  norm          10.468        5.4548        .63474E-08   -.64819E-05
  12  Prefactor     .10000E-03    6.5067       -.11380E-06** at limit **
  13  Prefactor     72.415        43.286        .18444E-05    .91863E-04
  14  Prefactor     .10000E-03    13.297       -.29947E-05** at limit **
  15  Prefactor     7.2726        4.7339        .29625E-06    .24671E-04
  16  Prefactor     .10001E-03    350.24        .12392E-04** at limit **
  17  norm          8.6911        7.1062       -.25269E-08   -.24877E-04
  18  Prefactor     .10000E-03    1.3919       -.89974E-07** at limit **
  19  Prefactor     .10000E-03    4.7940       -.52953E-06** at limit **
  20  Prefactor     .10000E-03    15.451        .71876E-07** at limit **
  21  Prefactor     .10001E-03    14.185       -.30971E-05** at limit **
  22  Prefactor     168.81        145.22        .53669E-05    .50348E-04
  23  Normalizat    .72889        .22834       -.16703E-05    .19453E-04
  24  Prefactor     1.2247        .15037       -.90158E-06   -.24812E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.759
  Prefactor  = 0.0001
  norm       = 3.46247
  Prefactor  = 48.3376
  Prefactor  = 0.0001
  Prefactor  = 1.38108
  Prefactor  = 0.0001
  Prefactor  = 73.0844
  Prefactor  = 2.08138
  norm       = 10.4679
  Prefactor  = 0.0001
  Prefactor  = 72.4147
  Prefactor  = 0.000100003
  Prefactor  = 7.27255
  Prefactor  = 0.000100011
  norm       = 8.69107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 168.81
  Normalizat = 0.728894
  Prefactor  = 1.22466
 **********
 **   18 **HESSE 
 **********

 FCN=   6366.787     FROM HESSE     STATUS=OK           391 CALLS     3087 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.759        3.6088        .84278E-04   -1.5052    
   3  Prefactor     .10000E-03    15.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4625        2.0386        .83387E-04   -1.5336    
   5  Prefactor     48.338        55.364        .57667E-04   -1.4316    
   6  Prefactor     .10000E-03    75.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3811        8.6020        .18503E-02   -1.5473    
   8  Prefactor     .10000E-03    8.6494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     73.084        41.285        .46975E-04   -1.3996    
  10  Prefactor     2.0814        3.7275        .19808E-03   -1.5419    
  11  norm          10.468        5.4541        .61920E-03   -1.5061    
  12  Prefactor     .10000E-03    6.5568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     72.415        43.363        .47172E-04   -1.4004    
  14  Prefactor     .10000E-03    13.845        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.2726        4.7381        .13325E-03   -1.5169    
  16  Prefactor     .10001E-03    352.01        .21401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.6911        7.1071        .13597E-03   -1.5118    
  18  Prefactor     .10000E-03    1.3960        .91925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.9243        .34108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    14.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     168.81        145.26        .15523E-03   -1.3102    
  23  Normalizat    .72889        .25490        .35999E-03   -1.0276    
  24  Prefactor     1.2247        .16926        .19583E-03   -.85576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.32085e-10
Minuit parameter uncertainties:
  1  0.000110573
  2  3.60884
  3  3.1609e-05
  4  2.03867
  5  55.4227
  6  0.000248156
  7  6.8947
  8  8.57682e-06
  9  41.3014
  10  3.72788
  11  5.45432
  12  1.31959e-05
  13  43.382
  14  0.000373364
  15  4.73829
  16  0.00392678
  17  7.10775
  18  5.89877e-06
  19  6.14272e-05
  20  0.000150582
  21  0.00059627
  22  145.567
  23  0.255311
  24  0.16934
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  2.081e+00  3.728e+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.225e+00  1.693e-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:  7.289e-01  2.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/607576/likelihoodResults_586137601_586396801_4FGL_J2135.3-5006_daily_bin1338.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) = 6366.3702336
delta logL = 0.416378326016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6366.34337317
delta logL = 0.443238755472

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82163       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8755       1.0000          .0000       10.000    
     3 'Normalizat'    .67398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2461       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=   6366.343     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      295 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82030        13.174        .12520E-01    .11363E-02
   2  Index         3.8762        3.5677        .13866        .13565E-03
   3  Normalizat    .67408        .49035E-01    .84199E-01    .29799E-04
   4  Prefactor     1.2461        .33660E-01    .33622E-01   -.77672E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.820302
  Index      = 3.87623
  Normalizat = 0.674077
  Prefactor  = 1.24607
 **********
 **   18 **HESSE 
 **********

 FCN=   6366.343     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      328 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82030        36.464        .67670E-04   -1.5527    
   2  Index         3.8762        6.6903        .76545E-02   -.22669    
   3  Normalizat    .67408        .26360        .37290E-03   -1.0493    
   4  Prefactor     1.2461        .17273        .19426E-03   -.84925    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33574e-09
Minuit parameter uncertainties:
  1  10.9447
  2  8.73635
  3  0.264091
  4  0.172804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607576': 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) = 6366.34337287
delta logL = 0.443239058711

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.246e+00  1.728e-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.741e-01  2.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 323.836 -50.102
Photon Index (Free Index): 3.88 +/- 8.74
Photon Flux (Free Index): 6.30e-08 +/- 8.77e-08
Energy Flux (Free Index): 9.64e-06 +/- 1.11e-05

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/607576/cmap_HighResolution_586137601_586396801_4FGL_J2135.3-5006_daily_bin1338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.15e-03', comment='SUCCESS', energy_flux2='9.64e-06', dlogl='4.43e-01', photon_flux2='6.30e-08', job_status='DONE', time_completed='2021-09-26 20:16:04.472024', photon_index_error2='8.74', photon_index2='3.88', ts='0.44', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.11e-05', EG='0.73', time_epoch_completed='1632712564.47', return_code='0', job_id='607576', GAL2='1.25', EG2='0.67', return_code2='102', photon_flux_error2='8.77e-08', ts2='1.39', photon_index='2.43' WHERE bin_id='1338' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:16:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 607576: <4FGL_J2135.3-5006_daily_bin1338> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1338> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 20:00:47 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 20:02:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 20:02:17 2021
Terminated at Sun Sep 26 20:16:05 2021
Results reported at Sun Sep 26 20:16:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1338 323.836 -50.1015 586137601 586396801 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 :                                   699.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            918 sec.

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

