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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin555
RA = 323.836, Dec = -50.1015
tmin = 383184001, tmax = 383443201
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='603174', job_status='RUN', time_executed='2021-09-26 19:47:40.902150', time_epoch_executed='1632710860.9' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603174/ft1_4FGL_J2135.3-5006_daily_bin555.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603174/ft2_4FGL_J2135.3-5006_daily_bin555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603174/ft1_4FGL_J2135.3-5006_daily_bin555.fits outfile=/scratch/kocevski/603174/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin555.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=383184001.0 tmax=383443201.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.45
user 3.17
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603174/ft1_filtered_4FGL_J2135.3-5006_daily_bin555.fits" evtable="EVENTS" scfile=/scratch/kocevski/603174/ft2_4FGL_J2135.3-5006_daily_bin555.fits sctable="SC_DATA" outfile=/scratch/kocevski/603174/ltcube_383184001_383443201_4FGL_J2135.3-5006_daily_bin555.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/603174/ft2_4FGL_J2135.3-5006_daily_bin555.fits
.....................!
real 17.28
user 16.88
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603174/ft1_filtered_4FGL_J2135.3-5006_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/603174/ft2_4FGL_J2135.3-5006_daily_bin555.fits sctable="SC_DATA" expcube=/scratch/kocevski/603174/ltcube_383184001_383443201_4FGL_J2135.3-5006_daily_bin555.fits outfile=/scratch/kocevski/603174/expmap_383184001_383443201_4FGL_J2135.3-5006_daily_bin555.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/603174/ltcube_383184001_383443201_4FGL_J2135.3-5006_daily_bin555.fits
.....................!
real 194.17
user 188.08
sys 5.44

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/603174/ft1_filtered_4FGL_J2135.3-5006_daily_bin555.fits scfile=/scratch/kocevski/603174/ft2_4FGL_J2135.3-5006_daily_bin555.fits outfile=/scratch/kocevski/603174/cmap_383184001_383443201_4FGL_J2135.3-5006_daily_bin555.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603174/ft1_filtered_4FGL_J2135.3-5006_daily_bin555.fits scfile=/scratch/kocevski/603174/ft2_4FGL_J2135.3-5006_daily_bin555.fits outfile=/scratch/kocevski/603174/cmap_HighResolution_383184001_383443201_4FGL_J2135.3-5006_daily_bin555.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/603174/ft1_filtered_4FGL_J2135.3-5006_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/603174/ft2_4FGL_J2135.3-5006_daily_bin555.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/603174/Model_4FGL_J2135.3-5006_daily_bin555.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/603174/ft1_filtered_4FGL_J2135.3-5006_daily_bin555.fits.....................!
real 62.86
user 60.63
sys 1.51

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    14.342       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    68.666       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2339       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.045       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.3652       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10701E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .43816       1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.755       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4759       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .39374       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87351       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92886       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=   8487.761     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2773 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.156        .90712E-02** at limit **
   2  Prefactor     .10000E-03    .65649        .90712E-02** at limit **
   3  Prefactor     .10000E-03    10.762        .90712E-02** at limit **
   4  norm          14.342        2.5604        .26440E-02    .18838E-03
   5  Prefactor     .10000E-03    10.364        .90712E-02** at limit **
   6  Prefactor     68.665        79.331        .12110E-02    .44195E-03
   7  Prefactor     4.2340        5.2494        .48957E-02    .80454E-03
   8  Prefactor     .10000E-03    5.6420        .90712E-02** at limit **
   9  Prefactor     28.045        21.915        .18913E-02    .71497E-04
  10  Prefactor     .10000E-03    1.4374        .41299E-01** at limit **
  11  norm          9.3646        4.0499        .32739E-02    .10681E-03
  12  Prefactor     .10000E-03    1.5811        .90712E-02** at limit **
  13  Prefactor     .10000E-03    29.843        .90712E-02** at limit **
  14  Prefactor     .10000E-03    3.6845        .90712E-02** at limit **
  15  Prefactor     .43872        2.0442        .40998E-01    .18584E-02
  16  Prefactor     35.751        43.302        .16755E-02    .69552E-03
  17  norm          .10000E-03    1.5492        .90712E-02** at limit **
  18  Prefactor     3.4762        2.9348        .54223E-02    .65736E-03
  19  Prefactor     .37954        1.8181        .66629E-01    .10739E-02
  20  Prefactor     .10000E-03    8.1092        .90712E-02** at limit **
  21  Prefactor     .10009E-03    3.8727        .90730E-01** at limit **
  22  Prefactor     .10000E-03    62.940        .90712E-02** at limit **
  23  Normalizat    .87349        .16334        .64587E-01    .59294E-03
  24  Prefactor     .92890        .10591        .45372E-01    .52840E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 14.3424
  Prefactor  = 0.0001
  Prefactor  = 68.6648
  Prefactor  = 4.23401
  Prefactor  = 0.0001
  Prefactor  = 28.045
  Prefactor  = 0.0001
  norm       = 9.36464
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.438721
  Prefactor  = 35.7511
  norm       = 0.0001
  Prefactor  = 3.47622
  Prefactor  = 0.379539
  Prefactor  = 0.0001
  Prefactor  = 0.000100088
  Prefactor  = 0.000100001
  Normalizat = 0.873495
  Prefactor  = 0.9289
 **********
 **   18 **HESSE 
 **********

 FCN=   8487.761     FROM HESSE     STATUS=OK           403 CALLS     3176 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .67024        .72871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          14.342        2.5604        .58906E-04   -1.4950    
   5  Prefactor     .10000E-03    10.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     68.665        79.355        .48439E-04   -1.4049    
   7  Prefactor     4.2340        5.2390        .19583E-03   -1.5296    
   8  Prefactor     .10000E-03    5.6500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.045        21.928        .75650E-04   -1.4648    
  10  Prefactor     .10000E-03    2.7670        .21344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.3646        4.0493        .11755E-03   -1.5096    
  12  Prefactor     .10000E-03    1.5845        .11313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.7326        .17249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .43872        4.0129        .24553E-02   -1.5576    
  16  Prefactor     35.751        43.254        .67021E-04   -1.4511    
  17  norm          .10000E-03    1.5497        .11199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.4762        2.9400        .13868E-03   -1.5335    
  19  Prefactor     .37954        7.2843        .23667E-02   -1.5585    
  20  Prefactor     .10000E-03    8.1505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10009E-03    6.6119        .60219E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    63.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .87349        .18979        .28569E-03   -.97398    
  24  Prefactor     .92890        .12453        .19180E-03   -.95138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99111e-09
Minuit parameter uncertainties:
  1  0.00075846
  2  4.81476e-06
  3  0.000176619
  4  2.56039
  5  2.94849e-05
  6  79.478
  7  5.23953
  8  7.25145e-06
  9  21.9341
  10  2.84723e-05
  11  4.04938
  12  8.04251e-06
  13  0.000733555
  14  5.16582e-05
  15  2.65363
  16  43.2922
  17  2.76774e-06
  18  2.9401
  19  3.32549
  20  4.03485e-05
  21  0.00152892
  22  0.000552176
  23  0.189936
  24  0.124573
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  2.847e-05  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.289e-01  1.246e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  8.735e-01  1.899e-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: 5.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603174/likelihoodResults_383184001_383443201_4FGL_J2135.3-5006_daily_bin555.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) = 8487.76297218
delta logL = -0.00172141840267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8487.7612509
delta logL = -1.36935341288e-07

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 'Index     '    2.4384       1.0000          .0000       10.000    
     3 'Normalizat'    .87345       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92896       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=   8487.761     FROM MIGRAD    STATUS=FAILED        98 CALLS      266 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10063E-03    71.043        .21297E-02** at limit **
   2  Index         2.5146        7.5198        .50000       -.13995E-04
   3  Normalizat    .87349        .20501E-01    .28569E-03    .21568E-04
   4  Prefactor     .92890        .14247E-01    .19180E-03    .23117E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8487.761     FROM SIMPLEX   STATUS=UNCHANGED    141 CALLS      407 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10063E-03    71.043        .25289E-03** at limit **
   2  Index         2.5146        7.5198        .99270E-04   -.13995E-04
   3  Normalizat    .87349        .20501E-01    .85670E-06    .21568E-04
   4  Prefactor     .92890        .14247E-01    .38279E-06    .23117E-04
                               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=   8487.761     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      481 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2622        .85190E-04** at limit **
   2  Index         2.6070        5.4492        .50000        .10436E-06
   3  Normalizat    .87349        .17733        .22855E-05   -.83567E-04
   4  Prefactor     .92890        .12330        .15344E-05   -.14226E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.60701
  Normalizat = 0.873492
  Prefactor  = 0.928901
 **********
 **   18 **HESSE 
 **********

 FCN=   8487.761     FROM HESSE     STATUS=OK            29 CALLS      510 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9034        .17038E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6070        6.0679        .50000       -.49906    
   3  Normalizat    .87349        .17963        .45711E-06   -.97398    
   4  Prefactor     .92890        .12473        .30687E-06   -.95138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02787e-11
Minuit parameter uncertainties:
  1  1.25096e-05
  2  113.121
  3  0.179754
  4  0.124768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603174': 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) = 8487.76125021
delta logL = 5.45122020412e-07

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
574   Normalization:  8.735e-01  1.798e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/603174/cmap_HighResolution_383184001_383443201_4FGL_J2135.3-5006_daily_bin555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.40e-08', time_completed='2021-09-26 20:02:10.700371', job_id='603174', GAL2='0.93', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632711730.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='5.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='555' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:02:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 603174: <4FGL_J2135.3-5006_daily_bin555> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin555> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 19:45:49 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:47:07 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:47:07 2021
Terminated at Sun Sep 26 20:02:11 2021
Results reported at Sun Sep 26 20:02:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin555 323.836 -50.1015 383184001 383443201 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 :                                   848.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            982 sec.

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

