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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1081
RA = 323.836, Dec = -50.1015
tmin = 519523201, tmax = 519782401
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='606035', job_status='RUN', time_executed='2021-09-26 19:58:04.513649', time_epoch_executed='1632711484.51' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606035

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606035/ft1_4FGL_J2135.3-5006_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606035/ft2_4FGL_J2135.3-5006_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606035/ft1_4FGL_J2135.3-5006_daily_bin1081.fits outfile=/scratch/kocevski/606035/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1081.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=519523201.0 tmax=519782401.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.04
user 2.81
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606035/ft1_filtered_4FGL_J2135.3-5006_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/606035/ft2_4FGL_J2135.3-5006_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/606035/ltcube_519523201_519782401_4FGL_J2135.3-5006_daily_bin1081.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/606035/ft2_4FGL_J2135.3-5006_daily_bin1081.fits
.....................!
real 15.62
user 15.16
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606035/ft1_filtered_4FGL_J2135.3-5006_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/606035/ft2_4FGL_J2135.3-5006_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/606035/ltcube_519523201_519782401_4FGL_J2135.3-5006_daily_bin1081.fits outfile=/scratch/kocevski/606035/expmap_519523201_519782401_4FGL_J2135.3-5006_daily_bin1081.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/606035/ltcube_519523201_519782401_4FGL_J2135.3-5006_daily_bin1081.fits
.....................!
real 195.29
user 189.38
sys 5.26

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/606035/ft1_filtered_4FGL_J2135.3-5006_daily_bin1081.fits scfile=/scratch/kocevski/606035/ft2_4FGL_J2135.3-5006_daily_bin1081.fits outfile=/scratch/kocevski/606035/cmap_519523201_519782401_4FGL_J2135.3-5006_daily_bin1081.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.59
user 0.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606035/ft1_filtered_4FGL_J2135.3-5006_daily_bin1081.fits scfile=/scratch/kocevski/606035/ft2_4FGL_J2135.3-5006_daily_bin1081.fits outfile=/scratch/kocevski/606035/cmap_HighResolution_519523201_519782401_4FGL_J2135.3-5006_daily_bin1081.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/606035/ft1_filtered_4FGL_J2135.3-5006_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/606035/ft2_4FGL_J2135.3-5006_daily_bin1081.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/606035/Model_4FGL_J2135.3-5006_daily_bin1081.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/606035/ft1_filtered_4FGL_J2135.3-5006_daily_bin1081.fits.....................!
real 42.42
user 40.89
sys 1.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31927E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0374       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4024       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20233       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.842       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.833       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9747       1.0000         .10000E-03   10000.    
    11 'norm      '    22.936       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    62.600       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4280       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8255       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .52507E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7296       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13444E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.613       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .63886       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0777       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=   4869.203     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2770 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    262.55        .39772E-05** at limit **
   2  Prefactor     3.0379        3.5862       -.21013E-06   -.41113E-03
   3  Prefactor     .10000E-03    9.2828        .19041E-07** at limit **
   4  norm          1.4017        1.7282       -.80625E-07   -.28978E-03
   5  Prefactor     .10000E-03    48.011        .90917E-05** at limit **
   6  Prefactor     .10000E-03    44.857       -.93182E-05** at limit **
   7  Prefactor     .15516        6.8872       -.18776E-05    .28625E-03
   8  Prefactor     13.839        30.034       -.31311E-06    .31949E-04
   9  Prefactor     19.836        26.391       -.42045E-06   -.81799E-05
  10  Prefactor     5.9777        5.6570       -.45627E-06   -.12610E-03
  11  norm          22.938        7.7276        .77482E-06    .13395E-03
  12  Prefactor     .10000E-03    3.9842       -.26498E-07** at limit **
  13  Prefactor     62.600        46.160        .12955E-06    .49950E-04
  14  Prefactor     9.4164        9.6504       -.62475E-07    .16411E-03
  15  Prefactor     1.8255        3.1901       -.20209E-06   -.34717E-03
  16  Prefactor     .10000E-03    353.71       -.30177E-04** at limit **
  17  norm          .10000E-03    7.3942        .24568E-07** at limit **
  18  Prefactor     .10000E-03    1.7880       -.76689E-08** at limit **
  19  Prefactor     1.7286        3.8353       -.38824E-06   -.42579E-03
  20  Prefactor     .10000E-03    39.680       -.21195E-05** at limit **
  21  Prefactor     20.609        13.902       -.14282E-06    .22416E-04
  22  Prefactor     .10000E-03    38.931        .63519E-05** at limit **
  23  Normalizat    .63868        .22424        .60704E-06    .11560E-03
  24  Prefactor     1.0778        .14616        .60800E-07    .21854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.03793
  Prefactor  = 0.0001
  norm       = 1.40168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.155163
  Prefactor  = 13.8388
  Prefactor  = 19.8357
  Prefactor  = 5.97767
  norm       = 22.9382
  Prefactor  = 0.0001
  Prefactor  = 62.6
  Prefactor  = 9.41642
  Prefactor  = 1.82548
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.72858
  Prefactor  = 0.0001
  Prefactor  = 20.6087
  Prefactor  = 0.0001
  Normalizat = 0.638683
  Prefactor  = 1.07779
 **********
 **   18 **HESSE 
 **********

 FCN=   4869.203     FROM HESSE     STATUS=OK           397 CALLS     3167 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    265.01        .19760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0379        3.5998        .13641E-03   -1.5359    
   3  Prefactor     .10000E-03    9.2966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4017        1.7077        .97762E-04   -1.5471    
   5  Prefactor     .10000E-03    47.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    44.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .15516        55.482        .34277E-02   -1.5629    
   8  Prefactor     13.839        29.990        .10766E-03   -1.4964    
   9  Prefactor     19.836        26.401        .89937E-04   -1.4817    
  10  Prefactor     5.9777        5.6807        .15172E-03   -1.5219    
  11  norm          22.938        7.7108        .83638E-04   -1.4750    
  12  Prefactor     .10000E-03    3.9903        .13602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     62.600        46.212        .50717E-04   -1.4124    
  14  Prefactor     9.4164        9.6271        .13052E-03   -1.5094    
  15  Prefactor     1.8255        3.1762        .15828E-03   -1.5438    
  16  Prefactor     .10000E-03    351.02        .21133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.5470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.8048        .91088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.7286        3.8400        .19846E-03   -1.5445    
  20  Prefactor     .10000E-03    39.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.609        13.915        .88221E-04   -1.4800    
  22  Prefactor     .10000E-03    38.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .63868        .25175        .33175E-03   -1.0637    
  24  Prefactor     1.0778        .16628        .18178E-03   -.90180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85844e-09
Minuit parameter uncertainties:
  1  0.000138541
  2  3.60005
  3  1.0469e-06
  4  1.70779
  5  3.14255e-06
  6  9.50808e-07
  7  5.87176
  8  30.0226
  9  26.4161
  10  5.68126
  11  7.71113
  12  4.91074e-06
  13  46.2381
  14  9.62866
  15  3.17652
  16  0.000586989
  17  1.84584e-06
  18  5.05239e-07
  19  3.84057
  20  3.93961e-05
  21  13.9174
  22  2.62615e-06
  23  0.252201
  24  0.166359
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  5.978e+00  5.681e+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.078e+00  1.664e-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.387e-01  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.48
Ra Dec: 323.836 -50.102
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.22e-08 +/- 4.95e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.56e-05

TS (Fixed Index): 1.48
Ra Dec: 323.836 -50.102
Photon Flux Upper Limit: 1.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/606035/likelihoodResults_519523201_519782401_4FGL_J2135.3-5006_daily_bin1081.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) = 4867.82366645
delta logL = 1.37971913914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4867.80252709
delta logL = 1.40085849596

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83575       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1735       1.0000          .0000       10.000    
     3 'Normalizat'    .57417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1072       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=   4867.803     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      251 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83608        8.5221        .82535E-02    .38426E-02
   2  Index         4.1727        3.1211        .10826        .38159E-03
   3  Normalizat    .57414        .67667E-01    .78558E-01   -.81161E-04
   4  Prefactor     1.1072        .47041E-01    .37321E-01   -.45171E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.836079
  Index      = 4.17271
  Normalizat = 0.574141
  Prefactor  = 1.10721
 **********
 **   18 **HESSE 
 **********

 FCN=   4867.803     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      282 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83608        15.307        .37177E-04   -1.5525    
   2  Index         4.1727        6.9131        .43608E-02   -.16622    
   3  Normalizat    .57414        .22757        .34787E-03   -1.0909    
   4  Prefactor     1.1072        .15953        .17941E-03   -.89236    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.47362e-09
Minuit parameter uncertainties:
  1  7.15656
  2  5.07936
  3  0.227941
  4  0.159595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606035': 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) = 4867.80252558
delta logL = 1.40086000212

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  8.361e-01  7.157e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  4.173e+00  5.079e+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.107e+00  1.596e-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:  5.741e-01  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.45
Ra Dec: 323.836 -50.102
Photon Index (Free Index): 4.17 +/- 5.08
Photon Flux (Free Index): 1.05e-07 +/- 6.32e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.52e-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/606035/cmap_HighResolution_519523201_519782401_4FGL_J2135.3-5006_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='5.22e-08', energy_flux2='1.53e-05', photon_flux_error='4.95e-08', dlogl='1.40e+00', energy_flux='1.64e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-26 20:08:30.655532', photon_index_error2='5.08', photon_index2='4.17', ts='1.48', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='1.52e-05', EG='0.64', time_epoch_completed='1632712110.66', return_code='0', job_id='606035', GAL2='1.11', EG2='0.57', return_code2='102', energy_flux_error='1.56e-05', photon_flux_error2='6.32e-08', ts2='4.45', photon_index='2.43' WHERE bin_id='1081' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:08:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 606035: <4FGL_J2135.3-5006_daily_bin1081> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1081> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 19:55:29 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:57:06 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:57:06 2021
Terminated at Sun Sep 26 20:08:31 2021
Results reported at Sun Sep 26 20:08:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1081 323.836 -50.1015 519523201 519782401 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 :                                   621.29 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             310.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            782 sec.

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

