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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1275
RA = 323.836, Dec = -50.1015
tmin = 569808001, tmax = 570067201
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='607476', job_status='RUN', time_executed='2021-09-26 20:03:06.473467', time_epoch_executed='1632711786.47' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607476

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607476/ft1_4FGL_J2135.3-5006_daily_bin1275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607476/ft2_4FGL_J2135.3-5006_daily_bin1275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607476/ft1_4FGL_J2135.3-5006_daily_bin1275.fits outfile=/scratch/kocevski/607476/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1275.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=569808001.0 tmax=570067201.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.61
user 3.33
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607476/ft1_filtered_4FGL_J2135.3-5006_daily_bin1275.fits" evtable="EVENTS" scfile=/scratch/kocevski/607476/ft2_4FGL_J2135.3-5006_daily_bin1275.fits sctable="SC_DATA" outfile=/scratch/kocevski/607476/ltcube_569808001_570067201_4FGL_J2135.3-5006_daily_bin1275.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/607476/ft2_4FGL_J2135.3-5006_daily_bin1275.fits
.....................!
real 14.83
user 14.49
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607476/ft1_filtered_4FGL_J2135.3-5006_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/607476/ft2_4FGL_J2135.3-5006_daily_bin1275.fits sctable="SC_DATA" expcube=/scratch/kocevski/607476/ltcube_569808001_570067201_4FGL_J2135.3-5006_daily_bin1275.fits outfile=/scratch/kocevski/607476/expmap_569808001_570067201_4FGL_J2135.3-5006_daily_bin1275.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/607476/ltcube_569808001_570067201_4FGL_J2135.3-5006_daily_bin1275.fits
.....................!
real 191.47
user 186.15
sys 4.74

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/607476/ft1_filtered_4FGL_J2135.3-5006_daily_bin1275.fits scfile=/scratch/kocevski/607476/ft2_4FGL_J2135.3-5006_daily_bin1275.fits outfile=/scratch/kocevski/607476/cmap_569808001_570067201_4FGL_J2135.3-5006_daily_bin1275.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.58
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607476/ft1_filtered_4FGL_J2135.3-5006_daily_bin1275.fits scfile=/scratch/kocevski/607476/ft2_4FGL_J2135.3-5006_daily_bin1275.fits outfile=/scratch/kocevski/607476/cmap_HighResolution_569808001_570067201_4FGL_J2135.3-5006_daily_bin1275.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.61
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/607476/ft1_filtered_4FGL_J2135.3-5006_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/607476/ft2_4FGL_J2135.3-5006_daily_bin1275.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/607476/Model_4FGL_J2135.3-5006_daily_bin1275.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/607476/ft1_filtered_4FGL_J2135.3-5006_daily_bin1275.fits.....................!
real 50.52
user 49.19
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.1728       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.2708       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0512       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4978       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35469       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.839       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.810       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.1090       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.454       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5444       1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.968       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1633       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91240       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=   6441.692     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2707 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.695       -.17177E-04** at limit **
   2  Prefactor     1.1727        1.4459        .63172E-07   -.74924E-04
   3  Prefactor     .10000E-03    14.288        .94707E-05** at limit **
   4  norm          2.2708        2.1937       -.28879E-06   -.59267E-03
   5  Prefactor     .10000E-03    20.812       -.10887E-04** at limit **
   6  Prefactor     .10000E-03    27.520        .22650E-04** at limit **
   7  Prefactor     2.0503        4.4278        .31695E-05   -.39447E-03
   8  Prefactor     .10000E-03    17.327       -.11192E-04** at limit **
   9  Prefactor     1.4942        57.757       -.50867E-05   -.94175E-04
  10  Prefactor     .34888        2.3461       -.20909E-06   -.13120E-03
  11  norm          .10000E-03    2.9322       -.22128E-06** at limit **
  12  Prefactor     .10000E-03    7.9357       -.18822E-05** at limit **
  13  Prefactor     22.832        28.904       -.78448E-05    .14077E-05
  14  Prefactor     12.813        8.5148        .32962E-06   -.25133E-04
  15  Prefactor     .10000E-03    3.6153       -.12641E-06** at limit **
  16  Prefactor     .10000E-03    45.763        .29845E-05** at limit **
  17  norm          .10000E-03    6.8985        .18508E-05** at limit **
  18  Prefactor     8.1098        4.9448        .17471E-05   -.15157E-03
  19  Prefactor     26.456        8.2019       -.26224E-07   -.29146E-04
  20  Prefactor     .10000E-03    8.5864        .29542E-06** at limit **
  21  Prefactor     6.5451        6.7150       -.79520E-07   -.30180E-04
  22  Prefactor     25.966        49.900       -.36289E-05   -.15495E-05
  23  Normalizat    1.1631        .20190       -.44771E-06    .97641E-04
  24  Prefactor     .91256        .12757        .49771E-06    .67398E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.17269
  Prefactor  = 0.0001
  norm       = 2.27085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.05031
  Prefactor  = 0.0001
  Prefactor  = 1.49416
  Prefactor  = 0.348876
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.8318
  Prefactor  = 12.8127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.10984
  Prefactor  = 26.4555
  Prefactor  = 0.0001
  Prefactor  = 6.54511
  Prefactor  = 25.9659
  Normalizat = 1.16305
  Prefactor  = 0.912556
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.692     FROM HESSE     STATUS=OK           403 CALLS     3110 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1727        1.4267        .10411E-03   -1.5491    
   3  Prefactor     .10000E-03    14.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.2708        2.1845        .11035E-03   -1.5407    
   5  Prefactor     .10000E-03    20.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0503        4.3550        .23792E-03   -1.5422    
   8  Prefactor     .10000E-03    17.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4942        58.601        .35000E-03   -1.5463    
  10  Prefactor     .34888        12.761        .22970E-02   -1.5590    
  11  norm          .10000E-03    6.7426        .26615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.0558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.832        28.927        .83814E-04   -1.4752    
  14  Prefactor     12.813        8.5266        .11192E-03   -1.4992    
  15  Prefactor     .10000E-03    3.7168        .29763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    45.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.9823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.1098        4.9485        .13276E-03   -1.5138    
  19  Prefactor     26.456        8.2314        .77887E-04   -1.4679    
  20  Prefactor     .10000E-03    8.5952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.5451        6.7177        .15687E-03   -1.5196    
  22  Prefactor     25.966        49.901        .78611E-04   -1.4688    
  23  Normalizat    1.1631        .23688        .27584E-03   -.87752    
  24  Prefactor     .91256        .15043        .20580E-03   -.95704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43845e-08
Minuit parameter uncertainties:
  1  7.0169e-06
  2  1.42673
  3  8.2381e-06
  4  2.18459
  5  9.30019e-06
  6  2.71216e-06
  7  4.3557
  8  4.17665e-06
  9  18.7337
  10  4.22035
  11  8.2638e-05
  12  7.76802e-06
  13  28.9448
  14  8.5274
  15  5.02768e-06
  16  1.42352e-05
  17  5.79808e-06
  18  4.94871
  19  8.23174
  20  1.85201e-06
  21  6.71851
  22  49.9808
  23  0.237097
  24  0.150499
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  9.126e-01  1.505e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.163e+00  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/607476/likelihoodResults_569808001_570067201_4FGL_J2135.3-5006_daily_bin1275.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) = 6440.72924012
delta logL = 0.962839057333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6440.56934414
delta logL = 1.12273503665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29344E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.3871       1.0000          .0000       10.000    
     3 'Normalizat'    1.0776       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94870       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=   6440.569     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      316 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28832E-03    .54930E-02    .25245E-03** at limit **
   2  Index         8.3965        2.8401        .19881        .10233E-03
   3  Normalizat    1.0781        .47452E-01    .64402E-01    .18700E-04
   4  Prefactor     .94846        .31924E-01    .45623E-01   -.27003E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000288316
  Index      = 8.39653
  Normalizat = 1.07812
  Prefactor  = 0.94846
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.569     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      351 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28832E-03    .14522E-01    .13500E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.3965        8.6384        .80627E-02    .74682    
   3  Normalizat    1.0781        .17066        .28488E-03   -.90457    
   4  Prefactor     .94846        .11275        .20226E-03   -.94468    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.4389e-11
Minuit parameter uncertainties:
  1  0.00330746
  2  6.00008
  3  0.170743
  4  0.112775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607476': 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) = 6440.56933889
delta logL = 1.12274029215

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  2.883e-04  3.307e-03  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  8.397e+00  6.000e+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:  9.485e-01  1.128e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.078e+00  1.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.37
Ra Dec: 323.836 -50.102
Photon Index (Free Index): 8.40 +/- 6.00
Photon Flux (Free Index): 6.95e-08 +/- 5.68e-08
Energy Flux (Free Index): 7.99e-06 +/- 7.03e-06

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/607476/cmap_HighResolution_569808001_570067201_4FGL_J2135.3-5006_daily_bin1275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', comment='SUCCESS', energy_flux2='7.99e-06', dlogl='1.12e+00', photon_flux2='6.95e-08', job_status='DONE', time_completed='2021-09-26 20:14:57.204787', photon_index_error2='6.00', photon_index2='8.40', ts='0.01', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='9.60e-08', energy_flux_error2='7.03e-06', EG='1.16', time_epoch_completed='1632712497.2', return_code='0', job_id='607476', GAL2='0.95', EG2='1.08', return_code2='102', photon_flux_error2='5.68e-08', ts2='2.37', photon_index='2.43' WHERE bin_id='1275' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:14:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 607476: <4FGL_J2135.3-5006_daily_bin1275> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1275> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 20:00:37 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 20:01:33 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:01:33 2021
Terminated at Sun Sep 26 20:14:57 2021
Results reported at Sun Sep 26 20:14:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1275 323.836 -50.1015 569808001 570067201 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 :                                   703.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            860 sec.

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

