/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 75 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1332.0-0509_daily_bin159
RA = 203.02, Dec = -5.1611
tmin = 280540801, tmax = 280800001
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='735771', job_status='RUN', time_executed='2021-09-08 01:32:31.290947', time_epoch_executed='1631089951.29' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='159'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735771

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735771/ft1_4FGL_J1332.0-0509_daily_bin159.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735771/ft2_4FGL_J1332.0-0509_daily_bin159.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735771/ft1_4FGL_J1332.0-0509_daily_bin159.fits outfile=/scratch/kocevski/735771/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin159.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=280540801.0 tmax=280800001.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.62
user 3.32
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/735771/ft2_4FGL_J1332.0-0509_daily_bin159.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/735771/ft2_4FGL_J1332.0-0509_daily_bin159.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/735771/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin159.fits evtable="EVENTS" outfile="/scratch/kocevski/735771/ft1_filtered_4FGL_J1332.0-0509_daily_bin159.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.52
user 0.37
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735771/ft1_filtered_4FGL_J1332.0-0509_daily_bin159.fits" evtable="EVENTS" scfile=/scratch/kocevski/735771/ft2_4FGL_J1332.0-0509_daily_bin159.fits sctable="SC_DATA" outfile=/scratch/kocevski/735771/ltcube_280540801_280800001_4FGL_J1332.0-0509_daily_bin159.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/735771/ft2_4FGL_J1332.0-0509_daily_bin159.fits
.....................!
real 16.90
user 16.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735771/ft1_filtered_4FGL_J1332.0-0509_daily_bin159.fits evtable="EVENTS" scfile=/scratch/kocevski/735771/ft2_4FGL_J1332.0-0509_daily_bin159.fits sctable="SC_DATA" expcube=/scratch/kocevski/735771/ltcube_280540801_280800001_4FGL_J1332.0-0509_daily_bin159.fits outfile=/scratch/kocevski/735771/expmap_280540801_280800001_4FGL_J1332.0-0509_daily_bin159.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/735771/ltcube_280540801_280800001_4FGL_J1332.0-0509_daily_bin159.fits
.....................!
real 193.59
user 187.74
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 170 point sources and 0 extended sources

Setting source of interest to:
4FGL J1332.0-0509 @ 203.02 -5.1611

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/735771/ft1_filtered_4FGL_J1332.0-0509_daily_bin159.fits scfile=/scratch/kocevski/735771/ft2_4FGL_J1332.0-0509_daily_bin159.fits outfile=/scratch/kocevski/735771/cmap_280540801_280800001_4FGL_J1332.0-0509_daily_bin159.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=203.02 yref=-5.1611 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.62
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735771/ft1_filtered_4FGL_J1332.0-0509_daily_bin159.fits scfile=/scratch/kocevski/735771/ft2_4FGL_J1332.0-0509_daily_bin159.fits outfile=/scratch/kocevski/735771/cmap_HighResolution_280540801_280800001_4FGL_J1332.0-0509_daily_bin159.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=203.02 yref=-5.1611 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.56
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/735771/ft1_filtered_4FGL_J1332.0-0509_daily_bin159.fits evtable="EVENTS" scfile=/scratch/kocevski/735771/ft2_4FGL_J1332.0-0509_daily_bin159.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/735771/Model_4FGL_J1332.0-0509_daily_bin159.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/735771/ft1_filtered_4FGL_J1332.0-0509_daily_bin159.fits.....................!
real 50.35
user 48.93
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/735771/ft1_filtered_4FGL_J1332.0-0509_daily_bin159.fits', '/scratch/kocevski/735771/ft2_4FGL_J1332.0-0509_daily_bin159.fits', expMap='/scratch/kocevski/735771/expmap_280540801_280800001_4FGL_J1332.0-0509_daily_bin159.fits', expCube='/scratch/kocevski/735771/ltcube_280540801_280800001_4FGL_J1332.0-0509_daily_bin159.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/735771/Model_4FGL_J1332.0-0509_daily_bin159.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1332.0-0509'

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.389e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/735771/ft1_filtered_4FGL_J1332.0-0509_daily_bin159.fits
Spacecraft file(s): /scratch/kocevski/735771/ft2_4FGL_J1332.0-0509_daily_bin159.fits
Exposure map: /scratch/kocevski/735771/expmap_280540801_280800001_4FGL_J1332.0-0509_daily_bin159.fits
Exposure cube: /scratch/kocevski/735771/ltcube_280540801_280800001_4FGL_J1332.0-0509_daily_bin159.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/735771/Model_4FGL_J1332.0-0509_daily_bin159.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) = 6017.14527014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    86.670       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8637       1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.155       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.3026       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10698E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5313       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1896       1.0000         .10000E-03   10000.    
    11 'norm      '    5.9821       1.0000         .10000E-03   10000.    
    12 'norm      '    8.7369       1.0000         .10000E-03   10000.    
    13 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    78.933       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2553       1.0000         .10000E-03   10000.    
    16 'Prefactor '    61.498       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11036E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.7786       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9173       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2794       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77209       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6017.123     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2798 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     86.672        70.131        .10789E-02   -.46936E-03
   2  norm          .10000E-03    7.5956        .90712E-02** at limit **
   3  norm          1.8637        .39811        .45290E-02    .12324E-03
   4  Prefactor     37.149        49.603        .16438E-02    .15563E-03
   5  norm          .10000E-03    4.9857        .90712E-02** at limit **
   6  norm          6.3001        11.756        .39972E-02    .33099E-03
   7  Prefactor     .10000E-03    8.5135        .90712E-01** at limit **
   8  Prefactor     6.5311        17.696        .39258E-02    .11814E-02
   9  Prefactor     .10000E-03    15.235        .90712E-02** at limit **
  10  Prefactor     9.1969        39.632        .33052E-02    .17955E-03
  11  norm          5.9822        2.1998        .41043E-02    .20546E-03
  12  norm          8.7371        8.1762        .33902E-02    .13377E-03
  13  norm          .10000E-03    10.148        .90712E-02** at limit **
  14  norm          78.931        46.412        .11301E-02    .17756E-03
  15  Prefactor     3.2539        6.3455        .56117E-02    .84125E-03
  16  Prefactor     61.512        35.535        .12792E-02    .13992E-02
  17  Prefactor     .10003E-03    400.26        .90712E-02** at limit **
  18  norm          6.7800        7.6084        .38528E-02   -.80192E-03
  19  Prefactor     .10000E-03    26.532        .90712E-02** at limit **
  20  norm          .10000E-03    1.4960        .90712E-02** at limit **
  21  Prefactor     3.9211        37.059        .50960E-02    .96244E-04
  22  norm          .10000E-03    10.627        .90712E-02** at limit **
  23  Normalizat    1.2792        .24546        .69215E-01   -.25245E-06
  24  Prefactor     .77223        .15043        .43353E-01   -.11476E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 86.6722
  norm       = 0.0001
  norm       = 1.86372
  Prefactor  = 37.1486
  norm       = 0.0001
  norm       = 6.30014
  Prefactor  = 0.0001
  Prefactor  = 6.53107
  Prefactor  = 0.0001
  Prefactor  = 9.19692
  norm       = 5.98222
  norm       = 8.73708
  norm       = 0.0001
  norm       = 78.9311
  Prefactor  = 3.25387
  Prefactor  = 61.5116
  Prefactor  = 0.000100027
  norm       = 6.77997
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.92114
  norm       = 0.0001
  Normalizat = 1.27923
  Prefactor  = 0.772226
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.123     FROM HESSE     STATUS=OK           397 CALLS     3195 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     86.672        70.991        .43154E-04   -1.3843    
   2  norm          .10000E-03    7.5967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8637        .40414        .20029E-04   -1.5435    
   4  Prefactor     37.149        49.611        .65751E-04   -1.4488    
   5  norm          .10000E-03    5.0025        .16912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.3001        11.752        .15989E-03   -1.5206    
   7  Prefactor     .10000E-03    99.066        .42173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5311        17.701        .15703E-03   -1.5197    
   9  Prefactor     .10000E-03    15.698        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.1969        38.615        .13221E-03   -1.5101    
  11  norm          5.9822        2.2048        .65939E-04   -1.5219    
  12  norm          8.7371        8.1514        .11937E-03   -1.5117    
  13  norm          .10000E-03    10.373        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          78.931        46.414        .45202E-04   -1.3929    
  15  Prefactor     3.2539        6.2815        .22447E-03   -1.5347    
  16  Prefactor     61.512        35.793        .51166E-04   -1.4138    
  17  Prefactor     .10003E-03    412.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.7800        7.5551        .15411E-03   -1.5187    
  19  Prefactor     .10000E-03    27.352        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.5341        .18517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.9211        37.069        .20384E-03   -1.5312    
  22  norm          .10000E-03    10.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2792        .28757        .30623E-03   -.84188    
  24  Prefactor     .77223        .17466        .24450E-03   -1.0076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41788e-08
Minuit parameter uncertainties:
  1  71.0604
  2  9.28813e-06
  3  0.40414
  4  49.6664
  5  4.68232e-06
  6  11.756
  7  0.000340101
  8  17.7151
  9  1.32034e-05
  10  37.7317
  11  2.2048
  12  8.15248
  13  3.35614e-06
  14  46.4356
  15  6.28274
  16  35.8058
  17  0.0067587
  18  7.55617
  19  1.35724e-06
  20  9.46975e-07
  21  24.1317
  22  2.2593e-05
  23  0.287932
  24  0.174788
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  5.982e+00  2.205e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  7.722e-01  1.748e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.279e+00  2.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.92
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.81e-07 +/- 6.67e-08
Energy Flux (Fixed Index): 5.44e-05 +/- 2.01e-05

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) = 6017.11486633
delta logL = 0.00776075222439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6017.11254135
delta logL = 0.0100857332545

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8377       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4557       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77535       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6017.113     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8374        36.520        .41555E-02    .15554E-03
   2  alpha         2.4559        3.6090        .25832        .31304E-04
   3  Normalizat    1.2725        .18977        .69366E-01    .13712E-04
   4  Prefactor     .77549        .13922        .43396E-01    .28099E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.83739
  alpha      = 2.45592
  Normalizat = 1.27246
  Prefactor  = 0.775494
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.113     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8374        2.4476        .64866E-04   -1.5225    
   2  alpha         2.4559        .44449        .10688E-01   -.17635E-01
   3  Normalizat    1.2725        .27393        .30690E-03   -.84392    
   4  Prefactor     .77549        .17264        .24405E-03   -1.0064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66636e-12
Minuit parameter uncertainties:
  1  2.44761
  2  0.446864
  3  0.274239
  4  0.172758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735771': 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) = 6017.11254091
delta logL = 0.0100861695928

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  5.837e+00  2.448e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.456e+00  4.469e-01  0.000e+00  5.000e+00 ( 1.000e+00)
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  7.755e-01  1.728e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.272e+00  2.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.74
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.46 +/- 0.45
Photon Flux (Free Index): 1.87e-07 +/- 7.81e-08
Energy Flux (Free Index): 5.35e-05 +/- 2.08e-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/735771/cmap_HighResolution_280540801_280800001_4FGL_J1332.0-0509_daily_bin159.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.81e-07', energy_flux2='5.35e-05', photon_flux_error='6.67e-08', dlogl='1.01e-02', energy_flux='5.44e-05', photon_flux2='1.87e-07', job_status='DONE', time_completed='2021-09-08 01:42:37.325638', photon_index_error2='0.45', photon_index2='2.46', ts='14.92', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='2.08e-05', EG='1.28', time_epoch_completed='1631090557.33', return_code='0', job_id='735771', GAL2='0.78', EG2='1.27', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='7.81e-08', ts2='14.74', photon_index='2.39' WHERE bin_id='159' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:42:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 735771: <4FGL_J1332.0-0509_daily_bin159> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin159> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:30:41 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:30:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 01:30:57 2021
Terminated at Wed Sep  8 01:42:38 2021
Results reported at Wed Sep  8 01:42:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin159 203.02 -5.1611 280540801 280800001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1332.0-0509 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   603.60 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            717 sec.

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

