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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1272
RA = 323.836, Dec = -50.1015
tmin = 569030401, tmax = 569289601
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='607471', job_status='RUN', time_executed='2021-09-26 20:03:57.290394', time_epoch_executed='1632711837.29' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1272'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607471

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607471/ft1_4FGL_J2135.3-5006_daily_bin1272.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607471/ft2_4FGL_J2135.3-5006_daily_bin1272.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607471/ft1_4FGL_J2135.3-5006_daily_bin1272.fits outfile=/scratch/kocevski/607471/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1272.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=569030401.0 tmax=569289601.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.58
user 3.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607471/ft1_filtered_4FGL_J2135.3-5006_daily_bin1272.fits" evtable="EVENTS" scfile=/scratch/kocevski/607471/ft2_4FGL_J2135.3-5006_daily_bin1272.fits sctable="SC_DATA" outfile=/scratch/kocevski/607471/ltcube_569030401_569289601_4FGL_J2135.3-5006_daily_bin1272.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/607471/ft2_4FGL_J2135.3-5006_daily_bin1272.fits
.....................!
real 12.69
user 12.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607471/ft1_filtered_4FGL_J2135.3-5006_daily_bin1272.fits evtable="EVENTS" scfile=/scratch/kocevski/607471/ft2_4FGL_J2135.3-5006_daily_bin1272.fits sctable="SC_DATA" expcube=/scratch/kocevski/607471/ltcube_569030401_569289601_4FGL_J2135.3-5006_daily_bin1272.fits outfile=/scratch/kocevski/607471/expmap_569030401_569289601_4FGL_J2135.3-5006_daily_bin1272.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/607471/ltcube_569030401_569289601_4FGL_J2135.3-5006_daily_bin1272.fits
.....................!
real 191.36
user 186.52
sys 4.49

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/607471/ft1_filtered_4FGL_J2135.3-5006_daily_bin1272.fits scfile=/scratch/kocevski/607471/ft2_4FGL_J2135.3-5006_daily_bin1272.fits outfile=/scratch/kocevski/607471/cmap_569030401_569289601_4FGL_J2135.3-5006_daily_bin1272.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607471/ft1_filtered_4FGL_J2135.3-5006_daily_bin1272.fits scfile=/scratch/kocevski/607471/ft2_4FGL_J2135.3-5006_daily_bin1272.fits outfile=/scratch/kocevski/607471/cmap_HighResolution_569030401_569289601_4FGL_J2135.3-5006_daily_bin1272.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=323.836 yref=-50.1015 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/607471/ft1_filtered_4FGL_J2135.3-5006_daily_bin1272.fits evtable="EVENTS" scfile=/scratch/kocevski/607471/ft2_4FGL_J2135.3-5006_daily_bin1272.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/607471/Model_4FGL_J2135.3-5006_daily_bin1272.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/607471/ft1_filtered_4FGL_J2135.3-5006_daily_bin1272.fits.....................!
real 47.05
user 45.82
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .32113       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .28202E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9454       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.4145       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.780       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .44141E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .68865       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .53956E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7703       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5300       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9530       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3863       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8176       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3229       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0722       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=   5703.121     FROM MIGRAD    STATUS=CONVERGED   1012 CALLS     2875 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.545        .18142E-02** at limit **
   2  Prefactor     .31970        4.6313        .21407E-02    .39814E-03
   3  Prefactor     .10000E-03    45.807        .18142E-02** at limit **
   4  norm          .10002E-03    13.521        .15367E-02** at limit **
   5  Prefactor     5.9217        111.97        .16468E-03    .11667E-04
   6  Prefactor     .10000E-03    86.944        .18142E-02** at limit **
   7  Prefactor     8.4100        10.931        .13820E-03    .63590E-04
   8  Prefactor     15.836        32.939        .10082E-03   -.53560E-04
   9  Prefactor     .10000E-03    55.388        .18142E-02** at limit **
  10  Prefactor     .10008E-03    24.559        .23965E-02** at limit **
  11  norm          .68041        9.1274        .39568E-03    .13288E-03
  12  Prefactor     .15580E-01    17.840        .71315E-01    .65861E-04
  13  Prefactor     .10000E-03    26.415        .18142E-02** at limit **
  14  Prefactor     3.7665        10.464        .10396E-02    .15496E-04
  15  Prefactor     9.5298        5.4048        .12503E-03    .16458E-04
  16  Prefactor     .10000E-03    116.82        .18142E-02** at limit **
  17  norm          .10000E-03    2.6625        .12027E-02** at limit **
  18  Prefactor     4.9533        5.4796        .89043E-03    .12477E-03
  19  Prefactor     7.3856        7.4615        .14757E-03    .23881E-04
  20  Prefactor     1.8206        75.189        .30978E-03    .30094E-05
  21  Prefactor     .10000E-03    8.0540        .18142E-02** at limit **
  22  Prefactor     .10000E-03    39.393        .18142E-02** at limit **
  23  Normalizat    1.3229        .28879        .29556E-03    .39747E-03
  24  Prefactor     1.0723        .17694        .21313E-03    .30007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.319701
  Prefactor  = 0.000100001
  norm       = 0.000100022
  Prefactor  = 5.92168
  Prefactor  = 0.000100001
  Prefactor  = 8.41005
  Prefactor  = 15.8364
  Prefactor  = 0.0001
  Prefactor  = 0.00010008
  norm       = 0.68041
  Prefactor  = 0.01558
  Prefactor  = 0.0001
  Prefactor  = 3.76651
  Prefactor  = 9.52981
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 4.95326
  Prefactor  = 7.38559
  Prefactor  = 1.82057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32286
  Prefactor  = 1.07232
 **********
 **   18 **HESSE 
 **********

 FCN=   5703.121     FROM HESSE     STATUS=OK           389 CALLS     3264 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.546        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .31970        4.6231        .85626E-04   -1.5595    
   3  Prefactor     .10000E-03    45.829        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10002E-03    13.705        .30734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.9217        112.07        .65874E-05   -1.5221    
   6  Prefactor     .10000E-03    86.949        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.4100        10.929        .55279E-05   -1.5128    
   8  Prefactor     15.836        32.892        .40329E-05   -1.4912    
   9  Prefactor     .10000E-03    55.414        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10008E-03    24.962        .47931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .68041        9.0927        .15827E-04   -1.5543    
  12  Prefactor     .15580E-01    15.157        .78727E-01   -1.5683    
  13  Prefactor     .10000E-03    26.416        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7665        10.454        .41583E-04   -1.5320    
  15  Prefactor     9.5298        5.4041        .50011E-05   -1.5090    
  16  Prefactor     .10000E-03    116.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.6626        .24054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.9533        5.4784        .35617E-04   -1.5263    
  19  Prefactor     7.3856        7.4599        .59030E-05   -1.5164    
  20  Prefactor     1.8206        75.127        .12391E-04   -1.5438    
  21  Prefactor     .10000E-03    8.0554        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    39.393        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3229        .28877        .59113E-04   -.82886    
  24  Prefactor     1.0723        .17696        .42626E-04   -.90356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43653e-09
Minuit parameter uncertainties:
  1  0.000167046
  2  2.43131
  3  0.000342414
  4  0.00109087
  5  51.6342
  6  0.000540265
  7  10.9319
  8  32.9298
  9  9.88361e-05
  10  0.00283134
  11  4.97521
  12  0.969019
  13  2.27302e-05
  14  10.4594
  15  5.40437
  16  0.000854747
  17  1.13247e-06
  18  5.47898
  19  7.46083
  20  23.4209
  21  7.82211e-06
  22  0.000123924
  23  0.289123
  24  0.177057
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.001e-04  2.831e-03  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.072e+00  1.771e-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.323e+00  2.891e-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: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/607471/likelihoodResults_569030401_569289601_4FGL_J2135.3-5006_daily_bin1272.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) = 5703.12127229
delta logL = -0.000192909727048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5703.12105832
delta logL = 2.10654434341e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18974E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5722       1.0000          .0000       10.000    
     3 'Normalizat'    1.3231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0721       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=   5702.851     FROM MIGRAD    STATUS=CONVERGED    175 CALLS      353 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97989E-02    .20377        .22918E-02    .22835E-03
   2  Index         6.3922        3.3473        .15824        .26260E-04
   3  Normalizat    1.2567        .41345E-01    .68274E-01   -.46957E-03
   4  Prefactor     1.0973        .27329E-01    .38756E-01   -.66511E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00979888
  Index      = 6.39218
  Normalizat = 1.25671
  Prefactor  = 1.09729
 **********
 **   18 **HESSE 
 **********

 FCN=   5702.851     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      382 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97989E-02    .93931        .10224E-04   -1.5688    
   2  Index         6.3922        8.0359        .87344E-02    .28217    
   3  Normalizat    1.2567        .20830        .30207E-03   -.84868    
   4  Prefactor     1.0973        .13425        .21099E-03   -.89553    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.99614e-09
Minuit parameter uncertainties:
  1  0.190898
  2  10.6266
  3  0.208438
  4  0.134296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607471': 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) = 5702.85078192
delta logL = 0.270297462455

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.097e+00  1.343e-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.257e+00  2.084e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/607471/cmap_HighResolution_569030401_569289601_4FGL_J2135.3-5006_daily_bin1272.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.09e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-26 20:15:37.153977', job_id='607471', GAL2='1.10', fit_tolerance='1e-08', EG2='1.26', EG='1.32', time_epoch_completed='1632712537.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.70e-01', ts2='0.59', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1272' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:15:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 607471: <4FGL_J2135.3-5006_daily_bin1272> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1272> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 20:00:36 2021
Job was executed on host(s) <bullet0041>, 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:15:37 2021
Results reported at Sun Sep 26 20:15:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1272 323.836 -50.1015 569030401 569289601 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 :                                   669.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            901 sec.

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

