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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin832
RA = 323.836, Dec = -50.1015
tmin = 454982401, tmax = 455241601
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='604614', job_status='RUN', time_executed='2021-09-26 19:53:21.944551', time_epoch_executed='1632711201.94' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='832'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604614

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604614/ft1_4FGL_J2135.3-5006_daily_bin832.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604614/ft2_4FGL_J2135.3-5006_daily_bin832.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604614/ft1_4FGL_J2135.3-5006_daily_bin832.fits outfile=/scratch/kocevski/604614/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin832.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=454982401.0 tmax=455241601.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.46
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604614/ft1_filtered_4FGL_J2135.3-5006_daily_bin832.fits" evtable="EVENTS" scfile=/scratch/kocevski/604614/ft2_4FGL_J2135.3-5006_daily_bin832.fits sctable="SC_DATA" outfile=/scratch/kocevski/604614/ltcube_454982401_455241601_4FGL_J2135.3-5006_daily_bin832.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/604614/ft2_4FGL_J2135.3-5006_daily_bin832.fits
.....................!
real 12.98
user 12.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604614/ft1_filtered_4FGL_J2135.3-5006_daily_bin832.fits evtable="EVENTS" scfile=/scratch/kocevski/604614/ft2_4FGL_J2135.3-5006_daily_bin832.fits sctable="SC_DATA" expcube=/scratch/kocevski/604614/ltcube_454982401_455241601_4FGL_J2135.3-5006_daily_bin832.fits outfile=/scratch/kocevski/604614/expmap_454982401_455241601_4FGL_J2135.3-5006_daily_bin832.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/604614/ltcube_454982401_455241601_4FGL_J2135.3-5006_daily_bin832.fits
.....................!
real 190.88
user 185.45
sys 5.08

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/604614/ft1_filtered_4FGL_J2135.3-5006_daily_bin832.fits scfile=/scratch/kocevski/604614/ft2_4FGL_J2135.3-5006_daily_bin832.fits outfile=/scratch/kocevski/604614/cmap_454982401_455241601_4FGL_J2135.3-5006_daily_bin832.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604614/ft1_filtered_4FGL_J2135.3-5006_daily_bin832.fits scfile=/scratch/kocevski/604614/ft2_4FGL_J2135.3-5006_daily_bin832.fits outfile=/scratch/kocevski/604614/cmap_HighResolution_454982401_455241601_4FGL_J2135.3-5006_daily_bin832.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6389       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.831       1.0000         .10000E-03   10000.    
     4 'norm      '    5.6623       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.874       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.962       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .89724E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.797       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.1145       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.517       1.0000         .10000E-03   10000.    
    13 'Prefactor '    116.40       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2460       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46700       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.760       1.0000         .10000E-03   10000.    
    17 'norm      '    3.9761       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6250       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4651       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.431       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.588       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83289       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1849       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=   6793.334     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2829 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.080        .17105E-06** at limit **
   2  Prefactor     1.6393        2.3400        .15354E-06    .15937E-03
   3  Prefactor     12.811        27.704       -.63788E-06    .42252E-04
   4  norm          5.6624        2.6546        .16042E-07    .15575E-03
   5  Prefactor     23.880        47.461        .42820E-07    .15647E-04
   6  Prefactor     .10000E-03    53.742        .43239E-07** at limit **
   7  Prefactor     17.955        11.261        .40990E-06    .25274E-03
   8  Prefactor     .10002E-03    34.068       -.59463E-06** at limit **
   9  Prefactor     15.797        16.009       -.34361E-08    .23532E-04
  10  Prefactor     .10000E-03    1.4601       -.14192E-06** at limit **
  11  norm          5.1121        4.4185        .17446E-06    .37324E-03
  12  Prefactor     16.513        11.956        .93731E-07    .13569E-03
  13  Prefactor     116.35        60.258        .32015E-05    .11581E-03
  14  Prefactor     1.2623        16.083       -.62818E-05   -.48120E-03
  15  Prefactor     .45927        2.5393       -.76014E-07   -.18501E-05
  16  Prefactor     36.767        74.617        .29525E-05    .87769E-04
  17  norm          3.9767        4.1653       -.47380E-06    .32359E-03
  18  Prefactor     4.6249        4.2555       -.16042E-06   -.12967E-04
  19  Prefactor     2.4657        5.4869        .42534E-05   -.89765E-03
  20  Prefactor     28.418        30.779       -.14042E-05    .69414E-04
  21  Prefactor     15.591        11.522       -.99230E-07    .91626E-04
  22  Prefactor     .10000E-03    29.894       -.97008E-07** at limit **
  23  Normalizat    .83274        .23863        .13109E-05    .36294E-03
  24  Prefactor     1.1850        .14311       -.77142E-06    .35563E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.6393
  Prefactor  = 12.8115
  norm       = 5.6624
  Prefactor  = 23.8799
  Prefactor  = 0.0001
  Prefactor  = 17.9553
  Prefactor  = 0.000100018
  Prefactor  = 15.7971
  Prefactor  = 0.0001
  norm       = 5.11214
  Prefactor  = 16.5133
  Prefactor  = 116.348
  Prefactor  = 1.26228
  Prefactor  = 0.459267
  Prefactor  = 36.7671
  norm       = 3.97673
  Prefactor  = 4.62486
  Prefactor  = 2.46572
  Prefactor  = 28.4181
  Prefactor  = 15.5913
  Prefactor  = 0.0001
  Normalizat = 0.83274
  Prefactor  = 1.185
 **********
 **   18 **HESSE 
 **********

 FCN=   6793.334     FROM HESSE     STATUS=OK           417 CALLS     3246 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.6393        2.3089        .14308E-03   -1.5452    
   3  Prefactor     12.811        27.674        .11183E-03   -1.4992    
   4  norm          5.6624        2.6530        .86690E-04   -1.5232    
   5  Prefactor     23.880        47.458        .81981E-04   -1.4730    
   6  Prefactor     .10000E-03    53.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.955        11.273        .94502E-04   -1.4860    
   8  Prefactor     .10002E-03    36.043        .12216       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.797        16.017        .10077E-03   -1.4913    
  10  Prefactor     .10000E-03    1.4656        .97268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.1121        4.4187        .15280E-03   -1.5256    
  12  Prefactor     16.513        11.959        .98551E-04   -1.4895    
  13  Prefactor     116.35        60.586        .18647E-03   -1.3546    
  14  Prefactor     1.2623        17.732        .40113E-03   -1.5483    
  15  Prefactor     .45927        11.229        .23644E-02   -1.5572    
  16  Prefactor     36.767        74.498        .66101E-04   -1.4495    
  17  norm          3.9767        4.1741        .84069E-03   -1.5309    
  18  Prefactor     4.6249        4.2567        .15679E-03   -1.5278    
  19  Prefactor     2.4657        5.6998        .13023E-02   -1.5394    
  20  Prefactor     28.418        30.846        .75136E-04   -1.4641    
  21  Prefactor     15.591        11.514        .10144E-03   -1.4918    
  22  Prefactor     .10000E-03    29.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .83274        .27292        .35102E-03   -.98866    
  24  Prefactor     1.1850        .16248        .20285E-03   -.86794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07271e-08
Minuit parameter uncertainties:
  1  4.03613e-05
  2  2.30902
  3  27.702
  4  2.65304
  5  47.5334
  6  3.07535e-05
  7  11.2741
  8  0.00162543
  9  16.0214
  10  9.85409e-06
  11  4.41901
  12  11.9605
  13  60.6184
  14  9.46515
  15  4.54232
  16  74.6875
  17  4.17436
  18  4.25696
  19  5.70109
  20  30.8628
  21  11.516
  22  5.88972e-05
  23  0.273375
  24  0.162545
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  9.854e-06  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.185e+00  1.625e-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:  8.327e-01  2.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 323.836 -50.102
Photon Flux Upper Limit: 6.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604614/likelihoodResults_454982401_455241601_4FGL_J2135.3-5006_daily_bin832.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) = 6793.33689933
delta logL = -0.00320208155335

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6793.33369708
delta logL = 1.65755409398e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4180       1.0000          .0000       10.000    
     3 'Normalizat'    .83273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1850       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=   6793.334     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      243 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.865        .97875E-02** at limit **
   2  Index         2.0427        8.8337        .50000       -.45543E-07
   3  Normalizat    .83274        .16283E-01    .35102E-03    .70572E-04
   4  Prefactor     1.1850        .11098E-01    .20285E-03    .13494E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04271
  Normalizat = 0.832736
  Prefactor  = 1.185
 **********
 **   18 **HESSE 
 **********

 FCN=   6793.334     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    148.06        .10274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0427        5.1243        .50000       -.63287    
   3  Normalizat    .83274        .57379E-01    .14041E-04   -.98866    
   4  Prefactor     1.1850        .39109E-01    .40570E-04   -.86794    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.11538e-12
Minuit parameter uncertainties:
  1  2.81309e-05
  2  767.76
  3  0.0573827
  4  0.03911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604614': 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) = 6793.33369375
delta logL = 3.5019202187e-06

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  2.813e-05  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.043e+00  7.678e+02  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.185e+00  3.911e-02  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:  8.327e-01  5.738e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/604614/cmap_HighResolution_454982401_455241601_4FGL_J2135.3-5006_daily_bin832.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.46e-08', time_completed='2021-09-26 20:05:16.113317', job_id='604614', GAL2='1.19', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1632711916.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='3.50e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='832' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:05:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 604614: <4FGL_J2135.3-5006_daily_bin832> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin832 323.836 -50.1015 454982401 455241601 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 :                                   711.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            885 sec.

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

