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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1610
RA = 323.836, Dec = -50.1015
tmin = 656640001, tmax = 656899201
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='472363', job_status='RUN', time_executed='2021-12-08 07:47:59.069467', time_epoch_executed='1638978479.07' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1610'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/472363

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/472363/ft1_4FGL_J2135.3-5006_daily_bin1610.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/472363/ft2_4FGL_J2135.3-5006_daily_bin1610.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/472363/ft1_4FGL_J2135.3-5006_daily_bin1610.fits outfile=/scratch/kocevski/472363/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1610.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=656640001.0 tmax=656899201.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.71
user 3.43
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/472363/ft1_filtered_4FGL_J2135.3-5006_daily_bin1610.fits" evtable="EVENTS" scfile=/scratch/kocevski/472363/ft2_4FGL_J2135.3-5006_daily_bin1610.fits sctable="SC_DATA" outfile=/scratch/kocevski/472363/ltcube_656640001_656899201_4FGL_J2135.3-5006_daily_bin1610.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/472363/ft2_4FGL_J2135.3-5006_daily_bin1610.fits
.....................!
real 13.51
user 13.11
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/472363/ft1_filtered_4FGL_J2135.3-5006_daily_bin1610.fits evtable="EVENTS" scfile=/scratch/kocevski/472363/ft2_4FGL_J2135.3-5006_daily_bin1610.fits sctable="SC_DATA" expcube=/scratch/kocevski/472363/ltcube_656640001_656899201_4FGL_J2135.3-5006_daily_bin1610.fits outfile=/scratch/kocevski/472363/expmap_656640001_656899201_4FGL_J2135.3-5006_daily_bin1610.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/472363/ltcube_656640001_656899201_4FGL_J2135.3-5006_daily_bin1610.fits
.....................!
real 190.36
user 185.42
sys 4.38

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/472363/ft1_filtered_4FGL_J2135.3-5006_daily_bin1610.fits scfile=/scratch/kocevski/472363/ft2_4FGL_J2135.3-5006_daily_bin1610.fits outfile=/scratch/kocevski/472363/cmap_656640001_656899201_4FGL_J2135.3-5006_daily_bin1610.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/472363/ft1_filtered_4FGL_J2135.3-5006_daily_bin1610.fits scfile=/scratch/kocevski/472363/ft2_4FGL_J2135.3-5006_daily_bin1610.fits outfile=/scratch/kocevski/472363/cmap_HighResolution_656640001_656899201_4FGL_J2135.3-5006_daily_bin1610.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/472363/ft1_filtered_4FGL_J2135.3-5006_daily_bin1610.fits evtable="EVENTS" scfile=/scratch/kocevski/472363/ft2_4FGL_J2135.3-5006_daily_bin1610.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/472363/Model_4FGL_J2135.3-5006_daily_bin1610.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/472363/ft1_filtered_4FGL_J2135.3-5006_daily_bin1610.fits.....................!
real 52.46
user 51.05
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.499       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5673       1.0000         .10000E-03   10000.    
     4 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.126       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11145E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10959E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14266E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.3839       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4098       1.0000         .10000E-03   10000.    
    13 'Prefactor '    74.410       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4587       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10773E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .35560E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .48590E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .93365E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7553       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3798       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77591       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=   6667.285     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2856 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.649        65.679       -.25596E-04   -.73935E-04
   2  Prefactor     .10000E-03    1.4397       -.51753E-06** at limit **
   3  Prefactor     5.5740        21.056        .52857E-06    .57458E-04
   4  norm          .10000E-03    .88413        .13956E-06** at limit **
   5  Prefactor     19.172        38.509       -.32260E-05   -.96791E-07
   6  Prefactor     .10000E-03    27.851       -.96043E-06** at limit **
   7  Prefactor     .10000E-03    4.3502       -.16430E-06** at limit **
   8  Prefactor     .10000E-03    11.421       -.83809E-07** at limit **
   9  Prefactor     .10000E-03    20.921        .32636E-06** at limit **
  10  Prefactor     .10003E-03    2.2186       -.66541E-06** at limit **
  11  norm          5.3854        4.0842       -.74075E-07    .24708E-04
  12  Prefactor     4.4090        8.7052        .15170E-05    .13177E-03
  13  Prefactor     74.427        43.383       -.55656E-06   -.76271E-04
  14  Prefactor     .10006E-03    4.9250        .87802E-06** at limit **
  15  Prefactor     4.4554        4.2752       -.41737E-07   -.92806E-04
  16  Prefactor     .10000E-03    98.006       -.53423E-05** at limit **
  17  norm          .10000E-03    7.7461       -.42410E-07** at limit **
  18  Prefactor     .10004E-03    1.9857        .71902E-07** at limit **
  19  Prefactor     .10032E-03    3.2874        .15577E-05** at limit **
  20  Prefactor     .10000E-03    120.46        .75288E-05** at limit **
  21  Prefactor     1.7401        14.668        .79546E-05    .52540E-04
  22  Prefactor     .10000E-03    48.025        .33310E-05** at limit **
  23  Normalizat    1.3799        .19527       -.11631E-06   -.24973E-04
  24  Prefactor     .77578        .12125        .10689E-05    .39135E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6487
  Prefactor  = 0.0001
  Prefactor  = 5.574
  norm       = 0.0001
  Prefactor  = 19.172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  norm       = 5.38535
  Prefactor  = 4.40899
  Prefactor  = 74.4266
  Prefactor  = 0.000100058
  Prefactor  = 4.4554
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100044
  Prefactor  = 0.00010032
  Prefactor  = 0.000100003
  Prefactor  = 1.74005
  Prefactor  = 0.0001
  Normalizat = 1.37985
  Prefactor  = 0.77578
 **********
 **   18 **HESSE 
 **********

 FCN=   6667.285     FROM HESSE     STATUS=OK           401 CALLS     3257 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.649        65.908        .98602E-04   -1.4892    
   2  Prefactor     .10000E-03    2.6021        .18770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5740        20.884        .17027E-03   -1.5236    
   4  norm          .10000E-03    1.6647        .14822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.172        38.436        .91582E-04   -1.4832    
   6  Prefactor     .10000E-03    27.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4321        .16627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    21.783        .22963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.3854        4.0823        .13858E-03   -1.5244    
  12  Prefactor     4.4090        8.6911        .95889E-03   -1.5288    
  13  Prefactor     74.427        42.408        .46545E-04   -1.3980    
  14  Prefactor     .10006E-03    28.996        .32880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4554        4.2572        .15527E-03   -1.5286    
  16  Prefactor     .10000E-03    98.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.8783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10004E-03    30.109        .21913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10032E-03    22.817        .26589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    125.05        .36403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.7401        14.818        .15818E-02   -1.5444    
  22  Prefactor     .10000E-03    48.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3799        .21925        .24803E-03   -.81213    
  24  Prefactor     .77578        .14020        .21245E-03   -1.0063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85605e-08
Minuit parameter uncertainties:
  1  66.1984
  2  1.35983e-05
  3  20.911
  4  1.13483e-06
  5  38.4853
  6  4.43348e-05
  7  9.82956e-06
  8  1.2424e-05
  9  1.34431e-05
  10  0.00155471
  11  4.08247
  12  8.69358
  13  42.4251
  14  0.00258955
  15  4.2575
  16  0.000489138
  17  2.43963e-05
  18  0.00229862
  19  0.00540865
  20  0.00115924
  21  10.1586
  22  0.000118588
  23  0.219396
  24  0.140266
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.555e-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:  7.758e-01  1.403e-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.380e+00  2.194e-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: 8.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/472363/likelihoodResults_656640001_656899201_4FGL_J2135.3-5006_daily_bin1610.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) = 6667.28490197
delta logL = -0.000217475267164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6667.28468423
delta logL = 2.58606632997e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3105       1.0000          .0000       10.000    
     3 'Normalizat'    1.3798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77582       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6667.285     FROM MIGRAD    STATUS=FAILED       108 CALLS      288 TOTAL
                     EDM=   .14E-03    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11243E-03    6231.0        .23425E-02** at limit **
   2  Index         1.7737        .30535        .50000       -.12602E-04
   3  Normalizat    1.3799        .15202        .24803E-03   -.53582E-04
   4  Prefactor     .77578        .10512        .21245E-03   -.19157E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6667.280     FROM SIMPLEX   STATUS=PROGRESS     153 CALLS      441 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30031        6231.0        .51268E-03   -1.5598    
   2  Index         1.7737        .30535        .83231E-07   -.70136    
   3  Normalizat    1.3798        .15202        .15975E-06   -.81214    
   4  Prefactor     .77578        .10512        .42212E-07   -1.0063    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6667.279     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      538 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33129        8.4398        .93701E-03    .37909E-03
   2  Index         1.8524        2.2866        .25307E-01   -.80494E-05
   3  Normalizat    1.3805        .20647        .19842E-05    .22345E-03
   4  Prefactor     .77445        .13824        .16996E-05    .16723E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.331292
  Index      = 1.85244
  Normalizat = 1.38046
  Prefactor  = 0.774451
 **********
 **   18 **HESSE 
 **********

 FCN=   6667.279     FROM HESSE     STATUS=OK            27 CALLS      565 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33129        8.5022        .18740E-03   -1.5593    
   2  Index         1.8524        2.2990        .10123E-02   -.68092    
   3  Normalizat    1.3805        .20237        .39685E-06   -.81195    
   4  Prefactor     .77445        .13529        .33992E-06   -1.0068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84276e-11
Minuit parameter uncertainties:
  1  3.35663
  2  2.46015
  3  0.202483
  4  0.135347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/472363': 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): 0
logL (Free Index) = 6667.27945677
delta logL = 0.00522772747536

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  3.313e-01  3.357e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  1.852e+00  2.460e+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:  7.745e-01  1.353e-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.380e+00  2.025e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/472363/cmap_HighResolution_656640001_656899201_4FGL_J2135.3-5006_daily_bin1610.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.66e-03', job_status='DONE', photon_flux_upper_limit='8.60e-08', time_completed='2021-12-08 08:00:18.629394', job_id='472363', GAL2='0.77', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1638979218.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.23e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1610' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:00:18 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 472363: <4FGL_J2135.3-5006_daily_bin1610> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1610> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Dec  8 07:45:26 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 07:46:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 07:46:42 2021
Terminated at Wed Dec  8 08:00:19 2021
Results reported at Wed Dec  8 08:00:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1610 323.836 -50.1015 656640001 656899201 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 :                                   737.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            893 sec.

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

